/* ============================================================================
   SV News theme. One file for every news site the engine builds.
   Brand: the SV family's two sites, combined.
     svinnovation.com - paper #f6f4ed / ink #070c09, Bodoni Moda headlines,
                        JetBrains Mono for small print. Editorial, quiet.
     sv-academy.org   - green #16A34A as the one accent, the terminal >_ mark
                        with the logo's three traffic dots, Outfit for text.
   Theme follows the system; [data-theme] (the header button) overrides it.
   ========================================================================== */

/* Bodoni Moda and JetBrains Mono come from fonts.css as woff2 (the TTF copies
   from svinnovation.com were 238 KB; the woff2 subsets are 57 KB). */
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f6f4ed;
  --paper-2: #eeebe1;
  --ink: #070c09;
  --ink-2: #2b2f2a;
  --muted: #65675e;
  --line: #d4d4c9;
  --accent: #15803d;        /* green text on paper, AA */
  --accent-mark: #16a34a;   /* the brand green, marks and rules */
  --accent-soft: rgba(22, 163, 74, 0.08);
  --mark-bg: #070c09;
  --mark-fg: #f0eee5;
  --dot-red: #ff5f57; --dot-amber: #febc2e; --dot-green: #28c840;

  --serif: "Bodoni Moda", "Trirong", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Sarabun", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Sarabun", ui-monospace, Menlo, monospace;

  --wrap: 1200px;
  --read: 680px;
  --gutter: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #070c09; --paper-2: #0c1410; --ink: #f0eee5; --ink-2: #d6d8cf;
    --muted: #acb1a7; --line: #343c35; --accent: #4ade80; --accent-mark: #22c55e;
    --accent-soft: rgba(34, 197, 94, 0.1); --mark-bg: #121b16; --mark-fg: #f0eee5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #070c09; --paper-2: #0c1410; --ink: #f0eee5; --ink-2: #d6d8cf;
  --muted: #acb1a7; --line: #343c35; --accent: #4ade80; --accent-mark: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.1); --mark-bg: #121b16; --mark-fg: #f0eee5;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; font-synthesis: none; overflow-x: hidden; font-variant-numeric: lining-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-mark); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: 0; transform: translateY(-150%); background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 5; font-family: var(--mono); font-size: 12px; }
.skip:focus { transform: none; }

.label, .kicker, .byline, .mast-bar, .mast-tag, .mast-nav, .tags, .foot, figcaption { font-family: var(--mono); }
.label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 500; }
.crumbs { font: 12px/1.4 var(--sans); color: var(--muted); margin: 0 0 10px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--ink); text-decoration: underline; }
.kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; font-weight: 600; }
.byline { font-size: 12px; color: var(--muted); margin: 0; letter-spacing: -0.01em; }

/* ---- Masthead ------------------------------------------------------------ */
.mast { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.mast-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--line); }
.mast-bar a { text-decoration: underline; text-underline-offset: 3px; }
.mast-owner { flex: 1; text-align: center; }
.theme { width: 44px; height: 32px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; cursor: pointer; font-size: 15px; line-height: 1; }
.theme:hover { border-color: var(--ink); }
.mast-brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; margin: 28px auto 6px; }
.mast-name { font-family: var(--serif); font-weight: 400; white-space: nowrap; font-size: clamp(44px, 10vw, 104px); letter-spacing: -0.055em; line-height: 0.95; margin: 0; }
/* Sized in em off one font-size: percentage padding would resolve against the
   link around the mark, not the mark, and squash its contents to nothing. */
.mark { display: inline-flex; flex-direction: column; justify-content: space-between; font-size: clamp(44px, 8vw, 72px); width: 1em; height: 1em; background: var(--mark-bg); border-radius: 0.22em; padding: 0.15em 0.16em 0.13em; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); flex-shrink: 0; }
.mark .dots { display: flex; gap: 0.07em; }
.mark .dots i { width: 0.12em; height: 0.12em; border-radius: 50%; background: var(--dot-red); }
.mark .dots i:nth-child(2) { background: var(--dot-amber); }
.mark .dots i:nth-child(3) { background: var(--dot-green); }
.mark .prompt { font-family: var(--mono); font-weight: 700; color: #22c55e; font-size: 0.36em; line-height: 1; letter-spacing: -0.04em; }
.mast-tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 12px 0 18px; }
.mast-nav { display: flex; justify-content: center; gap: 4px 28px; flex-wrap: wrap; font-size: 12px; padding: 10px 0; border-top: 3px double var(--ink); border-bottom: 1px solid var(--line); }
.mast-nav a { text-decoration: none; padding: 6px 2px; min-height: 32px; display: inline-flex; align-items: center; }
.mast-nav a:hover { color: var(--accent); }

/* ---- Home ---------------------------------------------------------------- */
.home { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 56px; }
.card { display: grid; gap: 14px; align-content: start; }
.card a { text-decoration: none; }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); border-radius: 2px; }
.card-title { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 8px; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.card-dek { color: var(--ink-2); margin: 0 0 10px; font-size: 16px; }
.card.lead { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.card.lead .card-title { font-size: clamp(34px, 5.6vw, 64px); line-height: 1.1; letter-spacing: -0.045em; }
.card.lead .card-dek { font-size: clamp(17px, 1.8vw, 21px); max-width: 60ch; }
@media (min-width: 860px) {
  .card.lead { grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
}
.grid { display: grid; gap: 36px 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.empty { color: var(--muted); font-family: var(--mono); }

/* ---- Article --------------------------------------------------------------- */
.article { padding: 0 var(--gutter) 64px; }
.art-head { max-width: 900px; margin: 0 auto; padding: 44px 0 28px; text-align: center; }
.art-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 6.4vw, 72px); line-height: 1.1; letter-spacing: -0.045em; margin: 0 0 20px; text-wrap: balance; }
.dek { font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); margin: 0 auto 22px; max-width: 46ch; line-height: 1.45; text-wrap: pretty; }
.hero { max-width: 880px; margin: 0 auto 40px; }
.hero img { width: 100%; background: var(--paper-2); border-radius: 2px; }
figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.art-body { max-width: var(--read); margin: 0 auto; }
.art-body > p, .art-body li { font-size: 18px; line-height: 1.72; color: var(--ink); }
.art-body p { margin: 0 0 1.2em; }
.art-body > p:first-of-type:not(.empty):not(.no-cap)::first-letter { font-family: var(--serif); float: left; font-size: 4.4em; line-height: 0.82; padding: 0.06em 0.1em 0 0; color: var(--accent-mark); }
.art-body h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.12; letter-spacing: -0.035em; margin: 2.2em 0 0.7em; }
.art-body h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin: 1.8em 0 0.5em; }
.art-body a { color: var(--accent); }
.art-body ul, .art-body ol { padding-left: 1.2em; margin: 0 0 1.3em; }
.art-body li { margin-bottom: 0.4em; }
.art-body blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent-mark); }
.art-body blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.art-body figure { margin: 2.2em 0; }
.art-body figure img { max-height: 78vh; width: auto; max-width: 100%; margin-inline: auto; }
.art-body blockquote footer { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); margin-top: 12px; }
.art-body figure img { width: 100%; border-radius: 2px; background: var(--paper-2); }
/* A chart or logo with a transparent background still needs white behind it. */
.art-body figure img[src$=".png"], .hero img[src$=".png"] { background: #fff; }
.art-body code { font-family: var(--mono); font-size: 0.85em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
.art-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* Portrait figures sit beside founder profiles on wide screens. */
@media (min-width: 760px) {
  .art-body h3 + figure { float: right; width: 38%; margin: 0.4em 0 1em 28px; }
  .art-body h3 { clear: both; }
}

.facts { border: 1px solid var(--line); border-top: 3px solid var(--accent-mark); background: var(--accent-soft); padding: 20px 22px 8px; margin: 0 0 2.2em; }
.facts ul { list-style: none; padding: 0; margin: 0; }
.facts li { font-size: 15px; line-height: 1.55; padding: 0 0 12px 22px; position: relative; margin: 0; }
.facts li::before { content: ">"; position: absolute; left: 0; font-family: var(--mono); color: var(--accent); font-weight: 700; }

.faq { margin-top: 2.6em; border-top: 1px solid var(--line); clear: both; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 10px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); font-size: 18px; }
.faq details[open] summary::after { content: "\2212"; } /* a minus sign, not a dash */
.faq summary h3 { margin: 0; font-size: 19px; }
.faq details p { font-size: 16px; color: var(--ink-2); }

.disclosure { margin: 2.6em 0 1.4em; padding: 16px 18px 4px; border: 1px dashed var(--line); font-size: 14px; color: var(--muted); clear: both; }
.disclosure p { font-size: 14px; line-height: 1.6; }
.disclosure a { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.4em 0 0; }
.tags span { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--muted); }

.more { max-width: var(--wrap); margin: 72px auto 0; padding-top: 28px; border-top: 3px double var(--ink); }

/* ---- Footer ---------------------------------------------------------------- */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); line-height: 1.7; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.foot p { margin: 0; max-width: 70ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  .mast-bar { font-size: 10px; }
  .mast-date { display: none; }
  .mast-owner { text-align: left; }
  .art-body > p, .art-body li { font-size: 17px; }
}
@media (prefers-reduced-motion: no-preference) {
  .card-img img { transition: opacity 0.2s; }
  .card-img:hover img { opacity: 0.88; }
}

/* ==== Portal layer (2026-10-18): sections, rail, rows, two languages ======
   Patterned on the trade portals that carried SV Academy into Google and AI
   answers (Techsauce, Thairath, TechCrunch): lead story beside a numbered
   rail, one block per section, and on phones a dense list, not tall cards. */

.mast-tools { display: inline-flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none !important; font-size: 12px; color: var(--ink); }
.lang:hover { border-color: var(--ink); }
/* Industry sites wear a monogram in their accent colour instead of SV's >_. */
.mark.mark-text { justify-content: center; align-items: center; padding: 0; background: var(--accent-mark); }
.mark.mark-text span { font-family: var(--mono); font-weight: 700; font-size: 0.36em; line-height: 1; letter-spacing: -0.05em; color: #fff; }

/* The section nav scrolls sideways on a phone. The fade on its right edge says
   there is more; without it the last tab looks like the end of the list. */
.mast-nav { padding: 0; position: relative; }
.nav-track { display: flex; justify-content: center; gap: 2px 22px; overflow-x: auto; scrollbar-width: none; padding: 8px 4px; -webkit-overflow-scrolling: touch; }
.nav-track::-webkit-scrollbar { display: none; }
.nav-track a { white-space: nowrap; min-height: 36px; padding: 4px 2px; }
.mast-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent-mark); }
@media (max-width: 860px) {
  .nav-track { justify-content: flex-start; padding-right: 40px; }
  .mast-nav::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 44px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--paper)); }
}

/* Front block: lead + top-stories rail */
.front { display: grid; gap: 28px; padding-bottom: 32px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.front .card.lead { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
@media (min-width: 980px) {
  .front { grid-template-columns: minmax(0, 2.15fr) minmax(260px, 1fr); gap: 40px; align-items: start; }
  .front .card.lead { grid-template-columns: 1fr; gap: 18px; }
  .front .card.lead .card-title { font-size: clamp(34px, 3.6vw, 52px); }
}
.rail { border-top: 3px double var(--ink); padding-top: 12px; }
.rail .label { margin-bottom: 4px; }
.card.rank { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.card.rank:last-child { border-bottom: 0; }
.rank-n { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--accent-mark); font-variant-numeric: tabular-nums; }
.card.rank .card-title { font-size: 19px; line-height: 1.22; margin: 0; }
.card.rank .kicker { margin-bottom: 6px; }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

/* Section blocks */
.sec-block { padding: 34px 0 6px; }
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 22px; }
.sec-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; margin: 0; line-height: 1.05; }
.sec-head h2 a { text-decoration: none; }
.sec-head p { grid-column: 1; margin: 0; color: var(--muted); font-size: 14px; }
.sec-all { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--mono); font-size: 12px; text-decoration: none; color: var(--accent); white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.sec-block .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 28px 24px; }
.sec-block .card-title { font-size: 21px; }
.sec-block .card-dek { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sec-page-head { padding: 10px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.sec-page-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.045em; line-height: 1.08; margin: 0 0 10px; }
.sec-page-head p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.sec-page-head + .card.lead { margin-top: 0; }

/* Phone: tiles become rows (thumbnail beside headline), so a section block
   costs about one screen instead of four. */
@media (max-width: 640px) {
  .sec-block .card.tile, .more .card.tile, .home > .grid .card.tile { grid-template-columns: 1fr 104px; gap: 12px; align-items: start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .sec-block .card.tile .card-img, .more .card.tile .card-img, .home > .grid .card.tile .card-img { grid-column: 2; grid-row: 1; }
  .sec-block .card.tile .card-img img, .more .card.tile .card-img img, .home > .grid .card.tile .card-img img { aspect-ratio: 1; }
  .sec-block .card.tile .card-dek, .more .card.tile .card-dek, .home > .grid .card.tile .card-dek { display: none; }
  .sec-block .card-title, .more .card-title, .home > .grid .card-title { font-size: 18px; }
  .sec-block .grid, .more .grid, .home > .grid { gap: 16px; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-all { grid-column: 1; grid-row: auto; min-height: 32px; }
}

figcaption .credit { display: block; margin-top: 4px; opacity: 0.85; }
.lang-note { margin: 14px 0 0; font-family: var(--mono); font-size: 12px; }
.lang-note a { color: var(--accent); }
.card-title a, .card-title { overflow-wrap: anywhere; }
.nb { white-space: nowrap; }

/* Thai: Trirong for headlines, Sarabun for text. No uppercase or wide
   tracking (Thai has no capitals and tracking breaks its clusters), and a
   taller line-height for vowel and tone marks above and below the line. */
:lang(th) { --serif: "Trirong", Georgia, serif; --sans: "Sarabun", system-ui, sans-serif; --mono: "Sarabun", "JetBrains Mono", ui-monospace, monospace; }
:lang(th) body, body:lang(th) { line-height: 1.75; }
:lang(th) .label, :lang(th) .kicker, :lang(th) .mast-tag { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-weight: 600; font-size: 13px; }
:lang(th) .art-head h1, :lang(th) .card-title, :lang(th) .sec-head h2, :lang(th) .sec-page-head h1 { letter-spacing: -0.01em; line-height: 1.32; font-weight: 600; }
:lang(th) .art-head h1 { font-size: clamp(30px, 5vw, 52px); }
:lang(th) .card.lead .card-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.3; }
:lang(th) .art-body > p, :lang(th) .art-body li { line-height: 1.85; }
:lang(th) .art-body > p:first-of-type::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; font-family: inherit; }
:lang(th) .byline, :lang(th) .nav-track, :lang(th) .foot { font-family: var(--sans); }
:lang(th) .art-body blockquote p { font-style: normal; line-height: 1.5; }

.mast-name.long { font-size: clamp(30px, 7.2vw, 88px); letter-spacing: -0.045em; }
@media (max-width: 420px) {
  .mast-brand { gap: 10px; }
  .mast-name.long { font-size: 7.4vw; }
  .mast-brand .mark { font-size: 40px; }
}

/* Wide screens: sections sit two to a row, so a section with one or two
   stories does not leave half the page empty. */
@media (min-width: 980px) {
  .sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; }
  .sec-grid .sec-block .grid { grid-template-columns: 1fr 1fr; }
  .sec-grid .sec-head h2 { font-size: 28px; }
}

/* "In this story": the companies and people the story names, each linking to
   its profile page on this site. */
.in-story { margin: 2.4em 0 0; padding-top: 14px; border-top: 1px solid var(--line); clear: both; }
.in-story ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.in-story li { margin: 0; }
.in-story a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; color: var(--ink); }
.in-story a:hover { border-color: var(--accent-mark); color: var(--accent); }
.profile-links { font-family: var(--mono); font-size: 13px; margin-top: 12px !important; }
.profile-links a { color: var(--accent); }
.profile-disc { font-size: 13px; color: var(--muted) !important; margin-top: 8px !important; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2.4em 0 0; clear: both; }
.share .label { margin: 0 6px 0 0; }
.share a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-family: var(--mono); font-size: 12px; }
.share a:hover { background: var(--accent-mark); }

/* Tablets: two sections side by side, each a list of thumbnail rows, so a
   768px screen is not four screens of stacked picture cards. */
@media (min-width: 720px) and (max-width: 979px) {
  .sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: start; }
  .sec-grid .sec-block .grid { grid-template-columns: 1fr; gap: 14px; }
  .sec-grid .sec-block .card.tile { grid-template-columns: 1fr 96px; gap: 12px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .sec-grid .sec-block .card.tile .card-img { grid-column: 2; grid-row: 1; }
  .sec-grid .sec-block .card.tile .card-img img { aspect-ratio: 1; }
  .sec-grid .sec-block .card.tile .card-dek { display: none; }
  .sec-grid .sec-block .card-title { font-size: 18px; }
  .sec-grid .sec-head { grid-template-columns: 1fr; }
  .sec-grid .sec-all { grid-column: 1; grid-row: auto; min-height: 32px; }
  .front .card.lead { grid-template-columns: 1fr; }
}

.correction { margin: 16px auto 0; max-width: 46ch; padding: 10px 14px; border-left: 3px solid var(--accent-mark); background: var(--accent-soft); font-size: 15px; text-align: left; }
.correction .label { display: block; margin: 0 0 4px; }
.corrections { list-style: none; padding: 0; }
.corrections li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.corrections li p { margin: 6px 0 0; font-size: 16px; }

/* Past the content width the article stops padding the "More from" block,
   so it gets the same inner gutter as the masthead and footer (56 px at 1280). */
@media (min-width: 1232px) {
  .more { padding-inline: var(--gutter); }
}

/* "More from" holds four stories: one row of four, not three and a lone card. */
@media (min-width: 980px) {
  .more .grid { grid-template-columns: repeat(4, 1fr); }
}

/* The label above a section or profile title: the same gap as a story kicker. */
.sec-page-head .label { margin: 0 0 14px; }

/* A two-line tagline splits evenly instead of leaving "Thailand" alone. */
.mast-tag { text-wrap: balance; }

/* The outlined wordmark stays sharp and switches with the reading theme. */
[data-layout="newsdesk"] .desk-name { display: block; width: 208px; flex: 0 0 auto; line-height: 1; }
[data-layout="newsdesk"] .desk-name img { width: 100%; height: auto; }
[data-layout="newsdesk"] .wordmark-dark { display: none; }
[data-layout="newsdesk"][data-theme="dark"] .wordmark-dark { display: block; }
[data-layout="newsdesk"][data-theme="dark"] .wordmark-light { display: none; }
@media (max-width: 959px) { [data-layout="newsdesk"] .desk-name { width: 179px; } }
@media (max-width: 640px) { [data-layout="newsdesk"] .desk-name { width: 128px; } }


/* SV News desk: a compact editorial surface, enabled per publication. */
:root[data-layout="newsdesk"] {
  --wrap: 1320px; --read: 700px; --gutter: clamp(18px, 4vw, 48px);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --tap: 44px; --tabbar-h: 62px; --r-control: 6px; --r-media: 3px; --r-sheet: 16px;
  --z-bar: 20; --z-progress: 22; --z-toast: 100;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --lift-1: 0 8px 16px rgb(2 12 15 / .1);
  --lift-3: 0 20px 50px rgb(2 12 15 / .3);
  --scrim: rgb(3 12 15 / .82); --photo-ink: #f3f1e8; --photo-surface: #13282d;
  --accent-soft: color-mix(in srgb, var(--accent-mark) 9%, transparent);
}
[data-layout="newsdesk"] body { font-size: 16px; line-height: 1.55; }
[data-layout="newsdesk"] button, [data-layout="newsdesk"] input { font: inherit; }
[data-layout="newsdesk"] button, [data-layout="newsdesk"] a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
[data-layout="newsdesk"] button { cursor: pointer; }
[data-layout="newsdesk"] :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[data-layout="newsdesk"] [hidden] { display: none !important; }
[data-layout="newsdesk"] .js-only { display: none !important; }
[data-layout="newsdesk"][data-enhanced] .js-only { display: inline-flex !important; }
[data-layout="newsdesk"][data-enhanced] .explore-controls.js-only { display: flex !important; }
[data-layout="newsdesk"] .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.desk-icon { width: 20px; height: 20px; flex-shrink: 0; }
.desk-mast, .desk-home { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.desk-utility { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s4); min-height: 35px; color: var(--muted); font: 10px/1.5 var(--mono); border-bottom: 1px solid var(--line); }
.desk-utility a { text-decoration: none; }
.desk-utility a:hover { color: var(--accent); text-decoration: underline; }
.desk-utility > a { color: var(--ink-2); justify-self: end; }
.desk-utility > span:nth-child(2) { text-align: center; }
.utility-mobile { display: none; }
.desk-brand-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s5); padding-block: var(--s4); }
.desk-brand { display: flex; align-items: center; justify-content: center; text-decoration: none; min-width: 0; }
.desk-brand .mark { font-size: 42px; border: 1px solid var(--line); }
.desk-logo { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.desk-name { font: 400 clamp(35px, 4vw, 52px)/1 var(--serif); letter-spacing: -.05em; margin: 0; white-space: nowrap; }
.desk-edition-block { min-width: 0; }
.desk-brand-caption { display: block; max-width: 200px; font: 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.desk-edition-compact { display: none; font: 9px/1.5 var(--mono); letter-spacing: .06em; color: var(--muted); }
.desk-tools { display: flex; align-items: center; justify-self: end; gap: var(--s2); }
.desk-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--tap); min-width: var(--tap); padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--r-control); background: transparent; color: var(--ink); text-decoration: none; font: 13px/1.3 var(--sans); transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.desk-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.desk-button:active { transform: scale(.97); }
.desk-button:disabled { opacity: .4; cursor: default; transform: none; }
.desk-button.primary { background: var(--accent); color: var(--paper); border-color: var(--accent); }
[data-layout="newsdesk"] .theme { border-radius: var(--r-control); width: var(--tap); height: var(--tap); padding: var(--s2); }
.desk-tools kbd { color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; font-size: 10px; margin-left: var(--s5); }
.desk-nav { display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.desk-nav .nav-track { gap: var(--s5); justify-content: center; padding: 0; min-width: 0; }
.desk-nav a { display: flex; align-items: center; min-height: var(--tap); text-decoration: none; font-size: 13px; color: var(--ink-2); border-bottom: 2px solid transparent; padding-block: var(--s2); }
.desk-nav a:hover, .desk-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.desk-edition { display: block; margin-top: var(--s1); font: 9px/1.5 var(--mono); letter-spacing: .1em; color: var(--muted); }
.desk-intro { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: var(--s3); padding-block: var(--s4); color: var(--ink-2); font-size: 14px; }
.desk-intro p { grid-column: 2; margin: 0; text-align: center; text-wrap: balance; }
.desk-intro > span { grid-column: 3; justify-self: end; font: 10px/1.5 var(--mono); color: var(--muted); white-space: nowrap; }
.desk-front { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: var(--s6); min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: var(--s6); }
.desk-focus { min-width: 0; }
.desk-story { min-width: 0; }
.desk-story a { text-decoration: none; }
.desk-photo { position: relative; overflow: hidden; border-radius: var(--r-media); background: var(--paper-2); }
.desk-photo > a { display: block; }
.desk-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; transition: transform .65s var(--ease); }
.desk-photo:hover img { transform: scale(1.025); }
.photo-expand { position: absolute; inset: auto var(--s3) var(--s3) auto; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--tap); padding: var(--s2) var(--s3); border-radius: var(--r-control); border: 1px solid rgb(243 241 232 / .3); background: var(--scrim); color: var(--photo-ink); font: 11px/1.3 var(--sans); backdrop-filter: blur(12px); }
.photo-expand:hover { background: var(--photo-surface); }
.desk-story-text { padding-top: var(--s4); }
[data-layout="newsdesk"] .kicker { margin-bottom: var(--s2); font-size: 10px; letter-spacing: .12em; }
.desk-story-title { font: 500 24px/1.15 var(--sans); letter-spacing: -.025em; margin: 0; text-wrap: pretty; overflow-wrap: anywhere; }
.desk-story-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.desk-lead .desk-story-text { text-align: center; }
.desk-lead .desk-story-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -.025em; max-width: 25ch; margin-inline: auto; text-wrap: balance; }
.desk-dek { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin: var(--s3) 0 0; max-width: 67ch; }
.desk-lead .desk-dek { margin-inline: auto; text-wrap: pretty; }
.desk-story-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); min-width: 0; }
.desk-lead .desk-story-meta { justify-content: center; gap: var(--s4); flex-wrap: wrap; }
[data-layout="newsdesk"] .byline { font-size: 10px; line-height: 1.7; }
.save-button { border-color: transparent; padding-inline: var(--s2); color: var(--muted); }
.save-button [data-save-label] { font-size: 11px; }
.save-button[aria-pressed="true"] { color: var(--accent); }
.save-button[aria-pressed="true"] svg { fill: var(--accent-soft); }
.desk-section-label { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-width: 0; margin-bottom: var(--s4); }
.desk-section-label h2 { font: 500 21px/1.3 var(--sans); letter-spacing: -.02em; margin: 0; }
.desk-focus > .desk-section-label { padding-bottom: var(--s3); border-bottom: 1px solid var(--line); margin-bottom: var(--s4); }
.shadow-gallery { display: grid; gap: var(--s5); min-width: 0; }
.desk-support .desk-photo img { aspect-ratio: 2.3; }
.desk-support .desk-story-title { font-size: 23px; }
.desk-support .photo-expand span, .desk-row .photo-expand span { display: none; }
.desk-support .desk-story-text { padding-top: var(--s3); }
.desk-support .desk-story-meta { margin-top: var(--s1); }
.desk-support .save-button span { display: none; }
[data-layout="newsdesk"][data-enhanced] .rail-controls.js-only { display: none !important; }
.swipe-hint { display: none; }
.desk-explore { padding-top: var(--s5); scroll-margin-top: var(--s5); }
.desk-link { display: inline-flex; gap: var(--s2); align-items: center; min-height: var(--tap); color: var(--accent); background: none; border: 0; padding: 0; font-size: 12px; }
.explore-controls { gap: var(--s4); justify-content: space-between; align-items: center; width: 100%; margin-bottom: var(--s4); }
.topic-filters { display: flex; align-items: center; gap: var(--s1); overflow-x: auto; min-width: 0; scrollbar-width: thin; }
.topic-filter { flex-shrink: 0; min-height: var(--tap); padding: var(--s2) var(--s3); background: transparent; border: 1px solid transparent; border-radius: var(--r-control); color: var(--muted); font-size: 12px !important; }
.topic-filter:hover { color: var(--ink); border-color: var(--line); }
.topic-filter[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); border-color: var(--line); }
.desk-search { display: flex; align-items: center; gap: var(--s2); min-height: var(--tap); border: 1px solid var(--line); border-radius: var(--r-control); color: var(--muted); padding: var(--s2) var(--s3); background: var(--paper-2); }
.desk-search:focus-within { border-color: var(--accent); }
.desk-search input { min-width: 0; width: 100%; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 14px !important; }
.desk-search input::placeholder { color: var(--muted); }
.explore-controls .desk-search { width: min(30%, 310px); flex-shrink: 0; }
.desk-archive { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.desk-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s4); }
.desk-row .desk-photo img { aspect-ratio: 1; }
.desk-row .photo-expand { bottom: var(--s1); right: var(--s1); padding: var(--s1); background: var(--scrim); }
.desk-row .desk-story-text { padding: 0; }
.desk-row .desk-story-title { font-size: 18px; line-height: 1.25; }
.desk-row .desk-story-meta { display: block; margin-top: var(--s2); }
.desk-row .save-button { float: right; }
.desk-row .byline .nb { display: none; }
.desk-trust { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: var(--s6); padding-block: var(--s4); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.desk-trust a { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink-2); text-decoration: none; min-height: var(--tap); }
[data-layout="newsdesk"] .foot { padding-block: var(--s5); font: 11px/1.7 var(--sans); gap: var(--s4); }
[data-layout="newsdesk"] .foot-links { gap: var(--s3); align-items: center; }
[data-layout="newsdesk"] .foot-links a { display: inline-flex; align-items: center; min-height: var(--tap); }
[data-layout="newsdesk"] .foot-own { max-width: 75ch; }
.desk-bottom { display: none; }
.desk-dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sheet); padding: var(--s5); width: min(680px, calc(100% - 32px)); max-height: min(86dvh, 860px); box-shadow: var(--lift-3); }
.desk-dialog::backdrop { background: var(--scrim); backdrop-filter: blur(9px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.dialog-head h2 { font: 500 28px/1.2 var(--sans); letter-spacing: -.03em; margin: 0; }
.dialog-head p { margin: var(--s1) 0 0; color: var(--muted); font-size: 12px; }
.dialog-status { position: sticky; top: 0; z-index: 1; margin: 0 0 var(--s4); padding: var(--s3); border: 1px solid var(--accent); border-radius: var(--r-control); background: var(--paper-2); color: var(--ink); font-size: 14px; }
.dialog-status:empty { display: none; }
.dialog-story { display: flex; gap: var(--s3); align-items: center; padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.dialog-story > a { display: flex; gap: var(--s4); align-items: center; flex: 1; min-width: 0; text-decoration: none; }
.dialog-story img { width: 96px; height: 72px; flex-shrink: 0; object-fit: cover; border-radius: var(--r-media); }
.dialog-story strong { display: block; font-size: 17px; line-height: 1.3; font-weight: 500; }
.dialog-story small, .dialog-story time { display: block; color: var(--muted); font-size: 11px; }
.dialog-story small { color: var(--accent); margin-bottom: var(--s1); }
.dialog-story time { margin-top: var(--s2); }
.dialog-story .save-button span { display: none; }
.desk-empty { padding-block: var(--s6); font-size: 15px; color: var(--muted); }
.photo-dialog { width: min(1050px, calc(100% - 32px)); }
.photo-dialog figure { margin: 0; }
.photo-dialog figure > img { width: 100%; max-height: 54dvh; object-fit: contain; background: var(--paper-2); border-radius: var(--r-media); }
.photo-dialog h2 { font: 500 21px/1.3 var(--sans); margin: var(--s4) 0 var(--s2); color: var(--ink); }
.photo-dialog figcaption p { margin: var(--s1) 0; font: 12px/1.5 var(--sans); }
.gallery-actions { display: flex; justify-content: space-between; gap: var(--s4); margin-top: var(--s4); }
.gallery-actions > div { display: flex; gap: var(--s2); }
.desk-toast { position: fixed; bottom: var(--s5); left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: var(--z-toast); max-width: calc(100vw - 32px); border: 1px solid var(--accent); border-radius: var(--r-control); background: var(--paper-2); color: var(--ink); padding: var(--s3) var(--s5); box-shadow: var(--lift-3); font-size: 14px; transition: opacity .2s, transform .2s; }
.desk-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: var(--z-progress); pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
[data-layout="newsdesk"] .art-head { text-align: center; padding-top: var(--s6); max-width: 900px; }
[data-layout="newsdesk"] .art-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 58px); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; max-width: 26ch; margin-inline: auto; }
[data-layout="newsdesk"] .dek { margin-inline: auto; max-width: 65ch; font-size: clamp(17px, 2vw, 21px); }
[data-layout="newsdesk"] .art-head .byline { font-size: 12px; }
.article-actions { display: flex; align-items: center; justify-content: center; gap: var(--s2); margin-top: var(--s4); flex-wrap: wrap; }
.article-actions .save-button { border-color: var(--line); }
[data-layout="newsdesk"] .hero { max-width: 900px; margin-bottom: var(--s6); }
[data-layout="newsdesk"] .hero img { max-height: 520px; object-fit: contain; }
[data-layout="newsdesk"] .hero .desk-photo img { aspect-ratio: auto; }
[data-layout="newsdesk"] .art-body h2, [data-layout="newsdesk"] .art-body h3, [data-layout="newsdesk"] .sec-page-head h1, [data-layout="newsdesk"] .card-title { font-family: var(--sans); }
[data-layout="newsdesk"] .art-body > p:first-of-type:not(.empty):not(.no-cap)::first-letter { float: none; font: inherit; padding: 0; color: inherit; }
[data-layout="newsdesk"] .facts { border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: var(--s5); border-radius: var(--r-control); }
[data-layout="newsdesk"] .facts li:last-child { padding-bottom: 0; }
[data-layout="newsdesk"] .share a, [data-layout="newsdesk"] .in-story a { min-height: var(--tap); }
[data-layout="newsdesk"] .more { margin-top: var(--s7); border-top: 1px solid var(--line); }
[data-layout="newsdesk"] .sec-page-head { padding-top: var(--s2); }
[data-layout="newsdesk"] .home { padding-top: var(--s5); }
[data-layout="newsdesk"] .card.lead .card-title { font-family: var(--sans); font-size: clamp(28px, 4vw, 42px); }
[data-layout="newsdesk"] .skip { z-index: var(--z-toast); }
[data-layout="newsdesk"]:lang(th) .desk-name { font-family: "Bodoni Moda", Georgia, serif; }
[data-layout="newsdesk"]:lang(th) .desk-story-title { line-height: 1.4; letter-spacing: -.01em; }
[data-layout="newsdesk"]:lang(th) .desk-brand-caption, [data-layout="newsdesk"]:lang(th) .desk-edition { letter-spacing: 0; }
[data-layout="newsdesk"]:lang(th) .desk-utility { font-family: var(--sans); }
[data-layout="newsdesk"]:lang(th) .desk-lead .desk-story-title, [data-layout="newsdesk"]:lang(th) .art-head h1 { font-family: "Trirong", serif; font-weight: 600; }
[data-layout="newsdesk"]:lang(th) .desk-lead .desk-story-title { font-size: clamp(26px, 2.8vw, 36px); }
@media (min-width: 960px) {
  .desk-focus .desk-section-label { min-height: 28px; }
  .desk-focus .shadow-gallery .desk-support + .desk-support { padding-top: var(--s4); border-top: 1px solid var(--line); }
}
@media (max-width: 1100px) {
  .desk-tools kbd { display: none; }
  .desk-brand-row { gap: var(--s4); }
  .desk-front { gap: var(--s5); }
  .desk-archive { grid-template-columns: 1fr; gap: var(--s3); }
  .desk-row { grid-template-columns: 130px minmax(0, 1fr); gap: var(--s4); }
  .desk-row .desk-photo img { aspect-ratio: 16/10; }
  .desk-row .desk-story-meta { display: flex; margin-top: var(--s1); }
  .desk-row .byline .nb { display: inline; }
  .desk-row .save-button { float: none; }
  .explore-controls { flex-wrap: wrap; }
  .explore-controls .desk-search { width: 100%; }
}
@media (max-width: 959px) {
  .desk-front { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .desk-lead { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: center; }
  .desk-lead .desk-story-text { padding-top: 0; }
  .desk-lead .desk-photo img { aspect-ratio: 4/5; }
  .desk-lead .desk-story-title { font-size: 32px; }
  .desk-lead .desk-dek { font-size: 14px; }
  .shadow-gallery { display: flex; overflow-x: auto; gap: var(--s4); scroll-snap-type: x mandatory; scroll-padding-inline: var(--s1); padding: var(--s2) var(--s1) var(--s4); scrollbar-width: thin; }
  .shadow-gallery .desk-support { flex: 0 0 47%; scroll-snap-align: start; padding: var(--s3); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-media); box-shadow: var(--lift-1); transform: scale(.97); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
  .shadow-gallery .desk-support.is-active { transform: scale(1); box-shadow: var(--lift-3); }
  .desk-support .desk-photo img { aspect-ratio: 2; }
  .desk-support .desk-story-title { font-size: 21px; }
  [data-layout="newsdesk"][data-enhanced] .rail-controls.js-only { display: flex !important; gap: var(--s2); }
  .desk-focus > .desk-section-label { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
  .swipe-hint { display: flex; align-items: center; gap: var(--s2); color: var(--muted); font: 10px/1.5 var(--mono); margin: var(--s1) 0 0; }
  .desk-tools kbd { display: none; }
  .desk-tools .search-trigger span { display: none; }
  .desk-tools .saved-trigger [data-saved-count] { display: none; }
  .desk-brand-caption { max-width: 160px; font-size: 9px; }
}
@media (max-width: 900px) {
  .desk-lead { display: block; }
  .desk-lead .desk-photo img { aspect-ratio: 16/9; }
  .desk-lead .desk-story-text { padding-top: var(--s4); }
}
@media (max-width: 640px) {
  [data-layout="newsdesk"] body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .desk-utility { display: flex; justify-content: center; gap: var(--s3); min-height: 44px; font-size: 11px; }
  .desk-utility a { display: inline-flex; align-items: center; min-height: 44px; }
  .desk-utility .utility-desktop { display: none; }
  .desk-utility .utility-mobile { display: inline; }
  .desk-utility .mast-date { display: none; }
  .desk-utility > span:nth-child(2) { display: block; }
  .desk-brand-caption, .desk-edition { display: none; }
  .desk-edition-compact { display: block; }
  .desk-brand-row { padding-block: var(--s3); gap: var(--s2); }
  .desk-name { font-size: 36px; }
  .desk-logo, .desk-brand .mark { width: 32px; height: 32px; font-size: 32px; }
  .desk-brand { gap: var(--s2); }
  [data-layout="newsdesk"][data-enhanced] .desk-tools .search-trigger, [data-layout="newsdesk"][data-enhanced] .desk-tools .saved-trigger { display: none !important; }
  .desk-tools { gap: var(--s1); }
  .desk-tools .desk-button { padding-inline: var(--s2); }
  .desk-nav .nav-track { gap: var(--s4); padding-right: var(--s4); justify-content: flex-start; }
  .desk-nav { position: relative; }
  .desk-nav::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 18px; background: linear-gradient(90deg, transparent, var(--paper)); pointer-events: none; }
  .desk-nav a { font-size: 12px; }
  .desk-intro { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: var(--s2); padding-block: var(--s3); font-size: 12px; }
  .desk-intro p { max-width: none; }
  .desk-intro > span { font-size: 9px; }
  .desk-lead { display: block; }
  .desk-lead .desk-photo img { aspect-ratio: 16/9; object-position: center; }
  .desk-lead .photo-expand { width: var(--tap); padding: var(--s2); }
  .desk-lead .photo-expand span { display: none; }
  .desk-lead .desk-story-text { padding-top: var(--s3); }
  .desk-lead .desk-story-title { font-size: clamp(29px, 7.6vw, 36px); max-width: none; }
  .desk-lead .desk-dek { font-size: 14px; margin-top: var(--s2); }
  .desk-lead .desk-story-meta { margin-top: var(--s1); }
  .desk-front { padding-bottom: var(--s5); }
  .desk-section-label h2 { font-size: 19px; }
  .desk-section-label { margin-bottom: var(--s3); }
  .shadow-gallery { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .shadow-gallery .desk-support { flex-basis: 84%; }
  .desk-support .desk-photo img { aspect-ratio: 2.3; }
  .desk-support .desk-story-title { font-size: 21px; }
  .desk-support .byline { font-size: 9px; }
  .desk-explore { padding-top: var(--s4); }
  .explore-controls { gap: var(--s2); }
  .topic-filters { width: 100%; }
  .topic-filter { font-size: 11px !important; }
  .desk-row { grid-template-columns: 94px minmax(0, 1fr); gap: var(--s3); }
  .desk-row .desk-photo img { aspect-ratio: 1; }
  .desk-row .desk-story-title { font-size: 17px; }
  .desk-row .byline { font-size: 9px; }
  .desk-row .byline .nb { display: none; }
  .desk-row .save-button span { display: none; }
  .desk-row .desk-story-meta { gap: var(--s1); }
  .desk-row .photo-expand { min-height: 44px; width: 44px; }
  .desk-trust { display: none; }
  [data-layout="newsdesk"] .foot { margin-top: var(--s5); }
  [data-layout="newsdesk"] .foot-own { font-size: 10px; }
  .desk-bottom { position: fixed; inset: auto 0 0; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--paper); border-top: 1px solid var(--line); z-index: var(--z-bar); box-shadow: 0 -8px 28px rgb(3 12 15 / .12); }
  .desk-bottom a, .desk-bottom button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1); min-height: var(--tabbar-h); border: 0; background: transparent; padding: var(--s2) var(--s1); text-decoration: none; color: var(--muted); font-size: 10px; }
  .desk-bottom a[aria-current="page"], .desk-bottom button[aria-expanded="true"] { color: var(--accent); background: var(--accent-soft); }
  .desk-toast { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--s4)); }
  .desk-dialog { width: calc(100% - 20px); padding: var(--s4); max-height: 88dvh; border-radius: var(--r-sheet); }
  .dialog-story img { width: 72px; height: 64px; }
  .dialog-story > a { gap: var(--s3); }
  .dialog-story strong { font-size: 15px; }
  .dialog-story time { font-size: 10px; }
  .photo-dialog figure > img { max-height: 46dvh; min-height: 160px; }
  .photo-dialog h2 { font-size: 19px; }
  .gallery-actions .desk-button { font-size: 12px; }
  [data-layout="newsdesk"] .art-head { padding-top: var(--s5); }
  [data-layout="newsdesk"] .art-head h1 { font-size: 33px; }
  [data-layout="newsdesk"] .art-head .byline { font-size: 11px; }
  [data-layout="newsdesk"] .art-body > p, [data-layout="newsdesk"] .art-body li { font-size: 17px; }
  [data-layout="newsdesk"] .facts { padding: var(--s4); }
  [data-layout="newsdesk"] .facts li { font-size: 14px; }
  [data-layout="newsdesk"]:lang(th) .desk-name { font-size: 34px; }
  [data-layout="newsdesk"]:lang(th) .desk-lead .desk-story-title { font-size: 26px; }
  [data-layout="newsdesk"]:lang(th) .desk-utility { font-size: 11px; }
}
@media (max-width: 359px) {
  .desk-tools { flex-direction: column; }
  .desk-brand-row { gap: var(--s2); }
  .desk-utility { gap: var(--s2); }
}
@media (prefers-reduced-motion: reduce) {
  [data-layout="newsdesk"] *, [data-layout="newsdesk"] *::before, [data-layout="newsdesk"] *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* The cover keeps its editorial copy still while the photograph has room to move. */
[data-layout="newsdesk"] .desk-name { width: 220px; }
.desk-brand-row { padding-block: 15px; }
.desk-edition-block { border-left: 2px solid var(--accent); padding-left: var(--s3); }
.desk-intro { padding-block: 13px; }
.desk-intro p { font-size: 12px; letter-spacing: .015em; }
.desk-front.desk-cover { display: flex; flex-direction: column; gap: 0; border: 0; padding: 0; }
/* Tabs precede their panels for keyboard access, with the photo presented first. */
.cover-stage { order: 1; position: relative; overflow: clip; isolation: isolate; background: #08161b; border: 1px solid var(--line); border-radius: 2px; box-shadow: 0 20px 50px -28px rgb(0 8 12 / .6); }
.cover-panel.desk-lead { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 520px; padding: 66px 72px 72px; color: #f3f1e8; isolation: isolate; }
.cover-photo { position: absolute; inset: -24px; z-index: -3; will-change: transform; transform: translate3d(0, 0, 0); }
.cover-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cover-veil { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(180deg, rgb(3 14 19 / .28), rgb(3 14 19 / .66) 32%, rgb(3 14 19 / .75) 76%, rgb(3 14 19 / .89)), linear-gradient(90deg, rgb(3 14 19 / .22), transparent 32%, transparent 68%, rgb(3 14 19 / .22)); }
.cover-corner { position: absolute; width: 26px; height: 26px; pointer-events: none; opacity: .55; border-color: #b4ebe0; border-style: solid; }
.cover-corner-start { inset: 22px auto auto 22px; border-width: 1px 0 0 1px; }
.cover-corner-end { inset: auto 22px 22px auto; border-width: 0 1px 1px 0; }
.cover-panel .cover-copy { width: 100%; max-width: 920px; padding: 0; text-align: center; }
.cover-eyebrow { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--s3); color: #b4ebe0; font: 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 21px; }
.cover-rule { width: 20px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: skewX(-28deg); }
.cover-separator { opacity: .45; }
[data-layout="newsdesk"] .cover-eyebrow .kicker { margin: 0; color: inherit; font: inherit; letter-spacing: inherit; }
.cover-eyebrow .kicker a { color: inherit; }
.cover-panel.desk-lead .desk-story-title { max-width: 24ch; margin: 0 auto; font-family: var(--serif); font-size: clamp(38px, 4.65vw, 61px); font-weight: 400; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; color: #fffef7; }
.cover-panel .desk-story-title a { color: inherit; text-shadow: 0 2px 30px rgb(0 0 0 / .22); }
.cover-panel .desk-story-title a:hover { text-decoration-color: rgb(180 235 224 / .65); text-decoration-thickness: 1px; text-underline-offset: 7px; }
.cover-panel .desk-dek { max-width: 65ch; margin: 20px auto 0; color: #e1e9e5; font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.cover-actions { display: flex; align-items: center; justify-content: center; gap: var(--s5); margin-top: 21px; }
.cover-read { display: inline-flex; align-items: center; justify-content: center; gap: var(--s4); min-height: 44px; padding: 8px 18px; color: #10282b; background: #b4ebe0; border: 1px solid #b4ebe0; border-radius: 2px; font-size: 13px; }
.cover-read .desk-icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.cover-read:hover .desk-icon { transform: translateX(4px); }
.cover-panel .save-button { color: #d2e2dc; border-color: rgb(212 232 223 / .2); border-radius: 2px; padding-inline: var(--s3); }
.cover-panel .save-button:hover, .cover-panel .save-button[aria-pressed="true"] { background: rgb(180 235 224 / .1); color: #b4ebe0; border-color: rgb(180 235 224 / .55); }
.cover-meta { margin-top: 13px; }
[data-layout="newsdesk"] .cover-meta .byline { color: #bacac5; margin: 0; font-size: 10px; }
.cover-panel > .photo-expand { inset: auto 23px 12px auto; z-index: 2; border: 0; background: transparent; border-radius: 0; color: #dce9e3; font-size: 10px; backdrop-filter: none; }
.cover-panel > .photo-expand:hover { color: #b4ebe0; background: rgb(180 235 224 / .08); }
.cover-panel > .photo-expand .desk-icon { width: 16px; height: 16px; }
.cover-motion { position: absolute; inset: auto auto 12px 23px; z-index: 3; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; min-width: 44px; border: 0; border-radius: 0; padding: var(--s2); color: #dce9e3; background: transparent; font: 10px/1.3 var(--mono) !important; }
.cover-motion:hover { color: #b4ebe0; background: rgb(180 235 224 / .08); }
.motion-glyph { display: inline-block; width: 9px; height: 10px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.cover-motion[aria-pressed="true"] .motion-glyph { width: 0; height: 0; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; border-style: solid; }
.cover-index { --index-width: calc(100% / var(--cover-count, 3)); order: 2; min-width: 0; position: relative; display: grid; grid-template-columns: repeat(var(--cover-count, 3), minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--paper-2); isolation: isolate; }
.cover-index::before { content: ""; position: absolute; inset: 0 auto auto 0; width: var(--index-width); height: 2px; background: var(--accent); transform: translateX(calc(var(--cover-active, 0) * 100%)); z-index: 2; transition: transform .45s var(--ease); pointer-events: none; }
.cover-index-entry { min-width: 0; }
.cover-index-entry + .cover-index-entry { border-left: 1px solid var(--line); }
.cover-tab { display: grid; grid-template-columns: 18px 76px minmax(0, 1fr); align-items: center; gap: 13px; width: 100%; min-height: 112px; padding: 17px 20px; border: 0; border-radius: 0; color: var(--ink); background: transparent; text-align: left; text-decoration: none; transition: background .25s var(--ease); }
[data-layout="newsdesk"][data-enhanced] .cover-tab.js-only { display: grid !important; }
[data-layout="newsdesk"][data-enhanced] .cover-fallback { display: none !important; }
.cover-tab:hover, .cover-tab[aria-selected="true"] { background: var(--accent-soft); }
.cover-tab:focus-visible { outline-offset: -4px; }
.cover-tab-number { align-self: start; padding-top: 4px; font: 10px/1 var(--mono); color: var(--muted); }
.cover-tab[aria-selected="true"] .cover-tab-number { color: var(--accent); }
.cover-tab-image { display: block; width: 76px; height: 62px; object-fit: cover; filter: saturate(.6); opacity: .72; transition: filter .25s, opacity .25s; }
.cover-tab[aria-selected="true"] .cover-tab-image, .cover-tab:hover .cover-tab-image { filter: saturate(1); opacity: 1; }
.cover-tab-copy { display: block; min-width: 0; }
.cover-tab-kicker { display: block; margin-bottom: 7px; color: var(--muted); font: 9px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.cover-tab[aria-selected="true"] .cover-tab-kicker { color: var(--accent); }
.cover-tab-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font: 500 14px/1.35 var(--sans); letter-spacing: -.01em; }
:root[data-layout="newsdesk"]:lang(th) .cover-panel .desk-story-title { font-family: "Trirong", serif; font-weight: 500; font-size: clamp(30px, 3.3vw, 43px); line-height: 1.4; letter-spacing: 0; max-width: 30ch; }
:root[data-layout="newsdesk"]:lang(th) .cover-eyebrow, :root[data-layout="newsdesk"]:lang(th) .cover-tab-kicker { font-family: var(--sans); letter-spacing: 0; }
:root[data-layout="newsdesk"]:lang(th) .cover-tab-title { line-height: 1.55; font-size: 14px; }
.desk-cover + .desk-explore { padding-top: 28px; }
.desk-cover + .desk-explore .desk-section-label { margin-bottom: 13px; }

@media (min-width: 641px) and (max-width: 1100px) {
  .cover-panel.desk-lead { min-height: 500px; padding-inline: 48px; }
  .cover-tab { grid-template-columns: 16px 58px minmax(0, 1fr); gap: 9px; padding-inline: 13px; }
  .cover-tab-image { width: 58px; height: 62px; }
  .cover-tab-title { font-size: 13px; }
}
@media (max-width: 640px) {
  .desk-brand-row { grid-template-columns: 44px minmax(0, 1fr) 44px; min-height: 62px; padding-block: 9px; gap: 8px; }
  .desk-edition-block { display: none; }
  .desk-brand { grid-column: 2; grid-row: 1; }
  [data-layout="newsdesk"] .desk-name { width: clamp(153px, 43vw, 168px); }
  .desk-tools { display: contents; }
  .desk-tools > a { grid-column: 3; grid-row: 1; justify-self: end; }
  .desk-tools > .theme { grid-column: 1; grid-row: 1; justify-self: start; }
  .desk-intro { padding-block: 10px; }
  .desk-intro p { font-size: 10px; line-height: 1.55; letter-spacing: 0; }
  .cover-panel.desk-lead { display: grid; min-height: 450px; padding: 47px 22px 64px; }
  .cover-panel .cover-copy { padding: 0; }
  .cover-corner { width: 18px; height: 18px; }
  .cover-corner-start { inset: 14px auto auto 14px; }
  .cover-corner-end { inset: auto 14px 14px auto; }
  .cover-eyebrow { gap: 8px; margin-bottom: 17px; font-size: 9px; letter-spacing: .07em; }
  .cover-rule { width: 15px; height: 6px; }
  .cover-panel.desk-lead .desk-story-title { max-width: 24ch; font-size: clamp(28px, 7.8vw, 37px); line-height: 1.16; letter-spacing: -.02em; }
  .cover-panel .desk-dek { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 13px; line-height: 1.6; margin-top: 16px; }
  .cover-actions { margin-top: 16px; gap: var(--s4); }
  .cover-read { font-size: 12px; gap: var(--s3); }
  .cover-panel .save-button { min-width: 44px; padding-inline: var(--s2); }
  .cover-panel .save-button [data-save-label] { display: none; }
  .cover-meta { margin-top: 11px; }
  [data-layout="newsdesk"] .cover-meta .byline { font-size: 9px; }
  .cover-motion { left: 14px; bottom: 8px; }
  .cover-motion [data-motion-label] { font-size: 9px; }
  .cover-panel > .photo-expand { right: 14px; bottom: 8px; width: 44px; }
  .cover-panel > .photo-expand span { display: none; }
  .cover-index { --index-width: calc(100vw - 72px); display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: var(--index-width); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cover-index::-webkit-scrollbar { display: none; }
  .cover-index-entry { scroll-snap-align: start; }
  .cover-tab { min-height: 105px; grid-template-columns: 15px 62px minmax(0, 1fr); padding: 13px 15px; gap: 10px; }
  .cover-tab-image { width: 62px; height: 66px; }
  .cover-tab-title { font-size: 13px; line-height: 1.4; }
  .cover-tab-kicker { font-size: 8px; margin-bottom: 5px; }
  :root[data-layout="newsdesk"]:lang(th) .cover-panel .desk-story-title { font-size: clamp(25px, 6.5vw, 30px); line-height: 1.4; max-width: none; }
  :root[data-layout="newsdesk"]:lang(th) .cover-tab-title { font-size: 12px; line-height: 1.5; }
  .desk-cover + .desk-explore { padding-top: 24px; }
  .desk-cover + .desk-explore .desk-row { padding-top: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .cover-panel:not([hidden]) .cover-copy { animation: cover-arrive .5s var(--ease) both; }
  @keyframes cover-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
}
[data-cover][data-motion="paused"] *, [data-cover][data-motion="paused"] *::before, [data-cover][data-motion="paused"] *::after { animation: none !important; transition: none !important; }
[data-cover][data-motion="paused"] [data-cover-depth] { transform: none !important; will-change: auto; }
@media (prefers-reduced-motion: reduce) {
  .cover-photo { transform: none !important; will-change: auto; }
  .cover-index::before { transition: none; }
}

.cover-stage :focus-visible { outline-color: #b4ebe0; }
.cover-panel[data-slug="how-sv-academy-began"] .cover-photo img { object-position: center 20%; }
@media (min-width: 641px) and (max-width: 800px) {
  .desk-brand-row { gap: 8px; }
  .desk-tools { gap: 0; }
}
