/* ============================================================
   Gnucoop — Amplified
   The Academy's design language (academy.gnucoop.com) on the Gnucoop navy:
   a dark ground, cream inset panels, one gold accent, Montserrat headlines,
   mono labels. Contrast ratios (WCAG, all AA) are against --bg unless noted.
   ============================================================ */

:root {
  /* ground */
  --bg:        #0B1F3A;   /* the logo navy #002C62, deepened for a full page */
  --bg-raised: #10284A;   /* header on scroll, inputs */
  --surface:   rgba(244, 241, 233, .05);
  --surface-2: rgba(244, 241, 233, .08);
  --line:      rgba(244, 241, 233, .12);
  --line-2:    rgba(244, 241, 233, .22);

  /* text on navy */
  --cream:     #F4F1E9;   /* headings              14.6:1 */
  --text:      #D9DCE0;   /* body                  12.0:1 */
  --muted:     #A3AFBF;   /* secondary              7.4:1 */
  --label:     #8FB3D9;   /* mono eyebrows          7.6:1 */

  /* the one accent */
  --gold:       #E8C46A;  /* on navy                9.9:1 */
  --gold-hover: #F2D68E;
  --on-gold:    #0B1F3A;  /* text on gold           9.9:1 */

  /* cream panels and their ink */
  --panel:      #F4F1E9;
  --tile:       #FFFFFF;
  --ink:        #0B1F3A;  /* on cream              14.6:1 */
  --ink-body:   #3B4A5E;  /* on cream               8.0:1 */
  --ink-muted:  #5E6B7C;  /* on cream               4.8:1 */
  --ink-line:   rgba(11, 31, 58, .12);
  --brand:      #002C62;  /* the logo colour, exactly */

  --display: var(--gh-font-heading, 'Montserrat', system-ui, sans-serif);
  --body: var(--gh-font-body, 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif);
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1200px;
  --measure: 720px;
  --gutter: clamp(16px, 4vw, 48px);
  --r-lg: 24px;
  --r: 18px;
  --r-sm: 12px;
  --pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--cream); margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--on-gold); padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--on-gold); }

/* ---------- layout ---------- */
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: 96px; }
.section--tight { padding-top: 0; }
.section--sm { padding-block: 56px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.section__head .lede { margin-top: 16px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--label); margin: 0 0 18px;
}
.eyebrow--gold { color: var(--gold); }
.display {
  font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.02;
  letter-spacing: -.03em; margin: 0 0 28px;
}
.h1 { font-size: clamp(36px, 4.8vw, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; margin: 0 0 24px; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.h3 { font-size: 23px; font-weight: 700; line-height: 1.2; }
.hl { color: var(--gold); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text); max-width: 640px; margin: 0; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 30px; border-radius: var(--pill);
  font-family: var(--body); font-size: 17px; font-weight: 700; line-height: 1;
  border: 1px solid transparent; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold:hover { background: var(--gold-hover); color: var(--on-gold); }
.btn--outline { border-color: var(--line-2); color: var(--cream); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--brand); color: var(--cream); }
.btn--sm { min-height: 42px; padding: 10px 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

.link-arrow { font-weight: 700; color: var(--gold); border-bottom: 1px solid rgba(232, 196, 106, .45); padding-bottom: 2px; white-space: nowrap; }
.link-arrow:hover { border-bottom-color: var(--gold); }
.link-arrow::after { content: " →"; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 31, 58, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; flex: none; }
.brand__logo { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 17px; }
.nav a { color: var(--text); padding: 6px 0; }
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold); }
.nav__cta { display: none; }
.header__end { display: flex; align-items: center; gap: 18px; flex: none; }
.locale { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; }
.locale a { color: var(--muted); padding: 6px 2px; }
.locale a:hover { color: var(--gold); }
.locale [aria-current="true"] { color: var(--cream); }
.locale__sep { color: var(--line-2); }
.search-toggle {
  display: flex; width: 40px; height: 40px; padding: 0; border-radius: var(--pill);
  background: none; border: 1px solid transparent; color: var(--muted);
  align-items: center; justify-content: center; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.search-toggle:hover { color: var(--gold); border-color: var(--line); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line); color: var(--cream);
  align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- hero ---------- */
.hero { padding-block: 104px 72px; }
.hero .display { max-width: 15ch; margin-inline: auto; }
.hero .lede { margin: 0 auto 40px; }

/* The Academy's ascending bars, carrying the At a glance figures. The bars
   are a designed progression building to "always", not a chart - nothing
   could proportion "20+" against "14" - so they are aria-hidden and the
   numbers under them carry the meaning. */
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 760px; margin: 72px auto 0; align-items: start; }
/* Every bar's foot sits on the same line, 130px down, whatever the labels
   under it wrap to: the bar is pushed down by what it lacks of the tallest. */
.glance__bar { height: var(--h); margin-top: calc(130px - var(--h)); border-radius: 4px 4px 0 0; background: #2A4A73; }
.glance__item:nth-child(2) .glance__bar { background: #3A5E8C; }
.glance__item:nth-child(3) .glance__bar { background: #4F77A8; }
.glance__item:last-child .glance__bar { background: var(--gold); }
.glance__v { display: block; margin-top: 18px; font-family: var(--display); font-size: clamp(18px, 4.6vw, 38px); font-weight: 800; color: var(--cream); line-height: 1; }
.glance__item:last-child .glance__v { color: var(--gold); }
.glance__k { display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }

/* ---------- cream panels and bento ---------- */
.panel { background: var(--panel); color: var(--ink-body); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 64px); }
.panel h1, .panel h2, .panel h3 { color: var(--ink); }
.panel .eyebrow { color: var(--ink-muted); }
.panel .lede { color: var(--ink-body); }
.panel a:hover { color: var(--brand); }
.panel__head { max-width: 720px; margin-bottom: 40px; }
.panel__head .lede { margin-top: 16px; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--tile); border: 1px solid var(--ink-line); border-radius: var(--r); padding: 30px 28px; display: flex; flex-direction: column; }
.tile__n { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--ink-muted); margin: 0 0 18px; }
.tile h3 { font-size: 23px; font-weight: 800; line-height: 1.2; margin: 0 0 12px; }
.tile p { font-size: 16px; line-height: 1.6; margin: 0; color: var(--ink-body); }
.tile__icon { margin-top: auto; padding-top: 26px; color: var(--brand); }
.tile--dark { background: var(--ink); border-color: var(--ink); }
.tile--dark h3 { color: var(--cream); }
.tile--dark p { color: var(--text); }
.tile--dark .tile__n { color: var(--label); }
.tile--dark .tile__icon { color: var(--gold); }
.tile--gold { background: var(--gold); border-color: var(--gold); }
.tile--gold p, .tile--gold .tile__n { color: #3A3320; }
.tile--gold .tile__icon { color: var(--ink); }

/* ---------- dark cards ---------- */
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
a.card:hover { border-color: rgba(232, 196, 106, .55); background: var(--surface-2); transform: translateY(-3px); color: inherit; }
.card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__n { font-family: var(--mono); font-size: 13px; color: var(--gold); margin: 0 0 16px; }
.card__meta { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--label); margin: 0 0 12px; text-transform: uppercase; }
.card__title { font-size: 21px; font-weight: 700; line-height: 1.25; color: var(--cream); margin: 0 0 10px; }
.card__dek { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
.card__more { margin-top: auto; padding-top: 22px; font-weight: 700; color: var(--gold); font-size: 15px; }
.card__media { aspect-ratio: 16 / 10; background: var(--bg-raised); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.card:hover .card__media img { transform: scale(1.03); }

/* ---------- calendar list (blog) ---------- */
.calendar { border-top: 1px solid var(--line); }
.calendar__row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 28px; align-items: baseline;
  padding: 24px 4px; border-bottom: 1px solid var(--line); transition: background .15s ease;
}
a.calendar__row:hover { background: var(--surface); color: inherit; }
a.calendar__row:hover .calendar__title { color: var(--gold); }
.calendar__date { font-family: var(--mono); font-size: 15px; color: var(--gold); white-space: nowrap; }
.calendar__title { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--cream); margin: 0; transition: color .15s ease; }
.calendar__dek { font-size: 16px; color: var(--muted); margin: 6px 0 0; line-height: 1.55; }
.calendar__meta { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- chips and pagination ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: var(--pill);
  border: 1px solid var(--line-2); font-size: 15px; font-weight: 600; color: var(--text);
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip--on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.chip--on:hover { color: var(--on-gold); }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 32px; }
.pagination__info { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pagination__links { display: flex; gap: 10px; }
.pagination__links a, .pagination__links span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 22px; border-radius: var(--pill);
  border: 1px solid var(--line-2); font-weight: 700; font-size: 15px;
}
.pagination__links a { color: var(--cream); }
.pagination__links a:hover { border-color: var(--gold); color: var(--gold); }
.pagination__links span { color: var(--muted); opacity: .5; }

/* ---------- team ---------- */
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.member__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; border: 2px solid var(--line-2); }
.member h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.member p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }
.member--cta { display: flex; align-items: center; justify-content: center; border-style: dashed; }

/* ---------- CTA ---------- */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta p { margin: 14px 0 0; font-size: 18px; max-width: 620px; }
.cta .h2 { max-width: 24ch; }

/* ---------- page and article heads ---------- */
.page-head { padding-block: 96px 56px; }
.page-head .h1 { max-width: 18ch; }
.article-head { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 72px var(--gutter) 48px; }
.article-head .h1 { font-size: clamp(32px, 4.2vw, 54px); }
.back { display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 36px; }
.back:hover { color: var(--gold); }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.byline__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); object-fit: cover; flex: none; }
.byline__name { font-weight: 700; color: var(--cream); margin: 0; font-size: 16px; }
.byline__meta { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 0; }
.article-hero { max-width: calc(1080px + 2 * var(--gutter)); margin: 0 auto 0; padding: 0 var(--gutter); }
.article-hero img { width: 100%; border-radius: var(--r-lg); margin-inline: auto; }
.article-hero figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 12px; }

/* The reading surface. Long text on dark navy tires the eye; the Academy only
   ever sets short copy on dark. Articles sit on a cream sheet instead. */
.paper {
  max-width: calc(var(--measure) + 2 * 72px); margin: 48px auto 0; background: var(--panel);
  border-radius: var(--r-lg); padding: clamp(28px, 6vw, 72px);
}
.paper-wrap { padding-inline: var(--gutter); }
.article-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink-line); }
.article-foot .chip { border-color: var(--ink-line); color: var(--ink-body); }
.article-foot .chip:hover { border-color: var(--brand); color: var(--brand); }
.share { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--ink-muted); }
.share a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--ink-line); color: var(--ink); }
.share a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- prose ---------- */
/* On navy (pages) */
.prose { max-width: var(--measure); color: var(--text); }
.prose--wide { max-width: none; }
.prose > * { margin: 0 0 24px; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose li { font-size: 18px; line-height: 1.72; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--gold); }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.015em; line-height: 1.15; margin: 52px 0 18px; }
.prose h3 { font-size: 22px; font-weight: 700; line-height: 1.25; margin: 40px 0 14px; }
.prose h4 { font-size: 18px; font-weight: 700; margin: 32px 0 12px; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose a { color: var(--gold); border-bottom: 1px solid rgba(232, 196, 106, .45); }
.prose a:hover { border-bottom-color: var(--gold); }
.prose strong { color: var(--cream); }
.prose blockquote { margin-inline: 0; border-left: 3px solid var(--gold); padding-left: 24px; font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.45; color: var(--cream); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
.prose img { border-radius: var(--r-sm); margin-inline: auto; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: #061325; color: var(--cream); padding: 20px; border-radius: var(--r-sm); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }

/* On cream (articles) */
.paper .prose, .prose--paper { color: var(--ink-body); }
.paper .prose h2, .paper .prose h3, .paper .prose h4, .paper .prose strong, .paper .prose blockquote { color: var(--ink); }
.paper .prose a { color: var(--brand); border-bottom-color: rgba(0, 44, 98, .35); font-weight: 600; }
.paper .prose a:hover { border-bottom-color: var(--brand); color: var(--brand); }
.paper .prose li::marker { color: var(--brand); }
.paper .prose blockquote { border-left-color: var(--gold); }
.paper .prose hr { border-top-color: var(--ink-line); }
.paper .prose figcaption { color: var(--ink-muted); }
.paper .prose code { background: rgba(11, 31, 58, .07); }

/* ---------- Ghost editor cards ---------- */
.kg-card { margin: 0 0 24px; }
.kg-width-wide { max-width: 1040px; width: calc(100vw - 2 * var(--gutter)); position: relative; left: 50%; transform: translateX(-50%); }
.kg-width-full { max-width: none; width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }
.kg-width-full img { border-radius: 0; }
.kg-image { margin-inline: auto; }
.kg-embed-card, .kg-gallery-card { display: flex; flex-direction: column; align-items: center; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-bookmark-card a { display: flex; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); overflow: hidden; border-bottom: 1px solid var(--line); }
.paper .kg-bookmark-card a { border-color: var(--ink-line); background: var(--tile); }
.kg-bookmark-content { padding: 20px; }
.kg-bookmark-title { font-weight: 700; }
.kg-bookmark-description { font-size: 15px; opacity: .8; }
.kg-callout-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px 24px; display: flex; gap: 14px; }
.paper .kg-callout-card { background: var(--tile); border-color: var(--ink-line); }
.kg-button-card { display: flex; justify-content: center; }
.kg-btn { display: inline-flex; min-height: 50px; align-items: center; padding: 14px 28px; border-radius: var(--pill); background: var(--gold); color: var(--on-gold) !important; font-weight: 700; border: 0 !important; }
.kg-table-card table { width: 100%; border-collapse: collapse; font-size: 16px; }
.kg-table-card th, .kg-table-card td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.paper .kg-table-card th, .paper .kg-table-card td { border-bottom-color: var(--ink-line); }

/* ---------- layout blocks inside editable page content ----------
   Ghost's editor has no multi-column card, so editors write these as HTML
   cards with the classes below. The text inside stays editable. */
.prose .cols-2, .prose .cols-3 { display: grid; gap: 16px; margin: 0 0 24px; }
.prose .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .cols-2 > *, .prose .cols-3 > * { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; }
.prose .cols-2 h3, .prose .cols-3 h3 {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--label); margin: 0 0 16px;
}
.prose .cols-2 p, .prose .cols-3 p { font-size: 16px; line-height: 1.65; margin: 0; }
.prose .cols-3 .lead, .prose .cols-2 .lead { background: var(--panel); border-color: var(--panel); }
.prose .cols-3 .lead p, .prose .cols-2 .lead p { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.prose .cols-3 .lead h3, .prose .cols-2 .lead h3 { color: var(--ink-muted); }

.prose .facts-list { display: grid; gap: 12px; margin: 0 0 24px; }
.prose .facts-list > * { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 26px; }
.prose .facts-list h3 {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--label); margin: 0 0 10px;
}
.prose .facts-list p { font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.45; color: var(--cream); margin: 0; }
.prose .facts-list a { color: var(--gold); border: 0; }

.prose .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.prose .stats > * { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; }
.prose .stats strong {
  display: block; font-family: var(--display); font-weight: 800; color: var(--gold);
  font-size: clamp(34px, 3.6vw, 52px); line-height: 1; margin-bottom: 12px; letter-spacing: -.02em;
}
.prose .stats span { font-size: 15px; color: var(--muted); }

/* ---------- forms ---------- */
.form__row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form__label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.form__input {
  font-family: inherit; font-size: 17px; color: var(--cream); width: 100%;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 14px 16px; min-height: 52px;
}
.form__input::placeholder { color: var(--muted); }
.form__input:focus-visible { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 1px; }
textarea.form__input { resize: vertical; line-height: 1.6; }
.form__check { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 12px; font-size: 16px; }
.form__check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--gold); }
.form__check a { color: var(--gold); border-bottom: 1px solid var(--gold); }
.form__note { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.form__note code { font-family: var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.form__result { border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-sm); padding: 18px 22px; margin-bottom: 24px; }
.form__result p { margin: 0; font-size: 16px; line-height: 1.55; }
.form__result p a { color: var(--gold); border-bottom: 1px solid var(--gold); }
.form__result:has([data-form-sent]:not([hidden])) { border-color: var(--gold); }
/* Newsletter signup: Ghost adds .loading / .success / .error to the form. */
.nl-form.loading button { opacity: .6; pointer-events: none; }
.nl-form__done { display: none; margin: 0; font-size: 16px; line-height: 1.55; }
.nl-form.success > * { display: none; }
.nl-form.success > .nl-form__done { display: block; }
.form__pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.panel .form__input { background: var(--tile); border-color: var(--ink-line); color: var(--ink); }
.panel .form__input::placeholder { color: var(--ink-muted); }
.panel .form__note { color: var(--ink-muted); }

.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 40px; margin-top: 40px; }
.footer__cols { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer__about p { font-size: 16px; color: var(--muted); max-width: 320px; margin: 18px 0 0; }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
/* The footer is set in the body face, as the Academy's is: mono stays for
   labels inside the page, where it marks data. */
.footer__col .eyebrow { margin-bottom: 6px; font-family: var(--body); font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.footer__col a { color: var(--text); }
.footer__col a:hover { color: var(--gold); }
.footer__legal { font-size: 15px; color: var(--muted); margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }

.social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.social a {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line-2); color: var(--text); transition: border-color .15s ease, color .15s ease;
}
.social a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- error ---------- */
.error-page { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; }
.error-page .display { color: var(--gold); margin-bottom: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; font-size: 16px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  /* The header collapses to the logo, the language switch and a menu button;
     the menu drops down as a full-width sheet. */
  .nav-toggle { display: flex; }
  .header__end .btn { display: none; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav.is-open .nav__cta { display: inline-flex; margin-top: 20px; border: 0; justify-content: center; color: var(--on-gold); }
  .site-header .wrap { position: relative; }
}

@media (max-width: 860px) {
  .section { padding-block: 64px; }
  .section--tight { padding-top: 0; }
  .hero { padding-block: 72px 56px; }
  .page-head { padding-block: 64px 40px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .grid--2, .grid--3, .grid--4, .bento, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .split { gap: 36px; }
  .cta { flex-direction: column; align-items: flex-start; gap: 28px; }
  .calendar__row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 2px; }
  .calendar__meta { display: none; }
  .glance { gap: 8px; margin-top: 56px; }
  .glance__k { font-size: 10px; letter-spacing: .04em; }
  .prose .cols-2, .prose .cols-3 { grid-template-columns: minmax(0, 1fr); }
  .prose .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paper { margin-top: 32px; }
  .paper-wrap { padding-inline: 10px; }
  .footer__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .footer__about { grid-column: 1 / -1; }
  .kg-width-wide { width: 100%; left: 0; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, a.card:hover, a.card:hover .card__media img { transform: none; }
}

/* ---------- case study facts ----------
   Same card as the gnucoop theme (project-facts.js is shared), set on the
   cream reading sheet with a gold top rule.
   Every case study opens with a <table class="project-facts"> in an HTML card:
   one row per fact, the label in <th>, the value in <td>. This renders it as the
   info card. js/project-facts.js tags each row with its kind - which picks the
   icon, the order and the standard label - and turns the status into a pill.
   Without the script the card still renders, minus icons and pill. */
.prose .project-facts {
  display: block; max-width: 720px; margin: 8px auto 40px; padding: 20px 14px 14px;
  background: var(--tile); border: 1px solid #E5E7EB; border-top: 5px solid var(--gold);
  border-radius: 20px; box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .25);
}
.prose .project-facts caption {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.prose .project-facts tbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.prose .project-facts tr {
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 3px; align-content: center;
  padding: 16px 18px; background: #F8FAFC; border: 1px solid #E5E7EB; border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.prose .project-facts tr:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(15, 23, 42, .3); }
/* display: grid above would otherwise override the hidden attribute */
.prose .project-facts tr[hidden],
.prose .project-facts tr:has(> td:empty),
.prose .project-facts tr:not(:has(> td)) { display: none; }
.prose .project-facts tr[data-kind] { grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; }
.prose .project-facts tr[data-kind]::before {
  content: ""; grid-row: 1 / 3; align-self: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--facts-icon) center / 20px no-repeat, rgba(0, 44, 98, .12);
}
.prose .project-facts th, .prose .project-facts td { grid-column: -2; padding: 0; border: 0; text-align: left; }
.prose .project-facts th {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #64748B; line-height: 1.2;
}
.prose .project-facts td { font-size: 16px; font-weight: 600; color: #0F172A; line-height: 1.35; overflow-wrap: anywhere; }
.prose .project-facts a { color: var(--brand); border-bottom: 2px solid transparent; transition: border-color .2s ease; }
.prose .project-facts a:hover { border-bottom-color: var(--brand); }

.prose .project-facts [data-kind="partner"], .prose .project-facts [data-kind="client"] { grid-column: 1 / -1; }
.prose .project-facts [data-kind="partner"] { order: 1; --facts-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002C62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.prose .project-facts [data-kind="client"] { order: 2; --facts-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002C62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.prose .project-facts [data-kind="location"] { order: 3; --facts-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002C62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"); }
.prose .project-facts [data-kind="duration"] { order: 4; --facts-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002C62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E"); }
.prose .project-facts [data-kind="status"] { order: 5; --facts-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002C62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E"); }
.prose .project-facts [data-kind="technology"] { order: 6; --facts-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002C62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E"); }
.prose .project-facts [data-kind="donor"] { order: 7; --facts-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002C62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E"); }
.prose .project-facts [data-kind="link"] { order: 8; --facts-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002C62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E"); }

/* the status pill: green and pulsing while running, grey once finished */
.facts-status {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 10px; border-radius: 999px;
  background: #EEF0F2; color: var(--ink-muted); font-size: 13px; font-weight: 600;
}
.facts-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9AA1A9; }
.facts-status--live { background: #DCFCE7; color: #166534; }
.facts-status--live::before { background: #22C55E; animation: facts-pulse 2s infinite; }
@keyframes facts-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .facts-status--live::before { animation: none; }
  .prose .project-facts tr { transition: none; }
  .prose .project-facts tr:hover { transform: none; }
}

/* ============================================================
   Data management page (data-management.hbs + js/data-management.js)
   The editor writes plain Ghost blocks; the script wraps them in the
   classes below. Ghost's card styles are overridden inside .dm-body.
   ============================================================ */
.dm { --dm-raised: #15294A; --dm-tile: #1C335A; --dm-deep: #0A1A33; }
.dm-gold { color: var(--gold); }

/* hero */
.dm-hero { padding-block: 88px 180px; }
.dm-hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.dm-hero__text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.dm-hero__text .eyebrow { margin: 0; }
.dm-hero__title { font-size: clamp(40px, 5vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -.022em; color: #fff; text-wrap: balance; }
.dm-hero__intro { margin: 0; max-width: 620px; font-size: 21px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.dm-hero__intro strong { color: var(--cream); }
.dm-hero__art { flex: 1 1 360px; display: flex; justify-content: center; }
.dm-hero__art svg { width: 100%; max-width: 420px; height: auto; }
.dm-art-slice { transform-origin: 220px 220px; animation: dm-pop .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes dm-pop { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: scale(1); } }
@keyframes dm-fade { from { opacity: 0; } to { opacity: 1; } }

/* bands */
.dm-sec { padding-block: 120px 128px; }
.dm-sec > .wrap { display: flex; flex-direction: column; gap: 72px; }
.dm-head { max-width: 780px; display: flex; flex-direction: column; gap: 22px; }
.dm-head > * { margin: 0; }
.dm-head--center { margin-inline: auto; text-align: center; align-items: center; max-width: 760px; }
.dm-body h6.eyebrow { margin: 0; }
.dm-lead { font-size: 22px; line-height: 1.6; color: #E4E8EF; text-wrap: pretty; }
.dm-head--center .dm-lead { font-size: 20px; color: var(--text); }
.dm-body a { color: var(--cream); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.dm-body a:hover { color: var(--gold); border-bottom-color: var(--cream); }
.dm-body .dm-more a { font-weight: 700; }

/* banners: Ghost call-to-action cards */
.dm-sec--banners { padding-block: 0; }
.dm-sec--banners > .wrap { gap: 24px; }
.dm-sec--overlap { margin-top: -112px; position: relative; }
.dm-sec--banners:not(.dm-sec--overlap) { padding-block: 72px; }
.dm-body .kg-cta-card {
  margin: 0; background: var(--dm-raised); border: 1px solid rgba(232, 196, 106, .45); border-radius: var(--r-lg);
  box-shadow: 0 28px 60px -28px rgba(0, 0, 0, .6); padding: 44px 52px; color: var(--cream);
}
.dm-body .kg-cta-sponsor-label-wrapper { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; border: 0; }
.dm-body .kg-cta-sponsor-label, .dm-body .kg-cta-sponsor-label * {
  font-family: var(--mono); font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin: 0;
}
.dm-dots { display: flex; gap: 6px; }
.dm-dots span { width: 12px; height: 12px; border-radius: var(--pill); }
.dm-body .kg-cta-content { padding: 0; border: 0; }
.dm-body .kg-cta-content-inner { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px 56px; }
.dm-body .kg-cta-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.dm-body .kg-cta-text p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
.dm-body .kg-cta-text p:first-child { font-family: var(--display); font-weight: 700; font-size: 27px; line-height: 1.3; letter-spacing: -.015em; color: var(--cream); text-wrap: balance; }
.dm-body .kg-cta-button, .dm-body .kg-cta-button.kg-style-accent {
  flex: none; display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: var(--pill);
  background: var(--gold) !important; color: var(--on-gold) !important; border: 0; font-family: var(--body); font-size: 17px; font-weight: 700;
}
.dm-body .kg-cta-button:hover { background: var(--gold-hover) !important; }

/* numbered blocks */
.dm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px 72px; }
.dm-grid > :only-child { max-width: 780px; }
.dm-block { border-top: 1.5px solid rgba(245, 240, 230, .4); padding-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.dm-block > * { margin: 0; }
.dm-block h3 { font-size: 24px; font-weight: 700; line-height: 1.25; }
.dm-block p { font-size: 18px; line-height: 1.65; color: var(--text); text-wrap: pretty; }
.dm-num { font-family: var(--mono); font-size: 14px; color: var(--muted); }

/* highlighted panel: a heading and a list */
.dm-panel { background: var(--dm-raised); border: 1px solid var(--line); border-radius: 28px; padding: 64px 56px; display: flex; flex-direction: column; gap: 40px; }
.dm-panel > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.dm-panel__title { font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; }
.dm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.dm-tile { background: var(--dm-tile); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px; display: flex; flex-direction: column; gap: 22px; }
.dm-tile__icon { width: 32px; height: 32px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dm-tile p { margin: 0; font-size: 19px; line-height: 1.45; font-weight: 600; color: var(--cream); text-wrap: pretty; }
.dm-panel > p { margin: 0; }
.dm-panel__close { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.01em; color: var(--gold); }

/* the wheel: Ghost toggle cards, one per dimension */
.dm-sec--wheel { background: var(--dm-deep); border-block: 1px solid var(--line); }
.dm-sec--wheel > .wrap { gap: 56px; }
.dm-wheel { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: center; }
.dm-wheel__stage { flex: 999 1 620px; min-width: 0; position: relative; width: 100%; max-width: 680px; aspect-ratio: 680 / 560; margin-inline: auto; }
.dm-wheel__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dm-wheel__slice { cursor: pointer; transition: transform .22s ease, opacity .22s ease; }
.dm-wheel__slice.is-dim { opacity: .3; }
.dm-wheel__centre {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 26%;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.dm-wheel__count { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; color: var(--cream); }
.dm-wheel__hint { font-size: 15px; line-height: 1.35; color: var(--muted); }
.dm-wheel__name { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--cream); }
.dm-wheel__q { font-size: 15px; line-height: 1.35; color: #E4E8EF; text-wrap: balance; }
.dm-dot { width: 10px; height: 10px; border-radius: var(--pill); flex: none; }
.dm-dot--lg { width: 18px; height: 18px; }
.dm-chip {
  position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 10px; border-radius: var(--pill); border: 1.5px solid var(--line-2);
  background: var(--dm-raised); color: var(--cream); font-family: var(--body); font-weight: 600; font-size: 15px;
  white-space: nowrap; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.dm-chip:hover { border-color: var(--cream); }
.dm-chip.is-on { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.dm-chip__num {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--pill);
  background: #22395F; color: var(--cream); font-family: var(--mono); font-size: 12px; font-weight: 500;
}
.dm-chip.is-on .dm-chip__num { background: var(--ink); }
.dm-wheel__panel { flex: 1 1 360px; min-width: 0; align-self: stretch; display: flex; }
.dm-wheel__empty {
  flex-grow: 1; border: 1.5px dashed rgba(245, 240, 230, .25); border-radius: var(--r-lg); padding: 40px 36px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.dm-wheel__empty h3 { font-size: 22px; font-weight: 700; }
.dm-wheel__empty p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.dm-wheel__detail {
  flex-grow: 1; background: var(--dm-raised); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; animation: dm-fade .25s ease both;
}
.dm-wheel__bar { height: 8px; }
.dm-wheel__detail-body { padding: 36px 36px 32px; display: flex; flex-direction: column; gap: 20px; flex-grow: 1; }
.dm-wheel__detail-body > p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--text); text-wrap: pretty; }
.dm-wheel__detail-body > .dm-wheel__question { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.4; color: var(--cream); }
.dm-wheel__detail-body h3 { display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.015em; }
.dm-wheel__detail-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dm-wheel__of { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.dm-wheel__nav { margin-top: auto; padding-top: 16px; display: flex; gap: 10px; }
.dm-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--pill);
  border: 1.5px solid var(--line-2); background: transparent; color: var(--cream); cursor: pointer;
}
.dm-icon-btn:hover { border-color: var(--cream); }
.dm-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dm-after { display: flex; justify-content: center; }
.dm-after .kg-button-card { margin: 0; }
.dm-body .dm-after a.btn { border-bottom: 0; padding: 14px 30px; color: var(--on-gold); }

/* the book: a Ghost product card and what follows it */
.dm-book { background: var(--dm-raised); border: 1px solid var(--line); border-radius: 28px; padding: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.dm-book__cover { flex: 1 1 260px; display: flex; justify-content: center; }
.dm-book__cover img { width: 240px; border-radius: 4px 10px 10px 4px; box-shadow: 0 28px 50px -24px rgba(0, 0, 0, .7); }
.dm-book__blank {
  width: 240px; height: 340px; background: var(--panel); color: var(--ink); border-radius: 4px 10px 10px 4px;
  box-shadow: inset 6px 0 0 rgba(13, 31, 60, .12), 0 28px 50px -24px rgba(0, 0, 0, .7);
  padding: 26px 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.25;
}
.dm-book__bar { width: 52px; height: 3px; background: var(--gold); }
.dm-book__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.dm-book__text > * { margin: 0; }
.dm-book__title { font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.dm-book__text p { font-size: 18px; line-height: 1.65; color: var(--text); max-width: 680px; text-wrap: pretty; }
.dm-book__text .dm-book__sub { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.4; color: var(--gold); }
.dm-book__text h6.eyebrow { margin-bottom: -8px; }
.dm-book__text ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dm-book__text li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 17px; line-height: 1.55; color: var(--text); }
.dm-book__text li::before { content: ""; width: 10px; height: 2px; background: var(--gold); transform: translateY(-4px); }
.dm-book__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 6px; }
.dm-book__text .dm-book__by { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.dm-body .dm-book__actions a.btn { border-bottom: 0; padding: 14px 30px; color: var(--on-gold); }

@supports (animation-timeline: view()) {
  .dm-block, .dm-panel { animation: dm-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}
@keyframes dm-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .dm-hero { padding-block: 56px 150px; }
  .dm-hero__grid { gap: 40px; }
  .dm-hero__art svg { max-width: 240px; }
  .dm-sec { padding-block: 80px; }
  .dm-sec > .wrap { gap: 48px; }
  .dm-sec--banners:not(.dm-sec--overlap) { padding-block: 48px; }
  .dm-body .kg-cta-card, .dm-panel, .dm-book { padding: 32px 24px; }
  .dm-wheel__stage { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
  .dm-wheel__svg { position: relative; inset: auto; width: min(100%, 340px); height: auto; aspect-ratio: 680 / 560; }
  .dm-wheel__centre { display: none; }
  .dm-wheel__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .dm-chip { position: static; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dm-art-slice, .dm-wheel__detail, .dm-block, .dm-panel { animation: none !important; }
  .dm-wheel__slice, .dm-chip { transition: none !important; }
}

/* ---------- DINO: the Data management layout, plus a photo, feature cards,
   steps, a download and an install command ---------- */
.dm--dino .dm-hero { padding-block: 88px 24px; }
.dm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.dm-hero__actions .btn { padding: 14px 28px; }
.dm-hero__photo { flex: 1 1 360px; min-width: 0; }
.dm-hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; border: 1px solid var(--line); }

.dm-feats { display: flex; flex-direction: column; gap: 28px; }
.dm-feats__head { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.dm-feats__head > * { margin: 0; }
.dm-feats__head h3 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.015em; }
.dm-feats__head p { font-size: 18px; color: var(--text); }
.dm-feats__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.dm-feat { background: var(--dm-raised); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.dm-feat > * { margin: 0; }
.dm-feat h4 { font-family: var(--display); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--cream); }
.dm-feat h4::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 14px; background: var(--gold); border-radius: 2px; }
.dm-feat p { font-size: 16px; line-height: 1.55; color: var(--text); text-wrap: pretty; }

/* steps: a numbered list counts in gold */
.dm-block ol { list-style: none; counter-reset: dm-step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dm-block ol li { counter-increment: dm-step; position: relative; padding-left: 44px; font-size: 17px; line-height: 1.6; color: var(--text); }
.dm-block ol li::before { content: counter(dm-step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--pill); background: var(--surface-2); color: var(--gold); font-family: var(--mono); font-size: 13px; }
.dm-block li strong { color: var(--cream); }
.dm-block .kg-button-card { margin: 4px 0 0; justify-content: flex-start; }
.dm-body .dm-block a.btn { border-bottom: 0; padding: 14px 28px; color: var(--on-gold); }

/* the download (Ghost's card styles load after these, hence the longer selectors) */
.dm-body .kg-file-card { margin: 0; }
.dm-body .kg-file-card .kg-file-card-container { background: var(--dm-raised); border: 1px solid rgba(232, 196, 106, .45); border-radius: var(--r); padding: 18px 20px; color: var(--cream); min-height: 0; }
.dm-body .kg-file-card a.kg-file-card-container { border-bottom: 1px solid rgba(232, 196, 106, .45); padding-bottom: 18px; }
.dm-body .kg-file-card a.kg-file-card-container:hover { border-color: var(--gold); color: var(--cream); }
.dm-body .kg-file-card .kg-file-card-title { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--cream); }
.dm-body .kg-file-card .kg-file-card-caption { font-size: 15px; color: var(--muted); opacity: 1; }
.dm-body .kg-file-card .kg-file-card-metadata { font-family: var(--mono); font-size: 12px; color: var(--label); opacity: 1; }
.dm-body .kg-file-card .kg-file-card-icon { color: var(--on-gold); background: var(--gold); border-radius: var(--r-sm); }
.dm-body .kg-file-card .kg-file-card-icon::before { display: none; }
.dm-body .kg-file-card .kg-file-card-icon svg { color: var(--on-gold); }

/* the install command */
.dm-block pre { margin: 0; padding: 20px 22px; background: var(--dm-deep); border: 1px solid var(--line); border-radius: var(--r); font-size: 13.5px; line-height: 1.65; }
.dm-block pre code { font-family: var(--mono); font-size: inherit; line-height: inherit; color: #E4E8EF; white-space: pre-wrap; overflow-wrap: anywhere; background: none; padding: 0; }

@media (max-width: 760px) {
  .dm--dino .dm-hero { padding-block: 56px 8px; }
  .dm-feat { padding: 20px; }
}
.dm-sec--deep { background: var(--dm-deep); border-block: 1px solid var(--line); }
