/* Infinite Answers, infiniteanswersinc.com
   Layout: a slim sticky header; a navy opening with the headline, the button, the rating, and one
   sentence from a parent; the team right under it, its first row of photos sitting half on the navy;
   then spacious sections on warm ivory. Every other page opens on a short navy band that holds its
   heading. Navy for the opening, the bands, buttons, and the footer; brass only for rules, stars,
   credential lines, and focus rings. Headings in Pagella (a Palatino), text in Inter. Self-hosted fonts. */

:root {
  color-scheme: light;
  --ivory: #F7F3EA;
  --ivory-2: #EFE9DC;
  --paper: #FFFFFF;
  --ink: #16213A;
  --ink-2: #243150;
  --text: #2B3648;
  --muted: #5A6372;
  --line: #DED6C6;            /* hairlines between things (decoration only) */
  --hair: #8C8168;            /* outlines that have to be seen: form boxes, dots, arrow rings */
  --brass: #A48A58;           /* rules (decoration only) */
  --focus: #927A4A;           /* focus rings and chevrons on light surfaces */
  --brass-text: #6F5B36;      /* credential lines and numerals */
  --star: #9A7A32;            /* stars on ivory and white */
  --brass-on-ink: #C9B07C;    /* stars, rules, and focus rings on navy */
  --on-ink-soft: #D9DEE6;
  --on-ink-muted: #B9C0CC;
  --error: #8C2F2F;
  --serif: "Pagella", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --wrap: 1200px;
  --radius: 3px;              /* buttons and form boxes */
  --radius-lg: 8px;           /* photos, cards, and panels */
  --header-h: 61px;
}
@media (min-width: 720px) {
  :root { --gutter: max(32px, env(safe-area-inset-left, 0px)); --gutter-r: max(32px, env(safe-area-inset-right, 0px)); }
}
@media (min-width: 1024px) { :root { --header-h: 73px; } }
@media (min-width: 1600px) {
  :root { --wrap: 1320px; }
  html { font-size: 106.25%; }
}

/*FONTS-START*/
@font-face { font-family: "Pagella"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/pagella-regular.woff") format("woff"); }
@font-face { font-family: "Pagella"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/pagella-italic.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/inter-italic.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-semibold.woff") format("woff"); }
/*FONTS-END*/

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  /* A jump to a section, a card, or the form's thank-you lands below the sticky header, never under it. */
  scroll-padding-top: calc(var(--header-h) + 16px + env(safe-area-inset-top, 0px));
}
/* Jumps within a page glide, but only once the page has settled (the script adds this class after
   loading), so a page that opens at one person's bio or one review appears there at once. */
html.smooth { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html, html.smooth { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv05";
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ivory); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; text-wrap: balance; overflow-wrap: break-word; }
p, figure, ul, ol, dl, blockquote { margin: 0; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color .15s; }
a:hover { color: var(--brass-text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
button { font: inherit; color: inherit; }
strong { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
a[href^="mailto:"] { overflow-wrap: anywhere; }   /* a long address breaks across lines rather than widening the page */
[hidden] { display: none !important; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.skip { position: absolute; left: 12px; top: 12px; transform: translateY(calc(-100% - 24px)); background: var(--ink); color: var(--ivory); padding: 10px 14px; z-index: 30; border-radius: var(--radius); }   /* out of sight above the page, however tall large text makes it */
.skip:focus { transform: none; }
.only-desk { display: none; }
@media (min-width: 700px) { .only-desk { display: inline; } .only-phone { display: none; } }

/* Buttons. A label sits on one line wherever there is room for it. Where there isn't (very large text set on a
   small phone), it wraps onto a second line inside the button rather than pushing the page wider than the screen. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; max-width: 100%; padding: 6px 24px;
  background: var(--ink); color: var(--ivory);
  border: 0; border-radius: var(--radius); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; letter-spacing: 0.005em; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: var(--ink-2); color: var(--ivory); }
.btn:active { opacity: 0.9; }
.btn-small { min-height: 44px; padding: 5px 16px; font-size: 0.9375rem; }
.btn-light { background: var(--ivory); color: var(--ink); }
.btn-light:hover { background: var(--paper); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--hair); }
.btn-outline:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--ivory); border-bottom: 1px solid var(--line);
}
.page-home .site-header { border-bottom-color: var(--ivory); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; min-width: 0; flex: 0 1 auto; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.mark { width: auto; height: 26px; flex: none; }
.wordmark { font-family: var(--serif); font-size: 0.9375rem; letter-spacing: 0.01em; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.desk-nav, .header-actions { display: none; }
/* On phones the buttons give way before the name does. The row of buttons is laid out from the right
   and allowed to wrap, with only its first line showing: when there isn't room beside the name (a
   narrow phone, or large text set on the phone), "Free call" wraps out of sight and the menu stays.
   The button is still at the top of the page and in the menu. */
.mobile-actions {
  display: flex; flex-direction: row-reverse; flex-wrap: wrap; justify-content: flex-start; align-items: center;
  gap: 40px 6px; flex: 0 1000 auto; min-width: min-content;   /* never narrower than the menu button */
  max-height: 56px; padding: 6px; margin: -6px; overflow: hidden;
}
.mobile-actions .menu { order: 0; }
.mobile-actions .phone-btn { order: 1; }
.mobile-actions .call-btn { order: 2; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 9px;
  border: 1px solid var(--hair); border-radius: var(--radius); background: var(--ivory);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.mobile-actions .call-btn { padding: 0 11px; }
.phone-btn { display: none; }
.menu { position: static; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu .when-open, .menu[open] .when-closed { display: none; }
.menu[open] .when-open { display: inline; }
@media (max-width: 359px) {
  /* Too narrow for the labeled button: the phone icon takes its place. */
  .call-btn { display: none; }
  .phone-btn { display: inline-flex; }
}
.menu-panel {
  position: fixed; left: 0; right: 0; z-index: 19;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  height: calc(100vh - var(--header-h) - env(safe-area-inset-top, 0px));
  height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px));
  background: var(--ivory);
  padding: 6px var(--gutter-r) calc(28px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  display: grid; align-content: start; gap: 20px;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-panel nav { display: grid; }
.menu-panel nav a {
  font-family: var(--serif); font-size: 1.375rem; color: var(--ink); text-decoration: none;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.menu-contact { display: grid; gap: 2px; font-size: 1rem; }
.menu-contact a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.menu-panel .btn { width: 100%; }
html.menu-open { overflow: hidden; }

@media (min-width: 412px) {
  .mark { height: 30px; }
  .wordmark { font-size: 1.125rem; }
  .brand { gap: 9px; }
  .header-inner { gap: 14px; }
  .mobile-actions { column-gap: 8px; }
  .icon-btn { padding: 0 11px; }
  .mobile-actions .call-btn { padding: 0 13px; }
}
@media (min-width: 1024px) {
  .header-inner { min-height: 72px; gap: 16px; }
  .mark { height: 40px; }
  .wordmark { font-size: 1.375rem; }
  .mobile-actions { display: none; }
  .desk-nav { display: flex; gap: 22px; }
  .desk-nav a { text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--ink); padding: 12px 0; border-bottom: 1px solid transparent; }
  .desk-nav a:hover { color: var(--brass-text); }
  .desk-nav a[aria-current="page"] { border-bottom-color: var(--focus); }
  .header-actions { display: flex; align-items: center; gap: 22px; }
  .header-actions .btn { white-space: nowrap; }   /* the header's button keeps to one line, as it always has */
  .phone-link { display: none; text-decoration: none; font-weight: 500; font-size: 0.9375rem; white-space: nowrap; padding: 12px 0; }
}
@media (min-width: 1180px) {
  .desk-nav { gap: 28px; }
  .phone-link { display: inline-block; }
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 108px); }
.band { background: var(--ivory-2); }
/* Two sections on the same ivory, one after the other, share one gap between them. */
.section:not(.band) + .section:not(.band) { padding-top: 0; }
.how { padding-top: clamp(36px, 5vw, 60px); }
.section-head { display: grid; gap: 14px; max-width: 62ch; }
.section-head h2, .page-head h1, .how h2 { font-size: clamp(1.9rem, 1.35rem + 1.7vw, 2.75rem); line-height: 1.14; }
.section-link { margin-top: 28px; font-size: 1rem; }
.section-link a { display: inline-flex; align-items: center; min-height: 44px; }
.lede { font-size: 1.0625rem; line-height: 1.6; max-width: 56ch; text-wrap: pretty; }
.quiet { font-size: 0.9375rem; color: var(--muted); max-width: 60ch; }
.cta-note { font-size: 0.9375rem; color: var(--muted); max-width: 44ch; }
.cta-inline { margin-top: 12px; display: grid; gap: 10px; justify-items: start; }
@media (min-width: 700px) {
  .cta-inline { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 22px; }
}

/* Photos: one frame everywhere */
.photo {
  border: 4px solid var(--ivory); border-radius: var(--radius-lg); overflow: hidden; background: var(--ivory-2);
  box-shadow: 0 14px 28px -20px rgba(8, 13, 26, 0.5), 0 0 0 1px rgba(22, 33, 58, 0.08);
}
.tcard .photo { box-shadow: 0 16px 34px -20px rgba(8, 13, 26, 0.7), 0 0 0 1px rgba(22, 33, 58, 0.08); }
.photo picture, .photo img { display: block; width: 100%; }
.photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.portrait-ph {
  display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5;
  background: linear-gradient(165deg, #EBE4D4, #DCD2BD);
  font-family: var(--serif); font-size: 4.25rem; line-height: 1; color: #7D6E4B;
}

/* The rating line: the G, the stars, and the words */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.9375rem; font-weight: 500; line-height: 1.4; color: var(--ink); }
.stars { display: inline-flex; gap: 3px; color: var(--star); flex: none; }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.gchip { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); flex: none; }
.gchip svg { width: 16px; height: 16px; display: block; }
.rating-full { display: none; }
@media (min-width: 700px) { .rating-full { display: inline; } .rating-short { display: none; } }

/* The opening: navy, with the headline, the button, the rating, and a parent's sentence */
.hero { background: var(--ink); color: var(--ivory); padding-block: 18px 0; }
.hero :focus-visible, .page-band :focus-visible, .tcard-cta :focus-visible, .team-cta-bar :focus-visible, .review-cta :focus-visible, .site-footer :focus-visible { outline-color: var(--brass-on-ink); }
.hero-inner { display: grid; justify-items: start; container-type: inline-size; }   /* the headline is sized from this box's width */
.hero-inner > * { min-width: 0; }
.kicker { display: none; font-size: 0.9375rem; font-weight: 500; color: var(--on-ink-muted); margin-bottom: 14px; }
h1.hero-title {
  color: var(--ivory);
  /* Sized from the room the opening has, so the headline's longest line ("capable than they know.") always
     fits: the first sentence takes two lines and the second takes one, on any phone, and also in a window with
     a permanent scrollbar or inside a page that pads this one. The first line is for browsers from before 2022,
     which don't know the newer unit; it works the size out from the screen's width instead. */
  font-size: clamp(1.375rem, 9.26vw - 3.7px, 2.75rem);
  font-size: clamp(1.375rem, 9.26cqw, 2.75rem);
  line-height: 1.08; letter-spacing: -0.008em;
}
h1.hero-title span { display: block; }
.hero .lede { margin-top: 12px; color: var(--on-ink-soft); text-wrap: balance; }
.cta-block { margin-top: 18px; display: grid; gap: 8px; justify-items: stretch; width: 100%; }
.hero .cta-note { color: var(--on-ink-muted); max-width: none; }
.proof { margin-top: 14px; }
.hero .rating, .page-band .rating { color: var(--ivory); }
.hero .gchip, .page-band .gchip { border: 0; }
.hero .stars, .page-band .stars { color: var(--brass-on-ink); }
.hero a { color: var(--ivory); text-decoration-color: var(--brass-on-ink); }
.hero a:hover { color: var(--brass-on-ink); }
.hero .btn-light, .hero .btn-light:hover { color: var(--ink); }
.hero-quote { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(247, 243, 234, 0.18); width: 100%; }
.hero-quote blockquote { font-family: var(--serif); font-style: italic; font-size: 1.125rem; line-height: 1.36; color: var(--ivory); text-wrap: balance; }
.hero-quote figcaption { margin-top: 4px; font-size: 0.875rem; line-height: 1.5; color: var(--on-ink-muted); }
.hero-quote figcaption strong { color: var(--ivory); font-weight: 500; }
.hero-quote figcaption a { display: inline-block; padding-block: 12px; margin-block: -12px; }
@media (min-width: 700px) {
  .hero { padding-block: 36px 0; text-align: center; }
  .hero-inner { justify-items: center; }
  .kicker { display: block; }
  h1.hero-title { font-size: clamp(2.75rem, 1.45rem + 2.7vw, 4.25rem); line-height: 1.05; letter-spacing: -0.014em; max-width: 16em; }
  .hero .lede { margin-top: 16px; font-size: 1.1875rem; line-height: 1.5; max-width: 50em; }
  .cta-block { margin-top: 22px; justify-items: center; gap: 10px; width: auto; }
  .cta-block .btn { min-height: 54px; padding: 6px 30px; font-size: 1.0625rem; }
  .proof { margin-top: 16px; }
  .rating { font-size: 1rem; }
  .hero .rating { justify-content: center; }
  .hero-quote { margin-top: 16px; padding-top: 18px; border-top: 0; position: relative; max-width: 46rem; width: auto; }
  .hero-quote::before { content: ""; position: absolute; top: 0; left: 50%; width: 44px; margin-left: -22px; border-top: 1px solid var(--brass-on-ink); }
  .hero-quote blockquote { font-size: 1.4375rem; line-height: 1.34; }
  .hero-quote figcaption { margin-top: 6px; font-size: 0.9375rem; }
}
@media (min-width: 1024px) {
  /* Room for each sentence of the headline on a line of its own. */
  h1.hero-title { font-size: clamp(2.75rem, 4.4vw, 3.75rem); font-size: clamp(2.75rem, 5.2cqw, 3.75rem); max-width: none; }
}

/* The team, shown once. The first row of photos sits half on the navy of the opening.
   --photo-w is the width of one photo; the navy behind the first row is worked out from it,
   so it stays right at every screen size and with any number of people. */
.team {
  position: relative;
  --team-top: 20px;
  --tgap: 14px;
  --photo-w: min(72vw, 290px);
  padding-block: var(--team-top) clamp(44px, 7vw, 72px);
}
.team::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 0;
  padding-bottom: calc(var(--team-top) + var(--photo-w) * 0.66);
  background: var(--ink);
}
.team > .wrap { position: relative; }
.team-many { --photo-w: 43vw; --tgap: 12px; }
.team .rail { margin-top: 0; }
.team .team-cards { align-items: flex-start; gap: var(--tgap); }
.tcard { width: var(--photo-w); min-width: 0; }
.tcard-name { font-size: 1.375rem; line-height: 1.2; margin-top: 14px; }
.tcard-role { font-size: 0.9375rem; line-height: 1.4; color: var(--muted); margin-top: 3px; }
.tcard-cred { font-size: 0.875rem; line-height: 1.45; color: var(--brass-text); margin-top: 8px; }
/* A line under a name typed in two parts with a dot between them ("Founder · Math, Physics, and Chemistry"), on the
   homepage's cards and in the Team page's row of small photos. Where both parts fit on one line, they sit side by side
   with the dot between them. Where they don't, the second part drops to a line of its own and the dot isn't shown: the
   dot sits in the room to the left of its part, and at the start of a line that room lies outside the box and is cut off. */
.role-split { display: block; overflow: hidden; }
.role-parts { display: flex; flex-wrap: wrap; margin-left: -0.95em; }
.role-part { position: relative; padding-left: 0.95em; min-width: 0; text-wrap: balance; }
.role-dot { position: absolute; left: 0; top: 0; width: 0.95em; text-align: center; }
.tcard-more { margin-top: 2px; }
.tcard-more > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; cursor: pointer;
  font-size: 0.9375rem; font-weight: 500; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 0.2em;
}
.tcard-more > summary::-webkit-details-marker { display: none; }
.tcard-more > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--focus); border-bottom: 1.5px solid var(--focus); transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.tcard-more[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.tcard-more > summary:hover { color: var(--brass-text); }
.tcard-blurb { font-size: 1rem; line-height: 1.55; padding-bottom: 4px; }
.tcard-blurb .more { margin-top: 2px; font-size: 0.9375rem; font-weight: 500; }
.tcard-blurb .more a { display: inline-flex; align-items: center; min-height: 44px; }
.team-many .tcard-name { font-size: 1.1875rem; margin-top: 10px; }
.team-many .tcard-role { font-size: 0.875rem; }
.tcard-cta { display: none; }
.tcard-cta, .team-cta-bar { background: var(--ink); color: var(--ivory); border-radius: var(--radius-lg); }
.tcard-cta h3, .team-cta-bar h3 { color: var(--ivory); font-size: 1.5rem; line-height: 1.16; }
.tcard-cta p, .team-cta-bar p { color: var(--on-ink-soft); font-size: 0.9375rem; line-height: 1.5; }
.team-after { margin-top: 22px; display: grid; gap: 4px; }
.team-line { font-family: var(--serif); font-size: 1.25rem; line-height: 1.36; color: var(--ink); text-wrap: balance; }
.team-bios { font-size: 1rem; font-weight: 500; }
.team-bios a { display: inline-flex; align-items: center; min-height: 44px; }
.team-cta-bar { margin-top: 20px; padding: 24px 22px; display: grid; gap: 18px; }
.team-cta-bar > div { display: grid; gap: 8px; }
.team-cta-bar .btn { width: 100%; }
@media (min-width: 700px) {
  .team {
    --tcols: 3; --tgap: 22px; --team-top: 30px;
    --photo-w: calc((min(100%, var(--wrap)) - var(--gutter) - var(--gutter-r) - (var(--tcols) - 1) * var(--tgap)) / var(--tcols));
  }
  .team-many { --tgap: 22px; }
  .team .rail-controls { display: none !important; }
  .team .team-cards {
    display: grid; grid-template-columns: repeat(var(--tcols), minmax(0, 1fr)); column-gap: var(--tgap); row-gap: 0;
    align-items: stretch; overflow: visible; scroll-snap-type: none; margin-inline: 0; padding: 0;
  }
  .tcard { width: auto; display: grid; grid-row: span 5; grid-template-rows: subgrid; align-content: start; padding-bottom: 40px; }
  .team-many .tcard-name { font-size: 1.375rem; margin-top: 14px; }
  .team-many .tcard-role { font-size: 0.9375rem; }
  .tcard-cta { grid-row: span 5; margin-bottom: 40px; padding: 26px 24px; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 240px; }
  .tcard-cta .btn { margin-top: 6px; align-self: flex-start; }
  .team-after { margin-top: 4px; text-align: center; justify-items: center; gap: 6px; }
  .team-line { font-size: 1.5rem; max-width: 34em; }
  .team-cta-bar { margin-top: 28px; padding: 26px 30px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; }
  .team-cta-bar .btn { width: auto; min-height: 54px; padding: 6px 28px; }
  /* Fewer people than columns: the cards keep their usual size and sit in the middle. */
  .team-few.team-fewer { --photo-w: 220px; }
  .team-few.team-fewer .team-cards { grid-template-columns: repeat(var(--n), 220px); justify-content: center; }
}
@media (min-width: 700px) and (max-width: 1023.98px) {
  .team:not([data-l3="0"]) .tcard-cta { display: flex; }
  .team[data-l3="2"] .tcard-cta { grid-column: span 2; justify-content: center; padding: 32px 36px; }
  .team[data-l3="2"] .tcard-cta h3 { font-size: 1.875rem; }
  .team:not([data-l3="0"]) .team-cta-bar { display: none; }
}
@media (min-width: 1024px) {
  .team { --tcols: 4; --tgap: 26px; --team-top: 26px; }
  .team-many { --tgap: 26px; }
  .team:not([data-l4="0"]) .tcard-cta { display: flex; }
  .tcard-cta h3 { font-size: 1.625rem; }
  .team[data-l4="2"] .tcard-cta { grid-column: span 2; }
  .team[data-l4="3"] .tcard-cta { grid-column: span 3; }
  .team[data-l4="2"] .tcard-cta, .team[data-l4="3"] .tcard-cta { justify-content: center; padding: 36px 48px; }
  .team[data-l4="2"] .tcard-cta h3, .team[data-l4="3"] .tcard-cta h3 { font-size: 2.125rem; }
  .team[data-l4="2"] .tcard-cta p, .team[data-l4="3"] .tcard-cta p { font-size: 1.0625rem; max-width: 40ch; }
  .team:not([data-l4="0"]) .team-cta-bar { display: none; }
  .team-few, .team-few.team-fewer { --photo-w: 276px; }
  .team-few .team-cards, .team-few.team-fewer .team-cards { grid-template-columns: repeat(var(--n), 276px); justify-content: center; }
}

/* How it works */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 32px; }
.steps li { min-width: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.steps .num { font-family: var(--serif); font-size: 1.5rem; color: var(--brass-text); line-height: 1; display: block; }
.steps h3 { font-size: 1.4375rem; line-height: 1.2; margin-top: 12px; }
.steps p { margin-top: 10px; max-width: 46ch; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; margin-top: 44px; }
  .steps li { padding-top: 22px; }
}

/* Subjects */
.subject-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.subject-list li { min-width: 0; padding-top: 16px; border-top: 1px solid rgba(22, 33, 58, 0.14); }
.subject-list h3 { font-size: 1.3125rem; line-height: 1.25; }
.subject-list p { margin-top: 6px; color: var(--text); max-width: 48ch; }
@media (min-width: 720px) {
  .subject-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 44px; margin-top: 40px; }
}
@media (min-width: 1024px) {
  .subject-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Rails (carousels): native scroll, one card snaps at a time, the next peeks in from the edge.
   Arrows and dots are added by script; without it the rail still swipes and scrolls. */
.rail { position: relative; margin-top: 36px; }
.rail-track {
  list-style: none; margin-block: 0;
  display: flex; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter) var(--gutter-r);
  padding-top: 0; padding-bottom: 6px;
  margin-inline: calc(-1 * var(--gutter)) calc(-1 * var(--gutter-r));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-item { flex: 0 0 auto; scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }
.rail-controls { display: none; align-items: center; gap: 14px; margin-top: 18px; }
.js .rail-controls { display: flex; }
.rail-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--hair); background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color .15s, color .15s, opacity .15s;
}
.rail-btn:hover { border-color: var(--ink); }
.rail-btn[disabled] { opacity: 0.4; cursor: default; }
.rail-btn[disabled]:hover { border-color: var(--hair); }
.rail-btn svg { width: 18px; height: 18px; }
.rail-dots { display: none; flex-wrap: wrap; }
.rail-dot {
  width: 24px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.rail-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hair); transition: background .15s, transform .15s; }
.rail-dot:hover::before { background: var(--ink-2); }
.rail-dot[aria-current="true"]::before { background: var(--ink); transform: scale(1.25); }
.rail-count { font-size: 0.9375rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rail-hint { display: none; font-size: 0.875rem; color: var(--muted); margin-left: auto; }
@media (min-width: 720px) {
  .rail-dots { display: flex; }
  .rail-count { display: none; }
}
@media (min-width: 720px) and (hover: none) { .rail-hint { display: block; } }

/* Reviews */
.rcard {
  width: min(86vw, 360px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  display: grid; align-content: start; gap: 14px;
}
.rcard-head { display: flex; align-items: center; gap: 10px; }
.rcard-text { font-size: 1rem; line-height: 1.55; color: var(--text); }
.rcard-text p + p { margin-top: 0.8em; }
.js .rcard-text.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 9; overflow: hidden; }
.rcard-more { display: none; justify-self: start; background: none; border: 0; padding: 10px 0; min-height: 44px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 0.2em; cursor: pointer; }
.js .rcard-more.show { display: inline-flex; align-items: center; }
.rcard-more:hover { color: var(--brass-text); }
.rcard-credit { font-size: 0.9375rem; color: var(--muted); }
.rcard-credit strong { color: var(--ink); font-weight: 600; }
.rcard .full-link { font-size: 0.9375rem; }
@media (min-width: 860px) {
  .rcard { width: 380px; }
  .reviews .rail-track { align-items: flex-start; gap: 22px; }
}
.reviews-after { margin-top: 26px; display: grid; gap: 12px; }
.reviews-after .links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.reviews-after .links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Reviews page: every review as a white card like the homepage's, side by side: one column on phones, two on
   tablets, three on computers. Cards in a row share a height, with the credit at the foot. The first eleven
   show, with a navy "Start with a free call" card in the twelfth spot, and "Show more reviews" brings in the
   rest. Every review is in the page either way; without the script they all show and there is no button. */
.review-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.js .review-grid { align-items: stretch; }   /* with the script, long reviews are cut short, so a row's cards can share a height */
.review-item { display: flex; flex-direction: column; min-width: 0; }
.js .review-grid:not(.is-open) > .is-extra { display: none; }
@supports selector(:has(a)) {
  /* A link to a review that is out of sight opens the list at once, before the script has run. */
  .js .review-grid:not(.is-open):has(> .is-extra:target) > .is-extra { display: flex; }
}
.review-item > .rcard { width: auto; flex: 1 1 auto; display: flex; flex-direction: column; }
.review-item .rcard-more { align-self: flex-start; }
.review-item .rcard-credit { margin-top: auto; }
.review-item:target > .rcard { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
/* While one review in a row is open in full, the cards beside it keep the height they had. */
.review-grid > .row-loose { align-self: start; }
.review-cta {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-width: 0;
  padding: 26px 24px; background: var(--ink); color: var(--ivory); border-radius: var(--radius-lg);
}
.review-cta .call-title { color: var(--ivory); }
.review-cta .call-text { color: var(--on-ink-soft); }
.review-cta .btn { margin-top: 4px; }
.review-cta .call-alt { color: var(--on-ink-muted); }
.review-cta .call-alt a { color: var(--ivory); text-decoration-color: var(--brass-on-ink); }
.review-cta .call-alt a:hover { color: var(--brass-on-ink); }
.reviews-foot { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.reviews-foot .section-link { margin-top: 0; }
.reviews-more { display: none; flex: 1 1 100%; }
.js .reviews-more { display: block; }
.reviews-more .btn { width: 100%; }
.page-proof { margin-top: 2px; }
@media (min-width: 700px) {
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .review-cta { padding: 28px 26px; }
  .review-cta .btn { align-self: flex-start; }
  .reviews-more { flex: 0 0 auto; }
  .reviews-more .btn { width: auto; min-width: 13.5rem; }
}
@media (min-width: 1024px) {
  .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}

/* Approach */
.approach-grid { display: grid; gap: 40px; margin-top: 36px; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.points li { padding-top: 16px; border-top: 1px solid var(--line); }
.points h3 { font-size: 1.3125rem; line-height: 1.25; }
.points p { margin-top: 6px; max-width: 52ch; }
.note-card { border-left: 2px solid var(--brass); padding: 4px 0 4px 22px; align-self: start; }
.note-card blockquote { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
.note-card blockquote p + p { margin-top: 0.8em; }
.who { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 0.9375rem; color: var(--muted); }
.who strong { color: var(--ink); font-weight: 600; }
.avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none; background: var(--ivory-2); }
.avatar picture { display: block; width: 100%; height: 100%; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
@media (min-width: 900px) {
  .approach-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(44px, 6vw, 96px); align-items: start; }
  .note-card { position: sticky; top: calc(var(--header-h) + 28px); }
  .note-card blockquote { font-size: 1.375rem; }
}

/* Universities: a navy band, the names in type, with a small seal beside each when the setting is on.
   Each seal sits on an ivory disc, so its own colors read the same as they would on the page. */
.band-ink { background: var(--ink); color: var(--on-ink-soft); }
.band-ink h2 { color: var(--ivory); }
.band-ink .lede { color: var(--on-ink-soft); }
.band-ink :focus-visible { outline-color: var(--brass-on-ink); }
.uni-grid { display: grid; gap: clamp(22px, 3.4vw, 36px); }
/* Two columns on phones and four on wide screens, and fewer whenever a column would be too narrow
   for the longest name beside its seal (a very small phone, or large text set on the phone). */
.uni-roll {
  list-style: none; margin: 0; padding: 0; display: grid; column-gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(9.25rem, calc((100% - 20px) / 2))), 1fr));
}
.uni-roll li {
  font-family: var(--serif); font-size: 1rem; line-height: 1.2; color: var(--ivory);
  padding: 10px 0; display: flex; align-items: center; gap: 10px; min-height: 52px; min-width: 0;
  border-top: 1px solid rgba(247, 243, 234, 0.16);
}
.uni-roll li span { min-width: 0; overflow-wrap: anywhere; }
.uni-roll.with-seals li { min-height: 62px; }
.seal { flex: none; width: 40px; height: 40px; display: block; object-fit: contain; padding: 4px; background: var(--ivory); border-radius: 50%; }
.uni-note { margin-top: 22px; font-size: 0.875rem; line-height: 1.5; color: var(--on-ink-muted); max-width: 68ch; }
@media (min-width: 700px) {
  .uni-roll { column-gap: 26px; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(11.5rem, calc((100% - 26px) / 2))), 1fr)); }
  .uni-roll li { font-size: 1.125rem; min-height: 60px; gap: 14px; }
  .uni-roll.with-seals li { min-height: 78px; }
  .seal { width: 52px; height: 52px; padding: 5px; }
}
@media (min-width: 900px) {
  .uni-roll { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(11.5rem, calc((100% - 78px) / 4))), 1fr)); }
}

/* FAQ */
.faq-grid { display: grid; gap: 20px; }
.faq-list { max-width: 72ch; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; color: var(--ink); min-height: 44px; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--focus); border-bottom: 1.5px solid var(--focus); transform: rotate(45deg); margin-right: 4px; transition: transform .15s; }
.faq-item[open] > summary::after { transform: rotate(225deg); }
.faq-item > summary:hover { color: var(--brass-text); }
.faq-body { padding: 0 0 20px; max-width: 64ch; }
.faq-body p + p, .faq-body ul + p, .faq-body p + ul { margin-top: 0.8em; }
.faq-body ul { padding-left: 1.25em; }   /* an answer that is a list: one item to a line */
.faq-body li + li { margin-top: 0.3em; }
.faq .section-link { margin-top: 0; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: clamp(44px, 6vw, 96px); align-items: start; }
  .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 28px); }
  .faq-grid .faq-list { max-width: none; }
}

/* Contact */
.contact-grid { display: grid; gap: 40px; }
.contact-ways { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 4px; max-width: 420px; }
.contact-ways li { border-top: 1px solid var(--line); }
.contact-ways a { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; column-gap: 14px; min-height: 60px; padding: 10px 0; text-decoration: none; color: var(--ink); }
.contact-ways a:hover { color: var(--brass-text); }
.contact-ways svg { width: 22px; height: 22px; grid-row: 1 / span 2; color: var(--brass-text); }
.contact-ways .label { font-weight: 500; line-height: 1.3; }
.contact-ways .value { color: var(--muted); font-size: 0.9375rem; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.contact-reply { margin-top: 22px; font-size: 1rem; color: var(--ink); font-weight: 500; }
.contact-area { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); max-width: 44ch; }
.form { display: grid; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 500; font-size: 0.9375rem; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--ivory); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 11px 12px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field .hint { font-size: 0.875rem; color: var(--muted); }
.field .field-error { font-size: 0.9375rem; line-height: 1.4; color: var(--error); font-weight: 500; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 520px) { .form-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 12px; justify-items: start; }
.form-note { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius); font-size: 1rem; line-height: 1.5; }
.form-status.show { display: block; }
.form-status.ok { background: var(--ivory-2); color: var(--ink); }
.form-status.err { background: #F8E6E3; color: var(--error); }
.form-status a { color: inherit; white-space: nowrap; }
.form-done { display: grid; gap: 12px; padding: 24px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form-done h3 { font-size: 1.5rem; }
.grecaptcha-badge { visibility: hidden; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(44px, 6vw, 96px); align-items: start; }
  .form { padding: 32px 28px; }
}
/* On the Contact page the heading sits in the navy band above, so the section starts closer to it. */
.contact-page { padding-top: clamp(34px, 5vw, 60px); }
.contact-page .contact-ways { margin-top: 0; }

/* Inner pages open on a short navy band that holds the way back, the heading, and the line under it. It stays
   short, so the homepage's tall navy opening remains the one that stands out. The content follows on ivory,
   and on wide screens a "Start with a free call" card stays in view beside it, starting below the band. */
.page-band { background: var(--ink); color: var(--on-ink-soft); }
.page-head { padding-block: clamp(26px, 4.2vw, 50px) clamp(28px, 4.4vw, 52px); display: grid; gap: 14px; justify-items: start; }
.page-head > * { min-width: 0; }
.page-head h1 { color: var(--ivory); max-width: 28ch; }
.page-head .lede { color: var(--on-ink-soft); max-width: 62ch; text-wrap: balance; }
.page-head .quiet { color: var(--on-ink-muted); max-width: 80ch; }
.page-head a { color: var(--ivory); text-decoration-color: var(--brass-on-ink); }
.page-head a:hover { color: var(--brass-on-ink); }
.has-back .page-head { padding-top: clamp(10px, 1.6vw, 20px); }   /* the "Back to ..." link brings its own room */
.page-body { padding-top: clamp(34px, 5vw, 60px); }
.page-grid { display: grid; gap: 48px; padding-bottom: clamp(52px, 7vw, 100px); }
.page-end { padding-bottom: clamp(52px, 7vw, 100px); }
.page-main { min-width: 0; }
.page-aside { display: none; }
@media (min-width: 1024px) {
  .page-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(48px, 6vw, 104px); align-items: start; }
  .page-aside { display: block; position: sticky; top: calc(var(--header-h) + 28px); }
}
.call-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px 22px; display: grid; gap: 14px; }
.call-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--ink); }
.call-text { font-size: 0.9375rem; line-height: 1.55; }
.call-card .btn { width: 100%; }
.call-alt { font-size: 0.9375rem; color: var(--muted); }
.call-alt a { white-space: nowrap; }
.call-proof { padding-top: 14px; border-top: 1px solid var(--line); }
.call-proof .rating { font-size: 0.875rem; }
.prose { max-width: 68ch; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 1em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); line-height: 1.2; margin-top: 2.2em; margin-bottom: 0.6em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3125rem; line-height: 1.25; margin-top: 1.6em; margin-bottom: 0.4em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose .note { color: var(--muted); font-size: 0.9375rem; margin-bottom: 1.6em; }
.who-teaches { margin-top: 0.7em !important; font-size: 0.9375rem; color: var(--muted); }
.who-teaches span { color: var(--brass-text); font-weight: 500; }

/* About: the founder's note beside his photo */
.founder { display: grid; gap: 22px; }
.founder-photo { width: min(62vw, 240px); }
.founder-text h2 { margin-top: 0; }
.signature { margin-top: 1.2em !important; font-size: 0.9375rem; color: var(--muted); }
.signature strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.25rem; color: var(--ink); }
@media (min-width: 720px) {
  .founder { grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; }
  .founder-photo { width: 240px; }
}

/* Team page. Under the heading, a row of small photos, each a link to that person's bio; the first row sits half
   on the navy, like the first row of photos on the homepage. --jc is how many sit in a row: the page works it out
   for each screen size from the size of the team (--jc-a to --jc-e), so the rows stay even with any number of
   people. --jw is the width of one photo, and the navy behind the first row is worked out from it. */
.page-team .page-head { padding-bottom: 22px; }
.team-jump {
  position: relative;
  --jc: var(--jc-a, 2); --jgap: 14px; --jmax: 8.25rem; --jump-top: 0px;
  --jw: min(var(--jmax), calc((min(100%, var(--wrap)) - var(--gutter) - var(--gutter-r) - (var(--jc) - 1) * var(--jgap)) / var(--jc)));
  padding-block: var(--jump-top) clamp(30px, 4.6vw, 54px);
}
.team-jump::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 0;
  padding-bottom: calc(var(--jump-top) + var(--jw) * 0.64);
  background: var(--ink);
}
.team-jump > .wrap { position: relative; }
.jump-list {
  list-style: none; margin: 0; padding: 0; display: grid; justify-content: start;
  grid-template-columns: repeat(var(--jc), minmax(0, var(--jmax))); gap: 24px var(--jgap);
}
.jump-list li { min-width: 0; }
.jump-list a { display: block; color: var(--ink); text-decoration: none; border-radius: var(--radius-lg); }
.jump-list .photo { display: block; border-width: 3px; }
.jump-name {
  display: block; margin-top: 10px; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.25;
  text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 0.2em;
  overflow-wrap: break-word;
}
.jump-role { display: block; margin-top: 3px; font-size: 0.875rem; line-height: 1.35; color: var(--muted); overflow-wrap: break-word; hyphens: auto; }
.jump-list a:hover .jump-name { color: var(--brass-text); }
@media (min-width: 360px) { .team-jump { --jc: var(--jc-b, 3); } }
@media (min-width: 560px) { .team-jump { --jc: var(--jc-c, 4); --jgap: 18px; } }
@media (min-width: 760px) { .team-jump { --jc: var(--jc-d, 6); --jgap: 18px; } }
@media (min-width: 1024px) { .team-jump { --jc: var(--jc-e, 7); --jgap: 26px; } }
/* Each bio in its own band, ivory and the deeper ivory by turns, counted back from the last one (always the
   page's ivory, so it never runs into the closing band). From 720px the photo sits beside the text and changes
   sides from one bio to the next; on phones it stays on top. */
.bio-list { display: grid; gap: 0; }
.bio-band { padding-block: clamp(40px, 6vw, 76px); }
.team-jump + .bio-list > .bio-band:first-child:not(.band) { border-top: 1px solid var(--line); }
.bio { display: grid; gap: 22px; align-items: start; }
.bio .photo { width: min(62vw, 260px); }
.bio-main { min-width: 0; max-width: 68ch; }
.bio h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); line-height: 1.2; }
.bio .bio-role { color: var(--muted); margin-top: 4px; font-size: 1rem; max-width: 60ch; }
.bio .cred { margin-top: 12px; font-size: 0.9375rem; color: var(--brass-text); max-width: 64ch; }
.bio .bio-text { margin-top: 16px; }
.bio .bio-text p + p { margin-top: 0.9em; }
@media (min-width: 720px) {
  .bio { grid-template-columns: 260px minmax(0, 1fr); column-gap: clamp(36px, 5vw, 64px); }
  .bio .photo { width: 260px; }
  .bio-flip { grid-template-columns: minmax(0, 1fr) 260px; }
  .bio-flip .photo { order: 1; }   /* the text keeps the page's left edge, and the photo takes the right one */
}

/* A person's full bio, opened in place from their card on the homepage */
.bio-dialog {
  border: 0; padding: 0; color: var(--text); background: var(--ivory);
  width: min(760px, calc(100vw - 40px)); max-width: none;
  max-height: min(88vh, 920px);
  border-radius: var(--radius-lg); overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 40px 90px -40px rgba(8, 13, 26, 0.7);
}
.bio-dialog::backdrop { background: rgba(14, 21, 38, 0.66); }
.bio-dialog-bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 8px 10px 4px; background: var(--ivory); }
.bio-close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); font-weight: 500; font-size: 0.9375rem; cursor: pointer; }
.bio-close svg { width: 18px; height: 18px; }
.bio-close:hover { color: var(--brass-text); }
.bio-dialog-body { padding: 4px 22px calc(26px + env(safe-area-inset-bottom, 0px)); }
.bio-dialog-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; }
.bio-dialog h3 { font-size: 1.625rem; line-height: 1.2; }
.bio-dialog .bio-role { color: var(--muted); margin-top: 4px; font-size: 0.9375rem; line-height: 1.45; }
.bio-dialog .cred { margin-top: 8px; font-size: 0.875rem; line-height: 1.45; color: var(--brass-text); }
.bio-dialog .bio-text { margin-top: 20px; }
.bio-dialog .bio-text p + p { margin-top: 0.9em; }
.bio-dialog-foot { margin-top: 24px; }
html.dialog-open { overflow: hidden; }
@media (max-width: 699.98px) {
  .bio-dialog { width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .bio-dialog-foot .btn { width: 100%; }
}
@media (min-width: 700px) {
  .bio-dialog-bar { padding: 10px 14px 0; }
  .bio-dialog-body { padding: 0 44px 40px; }
  .bio-dialog-head { grid-template-columns: 132px minmax(0, 1fr); gap: 28px; }
  .bio-dialog h3 { font-size: 2rem; }
  .bio-dialog .bio-text { margin-top: 26px; }
}

/* "Back to ...": added by the script on an inner page reached from another page of the site */
.back-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; justify-self: start; font-size: 0.9375rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.back-link::before { content: ""; flex: none; width: 7px; height: 7px; margin-left: 2px; border-left: 1.5px solid var(--focus); border-bottom: 1.5px solid var(--focus); transform: rotate(45deg); }
.back-link span { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.back-link:hover { color: var(--brass-text); }
.page-head > .back-link { margin-bottom: -4px; }
.page-band .back-link { color: var(--ivory); }
.page-band .back-link::before { border-color: var(--brass-on-ink); }
.page-band .back-link span { text-decoration-color: var(--brass-on-ink); }
.page-band .back-link:hover { color: var(--brass-on-ink); }
.back-inline { display: flex; width: max-content; max-width: 100%; margin-bottom: 4px; }
.bio > .back-inline { grid-column: 1 / -1; margin-bottom: -8px; }
/* The same link, floating in the bottom-left corner once the one above the heading has scrolled out of view.
   It sits above a phone's toolbar and home bar, under the menu and the header, and says just "Back" on phones. */
.back-float {
  position: fixed; z-index: 15;
  left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  padding: 0 16px 0 14px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(22, 33, 58, 0.18);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.back-float.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s ease, transform 0.18s ease; }
.back-float span { text-decoration: none; }
.back-float .bf-rest { display: none; }
@media (min-width: 700px) {
  .back-float { left: max(24px, env(safe-area-inset-left, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .back-float .bf-rest { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .back-float, .back-float.is-shown { transition: none; transform: none; } }
@media print { .back-float { display: none; } }
/* Room under the footer's last line, so the floating button never sits on top of it. */
.has-back-float .footer-base, .has-top-float .footer-base { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }

/* "Back to top" on the Team page: the same kind of button in the bottom-right corner, once the row of small
   photos has scrolled out of view. It says just "Top" on phones. Added by the script. */
.top-float {
  position: fixed; z-index: 15;
  right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 14px;
  font-family: inherit; font-size: 0.9375rem; font-weight: 500; line-height: 1.2; color: var(--ink); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(22, 33, 58, 0.18);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.top-float::before { content: ""; flex: none; width: 7px; height: 7px; border-left: 1.5px solid var(--focus); border-top: 1.5px solid var(--focus); transform: translateY(2px) rotate(45deg); }
.top-float:hover { color: var(--brass-text); }
.top-float.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s ease, transform 0.18s ease; }
.top-float .tf-long { display: none; }
@media (min-width: 700px) {
  .top-float { right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .top-float .tf-short { display: none; }
  .top-float .tf-long { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .top-float, .top-float.is-shown { transition: none; transform: none; } }
@media print { .top-float { display: none; } }
.team-jump:focus { outline: 0; }   /* where "Back to top" puts the keyboard: the row itself shows no ring, its links do */

/* The band that ends every inner page */
.closing { padding-block: clamp(48px, 7vw, 92px); }
.closing-grid { display: grid; gap: 36px; }
.closing h2 { font-size: clamp(1.9rem, 1.35rem + 1.7vw, 2.75rem); line-height: 1.14; }
.closing .lede { margin-top: 14px; }
.closing-actions { margin-top: 24px; display: grid; gap: 10px; justify-items: start; }
.closing-actions p { font-size: 0.9375rem; color: var(--muted); }
.closing-actions p a { white-space: nowrap; }
.closing-quote { border-left: 2px solid var(--brass); padding: 4px 0 4px 22px; }
.closing-quote blockquote { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 1.3125rem; line-height: 1.38; color: var(--ink); }
.closing-quote figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }
.closing-quote figcaption strong { color: var(--ink); }
@media (min-width: 900px) {
  .closing-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(48px, 6vw, 104px); align-items: center; }
  .closing-actions { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 22px; }
  .closing-quote { padding-left: 32px; }
  .closing-quote blockquote { font-size: 1.5rem; }
}

/* Resources page */
.resource-groups { display: grid; gap: 44px; max-width: 76ch; }
.resource-group h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); line-height: 1.2; padding-top: 22px; border-top: 1px solid var(--line); }
.resource-group:first-child h2 { padding-top: 0; border-top: 0; }   /* the navy band already sets the first group apart */
.resource-group .intro { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; max-width: 64ch; }
.resource-group ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 2px; }
.resource-group li a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; font-size: 0.9375rem; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); margin-top: 0; }
.footer-inner { display: grid; gap: 32px; padding-block: 48px 36px; }
.footer-name { font-family: var(--serif); font-size: 1.375rem; color: var(--ivory); }
.footer-line { margin-top: 8px; font-size: 0.9375rem; max-width: 40ch; }
.footer-line a { color: var(--ivory); text-decoration-color: var(--brass-on-ink); }
.footer-line a:hover { color: var(--brass-on-ink); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; }
.footer-nav a, .footer-contact a { color: var(--ivory); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; overflow-wrap: anywhere; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--brass-on-ink); }
.footer-contact { display: grid; gap: 2px; }
.footer-base { border-top: 1px solid rgba(247, 243, 234, 0.14); padding-block: 18px 22px; font-size: 0.875rem; }
.footer-base p { color: var(--on-ink-muted); }
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
}

/* The not-found page, and the plain confirmation page shown when JavaScript is off: the heading and its line
   sit in the navy band, and these links follow on ivory */
.notfound { padding-block: clamp(26px, 4vw, 44px) clamp(56px, 9vw, 120px); display: grid; gap: 12px; max-width: 56ch; }
.notfound .links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.notfound .links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Preview note (not part of the site) */
.preview-note { margin-block: 24px 48px; }
.preview-note p { border: 1px dashed var(--brass); color: var(--muted); font-size: 0.9375rem; padding: 14px 18px; border-radius: var(--radius); }
