/* The avilo blog theme for Ghost 6 (avilo.no/blog/).
   Everything visible is taken from the avilo.no site (Next.js, branch vk/avilo-improvements) and its design rules
   (reference/DESIGN_RULES.md): the navy tokens of src/app/globals.css, Schibsted Grotesk, the header and footer of
   src/components/landing/, and the blog list and article of src/components/articles/. Tailwind values from those
   components are written out here as plain CSS. */

/* ---------- Fonts: self-hosted, the same files the site serves (Schibsted Grotesk, Geist Mono; SIL OFL) ---------- */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin.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;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Arial sized to Schibsted's metrics while the font loads (the values next/font generates for the site) */
@font-face {
  font-family: "Schibsted Grotesk Fallback";
  src: local("Arial");
  ascent-override: 93.46%;
  descent-override: 24.67%;
  line-gap-override: 0%;
  size-adjust: 104.49%;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin.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;
}

/* ---------- Tokens (src/app/globals.css) ---------- */
:root {
  --navy-50: #f4f6fc;
  --navy-100: #dae2f5;
  --navy-200: #abbff1;
  --navy-300: #7f97d6;
  --navy-400: #3a5bb0;
  --navy-500: #173a91;
  --navy-600: #133078;
  --navy-700: #102863;
  --navy-800: #0d1f4e;
  --navy-900: #09163a;
  --navy-950: #060e27;
  --ink: #313628;
  --slate: #4b5777;
  --surface: #f3f5fa;
  --hairline: rgb(9 22 58 / 0.09);
  --font: var(--gh-font-body, "Schibsted Grotesk"), "Schibsted Grotesk Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-heading: var(--gh-font-heading, "Schibsted Grotesk"), "Schibsted Grotesk Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* a strong ease-out for things that open, settle or answer a click */
  --av-ease: cubic-bezier(0.23, 1, 0.32, 1);
  /* Koenig cards (card_assets) read this; Ghost sets it from Settings, Brand, Accent colour */
  --ghost-accent-color: var(--navy-700);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--navy-700); font-family: var(--font-heading); font-weight: 500; text-wrap: balance; }
p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: inherit; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
::selection { background: var(--navy-100); color: var(--navy-900); }

/* One focus ring everywhere: 2px, a little away from the element; navy on light surfaces, white on navy ones. */
:focus-visible { outline: 2px solid var(--focus-ring, var(--navy-700)); outline-offset: 3px; border-radius: 2px; }
.site-footer, .error-panel, .cta-band__panel { --focus-ring: #fff; }
main:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--16 { width: 1rem; height: 1rem; }
.icon--20 { width: 1.25rem; height: 1.25rem; stroke-width: 1.75; }
.icon--24 { width: 1.5rem; height: 1.5rem; }

/* The site's content column (landing/type.ts: container) */
.container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container { padding-inline: 2rem; } }

/* The page title (landing/type.ts: pageTitle) */
.page-title { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.06; letter-spacing: -0.032em; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1rem; border-radius: 0.5rem;
  background: var(--navy-700); color: #fff; font-size: 0.9375rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.scroll-marker { position: absolute; top: 0; left: 0; width: 1px; height: 0.5rem; pointer-events: none; }

/* ---------- Header (landing/header.tsx, .site-header in globals.css) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff; color: var(--navy-950);
  box-shadow: 0 1px 0 var(--hairline);
  transition: box-shadow 300ms var(--av-ease);
}
.site-header[data-scrolled] { box-shadow: 0 1px 0 var(--hairline), 0 10px 28px -18px rgb(6 14 39 / 0.28); }
.site-header__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.75rem;
  width: 100%; max-width: 80rem; height: 4.5rem; margin-inline: auto; padding-inline: 1.25rem;
}
@media (min-width: 640px) { .site-header__bar { gap: 1.5rem; padding-inline: 2rem; } }
.site-header__links { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 1024px) { .site-header__links { display: flex; } }
@media (min-width: 1280px) { .site-header__links { gap: 2rem; } }
.nav-link {
  position: relative; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; color: rgb(9 22 58 / 0.7);
  transition: color 150ms ease;
}
.nav-link:hover { color: var(--navy-950); }
.nav-link::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -0.45rem; height: 2px; border-radius: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--av-ease);
}
.nav-link[aria-current] { color: var(--navy-950); }
.nav-link[aria-current]::after { transform: scaleX(1); }
.site-header__toggle {
  display: grid; place-items: center; justify-self: start; width: 2.75rem; height: 2.75rem; margin-left: -0.625rem;
  padding: 0; border: 0; border-radius: 0.375rem; background: none; cursor: pointer;
}
.site-header__close, .site-header[data-open] .site-header__open { display: none; }
.site-header[data-open] .site-header__close { display: block; }
@media (min-width: 1024px) { .site-header__toggle { display: none; } }
.no-js .site-header__toggle { display: none; }
.site-header__logo { border-radius: 2px; }
.site-header__logo img { width: auto; height: 1.75rem; }
@media (min-width: 1024px) { .site-header__logo img { height: 2rem; } }
.site-header__end { display: flex; align-items: center; justify-content: flex-end; gap: 1.75rem; }
.site-header__lang { display: none; }
@media (min-width: 1024px) { .site-header__lang { display: inline; } }
.header-button {
  border-radius: 0.5rem; padding: 0.375rem 0.75rem; background: var(--navy-700); color: #fff;
  font-size: 0.875rem; font-weight: 500; white-space: nowrap; transition: background-color 150ms ease;
}
.header-button:hover { background: var(--navy-900); }
.header-button:focus-visible { outline-offset: 2px; outline-color: var(--navy-950); }
@media (min-width: 640px) { .header-button { padding: 0.5rem 1rem; font-size: 0.9375rem; } }

.mobile-menu { height: calc(100dvh - 4.5rem); overflow-y: auto; padding: 1rem 1.25rem 2.5rem; background: #fff; }
@media (min-width: 640px) { .mobile-menu { padding-inline: 2rem; } }
@media (min-width: 1024px) { .mobile-menu { display: none; } }
.mobile-menu[hidden] { display: none; }
.mobile-menu__links li { border-bottom: 1px solid var(--hairline); }
.mobile-menu__links a { display: block; padding-block: 1rem; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.mobile-menu__links a[aria-current] { color: var(--navy-700); }
.mobile-menu__lang { margin-top: 2rem; }
.mobile-menu__lang .nav-link::after { display: none; }
@media (prefers-reduced-motion: reduce) { .site-header, .nav-link::after { transition: none; } }

/* ---------- Footer (landing/footer.tsx) ---------- */
.site-footer { border-top: 1px solid rgb(255 255 255 / 0.1); background: var(--navy-950); color: var(--navy-100); }
.site-footer__inner { padding-top: 4rem; }
@media (min-width: 1024px) { .site-footer__inner { padding-top: 5rem; } }
.site-footer__grid { display: grid; gap: 3.5rem; }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.site-footer__logo { width: auto; height: 2rem; }
.site-footer__tagline { margin-top: 0.75rem; color: var(--navy-200); font-size: 0.9375rem; }
.site-footer__about { max-width: 24rem; margin-top: 1.25rem; color: rgb(218 226 245 / 0.7); font-size: 0.9375rem; line-height: 1.625; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2rem; font-size: 0.9375rem; }
.site-footer__social a {
  color: #fff; text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.25); text-underline-offset: 5px;
  transition: text-decoration-color 150ms ease;
}
.site-footer__social a:hover { text-decoration-color: #fff; }
.site-footer__columns { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .site-footer__columns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-footer__title { color: #fff; font-size: 0.9375rem; font-weight: 500; }
.site-footer__columns ul { display: grid; gap: 0.75rem; margin-top: 1.25rem; font-size: 0.9375rem; }
.site-footer__columns a { color: rgb(218 226 245 / 0.75); transition: color 150ms ease; }
.site-footer__columns a:hover { color: #fff; }
.site-footer__legal { margin-top: 4rem; padding-block: 2rem; border-top: 1px solid rgb(255 255 255 / 0.1); color: var(--navy-200); font-size: 0.875rem; }

/* ---------- Buttons (components/ui/button: the site's one shape) ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.25rem; border: 0;
  border-radius: 0.5rem; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}
.button:active { transform: scale(0.98); }
.button--inverse { background: #fff; color: var(--navy-900); }
.button--inverse:hover { background: var(--navy-100); }
.button--inverse:focus-visible { outline-color: #fff; outline-offset: 2px; }

/* ---------- Blog list: the page hero (ui/page-hero.tsx) and the grid (articles/article-grid.tsx) ---------- */
.page-hero { background: #fff; }
.page-hero .container { padding-block: 4rem; }
@media (min-width: 640px) { .page-hero .container { padding-block: 5rem; } }
@media (min-width: 1024px) { .page-hero .container { padding-block: 6rem; } }
.page-hero__text { max-width: 56rem; }
.page-hero__intro { max-width: 42rem; margin-top: 1.75rem; color: rgb(49 54 40 / 0.8); font-size: 1.125rem; line-height: 1.625; text-wrap: pretty; }
@media (min-width: 640px) { .page-hero__intro { font-size: 1.25rem; } }
.page-hero__count { margin-top: 1rem; color: var(--slate); font-size: 0.9375rem; }
.page-hero__count a { margin-left: 1rem; color: var(--navy-700); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.author-hero { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem; }
.author-hero__image { width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; }

.list { padding-bottom: 6rem; }
.list__empty { color: var(--slate); font-size: 1.125rem; }
.grid { display: grid; gap: 3.5rem 2rem; margin-top: 5rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* A card: the title's link covers it; keyboard focus outlines the whole card, not the link. */
.card { position: relative; border-radius: 1rem; outline-offset: 8px; }
.card:has(a:focus-visible) { outline: 2px solid var(--navy-700); }
.card a:focus-visible { outline: none; }
.card__cover { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 1rem; background: var(--navy-50); }
.card__cover img { width: 100%; height: 100%; object-fit: cover; }
/* a post without a feature image: the navy surface with the wordmark small and faint, in the cover's place */
.card__cover--empty { display: grid; place-items: center; background: var(--navy-700); }
.card__cover .card__placeholder { width: 22%; min-width: 4.5rem; max-width: 8rem; height: auto; object-fit: contain; opacity: 0.22; }
.card--featured .card__cover .card__placeholder { width: 18%; max-width: 10rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .card:hover .card__cover .card__placeholder { transform: none; } }
.card__title { margin-top: 0.5rem; font-size: 1.25rem; line-height: 1.375; }
.card__title a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title a { text-decoration-line: underline; }
.card__excerpt {
  display: -webkit-box; margin-top: 0.75rem; overflow: hidden; color: rgb(49 54 40 / 0.75); line-height: 1.625;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.card__body { min-width: 0; }
.card__body > .meta { margin-top: 1.25rem; }

/* the first post: large, its cover beside the text from 1024px */
.card--featured { display: grid; align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .card--featured { grid-template-columns: 1.25fr 1fr; gap: 3.5rem; } }
.card--featured .card__body > .meta { margin-top: 0; }
.card--featured .card__title { margin-top: 0.75rem; font-size: 1.875rem; line-height: 1.25; letter-spacing: -0.025em; }
@media (min-width: 640px) { .card--featured .card__title { font-size: 2.25rem; } }
.card--featured .card__title a { text-underline-offset: 6px; }
.card--featured .card__excerpt { margin-top: 1.25rem; color: rgb(49 54 40 / 0.8); font-size: 1.125rem; -webkit-line-clamp: 4; }

/* date and reading time, side by side; the tag on a post */
.meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; color: var(--slate); font-size: 0.875rem; }
.meta a { color: var(--navy-700); font-weight: 500; text-decoration: underline; text-decoration-color: rgb(16 40 99 / 0.3); text-underline-offset: 4px; transition: text-decoration-color 150ms ease; }
.meta a:hover { text-decoration-color: currentColor; }

/* covers settle in a little closer on hover, on devices that hover (articles/article.module.css) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card__cover img { transition: transform 600ms var(--av-ease); }
  .card:hover .card__cover img { transform: scale(1.035); }
}

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 5rem; padding-top: 2rem; border-top: 1px solid rgb(6 14 39 / 0.1); }
.pager__info { color: var(--slate); font-size: 0.9375rem; }
.pager__link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--navy-700); font-size: 0.9375rem; font-weight: 600; }
.pager__link:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.pager__link[rel="next"] { justify-self: end; }
.pager__link .icon { transition: transform 200ms ease-out; }
.pager__link[rel="prev"]:hover .icon { transform: translateX(-2px); }
.pager__link[rel="next"]:hover .icon { transform: translateX(2px); }
@media (max-width: 479.98px) { .pager__info { display: none; } .pager { grid-template-columns: 1fr 1fr; } }

/* ---------- Post (articles/article-layout.tsx) ---------- */
.post { padding-bottom: 6rem; }

/* a thin line along the top of the window that fills as the post is read (CSS scroll timeline, no script) */
.read-progress { display: none; }
@supports (animation-timeline: scroll()) {
  .read-progress {
    display: block; position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; background: var(--navy-400);
    transform-origin: left; transform: scaleX(0); pointer-events: none;
    animation: read linear both; animation-timeline: scroll(root block);
  }
}
@keyframes read { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .read-progress { display: none; } }

.post-head, .post-cover, .cta-band { width: 100%; max-width: 48rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .post-head, .post-cover, .cta-band { padding-inline: 2rem; } }
.post-head { padding-top: 3rem; padding-bottom: 2.5rem; }
@media (min-width: 640px) { .post-head { padding-top: 4rem; } }
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 2px; color: var(--navy-700); font-size: 0.875rem; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-decoration-color 150ms ease;
}
.back-link:hover { text-decoration-color: transparent; }
.back-link .icon { transition: transform 200ms ease-out; }
.back-link:hover .icon { transform: translateX(-2px); }
.post-head__title { margin-top: 2.5rem; }
.post-head__lead { margin-top: 1.5rem; color: rgb(49 54 40 / 0.8); font-size: 1.25rem; line-height: 1.6; text-wrap: pretty; }
.post-head__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.meta--post { font-size: 1rem; }
.copy-link {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border: 0; border-radius: 0.5rem; background: none;
  box-shadow: inset 0 0 0 1px rgb(16 40 99 / 0.15); color: var(--navy-700); font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.copy-link:hover { background: var(--navy-50); box-shadow: inset 0 0 0 1px rgb(16 40 99 / 0.3); }
.copy-link:active { transform: scale(0.97); }
.copy-link:focus-visible { outline-offset: 2px; }
.copy-link__done, .copy-link[data-done] .copy-link__idle { display: none; }
.copy-link[data-done] .copy-link__done { display: block; }
.no-js .copy-link { display: none; }

.post-cover img { width: 100%; border-radius: 1rem; }
.post-cover figcaption, .gh-content figcaption { margin-top: 0.75rem; color: var(--slate); font-size: 0.875rem; line-height: 1.5; text-align: center; text-wrap: pretty; }
.post-cover figcaption a, .gh-content figcaption a { text-decoration: underline; text-underline-offset: 3px; }

/* the navy call to action at the end of a post (ui/cta-band.tsx), in the article's column */
.cta-band { margin-top: 5rem; }
.cta-band__panel { padding: 2.5rem 2rem; border-radius: 1rem; background: var(--navy-700); color: #fff; }
@media (min-width: 640px) { .cta-band__panel { padding: 3.5rem 3rem; } }
.cta-band__title { max-width: 42rem; color: #fff; font-size: 1.875rem; line-height: 1.25; letter-spacing: -0.025em; }
@media (min-width: 640px) { .cta-band__title { font-size: 2.25rem; } }
.cta-band__body { max-width: 36rem; margin-top: 1rem; color: var(--navy-100); font-size: 1.125rem; line-height: 1.625; }
.cta-band .button { margin-top: 2rem; }

/* ---------- Post content: the site's article typography (articles/article-body.tsx, prose-lg) ----------
   One grid with named lines: text in "main" (the 704px column of the article), kg-width-wide reaches "wide",
   kg-width-full the window's edges. */
.gh-content {
  --main: min(44rem, calc(100% - 2.5rem));
  display: grid;
  grid-template-columns:
    [full-start] minmax(1.25rem, 1fr)
    [wide-start] minmax(0, 8rem)
    [main-start] var(--main) [main-end]
    minmax(0, 8rem) [wide-end]
    minmax(1.25rem, 1fr) [full-end];
  padding-top: 3rem;
  color: rgb(49 54 40 / 0.9);
  font-size: 1.125rem;
  line-height: 1.625;
  overflow-wrap: break-word;
}
@media (min-width: 640px) { .gh-content { --main: min(44rem, calc(100% - 4rem)); } }
.gh-content--page { padding-top: 0; }
.post-head + .gh-content--page { padding-top: 0.5rem; }
.gh-content > * { grid-column: main-start / main-end; min-width: 0; }
.gh-content > .kg-width-wide { grid-column: wide-start / wide-end; }
.gh-content > .kg-width-full { grid-column: full-start / full-end; }

.gh-content > * + * { margin-top: 1.333em; }
.gh-content > :first-child { margin-top: 0; }
.gh-content > h2 { margin-top: 3rem; font-size: 1.875rem; line-height: 1.267; letter-spacing: -0.025em; }
.gh-content > h3 { margin-top: 2.5rem; font-size: 1.5rem; line-height: 1.333; letter-spacing: -0.02em; }
.gh-content > h4 { margin-top: 2rem; font-size: 1.125rem; line-height: 1.5; }
.gh-content > :is(h5, h6) { margin-top: 1.75rem; font-size: 1rem; }
.gh-content > :is(h2, h3, h4, h5, h6) + * { margin-top: 0.75em; }
.gh-content a { color: var(--navy-500); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; transition: color 150ms ease; }
.gh-content a:hover { color: var(--navy-700); }
.gh-content strong { color: var(--navy-900); font-weight: 600; }
.gh-content ul, .gh-content ol { padding-left: 1.556em; }
.gh-content ul { list-style: disc; }
.gh-content ol { list-style: decimal; }
.gh-content li { margin-block: 0.667em; padding-left: 0.444em; }
.gh-content li::marker { color: var(--navy-700); font-variant-numeric: normal; }
.gh-content li > :is(ul, ol) { margin-block: 0.889em; }
.gh-content hr { width: 100%; height: 0; margin-block: 3rem; border: 0; border-top: 1px solid rgb(6 14 39 / 0.1); }
.gh-content blockquote:not([class]) { padding-left: 1em; border-left: 4px solid var(--navy-100); color: var(--navy-900); font-weight: 500; }
.gh-content blockquote.kg-blockquote-alt { padding-inline: 1.5rem; font-style: normal; color: var(--navy-700); font-size: 1.5rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; text-align: center; text-wrap: balance; }
.gh-content code { padding: 0.15em 0.35em; border-radius: 0.25rem; background: var(--navy-50); color: var(--navy-900); font-family: var(--font-mono); font-size: 0.85em; }
.gh-content pre { overflow-x: auto; padding: 1.25rem 1.5rem; border-radius: 0.75rem; background: var(--navy-950); color: var(--navy-100); font-size: 0.875rem; line-height: 1.7; scrollbar-color: rgb(255 255 255 / 0.25) transparent; }
.gh-content pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.gh-content table:not(.gist table) { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.gh-content th, .gh-content td { padding: 0.5rem 0.75rem; border-bottom: 1px solid rgb(6 14 39 / 0.1); text-align: left; vertical-align: top; }
.gh-content th { color: var(--navy-900); font-weight: 600; border-bottom-color: rgb(6 14 39 / 0.2); }
.gh-content mark { background: var(--navy-100); color: var(--navy-900); }
.gh-content sup, .gh-content sub { line-height: 0; }
@media (max-width: 639.98px) { .gh-content pre { margin-inline: -1.25rem; border-radius: 0; } }

/* ---------- Koenig cards (card_assets loads Ghost's own card CSS and JS; these rules bring them into the look) ---------- */
.gh-content .kg-card { margin-top: 2rem; margin-bottom: 0; }
.gh-content .kg-card + :not(.kg-card) { margin-top: 2rem; }
.kg-image-card img { margin-inline: auto; border-radius: 0.75rem; }
.kg-width-wide.kg-image-card img { border-radius: 1rem; }
.kg-width-full.kg-image-card img { width: 100%; border-radius: 0; }
.kg-width-full figcaption { padding-inline: 1.25rem; }
.kg-image-card a { display: block; }
.kg-gallery-card img { border-radius: 0.5rem; }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-embed-card iframe { max-width: 100%; border-radius: 0.75rem; }
.kg-video-card, .kg-video-card video { border-radius: 0.75rem; }
.gh-content .kg-audio-card { border-radius: 0.75rem; box-shadow: inset 0 0 0 1px rgb(6 14 39 / 0.1); }
.gh-content .kg-file-card a.kg-file-card-container { border-radius: 0.75rem; box-shadow: inset 0 0 0 1px rgb(6 14 39 / 0.1); background: #fff; color: var(--navy-900); font-weight: 400; text-decoration: none; }
.gh-content .kg-file-card a.kg-file-card-container:hover { background: var(--navy-50); }
.kg-file-card-title, .kg-audio-title { color: var(--navy-900); font-weight: 600; }

.gh-content .kg-callout-card { padding: 1.25rem 1.5rem; border-radius: 0.75rem; font-size: 1.0625rem; line-height: 1.6; }
.gh-content .kg-callout-card-grey, .gh-content .kg-callout-card-white { background: var(--navy-50); }
.gh-content .kg-callout-card-blue { background: var(--navy-100); }
.gh-content .kg-callout-card-accent { background: var(--navy-700); }
.gh-content .kg-callout-card a { color: inherit; }
.kg-callout-text { color: var(--ink); }
.kg-callout-card-accent .kg-callout-text { color: #fff; }

.gh-content .kg-toggle-card { padding: 1rem 1.25rem; border-radius: 0.75rem; background: #fff; box-shadow: inset 0 0 0 1px rgb(6 14 39 / 0.1); }
.gh-content .kg-toggle-heading-text { color: var(--navy-900); font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 500 !important; letter-spacing: -0.01em; }
.gh-content .kg-toggle-content { color: rgb(49 54 40 / 0.9); font-size: 1rem; }
.gh-content .kg-toggle-card-icon svg { color: var(--navy-700); }

.gh-content .kg-bookmark-card a.kg-bookmark-container {
  overflow: hidden; border-radius: 1rem; background: #fff; box-shadow: inset 0 0 0 1px rgb(6 14 39 / 0.07);
  color: var(--navy-950); font-weight: 400; text-decoration: none; transition: box-shadow 300ms ease;
}
@media (hover: hover) { .gh-content .kg-bookmark-card a.kg-bookmark-container:hover { box-shadow: inset 0 0 0 1px rgb(6 14 39 / 0.07), 0 18px 40px -24px rgb(6 14 39 / 0.35); } }
.kg-bookmark-title { color: var(--navy-950); font-weight: 500; }
.kg-bookmark-description, .kg-bookmark-metadata { color: var(--slate); }

.gh-content .kg-button-card a.kg-btn, .gh-content .kg-header-card a.kg-header-card-button, .gh-content .kg-product-card a.kg-product-card-button {
  height: auto; padding: 0.75rem 1.25rem; border-radius: 0.5rem; font-family: var(--font); font-size: 0.9375rem; font-weight: 600; line-height: 1.5;
  text-decoration: none; transition: background-color 150ms ease, transform 150ms ease;
}
.gh-content .kg-button-card a.kg-btn-accent { background: var(--navy-700); color: #fff; }
.gh-content .kg-button-card a.kg-btn-accent:hover { background: var(--navy-900); }
.gh-content .kg-button-card a.kg-btn:active { transform: scale(0.98); }
.gh-content .kg-header-card { border-radius: 1rem; }
.gh-content .kg-header-card.kg-width-full { border-radius: 0; }
.gh-content .kg-header-card h2.kg-header-card-header, .gh-content .kg-header-card h2.kg-header-card-heading { font-family: var(--font-heading); font-weight: 500; letter-spacing: -0.025em; }
.gh-content .kg-product-card-container { border-radius: 1rem; background: #fff; box-shadow: inset 0 0 0 1px rgb(6 14 39 / 0.07); }
.gh-content .kg-product-card-title { color: var(--navy-950); font-family: var(--font-heading); font-weight: 500; }
.gh-content .kg-product-card-description { color: rgb(49 54 40 / 0.9); }
.gh-content .kg-signup-card { border-radius: 1rem; }

/* ---------- Error pages: the site's own 404 (app/global-not-found.tsx) ---------- */
.error-panel { background: var(--navy-700); color: #fff; }
.error-panel__inner { display: flex; flex-direction: column; justify-content: center; max-width: 48rem; min-height: calc(100dvh - 4.5rem); margin-inline: auto; padding: 2rem 1.25rem 5rem; }
@media (min-width: 640px) { .error-panel__inner { padding-inline: 2rem; } }
.error-panel__code { color: var(--navy-200); font-size: 1.125rem; }
.error-panel__title { margin-top: 1rem; color: #fff; }
.error-panel__body { margin-top: 1.5rem; color: var(--navy-100); font-size: 1.125rem; line-height: 1.625; }
.error-panel__links { display: grid; gap: 0.75rem; margin-top: 3rem; }
@media (min-width: 640px) { .error-panel__links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.error-panel__links a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; padding: 1.25rem; border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); transition: background-color 150ms ease, transform 150ms ease;
}
.error-panel__links a:hover { background: rgb(255 255 255 / 0.1); }
.error-panel__links a:active { transform: scale(0.99); }
.error-panel__links a:focus-visible { outline-offset: 2px; }
.error-panel__links span { color: #fff; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; }
.error-panel__links small { display: block; margin-top: 0.125rem; color: var(--navy-200); font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; }
.error-panel__links .icon { color: var(--navy-200); transition: transform 200ms ease-out, color 200ms ease-out; }
.error-panel__links a:hover .icon { color: #fff; transform: translate(2px, -2px); }

@media (prefers-reduced-motion: reduce) {
  .button, .copy-link, .back-link .icon, .pager__link .icon, .error-panel__links a, .error-panel__links .icon { transition: none; }
  .button:active, .copy-link:active, .error-panel__links a:active { transform: none; }
}
