/* ================================
   SENESTE NYT CARD GRID STYLE
================================ */

.tt-latest-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Card */
.tt-news-item {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

@media (hover:hover) {
  .tt-news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
}

/* Image wrapper â€“ enforce consistent size */
.tt-news-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 2;   /* ðŸ‘ˆ key line */
  overflow: hidden;
  background: #f3f4f6;  /* subtle fallback */
}

.tt-news-thumb img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: right center; /* generated images place the subject toward the right */
  display: block;
}

.tt-news-cats {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;

  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 20px);
}

/* Individual pill */
.tt-news-cat {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;

  background: #1a1a1a;
  color: #ffffff;

  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;

  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Title */
.tt-news-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.tt-news-title a {
  color: #111;
  font-size: 18px !important;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tt-news-cat:nth-child(n+3) {
  display: none;
}

.tt-news-readmore:hover {
    text-decoration: underline !important;
}

/* Card needs to be a flex column */
.tt-news-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Content stretches to fill height */
.tt-news-content {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Push read more to the bottom */
.tt-news-readmore {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px !important;
  font-weight: 500;
  color: var(--tt-accent, #111);
  text-decoration: none;
  text-align: end;
}

/* ================================
   TABLET
================================ */

@media (max-width: 1024px) {
  .tt-latest-grid-3x2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================
   MOBILE
================================ */

@media (max-width: 640px) {
  .tt-latest-grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
}

/* Mobile: show only first 4 posts */

@media (max-width:768px){

.tt-latest-grid-3x2 .tt-news-item:nth-child(n+5){
display:none;
}

}

/* ================================
   FRONT PAGE HERO (full-bleed photo, white fade, search)
================================ */

.tt-front-hero {
  position: relative;
  width: 100%;
  min-height: 300px; /* matches the article/post hero's height */
  display: flex;
  align-items: center;
  background-color: #f4f8f7;
  background-size: cover;
  background-position: 0% 70%;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Fades the photo to white on the left (where the text sits) so it stays
   readable regardless of what's behind it — same technique as the article
   hero's own fade, see tt-hero.css. */
.tt-front-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.60) 0%, rgba(255, 255, 255, 0.85) 18%, rgba(255, 255, 255, 0.94) 45%, rgba(255, 255, 255, 0.45) 62%, rgba(255, 255, 255, 0) 76%);
  pointer-events: none;
}

.tt-front-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 20px 0;
  box-sizing: border-box;
}

@media (max-width: 1340px) {
  .tt-front-hero-inner {
    padding: 20px 20px;
  }
}

.tt-front-hero-content {
  flex: 1 1 55%;
  min-width: 0;
}

.tt-front-hero-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.tt-front-hero-content h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.2;
  color: #111827;
}

.tt-front-hero-title-accent {
  display: block;
  color: var(--tt-primary, #009688);
}

.tt-front-hero-sub {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
  color: #4b5563;
}

/* Search */
.tt-front-hero-search {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 6px 6px 6px 18px;
}

.tt-front-hero-search-icon {
  display: flex;
  color: #9ca3af;
  margin-right: 10px;
}

.tt-front-hero-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 15px;
  color: #111827;
  background: transparent;
}

.tt-front-hero-search button {
  flex: 0 0 auto;
  background: var(--tt-primary, #009688);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
}

/* Popular search tags */
.tt-front-hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.tt-front-hero-tags-label {
  color: #6b7280;
  margin-right: 4px;
}

.tt-front-hero-tags a {
  color: #374151;
  background: #f3f4f6;
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.tt-front-hero-tags a:hover {
  background: #e5e7eb;
}

/* Scribble + badges — sit directly on the (unfaded) right portion of the
   photo, no card/background behind them. */
.tt-front-hero-side {
  flex: 0 0 auto;
  max-width: 280px;
  padding-top: 4px;
  text-align: right;
}

.tt-front-hero-scribble {
  position: absolute;
  right: 430px;
  width: 220px;
  height: auto;
  margin: 0 0 18px;
}

.tt-front-hero-badges {
  margin: 0;
  padding: 0;
  list-style: none;
  justify-items: left;
}

.tt-front-hero-badges li {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.tt-front-hero-badge-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #000000;
  text-align: left;
  background: rgb(255 255 255 / 75%);
  padding: 4px 9px;
  border-radius: 6px;
}

.tt-front-hero-badges li + li {
  margin-top: 12px;
}

.tt-front-hero-badge-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
}

.tt-front-hero-badge-icon--check {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23009688'/%3E%3Cpath d='M9.6 16.2 6 12.6l1.4-1.4 2.2 2.2 5.6-5.6L16.6 9.2z' fill='%23fff'/%3E%3C/svg%3E");
}

.tt-front-hero-badge-icon--people {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23009688'/%3E%3Ccircle cx='9' cy='9' r='2.6' fill='%23fff'/%3E%3Cpath d='M4.3 18c0-2.9 2.1-4.7 4.7-4.7s4.7 1.8 4.7 4.7' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='15.2' cy='8.6' r='2.1' fill='%23fff' opacity='0.85'/%3E%3Cpath d='M12.9 17.4c0-2.2 1.5-3.9 3.6-3.9' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' opacity='0.85'/%3E%3C/svg%3E");
}

.tt-front-hero-badge-icon--chart {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23009688'/%3E%3Crect x='6.3' y='13' width='2.8' height='6' rx='0.6' fill='%23fff'/%3E%3Crect x='10.6' y='9' width='2.8' height='10' rx='0.6' fill='%23fff'/%3E%3Crect x='14.9' y='6' width='2.8' height='13' rx='0.6' fill='%23fff'/%3E%3C/svg%3E");
}

/* ================================
   MOBILE — a left-to-right fade doesn't work at this width (the photo's
   unobscured portion would be a sliver on the right, if anything); solid
   white instead, and the side column drops below the content in normal
   flow instead of overlaying the photo.
================================ */

@media (max-width: 768px) {

  .tt-front-hero {
    min-height: 0;
  }

  .tt-front-hero::before {
    background: #fff;
  }

  .tt-front-hero-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 32px 20px;
  }

  .tt-front-hero-content h1 {
    font-size: 28px;
  }

  .tt-front-hero-sub {
    max-width: none;
  }

  .tt-front-hero-side {
    max-width: none;
    text-align: left;
  }

  .tt-front-hero-scribble {
    display: none;
  }

  .tt-front-hero-badges li {
    justify-content: flex-start;
  }
}

/* ================================
   WIDE SCREENS — .tt-front-hero-side normally tracks the photo correctly
   as a flex child of .tt-front-hero-inner (max-width: 1340px), because
   below that width .tt-front-hero itself IS the inner row's width, so
   both grow together. Past 1340px the inner row's growth stops (capped)
   while .tt-front-hero's own photo (background-size: cover) keeps
   scaling with the full viewport — the two decouple, and the badges
   drift further from the photo's beige pillow the wider the screen
   gets (confirmed 09-24: ~290px gap to the hero's own right edge at
   1920px). Pulled out of the flex row and pinned to the hero's own
   right edge instead, past this exact breakpoint only — narrower
   screens are untouched, already correct.

   right's value looks odd because .tt-front-hero-inner is ALSO
   position:relative (for its own z-index stacking) and sits BETWEEN
   .tt-front-hero-side and .tt-front-hero in the DOM — it's the nearer
   positioned ancestor, so a plain "right: 40px" resolves against ITS
   edge, not the hero's, and would drift right back into the same bug
   this rule exists to fix. inner's right edge sits (100vw - 1340px)/2
   to the LEFT of the hero's own right edge (that's exactly the growing
   gap from the bug report above) — the calc() subtracts that gap back
   out, landing the element a constant 40px from .tt-front-hero's real
   right edge at any width ≥ 1341px instead of inner's capped one. */
@media (min-width: 1341px) {
  .tt-front-hero-side {
    position: absolute;
    top: 24px;
    right: calc(40px - (100vw - 1340px) / 2);
  }

  /* .tt-front-hero-scribble is a DOM child of .tt-front-hero-side, so
     making that a positioned element (above) also makes IT the nearest
     positioned ancestor for the scribble's own "right" — the scribble's
     base right:430px, meant for .tt-front-hero-inner (1340px wide), was
     silently resolving against the side box (280px wide) instead once
     ≥1341px, landing it ~430px too far right (onto the green pillow
     instead of before it).

     Recreates "right:430px relative to .tt-front-hero-inner" in terms of
     .tt-front-hero-side (the box it's actually positioned against now),
     plus a bit more (the plain 430px-from-inner position was ALSO found
     to slightly clip the pillow's own left edge once actually measured
     against the source photo — see the memory note on this fix for the
     pixel sampling behind these numbers) — nudged further left so its
     right edge clears the pillow with a small margin at 1920px, the
     reported case. inner.right in terms of 100vw is (100vw + 1340px)/2;
     side.right is 100vw - 40px (see the rule above); the constant folds
     those two together with the 430px offset and an extra left nudge. */
  .tt-front-hero-scribble {
    right: calc(50vw - 210px);
  }
}

/* MOST VIEWED CAROUSEL: 4 cards/page desktop (single row), 2 tablet, 1
   mobile. Card widths are calc()s off container-query width (100cqw of
   .tt-slider-viewport, the actual clipped/visible box) rather than
   --tt-content-width, since that variable's value didn't match this
   carousel's real rendered width and made cards overflow the clipped
   edge. .tt-slider-track itself is wider than its viewport on purpose
   (that is what makes it slide); only .tt-slider-viewport clips overflow,
   not .tt-latest-block, so the prev/next buttons are never clipped. */

.tt-most-viewed {
  margin-top: 25px;
}

.tt-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.tt-section-title {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
}

.tt-section-sub {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.tt-section-see-all {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--tt-primary, #009688);
  text-decoration: none;
  white-space: nowrap;
}

.tt-section-see-all:hover {
  text-decoration: underline;
}

.tt-latest-block {
  position: relative;
}

.tt-slider-viewport {
  overflow: hidden;
  container-type: inline-size;
}

.tt-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100cqw - 3 * 16px) / 4);
  grid-template-rows: repeat(1, 1fr);
  gap: 16px;
  transition: transform 0.35s ease;
  will-change: transform;
}

/* Implicit grid columns default to auto-sized (content-fit), which ignores
   a card's own width and lets its content push the column wider than the
   viewport, clipping "Læs mere" — grid-auto-columns above fixes the track
   width instead; cards just fill it, with min-width:0 so nothing inside
   can force the track wider than that, and border-box so the card's own
   padding doesn't add on top of that 100% and overflow the track again. */
.tt-slider-track .tt-most-viewed-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tt-prev,
.tt-next {
  position: absolute;
  /* Centered on the thumbnail only, not the whole (now much taller) card —
     a straight top:50% landed in the title/excerpt text below the image
     and covered it. */
  top: 95px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.tt-prev { left: 8px; }
.tt-next { right: 8px; }
.tt-prev::before,
.tt-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #111827;
  border-right: 2px solid #111827;
}
.tt-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.tt-next::before { transform: translate(-70%, -50%) rotate(45deg); }

.tt-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.tt-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.tt-slider-dot.is-active {
  background: var(--tt-primary, #009688);
  transform: scale(1.25);
}

/* Card — vertical layout, image on top (matches .tt-news-item) */
.tt-most-viewed-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Thumbnail */
.tt-most-viewed-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 2.3;
  overflow: hidden;
  background: #f3f4f6;
}

.tt-most-viewed-thumb img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: right center; /* generated images place the subject toward the right */
  display: block;
}

/* "Mest læst" badge — first card only */
.tt-most-viewed-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #c28a26;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.tt-most-viewed-con {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Category label — plain text, not a pill */
.tt-most-viewed-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}

/* Title */
.tt-most-viewed-title {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 6px;
}

.tt-most-viewed-title a {
    text-decoration: none !important;
    color: #111827;
    font-size: 18px;
    font-weight: 600 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tt-most-viewed-excerpt {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tt-most-viewed-card .tt-news-readmore {
  margin-top: auto;
}

/* ================================
   MOBILE
================================ */

@media (max-width: 900px) {
  /* Tablet: 2 cards per page — desktop's 4-column formula no longer
     applies here, so this needs its own column-width override. */
  .tt-slider-track {
    grid-auto-columns: calc((100cqw - 16px) / 2);
  }
}

@media (max-width: 640px) {
  .tt-slider-track {
    grid-auto-columns: 100cqw;
  }

  .tt-most-viewed-title a {
    font-size: 15px;
  }

  .tt-most-viewed-title {
    line-height: 1.2;
  }

  .tt-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .tt-section-title {
    font-size: 22px;
  }

}

/* ================================
   CATEGORY GRID – BOXED SECTION
================================ */

.tt-category-grid-wrap {
  background: transparent; /* 👈 no full-width band */
  margin-top: 25px;
}

/* Inner container */
.tt-category-grid-wrap .tt-category-grid {
  margin: 0 auto;
}

.tt-category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.tt-category-card {
  background: #eaf6f4;
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: #111827;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.tt-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.tt-category-card img {
    width: 28px;
    height: 28px !important;
    object-fit: contain;
}

/* Small rounded icon badge (image itself is a white glyph — needs a solid
   teal patch behind it, not the card's own light background, to stay
   visible) */
.tt-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    background: #009688;
    background: linear-gradient(
      135deg,
      rgba(0, 150, 136, 1) 0%,
      rgb(25, 110, 110) 100%
    );
}

.tt-category-name {
  font-size: 16px;
  font-weight: 700;
}

.tt-category-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--tt-primary, #009688);
}

/* ================================
   RESPONSIVE
================================ */

/*@media (max-width: 1024px) {*/
/*  .tt-category-grid {*/
/*    grid-template-columns: repeat(3, 1fr);*/
/*  }*/
/*}*/

/*@media (max-width: 640px) {*/
/*  .tt-category-grid {*/
/*    grid-template-columns: repeat(2, 1fr);*/
/*  }*/
/*}*/

/* =========================
   MOBILE — 2-column grid
========================= */

@media (max-width:768px){

    .tt-category-grid{
        grid-template-columns: repeat(2, 1fr);
    }

}

/* ================================
   NYE SAMMENLIGNINGER — latest comparisons
   Desktop: static 6-column grid of vertical cards, no carousel.
   Mobile: stacked list of horizontal (thumb-left) rows instead.
================================ */

.tt-guides-wrap {
  margin-top: 25px;
  margin-bottom: 25px;
}

.tt-guides-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.tt-guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.tt-guide-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 2.6;
  overflow: hidden;
  background: #f3f4f6;
}

.tt-guide-thumb img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.tt-guide-con {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tt-guide-title {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.35;
}

.tt-guide-title a {
  text-decoration: none !important;
  color: #111827;
  font-weight: 700 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tt-guide-meta {
  margin: 0 0 8px;
  font-size: 12px;
  color: #6b7280;
}

.tt-guide-readmore {
  margin-top: auto;
  padding-top: 4px;
  font-size: 13px !important;
  font-weight: 600;
  color: var(--tt-primary, #009688);
  text-decoration: none;
}

.tt-guide-readmore:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .tt-guides-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {

  /* Title + "see all" share a row on mobile for this section, subtitle
     drops to its own full-width line below — different from Populært
     lige nu's fully-stacked mobile header. A 2-column/2-row grid with
     the title/subtitle wrapper dissolved (display:contents) lets the
     title and "see all" share row 1 while the subtitle still spans
     both columns on row 2. */
  .tt-guides-wrap .tt-section-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title seeall"
      "sub   sub";
    align-items: baseline;
    column-gap: 12px;
    row-gap: 4px;
  }

  .tt-guides-wrap .tt-section-header-text {
    display: contents;
  }

  .tt-guides-wrap .tt-section-title {
    grid-area: title;
    margin: 0;
  }

  .tt-guides-wrap .tt-section-sub {
    grid-area: sub;
    margin: 0;
  }

  .tt-guides-wrap .tt-section-see-all {
    grid-area: seeall;
  }

  /* Abbreviate to "Se alle →" — the full label doesn't leave enough
     width for the title next to it and forces an awkward wrap. */
  .tt-section-see-all-full {
    display: none;
  }

  .tt-guides-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .tt-guide-card {
    flex-direction: row;
    align-items: stretch;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .tt-guide-thumb {
    flex: 0 0 96px;
    width: 96px;
    aspect-ratio: auto;
  }

  .tt-guide-con {
    padding: 10px 14px;
  }
}

/* ================================
   VORES METODE — front page banner
================================ */

.tt-method-wrap {
  background: #eaf6f4;
  border-radius: 20px;
  margin-top: 25px;
  padding: 40px;
}

.tt-method-grid {
  display: flex;
  align-items: center;
  gap: 48px;
}

.tt-method-left {
  flex: 1 1 45%;
  min-width: 0;
}

.tt-method-eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.tt-method-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

.tt-method-title-accent {
  color: var(--tt-primary, #009688);
}

.tt-method-sub {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  max-width: 440px;
}

.tt-method-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tt-primary, #009688);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 8px;
  text-decoration: none !important;
}

.tt-method-cta:hover {
  background: #00786d;
}

.tt-method-points {
  flex: 1 1 55%;
  min-width: 0;
  display: flex;
  gap: 28px;
}

.tt-method-point {
  flex: 1 1 0;
  min-width: 0;
}

.tt-method-icon {
  display: block;
  color: var(--tt-primary, #009688);
  margin-bottom: 10px;
}

.tt-method-point-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.tt-method-point-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

@media (max-width: 900px) {
  .tt-method-wrap {
    padding: 28px 24px;
  }

  .tt-method-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .tt-method-sub {
    max-width: none;
  }

  .tt-method-points {
    flex-direction: column;
    gap: 20px;
  }
}

/* Mobile: plain content, no card/box treatment — background, radius and
   padding all dropped so it reads as normal page content instead of a
   floating panel. */
@media (max-width: 640px) {
  .tt-method-wrap {
    background: transparent;
    border-radius: 0;
    padding: 0;
  }

  /* Icon sits inline with the title instead of stacked above it — the
     description still wraps to its own full-width line below. */
  /* Grid instead of flex-wrap — lets the icon span both the title and
     description rows so it centers against the full two-line block,
     not just the title line next to it. */
  .tt-method-point {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 4px;
  }

  .tt-method-icon {
    grid-row: 1 / 3;
    grid-column: 1;
    align-self: center;
    margin-bottom: 0;
  }

  .tt-method-icon svg {
    width: 34px;
    height: 34px;
  }

  .tt-method-point-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .tt-method-point-text {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }
}

/* ================================
   FRONT-PAGE SECTION SPACING (mobile)
================================ */

@media (max-width: 768px) {
  .tt-most-viewed,
  .tt-category-grid-wrap,
  .tt-guides-wrap,
  .tt-method-wrap {
    margin-top: 25px;
  }
}

/* ================================
   EDITORIAL RESPONSIBILITY BOX
================================ */

.tt-editorial-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.tt-editorial-links {
    padding: 5px;
    background: #f5f5f5;
    display: flex;
    justify-content: space-between;
}

.tt-editorial-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.tt-editorial-text {
  margin: 0 0 10px;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.tt-editorial-links {
  font-size: 13px;
}

.tt-editorial-links a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 500;
}

.tt-editorial-links a:hover {
  text-decoration: underline;
}

.tt-editorial-links span {
  margin: 0 6px;
  color: #9ca3af;
}

.tt-editorial-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.tt-editorial-avatar {
  width: 150px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tt-editorial-content {
  display: flex;
  flex-direction: column;
  gap:10px;
}