/* == fonts: generated by `npm run fonts` (sites/tools/fonts.mjs), do not edit by hand == */
/* Self-hosted from Google Fonts. To change the faces, edit the URL below and
   re-run `npm run fonts`; it reads the URL back from here, and the preload
   list too (PAGE.md, "Preload what paints first").
   source: https://fonts.googleapis.com/css2?family=Castoro:ital@0;1&family=Gelasio:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500&display=swap
   preload: Gelasio:400,Inter:400,Castoro:400
*/
@font-face {
  font-family: 'Castoro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/castoro-400-italic-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;
}
@font-face {
  font-family: 'Castoro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/castoro-400-italic-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: 'Castoro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/castoro-400-normal-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;
}
@font-face {
  font-family: 'Castoro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/castoro-400-normal-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: 'Gelasio';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/gelasio-400-italic-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;
}
@font-face {
  font-family: 'Gelasio';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/gelasio-400-italic-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: 'Gelasio';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/gelasio-normal-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;
}
@font-face {
  font-family: 'Gelasio';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/gelasio-normal-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: 'Gelasio';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/gelasio-normal-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;
}
@font-face {
  font-family: 'Gelasio';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/gelasio-normal-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: 'Gelasio';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/gelasio-normal-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;
}
@font-face {
  font-family: 'Gelasio';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/gelasio-normal-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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-normal-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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-normal-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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-normal-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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-normal-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;
}
/* == end fonts == */

/* ===========================================================================
   Kory L. Meyerink
   Built to concept 2, The Research Desk, with the Historical Atlas's colours
   and imagery (his email and his daughter's notes, 9 Nov 2026), from the
   assets chat's page mockups in design/mockup/ (10 Nov 2026).

   Every value below traces to a measurement in design/SPEC.md.

   1200 MAX, NO BLEED (sites/.claude/rules/BUILD.md, "The defaults"). The
   inner-page mockups are drawn at 1024 and Home at 846, the same design at
   1024/846 scale (header 44 x 1.21 = 53 against 52 drawn), so every size is
   written in 1024 design pixels as `N * var(--u)`, and Home's numbers were
   multiplied by 1.21 first (SPEC.md, "Home is drawn small").
   =========================================================================== */

:root {
  --u: min(calc(1200px / 1024), calc(100vw / 1024));

  /* --- Colour: sampled with measure.py / area averages (SPEC.md) --------- */
  --green-deep: #1D3432;     /* header, dark bands (about 0-52 average) */
  --green-band: #203733;     /* CTA bands */
  --green-btn: #2F5444;      /* Send Inquiry / dark buttons (contact 965) */
  --green-ink: #2A4A3C;      /* icon and link green on paper */
  --paper: #FBF6EF;          /* page (about intro 780) */
  --paper-2: #F7F0E5;        /* process band, alternate bands */
  --panel: #F4EADB;          /* In Brief, inquiry panel */
  --line: #DCCFB9;           /* hairlines between rows and cards */
  --ink: #1E1E1C;            /* headings */
  --ink-2: #33312C;          /* body */
  --muted: #5E584D;          /* captions */
  --gold: #C9A55C;           /* rule bars, nav underline */
  --gold-btn: #E4C17C;       /* gold button face */
  --gold-btn-2: #CFA65A;     /* its lower edge */
  --cream-ink: #F4E9D6;      /* type on the dark bands */
  --outside: #CEC3AA;        /* the window either side: muted taupe, darker than every band (desktop review, 10 Nov) */

  /* --- Layout ------------------------------------------------------------ */
  --gut: max(20px, calc(46 * var(--u)));   /* about intro x=46 */
  --hdr-h: calc(52 * var(--u));            /* header band 0-52 */

  /* --- Type (1024 design px; solved from line widths in the chosen face) -- */
  --serif: 'Castoro', Georgia, 'Times New Roman', serif;
  --text: 'Gelasio', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --f-hero: max(34px, calc(54 * var(--u)));     /* "Services" 54.9, name 52.7 */
  --f-hero-home: max(32px, calc(45 * var(--u)));/* Home name 290@846 -> 44.9 */
  --f-sub: max(22px, calc(30 * var(--u)));      /* "Professional Genealogist" 30.0 */
  --f-h2: max(26px, calc(33 * var(--u)));       /* "A Lifelong Interest in" 33.3 */
  --f-h2-cta: max(28px, calc(40 * var(--u)));   /* CTA band 40.0 */
  --f-h3: max(22px, calc(30 * var(--u)));       /* service names 30.4 */
  --f-h4: max(18px, calc(20 * var(--u)));       /* route titles, card titles */
  --f-lede: max(18px, calc(21.4 * var(--u)));   /* hero italic 21.4 */
  --f-lede-sm: max(16px, calc(17.5 * var(--u)));/* card italic 17.5 */
  --f-body: max(16px, calc(15.7 * var(--u)));   /* prose 15.7 */
  --f-small: max(15px, calc(14.4 * var(--u)));  /* card copy 14.4 */
  --f-nav: max(13px, calc(12 * var(--u)));      /* nav 12.0 */
  --f-eyebrow: max(12px, calc(14 * var(--u)));  /* ABOUT KORY, cap 13 */
  --f-btn: max(15px, calc(15.4 * var(--u)));    /* buttons 15.4 */
  --f-brand: max(16px, calc(20.5 * var(--u)));  /* KORY L. MEYERINK 20.5 */
  --f-tag: max(9px, calc(10.5 * var(--u)));     /* PROFESSIONAL GENEALOGIST 10.5 */

  --lh-body: 1.31;    /* 20.5 pitch / 15.66 */
  --lh-small: 1.32;   /* 19 / 14.38 */
  --lh-lede: 1.31;    /* 28 / 21.4 */
  --lh-head: 1.08;    /* 36 / 33.26 */

  /* --- Rhythm -------------------------------------------------------------- */
  --sec-pt: calc(29 * var(--u));     /* about 390 -> 423 = 34, tightened 15% (desktop review) */
  --sec-pb: calc(30 * var(--u));
  --rule-gap: calc(12 * var(--u));   /* rule bar -> heading (426 -> 438) */
  --head-body: calc(14 * var(--u));  /* heading -> first body line (507 -> 522) */
  --para: calc(11 * var(--u));       /* extra between paragraphs (605 -> 637) */
  --radius: calc(6 * var(--u));
}

/* No bleed: one 1200 column, bands and photographs included. */
.site-header, main, .site-footer { max-width: 1200px; margin-inline: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--outside);
  color: var(--ink-2);
  font: 400 var(--f-body)/var(--lh-body) var(--text);
}
main { background: var(--paper); display: block; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }


.skip-link {
  position: absolute; left: -9999px; top: 16px; z-index: 1000;
  padding: 12px 20px; background: var(--green-deep); color: #fff;
  text-decoration: none; font: 500 16px/1 var(--sans);
}
.skip-link:focus { left: 16px; outline: 3px solid var(--gold); outline-offset: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* --- Header ---------------------------------------------------------------
   about-1024: band 0-52, #1D3432; KLM box x36-102, brand text x140-347,
   nav x417-1005 Inter 12, current link gold underline 33-34. */
.site-header {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: max(60px, var(--hdr-h));
  padding-inline: calc(36 * var(--u)) calc(19 * var(--u));
  background: var(--green-deep);
  color: var(--cream-ink);
}
.brand { display: flex; align-items: center; gap: calc(18 * var(--u)); text-decoration: none; }
.brand__mark {
  display: grid; place-items: center;
  width: max(48px, calc(66 * var(--u))); height: max(30px, calc(38 * var(--u)));
  border: 1px solid var(--gold); color: var(--gold);
  font: 400 max(17px, calc(20 * var(--u)))/1 var(--serif); letter-spacing: 0.08em;
}
.brand__rule { width: 1px; align-self: stretch; margin-block: calc(8 * var(--u)); background: rgba(244, 233, 214, 0.45); }
.brand__text { display: grid; gap: calc(4 * var(--u)); }
.brand__name { white-space: nowrap; font: 400 var(--f-brand)/1 var(--serif); letter-spacing: 0.04em; text-transform: uppercase; color: #FBF4E6; }
.brand__tag { white-space: nowrap; font: 400 var(--f-tag)/1 var(--serif); letter-spacing: 0.2em; text-transform: uppercase; color: #D9CBB0; }

.nav { display: flex; align-items: center; gap: calc(30 * var(--u)); }
.nav a {
  position: relative; padding-block: 10px;
  font: 400 var(--f-nav)/1 var(--sans); color: #F1EBDF; text-decoration: none; white-space: nowrap;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: var(--gold); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--gold);
}

/* --- Shared type ------------------------------------------------------------ */
.rule { display: block; width: calc(62 * var(--u)); height: max(3px, calc(4 * var(--u))); background: var(--gold); margin-bottom: var(--rule-gap); }
.eyebrow { font: 400 var(--f-eyebrow)/1.2 var(--serif); letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink); }
.h2 { font-size: var(--f-h2); line-height: var(--lh-head); }
.lede { font: italic 400 var(--f-lede)/var(--lh-lede) var(--serif); }
.lede-sm { font: italic 400 var(--f-lede-sm)/1.3 var(--serif); color: var(--ink-2); }
.prose p + p { margin-top: var(--para); }
.prose a, .text-link { color: var(--green-ink); text-underline-offset: 3px; }
.small { font-size: var(--f-small); line-height: var(--lh-small); }

/* --- Buttons: gold face (services 700-930 x 420-455), dark outline -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 44px; padding: calc(9 * var(--u)) calc(22 * var(--u));
  font: 400 var(--f-btn)/1.2 var(--serif); text-decoration: none; text-align: center;
  border-radius: calc(4 * var(--u)); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn::after { content: "\2192"; font-family: var(--sans); font-size: 1.05em; }
.btn--gold { background: linear-gradient(var(--gold-btn), var(--gold-btn-2)); color: #23211C; border-color: #B48E45; }
.btn--gold:hover { background: linear-gradient(#EBCB8A, #D6AF64); }
.btn--green { background: var(--green-btn); color: #FBF4E6; }
.btn--green:hover { background: #26473A; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--green-ink); }
.btn--outline-light { background: transparent; color: #FBF4E6; border-color: rgba(244, 233, 214, 0.8); }
.btn--outline:hover, .btn--outline-light:hover { background: rgba(201, 165, 92, 0.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: calc(28 * var(--u)); }

/* --- Page hero, inner pages (services-1024: band 52-258, title x213) ------ */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(206 * var(--u));
  display: flex; align-items: center;
  padding: calc(26 * var(--u)) var(--gut) calc(30 * var(--u)) calc(190 * var(--u));
  color: #FBF4E6;
  background: var(--green-deep) var(--hero-img, none) center / cover no-repeat;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20, 34, 30, 0.2) 0%, rgba(20, 34, 30, 0.72) 22%, rgba(20, 34, 30, 0.55) 52%, rgba(20, 34, 30, 0) 75%);
}
.page-hero h1 { color: #FBF4E6; font-size: var(--f-hero); line-height: 1.05; }
.page-hero .rule { margin: calc(12 * var(--u)) 0 calc(18 * var(--u)); width: calc(64 * var(--u)); }
.page-hero p { max-width: calc(360 * var(--u)); font: italic 400 max(17px, calc(18.2 * var(--u)))/1.3 var(--serif); color: #F1E7D4; }

/* --- Bands ----------------------------------------------------------------- */
.band { padding: var(--sec-pt) var(--gut) var(--sec-pb); }
.band--alt { background: var(--paper-2); }
.band + .band { border-top: 1px solid var(--line); }
.band--dark { background: var(--green-band) url(/assets/img/green-paper.webp) center / cover; color: var(--cream-ink); border-top: 0 !important; }
.band--dark h2, .band--dark h3 { color: #FBF4E6; }

/* A label column on the left and content on the right (Services by Research
   Need, Research Tools, Real Research, Other Ways to Connect). */
.split { display: grid; grid-template-columns: calc(190 * var(--u)) 1px minmax(0, 1fr); gap: calc(28 * var(--u)); align-items: start; }
.split__rule { align-self: stretch; background: var(--line); }
.split__label .lede-sm { margin-top: calc(10 * var(--u)); }

/* --- CTA band (about-1024 1272-1536; services 1333-1536) ------------------ */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: calc(330 * var(--u)) minmax(0, 1fr);
  min-height: calc(264 * var(--u));
  background: var(--green-band) url(/assets/img/green-paper.webp) center / cover;
  color: var(--cream-ink);
}
.cta__art { position: relative; }
.cta__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--green-band)); }
.cta__body { padding: calc(38 * var(--u)) var(--gut) calc(40 * var(--u)) calc(34 * var(--u)); align-self: center; }
.cta__body h2 { font-size: var(--f-h2-cta); line-height: 1.1; color: #FBF4E6; }
.cta__body p { margin: calc(12 * var(--u)) 0 calc(24 * var(--u)); max-width: calc(590 * var(--u)); font: italic 400 max(17px, calc(18.2 * var(--u)))/1.37 var(--serif); color: #EDE2CE; }

/* --- Cards ------------------------------------------------------------------ */
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #FDF9F2; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(60, 45, 20, 0.06);
}
.card__img { aspect-ratio: 306 / 137; width: 100%; object-fit: cover; background: #E8DCC6; }
.card__body { display: flex; flex-direction: column; gap: calc(8 * var(--u)); flex: 1; padding: calc(18 * var(--u)) calc(20 * var(--u)) calc(20 * var(--u)); }
.card__body h3 { font-size: max(19px, calc(21 * var(--u))); line-height: 1.15; }
.card__body .btn, .card__body .text-link { margin-top: auto; align-self: flex-start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(18 * var(--u)); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(14 * var(--u)); }

.text-link { font: 400 var(--f-small)/1.3 var(--serif); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; font-weight: 400; }
.text-link::after { content: "\2192"; font-family: var(--sans); }
.text-link:hover { text-decoration: underline; }

/* A placeholder that is obviously a placeholder (PAGE.md): an empty, sized
   box naming what goes there. Never a stand-in picture. */
.todo-box {
  display: grid; place-items: center; text-align: center; padding: 16px;
  background: repeating-linear-gradient(135deg, #EFE5D3 0 12px, #E8DCC6 12px 24px);
  color: #6B5E45; font: 500 14px/1.35 var(--sans); border: 1px dashed #B9A47E;
}
.todo { background: #FFF1B8; outline: 1px dashed #B08A1E; padding: 0 4px; font-family: var(--sans); font-size: 0.85em; color: #5A4200; }

/* --- Process steps (home 715-938; services 1153-1312) --------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.step {
  position: relative; display: flex; flex-direction: column;
  background: #F7EFE1; color: var(--ink-2); border: 1px solid #D8C8AA;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%);
  margin-left: -10px;
}
.step:first-child { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); margin-left: 0; }
.step__text { padding: calc(16 * var(--u)) calc(30 * var(--u)) calc(10 * var(--u)) calc(36 * var(--u)); }
.step:first-child .step__text { padding-left: calc(20 * var(--u)); }
.step__title { display: flex; align-items: center; gap: 10px; font: 400 max(17px, calc(18.5 * var(--u)))/1.15 var(--serif); color: var(--ink); }
.step__num {
  flex: none; display: grid; place-items: center; width: max(26px, calc(28 * var(--u))); aspect-ratio: 1;
  border-radius: 50%; background: #7A2420; color: #F8EEDC; font: 400 max(14px, calc(15 * var(--u)))/1 var(--serif);
}
.step__text p { margin-top: calc(8 * var(--u)); font-size: var(--f-small); line-height: 1.3; }
.step__img { margin-top: auto; width: 100%; aspect-ratio: 700 / 330; object-fit: cover; mix-blend-mode: multiply; }

/* --- Footer (not drawn by any mockup: the header's green, its nav, the
   credit line on About only) --------------------------------------------- */
.site-footer {
  display: grid; gap: calc(16 * var(--u));
  padding: calc(30 * var(--u)) var(--gut) calc(26 * var(--u));
  background: #172A28; color: #CFC3AC;
  font: 400 max(14px, calc(13 * var(--u)))/1.5 var(--sans);
}
.site-footer__top { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.site-footer a { color: #E9DFCB; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid rgba(233, 223, 203, 0.18); padding-top: calc(14 * var(--u)); }

/* ===========================================================================
   Home (design/mockup/home-846.png; every y below is home px, x1.21 = 1024)
   =========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: calc(214 * var(--u)) minmax(0, 1fr) calc(388 * var(--u));
  align-items: center; gap: calc(28 * var(--u));
  min-height: calc(558 * var(--u));            /* 44-505 = 461 x 1.21 */
  padding: 0 calc(18 * var(--u)) 0 0;
  color: #FBF4E6;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18, 30, 27, 0.25) 0%, rgba(18, 30, 27, 0.78) 26%, rgba(18, 30, 27, 0.7) 55%, rgba(18, 30, 27, 0.3) 100%); }
.hero__portrait { align-self: stretch; min-height: calc(420 * var(--u)); }
.hero__intro h1 { white-space: nowrap; color: #FBF4E6; font-size: var(--f-hero-home); line-height: 1.05; }
.hero__tag { margin-top: calc(13 * var(--u)); font: 400 max(12px, calc(13.5 * var(--u)))/1 var(--serif); letter-spacing: 0.32em; text-transform: uppercase; color: #F1E7D4; }
.hero__intro .rule { margin: calc(24 * var(--u)) 0 calc(22 * var(--u)); }
.hero__lede { max-width: calc(345 * var(--u)); font: italic 400 max(17px, calc(18.5 * var(--u)))/1.42 var(--serif); color: #F4EAD8; }

.routes { display: grid; gap: calc(9 * var(--u)); }
.route {
  display: grid; grid-template-columns: calc(104 * var(--u)) minmax(0, 1fr); align-items: center; gap: calc(14 * var(--u));
  padding: calc(6 * var(--u)) calc(40 * var(--u)) calc(6 * var(--u)) calc(6 * var(--u));
  position: relative; text-decoration: none; color: var(--ink);
  background: rgba(251, 245, 235, 0.95); border: 1px solid #D9C7A6; border-radius: calc(4 * var(--u));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.route::after { content: "\2192"; position: absolute; right: calc(14 * var(--u)); top: 50%; transform: translateY(-50%); font: 400 18px/1 var(--sans); color: var(--ink); }
.route:hover { background: #fff; }
.route img { width: 100%; aspect-ratio: 104 / 74; object-fit: cover; border-radius: 2px; }
.route__text { display: grid; gap: calc(4 * var(--u)); }
.route__title { font: 400 var(--f-h4)/1.08 var(--serif); }
.route__sub { font: italic 400 max(14px, calc(13.5 * var(--u)))/1.3 var(--serif); color: var(--ink-2); }

/* Services by Research Need: the table (home-846 197-831 x 533-692) */
.needs { padding-block: calc(36 * var(--u)) calc(30 * var(--u)); }
.split--table { grid-template-columns: calc(196 * var(--u)) minmax(0, 1fr); }
.needs__table-wrap { overflow-x: auto; }
.needs__table { width: 100%; border-collapse: collapse; background: #FCF8F1; border: 1px solid var(--line); font-size: var(--f-small); line-height: 1.3; }
.needs__table thead th { background: var(--green-deep); color: #F6EEDF; font: 400 max(15px, calc(16.5 * var(--u)))/1.2 var(--serif); text-align: left; padding: calc(9 * var(--u)) calc(16 * var(--u)); }
.needs__table tbody th, .needs__table td { padding: calc(10 * var(--u)) calc(16 * var(--u)); border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.needs__table th + *, .needs__table td + td { border-left: 1px solid var(--line); }
.needs__table tbody th { font: 400 max(15px, calc(15.5 * var(--u)))/1.25 var(--serif); color: var(--ink); }
.needs__table td a { color: var(--ink-2); text-decoration: none; }
.needs__table td a:hover { text-decoration: underline; color: var(--green-ink); }

/* How Research Engagements Work, dark (home-846 715-938) */
.process { display: grid; grid-template-columns: calc(186 * var(--u)) minmax(0, 1fr); gap: calc(22 * var(--u)); align-items: center; padding-block: calc(22 * var(--u)); }
.process .lede-sm { color: #E7DCC7; margin-top: calc(10 * var(--u)); }

/* Experience & Credentials, Inside a Research Report (home-846 938-1162) */
.creds { display: grid; grid-template-columns: calc(196 * var(--u)) minmax(0, 0.9fr) minmax(0, 1.55fr); gap: calc(26 * var(--u)); align-items: center; }
.creds__intro .lede-sm { margin: calc(10 * var(--u)) 0 calc(22 * var(--u)); }
.creds__list { display: grid; gap: calc(12 * var(--u)); padding-inline: calc(24 * var(--u)); border-inline: 1px solid var(--line); font-size: var(--f-small); line-height: 1.3; }
.creds__list li { position: relative; padding-left: calc(20 * var(--u)); }
.creds__list li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 0.6em; height: 0.6em; background: var(--green-ink); }
.creds__report { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: calc(16 * var(--u)); align-items: center; }
.creds__report .h3 { font-size: max(22px, calc(24 * var(--u))); line-height: 1.1; }
.creds__report .lede-sm { margin: calc(10 * var(--u)) 0 calc(18 * var(--u)); }
.creds__report img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Research Library (home-846 1162-1362) */
.library { display: grid; grid-template-columns: calc(214 * var(--u)) minmax(0, 1fr); gap: calc(22 * var(--u)); align-items: center; }
.library .lede-sm { margin-top: calc(10 * var(--u)); }
.tile { display: grid; overflow: hidden; border-radius: var(--radius); text-decoration: none; background: var(--green-deep); box-shadow: 0 2px 6px rgba(40, 30, 10, 0.18); }
.tile img { width: 100%; aspect-ratio: 172 / 116; object-fit: cover; }
.tile span { padding: calc(10 * var(--u)) 10px calc(12 * var(--u)); text-align: center; font: 400 max(17px, calc(19 * var(--u)))/1.15 var(--serif); color: #F6EEDF; }
.tile:hover span { text-decoration: underline; }

/* For Societies & Organizations (home-846 1362-1555) */
.societies { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: center; background: #F3EBDD; border-top: 1px solid var(--line); }
.societies__art { width: 100%; height: 100%; min-height: calc(232 * var(--u)); object-fit: cover; -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
.societies__body { padding: calc(26 * var(--u)) var(--gut) calc(26 * var(--u)) calc(24 * var(--u)); border-left: 1px solid var(--line); }
.societies__body .lede-sm { margin: calc(10 * var(--u)) 0 calc(20 * var(--u)); }

/* Start an Inquiry (home-846 1576-1860) */
.inquiry {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: calc(200 * var(--u)) calc(210 * var(--u)) minmax(0, 1fr); gap: calc(26 * var(--u)); align-items: center;
  padding: calc(34 * var(--u)) var(--gut) calc(38 * var(--u)) 0;
  background: var(--green-band) url(/assets/img/green-paper.webp) center / cover; color: var(--cream-ink);
}
.inquiry__art { align-self: stretch; width: 100%; height: calc(100% + 72 * var(--u)); min-height: calc(260 * var(--u)); object-fit: cover; object-position: 30% 60%; margin-block: calc(-34 * var(--u)) calc(-38 * var(--u)); -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.inquiry__intro h2 { color: #FBF4E6; }
.inquiry__intro .lede-sm { color: #E7DCC7; margin-top: calc(12 * var(--u)); }

/* --- Forms (the shape CONTACT-FORMS.md describes; posted by site.js) ----- */
.form { display: grid; gap: calc(14 * var(--u)); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(14 * var(--u)); }
.field { display: grid; gap: 6px; }
.field__label { font: 500 max(14px, calc(14 * var(--u)))/1.2 var(--text); color: var(--ink); }
.field__label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 4px;
  border: 1px solid #CDBE9F; background: #FFFDF8; color: var(--ink); font: 400 16px/1.4 var(--text);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: #A3322A; }
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: calc(10 * var(--u)); }
.choice legend { width: 100%; margin-bottom: calc(10 * var(--u)); font: 400 max(16px, calc(16 * var(--u)))/1.2 var(--serif); }
.choice label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border: 1px solid #CDBE9F; border-radius: 4px; background: #FFFDF8; color: var(--ink); font: 400 max(15px, calc(14.5 * var(--u)))/1.2 var(--text); cursor: pointer; }
.choice label:has(input:checked) { background: #F6E3B4; border-color: #C9A55C; }
.choice input { accent-color: var(--green-btn); width: 18px; height: 18px; margin: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px 24px; }
.form-status { flex: 1; min-width: 200px; font: 400 15px/1.4 var(--text); }
.form-status.is-ok { color: #2F6B45; }
.form-status.is-err { color: #A3322A; }
.form--dark .field__label, .form--dark .choice legend { color: #F1E7D4; }
.form--dark .form-status.is-ok { color: #CFE6C8; }
.form--dark .form-status.is-err { color: #F2B7AE; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- The phone menu (below 1100: brand + nav need about 1060 at the 13px nav floor) ------------------- */
.menu-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  background: transparent; color: #F1EBDF; border: 1px solid rgba(241, 235, 223, 0.5); border-radius: 4px;
  font: 500 15px/1.2 var(--sans); cursor: pointer;
}
.menu-toggle .bars { display: grid; gap: 4px; }
.menu-toggle .bars span { display: block; width: 18px; height: 2px; background: currentColor; }

@media (max-width: 1100px) {
  .site-header { flex-wrap: wrap; padding: 10px var(--gut); }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 14px; }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: 13px 4px; font-size: 16px; border-top: 1px solid rgba(241, 235, 223, 0.15); }
  .nav a[aria-current="page"]::after { display: none; }
  .brand__rule { display: none; }
}

/* --- Structure below the drawn width ------------------------------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  .hero__portrait { order: 2; min-height: 260px; margin: 0 var(--gut); }
  .hero__intro { order: 1; padding: 34px var(--gut) 26px; }
  .routes { order: 3; padding: 24px var(--gut) 30px; }
  .hero__lede { max-width: none; }
  .hero__intro h1 { white-space: normal; }
  .split, .split--table, .process, .library, .creds, .creds__report, .societies, .inquiry { grid-template-columns: minmax(0, 1fr); }
  .split__rule { display: none; }
  .creds__list { border-inline: 0; padding-inline: 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .step, .step:first-child { clip-path: none; margin-left: 0; border-radius: var(--radius); }
  .step__text, .step:first-child .step__text { padding: 16px 18px 10px; }
  .societies__art { -webkit-mask-image: none; mask-image: none; min-height: 200px; }
  .societies__body { border-left: 0; padding: 26px var(--gut) 30px; }
  .inquiry { padding: 0 var(--gut) 34px; }
  .inquiry__art { display: none; }
  .inquiry__intro { padding-top: 34px; }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta__art { min-height: 160px; }
  .cta__art::after { background: linear-gradient(180deg, transparent 50%, var(--green-band)); }
  .cta__body { padding: 26px var(--gut) 34px; }
  .page-hero { padding: 34px var(--gut); min-height: 200px; }
  .page-hero::before { background: linear-gradient(90deg, rgba(20, 34, 30, 0.82), rgba(20, 34, 30, 0.6)); }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .steps, .form__row { grid-template-columns: minmax(0, 1fr); }
  .route { grid-template-columns: 84px minmax(0, 1fr); }
  .brand__tag { letter-spacing: 0.14em; }
  .needs__table thead { display: none; }
  .needs__table, .needs__table tbody, .needs__table tr, .needs__table th, .needs__table td { display: block; width: 100%; }
  .needs__table tr { border-top: 1px solid var(--line); padding: 6px 0; }
  .needs__table tbody th, .needs__table td { border: 0 !important; padding: 4px 14px; }
}

/* ===========================================================================
   About (design/mockup/about-1024.png)
   =========================================================================== */
.about-hero {
  display: grid; grid-template-columns: calc(326 * var(--u)) minmax(0, 1fr);
  min-height: calc(338 * var(--u));                       /* 52-390 */
  background: #F1E4CC url(/assets/img/map.webp) right center / cover;
}
.about-hero__portrait { min-height: 260px; }
.about-hero__text { padding: calc(42 * var(--u)) var(--gut) calc(30 * var(--u)) calc(38 * var(--u));
  background: linear-gradient(90deg, rgba(247, 238, 222, 0.94) 0%, rgba(247, 238, 222, 0.86) 55%, rgba(247, 238, 222, 0.2) 100%); }
.about-hero h1 { margin-top: calc(16 * var(--u)); font-size: var(--f-hero); line-height: 1.02; }   /* 52.7 */
.about-hero__sub { margin-top: calc(6 * var(--u)); font: italic 400 var(--f-sub)/1.15 var(--serif); color: var(--ink); }
.about-hero .rule { margin: calc(20 * var(--u)) 0 calc(18 * var(--u)); width: calc(78 * var(--u)); }
.about-hero .lede { max-width: calc(400 * var(--u)); color: var(--ink); }

.about-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.62fr) minmax(0, 1.1fr); gap: calc(26 * var(--u)); align-items: start; }
.about-intro__text .h2 { margin-bottom: var(--head-body); }
.about-intro__img { width: 100%; aspect-ratio: 196 / 326; object-fit: cover; border-radius: calc(4 * var(--u)); box-shadow: 0 3px 10px rgba(40, 30, 10, 0.2); }
.in-brief { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: calc(18 * var(--u)) calc(22 * var(--u)) calc(14 * var(--u)); }
.in-brief h2 { font: italic 400 max(24px, calc(28 * var(--u)))/1.1 var(--serif); color: var(--green-deep); margin-bottom: calc(10 * var(--u)); }
.in-brief li { padding: calc(10 * var(--u)) 0; border-top: 1px solid var(--line); font-size: var(--f-small); line-height: 1.3; }
.in-brief li:first-child { border-top: 0; }

.career { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; background: #F5EDDF; border-top: 1px solid var(--line); }
.career__art { width: 100%; height: 100%; min-height: calc(310 * var(--u)); object-fit: cover; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
.career__body { padding: calc(30 * var(--u)) var(--gut) calc(30 * var(--u)) calc(30 * var(--u)); }
.career__list { margin-top: var(--head-body); display: grid; gap: calc(6 * var(--u)); font-size: var(--f-small); line-height: 1.3; }
.career__list li { position: relative; padding-left: 1.1em; }
.career__list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.4em; height: 0.4em; background: var(--gold); }
.career__note { margin-top: calc(14 * var(--u)); }

.affiliations .split { grid-template-columns: calc(190 * var(--u)) 1px minmax(0, 1fr); align-items: center; }
.affiliations__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(12 * var(--u)) calc(30 * var(--u)); }
.affiliations__list li { font: 400 max(17px, calc(18 * var(--u)))/1.2 var(--serif); color: var(--ink); }
.affiliations__list li span { display: block; margin-top: 4px; font: italic 400 var(--f-small)/1.3 var(--serif); color: var(--muted); }

.credit { padding: 14px var(--gut); text-align: center; font: 400 14px/1.4 var(--sans); color: var(--muted); background: var(--paper); }
.credit a { color: var(--green-ink); }

/* ===========================================================================
   Services (design/mockup/services-1024.png)
   =========================================================================== */
.service { display: grid; grid-template-columns: calc(258 * var(--u)) minmax(0, 1fr) 1px calc(296 * var(--u)); gap: calc(24 * var(--u)); align-items: center; padding: calc(22 * var(--u)) var(--gut); scroll-margin-top: 16px; }
.service + .service { border-top: 1px solid var(--line); }
.service__img { width: 100%; aspect-ratio: 258 / 183; object-fit: cover; border-radius: calc(4 * var(--u)); box-shadow: 0 2px 8px rgba(40, 30, 10, 0.2); }
.service h2 { font-size: var(--f-h3); line-height: 1.1; letter-spacing: -0.015em; }
.service .lede-sm { margin: calc(10 * var(--u)) 0 calc(14 * var(--u)); }
.service__rule { align-self: stretch; background: var(--line); }
.service__points { display: grid; gap: calc(9 * var(--u)); margin-bottom: calc(16 * var(--u)); font-size: var(--f-small); line-height: 1.3; }
.service__points li { position: relative; padding-left: 1.4em; }
.service__points li::before { content: "\2713"; position: absolute; left: 0; color: var(--green-ink); font-family: var(--sans); }
.work-together { display: grid; grid-template-columns: calc(190 * var(--u)) minmax(0, 1fr); gap: calc(26 * var(--u)); align-items: center; background: var(--paper-2); }
.work-together .steps .step { background: #FBF6EC; }

/* ===========================================================================
   Sample Reports and the article library: card grids
   =========================================================================== */
.intro-split { display: grid; grid-template-columns: calc(250 * var(--u)) 1px minmax(0, 1fr); gap: calc(30 * var(--u)); align-items: center; }
.intro-split p { font-size: var(--f-body); }
.reports { padding-top: 0; }
.report-card .card__body .lede-sm { font-size: max(15px, calc(15 * var(--u))); }
.included { display: grid; grid-template-columns: calc(170 * var(--u)) repeat(4, minmax(0, 1fr)); gap: 0; align-items: start; border-top: 1px solid var(--line); }
.included > * { padding: 0 calc(18 * var(--u)); }
.included > * + * { border-left: 1px solid var(--line); }
.included h3 { font-size: max(17px, calc(17.5 * var(--u))); line-height: 1.2; }
.included p { margin-top: 6px; font-size: var(--f-small); line-height: 1.3; }

/* Articles & Publications (articles-publications-1024) */
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin: calc(16 * var(--u)) var(--gut) 0; }
.tabs a { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: calc(14 * var(--u)); text-decoration: none; font: 400 max(19px, calc(22 * var(--u)))/1.1 var(--serif); border: 1px solid var(--line); background: #F3EBDD; color: var(--ink); }
.tabs a[aria-current="true"] { background: var(--green-deep); color: #F6EEDF; border-color: var(--green-deep); }
.library-layout { display: grid; grid-template-columns: minmax(0, 1fr) calc(316 * var(--u)); gap: calc(34 * var(--u)); align-items: start; }
.article-list { display: grid; }
.article-item { display: grid; grid-template-columns: calc(244 * var(--u)) minmax(0, 1fr); gap: calc(22 * var(--u)); align-items: center; padding: calc(12 * var(--u)) 0; border-bottom: 1px solid var(--line); }
.article-item :is(h3, h4) { font-size: max(20px, calc(22.5 * var(--u))); line-height: 1.12; }
.article-item :is(h3, h4) a { text-decoration: none; }
.article-item :is(h3, h4) a:hover { text-decoration: underline; }
.article-item p { margin: 6px 0 8px; font-size: var(--f-small); line-height: 1.3; }
.article-item .meta { font: italic 400 max(14px, calc(13.5 * var(--u)))/1.3 var(--serif); color: var(--muted); margin: 0 0 6px; }
.read-link { color: #7A2420; font: italic 400 var(--f-small)/1 var(--serif); }
/* Scrolls with the page: taller than the window (1,235px at 1440x900), a
   sticky sidebar hid its lower boxes until the list ran out (Kory, 30 Nov 2026). */
.sidebar { display: grid; gap: calc(18 * var(--u)); }
.side-panel { background: #F6EEDF; border: 1px solid var(--line); border-radius: var(--radius); padding: calc(18 * var(--u)) calc(18 * var(--u)) calc(16 * var(--u)); }
.side-panel h2 { font: italic 400 max(22px, calc(25 * var(--u)))/1.1 var(--serif); color: var(--green-deep); margin-bottom: calc(12 * var(--u)); }
.side-panel h3 { font-size: max(19px, calc(20 * var(--u))); margin: calc(16 * var(--u)) 0 calc(8 * var(--u)); padding-top: calc(14 * var(--u)); border-top: 2px solid var(--gold); width: fit-content; }
.topic-list li { display: flex; justify-content: space-between; gap: 10px; padding: calc(9 * var(--u)) 0; border-top: 1px solid var(--line); font-size: var(--f-small); }
.topic-list li span { min-width: 26px; text-align: center; padding: 2px 8px; border-radius: 10px; background: #EBDDBF; font: 500 13px/1.4 var(--sans); }
.search input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #CDBE9F; border-radius: 4px; background: #FFFDF8; font: 400 16px/1.4 var(--text); }
.pubs { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); gap: calc(30 * var(--u)); }
.pubs__rule { background: var(--line); }
.writing__title { font-size: max(21px, calc(24 * var(--u))); margin-bottom: calc(6 * var(--u)); }
.writing__title + .article-list { border-top: 1px solid var(--line); }
.article-list + .writing__title { margin-top: calc(34 * var(--u)); }
.blog-list__empty p { padding: calc(14 * var(--u)) 0; }
/* Blog posts: written in the block editor, so images arrive as <figure>s */
.article__body figure { margin: 1.2em 0; }
.article__body figure img { border-radius: var(--radius); }
.article__body figcaption { margin-top: 6px; font-size: var(--f-small); color: var(--muted); }
.pubs__books { display: flex; flex-wrap: wrap; gap: calc(20 * var(--u)); margin-top: calc(28 * var(--u)); }
.pubs__books img { width: max(120px, calc(150 * var(--u))); height: auto; border: 1px solid var(--line); box-shadow: 0 6px 16px rgb(0 0 0 / 0.18); }
.pub-list li { padding: calc(10 * var(--u)) 0; border-top: 1px solid var(--line); }
.pub-list li em { display: block; font-size: var(--f-small); color: var(--muted); }
/* A link under a publication (the 1698 order page, his essay, the Marquis
   release, Nov 2026): the article list's read-link, one per line. */
.pub-list .read-link { display: flex; width: fit-content; margin-top: calc(4 * var(--u)); line-height: 1.3; }
/* His publications list runs in four groups: each later heading sits clear of the list above */
.pub-head { margin-top: calc(26 * var(--u)); }
.pub-note { margin: calc(10 * var(--u)) 0 0; font-size: var(--f-small); color: var(--muted); }

/* A single article (article-1024) */
.crumbs { padding: calc(16 * var(--u)) var(--gut) 0; font-size: var(--f-small); }
.crumbs a { color: var(--ink); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) calc(316 * var(--u)); gap: calc(40 * var(--u)); align-items: start; padding: calc(16 * var(--u)) var(--gut) calc(40 * var(--u)); }
.article h1 { font-size: max(32px, calc(44 * var(--u))); line-height: 1.08; }
.article__deck { margin-top: calc(10 * var(--u)); font: italic 400 var(--f-lede)/1.3 var(--serif); }
.article__meta { margin: calc(14 * var(--u)) 0 calc(20 * var(--u)); font-size: var(--f-small); color: var(--muted); }
.article__body { max-width: 68ch; }
.article__body > * + * { margin-top: 0.9em; }
.article__body h2 { margin-top: 1.5em; font-size: max(22px, calc(26 * var(--u))); line-height: 1.15; }
.article__body h3 { margin-top: 1.3em; font-size: max(19px, calc(21 * var(--u))); }
.article__body ul, .article__body ol { padding-left: 1.4em; }
.article__body ul { list-style: square; }
.article__body ol { list-style: decimal; }
.article__body li + li { margin-top: 0.35em; }
.article__body blockquote { padding: 0.6em 1em; border-left: 3px solid var(--gold); background: #F6EEDF; }
.article__body table { width: 100%; border-collapse: collapse; font-size: var(--f-small); }
.article__body th, .article__body td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.article__body a { color: var(--green-ink); }
.article__body img { border-radius: 4px; }
.article__origin { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); font-size: var(--f-small); color: var(--muted); }
.next-article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: calc(24 * var(--u)) var(--gut); background: var(--green-band) url(/assets/img/green-paper.webp) center / cover; color: var(--cream-ink); text-decoration: none; }
.next-article em { font: italic 400 var(--f-small)/1.2 var(--serif); }
.next-article strong { display: block; font: 400 max(22px, calc(28 * var(--u)))/1.15 var(--serif); color: #FBF4E6; }

/* Genealogy Resources (genealogy-resources-1024) */
.resource-card .card__body h3 { display: flex; gap: 10px; align-items: center; }
.resource-links { display: grid; gap: 6px; font-size: var(--f-small); }
.resource-links a { color: var(--green-ink); }

/* Contact (contact-1024) */
.contact-layout { display: grid; grid-template-columns: calc(330 * var(--u)) minmax(0, 1fr); gap: calc(30 * var(--u)); align-items: start; }
.contact-intro .lede-sm { margin-top: calc(14 * var(--u)); }
.contact-intro img { margin: calc(22 * var(--u)) 0; width: 100%; aspect-ratio: 356 / 254; object-fit: cover; mix-blend-mode: multiply; }
.contact-facts li { display: grid; gap: 2px; padding: calc(12 * var(--u)) 0; border-top: 1px solid var(--line); font-size: var(--f-small); }
.contact-facts strong { font: 400 max(17px, calc(18 * var(--u)))/1.2 var(--serif); color: var(--ink); }
.inquiry-panel { background: var(--panel); border: 1px solid var(--line); border-radius: calc(8 * var(--u)); padding: calc(26 * var(--u)) calc(30 * var(--u)) calc(30 * var(--u)); box-shadow: 0 2px 10px rgba(60, 45, 20, 0.08); }
.inquiry-panel h2 { font-size: max(28px, calc(36 * var(--u))); }
.inquiry-panel > .lede-sm { margin: calc(8 * var(--u)) 0 calc(20 * var(--u)); }
.choice--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ways { display: grid; grid-template-columns: calc(200 * var(--u)) repeat(3, minmax(0, 1fr)); gap: 0; align-items: start; }
.ways > * { padding: 0 calc(24 * var(--u)); }
.ways > * + * { border-left: 1px solid var(--line); }
.ways h3 { font-size: max(18px, calc(19.5 * var(--u))); }
.ways p { margin: 6px 0 10px; font-size: var(--f-small); }

/* Simple text pages (privacy, 404) */
.text-page { padding: calc(40 * var(--u)) var(--gut) calc(56 * var(--u)); }
.text-page .prose { max-width: 70ch; }
.text-page h1 { font-size: max(32px, calc(44 * var(--u))); margin-bottom: 0.5em; }
.text-page h2 { margin: 1.4em 0 0.4em; font-size: max(21px, calc(24 * var(--u))); }

@media (max-width: 900px) {
  .about-hero, .about-intro, .career, .service, .work-together, .intro-split, .library-layout, .article-layout, .pubs, .contact-layout, .affiliations .split { grid-template-columns: minmax(0, 1fr); }
  .about-hero__text { background: rgba(247, 238, 222, 0.92); padding: 30px var(--gut); }
  .about-intro__img { aspect-ratio: 16 / 9; }
  .career__art { -webkit-mask-image: none; mask-image: none; min-height: 200px; }
  .career__body { padding: 26px var(--gut) 30px; }
  .service__rule, .intro-split > span, .pubs__rule { display: none; }
  .included, .ways { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .included > * + *, .ways > * + * { border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .included > *, .ways > * { padding: 0; }
  .article-item { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .affiliations__list, .choice--grid { grid-template-columns: minmax(0, 1fr); }
  .tabs a { font-size: 17px; }
}

/* --- Bits shared by the generated article pages and the library -------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.page-hero--short { min-height: calc(160 * var(--u)); }
.page-hero .page-hero__title { max-width: none; font: 400 max(28px, calc(44 * var(--u)))/1.15 var(--serif); color: #FBF4E6; }
.topic-list li .plain { background: none; padding: 0; font: 400 var(--f-small)/1.3 var(--text); }
.topic-list a { color: var(--ink); text-decoration: none; }
.topic-list a:hover, .topic-list a[aria-current="true"] { color: var(--green-ink); text-decoration: underline; }
.related-list { display: grid; gap: calc(12 * var(--u)); }
.related { display: grid; grid-template-columns: calc(110 * var(--u)) minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; }
.related span { font: 400 max(16px, calc(16 * var(--u)))/1.2 var(--serif); color: var(--ink); }
.related:hover span { text-decoration: underline; }
.next-article__arrow { display: grid; place-items: center; width: 56px; height: 44px; border: 1px solid var(--gold); color: var(--gold); font: 400 22px/1 var(--sans); }
.article-item[hidden] { display: none; }
.filter-status:empty { display: none; }
.filter-status { margin-top: 10px; }
.resources-note { display: inline-block; margin-top: calc(18 * var(--u)); }
.closing { position: relative; isolation: isolate; display: grid; place-items: center; min-height: calc(240 * var(--u)); overflow: hidden; text-align: center; }
.closing img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(25, 38, 34, 0.78), rgba(25, 38, 34, 0.45)); }
.closing__body { padding: calc(30 * var(--u)) var(--gut); color: #F1E7D4; }
.closing__body .rule { margin-inline: auto; }
.closing h2 { font-size: var(--f-h2-cta); color: #FBF4E6; }
.closing p { margin-top: 10px; font: italic 400 max(17px, calc(18.2 * var(--u)))/1.37 var(--serif); }
.not-found .btn-row { margin-top: 1.4em; }

/* --- Icons (bundle 6, sliced from one generated sheet; assets/MANIFEST.md) */
.ico { width: max(20px, calc(22 * var(--u))); height: auto; flex: none; }
.ico-list li { display: flex; align-items: center; gap: calc(14 * var(--u)); }
.service__points.ico-list li { padding-left: 0; }
.service__points.ico-list li::before { content: none; }
.in-brief .ico { width: max(24px, calc(28 * var(--u))); }
.contact-facts.ico-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.contact-facts.ico-list li .ico { grid-row: span 2; width: max(26px, calc(30 * var(--u))); }
.included .ico, .ways .ico { width: max(30px, calc(36 * var(--u))); margin-bottom: 10px; }
.resource-card h3 .ico { width: max(26px, calc(30 * var(--u))); }

/* --- Fixes from check:layout and check:widths (10 Nov 2026) --------------- */
/* The phone menu lies over the page (MOBILE.md rule 20), never pushes it. */
@media (max-width: 1100px) {
  .site-header { position: relative; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; padding: 6px var(--gut) 16px; background: var(--green-deep); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .step, .step:first-child { clip-path: none; margin-left: 0; border-radius: var(--radius); }
  .step__text, .step:first-child .step__text { padding: 16px 18px 10px; }
  .process, .work-together { grid-template-columns: minmax(0, 1fr); }
  .included { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 20px; }
  .included > :first-child { grid-column: 1 / -1; border-left: 0; }
  .included > :nth-child(2) { border-left: 0; }
}
@media (max-width: 1000px) {
  .article-layout, .library-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .page-hero p, .about-hero .lede, .hero__lede { max-width: none; }
  .cta__art { min-height: 0; aspect-ratio: 1.3 / 1; max-height: 280px; }
  .hero { background: var(--green-deep); }
  .hero__bg { height: auto; bottom: auto; aspect-ratio: 2.34 / 1; min-height: 100%; }
  .hero::before { background: linear-gradient(180deg, rgba(18, 30, 27, 0.72), rgba(18, 30, 27, 0.94) 50%); }
}
@media (max-width: 700px) {
  .needs__table thead { display: none; }
  .needs__table, .needs__table tbody, .needs__table tr, .needs__table th, .needs__table td { display: block; width: 100%; }
  .needs__table tr { border-top: 1px solid var(--line); padding: 6px 0; }
  .needs__table tbody th, .needs__table td { border: 0 !important; padding: 4px 14px; }
}
.article__body { overflow-wrap: anywhere; }
.article__body table { display: block; max-width: 100%; overflow-x: auto; }
.article__body td, .article__body th { min-width: 7em; overflow-wrap: normal; }
.related { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.creds__report img { aspect-ratio: 16 / 9; }
@media (max-width: 1100px) {
  .creds { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .creds__report { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero__bg { min-height: 0; }
  .about-intro__img { display: none; }
  .creds { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .included { grid-template-columns: minmax(0, 1fr); }
  .included > * { border-left: 0 !important; }
}
/* His articles bold with <strong>/<b> and table headers; Gelasio is loaded to
   600, so bold is 600 (check:fonts), nested bold included, and a bold run
   inside italics sets upright (no italic 600 is loaded). */
.article__body strong, .article__body b, .article__body th { font-weight: 600; }
.article__body strong strong, .article__body b b { font-weight: 600; }
.article__body em strong, .article__body strong em, .article__body i b, .article__body b i { font-weight: 600; font-style: normal; }
.creds__list li { padding-left: max(20px, calc(20 * var(--u))); }
@media (max-width: 560px) {
  .step__img { aspect-ratio: 3 / 1; }
  .tiles.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile span { font-size: 16px; }
}
.step__text { padding-inline: calc(28 * var(--u)) calc(20 * var(--u)); }
@media (max-width: 1000px) {
  .related { grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; }
}
@media (max-width: 560px) {
  .step__img { aspect-ratio: 2 / 1; }
}
@media (max-width: 1180px) {
  .page-home .process { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .related { grid-template-columns: 88px minmax(0, 1fr); }
}

/* ===========================================================================
   ChatGPT desktop review, applied (design/chatgpt-desktop-feedback/, 10 Nov)
   =========================================================================== */
/* Header: room round the divider, the underline 8px under the label, Contact
   off the column edge, a quieter nav. */
.brand { gap: calc(22 * var(--u)); }
.site-header { padding-right: calc(28 * var(--u)); }
.nav a { font-size: max(13px, calc(11.6 * var(--u))); }
.nav a[aria-current="page"]::after { bottom: 0; }
/* Footer: a gold seam where it meets the CTA band or the form. */
.site-footer { border-top: 3px solid var(--gold); }
.site-footer .brand__mark { width: max(52px, calc(70 * var(--u))); }

/* Inner heroes: each page frames the shared banner on its own subject, and the
   wash sits on the text side only. */
.page-hero { background-position: var(--hero-pos, 50% 50%); }
.page-hero::before { background: linear-gradient(90deg, rgba(20, 34, 30, 0.35) 0%, rgba(20, 34, 30, 0.78) 18%, rgba(20, 34, 30, 0.6) 46%, rgba(20, 34, 30, 0) 68%); }
.page-services { --hero-pos: 30% 50%; }
.page-reports { --hero-pos: 70% 40%; }
.page-articles, .page-article { --hero-pos: 15% 50%; }
.page-resources { --hero-pos: 85% 50%; }
.page-contact { --hero-pos: 95% 60%; }
.page-hero h1 { font-size: max(32px, calc(50 * var(--u))); }

/* Home */
.route { padding-block: calc(5 * var(--u)); }
.routes { gap: calc(7 * var(--u)); }
.hero::before { background: linear-gradient(90deg, rgba(18, 30, 27, 0.25) 0%, rgba(18, 30, 27, 0.7) 26%, rgba(18, 30, 27, 0.58) 55%, rgba(18, 30, 27, 0.25) 100%); }
.needs__table thead th { padding-block: calc(7 * var(--u)); }
.needs__table tbody th, .needs__table td { padding-block: calc(8 * var(--u)); }
.creds__report { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); }
.creds__list { border-inline-color: var(--line); }
.tile img { aspect-ratio: 172 / 100; }
.tile span { padding-block: calc(8 * var(--u)) calc(9 * var(--u)); }
.societies__art { min-height: calc(196 * var(--u)); }
.inquiry .form .field textarea { min-height: 76px; }
.inquiry .choice legend { margin-bottom: calc(14 * var(--u)); }

/* About */
.about-hero .rule { margin: calc(14 * var(--u)) 0; }
.about-hero h1 { font-size: max(34px, calc(50 * var(--u))); }
.in-brief li { padding-block: calc(8 * var(--u)); }
.in-brief .ico { width: max(26px, calc(32 * var(--u))); }
.career__list { margin-top: calc(18 * var(--u)); }
.career__list li { padding-left: 0.9em; }
.affiliations .split { column-gap: calc(40 * var(--u)); }
.affiliations__list li { padding-bottom: calc(8 * var(--u)); border-bottom: 1px solid var(--line); }

/* CTA band */
.cta__body h2 { font-size: max(27px, calc(36 * var(--u))); }
.cta .btn { min-height: max(44px, calc(46 * var(--u))); }

/* Article pages and the library */
.crumbs { padding-block: calc(14 * var(--u)) calc(12 * var(--u)); border-bottom: 1px solid var(--line); }
.article h1 { font-size: max(30px, calc(40 * var(--u))); }
.article-layout { padding-top: calc(22 * var(--u)); }
.article__body { font-size: max(16px, calc(14.8 * var(--u))); line-height: 1.45; max-width: 70ch; }
.article__body > * + * { margin-top: 0.85em; }
.article__body h2, .article__body h3 { margin-top: 1.6em; margin-bottom: -0.35em; }
.article__body ul { list-style: none; padding-left: 1.1em; }
.article__body ul li { position: relative; }
.article__body ul li::before { content: ""; position: absolute; left: -1em; top: 0.6em; width: 0.38em; height: 0.38em; background: var(--green-ink); }
.article__body a { color: var(--green-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.side-panel { background: #F3E8D6; border-color: #D6C6A6; }
.side-panel h2 { font-size: max(21px, calc(22 * var(--u))); }
.library-layout { column-gap: calc(46 * var(--u)); }
.library-layout > div > .h2 { margin-top: calc(10 * var(--u)); }
.article-item { grid-template-columns: calc(190 * var(--u)) minmax(0, 1fr); align-items: start; padding-block: calc(10 * var(--u)); }
.article-item :is(h3, h4) { font-size: max(19px, calc(20.5 * var(--u))); line-height: 1.12; }
.article-item p { font-size: max(15px, calc(13.6 * var(--u))); margin: 4px 0 6px; }
.article-item .meta { margin-bottom: 3px; }
.tabs a { min-height: 48px; padding-block: calc(10 * var(--u)); }
.pubs { align-items: start; }

/* Services */
.service { padding-block: calc(18 * var(--u)); }
.service__rule { background: #E6DBC7; }
.ico-list .ico { width: max(20px, calc(22 * var(--u))); }
.work-together { grid-template-columns: calc(222 * var(--u)) minmax(0, 1fr); }
.step__img { aspect-ratio: 2 / 1; object-position: 50% 60%; }

/* Contact */
.contact-layout { grid-template-columns: calc(362 * var(--u)) minmax(0, 1fr); }
.contact-intro img { aspect-ratio: 2 / 1; }
.inquiry-panel { padding: calc(20 * var(--u)) calc(26 * var(--u)) calc(24 * var(--u)); }
.inquiry-panel .form { gap: calc(11 * var(--u)); }
.choice label { min-height: 44px; padding-block: 6px; }
.field__label { font-weight: 600; }
.inquiry-panel .form__foot { justify-content: flex-start; flex-direction: row-reverse; }
.ways { padding-block: 0; }
.closing__body { transform: translateY(-6%); }
.closing::before { background: radial-gradient(ellipse at center, rgba(25, 38, 34, 0.85), rgba(25, 38, 34, 0.5)); }

/* Resources and reports */
.intro-split { align-items: center; }
.resource-card .card__body h3 { min-height: 2.4em; }
.included h2.h2 { font-size: max(22px, calc(25 * var(--u))); }
.included > * + * { border-left-color: #E6DBC7; }
.card__body h3 { margin-top: calc(4 * var(--u)); }

@media (max-width: 1100px) {
  .work-together, .contact-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .article-item { grid-template-columns: minmax(0, 1fr); }
  .inquiry-panel .form__foot { flex-direction: row; justify-content: flex-end; }
}

/* ===========================================================================
   ChatGPT tablet review, applied (design/chatgpt-tablet-feedback/, 10 Nov):
   fewer columns than desktop between 701 and 900, not one column everywhere.
   =========================================================================== */
@media (min-width: 701px) and (max-width: 900px) {
  .service { grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr); grid-template-rows: auto auto; column-gap: 26px; row-gap: 12px; align-items: start; }
  .service__img { grid-row: 1 / span 2; }
  .service__rule { display: none; }
  .service > div:last-child { grid-column: 2; }
  .article-item { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
  .cta { grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr); }
  .cta__art { aspect-ratio: auto; max-height: none; }
  .cta__art::after { background: linear-gradient(90deg, transparent 60%, var(--green-band)); }
  .societies, .career { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .societies__art, .career__art { min-height: 260px; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
  .creds { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .creds__report { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about-hero { grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr); }
  .about-hero__text { background: linear-gradient(90deg, rgba(247, 238, 222, 0.95), rgba(247, 238, 222, 0.82)); }
  .contact-layout { grid-template-columns: 270px minmax(0, 1fr); }
  .contact-facts.ico-list { display: grid; }
}
@media (max-width: 900px) {
  .page-hero p, .hero__lede, .about-hero .lede { max-width: 650px; }
  .prose, .intro-split p { max-width: 680px; }
  .article__body { max-width: 660px; }
  .contact-intro img { max-height: 280px; aspect-ratio: 2.2 / 1; }
  .creds__report img, .societies__art { max-height: 320px; }
  .site-footer__nav { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 28px; }
  .site-footer__nav a { padding-block: 6px; }
  .site-footer__base { row-gap: 2px; }
  .menu-toggle { gap: 8px; min-height: 42px; }
  .related-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .related { grid-template-columns: minmax(0, 1fr); }
  .sidebar .topic-list { columns: 2; column-gap: 24px; }
  .sidebar .topic-list li { break-inside: avoid; }
  .next-article { padding: 26px var(--gut); }
  .next-article__arrow { width: 44px; height: 40px; }
}
@media (max-width: 1000px) {
  .library-layout .sidebar { order: -1; }
}
@media (max-width: 560px) {
  .related-list { grid-template-columns: minmax(0, 1fr); }
  .related { grid-template-columns: 88px minmax(0, 1fr); }
  .site-footer__nav { grid-template-columns: repeat(2, auto); }
}
@media (min-width: 701px) and (max-width: 900px) {
  .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route { grid-template-columns: 96px minmax(0, 1fr); }
  .hero__portrait { min-height: 220px; }
  .needs__table th:nth-child(1) { width: 28%; }
  .needs__table th:nth-child(2) { width: 27%; }
  .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ways > :first-child { grid-column: 1 / -1; }
  .ways > * + * { border-top: 0; padding-top: 0; }
  .ways > :nth-child(n+3) { border-left: 1px solid var(--line); padding-left: 18px; }
  .contact-facts.ico-list li { padding-block: 8px; }
}
.choice label:has(input:checked) { background: #F4E7C8; }
.inquiry-panel .field textarea { min-height: 110px; }
.resource-card .card__body { gap: 10px; }
.grid-3 { gap: calc(20 * var(--u)); }
.closing::before { background: radial-gradient(ellipse at center, rgba(25, 38, 34, 0.9) 10%, rgba(25, 38, 34, 0.55)); }
.service#presentations .service__img { object-position: 30% 60%; }
.service#writing .service__img { object-position: 70% 55%; }
.service#research .service__img { object-position: 30% 40%; }
@media (min-width: 561px) and (max-width: 900px) {
  .inquiry .choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inquiry .choice legend { grid-column: 1 / -1; }
  .societies { grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr); }
}

/* ===========================================================================
   ChatGPT mobile review, applied (design/chatgpt-mobile-feedback/, 10 Nov)
   =========================================================================== */
.menu-toggle .bars span { height: 2.5px; }
@media (max-width: 1100px) {
  .nav a { min-height: 48px; display: flex; align-items: center; }
}
@media (max-width: 700px) {
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta__art { width: 100%; aspect-ratio: auto; height: 210px; max-height: none; }
  .cta__art::after { background: linear-gradient(180deg, transparent 55%, var(--green-band)); }
  .cta__body p { max-width: none; }
  .btn-row { gap: 12px; }
}
@media (max-width: 560px) {
  .brand__tag { font-size: 10px; letter-spacing: 0.12em; }
  .site-header { gap: 14px; }
  .hero__portrait { min-height: 230px; }
  .hero__intro { padding-bottom: 20px; }
  .routes { padding-top: 18px; }
  .route { grid-template-columns: 86px minmax(0, 1fr); min-height: 74px; }
  .route__title { line-height: 1.05; }
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .site-footer__nav a { display: flex; align-items: center; min-height: 44px; }
  .article-item { padding-block: 14px 18px; }
  .read-link, .text-link, .resource-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .lede, .lede-sm, .page-hero p, .cta__body p { line-height: 1.42; }
  .in-brief li { min-height: 44px; }
  .career__list { gap: 9px; line-height: 1.4; }
  .career__list li, .creds__list li { text-indent: 0; }
  .career__art, .about-intro__img { max-height: 220px; }
  .affiliations__list li { padding-block: 12px; }
  .credit { padding-block: 8px; font-size: 13px; }
  .article__meta { margin-bottom: 26px; }
  .article__body { line-height: 1.52; }
  .article__body > * + * { margin-top: 1em; }
  .crumbs { padding-block: 14px; }
  .article h1 { line-height: 1.1; }
  .about-intro__text .h2 { margin-bottom: calc(var(--head-body) + 8px); }
}
@media (max-width: 560px) {
  .article-item { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .article-item p:not(.meta) { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .library-layout > div > .h2 { margin-top: 16px; }
  .tabs a { font-size: 16px; min-height: 48px; }
  .page-hero::before { background: linear-gradient(90deg, rgba(20, 34, 30, 0.88), rgba(20, 34, 30, 0.7)); }
}

@media (min-width: 1101px) { .nav { gap: calc(27 * var(--u)); } }

/* ===========================================================================
   QA pass, 12 Nov 2026 (design/qa/REPORT.md): measures and crops
   =========================================================================== */
/* Steps on the desktop band: 13.5u copy and a tighter inset give each of the
   four columns an 18+ character measure (was 14 at 1200). */
@media (min-width: 1181px) {
  .page-home .step__text { padding-inline: calc(26 * var(--u)) calc(18 * var(--u)); }
  .page-home .step:first-child .step__text { padding-left: calc(18 * var(--u)); }
  .page-home .step__text p { font-size: max(15px, calc(13.5 * var(--u))); }
}
/* Article sidebar: rows of thumbnail + title between 561 and 700, where three
   columns left each title 154px; one column of topics on a phone. */
@media (min-width: 561px) and (max-width: 700px) {
  .related-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .related { grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; }
}
@media (max-width: 560px) {
  .sidebar .topic-list { columns: 1; }
  .creds__report { grid-template-columns: minmax(0, 1fr); }
  .creds__report img { max-height: 220px; }
}
/* His old articles' tables: wider cells on a phone, scrolling inside the
   table's own box (display:block above) rather than setting 7 characters
   a line. */
@media (max-width: 700px) {
  .article__body td, .article__body th { min-width: 12.5em; }
  .cta__art img { object-position: 50% 68%; }
}

/* ===========================================================================
   Kory's content, 11 Nov 2026 emails: his Services by Need table (home), his
   link list (Resources) and his 50 Most Popular page (/resources/...)
   =========================================================================== */
.needs__list { margin: 0; padding-left: 1.1em; display: grid; gap: 2px; }
.needs__list li::marker { color: var(--gold); }
.fee { display: inline-block; padding: 0 5px; border-radius: 3px; background: #F1E3C2; color: #6A4E12; font: 600 0.8em/1.5 var(--sans); vertical-align: 0.08em; }
.link-note { color: var(--muted); font-size: 0.92em; }
.intro-split__text { display: grid; gap: calc(12 * var(--u)); }
.rank-table-wrap { overflow-x: auto; }
.rank-table { width: 100%; border-collapse: collapse; background: #FCF8F1; border: 1px solid var(--line); font-size: var(--f-small); line-height: 1.35; }
.rank-table thead th { background: var(--green-deep); color: #F6EEDF; font: 400 max(15px, calc(16.5 * var(--u)))/1.2 var(--serif); text-align: left; padding: calc(9 * var(--u)) calc(14 * var(--u)); }
.rank-table td, .rank-table tbody th { padding: calc(8 * var(--u)) calc(14 * var(--u)); border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.rank-table tbody tr:nth-child(even) { background: #F7F0E3; }
.rank-table tbody th { font: 400 max(15px, calc(15.5 * var(--u)))/1.3 var(--serif); white-space: nowrap; }
.rank-table tbody th a { color: var(--green-ink); }
.rank-table__rank { font: 400 max(17px, calc(19 * var(--u)))/1.2 var(--serif); color: var(--green-ink); text-align: center !important; width: 3.5em; }
.rank-table__prev { color: var(--muted); white-space: nowrap; width: 4.5em; }
.rank-notes { margin-top: calc(14 * var(--u)); }
@media (max-width: 700px) {
  .rank-table thead { display: none; }
  .rank-table, .rank-table tbody { display: block; }
  .rank-table tr { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; column-gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); }
  .rank-table td, .rank-table tbody th { display: block; padding: 0; border: 0; }
  .rank-table__rank { grid-row: span 2; width: auto; }
  .rank-table tbody th { white-space: normal; }
  .rank-table__prev { width: auto; font-size: 0.9em; }
  .rank-table__prev::before { content: "Prev. "; }
  .rank-table td:last-child { grid-column: 2 / -1; }
}

/* ===========================================================================
   CONCEPT 2, THE RESEARCH DESK (12 Nov 2026)
   Jacob: "lets just build concept 2 like they wanted". Built to the concept 2
   mockup (localforge claude/snapshots/ancestry-pro-genealogist/originals/
   concepts/concept-02-the-research-desk.png, 1200 wide) and to the assets
   chat's art-director review of the first pass (46 items: palette, sizes and
   fixes per section). Every size is mockup px at 1200 wide times --c, so a
   1200px window draws the mockup 1:1; text keeps readable floors. Icons are
   the assets chat's (assets/originals/icons-sheet-2026-11-12.png and
   step-icons-2026-11-12.png), cut out; the green tile behind them is CSS.
   =========================================================================== */
:root {
  --c: min(1px, calc(100vw / 1200));
  --green-deep: #17343C;     /* header */
  --green-band: #173F49;     /* dark bands: process, inquiry, CTAs */
  --green-btn: #315C49;      /* forest: icon tiles, buttons, table head */
  --green-ink: #234E48;      /* links on paper */
  --paper: #F7F4ED;
  --paper-2: #EFEBDD;        /* warm cream: step cards, alternate rows */
  --panel: #F0E8D8;
  --line: #D8D0C0;
  --ink: #171916;
  --ink-2: #2A2B27;
  --muted: #525149;
  --gold: #B38A35;
  --gold-lt: #D2B36A;
  --gold-btn: #D7B261;
  --gold-btn-2: #C89B43;
  --shadow-card: 0 2px 5px rgb(18 34 34 / 14%);
}
body { background: var(--outside); }
main { background: var(--paper); }

/* ---- Shared pieces --------------------------------------------------------- */
.icon-tile { display: inline-grid; place-items: center; flex: none; width: calc(52 * var(--c)); min-width: 40px; aspect-ratio: 1;
  background: linear-gradient(160deg, #315C49, #426E57); border-radius: 4px; }
.icon-tile img { width: 56%; height: auto; }
.icon-line { display: inline-block; flex: none; width: calc(24 * var(--c)); min-width: 20px; aspect-ratio: 1;
  background: var(--green-btn); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.btn { min-height: 38px; padding: 0 18px; gap: 12px; border-radius: 4px; border: 1px solid transparent;
  font: 400 max(14px, calc(14.5 * var(--c)))/1 var(--serif); }
.btn--green { background: var(--green-btn); border-color: #25483C; color: #FFFDF8; }
.btn--green:hover { background: #294E3E; }
.btn--gold { background: var(--gold-btn-2); background: linear-gradient(var(--gold-btn), var(--gold-btn-2)); border-color: #A9802F; color: #1E1A12; }
.btn--outline { border-color: var(--green-btn); color: var(--ink); }
.btn:focus-visible { outline: 3px solid rgb(210 179 106 / 55%); outline-offset: 2px; }
.cta .btn { min-height: 52px; padding: 0 26px; font-size: max(15px, calc(16 * var(--c))); }
.todo { display: inline-block; background: #FAF2D8; outline: 0; border: 1px solid #D4B45B; border-radius: 3px; padding: 6px 10px;
  font: 400 13px/1.35 var(--sans); color: #5B4A1E; }

/* ---- Header (concept 2: 54px, navy, white active link with a gold bar) ---- */
.site-header { min-height: calc(54 * var(--c)); background: var(--green-deep); padding-inline: calc(54 * var(--c)) calc(48 * var(--c)); }
.site-header .brand__mark { width: calc(70 * var(--c)); min-width: 48px; height: calc(36 * var(--c)); min-height: 30px; }
.site-header .brand__rule { height: calc(28 * var(--c)); align-self: center; margin: 0; background: rgb(255 255 255 / 50%); }
.site-header .brand__name { font-size: max(16px, calc(22 * var(--c))); letter-spacing: 0.035em; }
.site-header .brand__tag { font-size: max(9px, calc(10 * var(--c))); letter-spacing: 0.28em; }
.nav { gap: calc(35 * var(--c)); }
.nav a { font: 500 max(13px, calc(12.5 * var(--c)))/1 var(--sans); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { background: var(--gold-lt); height: 2px; }

/* ---- Footer ----------------------------------------------------------------- */
.site-footer { background: #102D2B; border-top: 3px solid var(--gold); padding: calc(22 * var(--c)) calc(54 * var(--c)) calc(16 * var(--c)); }
.site-footer__nav { gap: 10px 28px; font: 400 14px/1.3 var(--sans); }
.site-footer__base { font-size: 13px; border-top-color: rgb(255 255 255 / 13%); margin-top: 18px; }

/* ===========================================================================
   HOME
   =========================================================================== */
.page-home .band { padding: calc(20 * var(--c)) calc(46 * var(--c)); }
.page-home .band + .band { border-top: 1px solid var(--line); }
.page-home .h2 { font-size: max(25px, calc(31 * var(--c))); line-height: 1.05; }
.page-home .h3 { font-size: max(21px, calc(27 * var(--c))); line-height: 1.05; }
.page-home .lede-sm { font: italic 400 max(15px, calc(15 * var(--c)))/1.4 var(--text); }
.page-home .rule { width: calc(46 * var(--c)); min-width: 32px; height: 3px; margin-bottom: calc(12 * var(--c)); }

/* Hero: 270 tall; portrait 252 | intro 370 | routes. One paper surface. */
.hero--desk { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 0; padding: 0; align-items: stretch;
  grid-template-columns: calc(252 * var(--c)) calc(370 * var(--c)) minmax(0, 1fr); min-height: calc(270 * var(--c));
  background: var(--paper); color: var(--ink); }
.hero--desk::before { content: ""; position: absolute; z-index: -1; inset: 0 0 0 calc(622 * var(--c));
  background: url(/assets/img/hero-desk-960.webp) 70% 50% / cover; opacity: 0.22; filter: saturate(0.72) sepia(0.12); }
.hero--desk > * { overflow: hidden; }
.hero--desk .hero__portrait { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 35%; }
.hero--desk .hero__intro { display: flex; flex-direction: column; justify-content: center; padding: 0 calc(30 * var(--c));
  background: transparent; border-right: 1px solid #DED7CA; }
.hero--desk .hero__tag { order: -1; margin: 0 0 calc(12 * var(--c)); white-space: nowrap;
  font: 600 max(11px, calc(12 * var(--c)))/1 var(--sans); letter-spacing: 0.23em; text-transform: uppercase; color: var(--muted); }
.hero--desk .hero__intro h1 { margin: 0; white-space: nowrap; color: var(--ink); font: 400 max(32px, calc(44 * var(--c)))/1.05 var(--serif); }
.hero--desk .hero__intro .rule { width: calc(54 * var(--c)); min-width: 36px; height: 3px; margin: calc(14 * var(--c)) 0; }
.hero--desk .hero__lede { max-width: calc(315 * var(--c)); min-width: 260px; color: var(--ink-2); font: italic 400 max(15px, calc(16 * var(--c)))/1.45 var(--text); }
.hero--desk .routes { display: grid; align-content: center; gap: calc(6 * var(--c)); margin: 0; padding: calc(14 * var(--c)) calc(14 * var(--c)) calc(14 * var(--c)) calc(16 * var(--c));
  background: none; list-style: none; }
.hero--desk .route { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; gap: calc(14 * var(--c));
  min-height: calc(57 * var(--c)); padding: 0 calc(44 * var(--c)) 0 0; overflow: hidden;
  background: rgb(250 248 242 / 94%); border: 1px solid #DDD5C7; border-radius: 4px; box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none; }
.hero--desk .route:hover { background: #fff; }
.hero--desk .route .icon-tile { width: calc(52 * var(--c)); min-width: 44px; height: 100%; aspect-ratio: auto; border-radius: 0; }
.hero--desk .route .icon-tile img { width: calc(28 * var(--c)); min-width: 22px; }
.hero--desk .route__text { display: grid; align-content: center; gap: 2px; padding-block: 6px; }
.hero--desk .route__title { font: 400 max(16px, calc(18 * var(--c)))/1.1 var(--serif); }
.hero--desk .route__sub { font: 400 max(13px, calc(13 * var(--c)))/1.25 var(--text); color: var(--muted); }
.hero--desk .route::after { right: calc(16 * var(--c)); font-size: 20px; color: var(--ink); }

/* Services by Research Need: 235 intro | table 34/30/36 */
.page-home .split--table { display: grid; grid-template-columns: calc(235 * var(--c)) minmax(0, 1fr); gap: calc(18 * var(--c)); align-items: center; }
.needs__table-wrap { overflow: visible; }
.needs .needs__table { table-layout: fixed; width: 100%; border-collapse: collapse; background: #FBF9F4; border: 1px solid var(--line);
  font: 400 max(13px, calc(13 * var(--c)))/1.25 var(--text); }
.needs .needs__table thead th { height: calc(34 * var(--c)); padding: 0 calc(14 * var(--c)); background: var(--green-btn); color: #fff;
  font: 600 max(14px, calc(14 * var(--c)))/1.2 var(--text); }
.needs .needs__table thead th:nth-child(1) { width: 34%; }
.needs .needs__table thead th:nth-child(2) { width: 30%; }
.needs .needs__table tbody th, .needs .needs__table td { padding: calc(8 * var(--c)) calc(14 * var(--c)); vertical-align: middle; border-top: 1px solid var(--line); }
.needs .needs__table tbody th { width: auto; font: 600 max(13px, calc(13.5 * var(--c)))/1.25 var(--text); color: var(--ink); }
.needs .needs__table tbody tr:nth-child(even) { background: #F3F0E8; }
.needs .needs__table td a { color: var(--ink-2); text-decoration: none; }
.needs__goal { display: flex; align-items: center; gap: calc(12 * var(--c)); }
.needs .icon-line { width: calc(22 * var(--c)); min-width: 18px; }
.needs .needs__list { display: block; margin: 0; padding: 0; list-style: none; }
.needs .needs__list li { display: inline-block; } /* a line may break between services, never inside one (Kory, 16 Nov 2026) */
.needs .needs__list li + li::before { content: "\00B7"; padding: 0 0.4em; color: var(--gold); font-weight: 700; }

/* How Research Engagements Work: navy band, one chevron sequence */
.page-home .process { display: grid; grid-template-columns: calc(255 * var(--c)) minmax(0, 1fr); gap: calc(16 * var(--c)); align-items: center;
  min-height: calc(170 * var(--c)); padding: calc(16 * var(--c)) calc(46 * var(--c)); background: var(--green-band); }
.page-home .process .h2 { color: #FBF8F0; }
.page-home .process .lede-sm { margin-top: calc(10 * var(--c)); color: #DCE3DF; }
.page-home .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; filter: drop-shadow(0 2px 4px rgb(0 0 0 / 18%)); }
.page-home .step { display: grid; justify-items: center; align-content: start; gap: calc(6 * var(--c)); margin: 0 0 0 calc(-20 * var(--c));
  min-height: calc(136 * var(--c)); padding: calc(14 * var(--c)) calc(30 * var(--c)) calc(14 * var(--c)) calc(38 * var(--c));
  background: var(--paper-2); text-align: center; overflow: visible;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%); }
.page-home .step:first-child { margin-left: 0; padding-left: calc(20 * var(--c)); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); }
.page-home .step:last-child { padding-right: calc(18 * var(--c)); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 22px 50%); }
.page-home .step + .step { box-shadow: inset 1.5px 0 0 #17343C; }
.page-home .step__icon { width: calc(32 * var(--c)); min-width: 26px; background: #17343C; }
.page-home .step__text { padding: 0 !important; }
.page-home .step__title { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font: 600 max(15px, calc(16 * var(--c)))/1.15 var(--text); color: var(--ink); }
.page-home .step__num { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green-btn); color: #fff; font: 600 12px/1 var(--sans); }
.page-home .step__text p:not(.step__title) { margin-top: 4px; font: 400 max(13px, calc(13 * var(--c)))/1.3 var(--text); color: var(--ink-2); }

/* Experience & Credentials | Inside a Research Report: 510 | 1 | 245 | image */
.page-home .creds { display: grid; grid-template-columns: calc(205 * var(--c)) minmax(0, 1fr) 1px calc(245 * var(--c)) calc(330 * var(--c)); gap: calc(26 * var(--c));
  align-items: center; min-height: calc(205 * var(--c)); padding: calc(18 * var(--c)) 0 calc(18 * var(--c)) calc(48 * var(--c)); }
.page-home .creds::after { content: none; }
.page-home .creds__intro .lede-sm { margin: calc(8 * var(--c)) 0 calc(14 * var(--c)); }
.page-home .creds__list { display: grid; gap: calc(7 * var(--c)); margin: 0; padding: 0 0 0 calc(22 * var(--c)); border: 0; border-left: 1px solid var(--line);
  font: 400 max(14px, calc(14 * var(--c)))/1.3 var(--text); }
.page-home .creds__list li { padding-left: 18px; }
.page-home .creds__list li::before { width: 7px; height: 7px; top: 0.45em; background: var(--green-btn); }
.page-home .creds__report { display: contents; }
.page-home .creds__report > div { grid-column: 4; position: relative; }
.page-home .creds__report > div::before { content: ""; position: absolute; left: calc(-26 * var(--c)); top: -6px; bottom: -6px; border-left: 1px solid var(--line); }
.page-home .creds__report .lede-sm { margin: calc(8 * var(--c)) 0 calc(14 * var(--c)); }
.page-home .creds__report img { grid-column: 5; width: 100%; height: calc(185 * var(--c)); min-height: 150px; object-fit: cover; object-position: 50% 50%; border-radius: 0;
  filter: saturate(0.72) sepia(0.12) contrast(0.96);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70px); mask-image: linear-gradient(90deg, transparent, #000 70px); }

/* Research Library | For Societies & Organizations: 205 | tiles | 280 */
.page-home .library { display: grid; grid-template-columns: calc(205 * var(--c)) minmax(0, 1fr) calc(280 * var(--c)); gap: calc(20 * var(--c)); align-items: center;
  min-height: calc(185 * var(--c)); }
.page-home .tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(10 * var(--c)); margin: 0; padding: 0; list-style: none; }
.page-home .tile { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 3px; background: #214B43; box-shadow: 0 2px 4px rgb(18 34 34 / 15%); text-decoration: none; }
.page-home .tile > img { width: 100%; height: calc(80 * var(--c)); min-height: 64px; aspect-ratio: auto; object-fit: cover; filter: saturate(0.72) sepia(0.12) contrast(0.96); }
.page-home .tile .tile__bar { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: calc(44 * var(--c)); padding: 6px 8px;
  font: 400 max(13px, calc(13 * var(--c)))/1.15 var(--text); color: #fff; text-align: left; }
.page-home .tile .tile__bar img { width: 16px; height: 16px; flex: none; }
.page-home .tile .tile__bar span { padding: 0; font: inherit; color: inherit; text-align: left; }
.page-home .tile:hover .tile__bar span { text-decoration: underline; }
.page-home .societies { position: relative; isolation: isolate; display: block; align-self: stretch; overflow: hidden;
  padding: calc(6 * var(--c)) 0 calc(6 * var(--c)) calc(20 * var(--c)); background: none; border: 0; border-left: 1px solid var(--line); }
.page-home .societies__art { position: absolute; z-index: -1; right: calc(-40 * var(--c)); bottom: calc(-10 * var(--c)); width: calc(160 * var(--c)); height: auto; min-height: 0;
  opacity: 0.35; filter: saturate(0.6) sepia(0.15);
  -webkit-mask-image: radial-gradient(circle at 60% 60%, #000 35%, transparent 70%); mask-image: radial-gradient(circle at 60% 60%, #000 35%, transparent 70%); }
.page-home .societies__title { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 max(18px, calc(20 * var(--c)))/1.1 var(--serif); }
.page-home .societies__title .icon-line { width: calc(34 * var(--c)); min-width: 28px; }
.page-home .societies .lede-sm { margin: calc(8 * var(--c)) 0 calc(12 * var(--c)); max-width: calc(210 * var(--c)); min-width: 190px; font-size: max(14px, calc(14 * var(--c))); }

/* Start an Inquiry: art 255 | intro 285 | form */
.page-home .inquiry { position: relative; display: grid; grid-template-columns: calc(255 * var(--c)) calc(285 * var(--c)) minmax(0, 1fr); gap: 0; align-items: center;
  min-height: calc(255 * var(--c)); padding: 0; background: var(--green-band); color: #F1ECE2; }
.page-home .inquiry__art { align-self: stretch; width: 100%; height: 100%; min-height: 0; margin: 0; object-fit: cover; object-position: 40% 60%;
  -webkit-mask-image: linear-gradient(90deg, #000 65%, transparent); mask-image: linear-gradient(90deg, #000 65%, transparent); }
.page-home .inquiry__intro { padding: calc(22 * var(--c)) calc(28 * var(--c)); }
.page-home .inquiry__intro h2 { font-size: max(26px, calc(34 * var(--c))); color: #fff; }
.page-home .inquiry__intro .lede-sm { margin-top: calc(10 * var(--c)); color: #DCE3DF; }
.page-home .inquiry .form { display: grid; gap: calc(10 * var(--c)); padding: calc(22 * var(--c)) calc(30 * var(--c)); border-left: 1px solid rgb(255 255 255 / 55%); }
.page-home .choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(8 * var(--c)); }
.page-home .choice legend { margin-bottom: calc(6 * var(--c)); font: 600 13px/1.2 var(--text); }
.page-home .choice label { min-height: 36px; padding: 4px 12px; font-size: max(14px, calc(13.5 * var(--c))); }
.page-home .form .field__label { font: 600 13px/1.2 var(--text); }
.page-home .form input:not([type=radio]) { height: 36px; min-height: 36px; padding: 0 10px; }
.page-home .form textarea { height: 66px; min-height: 66px; padding: 8px 10px; }
.page-home .form__foot { margin: 0; }
.page-home .form__foot .btn { min-width: calc(165 * var(--c)); min-height: 44px; justify-content: center; }

/* ===========================================================================
   INNER PAGES: one family with Home
   =========================================================================== */
.cta { background: var(--green-band); }
.cta__art::after { background: linear-gradient(90deg, transparent 60%, var(--green-band)); }
.cta__body h2 { font-size: max(28px, calc(40 * var(--c))); line-height: 1.05; }
.cta__body p { font: italic 400 max(17px, calc(20 * var(--c)))/1.45 var(--text); }

.page-hero { min-height: calc(240 * var(--c)); padding: calc(34 * var(--c)) calc(54 * var(--c)); }
.page-hero h1 { font-size: max(32px, calc(54 * var(--c))); line-height: 1.05; }
.page-hero .rule { width: calc(75 * var(--c)); min-width: 48px; height: 4px; }
.page-hero p { max-width: calc(560 * var(--c)); font: italic 400 max(17px, calc(20 * var(--c)))/1.45 var(--text); }
.page-hero::before { background: linear-gradient(90deg, rgb(10 33 35 / 80%) 0%, rgb(10 33 35 / 62%) 45%, rgb(10 33 35 / 18%) 100%); }
.page-resources .page-hero { background-position: center 58%; }
.page-hero--ship { min-height: calc(285 * var(--c)); --hero-pos: 80% 45%; }
.page-hero--ship::before { background: linear-gradient(90deg, rgb(13 37 36 / 88%) 0%, rgb(13 37 36 / 78%) 48%, rgb(13 37 36 / 20%) 100%); }
.page-hero--ship h1 { max-width: calc(760 * var(--c)); font-size: max(31px, calc(56 * var(--c))); line-height: 1.02; }

.intro-split { grid-template-columns: calc(300 * var(--c)) 1px minmax(0, 1fr); gap: calc(36 * var(--c)); align-items: start; }
.intro-split > div:first-child { padding-top: 4px; }
.intro-split .h2 { font-size: max(28px, calc(39 * var(--c))); line-height: 1.05; }
.intro-split p { font: 400 max(16px, calc(17 * var(--c)))/1.45 var(--text); }
.intro-split__text { gap: 14px; }

/* About */
.about-hero { min-height: calc(270 * var(--c)); grid-template-columns: calc(382 * var(--c)) minmax(0, 1fr); }
.about-hero__portrait { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 24%; }
.about-hero__text { padding: calc(34 * var(--c)) calc(44 * var(--c)); }
.about-hero h1 { font-size: max(32px, calc(46 * var(--c))); }
.about-hero__sub { font-size: max(23px, calc(31 * var(--c))); }
.about-hero .rule { width: calc(90 * var(--c)); min-width: 56px; height: 4px; }
.about-hero .lede { max-width: calc(600 * var(--c)); font: italic 400 max(17px, calc(21 * var(--c)))/1.42 var(--text); }
.about-intro { grid-template-columns: minmax(0, 420fr) minmax(0, 216fr) minmax(0, 382fr); gap: calc(30 * var(--c)); }
.about-intro .h2, .career .h2, .affiliations .h2 { font-size: max(28px, calc(38 * var(--c))); line-height: 1.08; }
.about-intro__img { aspect-ratio: auto; height: calc(360 * var(--c)); min-height: 280px; }
.career__art { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent); }
.career__list { gap: 7px; font: 400 max(15px, calc(16 * var(--c)))/1.35 var(--text); }
.career__list li::before { width: 6px; height: 6px; background: #C6A454; }
.affiliations .split { grid-template-columns: calc(270 * var(--c)) 1px minmax(0, 1fr); gap: calc(46 * var(--c)); }
.affiliations__list li { padding-bottom: 12px; border-bottom: 1px solid #D9CEBC; font-size: max(17px, calc(19 * var(--c))); }
.affiliations__list li span { font-size: 15px; }

/* Resources: Top 50 callout and category cards */
.top50-link { display: flex; align-items: center; gap: 16px; min-height: calc(84 * var(--c)); margin-top: calc(20 * var(--c));
  padding: 12px 46px 12px 20px; position: relative; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 4px; text-decoration: none; color: var(--ink); }
.top50-link::after { content: "\2192"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 400 20px/1 var(--sans); }
.top50-link:hover { background: #EBE0CB; }
.top50-link__text { display: grid; gap: 4px; }
.top50-link__title { font: 400 max(19px, calc(22 * var(--c)))/1.2 var(--serif); color: var(--green-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.top50-link__sub { font: 400 14px/1.3 var(--sans); color: var(--muted); }
.link-list__title { margin-bottom: calc(22 * var(--c)); font-size: max(28px, calc(39 * var(--c))); }
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.res-col { display: grid; gap: 20px; align-content: start; }
.res-cat { margin: 0; background: #FCFAF5; border: 1px solid #D8CBB6; border-radius: 4px; box-shadow: 0 1px 2px rgb(18 34 34 / 6%); }
.res-cat summary { display: flex; align-items: center; gap: 14px; min-height: 80px; padding: 12px 18px; list-style: none; cursor: pointer; }
.res-cat summary::-webkit-details-marker { display: none; }
.res-cat[open] summary { border-bottom: 1px solid var(--line); }
.res-cat .icon-tile { width: 52px; min-width: 52px; }
.res-cat__name { display: grid; gap: 3px; }
.res-cat__title { font: 400 max(18px, calc(21 * var(--c)))/1.1 var(--serif); color: var(--ink); }
.res-cat__count { font: 400 13px/1.2 var(--sans); color: var(--muted); }
.res-cat .resource-links { display: grid; gap: 0; margin: 0; padding: 14px 20px 18px 86px; }
.res-cat .resource-links li { font: 400 15px/1.55 var(--text); }
.res-cat .resource-links a, .resource-links a { display: inline; min-height: 0; color: var(--green-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; overflow-wrap: anywhere; }
.resource-links a:hover { color: #9A6E20; }
.fee { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 4px; border-radius: 3px; background: #F0E3B8; color: #725614; font: 700 12px/1 var(--sans); vertical-align: 1px; }
/* Kory's starred sites (22 Nov 2026): the fee badge in the site's green */
.fee--star { background: var(--green-ink); color: #FBF4E6; }
.star-key { font: 400 var(--f-small)/1.4 var(--text); color: var(--muted); }
.star-key .fee { margin: 0 4px 0 0; }
@media (min-width: 701px) { .res-cat summary { cursor: default; pointer-events: none; } }
/* Services: Kory's Presentations, the Resources cards without icon tiles,
   so the list starts under the title (18px, the summary's own inset) */
.talks__lede { max-width: 62ch; margin: 0 0 calc(22 * var(--c)); font: 400 var(--f-small)/1.5 var(--text); }
.talks .res-cat summary { min-height: 0; }
.talks .res-cat .resource-links { padding-left: 18px; }
.talks .res-cat .resource-links li { padding: 4px 0; line-height: 1.35; }
/* Services: options that run to a paragraph keep the icon on the first line */
.service__points--long li { align-items: start; }
.service__points--long .ico { margin-top: 0.1em; }

/* Top 50 table */
.rank-table { font: 400 15px/1.3 var(--text); border-color: #D8CBB5; }
.rank-table thead th { height: 40px; padding: 0 14px; background: var(--green-deep); color: #fff; font: 600 16px/1.2 var(--text); }
.rank-table thead th:nth-child(1) { width: 70px; text-align: center; }
.rank-table thead th:nth-child(2) { width: 330px; }
.rank-table thead th:nth-child(3) { width: 75px; text-align: center; }
.rank-table td, .rank-table tbody th { padding: 9px 14px; border-top: 1px solid #D8CBB5; vertical-align: middle; }
.rank-table tbody tr:nth-child(odd) { background: var(--paper); }
.rank-table tbody tr:nth-child(even) { background: #F0EBDE; }
.rank-table__rank { font: 400 18px/1 var(--serif); text-align: center; }
.rank-table tbody th { font: 400 16px/1.3 var(--text); white-space: normal; }
.rank-table__prev { text-align: center; font-size: 13px; }

/* ===========================================================================
   NARROWER WIDTHS
   =========================================================================== */
@media (max-width: 1100px) {
  .hero--desk { grid-template-columns: 210px minmax(0, 1fr); }
  .hero--desk::before { inset: auto 0 0 0; height: 50%; }
  .hero--desk .routes { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px var(--gut); }
  .page-home .library { grid-template-columns: 180px minmax(0, 1fr); }
  .page-home .societies { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 4px; }
  .page-home .societies__art { display: none; }
  .page-home .creds { grid-template-columns: 190px minmax(0, 1fr) 1px 220px; padding-right: var(--gut); }
  .page-home .creds__report img { grid-column: 1 / -1; height: 200px; -webkit-mask-image: none; mask-image: none; }
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .page-home .band, .page-home .process { padding: 26px 20px; }
  .hero--desk .hero__intro { padding: 26px 20px; border-right: 0; }
  .hero--desk .hero__intro h1 { white-space: normal; }
  .page-home .split--table, .page-home .process, .page-home .library { grid-template-columns: minmax(0, 1fr); }
  .page-home .creds { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 18px; }
  .page-home .creds__list { border-left: 0; padding-left: 0; }
  .page-home .creds__report > div { grid-column: auto; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
  .page-home .creds__report > div::before { content: none; }
  .page-home .creds__report img { grid-column: auto; height: 160px; margin-top: 4px; }
  .page-home .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; filter: none; }
  .page-home .step, .page-home .step:first-child, .page-home .step:last-child { margin: 0; clip-path: none; box-shadow: none; border-radius: 4px;
    grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: start; column-gap: 14px; min-height: 0; padding: 14px 16px; text-align: left; }
  .page-home .step__icon { grid-row: span 2; margin-top: 2px; }
  .page-home .step__title { justify-content: flex-start; }
  .page-home .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .page-home .tile > img { height: 104px; }
  .page-home .tile .tile__bar { min-height: 34px; justify-content: center; }
  .page-home .inquiry { grid-template-columns: minmax(0, 1fr); padding: 26px 20px 28px; }
  .page-home .inquiry__art { display: none; }
  .page-home .inquiry__intro { padding: 0 0 14px; }
  .page-home .inquiry .form { padding: 0; border-left: 0; }
  .intro-split { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .about-intro { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .site-header { min-height: 62px; padding: 0 12px 0 20px; }
  .menu-toggle { min-height: 40px; padding-block: 0; }
  .hero--desk { grid-template-columns: minmax(0, 1fr); }
  .hero--desk::before { content: none; }
  .hero--desk .hero__portrait { height: 260px; object-position: 50% 30%; }
  .hero--desk .routes { grid-template-columns: minmax(0, 1fr); padding: 6px 20px 24px; }
  .hero--desk .route .icon-tile { width: 48px; min-width: 48px; }
  .page-home .h2 { font-size: 27px; }
  .needs .needs__table thead { display: none; }
  .needs .needs__table, .needs .needs__table tbody, .needs .needs__table tr, .needs .needs__table th, .needs .needs__table td { display: block; width: 100%; }
  .needs .needs__table tr { padding: 10px 0; border-top: 1px solid var(--line); }
  .needs .needs__table tbody th, .needs .needs__table td { border: 0; padding: 3px 14px; }
  .needs .needs__table td::before { content: attr(data-label); display: block; margin: 4px 0 1px; font: 600 11px/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .page-home .choice { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .page-home .form textarea { height: 76px; }
  .page-home .form__foot .btn { min-width: 0; min-height: 38px; }
  .site-footer { padding: 16px 20px 20px; }
  .site-footer__nav { row-gap: 4px; }
  .site-footer__nav a { display: inline-flex; align-items: center; min-height: 36px; }
  .about-hero { grid-template-columns: minmax(0, 1fr); }
  .about-hero__portrait { height: 260px; object-position: 50% 24%; }
  .page-hero { min-height: 200px; padding: 30px 20px 24px; }
  .page-hero--ship { min-height: 230px; }
  .page-hero--ship::before { background: rgb(13 37 36 / 78%); }
  .res-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .res-col { display: contents; }
  .res-cat summary { position: relative; min-height: 58px; padding: 9px 44px 9px 12px; }
  .res-cat .icon-tile { width: 40px; min-width: 40px; }
  .res-cat__title { font-size: 17px; line-height: 1.12; }
  .res-cat__count { font-size: 12px; }
  .res-cat summary::after { content: "\203A"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 400 24px/1 var(--sans); color: var(--muted); transition: transform 0.2s; }
  .res-cat[open] summary::after { transform: translateY(-50%) rotate(90deg); }
  .res-cat .resource-links { padding: 10px 16px 12px; }
  .res-cat .resource-links li { padding: 5px 0; line-height: 1.35; }
  .top50-link { padding-right: 36px; }
  .top50-link__title { font-size: 19px; }
  .rank-table tr { display: grid; grid-template-columns: 36px minmax(0, 1fr) 54px; grid-template-areas: "rank site prev" "rank desc desc"; column-gap: 8px; padding: 11px 8px; }
  .rank-table__rank { grid-area: rank; font-size: 16px; text-align: left; align-self: start; }
  .rank-table tbody th { grid-area: site; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
  .rank-table__prev { grid-area: prev; text-align: right; font-size: 12px; line-height: 1.2; }
  .rank-table td:last-child { grid-area: desc; margin-top: 3px; font-size: 15px; }
}
@media (max-width: 359px) {
  .rank-table tr { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "rank site" "rank prev" "rank desc"; }
  .rank-table__prev { text-align: left; }
}
.hero--desk .route .icon-tile img { height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 0; }
.page-home .inquiry__intro h2 { font-size: max(26px, calc(30 * var(--c))); white-space: nowrap; }
@media (min-width: 701px) {
  .page-home .inquiry .form { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: end; }
  .page-home .inquiry .form > .choice, .page-home .inquiry .form > .form__row { grid-column: 1 / -1; }
  .page-home .inquiry .form > .field { grid-column: 1; }
  .page-home .inquiry .form__foot { grid-column: 2; display: grid; justify-items: end; gap: 4px; }
  .page-home .form textarea { height: 56px; min-height: 56px; }
}
@media (max-width: 900px) { .page-home .inquiry__intro h2 { white-space: normal; } }
.hero--desk .hero__intro h1 { font-size: max(32px, calc(41 * var(--c))); }
@media (min-width: 901px) {
  .page-home .inquiry__art { position: absolute; left: 0; top: 0; width: calc(255 * var(--c)); height: 100%; }
  .page-home .inquiry__intro { grid-column: 2; }
  .page-home .inquiry .form { grid-column: 3; }
}
@media (max-width: 700px) {
  .site-header { gap: 10px; padding: 10px 12px 10px 16px; }
  .site-header .brand { gap: 10px; }
  .site-header .brand__rule { display: none; }
  .site-header .brand__mark { width: 46px; min-width: 46px; }
  .site-header .brand__name { font-size: 15px; }
  .hero--desk .hero__portrait { order: -1; margin: 0; width: 100%; }
}
@media (max-width: 900px) {
  .page-home .steps .step { box-shadow: none; }
}
@media (max-width: 700px) { .hero--desk .hero__lede { max-width: none; } }
.intro-split .lede-sm { font: italic 400 max(15px, calc(16 * var(--c)))/1.4 var(--text); color: var(--ink-2); }

/* ---- Concept 2, the assets chat's second review (12 Nov 2026) ------------- */
/* Header brand a little smaller */
.site-header .brand__name { font-size: max(15px, calc(21 * var(--c))); }
.site-header .brand__tag { font-size: max(8px, calc(9 * var(--c))); }
/* Home: services table to concept height */
.needs .needs__table { line-height: 1.16; }
.needs .needs__table tbody th, .needs .needs__table td { padding: calc(5 * var(--c)) calc(14 * var(--c)); }
.needs .icon-line { width: calc(20 * var(--c)); min-width: 18px; }
/* Home: process band 170, shallower chevrons */
.page-home .process { grid-template-columns: calc(270 * var(--c)) minmax(0, 1fr); min-height: calc(170 * var(--c)); padding-block: calc(15 * var(--c)); }
.page-home .step { min-height: calc(140 * var(--c)); padding: calc(12 * var(--c)) calc(24 * var(--c)) calc(12 * var(--c)) calc(30 * var(--c)); margin-left: calc(-14 * var(--c)); background: #F0EDDF;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); }
.page-home .step:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.page-home .step:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%); }
.page-home .step + .step { box-shadow: none; }
.page-home .step__icon { width: calc(30 * var(--c)); }
.page-home .step__num { width: 22px; height: 22px; }
.page-home .step__title { font-size: max(15px, calc(16 * var(--c))); line-height: 1.1; }
.page-home .step__text p:not(.step__title) { font-size: max(13px, calc(12.5 * var(--c))); line-height: 1.25; }
/* Home: hero joined by a soft light, quieter manuscript */
.hero--desk .hero__intro { background: radial-gradient(circle at 42% 48%, rgb(255 255 255 / 55%), transparent 58%), #F5F1E8; border-right-color: #DDD6C9; }
.hero--desk::before { opacity: 0.18; }
.hero--desk .routes { padding: calc(14 * var(--c)) calc(14 * var(--c)) calc(14 * var(--c)) calc(17 * var(--c)); }
.hero--desk .route { min-height: calc(56 * var(--c)); }
.hero--desk .route__title { line-height: 1.05; }
.hero--desk .route__sub { font-size: max(13px, calc(12.5 * var(--c))); line-height: 1.2; }
/* Home: library tiles narrower and taller */
.page-home .library { grid-template-columns: calc(205 * var(--c)) calc(550 * var(--c)) minmax(0, 1fr); padding-inline: calc(48 * var(--c)); }
.page-home .tile > img { height: calc(82 * var(--c)); }
.page-home .tile .tile__bar { min-height: calc(42 * var(--c)); }
/* Home: inquiry intro further left, button level with the textarea */
.page-home .inquiry__intro h2 { font-size: max(26px, calc(32 * var(--c))); }
.page-home .inquiry .form { padding: calc(20 * var(--c)) calc(30 * var(--c)); }
@media (min-width: 701px) { .page-home .form textarea { height: 76px; min-height: 76px; } .page-home .inquiry .form__foot { align-self: end; } }
@media (min-width: 901px) { .page-home .inquiry__intro { margin-left: calc(-28 * var(--c)); } }

/* Inner page heroes and intros */
.page-hero h1 { font-size: max(31px, calc(48 * var(--c))); }
.page-hero p { font-size: max(17px, calc(18 * var(--c))); }
.page-hero--ship { padding-top: calc(45 * var(--c)); }
.page-hero--ship h1 { max-width: calc(700 * var(--c)); font-size: max(31px, calc(54 * var(--c))); }
.page-hero--ship p { font-size: max(16px, calc(19 * var(--c))); }
.intro-split { align-items: start; }
.intro-split > div:first-child { padding-top: 0; }
.intro-split .h2 { font-size: max(28px, calc(38 * var(--c))); line-height: 1.08; }
/* Resources: masonry columns again (cards top-aligned, 20px apart, Kory's order down each column) */
.res-grid { display: block; columns: 3; column-gap: 20px; }
.res-cat { break-inside: avoid; margin: 0 0 20px; }
.page-resources .link-list { padding-top: calc(26 * var(--c)); }
/* Top 50 table */
.rank-table td, .rank-table tbody th { padding: 8px 14px; height: 42px; }
.rank-table tbody th, .rank-table td:last-child { font-size: 15px; }
.rank-table__rank { font-size: 17px; }
.rank-table__prev { font-size: 12px; }
/* About */
.btn--outline-light { border-color: #E8E1D3; color: #FFFDF8; }
.btn--outline-light:hover { background: rgb(255 255 255 / 8%); }
.cta__body { padding-top: calc(28 * var(--c)); }
.about-intro { align-items: stretch; padding-bottom: 28px; }
.about-intro__img { height: 100%; max-height: 420px; }
.about-intro .in-brief, .about-intro > aside { align-self: stretch; }

@media (max-width: 1100px) { .page-home .library { grid-template-columns: 180px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .res-grid { columns: 2; }
  .affiliations .split { display: block; }
  .affiliations .split__rule { display: none; }
  .affiliations .split__label { margin-bottom: 18px; }
  .affiliations__list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .affiliations__list li { padding: 13px 0; font-size: 18px; }
  .affiliations__list li.todo { margin-top: 12px; display: block; }
}
@media (max-width: 700px) {
  .site-header .brand__tag { font-size: 8px; letter-spacing: 0.19em; }
  .site-header .brand { gap: 8px; max-width: 250px; }
  .hero--desk .routes { padding-bottom: 20px; }
  .needs .needs__table tr { padding: 8px 0; }
  .needs .needs__table tbody th { font-size: 14px; }
  .needs .needs__table td { font-size: 13px; line-height: 1.3; }
  .needs .needs__table td::before { margin-top: 7px; font-size: 11px; }
  .page-home .needs { padding-bottom: 24px; }
  .page-home .step, .page-home .step:first-child, .page-home .step:last-child { min-height: 0; padding: 13px 16px; }
  .page-home .step__text p:not(.step__title) { font-size: 13px; line-height: 1.28; }
  .page-home .creds { gap: 12px; }
  .page-home .creds__list { gap: 3px; line-height: 1.25; }
  .page-home .creds__report > div { border-top: 0; margin-top: 6px; padding-top: 6px; }
  .page-home .creds__report img { margin-top: 16px; }
  .page-home .tiles { gap: 4px; }
  .page-home .tile > img { height: 106px; }
  .page-home .tile .tile__bar { min-height: 30px; padding-block: 4px; }
  .about-hero__text { padding: 12px 20px 26px; }
  .about-hero h1 { font-size: 31px; }
  .about-hero__sub { font-size: 23px; }
  .about-hero .rule { width: 54px; height: 3px; margin: 10px 0; }
  .about-hero .lede { max-width: none; font-size: 17px; }
  .page-hero p { max-width: 320px; font-size: 17px; line-height: 1.38; }
  .page-hero--ship p { max-width: 350px; font-size: 16px; }
  .page-hero { padding: 24px 20px; min-height: 180px; }
  .res-grid { columns: 1; }
  .res-cat { margin-bottom: 8px; }
  .res-cat .resource-links { padding: 8px 16px 10px; }
  .res-cat .resource-links li { padding: 4px 0; line-height: 1.25; }
  .rank-table-wrap { margin-top: 12px; }
  .rank-table tr { grid-template-columns: 36px minmax(0, 1fr) 52px; padding: 10px 10px 12px; border-top: 0; border-bottom: 1px solid #D8CBB5; }
  .rank-table td, .rank-table tbody th { height: auto; padding: 0; border: 0; }
  .rank-table td:last-child { margin-top: 5px; }
}
.nowrap { white-space: nowrap; }
/* Header: more room above and below the brand and nav (Jacob, 12 Nov 2026: "its cramped") */
@media (min-width: 701px) {
  .site-header { min-height: max(64px, calc(68 * var(--c))); padding-block: calc(10 * var(--c)); }
}

/* About > Biography (13 Nov 2026): Kory's full biography, his portrait beside it */
.biography__layout { display: grid; grid-template-columns: calc(260 * var(--c)) minmax(0, 1fr); gap: calc(48 * var(--c)); align-items: start; max-width: calc(1040 * var(--c)); margin-inline: auto; }
.biography__portrait { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); position: sticky; top: 24px; }
.biography__text { max-width: 68ch; }
.biography__text p { font-size: max(17px, calc(18 * var(--c))); line-height: 1.6; }
.biography__text p + p { margin-top: 1em; }
.biography__note { margin-top: 1.4em; }
.about-intro__more { margin-top: 1.2em; }
@media (max-width: 700px) {
  .biography__layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .biography__portrait { position: static; max-width: 220px; }
  .biography__text p { font-size: 17px; }
}

/* Articles list and related links: text only. No per-article pictures, so a new
   article never needs an image made for it (Jacob, 13 Nov 2026). */
.article-item, .related { grid-template-columns: minmax(0, 1fr); }
.article-item { padding-block: calc(16 * var(--u)); }
.related-list { gap: 0; }
.related { padding: 10px 0; border-bottom: 1px solid var(--line); }
.related-list li:last-child .related { border-bottom: 0; }

/* Articles: Kory's five divisions as a filter row above the list (13 Nov 2026).
   Tap one to filter, tap it again (or Show all) to clear. Phones drop the
   pictures and wrap the divisions as chips. */
.divisions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(10 * var(--u)); margin: calc(18 * var(--u)) 0 calc(4 * var(--u)); padding: 0; list-style: none; }
.division { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #F3EBDD; color: var(--ink); text-decoration: none; }
.division img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.division__bar { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px; font: 400 max(15px, calc(15 * var(--u)))/1.15 var(--serif); }
.division__count { position: absolute; top: 6px; right: 6px; flex: none; min-width: 24px; text-align: center; padding: 1px 7px; border-radius: 10px; background: #EBDDBF; font: 500 12px/1.4 var(--sans); }
.division:hover { border-color: var(--green-ink); }
.division:not([aria-current="true"]):hover .division__bar > span:first-child { text-decoration: underline; }
.division[aria-current="true"] { border-color: var(--green-deep); box-shadow: 0 0 0 1px var(--green-deep); }
.division[aria-current="true"] .division__bar { background: var(--green-deep); color: #F6EEDF; }
.division[aria-current="true"] .division__count { background: var(--green-deep); color: #F6EEDF; }
.division--empty img { opacity: 0.6; }
.division:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 2px; }
.filter-status:empty { display: none; }
.filter-status { margin-top: 10px; }
.filter-status__all { margin-left: 4px; padding: 0; border: 0; background: none; font: inherit; color: var(--green-ink); text-decoration: underline; cursor: pointer; }
@media (max-width: 900px) {
  .divisions { gap: 8px; }
  /* the sidebar sits above the list here, so its topic list would repeat the row */
  .library-layout .sidebar h3, .library-layout [data-topics] { display: none; }
}
@media (max-width: 560px) {
  .divisions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  .division { height: auto; flex-direction: row; border-radius: 999px; }
  .division img { display: none; }
  .division__bar { padding: 6px 8px 6px 14px; font-size: 15px; }
  .division__count { position: static; }
}

/* Articles: the two tabs toggle their sections (13 Nov 2026) */
#articles[hidden], #publications[hidden] { display: none; }

/* Home: How Research Engagements Work back to the picture cards of the first
   draft (Jacob, 13 Nov 2026): text over an engraving, red numbers, arrow
   joins. Undoes concept 2's icon steps above; the band stays concept 2's. */
.page-home .steps { filter: drop-shadow(0 2px 4px rgb(0 0 0 / 22%)); }
.page-home .step, .page-home .step:first-child, .page-home .step:last-child {
  display: flex; flex-direction: column; gap: 0; min-height: 0; padding: 0; text-align: left;
  background: #F7EFE1; overflow: hidden; box-shadow: none; }
.page-home .step, .page-home .step:last-child { margin-left: -10px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%); }
.page-home .step:first-child { margin-left: 0; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); }
.page-home .step__text { padding: calc(16 * var(--c)) calc(30 * var(--c)) calc(10 * var(--c)) calc(36 * var(--c)) !important; }
.page-home .step:first-child .step__text { padding-left: calc(20 * var(--c)) !important; }
.page-home .step__title { justify-content: flex-start; gap: 10px; font: 400 max(17px, calc(18.5 * var(--c)))/1.15 var(--serif); }
.page-home .step__num { width: max(26px, calc(28 * var(--c))); height: auto; aspect-ratio: 1; background: #7A2420; color: #F8EEDC; font: 400 max(14px, calc(15 * var(--c)))/1 var(--serif); }
.page-home .step__text p:not(.step__title) { margin-top: calc(8 * var(--c)); font-size: max(14px, calc(14 * var(--c))); line-height: 1.3; }
.page-home .step__img { display: block; margin-top: auto; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 60%; mix-blend-mode: multiply; }
@media (max-width: 900px) {
  /* heading above the cards: the 12 Nov review's two-column rule had no width limit */
  .page-home .process { grid-template-columns: minmax(0, 1fr); gap: 18px; min-height: 0; padding-block: 26px; }
  .page-home .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; filter: none; }
  .page-home .step, .page-home .step:first-child, .page-home .step:last-child { margin: 0; clip-path: none; border-radius: 4px; }
  .page-home .step__text, .page-home .step:first-child .step__text { padding: 16px 18px 10px !important; }
}
@media (max-width: 560px) {
  .page-home .steps { grid-template-columns: minmax(0, 1fr); }
  .page-home .step__img { aspect-ratio: 3 / 1; }
}

/* Your Ancestors Found as the site name (Kory, 14 Nov 2026; ChatGPT option 1).
   Header: the KLM box beside the site name in title case, no tag line.
   Home hero: the site name is the h1, Kory credited beneath it. */
.site-header .brand--site .brand__name { text-transform: none; letter-spacing: 0.005em; font-size: max(20px, calc(26 * var(--c))); }
@media (min-width: 1101px) {
  .hero--desk { grid-template-columns: calc(236 * var(--c)) calc(410 * var(--c)) minmax(0, 1fr); }
  .hero--desk::before { inset: 0 0 0 calc(646 * var(--c)); }
}
.hero--desk .hero__intro h1 { font-size: max(32px, calc(36 * var(--c))); }
@media (min-width: 1101px) { .hero--desk .hero__intro { padding-inline: calc(24 * var(--c)); } }
/* just above the burger, the brand and the full nav share 1101px */
@media (min-width: 1101px) and (max-width: 1230px) { .site-header .brand--site .brand__name { font-size: calc(22 * var(--c)); } }
/* Eight nav links since Blog joined (18 Nov 2026): just above the menu
   breakpoint the row is tighter, so it fits beside the site name. */
@media (min-width: 1101px) { .site-header { padding-right: calc(30 * var(--c)); } .nav { gap: calc(22 * var(--c)); } }
@media (min-width: 1101px) and (max-width: 1230px) { .site-header { padding-left: calc(36 * var(--c)); } .site-header .brand { gap: calc(16 * var(--c)); } .nav { gap: calc(17 * var(--c)); } }
/* 701-900: the portrait in the narrow column, the intro beside it (it had
   been the other way round, the intro crushed into 210px). */
@media (min-width: 701px) and (max-width: 900px) { .hero--desk .hero__portrait { order: -1; margin: 0; } }
.hero--desk .hero__name { margin: 0; font: 400 max(19px, calc(22 * var(--c)))/1.15 var(--serif); font-variant: small-caps; letter-spacing: 0.03em; color: var(--ink); }
.hero--desk .hero__role { margin: calc(4 * var(--c)) 0 calc(12 * var(--c)); font: 500 max(10px, calc(10.5 * var(--c)))/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) {
  .site-header .brand--site .brand__name { font-size: 20px; }
}

.hero--desk .hero__tag { font-weight: 500; }

/* ---- The service pages (24 Nov 2026). Kory asked whether each service
   needed its own page; Jacob said yes. Layout from ChatGPT's mockups
   (design/mockup/services-pages-2026-11-24/), measured off the 724px-wide
   Writing page and the 793px-wide overview, scaled to the 1024 frame. */
/* Overview: Learn more beside the button (793 mock: 30px apart -> 28, the
   btn-row gap) */
.service__actions { display: flex; flex-wrap: wrap; align-items: center; gap: calc(14 * var(--u)) calc(28 * var(--u)); }
/* Writing options: picture | words (724 mock: 180px picture -> 254, 20px gap
   -> 28, rows 95px tall at 1.9:1 -> 254/134, 10px row padding -> 14) */
.section-lede { margin: calc(8 * var(--u)) 0 calc(20 * var(--u)); }
.option-list { margin-top: calc(18 * var(--u)); border-top: 1px solid var(--line); }
.option { display: grid; grid-template-columns: calc(254 * var(--u)) minmax(0, 1fr); gap: calc(28 * var(--u)); align-items: center; padding: calc(14 * var(--u)) 0; border-bottom: 1px solid var(--line); }
.option__img { width: 100%; aspect-ratio: 254 / 134; object-fit: cover; border-radius: calc(4 * var(--u)); box-shadow: 0 2px 8px rgba(40, 30, 10, 0.2); }
.option h3 { font-size: var(--f-h3); line-height: 1.1; letter-spacing: -0.015em; }
.option p { margin-top: calc(8 * var(--u)); font-size: var(--f-small); line-height: 1.4; max-width: calc(560 * var(--u)); }
.option p a, .feature p a { color: var(--green-ink); }
/* Profile cards: the report card, its title a link (724 mock: three across) */
.profile-card .card__body h3 a { text-decoration: none; color: inherit; }
.profile-card .card__body h3 a:hover { text-decoration: underline; }
.profile-card .meta { font: italic 400 max(14px, calc(13.5 * var(--u)))/1.3 var(--serif); color: var(--muted); }
.profile-card .read-link { margin-top: auto; }
/* Family history and bibliography: picture | words (724 mock: 288px picture
   -> 407, 28px gap -> 40, 26px between the two -> 36) */
.features { display: grid; gap: calc(36 * var(--u)); }
.feature { display: grid; grid-template-columns: calc(407 * var(--u)) minmax(0, 1fr); gap: calc(40 * var(--u)); align-items: center; scroll-margin-top: 16px; }
.feature + .feature { border-top: 1px solid var(--line); padding-top: calc(36 * var(--u)); }
.feature__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: calc(4 * var(--u)); box-shadow: 0 2px 8px rgba(40, 30, 10, 0.2); }
.feature h2 { margin: calc(8 * var(--u)) 0 calc(10 * var(--u)); font-size: var(--f-h3); line-height: 1.1; letter-spacing: -0.015em; }
.feature p:not(.eyebrow) { margin-bottom: calc(18 * var(--u)); font-size: var(--f-small); line-height: 1.45; max-width: calc(520 * var(--u)); }
#options, #profiles { scroll-margin-top: 16px; }
@media (max-width: 700px) {
  /* phone mock (821px wide for 390): the picture stays beside the words, small */
  .option { grid-template-columns: minmax(96px, 32%) minmax(0, 1fr); gap: 16px; padding: 14px 0; align-items: start; }
  .option h3 { font-size: 21px; }
  .feature { grid-template-columns: 1fr; gap: 16px; }
}
/* the overview's right column at the mock's width (793 mock: 270px -> 349),
   so Learn more sits beside the button as drawn, not above it */
@media (min-width: 901px) { .service { grid-template-columns: calc(258 * var(--u)) minmax(0, 1fr) 1px calc(349 * var(--u)); } .service__actions { column-gap: calc(20 * var(--u)); } }

/* Learning: while searching, the results come straight after the box
   (Kory, 2 Dec 2026); the four extra pages are titles below the list. */
.library-layout.is-searching .divisions,
.library-layout.is-searching > div > .lede-sm { display: none; }
@media (max-width: 1000px) {
  .library-layout.is-searching .sidebar h3,
  .library-layout.is-searching [data-topics],
  .library-layout.is-searching > div > .h2 { display: none; }
}
.library-more { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 32px; padding-top: 18px; border-top: 2px solid var(--gold); }
.library-more a { padding: 6px 0; color: var(--green-ink); font: italic 400 20px/1.3 var(--serif); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* The menu below 1100 as tiles, two rows of four (Kory, 3 Dec 2026: "Could
   those links be simply a collection of tiles, say two rows of four each?"),
   in the Read the Report green (--green-btn, his choice) on the page's paper,
   so the header's deep green stays the header's alone ("okay for just the
   front-page header, but more than that is too much"). No mockup: the tile
   size is the 48px tap row it replaces, the gaps the 12px of .steps. Four
   across on a phone too (Kory, 4 Dec 2026: "three (or four?) on narrow tiles,
   next to each other, on each line"): below 560 the tiles shrink and a long
   label takes two lines rather than the row dropping to two tiles. */
@media (max-width: 1100px) {
  .nav {
    display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
    padding: 16px var(--gut) 18px; background: var(--paper);
    border-bottom: 3px solid var(--gold); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  }
  .site-header.is-open .nav { display: grid; }
  .nav a {
    min-height: 64px; padding: 10px 12px; border: 1px solid #25483C; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; text-align: center; white-space: normal;
    background: var(--green-btn); color: #FFFDF8; font: 500 16px/1.2 var(--sans);
  }
  .nav a:hover { background: #294E3E; color: #fff; }
  .nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--gold-lt); }
  .nav a:focus-visible { outline-color: var(--green-ink); }   /* gold on paper is under 3:1 */
}
@media (max-width: 560px) {
  .nav { gap: 8px; padding-inline: 14px; }
  .nav a { min-height: 56px; padding: 6px 4px; font-size: 14px; }
}
