/* ============================================================
   Strandbaden Blog (Resort Business) design system
   Adapted from the Resort Business magazine mockup. Everything
   is scoped under .sb-mag (landing) and .sb-article (single)
   so it survives inside the active theme without leaking out.
   ============================================================ */

.sb-mag, .sb-article {
  --dunes:        #fcf2df;
  --dunes-deep:   #f4e7cb;
  --dunes-darker: #ecdcb9;
  --muted-blue:   #3e4f5f;
  --tuscan-red:   #a1554c;
  --tuscan-deep:  #8a4640;
  --cali-yellow:  #f9da5b;
  --ink:          #2a3640;
  --ink-soft:     #5a6976;
  --line:         rgba(42, 54, 64, 0.14);
  --line-strong:  rgba(42, 54, 64, 0.32);

  --font-display: "Beige Culture", "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --font-body:    "futura-pt", "Futura PT", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max:    1500px;

  background: var(--dunes);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sb-mag *, .sb-mag *::before, .sb-mag *::after,
.sb-article *, .sb-article *::before, .sb-article *::after { box-sizing: border-box; }

.sb-mag a, .sb-article a { color: inherit; text-decoration: none; }
.sb-mag p, .sb-article p { text-wrap: pretty; margin: 0; }
.sb-mag img, .sb-article img { display: block; max-width: 100%; }

.sb-mag .wrap, .sb-article .wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.sb-mag .eyebrow, .sb-article .eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tuscan-red);
}
.sb-mag h1, .sb-mag h2, .sb-mag h3, .sb-mag h4, .sb-mag h5, .sb-mag h6,
.sb-article h1, .sb-article h2, .sb-article h3, .sb-article h4 { font-weight: 500; }

/* ============================================================
   MASTHEAD
   ============================================================ */
.sb-mag .masthead {
  background: var(--dunes);
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(28px, 4vw, 48px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sb-mag .masthead .issue {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  flex-wrap: wrap;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 34px;
}
.sb-mag .masthead .issue span { white-space: nowrap; }
.sb-mag .masthead .issue .dot { width: 4px; height: 4px; background: var(--tuscan-red); border-radius: 50%; }
.sb-mag .masthead .masthead-logo-link { display: inline-block; }
.sb-mag .masthead .logo { max-width: min(680px, 70vw); margin: 0 auto; height: auto; display: block; }
.sb-mag .masthead .wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.9;
  color: var(--tuscan-red);
  margin: 0;
}
.sb-mag .masthead .lede {
  margin: clamp(28px, 4vw, 48px) auto 0;
  max-width: 60ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.25;
  color: var(--muted-blue);
}
.sb-mag .masthead .by {
  margin-top: 22px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft);
}
.sb-mag .masthead .by em {
  font-family: var(--font-display);
  font-style: italic; text-transform: none; letter-spacing: 0;
  color: var(--tuscan-red); font-size: 16px;
}

/* Category bar */
.sb-mag .cats {
  background: var(--dunes);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.sb-mag .cats .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 16px; gap: 24px;
}
.sb-mag .cats ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 36px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
}
.sb-mag .cats li { color: var(--ink-soft); }
.sb-mag .cats li a { display: inline-block; }
.sb-mag .cats li.active { color: var(--muted-blue); position: relative; }
.sb-mag .cats li.active::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: -20px;
  height: 2px; background: var(--tuscan-red);
}
.sb-mag .cats li:hover { color: var(--muted-blue); }
.sb-mag .cats .right {
  display: flex; align-items: center; gap: 18px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
}
.sb-mag .cats .search {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
}
.sb-mag .cats .search svg { width: 14px; height: 14px; }
@media (max-width: 980px) {
  /* No scrolling: wrap every category onto multiple lines as pills so nothing
     is cut off and the whole set is visible at a glance. Also drop the sticky
     so it can't stack on top of the theme's own sticky header. */
  .sb-mag .cats { position: static; }
  .sb-mag .cats .wrap { gap: 0; padding-block: 14px; }
  .sb-mag .cats ul { flex-wrap: wrap; gap: 10px; width: 100%; }
  .sb-mag .cats li { color: var(--muted-blue); }
  .sb-mag .cats li a {
    display: inline-block; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
    transition: background .15s, color .15s, border-color .15s;
  }
  .sb-mag .cats li.active::after { display: none; }
  .sb-mag .cats li.active a,
  .sb-mag .cats li:hover a { background: var(--muted-blue); color: var(--dunes); border-color: var(--muted-blue); }
  .sb-mag .cats .right { display: none; }
}

/* General mobile tightening: stack section heads so the action button drops
   below the heading instead of cramping beside it, and calm the vertical
   rhythm so sections don't feel compressed. */
@media (max-width: 680px) {
  .sb-mag .section-head { grid-template-columns: 1fr; gap: 16px; }
  .sb-mag .section-head .right { justify-self: start; }
  .sb-mag .masthead { padding-top: clamp(28px, 8vw, 40px); }
  .sb-mag .cover { padding-top: clamp(24px, 7vw, 36px); }
}

/* ============================================================
   COVER STORY
   ============================================================ */
.sb-mag .cover { padding: clamp(28px, 3.5vw, 52px) 0 clamp(20px, 2.5vw, 32px); }
.sb-mag .cover .frame {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 3vw, 48px); align-items: center;
}
@media (max-width: 980px) { .sb-mag .cover .frame { grid-template-columns: 1fr; } }
.sb-mag .cover .photo { aspect-ratio: 4 / 3; background: var(--dunes-deep) center/cover no-repeat; position: relative; }
.sb-mag .cover .photo[data-credit]::after {
  content: attr(data-credit);
  position: absolute; left: 16px; bottom: 16px;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--dunes);
  background: rgba(42, 54, 64, .55); padding: 6px 10px; backdrop-filter: blur(4px);
}
.sb-mag .cover .body { padding-right: clamp(0px, 2vw, 40px); }
.sb-mag .cover .body .stamp {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 16px;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--tuscan-red);
}
.sb-mag .cover .body .stamp .line { width: 28px; height: 1px; background: var(--tuscan-red); display: inline-block; }
.sb-mag .cover .body h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px); line-height: 0.95;
  color: var(--muted-blue); margin: 0 0 16px; letter-spacing: -0.01em;
}
.sb-mag .cover .body h1 em { font-style: italic; color: var(--tuscan-red); }
.sb-mag .cover .body .sum { font-size: 17px; line-height: 1.5; color: var(--ink-soft); max-width: 44ch; margin-bottom: 20px; }
.sb-mag .cover .body .meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 20px;
}
.sb-mag .cover .body .meta .by { color: var(--muted-blue); }
.sb-mag .cover .body .meta .dot { width: 4px; height: 4px; background: var(--line-strong); border-radius: 50%; }
.sb-mag .cover .read {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--muted-blue); color: var(--dunes); padding: 16px 24px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
}
.sb-mag .cover .read svg { width: 14px; height: 14px; transition: transform .2s; }
.sb-mag .cover .read:hover svg { transform: translateX(4px); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sb-mag .section-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  margin-bottom: clamp(24px, 3vw, 40px); padding-block: clamp(6px, 1vw, 12px);
}
.sb-mag .section-head h2 {
  font-family: var(--font-display); font-size: clamp(36px, 4.8vw, 64px);
  line-height: 0.92; color: var(--muted-blue); margin: 12px 0 0; letter-spacing: -0.005em;
}
.sb-mag .section-head h2 em { font-style: italic; color: var(--tuscan-red); }
.sb-mag .section-head .right {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-blue);
}
.sb-mag .section-head .right svg { width: 14px; height: 14px; }
.sb-mag .section-head .right a {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
  border: 1px solid var(--line-strong); border-radius: 999px; transition: background .15s, color .15s;
}
.sb-mag .section-head .right a:hover { background: var(--muted-blue); color: var(--dunes); border-color: var(--muted-blue); }

/* ============================================================
   ARTICLE GRID (mosaic)
   ============================================================ */
.sb-mag .latest { padding-bottom: clamp(28px, 3.5vw, 48px); }
.sb-mag .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: clamp(12px, 1.2vw, 18px); }
@media (max-width: 880px) { .sb-mag .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* On mobile the gallery is dropped; the full "Alla artiklar" list covers it. */
@media (max-width: 880px) { .sb-mag .latest { display: none; } }

/* width + height 100% pin the card to its grid cell so the row-fill height
   (grid-auto-rows:1fr) can't make aspect-ratio recompute a too-wide width. */
.sb-mag .card { position: relative; overflow: hidden; cursor: pointer; isolation: isolate; transition: transform .3s ease; display: block; width: 100%; height: 100%; }
.sb-mag .card:hover { transform: translateY(-3px); }
.sb-mag .card .label {
  position: absolute; top: 18px; left: 18px; background: var(--dunes); color: var(--muted-blue);
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; padding: 7px 12px; z-index: 2;
}
.sb-mag .card .arrow {
  position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(252,242,223,.18); backdrop-filter: blur(8px); color: var(--dunes); z-index: 2;
  opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s;
}
.sb-mag .card:hover .arrow { opacity: 1; transform: translateY(0); }
.sb-mag .card .arrow svg { width: 14px; height: 14px; }

/* Image card */
.sb-mag .card.photo { background-size: cover; background-position: center; color: var(--dunes); background-color: var(--muted-blue); }
.sb-mag .card.photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,54,64,0) 35%, rgba(42,54,64,.78) 100%); z-index: 1;
}
.sb-mag .card.photo .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 22px 22px; z-index: 2; }
.sb-mag .card.photo .body .meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(252,242,223,.85); margin-bottom: 10px;
}
.sb-mag .card.photo .body .meta .dot { width: 3px; height: 3px; background: var(--cali-yellow); border-radius: 50%; }
.sb-mag .card.photo h3 {
  font-family: var(--font-display); font-size: 24px; line-height: 1.0; margin: 0;
  color: var(--dunes); letter-spacing: -0.005em; text-wrap: balance;
}
.sb-mag .card.photo.tall h3 { font-size: 28px; }

/* Solid colour card */
.sb-mag .card.solid { padding: 24px 22px 22px; display: flex; flex-direction: column; justify-content: space-between; min-height: 248px; }
.sb-mag .card.solid .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sb-mag .card.solid .top .cat { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; }
.sb-mag .card.solid .top .arrow {
  position: static; opacity: 1; transform: none; width: 28px; height: 28px;
  background: rgba(42,54,64,.12); backdrop-filter: none;
}
/* color: inherit is required: without it the theme's own h3 colour (Avada: tuscan red)
   wins over the card's text colour, leaving red-on-red and red-on-blue titles. */
.sb-mag .card.solid h3 { font-family: var(--font-display); font-size: 28px; line-height: 0.98; margin: 0; letter-spacing: -0.005em; text-wrap: balance; color: inherit; }
.sb-mag .card.solid h3 em { font-style: italic; }
.sb-mag .card.solid .more { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; }
.sb-mag .card.solid .more svg { width: 12px; height: 12px; }

.sb-mag .card.solid.red    { background: var(--tuscan-red);   color: var(--dunes); }
.sb-mag .card.solid.yellow { background: var(--cali-yellow);  color: var(--muted-blue); }
.sb-mag .card.solid.blue   { background: var(--muted-blue);   color: var(--dunes); }
.sb-mag .card.solid.blue h3 em { color: var(--cali-yellow); }
.sb-mag .card.solid.cream  { background: var(--dunes-deep);   color: var(--muted-blue); }
.sb-mag .card.solid.cream h3 em { color: var(--tuscan-red); }
.sb-mag .card.solid.red h3 em { color: var(--cali-yellow); }
.sb-mag .card.solid.yellow h3 em { color: var(--tuscan-red); }
.sb-mag .card.solid.red .top .cat { color: rgba(252,242,223,.85); }
.sb-mag .card.solid.red .top .arrow { background: rgba(252,242,223,.18); color: var(--dunes); }
.sb-mag .card.solid.blue .top .cat { color: var(--cali-yellow); }
.sb-mag .card.solid.blue .top .arrow { background: rgba(252,242,223,.18); color: var(--dunes); }
.sb-mag .card.solid.yellow .top .cat { color: var(--tuscan-red); }
.sb-mag .card.solid.cream .top .cat { color: var(--tuscan-red); }

/* Card spans for the mosaic */
.sb-mag .a-feat  { grid-column: span 6; aspect-ratio: 3/2; }
.sb-mag .a-half  { grid-column: span 3; aspect-ratio: 4/5; }
.sb-mag .a-tall  { grid-column: span 3; aspect-ratio: 4/5; }
.sb-mag .a-wide  { grid-column: span 6; aspect-ratio: 16/9; }
.sb-mag .a-third { grid-column: span 4; aspect-ratio: 1/1; }
.sb-mag .a-quart { grid-column: span 3; aspect-ratio: 4/5; }
@media (max-width: 880px) {
  .sb-mag .a-feat, .sb-mag .a-half, .sb-mag .a-tall, .sb-mag .a-wide, .sb-mag .a-third, .sb-mag .a-quart { grid-column: span 2; aspect-ratio: 4/3; }
}

/* ============================================================
   QUOTE BAND
   ============================================================ */
.sb-mag .quoteband { margin-top: 0; background: var(--cali-yellow); padding: clamp(40px, 5vw, 64px) var(--gutter); position: relative; overflow: hidden; }
.sb-mag .quoteband .inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 64px); align-items: end; }
@media (max-width: 880px) { .sb-mag .quoteband .inner { grid-template-columns: 1fr; } }
.sb-mag .quoteband .mark { font-family: var(--font-display); font-style: italic; font-size: clamp(120px, 14vw, 200px); line-height: 0.6; color: var(--tuscan-red); margin: 0; align-self: start; }
@media (max-width: 880px) { .sb-mag .quoteband .mark { display: none; } }
.sb-mag .quoteband blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(32px, 4.2vw, 60px); line-height: 1.0; color: var(--muted-blue); letter-spacing: -0.005em; max-width: 20ch; text-wrap: balance; }
.sb-mag .quoteband blockquote em { font-style: italic; color: var(--tuscan-red); }
.sb-mag .quoteband cite { font-style: normal; display: block; margin-top: 28px; font-family: var(--font-body); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-blue); }
.sb-mag .quoteband cite .name { font-weight: 500; }
.sb-mag .quoteband .palm { width: 96px; aspect-ratio: 1/1; background: var(--tuscan-red); -webkit-mask: var(--sb-palm) center/contain no-repeat; mask: var(--sb-palm) center/contain no-repeat; justify-self: end; }
@media (max-width: 880px) { .sb-mag .quoteband .palm { display: none; } }

/* ============================================================
   READ LIST (Mest läst)
   ============================================================ */
.sb-mag .readlist { padding: clamp(44px, 5vw, 68px) 0; }
.sb-mag .list { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line-strong); }
.sb-mag .list .row { display: grid; grid-template-columns: 80px 1.6fr 1.4fr 130px auto; gap: clamp(20px, 3vw, 48px); align-items: center; padding-block: clamp(20px, 2.5vw, 28px); border-bottom: 1px solid var(--line); transition: background .15s; }
.sb-mag .list .row:hover { background: var(--dunes-deep); }
.sb-mag .list .row .num { font-family: var(--font-display); font-style: italic; font-size: 56px; color: var(--tuscan-red); line-height: 1; }
.sb-mag .list .row .title { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.05; color: var(--muted-blue); letter-spacing: -0.003em; margin: 0; }
.sb-mag .list .row .cat { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--tuscan-red); }
.sb-mag .list .row .thumb { width: 130px; height: 90px; background: var(--dunes-deep) center/cover no-repeat; }
.sb-mag .list .row .min { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); text-align: right; }
@media (max-width: 880px) {
  .sb-mag .list .row { grid-template-columns: 56px 1fr; }
  .sb-mag .list .row .cat, .sb-mag .list .row .thumb, .sb-mag .list .row .min { display: none; }
  .sb-mag .list .row .num { font-size: 40px; }
}

/* ============================================================
   ARTICLE INDEX (collapsible full listing)
   ============================================================ */
.sb-mag .index { padding: clamp(28px, 3.5vw, 52px) 0; }
.sb-mag .index-list { border-top: 1px solid var(--line-strong); }
.sb-mag .irow {
  display: grid; grid-template-columns: 132px 1fr auto auto 24px;
  gap: clamp(16px, 2.5vw, 40px); align-items: center;
  padding-block: clamp(16px, 2vw, 24px); border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.sb-mag .irow:hover { background: var(--dunes-deep); }
.sb-mag .irow.sb-hidden { display: none; }
.sb-mag .irow .date { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.sb-mag .irow .t {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.06; color: var(--muted-blue); letter-spacing: -0.003em; margin: 0;
}
.sb-mag .irow .cat { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--tuscan-red); }
.sb-mag .irow .min { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); text-align: right; }
.sb-mag .irow .go {
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted-blue); transition: transform .2s;
}
.sb-mag .irow .go svg { width: 14px; height: 14px; }
.sb-mag .irow:hover .go { transform: translateX(4px); }

.sb-mag .index-more { text-align: center; margin-top: clamp(24px, 3vw, 40px); }
.sb-mag .sb-load-more, .sb-mag .sb-reveal-all {
  font-family: var(--font-body); cursor: pointer; background: none;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-blue);
  transition: background .15s, color .15s, border-color .15s;
}
.sb-mag .sb-load-more:hover, .sb-mag .sb-reveal-all:hover {
  background: var(--muted-blue); color: var(--dunes); border-color: var(--muted-blue);
}
.sb-mag .sb-load-more svg, .sb-mag .sb-reveal-all svg { width: 14px; height: 14px; }
.sb-mag .sb-load-more[hidden], .sb-mag .sb-reveal-all[hidden] { display: none; }

/* In-page category filter: clicking a category hides the cover + mosaic and
   shows the article index filtered to that category (fully revealed). */
.sb-mag.sb-filtered .cover,
.sb-mag.sb-filtered .latest { display: none; }
.sb-mag .irow.sb-filtered-out { display: none; }
.sb-mag.sb-filtered .sb-reveal-all,
.sb-mag.sb-filtered .index-more { display: none; }

@media (max-width: 880px) {
  .sb-mag .irow { grid-template-columns: 1fr auto; gap: 14px; }
  .sb-mag .irow .date, .sb-mag .irow .min, .sb-mag .irow .go { display: none; }
}

/* ============================================================
   TOPICS (pillars)
   ============================================================ */
.sb-mag .topics { background: var(--dunes-deep); padding: clamp(44px, 5vw, 68px) 0; }
.sb-mag .topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 880px) { .sb-mag .topic-grid { grid-template-columns: 1fr 1fr; } }
.sb-mag .topic { background: var(--dunes-deep); padding: 32px 28px 28px; display: flex; flex-direction: column; min-height: 240px; transition: background .15s; cursor: pointer; }
.sb-mag .topic:hover { background: var(--dunes); }
.sb-mag .topic .num { font-family: var(--font-display); font-style: italic; color: var(--tuscan-red); font-size: 16px; margin-bottom: 28px; }
.sb-mag .topic h4 { font-family: var(--font-display); font-size: 32px; line-height: 0.98; color: var(--muted-blue); margin: 0 0 12px; letter-spacing: -0.005em; }
.sb-mag .topic p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 18px; }
.sb-mag .topic .count { margin-top: auto; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--tuscan-red); display: inline-flex; align-items: center; gap: 10px; }

/* ============================================================
   EDITOR'S PICK
   ============================================================ */
.sb-mag .pick { padding: clamp(56px, 7vw, 92px) 0 clamp(32px, 4vw, 56px); }
.sb-mag .pick .row { display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; background: var(--muted-blue); color: var(--dunes); min-height: 460px; }
@media (max-width: 880px) { .sb-mag .pick .row { grid-template-columns: 1fr; } }
.sb-mag .pick .row .img { background: var(--tuscan-deep) center/cover no-repeat; min-height: 360px; }
.sb-mag .pick .row .body { padding: clamp(32px, 4vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.sb-mag .pick .row .body .eyebrow { color: var(--cali-yellow); margin-bottom: 24px; }
.sb-mag .pick .row .body h3 { font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px); line-height: 0.98; color: var(--dunes); margin: 0 0 24px; letter-spacing: -0.005em; }
.sb-mag .pick .row .body h3 em { font-style: italic; color: var(--cali-yellow); }
.sb-mag .pick .row .body p { color: rgba(252,242,223,.78); max-width: 44ch; margin-bottom: 32px; font-size: 16px; line-height: 1.55; }
.sb-mag .pick .row .body .by { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: rgba(252,242,223,.5); margin-bottom: 24px; }
.sb-mag .pick .row .body .cta { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; padding: 14px 22px; background: var(--cali-yellow); color: var(--muted-blue); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.sb-mag .pick .row .body .cta svg { width: 14px; height: 14px; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.sb-mag .sb-empty { padding: clamp(48px, 8vw, 96px) var(--gutter); text-align: center; color: var(--ink-soft); }
.sb-mag .sb-empty h3 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); color: var(--muted-blue); margin: 0 0 12px; }

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.sb-article { padding-bottom: clamp(48px, 6vw, 88px); }
.sb-article .article-hero { background: var(--dunes); padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(28px, 3vw, 40px); text-align: center; }
.sb-article .article-hero .kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--tuscan-red); margin-bottom: 24px; }
.sb-article .article-hero h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 84px); line-height: 0.95; color: var(--muted-blue); margin: 0 auto; max-width: 18ch; letter-spacing: -0.01em; }
.sb-article .article-hero h1 em { font-style: italic; color: var(--tuscan-red); }
.sb-article .article-hero .sum { margin: clamp(20px, 2.5vw, 32px) auto 0; max-width: 56ch; font-family: var(--font-display); font-style: italic; font-size: clamp(18px, 2vw, 26px); line-height: 1.3; color: var(--muted-blue); }
.sb-article .article-hero .meta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.sb-article .article-hero .meta .by { color: var(--muted-blue); }
.sb-article .article-hero .meta .dot { width: 4px; height: 4px; background: var(--line-strong); border-radius: 50%; }
.sb-article .article-figure { max-width: var(--max); margin: clamp(28px, 3vw, 44px) auto 0; padding-inline: var(--gutter); }
.sb-article .article-figure .img { aspect-ratio: 16/9; background: var(--dunes-deep) center/cover no-repeat; position: relative; }
.sb-article .article-figure figcaption { margin-top: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.sb-article .article-body { max-width: 72ch; margin: clamp(36px, 4vw, 60px) auto 0; padding-inline: var(--gutter); font-size: 19px; line-height: 1.7; color: var(--ink); }
.sb-article .article-body > * + * { margin-top: 1.3em; }
.sb-article .article-body h2 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); line-height: 1.05; color: var(--muted-blue); margin-top: 1.6em; }
.sb-article .article-body h3 { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); color: var(--muted-blue); margin-top: 1.4em; }
.sb-article .article-body a { color: var(--tuscan-red); text-decoration: underline; text-underline-offset: 3px; }
.sb-article .article-body blockquote { border-left: 3px solid var(--tuscan-red); padding-left: 24px; font-family: var(--font-display); font-style: italic; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; color: var(--muted-blue); }
.sb-article .article-body img { margin-inline: auto; }
.sb-article .article-foot { max-width: 64ch; margin: clamp(40px, 5vw, 72px) auto 0; padding: clamp(28px, 3.5vw, 44px) var(--gutter) 0; border-top: 1px solid var(--line-strong); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.sb-article .article-foot .avatar { width: 88px; height: 88px; border-radius: 50%; flex: none; }
.sb-article .article-foot img.avatar { object-fit: cover; }
.sb-article .article-foot .avatar-initials { background: var(--tuscan-red); color: var(--dunes); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-style: italic; font-size: 40px; line-height: 1; }
.sb-article .article-foot .who { max-width: 52ch; }
.sb-article .article-foot .who .name { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; color: var(--muted-blue); }
.sb-article .article-foot .who .role { margin-top: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--tuscan-red); }
.sb-article .article-foot .who .bio { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

.sb-article .back-nav { display: flex; justify-content: center; margin: clamp(36px, 4.5vw, 64px) auto 0; padding-inline: var(--gutter); }
.sb-article .back { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-blue); transition: background .15s, color .15s, border-color .15s; }
.sb-article .back:hover { background: var(--muted-blue); color: var(--dunes); border-color: var(--muted-blue); }
.sb-article .back svg { width: 14px; height: 14px; transform: scaleX(-1); }

/* Related articles (same category, topped up with recent) */
.sb-article .related { max-width: var(--max); margin: clamp(44px, 5vw, 80px) auto 0; padding: clamp(36px, 4vw, 56px) var(--gutter) 0; border-top: 1px solid var(--line-strong); }
.sb-article .related .rel-head { margin-bottom: clamp(20px, 2.5vw, 32px); }
.sb-article .related .rel-head h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 44px); line-height: 1; color: var(--muted-blue); margin: 10px 0 0; letter-spacing: -0.005em; }
.sb-article .rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
@media (max-width: 760px) { .sb-article .rel-grid { grid-template-columns: 1fr; } }
.sb-article .rel-card { display: flex; flex-direction: column; transition: transform .25s ease; }
.sb-article .rel-card:hover { transform: translateY(-3px); }
.sb-article .rel-img { display: block; aspect-ratio: 16 / 10; background: var(--dunes-deep); margin-bottom: 16px; overflow: hidden; }
.sb-article .rel-img img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.sb-article .rel-img.is-empty { background: var(--muted-blue); }
.sb-article .rel-cat { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--tuscan-red); margin-bottom: 8px; }
.sb-article .rel-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.05; color: var(--muted-blue); margin: 0 0 12px; letter-spacing: -0.003em; }
.sb-article .rel-meta { margin-top: auto; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.sb-article .rel-head.has-link { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.sb-article .rel-more svg { transform: none; } /* .back flips its arrow; this link goes forward. */

/* [strandbaden_articles] embedded in a theme page: the surrounding page
   builder container supplies width, padding and background, so drop the
   single-article page chrome (cream ground, rule, outer spacing). */
.sb-article.sb-embed { background: transparent; padding-bottom: 0; }
.sb-article.sb-embed .related { max-width: none; margin: 0; padding: 0; border-top: 0; }
