/* ============================================================
   Theme layer. Tokens only. Class names follow Ghost conventions
   (gh-*, post-card, kg-*) so they carry straight into the .hbs files.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface-page); color: var(--ink); font-family: var(--gh-font-body, var(--font-sans)); font-size: 15px; line-height: 22px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link-primary); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
h1, h2, h3, h4 { font-weight: 500; margin: 0; font-family: var(--gh-font-heading, var(--font-sans)); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: var(--space-2); left: var(--space-2); width: auto; height: auto; clip: auto; z-index: var(--z-tooltip); padding: var(--space-3) var(--space-5); border-radius: var(--radius-pill); background: var(--surface-inverse); color: var(--ink-inverse); font-weight: 500; text-decoration: none; outline-color: var(--focus-ring-inverse); }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 16px; height: 16px; }
.ico--lg { width: 20px; height: 20px; }

.gh-outer { max-width: var(--bp-max); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 672px) { .gh-outer { padding: 0 var(--space-8); } }
@media (min-width: 1056px) { .gh-outer { padding: 0 var(--space-12); } }
.gh-inner { max-width: 1240px; margin: 0 auto; }

.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); margin: 0 0 var(--space-4); }
.eyebrow::before { content: ""; width: var(--space-6); height: 2px; border-radius: var(--radius-pill); background: var(--tide-500); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-8); }
.section-head h2 { font-size: 34px; line-height: 40px; letter-spacing: -0.025em; }
@media (max-width: 671px) { .section-head h2 { font-size: 28px; line-height: 34px; } }
.lede { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 60ch; margin: var(--space-4) 0 0; }
.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-subtle); }

/* ---------- Tideline primitives (plain-CSS ports of bundle.css) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--size-control-md); padding: 0 20px; border-radius: var(--radius-pill); border: 1px solid transparent; font: 500 14px/20px var(--font-sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color var(--duration-moderate-01) var(--ease-standard), border-color var(--duration-moderate-01) var(--ease-standard), transform var(--duration-fast-01) var(--ease-standard); }
.btn:active { transform: translateY(1px); }
.btn--sm { height: var(--size-control-sm); padding: 0 14px; font-size: 13px; }
.btn--primary { background: var(--surface-inverse); color: var(--ink-inverse); }
.btn--primary:hover { background: color-mix(in oklab, var(--surface-inverse) 88%, var(--surface-page)); color: var(--ink-inverse); }
.btn--accent { background: var(--kelp-400); color: var(--on-kelp); }
.btn--accent:hover { background: color-mix(in oklab, var(--kelp-400) 85%, #000); color: var(--on-kelp); }
.btn--secondary { background: var(--surface-card); color: var(--ink); border-color: var(--border-control); }
.btn--secondary:hover { background: var(--surface-sunken); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--surface-sunken); color: var(--ink); }
.ibtn { display: inline-grid; place-items: center; width: var(--size-control-md); height: var(--size-control-md); border-radius: var(--radius-pill); border: 1px solid var(--border-hairline); background: var(--surface-card); color: var(--ink); cursor: pointer; transition: background-color var(--duration-moderate-01) var(--ease-standard); }
.ibtn:hover { background: var(--surface-sunken); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--radius-pill); border: 0; font: 500 13px/1 var(--font-sans); white-space: nowrap; text-decoration: none; max-width: 100%; }
.tag--sm { height: 24px; padding: 0 10px; font-size: 12px; }  /* 24px: WCAG 2.2 target size */
a.tag:hover { filter: brightness(0.97); }
.lane-neutral { background: var(--neutral-100); color: var(--neutral-700); }
.lane-sky { background: var(--sky-100); color: var(--sky-700); }
.lane-tide { background: var(--tide-100); color: var(--tide-700); }
.lane-coral { background: var(--coral-100); color: var(--coral-700); }
.lane-sand { background: var(--sand-100); color: var(--sand-700); }
.lane-kelp { background: var(--kelp-100); color: var(--kelp-700); }
a.lane-sky:hover { color: var(--sky-700); } a.lane-tide:hover { color: var(--tide-700); } a.lane-coral:hover { color: var(--coral-700); }
a.lane-sand:hover { color: var(--sand-700); } a.lane-kelp:hover { color: var(--kelp-700); } a.lane-neutral:hover { color: var(--neutral-700); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: var(--size-control-sm); padding: 0 14px; border-radius: var(--radius-pill); border: 0; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-control); font: 500 13px/1 var(--font-sans); cursor: pointer; white-space: nowrap; }
.chip:hover { background: var(--row-hover); }
.chip[aria-pressed="true"] { background: var(--surface-inverse); color: var(--ink-inverse); box-shadow: none; }
.chip .count { font-variant-numeric: tabular-nums; color: var(--ink-subtle); }
.chip[aria-pressed="true"] .count { color: var(--ink-inverse-muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.card { position: relative; background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-card); color: var(--ink); }
.card--inverse { background: var(--surface-inverse); color: var(--ink-inverse); border-color: transparent; }
.search { display: flex; align-items: center; gap: 10px; height: var(--size-control-md); padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid var(--border-control); background: var(--field-bg); color: var(--ink-muted); }
.search:hover { border-color: var(--border-strong); }
.search:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 400 16px/22px var(--font-sans); color: var(--ink); }
.search input::placeholder { color: var(--text-placeholder); }
.kbd { font: 500 11px/1 var(--font-mono); padding: 4px 6px; border-radius: 6px; background: var(--surface-sunken); color: var(--ink-muted); }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--radius-pill); border: 1px solid var(--border-control); background: var(--surface-card); }
.seg button { display: inline-grid; place-items: center; width: 36px; height: 32px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--ink-muted); cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface-inverse); color: var(--ink-inverse); }
.field { display: grid; gap: 6px; }
.field label { font: 500 14px/20px var(--font-sans); }
.input { height: var(--size-control-md); padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid var(--border-control); background: var(--field-bg); color: var(--ink); font: 400 16px/22px var(--font-sans); min-width: 0; }
.input:hover { border-color: var(--border-strong); }
.input::placeholder { color: var(--text-placeholder); }

/* ---------- Header (partials/site-header.hbs) ---------- */
.gh-head { position: sticky; top: 0; z-index: var(--z-sticky); background: color-mix(in oklab, var(--surface-page) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-hairline); }
.gh-head__in { display: flex; align-items: center; gap: var(--space-6); height: 72px; }
.gh-head__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 560; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.gh-head__brand:hover { color: var(--ink); }
.gh-head__brand svg { height: 30px; width: auto; }
.mark-line { fill: var(--logo-line); } .mark-accent { fill: var(--logo-accent); }
.gh-head__brand svg.brand-mark { height: 30px; width: auto; }
.gh-head__menu { display: flex; gap: var(--space-1); }
.gh-head__menu a { color: var(--ink-muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill); }
.gh-head__menu a:hover { color: var(--ink); background: var(--surface-sunken); }
.gh-head__menu a[aria-current="page"] { color: var(--ink); background: var(--surface-sunken); }
.gh-head__actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.gh-head__search { width: 240px; height: var(--size-control-md); justify-content: flex-start; color: var(--ink-muted); background: var(--field-bg); border: 1px solid var(--border-control); font-weight: 400; font-size: 15px; padding: 0 12px 0 16px; }
.gh-head__search:hover { border-color: var(--border-strong); background: var(--field-bg); color: var(--ink-muted); }
.gh-head__search .kbd { margin-left: auto; }
.gh-head__toggle { display: none; }
.gh-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--tide-500); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; }
.is-post .gh-progress { opacity: 1; }
.gh-drawer { display: none; }
@media (max-width: 1055px) {
  .gh-head__menu, .gh-head__search, .hide-md { display: none; }
  .gh-head__toggle { display: inline-grid; }
  .gh-drawer.is-open { display: grid; gap: var(--space-1); padding: var(--space-2) 0 var(--space-4); border-top: 1px solid var(--border-hairline); }
  .gh-drawer a:not(.btn) { display: flex; align-items: center; color: var(--ink); text-decoration: none; font-weight: 500; padding: 0 var(--space-3); border-radius: var(--radius-md); min-height: var(--size-control-md); }
  .gh-drawer a:not(.btn):hover, .gh-drawer a[aria-current="page"] { background: var(--surface-sunken); }
  .gh-drawer .btn { margin-top: var(--space-2); }
}
@media (min-width: 1056px) { .show-md { display: none !important; } }

/* ---------- Home (home.hbs) ---------- */
.view { min-height: 60vh; }
.hero { padding: var(--space-16) 0 var(--space-16); }
@media (max-width: 671px) { .hero { padding: var(--space-10) 0 var(--space-12); } }
.hero__grid { display: grid; gap: var(--space-12); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1056px) { .hero__grid { grid-template-columns: 7fr 5fr; gap: var(--space-16); } }
.hero h1 { font-size: 56px; line-height: 60px; letter-spacing: -0.035em; font-weight: 500; max-width: 16ch; }
@media (max-width: 671px) { .hero h1 { font-size: 38px; line-height: 42px; } }
.hero .lede { margin-top: var(--space-6); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.now { display: grid; gap: var(--space-5); }
.now__head { display: flex; align-items: center; justify-content: space-between; }
.now__head h2 { font-size: 20px; line-height: 26px; letter-spacing: -0.01em; }
.now__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.now__list li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--space-3); }
.now__list dt, .now__k { font-size: 13px; line-height: 22px; color: var(--ink-inverse-muted); }
.signal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal-on-inverse); display: inline-block; margin-right: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
.stat { background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); }
.stat b { display: block; font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
@media (max-width: 420px) { .stat { padding: var(--space-3) var(--space-4); } .stat b { font-size: 22px; line-height: 28px; } }

.band { padding: var(--space-16) 0; }
@media (max-width: 671px) { .band { padding: var(--space-12) 0; } }
.band--card { background: var(--surface-card); border-top: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline); }

/* Feature (the newest post) */
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-card); }
@media (min-width: 1056px) { .feature { grid-template-columns: 7fr 5fr; } }
.feature:hover { color: var(--ink); }
.feature:hover .post-card__title { color: var(--link-hover); }
.feature .post-card__media { aspect-ratio: 16 / 9; border-radius: 0; }
@media (min-width: 1056px) { .feature .post-card__media { aspect-ratio: auto; min-height: 320px; height: 100%; } }
.feature__body { padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); }
@media (max-width: 671px) { .feature__body { padding: var(--space-6); } }
.feature .post-card__title { font-size: 34px; line-height: 40px; letter-spacing: -0.025em; }
@media (max-width: 671px) { .feature .post-card__title { font-size: 26px; line-height: 32px; } }
.feature .post-card__excerpt { font-size: 17px; line-height: 26px; -webkit-line-clamp: 4; }
.article-excerpt { display: block; }
.feature .post-card__meta { margin-top: auto; }

/* Post cards (partials/post-card.hbs) */
.post-feed { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 672px) { .post-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1056px) { .post-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { display: flex; flex-direction: column; gap: var(--space-3); text-decoration: none; color: var(--ink); min-width: 0; }
.post-card:hover { color: var(--ink); }
.post-card:hover .post-card__title { color: var(--link-hover); }
.post-card:hover .post-card__media img { transform: scale(1.02); }
.post-card__media { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-sunken); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow-01) var(--ease-standard); }
.post-card__media.is-fallback { display: grid; place-items: center; }
.post-card__media.is-fallback::after { content: attr(data-initial); font-size: 64px; line-height: 1; font-weight: 500; letter-spacing: -0.04em; opacity: .55; }
.post-card__tags { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-2); }
.post-card__title { font-size: 20px; line-height: 27px; letter-spacing: -0.012em; font-weight: 500; transition: color var(--duration-moderate-01) var(--ease-standard); text-wrap: balance; }
.post-card__excerpt { margin: 0; color: var(--ink-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.post-card__meta { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; line-height: 18px; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.post-card__meta .dot::before { content: "·"; }

/* Topics as lanes */
.lanes { display: grid; gap: var(--space-2); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1056px) { .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); } }
.lane { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); min-height: 72px; border-radius: var(--radius-md); text-decoration: none; transition: filter var(--duration-moderate-01) var(--ease-standard); }
.lane:hover { filter: brightness(0.97); }
.lane__name { font-size: 18px; line-height: 26px; font-weight: 500; letter-spacing: -0.01em; }
.lane__desc { display: block; font-size: 13px; line-height: 18px; font-weight: 400; }
.lane__count { font-size: 13px; font-variant-numeric: tabular-nums; }
.lane .ico { opacity: .8; }

/* Subscribe (partials/subscribe.hbs, Ghost members form) */
.subscribe { display: grid; gap: var(--space-8); align-items: center; grid-template-columns: minmax(0, 1fr); padding: var(--space-10); border-radius: var(--radius-xl); }
@media (min-width: 1056px) { .subscribe { grid-template-columns: 6fr 5fr; padding: var(--space-12); } }
@media (max-width: 671px) { .subscribe { padding: var(--space-6); border-radius: var(--radius-lg); } }
.subscribe h2 { font-size: 34px; line-height: 40px; letter-spacing: -0.025em; }
@media (max-width: 671px) { .subscribe h2 { font-size: 26px; line-height: 32px; } }
.subscribe p { color: var(--ink-inverse-muted); margin: var(--space-3) 0 0; font-size: 16px; line-height: 24px; max-width: 52ch; }
.subscribe form { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.subscribe .input { flex: 1 1 220px; background: color-mix(in oklab, var(--ink-inverse) 8%, var(--surface-inverse)); border-color: var(--ink-inverse-muted); color: var(--ink-inverse); }
.subscribe .input::placeholder { color: var(--ink-inverse-muted); }
.subscribe :focus-visible { outline-color: var(--focus-ring-inverse); }
.subscribe__note { width: 100%; font-size: 13px; line-height: 18px; color: var(--ink-inverse-muted); margin-top: var(--space-1); }
.subscribe__note.is-success { color: var(--signal-on-inverse); }
.subscribe form.success .input, .subscribe form.success .btn { display: none; }

/* ---------- Archive / tag (index.hbs, tag.hbs) ---------- */
.page-head { padding: var(--space-12) 0 var(--space-8); }
.page-head h1 { font-size: 48px; line-height: 52px; letter-spacing: -0.03em; font-weight: 550; }
@media (max-width: 671px) { .page-head h1 { font-size: 34px; line-height: 40px; } }
.page-head .lede { margin-top: var(--space-3); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-8); }
.toolbar .search { flex: 1 1 280px; max-width: 420px; }
.archive-year { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin-bottom: var(--space-10); }
@media (min-width: 1056px) { .archive-year { grid-template-columns: 160px minmax(0, 1fr); gap: var(--space-8); } }
.archive-year h2 { font-size: 24px; line-height: 30px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink-muted); position: sticky; top: 96px; align-self: start; }
.archive-list { list-style: none; margin: 0; padding: 0; background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); overflow: hidden; }
.archive-list li + li { border-top: 1px solid var(--border-hairline); }
.archive-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-6); text-decoration: none; color: var(--ink); min-height: 64px; }
.archive-row:hover { background: var(--row-hover); color: var(--ink); }
.archive-row:hover .archive-row__title { color: var(--link-hover); }
.archive-row__date { font: 450 13px/20px var(--font-mono); color: var(--ink-subtle); }
.archive-row__title { font-size: 16px; line-height: 24px; font-weight: 500; }
.archive-row__end { display: flex; align-items: center; gap: var(--space-3); color: var(--ink-subtle); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 671px) { .archive-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); padding: var(--space-4); } .archive-row__end { order: 3; } }
.empty { text-align: center; padding: var(--space-16) var(--space-6); border: 1px dashed var(--border-control); border-radius: var(--radius-lg); }
.empty__icon { width: 56px; height: 56px; border-radius: var(--radius-md); display: grid; place-items: center; margin: 0 auto var(--space-5); background: var(--surface-sunken); color: var(--ink-muted); }
.empty h2 { font-size: 20px; line-height: 26px; }
.empty p { color: var(--ink-muted); margin: var(--space-2) auto var(--space-5); max-width: 46ch; }
.tag-hero { border-radius: var(--radius-xl); padding: var(--space-12) var(--space-10); margin: var(--space-8) 0 var(--space-10); }
@media (max-width: 671px) { .tag-hero { padding: var(--space-8) var(--space-6); border-radius: var(--radius-lg); } }
.tag-hero h1 { font-size: 48px; line-height: 52px; letter-spacing: -0.03em; font-weight: 550; }
@media (max-width: 671px) { .tag-hero h1 { font-size: 34px; line-height: 40px; } }
.tag-hero p { font-size: 18px; line-height: 28px; margin: var(--space-3) 0 0; max-width: 60ch; }
.tag-hero .crumb { font-size: 13px; font-weight: 500; margin-bottom: var(--space-4); display: inline-flex; gap: var(--space-2); align-items: center; }
.tag-hero .crumb a { color: inherit; }

/* ---------- Post (post.hbs) ---------- */
.gh-article { padding-bottom: var(--space-16); }
.article-body { position: relative; }
.gh-canvas { display: grid; grid-template-columns: [full-start] minmax(var(--space-4), 1fr) [wide-start] minmax(0, 160px) [main-start] min(720px, calc(100% - var(--space-8))) [main-end] minmax(0, 160px) [wide-end] minmax(var(--space-4), 1fr) [full-end]; }
.gh-canvas > * { grid-column: main; }
.gh-canvas > .kg-width-wide, .article-image { grid-column: wide; }
.gh-canvas > .kg-width-full { grid-column: full; }
.article-head { padding: var(--space-12) 0 var(--space-8); }
.article-head .post-card__tags { margin: 0 0 var(--space-5); }
.article-title { font-size: 48px; line-height: 54px; letter-spacing: -0.03em; font-weight: 550; text-wrap: balance; }
@media (max-width: 671px) { .article-title { font-size: 32px; line-height: 38px; } }
.article-excerpt { font-size: 20px; line-height: 30px; color: var(--ink-muted); margin: var(--space-5) 0 0; }
@media (max-width: 671px) { .article-excerpt { font-size: 18px; line-height: 27px; } }
.byline { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border-hairline); flex-wrap: wrap; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-inverse); color: var(--ink-inverse); font-weight: 500; font-size: 15px; letter-spacing: -0.01em; flex: none; }
.byline__name { font-weight: 500; }
.byline__meta { font-size: 13px; line-height: 18px; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.byline__share { margin-left: auto; display: flex; gap: var(--space-2); }
.article-image { margin: 0 0 var(--space-10); }
.article-image img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-sunken); }
.article-image figcaption { font-size: 13px; color: var(--ink-subtle); margin-top: var(--space-3); text-align: center; }

.toc-inline { margin-bottom: var(--space-8); background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); }
.toc-inline summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-5); min-height: var(--size-control-md); font: 500 14px/20px var(--font-sans); border-radius: inherit; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline[open] summary .ico { transform: rotate(180deg); }
.toc-inline nav { padding: 0 var(--space-5) var(--space-4); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--border-hairline); color: var(--ink-muted); text-decoration: none; font-size: 13px; line-height: 18px; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--tide-500); }
.toc .lvl-3 a { padding-left: 24px; }
.toc-rail { display: none; }
@media (min-width: 1520px) {
  .toc-inline { display: none; }
  /* The rail spans the article body only, so it scrolls away with the text instead of covering what follows. */
  .toc-rail { display: block; position: absolute; top: 0; bottom: 0; left: calc(50% + 360px + 160px + var(--space-10)); width: 232px; }
  .toc-rail__in { position: sticky; top: 128px; max-height: calc(100vh - 176px); overflow: auto; }
  .toc-rail h2 { font: 500 13px/18px var(--font-sans); color: var(--ink-subtle); margin-bottom: var(--space-3); }
}

/* gh-content: everything {{content}} outputs, Koenig cards included */
.gh-content { font-size: 18px; line-height: 30px; }
.gh-content > * { margin-top: 0; margin-bottom: 0; }
.gh-content > * + * { margin-top: var(--space-6); }
.gh-content > h2 { margin-top: var(--space-16); font-size: 30px; line-height: 36px; letter-spacing: -0.022em; }
.gh-content > h3 { margin-top: var(--space-10); font-size: 22px; line-height: 30px; letter-spacing: -0.015em; }
.gh-content > h4 { margin-top: var(--space-8); font-size: 18px; line-height: 26px; }
.gh-content > h2 + *, .gh-content > h3 + *, .gh-content > h4 + * { margin-top: var(--space-4); }
.gh-content a { color: var(--link-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gh-content a:hover { color: var(--link-hover); }
.gh-content strong { font-weight: 600; }
.gh-content ul, .gh-content ol { padding-left: 1.4em; }
.gh-content li + li { margin-top: var(--space-2); }
.gh-content li::marker { color: var(--ink-subtle); }
.gh-content hr { border: 0; height: 1px; background: var(--border-hairline); margin: var(--space-12) 0; }
.gh-content blockquote:not(.kg-blockquote-alt) { margin-left: 0; margin-right: 0; padding: var(--space-1) 0 var(--space-1) var(--space-6); border-left: 3px solid var(--tide-500); font-size: 20px; line-height: 32px; }
.gh-content blockquote.kg-blockquote-alt { margin: var(--space-12) 0; text-align: center; font-size: 28px; line-height: 38px; letter-spacing: -0.02em; font-weight: 500; color: var(--ink); padding: 0 var(--space-4); }
.gh-content blockquote p + p { margin-top: var(--space-3); }
.gh-content :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--surface-sunken); font: 450 0.84em/1.4 var(--font-mono); }
.gh-content pre { position: relative; overflow: auto; padding: var(--space-5) var(--space-6); border-radius: var(--radius-md); background: var(--surface-sunken); font: 450 14px/22px var(--font-mono); color: var(--ink); }
.gh-content pre code { font: inherit; background: none; padding: 0; }
.gh-content .copy-btn { position: absolute; top: 8px; right: 8px; height: 32px; padding: 0 10px; display: inline-flex; gap: 6px; align-items: center; border: 0; border-radius: 9px; background: var(--surface-card); color: var(--ink); font: 500 12px/1 var(--font-sans); cursor: pointer; box-shadow: var(--shadow-card); opacity: 0; transition: opacity var(--duration-moderate-01) var(--ease-standard); }
.gh-content .code-wrap { position: relative; }
.gh-content .code-wrap:hover .copy-btn, .gh-content .copy-btn:focus-visible { opacity: 1; }
.gh-content .copy-btn.is-done { color: var(--support-success); }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; display: block; overflow-x: auto; }
.gh-content th, .gh-content td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-hairline); vertical-align: top; }
.gh-content th { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.gh-content figure { margin: var(--space-10) 0; }
.gh-content figcaption { font-size: 13px; line-height: 18px; color: var(--ink-subtle); text-align: center; margin-top: var(--space-3); }
.gh-content .kg-image { margin: 0 auto; border-radius: var(--radius-md); }
.gh-content .kg-width-full .kg-image { border-radius: 0; width: 100%; }
.gh-content .kg-width-wide .kg-image { width: 100%; }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-embed-card iframe { max-width: 100%; border-radius: var(--radius-md); }
.kg-gallery-container { display: flex; flex-direction: column; gap: var(--space-3); }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; gap: var(--space-3); }
.kg-gallery-image { flex: 1 1 0; min-width: 0; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); display: block; }
/* Callout: Ghost's colour names map onto the Tideline pastels */
.kg-callout-card { display: flex; gap: var(--space-3); padding: var(--space-5) var(--space-6); border-radius: var(--radius-md); background: var(--surface-sunken); font-size: 17px; line-height: 27px; }
.kg-callout-card-grey, .kg-callout-card-white { background: var(--neutral-100); color: var(--ink); }
.kg-callout-card-blue { background: var(--sky-100); color: var(--sky-700); }
.kg-callout-card-green { background: var(--kelp-100); color: var(--kelp-700); }
.kg-callout-card-yellow { background: var(--sand-100); color: var(--sand-700); }
.kg-callout-card-red, .kg-callout-card-pink { background: var(--coral-100); color: var(--coral-700); }
.kg-callout-card-purple, .kg-callout-card-accent { background: var(--tide-100); color: var(--tide-700); }
.kg-callout-emoji { flex: none; font-size: 20px; line-height: 27px; }
.kg-callout-text a { color: inherit; }
.kg-toggle-card { background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); padding: 0; }
.kg-toggle-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); cursor: pointer; }
.kg-toggle-heading-text { font-size: 17px; line-height: 24px; font-weight: 500; margin: 0; }
.kg-toggle-card-icon { border: 0; background: none; color: var(--ink-muted); padding: 0; display: grid; cursor: pointer; transition: transform var(--duration-moderate-01) var(--ease-standard); }
.kg-toggle-card[data-kg-toggle-state="open"] .kg-toggle-card-icon { transform: rotate(180deg); }
.kg-toggle-content { padding: 0 var(--space-5) var(--space-5); color: var(--ink-muted); font-size: 16px; line-height: 26px; }
.kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content { display: none; }
.kg-bookmark-card { margin: var(--space-8) 0; }
.kg-bookmark-container { display: flex; min-height: 148px; text-decoration: none !important; color: var(--ink) !important; background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); overflow: hidden; }
.kg-bookmark-container:hover { border-color: var(--border-control); }
.kg-bookmark-content { flex: 1; min-width: 0; padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-1); }
.kg-bookmark-title { font-size: 16px; line-height: 22px; font-weight: 500; }
.kg-bookmark-description { font-size: 14px; line-height: 20px; color: var(--ink-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.kg-bookmark-metadata { margin-top: auto; display: flex; align-items: center; gap: var(--space-2); font-size: 13px; color: var(--ink-subtle); }
.kg-bookmark-icon { width: 20px; height: 20px; border-radius: 4px; }
.kg-bookmark-author, .kg-bookmark-publisher { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kg-bookmark-publisher::before { content: "·"; margin-right: var(--space-2); }
.kg-bookmark-author + .kg-bookmark-publisher::before { content: "·"; }
.kg-bookmark-thumbnail { position: relative; flex: 0 0 33%; max-width: 240px; }
.kg-bookmark-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 520px) { .kg-bookmark-thumbnail { display: none; } }
.kg-button-card { display: flex; justify-content: center; }
.kg-button-card.kg-align-center { justify-content: center; }
.kg-button-card.kg-align-left { justify-content: flex-start; }
.kg-btn, .kg-btn-accent { display: inline-flex; align-items: center; height: var(--size-control-md); padding: 0 20px; border-radius: var(--radius-pill); background: var(--surface-inverse); color: var(--ink-inverse) !important; text-decoration: none !important; font: 500 14px/20px var(--font-sans); }
.kg-header-card { padding: var(--space-16) var(--space-8); border-radius: var(--radius-lg); text-align: center; background: var(--surface-inverse); color: var(--ink-inverse); }
.kg-header-card h2 { font-size: 40px; line-height: 46px; letter-spacing: -0.03em; }
.kg-file-card a.kg-file-card-container { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; }
.kg-signup-card, .kg-product-card, .kg-audio-card, .kg-video-card, .kg-nft-card { border-radius: var(--radius-md); overflow: hidden; }

/* After the article */
.post-end { display: grid; gap: var(--space-6); margin-top: var(--space-16); }
.author-card { display: flex; gap: var(--space-5); align-items: flex-start; }
.author-card .avatar { width: 64px; height: 64px; font-size: 20px; }
.author-card h2 { font-size: 20px; line-height: 26px; letter-spacing: -0.01em; }
.author-card p { margin: var(--space-2) 0 var(--space-4); color: var(--ink-muted); }
.author-card__links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
@media (max-width: 520px) { .author-card { flex-direction: column; } }
.prev-next { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
@media (min-width: 672px) { .prev-next { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prev-next a { display: grid; gap: var(--space-1); padding: var(--space-5); border-radius: var(--radius-md); background: var(--surface-card); border: 1px solid var(--border-hairline); color: var(--ink); text-decoration: none; }
.prev-next a:hover { border-color: var(--border-control); }
.prev-next a:hover b { color: var(--link-hover); }
.prev-next span { font-size: 13px; color: var(--ink-subtle); display: inline-flex; align-items: center; gap: 4px; }
.prev-next b { font-weight: 500; font-size: 16px; line-height: 23px; }
.prev-next .is-next { text-align: right; justify-items: end; }

/* ---------- Footer (partials/site-footer.hbs) ---------- */
.gh-foot { border-top: 1px solid var(--border-hairline); padding: var(--space-12) 0 var(--space-10); margin-top: var(--space-16); }
.gh-foot__grid { display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 672px) { .gh-foot__grid { grid-template-columns: 2fr 1fr 1fr; } }
.gh-foot p { color: var(--ink-muted); margin: var(--space-3) 0 0; max-width: 42ch; }
.gh-foot h2 { font-size: 13px; line-height: 18px; color: var(--ink-subtle); font-weight: 500; margin-bottom: var(--space-3); }
.gh-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.gh-foot ul a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.gh-foot ul a:hover { color: var(--link-hover); }
.gh-foot__base { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--border-hairline); font-size: 13px; color: var(--ink-subtle); }

/* ---------- Toast ---------- */
.toast { position: fixed; top: 88px; right: var(--space-4); z-index: var(--z-toast); display: none; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); background: var(--surface-overlay); color: var(--ink); border-radius: var(--radius-md); box-shadow: var(--shadow-float); font-size: 14px; }
.toast.is-on { display: flex; animation: fade var(--duration-moderate-02) var(--ease-entrance); }
.toast .ico { color: var(--support-success); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ============================================================
   Ghost-specific markup
   ============================================================ */

/* {{navigation}} outputs <ul class="nav"><li class="nav-{slug} nav-current"><a> */
.gh-head__menu .nav, .gh-drawer .nav, .gh-foot .nav { list-style: none; margin: 0; padding: 0; }
.gh-head__menu .nav { display: flex; gap: var(--space-1); }
.gh-head__menu .nav-current a { color: var(--ink); background: var(--surface-sunken); }
.gh-drawer .nav { display: grid; gap: var(--space-1); }
@media (max-width: 1055px) { .gh-drawer .nav-current a { background: var(--surface-sunken); } }
.gh-foot .nav { display: grid; gap: var(--space-1); }
.gh-foot .nav a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.gh-foot .nav a:hover { color: var(--link-hover); }
.gh-head__logo { height: 32px; width: auto; }
.gh-head__signin { color: var(--ink-muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 0 var(--space-3); }
.gh-head__signin:hover { color: var(--ink); }

/* Topic lanes. Three layers, last match wins:
   1. no colour → neutral
   2. the tag's Color in Ghost Admin (hex, set as --lane) → a tint of it, Day and Night
   3. the five known slugs → the exact Tideline pastel pairs (they pass AA in both themes) */
[data-lane] { background: var(--neutral-100); color: var(--neutral-700); }
[data-lane]:where([style*="--lane"]) { background: color-mix(in oklab, var(--lane) 16%, var(--surface-card)); color: color-mix(in oklab, var(--lane) 55%, var(--ink)); }
[data-lane="code-systems"] { background: var(--sky-100); color: var(--sky-700); }
[data-lane="tech-innovation"] { background: var(--kelp-100); color: var(--kelp-700); }
[data-lane="product-excellence"] { background: var(--sand-100); color: var(--sand-700); }
[data-lane="leadership-insights"] { background: var(--tide-100); color: var(--tide-700); }
[data-lane="security-leadership"] { background: var(--coral-100); color: var(--coral-700); }
a[data-lane]:hover { color: inherit; filter: brightness(0.97); }
.post-card__media[data-lane]::after { content: attr(data-initial); }
.post-card__media.is-fallback { color: inherit; }

/* "Now" card: content of the page with slug "now" — a list of <strong>Label</strong> text items */
.now__body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.now__body li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--space-3); }
.now__body li strong { font-weight: 400; font-size: 13px; line-height: 22px; color: var(--ink-inverse-muted); }
.now__body p { margin: 0; color: var(--ink-inverse-muted); }
.now__body a { color: inherit; }
.now__edit { font-size: 13px; color: var(--ink-inverse-muted); }

/* Members form states — Ghost adds .loading / .success / .error to the form */
.subscribe form .btn .is-loading, .subscribe form .subscribe__msg { display: none; }
.subscribe form.loading .btn { opacity: .7; pointer-events: none; }
.subscribe form.success .input, .subscribe form.success .btn, .subscribe form.success .subscribe__note { display: none; }
.subscribe form.success .subscribe__msg--success { display: block; color: var(--signal-on-inverse); }
.subscribe form.error .subscribe__msg--error { display: block; color: var(--coral-100); }
.subscribe [data-members-error] { width: 100%; margin: 0; font-size: 13px; color: var(--coral-100); }
.subscribe__member { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }

/* Paywall CTA that {{content}} outputs for members-only posts */
.gh-post-upgrade-cta { margin: var(--space-10) 0; }
.gh-post-upgrade-cta-content { background: var(--surface-inverse); color: var(--ink-inverse); border-radius: var(--radius-lg); padding: var(--space-10) var(--space-8); text-align: center; display: grid; gap: var(--space-4); justify-items: center; }
.gh-post-upgrade-cta-content h2 { font-size: 26px; line-height: 32px; letter-spacing: -0.02em; }
.gh-post-upgrade-cta-content a.gh-btn { display: inline-flex; align-items: center; height: var(--size-control-md); padding: 0 20px; border-radius: var(--radius-pill); background: var(--kelp-400) !important; color: var(--on-kelp) !important; text-decoration: none; font: 500 14px/20px var(--font-sans); }
.gh-post-upgrade-cta-content p, .gh-post-upgrade-cta-content small { color: var(--ink-inverse-muted); }
.gh-post-upgrade-cta-content a { color: var(--ink-inverse); }

/* Newer Koenig cards */
.kg-cta-card { border-radius: var(--radius-md); background: var(--surface-card); border: 1px solid var(--border-hairline); padding: var(--space-6); }
.kg-cta-card.kg-cta-bg-grey, .kg-cta-card.kg-cta-bg-none { background: var(--surface-sunken); border: 0; }
.kg-cta-card.kg-cta-bg-blue { background: var(--sky-100); border: 0; }
.kg-cta-card.kg-cta-bg-green { background: var(--kelp-100); border: 0; }
.kg-cta-card.kg-cta-bg-yellow { background: var(--sand-100); border: 0; }
.kg-cta-card.kg-cta-bg-red, .kg-cta-card.kg-cta-bg-pink { background: var(--coral-100); border: 0; }
.kg-cta-card.kg-cta-bg-purple { background: var(--tide-100); border: 0; }
.kg-signup-card { background: var(--surface-inverse); color: var(--ink-inverse); padding: var(--space-8); }
.kg-product-card-container, .kg-audio-card, .kg-video-card { background: var(--surface-card); border: 1px solid var(--border-hairline); }
.kg-header-card.kg-style-light { background: var(--surface-card); color: var(--ink); border: 1px solid var(--border-hairline); }
.kg-header-card.kg-style-accent { background: var(--tide-500); color: var(--on-tide); }
.kg-header-card .kg-header-card-subheader, .kg-header-card .kg-header-card-subheading { margin-top: var(--space-3); opacity: .8; }

/* Comments */
.gh-comments { margin-top: var(--space-12); }

/* Pagination on tag and author archives */
.gh-pagination { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-12); font-size: 13px; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }

/* Author archive header */
.author-hero { display: flex; gap: var(--space-6); align-items: center; padding: var(--space-12) 0 var(--space-10); }
.author-hero .avatar { width: 96px; height: 96px; font-size: 30px; }
.author-hero p { margin: var(--space-2) 0 0; color: var(--ink-muted); max-width: 60ch; font-size: 17px; line-height: 26px; }
@media (max-width: 520px) { .author-hero { flex-direction: column; align-items: flex-start; } }
img.avatar { object-fit: cover; }

/* Static pages (page.hbs) */
.page-content { padding-bottom: var(--space-12); }

/* Archive row without JS still shows the year */
.archive-row__year { display: none; }
.no-js .archive-row__year { display: inline; }

/* ---------- Contact (page-contact.hbs) ---------- */
.contact { padding: var(--space-12) 0 var(--space-8); }
.contact__grid { display: grid; gap: var(--space-10); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1056px) { .contact__grid { grid-template-columns: 5fr 6fr; gap: var(--space-16); } }
.contact__title { font-size: 48px; line-height: 52px; letter-spacing: -0.03em; font-weight: 550; }
@media (max-width: 671px) { .contact__title { font-size: 34px; line-height: 40px; } }
.contact__body { margin-top: var(--space-6); font-size: 16px; line-height: 26px; color: var(--ink-muted); }
.contact__channels { display: grid; gap: var(--space-2); margin-top: var(--space-8); }
.contact__channel { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); min-height: 64px; border-radius: var(--radius-md); background: var(--surface-card); border: 1px solid var(--border-hairline); color: var(--ink); text-decoration: none; }
.contact__channel:hover { border-color: var(--border-control); color: var(--ink); }
.contact__channel:hover .contact__v { color: var(--link-hover); }
.contact__icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--tide-100); color: var(--tide-700); flex: none; }
.contact__k { display: block; font-size: 13px; line-height: 18px; color: var(--ink-subtle); }
.contact__v { display: block; font-weight: 500; overflow-wrap: anywhere; }
.contact__image { margin: var(--space-8) 0 0; }
.contact__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface-sunken); }
.contact__image figcaption { font-size: 13px; color: var(--ink-subtle); margin-top: var(--space-2); }
.contact__card { padding: var(--space-8); }
@media (max-width: 671px) { .contact__card { padding: var(--space-5); } }
@media (min-width: 1056px) { .contact__card { position: sticky; top: 96px; } }
.contact__form-title { font-size: 24px; line-height: 30px; letter-spacing: -0.02em; }
.contact-form { display: grid; gap: var(--space-5); }
.contact-form__actions { display: flex; justify-content: flex-end; gap: var(--space-3); }
@media (max-width: 520px) { .contact-form__actions .btn { width: 100%; } }
.contact__setup { border: 0; padding: var(--space-10) var(--space-4); }

/* Fields: labels above, helper/error in caption below. Outline 3:1, strong on hover, coral when invalid. */
.input--field { border-radius: var(--radius-md); width: 100%; }
.textarea { width: 100%; min-height: 168px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--border-control); background: var(--field-bg); color: var(--ink); font: 400 16px/24px var(--font-sans); resize: vertical; }
.textarea:hover { border-color: var(--border-strong); }
.textarea::placeholder { color: var(--text-placeholder); }
.input:focus-visible, .textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.field__help, .field__msg { margin: 0; font-size: 13px; line-height: 18px; }
.field__help { color: var(--ink-muted); }
.field__msg { display: flex; gap: 6px; align-items: center; color: var(--support-error); }
.field__msg .ico { width: 16px; height: 16px; }
.is-invalid .input, .is-invalid .textarea { border-color: var(--support-error); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.notice { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: 14px; line-height: 20px; }
.notice .ico { margin-top: 1px; }
.notice--error { background: var(--support-error-bg); color: var(--ink); }
.notice--error .ico { color: var(--support-error); }

.contact-done { display: grid; gap: var(--space-3); justify-items: start; padding: var(--space-4) 0; }
.contact-done:focus { outline: none; }
.contact-done__icon { width: 56px; height: 56px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--support-success-bg); color: var(--support-success); margin-bottom: var(--space-2); }
.contact-done h2 { font-size: 24px; line-height: 30px; letter-spacing: -0.02em; }
.contact-done p { margin: 0 0 var(--space-3); color: var(--ink-muted); }
