/* C2S Spine identity (C2S Brand Guidelines v1.0, October 2026) for the C2S
   chapter pages. Loaded after medtech.css and scoped to body.c2s-brand, so
   other chapter pages keep their own styling.

   Colour: sand carries the page, charcoal sets the text, coral is the mark.
   The region colour marks the spine region a chapter belongs to:
   body.c2s-thoracic uses teal and highlights T1–T12 on the spine index;
   body.c2s-lumbar uses ochre, with charcoal set on it as the guidelines pair
   it, and highlights L1–L5. --c2s-region-ink is the region colour as used
   for small text: ochre is too light for that on sand, so the lumbar page
   uses a deepened ochre (4.9:1 on sand), as brick deepens coral.
   Type: Space Grotesk for words, IBM Plex Mono for labels, levels and data
   (capitals, 12% letter-spacing). Shapes: the vertebral block, 1.25 h wide
   with concave endplates, frames portraits and numbers. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

.c2s-brand {
  --c2s-coral: #E2533E; --c2s-charcoal: #1F1A18; --c2s-sand: #F3EBE1;
  --c2s-brick: #B33D26; --c2s-teal: #0D5257; --c2s-ochre: #D69A2D; --c2s-plum: #512A44;
  --c2s-blush: #F4C4B4; --c2s-stone: #6E6259; --c2s-bone: #FBF8F3;
  --c2s-rule: #1F1A1826;
  --c2s-region: var(--c2s-coral);
  --c2s-on-region: var(--c2s-charcoal);
  --c2s-region-ink: var(--c2s-region);
  --c2s-sans: "Space Grotesk", "Open Sans", Arial, sans-serif;
  --c2s-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  /* The vertebral body, 125 × 100 (width 1.25 h). */
  --c2s-block: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 125 100' preserveAspectRatio='none'%3E%3Cpath d='M0,12Q0,0 12,1.44Q62.5,14.56 113,1.44Q125,0 125,12L125,88Q125,100 113,98.56Q62.5,85.44 12,98.56Q0,100 0,88Z'/%3E%3C/svg%3E");
  background: var(--c2s-sand);
  color: var(--c2s-charcoal);
  font-family: var(--c2s-sans);
}
.c2s-thoracic { --c2s-region: var(--c2s-teal); --c2s-on-region: var(--c2s-sand); }
.c2s-lumbar { --c2s-region: var(--c2s-ochre); --c2s-on-region: var(--c2s-charcoal); --c2s-region-ink: #8A5A0F; }

.c2s-brand h1, .c2s-brand h2, .c2s-brand h3, .c2s-brand h4,
.c2s-brand p, .c2s-brand dd, .c2s-brand address, .c2s-brand summary { font-family: var(--c2s-sans); }
.c2s-brand a:focus-visible, .c2s-brand summary:focus-visible { outline: 3px solid var(--c2s-region); outline-offset: 4px; }

/* Mono labels: capitals, 12% letter-spacing. */
.c2s-brand .c2s-label, .c2s-brand .depuy-eyebrow, .c2s-brand .depuy-facts dt,
.c2s-brand .agenda-time, .c2s-brand .depuy-poster figcaption span {
  font-family: var(--c2s-mono); font-weight: 500; font-size: 11px; line-height: 16px;
  letter-spacing: .12em; text-transform: uppercase;
}

/* Navigation: the horizontal lockup top left, on its clear space. */
.c2s-brand .depuy-nav { border-bottom: 1px solid var(--c2s-charcoal); padding: 20px 40px; }
.c2s-brand .depuy-nav-brand img { width: 240px; height: auto; display: block; }
.c2s-brand .depuy-nav-links a { color: var(--c2s-charcoal); font-weight: 500; }

/* Hero */
.c2s-brand .depuy-hero { padding-top: 64px; padding-bottom: 40px; }
.c2s-brand .chapter-brands { margin-bottom: 30px; }
.c2s-brand .depuy-eyebrow { color: var(--c2s-region-ink); }
.c2s-brand .depuy-eyebrow + .c2s-label { display: block; color: var(--c2s-stone); margin-top: 2px; }
.c2s-brand .depuy-hero h1 { color: var(--c2s-charcoal); font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -.025em; margin: 18px 0 16px; }
.c2s-brand .depuy-subtitle { font-size: 22px; font-weight: 500; line-height: 1.36; }
.c2s-brand .depuy-hero-copy > p:not(.depuy-subtitle) { font-size: 16px; line-height: 1.5; }
.c2s-brand .depuy-facts { border-top: 1px solid var(--c2s-charcoal); }
.c2s-brand .depuy-facts dt { color: var(--c2s-stone); margin-bottom: 6px; }
.c2s-brand .depuy-facts dd { font-size: 17px; font-weight: 500; line-height: 1.45; }
.c2s-brand .depuy-poster img { box-shadow: 0 18px 40px #1F1A1826; border-radius: 2px; }
.c2s-brand .depuy-poster figcaption span { color: var(--c2s-stone); }
.c2s-brand .depuy-poster a { color: var(--c2s-charcoal); }

/* The spine index along the bottom edge of the header. */
.c2s-index { max-width: 1180px; margin: 0 auto; padding: 0 40px 44px; }
.c2s-index img { display: block; width: 100%; height: auto; }
.c2s-index figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--c2s-stone); }

/* Buttons: the region colour for the main action, charcoal outline otherwise. */
.c2s-brand .depuy-button { border: 1px solid var(--c2s-charcoal); color: var(--c2s-charcoal); border-radius: 4px; font-family: var(--c2s-sans); font-weight: 500; }
.c2s-brand .depuy-button:hover { background: #1F1A180d; }
.c2s-brand .depuy-button-primary { background: var(--c2s-region); border-color: var(--c2s-region); color: var(--c2s-on-region); }
.c2s-brand .depuy-button-primary:hover { background: var(--c2s-charcoal); border-color: var(--c2s-charcoal); color: var(--c2s-sand); }
.c2s-brand .depuy-button[aria-disabled="true"] { opacity: .6; }
.c2s-brand .depuy-button-primary[aria-disabled="true"]:hover { background: var(--c2s-region); border-color: var(--c2s-region); color: var(--c2s-on-region); }

/* Partner logos on a white tile, so their own colours read on sand. */

/* Sections */
.c2s-brand .depuy-strip { background: var(--c2s-bone); border-top: 1px solid var(--c2s-rule); border-bottom: 1px solid var(--c2s-rule); }
.c2s-brand .depuy-strip p { font-size: 16px; line-height: 1.5; }
.c2s-brand .depuy-strip strong { color: var(--c2s-region-ink); }
.c2s-brand .depuy-section h2 { color: var(--c2s-charcoal); font-weight: 700; font-size: 36px; line-height: 40px; letter-spacing: -.02em; }
.c2s-brand .depuy-section p { line-height: 1.5; }
.c2s-brand .depuy-side { border-left: 0; border-top: 1px solid var(--c2s-charcoal); padding: 20px 0 0; }
.c2s-brand .depuy-side h3, .c2s-brand .depuy-logistics h3 { font-size: 20px; font-weight: 500; }
.c2s-brand .depuy-agenda, .c2s-brand .depuy-logistics { border-top: 1px solid var(--c2s-charcoal); }

/* Faculty portraits set in the block frame. */
.c2s-brand .depuy-faculty img {
  /* The c2s-block portraits are cropped to this frame with the eyes on one line, so nothing is re-cropped here. */
  aspect-ratio: 125 / 100; object-fit: cover; object-position: 50% 50%; background: var(--c2s-blush);
  -webkit-mask: var(--c2s-block) center / 100% 100% no-repeat; mask: var(--c2s-block) center / 100% 100% no-repeat;
}
.c2s-brand .depuy-faculty figcaption { font-size: 14px; color: var(--c2s-stone); }
.c2s-brand .depuy-faculty strong { color: var(--c2s-charcoal); font-weight: 700; font-size: 16px; }

/* Agenda */
.c2s-brand .depuy-agenda details { border: 1px solid var(--c2s-rule); background: var(--c2s-bone); border-radius: 4px; }
.c2s-brand .depuy-agenda summary { background: var(--c2s-bone); font-weight: 700; font-size: 18px; }
.c2s-brand .depuy-agenda summary::after { color: var(--c2s-region-ink); }
.c2s-brand .agenda-row { border-top: 1px solid var(--c2s-rule); font-size: 14px; line-height: 1.5; }
.c2s-brand .agenda-row h4 { font-weight: 700; font-size: 16px; }
.c2s-brand .agenda-time { color: var(--c2s-region-ink); font-size: 12px; padding-top: 2px; }
.c2s-brand .agenda-break { background: var(--c2s-sand); }
.c2s-brand .agenda-break .agenda-time { color: var(--c2s-stone); }
.c2s-brand .agenda-faculty { color: var(--c2s-stone); }

/* Station plan: each number in the block frame, in the region colour. */
.c2s-brand .thoracic-stations { border: 1px solid var(--c2s-rule); background: var(--c2s-bone); }
.c2s-brand .thoracic-stations .station { grid-template-columns: 64px 1fr; border-top: 1px solid var(--c2s-rule); }
.c2s-brand .station-number {
  width: 60px; height: 48px; border-radius: 0; background: var(--c2s-region); color: var(--c2s-on-region);
  font-family: var(--c2s-sans); font-weight: 700; font-size: 22px; letter-spacing: -.02em;
  -webkit-mask: var(--c2s-block) center / 100% 100% no-repeat; mask: var(--c2s-block) center / 100% 100% no-repeat;
}
.c2s-brand .thoracic-stations h4 { font-weight: 700; font-size: 17px; }
.c2s-brand .thoracic-stations .station-set { color: var(--c2s-region-ink); font-weight: 500; }
/* A two-day station plan: a mono day label over each day's list. */
.c2s-brand .lumbar-day { font-family: var(--c2s-mono); font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c2s-region-ink); margin: 32px 0 0; }
.c2s-brand .lumbar-day + .thoracic-stations { margin-top: 12px; }
.c2s-brand .depuy-note { color: var(--c2s-stone); }

/* Registration and logistics */
.c2s-brand .thoracic-fee { background: var(--c2s-bone); border: 1px solid var(--c2s-rule); }
.c2s-brand .thoracic-fee strong { color: var(--c2s-charcoal); font-weight: 700; }
.c2s-brand .thoracic-fee span { color: var(--c2s-stone); }

/* Footer: charcoal ground, the horizontal mark in coral. */
.c2s-brand .depuy-footer { background: var(--c2s-charcoal); color: var(--c2s-sand); border-top: 0; }
.c2s-brand .depuy-footer a { color: var(--c2s-sand); }
.c2s-brand .c2s-footer-mark { width: 96px; height: auto; display: block; }

@media (max-width: 640px) {
  .c2s-brand .depuy-nav { padding: 18px 20px; }
  .c2s-index { padding: 0 20px 32px; }
  .c2s-index figcaption { flex-direction: column; gap: 2px; }
  .c2s-brand .depuy-section h2 { font-size: 28px; line-height: 32px; }
}
