@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/urbanist-400-900-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Airtables.net 3.1.0: Mondrian colour fields with cream gutters, photo mosaic, dated record strips, hub index, slim footer. */
:root {
  --page: #FFF8EC; --panel: #FCF4E5; --ink: #000; --text: #1E1E21; --muted: #4C4A47;
  --link: #1467E5; --rule: #E3DED8;
  --blue: #2D7FF9; --teal: #12C9DE; --yellow: #FCB400; --coral: #F82B60;
  --callout: var(--yellow); --code-bg: #17181C; --code-ink: #FFF8EC;
  --g: clamp(8px, .84vw, 14px);
  --font: var(--gh-font-body, "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  --font-head: var(--gh-font-heading, "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
}
.scheme-sunshine {
  --page: #FCB400; --panel: #FFF8EC; --ink: #000; --text: #141414; --muted: #3D3A33;
  --link: #0B3D99; --rule: rgba(0, 0, 0, .28); --yellow: #FFF8EC; --callout: var(--blue);
}
.scheme-ink {
  --page: #121318; --panel: #1D2029; --ink: #FFF8EC; --text: #EDE6DA; --muted: #B9B2A6;
  --link: #FFC21A; --rule: #363943; --code-bg: #0B0C0F;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.scheme-sunshine a:focus-visible, .scheme-sunshine button:focus-visible { outline-color: #000; }
h1, h2, h3, h4, .brand, .tile-title { color: var(--ink); font-family: var(--font-head); }
.tile-title { color: #fff; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--page); }
.skip:focus { left: 12px; }

/* Header */
.site-head { position: relative; z-index: 30; display: flex; align-items: center; gap: clamp(14px, 2vw, 32px);
  height: clamp(60px, 5.3vw, 84px); padding: 0 2.8vw; background: var(--page); }
.brand { margin-right: auto; color: var(--ink); font-size: clamp(25px, 2.5vw, 38px); font-weight: 900; letter-spacing: -.045em; line-height: 1; text-decoration: none; }
.brand-logo { display: block; width: auto; max-height: 44px; }
.site-nav .nav { display: flex; gap: clamp(18px, 2.3vw, 38px); margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--ink); font-size: clamp(16px, 1.25vw, 19px); font-weight: 500; text-decoration: none; }
.site-nav a:hover, .site-nav .nav-current a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.search-btn, .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.search-btn svg { width: 24px; height: 24px; }
.menu-btn { display: none; flex-direction: column; gap: 5px; }
.menu-btn span { display: block; width: 24px; height: 3px; background: currentColor; }

/* Hero: four Mondrian columns; photos sit inside the colour fields */
.hero { display: grid; gap: var(--g); padding: 0; height: clamp(520px, 48.3vw, 880px);
  grid-template-columns: 42.5fr 11.1fr 34fr 10.4fr; grid-template-rows: 50fr 15fr 35fr;
  grid-template-areas: "text blue team yellow" "text blue team coral" "stock teal team coral"; }
.hero figure { margin: 0; overflow: hidden; min-height: 0; }
.hero figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-text { grid-area: text; display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: 2.4vw 2.9vw; background: var(--panel); }
.hero-stock { grid-area: stock; }
.hero-team { grid-area: team; }
.hero-team img { object-position: 60% 50%; }
.blk { display: block; min-height: 0; }
.blk-blue { background: var(--blue); }
.blk-teal { background: var(--teal); }
.blk-yellow { background: var(--yellow); }
.blk-coral { background: var(--coral); }
.hero .blk-blue { grid-area: blue; }
.hero .blk-teal { grid-area: teal; }
.hero .blk-yellow { grid-area: yellow; }
.hero .blk-coral { grid-area: coral; }
.hero h1 { margin: 0; }
.h1-display { display: block; color: var(--ink); font-size: clamp(46px, 6.3vw, 112px); font-weight: 900; line-height: .92; letter-spacing: -.048em; }
.h1-lead { display: block; margin-top: .75em; color: var(--ink); font-size: clamp(19px, 2.05vw, 34px); font-weight: 400; line-height: 1.22; letter-spacing: -.012em; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px clamp(22px, 2.1vw, 36px); margin: clamp(16px, 1.7vw, 30px) 0 0; padding: 0; list-style: none; }
.hero-links a { color: var(--link); font-size: clamp(19px, 1.94vw, 31px); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.hero-links a:hover { text-decoration-thickness: 4px; }

/* Mosaic: five photos of different sizes, titles in white over a scrim */
.mosaic { display: grid; gap: var(--g); padding: var(--g) 0; grid-template-columns: 59fr 41fr; grid-template-rows: 19.7vw 22.4vw 17.6vw; }
.mosaic .tile:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.mosaic .tile:nth-child(2) { grid-column: 2; grid-row: 1; }
.mosaic .tile:nth-child(3) { grid-column: 2; grid-row: 2; }
.mosaic .tile:nth-child(4) { grid-column: 1; grid-row: 3; }
.mosaic .tile:nth-child(5) { grid-column: 2; grid-row: 3; }
.mosaic .tile:nth-child(n+6) { display: none; }
.tile { position: relative; overflow: hidden; min-height: 0; margin: 0; background: var(--blue); }
.tile:nth-child(even) { background: var(--coral); }
.tile-link { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, 0) 62%); }
/* Scrim sized to the text block: at least .64 black behind every title/dek line, whatever the photo (WCAG on any feature image) */
.tile-text::before { content: ""; position: absolute; z-index: -1; left: -80px; right: -80px; bottom: -60px; top: -64px; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .8) 0, rgba(0, 0, 0, .64) calc(100% - 64px), rgba(0, 0, 0, 0) 100%); }
.tile-text { position: absolute; left: clamp(16px, 2.2vw, 36px); right: clamp(16px, 2.2vw, 36px); bottom: clamp(14px, 1.8vw, 30px); z-index: 1; display: flex; flex-direction: column; gap: .45em; }
.tile-title { font-size: clamp(21px, 2vw, 31px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.tile-dek { max-width: 36em; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.38; }
.mosaic .tile:nth-child(1) .tile-title { max-width: 11em; font-size: clamp(31px, 4.3vw, 68px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.mosaic .tile:nth-child(1) .tile-dek { font-size: clamp(16px, 1.4vw, 22px); }
.tile-text time { font-size: clamp(14px, 1.05vw, 16px); font-weight: 600; line-height: 1.2; }
.tile-link:hover img { transform: scale(1.025); }
.tile-link:hover .tile-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; }

/* Latest feed: a tall cream heading panel on a yellow field, beside record strips; each strip ends in a
   solid colour field that carries the date (the same field closes every list row). */
.latest { display: grid; gap: var(--g); padding: 0 0 var(--g); grid-template-columns: 27.4fr 72.6fr; }
.latest-side { display: grid; gap: var(--g); grid-template-rows: 63fr 37fr; min-height: 0; }
.latest-head { display: flex; flex-direction: column; min-height: 0; padding: clamp(24px, 2.6vw, 44px) clamp(20px, 2.6vw, 44px); background: var(--panel); }
.latest-head h2 { margin: 0; font-size: clamp(36px, 4.1vw, 70px); font-weight: 900; line-height: .94; letter-spacing: -.047em; }
.latest-head p { margin: .75em 0 0; color: var(--ink); font-size: clamp(17px, 1.39vw, 21px); line-height: 1.4; }
.latest-more { margin-top: auto; padding-top: 24px; font-size: clamp(18px, 1.5vw, 23px); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.strips { display: grid; gap: var(--g); margin: 0; padding: 0; list-style: none; }
.strip { display: grid; grid-template-columns: 1fr clamp(150px, 13.6vw, 230px); gap: var(--g); }
.strip-text { padding: clamp(14px, 1.35vw, 24px) clamp(18px, 2.4vw, 40px); background: var(--panel); }
.strip-hub { font-size: 15px; font-weight: 700; }
.strip h3 { margin: .2em 0 0; font-size: clamp(20px, 1.8vw, 29px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.strip h3 a { color: var(--ink); text-decoration: none; }
.strip h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.strip:first-child .strip-text { padding-top: clamp(20px, 2.3vw, 38px); padding-bottom: clamp(22px, 2.5vw, 42px); }
.strip:first-child h3 { max-width: 17em; font-size: clamp(28px, 3.1vw, 52px); font-weight: 900; line-height: 1; letter-spacing: -.038em; }
.field-date { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(12px, 1.2vw, 20px) clamp(14px, 1.4vw, 22px);
  background: var(--blue); color: #000; font-size: clamp(15px, 1.1vw, 17px); font-weight: 500; line-height: 1.15; }
.field-date b { font-size: clamp(17px, 1.4vw, 22px); font-weight: 800; letter-spacing: -.01em; }
li:nth-child(4n+2) > .field-date { background: var(--yellow); }
li:nth-child(4n+3) > .field-date { background: var(--coral); }
li:nth-child(4n+4) > .field-date { background: var(--teal); }

/* Hub index: the approved two-column topic index; each hub keeps its newest titles in one slash-split line */
.topics { padding: clamp(32px, 4vw, 64px) 3.9vw clamp(30px, 3.4vw, 56px); }
.topic-list { display: grid; grid-auto-flow: column; grid-template-columns: 46.4vw 1fr; grid-template-rows: repeat(4, auto);
  gap: clamp(22px, 2.5vw, 40px) 4vw; margin: 0; padding: 0; list-style: none; }
.topic-list h2 { margin: 0 0 .25em; font-size: clamp(20px, 1.67vw, 27px); font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.topic-list h2 a { color: var(--ink); text-decoration: none; }
.topic-list h2 a:hover { text-decoration: underline; }
.topic-list p { margin: 0; color: var(--ink); font-size: clamp(16px, 1.39vw, 21px); line-height: 1.55; }
.topic-list .hub-line { margin-bottom: .3em; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; }
.hub-titles a { font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: .17em; }
.hub-titles time { color: var(--muted); font-size: .78em; white-space: nowrap; }
.sep { margin: 0 .2em; color: var(--ink); }

/* Tag pages: the other hubs in one slash-split line */
.other-topics { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin: 0 3.9vw; padding: 10px 0 clamp(32px, 3.6vw, 58px); }
.other-topics h2 { margin: 0; font-size: clamp(19px, 1.5vw, 24px); font-weight: 800; letter-spacing: -.015em; }
.other-topics ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.6; }
.other-topics li + li::before { content: "/"; margin: 0 .45em; color: var(--ink); }
.other-topics a { font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: .17em; }

/* Footer: one slim line plus the trademark sentence */
.site-foot { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 28px; margin: 0 3.9vw; padding: 20px 0 30px; border-top: 1px solid var(--rule); color: var(--text); font-size: clamp(14px, 1.1vw, 17px); }
.foot-line, .foot-tm { margin: 0; }
.foot-nav .nav { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.foot-nav a { color: var(--text); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-tm { grid-column: 1 / -1; color: var(--muted); font-size: .87em; }

/* Shared colour-field heads (post, page, index, author) */
.post-head, .list-head { display: grid; gap: var(--g); padding: 0 var(--g); grid-template-columns: 1fr 10vw 6.5vw; grid-template-rows: 3fr 2fr;
  grid-template-areas: "panel blue yellow" "panel teal coral"; }
.post-head .blk-blue, .list-head .blk-blue, .tag-head .blk-blue, .error-page .blk-blue { grid-area: blue; }
.post-head .blk-teal, .list-head .blk-teal, .tag-head .blk-teal, .error-page .blk-teal { grid-area: teal; }
.post-head .blk-yellow, .list-head .blk-yellow, .tag-head .blk-yellow, .error-page .blk-yellow { grid-area: yellow; }
.post-head .blk-coral, .list-head .blk-coral, .tag-head .blk-coral, .error-page .blk-coral { grid-area: coral; }
.post-panel, .list-panel { grid-area: panel; padding: clamp(28px, 3.4vw, 60px) clamp(20px, 4vw, 68px) clamp(26px, 2.8vw, 48px); background: var(--panel); }
.post-panel h1, .list-panel h1 { max-width: 15em; margin: .28em 0 .3em; font-size: clamp(36px, 4.6vw, 74px); font-weight: 900; line-height: .98; letter-spacing: -.042em; text-wrap: balance; }
.list-panel h1 { margin-top: 0; }
.post-dek, .list-panel p { max-width: 38em; margin: 0; color: var(--ink); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.38; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 1.3em; color: var(--muted); font-size: 15px; }
.byline-author { color: var(--ink); font-weight: 700; text-decoration: none; }
.crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.crumbs li + li::before { content: "/"; margin: 0 .5em; }
.crumbs a { font-weight: 600; }
.avatar { display: block; width: 96px; height: 96px; margin-bottom: 18px; object-fit: cover; }

/* Post */
.post-feature { margin: var(--g) var(--g) 0; }
.post-feature img { display: block; width: 100%; max-height: 74vh; object-fit: cover; }
.post-feature figcaption { padding: 10px 2px 0; color: var(--muted); font-size: 15px; }
.post-body { max-width: 760px; margin: 0 auto; padding: clamp(36px, 4vw, 64px) 20px 24px; }
.gh-content { color: var(--text); font-size: 1.12rem; line-height: 1.72; }
.gh-content > * + * { margin-top: 1.2em; }
.gh-content > * { margin-bottom: 0; }
.gh-content h2 { margin-top: 1.8em; font-size: clamp(1.65rem, 2.6vw, 2.25rem); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; }
.gh-content h3 { margin-top: 1.6em; font-size: 1.4rem; font-weight: 800; line-height: 1.2; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content a { text-decoration-thickness: 1.5px; text-underline-offset: .16em; }
.gh-content blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 10px solid var(--coral); color: var(--ink); font-size: 1.2em; }
.gh-content table { width: 100%; border-collapse: separate; border-spacing: 4px; margin-left: -4px; margin-right: -4px; width: calc(100% + 8px); font-size: 1rem; line-height: 1.45; }
.gh-content th, .gh-content td { padding: 12px 14px; background: var(--panel); text-align: left; vertical-align: top; }
.gh-content thead th { background: var(--blue); color: #000; font-weight: 700; }
.gh-content code, .gh-content kbd, .gh-content pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
.gh-content code { padding: .1em .35em; background: var(--panel); color: var(--ink); }
.gh-content kbd { padding: .05em .4em; border: 1px solid var(--muted); border-bottom-width: 2px; background: var(--panel); color: var(--ink); }
.gh-content pre { overflow-x: auto; padding: 18px 20px; background: var(--code-bg); color: var(--code-ink); line-height: 1.55; border-left: 10px solid var(--blue); }
.gh-content pre code { padding: 0; background: none; color: inherit; font-size: 1em; }
@media (max-width: 599px) { .gh-content pre { padding: 14px 14px; border-left-width: 8px; } .gh-content pre code { white-space: pre-wrap; overflow-wrap: anywhere; } }
.gh-content figure { margin-left: 0; margin-right: 0; }
.gh-content figure img { display: block; width: 100%; height: auto; }
.gh-content figcaption, .kg-card figcaption { padding-top: 10px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.kg-width-wide { margin-left: calc(50% - min(600px, 50vw - 12px)); margin-right: calc(50% - min(600px, 50vw - 12px)); }
.kg-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.kg-width-full figcaption { padding-left: 16px; padding-right: 16px; }
.kg-image-card img, .kg-gallery-image img { display: block; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-bookmark-card a { display: flex; color: var(--ink); text-decoration: none; background: var(--panel); }
.kg-bookmark-content { padding: 16px; }
.kg-bookmark-thumbnail img { width: 160px; height: 100%; object-fit: cover; }
.kg-embed-card iframe { max-width: 100%; }
.gh-content .kg-callout-card { display: flex; gap: 12px; margin: 1.6em 0; padding: 20px 22px; border-left: 12px solid var(--callout); border-radius: 0; background: var(--panel); }
.gh-content .kg-callout-text { color: var(--ink); font-weight: 500; }
.gh-content .kg-toggle-card { margin: 1.6em 0; padding: 16px 18px 18px 22px; border-left: 12px solid var(--coral); border-radius: 0; background: var(--panel); box-shadow: none; }
.gh-content .kg-toggle-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; cursor: pointer; }
.gh-content .kg-toggle-heading-text { margin: 4px 0 0; color: var(--ink); font-size: 1.12rem; font-weight: 800; line-height: 1.3; }
.gh-content .kg-toggle-card-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.gh-content .kg-toggle-card-icon svg { width: 18px; height: 18px; transition: transform .2s; }
.gh-content .kg-toggle-card[data-kg-toggle-state="open"] .kg-toggle-card-icon svg { transform: rotate(180deg); }
.gh-content .kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content { display: none; }
.gh-content .kg-toggle-content { padding-top: 8px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 40px; font-weight: 700; }
.post-tags a { text-decoration-thickness: 2px; text-underline-offset: .2em; }
.bio { display: flex; align-items: flex-start; gap: 20px; margin-top: 28px; padding: 22px 24px; background: var(--panel); }
.bio p { margin: 0; }
.bio-name { margin-bottom: 4px !important; font-weight: 800; }
.bio-name a { color: var(--ink); text-decoration: none; }
.bio-img { flex: none; width: 72px; height: 72px; object-fit: cover; }
.bio-mark { flex: none; display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 3fr 2fr; gap: 4px; width: 72px; height: 72px; }
.bio-mark i:nth-child(1) { background: var(--blue); }
.bio-mark i:nth-child(2) { background: var(--yellow); }
.bio-mark i:nth-child(3) { background: var(--teal); }
.bio-mark i:nth-child(4) { background: var(--coral); }
.scheme-sunshine .bio-mark i:nth-child(2) { background: #000; }

/* Related: a small mosaic in the homepage language */
.related { padding: clamp(36px, 4vw, 64px) var(--g) var(--g); }
.related h2 { margin: 0 0 clamp(16px, 1.6vw, 26px); padding: 0 calc(3.9vw - var(--g)); font-size: clamp(26px, 2.6vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.rel-mosaic { display: grid; gap: var(--g); grid-template-columns: 59fr 41fr; grid-auto-rows: clamp(220px, 16vw, 300px); }
.rel-mosaic .tile:first-child:nth-last-child(3) { grid-row: span 2; }
.rel-mosaic .tile:only-child { grid-column: 1 / -1; }
.rel-mosaic .tile:first-child:nth-last-child(3) .tile-title { font-size: clamp(26px, 2.8vw, 46px); font-weight: 800; letter-spacing: -.035em; }

/* Tag: wide cover band with colour fields, then the panel */
.tag-head { display: grid; gap: var(--g); padding: 0 var(--g); grid-template-columns: 1fr 12vw 8vw; grid-template-rows: 15vw 11vw auto;
  grid-template-areas: "cover blue yellow" "cover blue teal" "panel panel coral"; }
.tag-cover { grid-area: cover; min-height: 0; margin: 0; overflow: hidden; }
.tag-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tag-panel { grid-area: panel; padding: clamp(24px, 2.6vw, 44px) clamp(20px, 4vw, 68px); background: var(--panel); }
.tag-panel h1 { margin: .22em 0 .2em; font-size: clamp(38px, 5vw, 82px); font-weight: 900; line-height: .95; letter-spacing: -.048em; }
.tag-panel p { max-width: 40em; margin: 0; color: var(--ink); font-size: clamp(18px, 1.5vw, 23px); line-height: 1.4; }

/* Lists: one guide per row, photo + panel + the colour field that carries the date */
.list-body { padding: var(--g); }
.rows { display: grid; gap: var(--g); margin: 0; padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: 22vw 1fr clamp(128px, 10.4vw, 178px); grid-template-areas: "ph text date"; gap: var(--g); }
.row.no-image { grid-template-columns: 1fr clamp(128px, 10.4vw, 178px); grid-template-areas: "text date"; }
.row .ph { grid-area: ph; }
.row-text { grid-area: text; }
.row .field-date { grid-area: date; }
.row .ph { display: block; min-height: 0; overflow: hidden; }
.row .ph img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.row > div { padding: clamp(18px, 2vw, 34px) clamp(18px, 2.6vw, 44px); background: var(--panel); }
.row-tag { font-size: 15px; font-weight: 700; }
.row h2, .row h3 { margin: .25em 0 .3em; font-size: clamp(22px, 2.2vw, 34px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.row h2 a, .row h3 a { color: var(--ink); text-decoration: none; }
.row h2 a:hover, .row h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.row-excerpt { max-width: 46em; margin: 0; font-size: 17px; line-height: 1.5; }
.row-meta { margin: .6em 0 0; color: var(--muted); font-size: 15px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px calc(3.9vw - var(--g)) 10px; font-weight: 600; }
.page-number { color: var(--muted); }

/* Error */
.error-page { display: grid; gap: var(--g); padding: 0 var(--g) var(--g); grid-template-columns: 1fr 1fr 10vw; grid-template-rows: 1fr 1fr 5vw;
  grid-template-areas: "copy photo blue" "copy photo yellow" "coral teal teal"; min-height: 70vh; }
.error-copy { grid-area: copy; display: flex; flex-direction: column; justify-content: center; padding: 3vw 4vw; background: var(--panel); }
.error-copy h1 { margin: 0; font-size: clamp(90px, 14vw, 220px); font-weight: 900; line-height: .85; letter-spacing: -.06em; }
.error-copy p { margin: .8em 0 0; color: var(--ink); font-size: clamp(18px, 1.6vw, 24px); }
.error-photo { grid-area: photo; min-height: 0; margin: 0; overflow: hidden; }
.error-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.text-link { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: .2em; }

/* Tablet and phone */
@media (max-width: 899px) {
  .site-head { height: 60px; padding: 0 8px 0 16px; gap: 4px; }
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-open .site-nav { display: block; position: absolute; top: 60px; left: 0; right: 0; padding: 6px 16px 22px; background: var(--page); border-bottom: 8px solid var(--blue); }
  .nav-open .site-nav .nav { flex-direction: column; gap: 0; }
  .nav-open .site-nav a { display: block; padding: 10px 0; font-size: 22px; font-weight: 700; }
  .hero { height: auto; padding: 0; gap: 8px; grid-template-columns: 24fr 52fr 24fr; grid-template-rows: auto 56vw 44vw 22vw 16vw;
    grid-template-areas: "text text text" "team team yellow" "team team coral" "blue stock stock" "teal stock stock"; }
  .hero-text { padding: 30px 20px 28px; }
  .mosaic { padding: 8px 0; gap: 8px; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .mosaic .tile:nth-child(n) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .mosaic .tile:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .mosaic .tile:nth-child(n+6) { display: none; }
  .latest { grid-template-columns: 1fr; gap: 8px; padding: 0 0 8px; }
  .latest-side { grid-template-columns: 1fr 22vw; grid-template-rows: auto; gap: 8px; }
  .latest-head { padding: 28px 20px 26px; }
  .latest-more { margin-top: 0; padding-top: 16px; }
  .strip { grid-template-columns: 1fr 24vw; gap: 8px; }
  .strip-text { padding: 16px 18px 18px; }
  .strip:first-child .strip-text { padding: 22px 18px 24px; }
  .field-date { padding: 12px 14px; }
  .topics { padding: 34px 16px 30px; }
  .topic-list { grid-template-columns: 1fr 1fr; gap: 26px 28px; }
  .other-topics { margin: 0 16px; }
  .site-foot { margin: 0 16px; }
  .post-head, .list-head { padding: 0 8px; gap: 8px; grid-template-columns: 3fr 1fr 2fr 1fr; grid-template-rows: auto 18px;
    grid-template-areas: "panel panel panel panel" "blue teal yellow coral"; }
  .post-feature { margin: 8px 8px 0; }
  .tag-head { padding: 0 8px; gap: 8px; grid-template-columns: 3fr 1fr 2fr 1fr; grid-template-rows: 46vw 18px auto;
    grid-template-areas: "cover cover cover cover" "blue teal yellow coral" "panel panel panel panel"; }
  .list-body { padding: 8px; }
  .row { grid-template-columns: 30vw 1fr; grid-template-areas: "ph text" "ph date"; gap: 8px; }
  .row.no-image { grid-template-columns: 1fr; grid-template-areas: "text" "date"; }
  .row .field-date { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 0 .35em; padding: 9px 14px; }
  .rel-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
  .rel-mosaic .tile:first-child:nth-last-child(3) { grid-row: auto; grid-column: 1 / -1; }
  .error-page { grid-template-columns: 1fr 1fr; grid-template-rows: auto 50vw 18px; grid-template-areas: "copy copy" "photo photo" "coral teal"; }
  .error-page .blk-blue, .error-page .blk-yellow { display: none; }
}
@media (max-width: 599px) {
  .hero { padding: 0 8px; }
  .mosaic { padding: 8px; grid-template-columns: 1fr; }
  .mosaic .tile:nth-child(n) { aspect-ratio: 3 / 2; }
  .mosaic .tile:nth-child(1) { aspect-ratio: 1 / 1; }
  .latest { padding: 0 8px 8px; }
  .latest-side { grid-template-columns: 1fr 16vw; }
  .strip { grid-template-columns: 1fr 31vw; }
  .strip-text { padding: 14px 14px 16px; }
  .strip:first-child .strip-text { padding: 18px 14px 20px; }
  .strip h3 { font-size: 19px; }
  .strip:first-child h3 { font-size: 27px; }
  .field-date { padding: 10px 12px; font-size: 14px; }
  .field-date b { font-size: 16px; }
  .topic-list { grid-auto-flow: row; grid-template-columns: 1fr; grid-template-rows: none; }
  .hub-titles .ht { display: block; margin-top: .4em; }
  .hub-titles .sep { display: none; }
  .site-foot { grid-template-columns: 1fr; }
  .foot-nav .nav { gap: 20px; }
  .rel-mosaic { grid-template-columns: 1fr; grid-auto-rows: 62vw; }
  .row > div { padding: 14px 14px 16px; }
  .row h2, .row h3 { font-size: 20px; }
  .row-excerpt { font-size: 15px; }
  .gh-content { font-size: 1.06rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tile img { transition: none; }
}

/* Published topic availability: labels stay visible without dead links. */
a[data-empty-topic] { cursor: default; text-decoration: none; }

/* Keep wide article tables independently scrollable. */
.gh-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gh-content table:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* The original table stays a native table inside a named scroll viewport.
   Without JavaScript the preceding rule remains the scrolling fallback. */
.gh-content .table-scroll-shell { min-width: 0; max-width: 100%; }
.gh-content .table-scroll { display: block; min-width: 0; width: 100%; max-width: 100%; margin: 0 !important; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-color: var(--ink) var(--panel); scrollbar-width: auto; }
.gh-content .table-scroll:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.gh-content .table-scroll > table { display: table; width: 100%; max-width: none; margin: 0; overflow: visible; table-layout: auto !important; }
.gh-content .table-scroll-hint { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 8px 10px; border-left: 4px solid var(--blue); background: var(--panel); color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.4; }
.gh-content .table-scroll-hint[hidden] { display: none; }
.gh-content .table-scroll-hint > span:first-child { font-size: 20px; line-height: 1; }
.table-scroll-keyboard-help { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 899px) {
  .gh-content .table-scroll { --table-column-min: 11rem; }
  .gh-content .table-scroll[data-table-columns="1"], .gh-content .table-scroll[data-table-columns="2"] { --table-column-min: 10rem; }
  .gh-content .table-scroll[data-table-long-cells="true"] { --table-column-min: 14rem; }
  .gh-content .table-scroll > table { min-width: max(100%, calc(var(--table-columns, 1) * var(--table-column-min))) !important; }
  .gh-content .table-scroll > table th, .gh-content .table-scroll > table td { min-width: calc(var(--table-cell-span, 1) * var(--table-column-min)); word-break: normal; }
  .gh-content .table-scroll > table code { white-space: normal !important; overflow-wrap: anywhere; }
}

/* Give native full-size image links a box that can paint their focus outline. */
.kg-image-card > a { display: block; }

/* Keep phone feed covers at their original 3:2 aspect instead of a narrow strip. */
@media (max-width: 599px) {
  .rows > .row:not(.no-image) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "ph" "text" "date";
  }
  .rows > .row:not(.no-image) .ph { aspect-ratio: 3 / 2; }
  .rows > .row:not(.no-image) .ph img { height: 100%; aspect-ratio: 3 / 2; }
}

/* hide-empty: topics without a published guide are not rendered (06.11.2026).
   Mosaic with no featured post (one tile per topic): with four tiles the first runs down all three rows beside the other
   three, with three the last right tile takes rows 2-3; on 2-column tablets four tiles sit as a 2x2 grid.
   Hub index: five or six hubs split 3+2 / 3+3 instead of 4+1 / 4+2 (:has; without it the 4-row split stays). */
@media (min-width: 900px) {
  .mosaic > .tile:first-child:nth-last-child(4), .mosaic > .tile:first-child:nth-last-child(3) { grid-row: 1 / 4; }
  .mosaic > .tile:nth-child(4):last-child { grid-column: 2; grid-row: 3; }
  .mosaic > .tile:nth-child(3):last-child { grid-row: 2 / 4; }
}
@media (min-width: 600px) and (max-width: 899px) { .mosaic > .tile:first-child:nth-last-child(4) { grid-column: auto; aspect-ratio: 4 / 3; } }
@media (min-width: 600px) {
  .topic-list:has(> .hub:nth-child(5):last-child), .topic-list:has(> .hub:nth-child(6):last-child) { grid-template-rows: repeat(3, auto); }
}

/* Homepage editorial identity. */
.independent-guide { margin: 18px 0 0; font-size: 16px; line-height: 1.4; font-weight: 600; }


/* Topic hubs: choose by task; queries render published guides only. */
.hub-body { padding: clamp(28px, 3.8vw, 60px) 3.9vw; }
.hub-intro { max-width: 52em; margin: 0 0 clamp(24px, 3vw, 44px); font-size: clamp(18px, 1.45vw, 22px); line-height: 1.55; }
.hub-path { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr); gap: clamp(20px, 3.2vw, 50px); padding: clamp(26px, 3vw, 44px) 0; border-top: 5px solid var(--blue); scroll-margin-top: 24px; }
.hub-path-head h2 { margin: 0 0 .55em; font-size: clamp(25px, 2.4vw, 36px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.hub-path-head p { margin: 0; font-size: 17px; line-height: 1.5; }
.hub-guides { display: grid; gap: var(--g); margin: 0; padding: 0; list-style: none; }
.hub-guides li { min-width: 0; padding: clamp(18px, 2vw, 28px); background: var(--panel); }
.hub-guides h3 { margin: 0 0 .45em; font-size: clamp(21px, 1.8vw, 29px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.hub-guides h3 a { display: inline-block; padding: 3px 0; color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: .15em; overflow-wrap: anywhere; }
.hub-guides p { margin: 0; max-width: 48em; font-size: 17px; line-height: 1.5; }
@media (max-width: 899px) {
  .hub-path { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
.hub-archive-link { margin: 24px 0 0; font-size: 17px; line-height: 1.5; }
.hub-archive-link a { display: inline-block; padding: 8px 0; font-weight: 600; }

/* Article section links enhance the body without overlaying or moving it. */
.post-toc[hidden] { display: none; }
.post-toc { max-width: 760px; margin: 0 auto; padding: 28px 20px 0; }
.post-toc details { background: var(--panel); border-top: 5px solid var(--blue); }
.post-toc summary { padding: 12px 16px; color: var(--ink); font-size: 17px; font-weight: 800; line-height: 1.4; cursor: pointer; }
.post-toc summary::marker { color: var(--ink); }
.post-toc summary:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.post-toc nav { max-height: min(55vh, 30rem); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; padding: 0 10px 10px; }
.post-toc-list, .post-toc-list ol { margin: 0; padding: 0; list-style: none; }
.post-toc-list ol { margin-left: 6px; padding-left: 12px; border-left: 2px solid var(--rule); }
.post-toc-list a { display: block; padding: 8px 6px; color: var(--ink); font-size: 16px; line-height: 1.4; text-decoration-thickness: 1px; text-underline-offset: .16em; overflow-wrap: anywhere; }
.post-toc-list a:focus-visible { outline: 3px solid var(--ink); outline-offset: -2px; }
.post-layout.has-toc .post-body { padding-top: 24px; }
.post-layout .gh-content h2[id], .post-layout .gh-content h3[id] { scroll-margin-top: 24px; }
.post-layout .gh-content h2:focus-visible, .post-layout .gh-content h3:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
@media (min-width: 1200px) {
  .post-layout.has-toc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 760px) minmax(0, 1fr); column-gap: clamp(20px, 2vw, 36px); }
  .post-layout.has-toc .post-body { grid-column: 2; grid-row: 1; width: 100%; max-width: none; margin: 0; padding-top: clamp(36px, 4vw, 64px); min-width: 0; }
  .post-layout.has-toc .post-toc { grid-column: 1; grid-row: 1; justify-self: end; width: 100%; max-width: 260px; margin: 0; padding: clamp(36px, 4vw, 64px) 0 0 16px; }
  .post-toc details { position: sticky; top: 24px; }
  .post-toc nav { max-height: calc(100vh - 112px); max-height: calc(100svh - 112px); }
}

/* Long function names and inline expressions must fit narrow article columns. */
.post-panel h1 { overflow-wrap: anywhere; }
.gh-content :not(pre) > code { overflow-wrap: anywhere; }
