/* =====================================================================
   VAULT / BEHIND THE SCRUBS — GLOBAL DESIGN SYSTEM  (global.css)
   Link this on EVERY page. Do not write page-specific colors or fonts.
   Sections:
     1. Tokens          5. Layout           9. Dashboard components
     2. Base            6. Buttons         10. Marketing components
     3. Paper + wash    7. Navbar          11. Forms
     4. Decorations     8. Cards & lists   12. Footer + utilities
   ===================================================================== */

/* Fonts are bundled locally in assets/fonts (no CDN needed) */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/inter-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/inter-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/inter-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/newsreader-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/newsreader-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Newsreader';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/newsreader-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:400;font-display:swap;src:url('assets/fonts/newsreader-latin-400-italic.woff2') format('woff2');}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:500;font-display:swap;src:url('assets/fonts/newsreader-latin-500-italic.woff2') format('woff2');}
@font-face{font-family:'Caveat';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/caveat-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Caveat';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/caveat-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Caveat';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/caveat-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'Marck Script';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/marck-script-latin-400-normal.woff2') format('woff2');}

/* ---------- 1. TOKENS ---------- */
:root {
  /* colour */
  --bg: #FBF6EC;
  --bg-soft: #FDFAF3;
  --surface: #FFFFFF;
  --sage-50: #F1F5EC;
  --sage-100: #E3EBDF;
  --sage-200: #CBDACB;
  --sage-300: #A9C0AD;
  --teal: #1F4D45;
  --teal-600: #2A6358;
  --teal-800: #163A34;
  --peach: #F6D9C8;
  --coral: #E58B6E;
  --blue-soft: #DDEBEF;
  --pink-soft: #F7D8D6;
  --sand: #EADCC2;
  --text: #24312E;
  --muted: #6B7773;
  --border: #E8E1D2;
  --danger: #D9534F;

  /* type */
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Caveat', 'Segoe Script', cursive;   /* logotype names */
  --font-hand: 'Marck Script', 'Segoe Script', cursive;     /* thin handwritten taglines */

  /* shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* depth (use sparingly — flat by default, lift on hover) */
  --shadow-sm: 0 1px 2px rgba(31, 77, 69, .05);
  --shadow-md: 0 6px 18px rgba(31, 77, 69, .09);
  --shadow-lg: 0 16px 40px rgba(31, 77, 69, .13);

  /* space (8px grid) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 80px;

  /* layout */
  --container: 1200px;
  --container-wide: 1440px;
  --nav-h: 76px;
  --side-l: 280px;
  --side-r: 320px;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  position: relative;
  min-height: 100vh;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--teal);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--s3);
}
h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
p  { margin: 0 0 var(--s4); }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: var(--s3); display: block;
}
.script { font-family: var(--font-script); font-weight: 600; color: var(--teal); line-height: 1.05; }
.script--coral { color: var(--coral); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny  { font-size: 12px; }

/* ---------- 3. PAPER TEXTURE + WATERCOLOUR WASHES ---------- */
/* Paper grain overlay (very faint) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Page-level watercolour (painted SVG washes, irregular edges):
   sage top-left + right edge, sage bottom-left, peach bottom-right */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    url("assets/wash-sage-tl.svg") 0 0 / min(46vw, 640px) auto no-repeat,
    url("assets/wash-sage-r.svg") 100% 16% / min(34vw, 460px) auto no-repeat,
    url("assets/wash-sage-bl.svg") 0 100% / min(40vw, 560px) auto no-repeat,
    url("assets/wash-peach-br.svg") 100% 100% / min(36vw, 520px) auto no-repeat;
  opacity: .55;
}
body > * { position: relative; z-index: 1; }

/* Reusable wash for banners / cards: add .wash (+ optional variant).
   Two painted SVG blobs: ::before top-left, ::after bottom-right. */
.wash {
  position: relative; overflow: hidden; isolation: isolate;
  --wash-a: url("assets/wash-sage-tl.svg");
  --wash-b: url("assets/wash-peach-br.svg");
}
.wash::before, .wash::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(58%, 560px); aspect-ratio: 640 / 520; opacity: .72;
  background: no-repeat center / 100% 100%;
}
.wash::before { top: 0; left: 0; background-image: var(--wash-a); }
.wash::after  { bottom: 0; right: 0; background-image: var(--wash-b); }
.wash--sage  { --wash-a: url("assets/wash-sage-tl.svg"); --wash-b: url("assets/wash-sage-br.svg"); }
.wash--peach { --wash-a: url("assets/wash-peach.svg");   --wash-b: url("assets/wash-sage-br.svg"); }
/* Full-width banner: peach on the left, sage on the right (like "Your Voice Matters") */
.wash--banner::before { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; opacity: .9; background-image: url("assets/wash-banner.svg"); background-size: cover; }
.wash--banner::after  { display: none; }

/* ---------- 4. DECORATIONS ---------- */
/* Hand-drawn leaf sprigs (SVG files in /assets).
   Usage: <span class="sprig sprig--left"></span> inside a position:relative parent.
   Types:  (default olive) | --pair | --corner | --branch | --small
   Place:  --left | --right | --top      Size: --sm | --lg      Rotate: --tilt */
.sprig {
  position: absolute; pointer-events: none; width: var(--w, 110px); aspect-ratio: 140 / 300;
  background: var(--sprig, url("assets/sprig-olive.svg")) no-repeat center / contain;
}
.sprig--pair   { --sprig: url("assets/sprig-pair.svg");   --w: 150px; aspect-ratio: 200 / 300; }
.sprig--corner { --sprig: url("assets/sprig-corner.svg"); --w: 190px; aspect-ratio: 260 / 340; }
.sprig--branch { --sprig: url("assets/sprig-branch.svg"); --w: 260px; aspect-ratio: 340 / 130; }
.sprig--small  { --sprig: url("assets/sprig-small.svg");  --w: 56px;  aspect-ratio: 90 / 190; }
.sprig--left  { left: 8px;  bottom: 0; }
.sprig--right { right: 8px; bottom: 0; transform: scaleX(-1); }
.sprig--top   { top: 0; bottom: auto; }
.sprig--tilt  { transform: rotate(18deg); }
.sprig--right.sprig--tilt { transform: scaleX(-1) rotate(18deg); }
.sprig--sm { --w: 64px; }
.sprig--lg { --w: 160px; }

.heart-mark { color: var(--coral); }
.swoosh { /* coral underline under script words */
  display: inline-block; position: relative;
}
.swoosh::after {
  content: ""; position: absolute; left: 4%; right: 0; bottom: -6px; height: 6px;
  background: no-repeat center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M1 6C25 1 60 1 99 4' stroke='%23E58B6E' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- 5. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s5); }
.container--wide { max-width: var(--container-wide); }
.section { padding-block: var(--s9); }
.section--tight { padding-block: var(--s7); }
.section--sage  { background: var(--sage-50); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.section-head h2 { margin: 0; }
.link-arrow { font-size: 13px; font-weight: 500; white-space: nowrap; }
.link-arrow::after { content: " →"; }

.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split  { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: center; }
.split-70-30 { display: grid; grid-template-columns: 7fr 3fr; gap: var(--s5); align-items: start; }

/* Dashboard shell: left rail | feed | right rail */
.app-shell {
  display: grid; gap: var(--s5); align-items: start;
  grid-template-columns: var(--side-l) minmax(0, 1fr) var(--side-r);
  max-width: var(--container-wide); margin: 0 auto; padding: var(--s5);
}
.rail { display: flex; flex-direction: column; gap: var(--s5); position: sticky; top: calc(var(--nav-h) + var(--s5)); }
.feed { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }

/* ---------- 6. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 500; line-height: 1;
  padding: 12px 22px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-800); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-soft { background: var(--sage-100); color: var(--teal); }
.btn-soft:hover { background: var(--sage-200); }
.btn-ghost { background: var(--surface); color: var(--teal); border-color: var(--border); border-radius: var(--r-md); padding: 9px 14px; font-size: 13px; }
.btn-ghost:hover { background: var(--sage-50); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-square { border-radius: var(--r-md); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: transparent; border: 0; color: var(--teal); position: relative;
}
.icon-btn:hover { background: var(--sage-100); }
.icon-btn .dot {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger); color: #fff; border-radius: var(--r-pill); font-size: 10px; display: grid; place-items: center;
}

/* ---------- 7. NAVBAR ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(251, 246, 236, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar__inner { display: flex; align-items: center; gap: var(--s6); height: 100%; max-width: var(--container-wide); margin: 0 auto; padding-inline: var(--s5); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--teal); }
.brand__badge {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--teal);
  display: grid; place-items: center; background: var(--surface); color: var(--teal); flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__small { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; margin-left: 2px; }
.brand__name  { font-family: var(--font-script); font-size: 40px; font-weight: 700; margin-top: -2px; }
.brand__tag   { font-size: 8px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: var(--s5); margin: 0 auto; padding: 0; list-style: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 2px;
  font-size: 14px; font-weight: 500; color: var(--text); position: relative;
}
.nav-link:hover { color: var(--teal); text-decoration: none; }
.nav-link.is-active { color: var(--teal); font-weight: 600; }
.nav-link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 2px; background: var(--teal); border-radius: 2px; }
.search {
  display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 44px; width: 300px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); color: var(--muted);
}
.search input { border: 0; outline: 0; background: transparent; flex: 1; font: inherit; font-size: 13px; color: var(--text); min-width: 0; }
.navbar__actions { display: flex; align-items: center; gap: var(--s3); }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); background: var(--sage-200); flex: none; }
.avatar--sm { width: 36px; height: 36px; }
.avatar--lg { width: 72px; height: 72px; }

/* ---------- 8. CARDS & LISTS ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s5); transition: box-shadow .2s, transform .2s;
}
.card--hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--soft { background: var(--bg-soft); }
.card--sage { background: var(--sage-50); border-color: var(--sage-100); }
.card--flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.card-title { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--teal); margin: 0; }
.card-link { font-size: 12.5px; font-weight: 500; }

.icon-circle {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--sage-100); color: var(--teal);
}
.icon-circle--blue  { background: var(--blue-soft); }
.icon-circle--pink  { background: var(--pink-soft); color: #B5483F; }
.icon-circle--peach { background: var(--peach); }
.icon-circle--sand  { background: var(--sand); }
.icon-circle--lg { width: 56px; height: 56px; }

.list { list-style: none; margin: 0; padding: 0; }
.list-item {
  display: flex; align-items: center; gap: var(--s3); padding: 12px 0; color: inherit;
  border-bottom: 1px solid var(--border); text-decoration: none !important;
}
.list-item:last-child { border-bottom: 0; }
.list-item__body { flex: 1; min-width: 0; }
.list-item__title { font-family: var(--font-serif); font-size: 14.5px; font-weight: 600; color: var(--teal); margin: 0; }
.list-item__sub { font-size: 12.5px; color: var(--muted); margin: 0; }
.list-item__meta { font-size: 12px; color: var(--muted); text-align: right; }
.list-item::after { content: none; }
.list-item--chev::after { content: "›"; font-size: 22px; color: var(--muted); line-height: 1; }
a.list-item:hover .list-item__title { text-decoration: underline; text-underline-offset: 3px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-sm);
  font-size: 11px; font-weight: 600; background: var(--sage-100); color: var(--teal);
}
.badge--new   { background: var(--sage-200); }
.badge--count { background: var(--teal); color: #fff; border-radius: var(--r-pill); min-width: 20px; justify-content: center; }
.badge--coral { background: var(--peach); color: #A4482F; }
.tag { /* small category label on cards */
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600);
}

.tabs { display: flex; gap: var(--s6); border-bottom: 1px solid var(--border); margin-bottom: var(--s4); }
.tab { background: none; border: 0; padding: 10px 2px; font-family: var(--font-serif); font-size: 15px; color: var(--muted); position: relative; }
.tab:hover { color: var(--teal); }
.tab.is-active { color: var(--teal); font-weight: 600; }
.tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--teal); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--sage-50); padding: 5px; border-radius: var(--r-md); }
.segmented button { border: 0; background: transparent; padding: 10px; border-radius: var(--r-sm); font-size: 13px; color: var(--text); }
.segmented button.is-active { background: var(--teal); color: #fff; }

/* ---------- 9. DASHBOARD COMPONENTS ---------- */
/* Welcome banner (photo fades into watercolour on the right) */
.hero-banner {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 230px; border: 1px solid var(--border);
  display: grid; grid-template-columns: 1.1fr .9fr; background: var(--bg-soft);
}
.hero-banner__content { padding: var(--s6) var(--s6) var(--s6) 88px; position: relative; z-index: 2; align-self: center; }
.hero-banner__title { font-family: var(--font-script); font-size: clamp(44px, 5vw, 64px); font-weight: 700; color: var(--teal); line-height: 1; margin: 6px 0 12px; }
.hero-banner__image { position: relative; min-height: 230px; background: center/cover no-repeat var(--sage-200); }
.hero-banner__image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg-soft) 0%, rgba(253,250,243,0) 40%); }
.hero-banner__script { position: absolute; right: 18px; top: 24%; font-family: var(--font-script); font-size: 22px; color: var(--teal); text-align: right; line-height: 1.1; z-index: 3; }

.composer { display: flex; flex-direction: column; gap: var(--s3); }
.composer__row { display: flex; gap: var(--s3); align-items: center; }
.composer__input {
  flex: 1; height: 46px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--bg-soft); font: inherit; font-size: 14px; color: var(--text);
}
.composer__tools { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.composer__tools .spacer { flex: 1; }

.post { padding: var(--s5); }
.post__head { display: flex; gap: var(--s3); align-items: flex-start; }
.post__who { flex: 1; min-width: 0; }
.post__name { font-family: var(--font-serif); font-weight: 600; font-size: 15px; color: var(--teal); }
.post__meta { font-size: 12.5px; color: var(--muted); }
.post__body { margin: var(--s3) 0; font-size: 14.5px; }
.post__stats { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding-bottom: var(--s3); }
.post__actions { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: var(--s2); }
.post__action { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 12px; border-radius: var(--r-sm); font-size: 13px; color: var(--muted); }
.post__action:hover { background: var(--sage-50); color: var(--teal); }
.reactions { display: inline-flex; align-items: center; gap: 6px; }
.reaction-dot { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; color: #fff; border: 2px solid var(--surface); margin-right: -8px; }
.reaction-dot--like { background: #3B7BE4; } .reaction-dot--love { background: var(--danger); }
.post__attachment { display: flex; gap: var(--s3); align-items: center; border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px; margin: var(--s3) 0; background: var(--bg-soft); }
.post__attachment img { width: 88px; height: 56px; object-fit: cover; border-radius: var(--r-sm); }

.chat-item { display: flex; gap: var(--s3); align-items: center; padding: 10px 0; }
.chat-item__body { flex: 1; min-width: 0; }
.chat-item__name { font-family: var(--font-serif); font-size: 14px; font-weight: 600; color: var(--teal); }
.chat-item__preview { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-side { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-side a { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: var(--r-md); color: var(--text); font-size: 14.5px; text-decoration: none; }
.nav-side a:hover { background: var(--sage-50); }
.nav-side a.is-active { background: var(--sage-100); color: var(--teal); font-weight: 600; }
.nav-side .badge { margin-left: auto; }

.trending { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.trending li { counter-increment: t; display: flex; gap: 14px; padding: 10px 0; font-size: 14px; }
.trending li::before { content: counter(t); color: var(--teal); font-weight: 600; width: 14px; }

.promo { /* "Explore Vault Professional" style tile */
  text-align: center; padding: var(--s6) var(--s5); border-radius: var(--r-lg); border: 1px solid var(--sage-100); position: relative;
}
.promo h3 { margin-bottom: 8px; }

.side-script { font-family: var(--font-script); font-size: 30px; line-height: 1.15; color: var(--teal); transform: rotate(-8deg); padding: var(--s5); }

/* ---------- 10. MARKETING COMPONENTS (Behind the Scrubs home) ----------
   Put class="page-site" on <body> for marketing pages. Measured at 1440px wide. */
body.page-site { background: #FCFAF5; }
body.page-site::before, body.page-site::after { display: none; }

.wrap { width: 100%; max-width: 1300px; margin-inline: auto; padding-inline: 24px; }
.hand { font-family: var(--font-hand); font-weight: 400; color: var(--teal); line-height: 1.0; transform: rotate(-7deg); transform-origin: left center; display: inline-block; }
.hand--white { color: #fff; }
.hand--coral { color: var(--coral); }

/* icons: inline <svg class="i"> */
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }
.yt { width: 20px; height: 14px; flex: none; }  /* rounded rect + triangle, colours set inline by currentColor */

.btn-lg { height: 46px; padding: 0 32px; font-size: 15px; }
.btn-rect { border-radius: 4px; }
.link-yt { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--teal); }

/* ---- top block: header + hero share one painted background ---- */
.site-top {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(620px 300px at 60% 22%, rgba(246, 217, 200, .55), transparent 72%),
    linear-gradient(#FCF4E7, #FBF6EC);
}
.site-top::before {            /* sage cloud, top-left behind the logo */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -60px; left: -150px; width: 330px; aspect-ratio: 640 / 520; opacity: .62;
  background: url("assets/wash-sage-tl.svg") center / 100% 100% no-repeat;
}
.site-top > .sprig { z-index: 0; }

.site-header__inner { display: flex; align-items: center; height: 118px; padding-inline: 11px; }
.logo-img { height: 92px; width: auto; mix-blend-mode: multiply; }
.site-nav { display: flex; gap: 38px; list-style: none; margin: 0 auto; padding: 0; }
.site-nav a { position: relative; display: block; padding: 6px 0; font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; }
.site-nav a:hover { color: var(--teal); }
.site-nav a.is-active { color: var(--teal); }
.site-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--teal); border-radius: 2px; }
.site-header__actions { display: flex; align-items: center; gap: 28px; }

.site-hero { padding: 12px 0 36px; }
.site-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 695px; gap: 40px; align-items: center; }
.site-hero__text { padding-left: 78px; }
.site-hero__text h1 { font-weight: 500; font-size: 56px; line-height: 1.12; letter-spacing: -.005em; margin: 0 0 20px; }
.site-hero__text p { font-size: 16.5px; line-height: 1.65; color: #2D3A37; margin: 0 0 28px; max-width: 420px; }
.site-hero__text .eyebrow { margin-bottom: 18px; }
.site-hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

.site-hero__media { position: relative; height: 409px; border-radius: 8px; overflow: hidden; background: #6c8c90 center / cover no-repeat; box-shadow: 0 10px 30px rgba(31, 77, 69, .14); }
.site-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 28, .10) 0%, rgba(8, 24, 28, 0) 35%, rgba(8, 24, 28, .78) 100%); }
.site-hero__media .hand { position: absolute; z-index: 2; left: 30px; top: 30px; font-size: 38px; line-height: .95; }
.site-hero__caption { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 18px; color: #fff; }
.site-hero__caption .eyebrow { color: #fff; font-size: 10px; letter-spacing: .16em; margin: 0 0 8px; }
.site-hero__caption h3 { color: #fff; font-size: 18px; font-weight: 500; margin: 0 0 8px; }
.site-hero__caption small { font-size: 12.5px; opacity: .92; }
.site-hero__caption small i { font-style: normal; opacity: .6; margin: 0 7px; }

/* ---- sections ---- */
.site-section { padding: 38px 0 44px; }
.site-section--tint { background: linear-gradient(#F9F6EE, #F6F4EA); border-top: 1px solid #EFEADF; }
.site-section h2 { font-weight: 500; font-size: 34px; letter-spacing: -.005em; }
.site-section .section-head { margin-bottom: 20px; }
.site-section .link-arrow { font-size: 12.5px; }

.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.video-card__thumb { border-radius: 6px; aspect-ratio: 289 / 155; }
.video-card__thumb .play { width: 38px; height: 38px; background: rgba(20, 40, 36, .72); border: 0; }
.video-card__thumb .play .i { width: 14px; height: 14px; margin-left: 2px; }
.video-card__title { font-weight: 500; font-size: 16px; margin: 14px 0 8px; }
.video-card__meta { font-size: 12.5px; color: var(--muted); }
.video-card__meta i { font-style: normal; margin: 0 7px; opacity: .6; }
.video-card .yt-link { margin-top: 14px; font-size: 12px; }

.sa-grid { display: grid; grid-template-columns: minmax(0, 1fr) 396px; gap: 22px; align-items: start; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px; }
.story-card { background: #fff; border: 0; border-radius: 6px; box-shadow: 0 1px 8px rgba(40, 50, 40, .09); position: relative; padding: 0; min-height: 301px; }
.story-card__img { aspect-ratio: 260 / 137; border-radius: 0; background-color: var(--sage-200); }
.story-card__body { padding: 14px 18px 16px; gap: 8px; }
.story-card .tag { font-size: 10.5px; letter-spacing: .14em; }
.story-card__title { font-size: 18px; font-weight: 500; line-height: 1.25; }
.story-card__by { font-size: 12px; margin-top: 4px; }
.story-card__by i { font-style: normal; margin: 0 7px; opacity: .6; }
.story-card__go { position: absolute; right: 16px; bottom: 14px; color: var(--teal); }

.panel-sage { background: #EEF1E8; border-radius: 6px; padding: 22px 24px 14px; }
.panel-sage .card-head { margin-bottom: 8px; }
.panel-sage h2 { font-size: 24px; margin: 0; }
.mini-article { gap: 16px; padding: 14px 0; border-bottom: 1px solid #E1E6D9; align-items: center; }
.mini-article .thumb { width: 105px; height: 80px; border-radius: 3px; background: center / cover no-repeat var(--sage-200); }
.mini-article h4 { font-size: 15px; font-weight: 500; line-height: 1.3; margin: 0 0 8px; }
.mini-article small { font-size: 12.5px; color: var(--muted); }

/* ---- "Your Voice Matters" banner (full-bleed) ---- */
.site-cta { position: relative; overflow: hidden; isolation: isolate; min-height: 294px; }
.site-cta__grid { display: grid; grid-template-columns: 267px 480px 1fr; column-gap: 70px; align-items: center; min-height: 294px; padding-left: 74px; }
.site-cta__art { align-self: end; width: 267px; mix-blend-mode: multiply; }
.site-cta h2 { font-weight: 500; font-size: 35px; margin: 0 0 12px; }
.site-cta p { font-size: 16px; line-height: 1.6; color: #2D3A37; margin: 0 0 22px; }
.site-cta__quote { padding-left: 24px; position: relative; font-size: 30px; line-height: 1.12; }
.site-cta__quote .dash { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0 48px; color: var(--coral); }

/* ---- newsletter strip ---- */
.site-news { background: #FCFAF5; padding: 38px 0; }
.site-news__inner { display: flex; align-items: center; gap: 24px; padding: 0 78px; }
.site-news__icon { color: var(--teal); }
.site-news__icon .i { width: 44px; height: 44px; stroke-width: 1.4; }
.site-news h3 { font-weight: 500; font-size: 21px; margin: 0 0 2px; }
.site-news p { font-size: 14.5px; color: var(--muted); margin: 0; }
.site-news__form { display: flex; gap: 15px; margin-left: auto; }
.site-news__form .input { width: 323px; height: 46px; border-radius: 4px; background: #fff; padding: 0 14px; }
.site-news__form .btn { width: 143px; height: 46px; padding: 0; }

/* ---- community strip ---- */
.site-community { background: linear-gradient(90deg, #E4ECE1, #D9E5D6); position: relative; overflow: hidden; }
.site-community__grid { display: grid; grid-template-columns: 327px 126px 282px 1px 1fr; align-items: center; min-height: 178px; padding-left: 18px; padding-right: 84px; }
.site-community__script { font-size: 28px; line-height: 1.1; }
.site-community__badge { width: 126px; height: 126px; border-radius: 50%; object-fit: cover; mix-blend-mode: multiply; }
.site-community__title { padding-left: 23px; }
.site-community__title b { display: block; font-weight: 500; font-size: 22px; letter-spacing: .26em; color: var(--teal); line-height: 1.25; }
.site-community__title small { display: block; margin-top: 12px; font-size: 12.5px; letter-spacing: .08em; color: var(--teal-600); }
.site-community__rule { width: 1px; height: 96px; background: rgba(31, 77, 69, .25); }
.site-community__text { padding-left: 42px; display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.site-community__text p { margin: 0; font-size: 14.5px; line-height: 1.6; max-width: 260px; align-self: flex-start; color: #2D3A37; }

/* ---- footer ---- */
.site-footer { background: #FCFAF5; padding: 36px 0; }
.site-footer__inner { display: flex; align-items: center; padding: 0 11px; gap: 108px; }
.site-footer .logo-img { height: 62px; }
.site-footer__links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.site-footer__links a { color: var(--text); }
.site-footer .social { margin-left: auto; gap: 20px; }
.site-footer .social .i { width: 20px; height: 20px; }
.site-footer small { font-size: 10px; color: var(--muted); }

@media (max-width: 1100px) {
  .site-hero__grid, .sa-grid, .site-cta__grid { grid-template-columns: 1fr; }
  .site-hero__text { padding-left: 0; }
  .site-hero__media { height: 320px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { display: none; }
  .site-cta__art { display: none; }
  .site-cta__grid { padding: 40px 0; }
  .site-community__grid { grid-template-columns: 1fr; gap: 20px; padding: 36px 24px; justify-items: center; text-align: center; }
  .site-community__rule { display: none; }
  .site-community__text { padding-left: 0; align-items: center; }
  .site-news__inner { flex-direction: column; padding: 0; text-align: center; }
  .site-news__form { margin: 0; flex-direction: column; }
  .site-footer__inner { flex-wrap: wrap; gap: 20px; justify-content: center; }
  .site-footer .social { margin: 0; }
}
@media (max-width: 640px) {
  .video-grid, .story-grid { grid-template-columns: 1fr; }
  .site-hero__text h1 { font-size: 40px; }
  .site-news__form .input, .site-news__form .btn { width: 100%; }
}

/* ---------- 11. FORMS ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s4); }
.label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 14px; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: #9AA39F; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(42, 99, 88, .15); }
.textarea { min-height: 140px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { accent-color: var(--teal); margin-top: 3px; }
.input-group { display: flex; gap: var(--s3); }
.input-group .input { flex: 1; border-radius: var(--r-pill); background: var(--surface); }
.radio-card { border: 1.5px solid var(--border); border-radius: var(--r-md); padding: 12px; background: var(--surface); cursor: pointer; }
.radio-card.is-selected { border-color: var(--teal); background: var(--sage-50); }

/* ---------- 12. FOOTER + UTILITIES ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-block: var(--s6); }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.footer__links { display: flex; gap: var(--s5); font-size: 13px; list-style: none; margin: 0; padding: 0; }
.footer__links a { color: var(--text); }
.social { display: flex; gap: var(--s3); }
.social a { color: var(--teal); }

.stack > * + * { margin-top: var(--s4); }
.row { display: flex; align-items: center; gap: var(--s3); }
.between { justify-content: space-between; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hide-mobile { }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: var(--side-l) minmax(0, 1fr); }
  .app-shell > .rail:last-child { display: none; }
  .nav-links { gap: var(--s4); }
  .search { width: 200px; }
}
@media (max-width: 960px) {
  .nav-links, .search { display: none; }
  .navbar__actions { margin-left: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split-70-30, .cta-banner, .hero-banner { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .app-shell > .rail { display: none; }
  .strip { flex-direction: column; text-align: center; }
  .hero-banner__image { min-height: 200px; }
  .hero-banner__image::before { background: linear-gradient(180deg, var(--bg-soft) 0%, rgba(253,250,243,0) 40%); }
}
@media (max-width: 600px) {
  .section { padding-block: var(--s7); }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .container { padding-inline: var(--s4); }
  .cta-banner { padding: var(--s6) var(--s5); }
  .input-group { flex-direction: column; }
  .post__action span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---- marketing: small additions ---- */
.video-card__thumb .play { top: 57%; }
.story-card__img { position: relative; }
.story-card__img .play { width: 34px; height: 34px; background: rgba(20, 40, 36, .6); border: 1.5px solid rgba(255,255,255,.85); }
.story-card__img .play .i { width: 13px; height: 13px; margin-left: 2px; }

/* ---- marketing: base pieces that the section rewrite needs ---- */
.play { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(31, 77, 69, .85); border: 2px solid rgba(255,255,255,.8); display: grid; place-items: center; color: #fff; transition: transform .2s; text-decoration: none; }
.play:hover { transform: translate(-50%, -50%) scale(1.08); }
.video-card { display: block; color: inherit; text-decoration: none !important; }
.video-card__thumb { position: relative; overflow: hidden; background: center / cover no-repeat var(--sage-200); }
.video-card__thumb .duration { position: absolute; right: 8px; bottom: 8px; z-index: 2; background: rgba(20, 40, 36, .85); color: #fff; font-size: 11px; line-height: 1.4; padding: 2px 7px; border-radius: 5px; }
.video-card:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.yt-link { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 500; color: var(--teal); }
.story-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none !important; }
.story-card__body { display: flex; flex-direction: column; }
.mini-article { display: flex; text-decoration: none !important; color: inherit; }
.mini-article > span:last-child { display: block; }
.mini-article .thumb { display: block; flex: none; }
.mini-article h4 { color: var(--teal); }

/* ---- marketing: refinements after side-by-side check ---- */
.site-header__inner > nav { margin-inline: auto; }
.site-hero__media { box-shadow: 0 6px 18px rgba(31, 77, 69, .10); }
.wash--banner::before { background-position: center; opacity: 1; }
.site-cta__art {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 16%);
  mask-composite: intersect;
}
.site-cta__quote .hand { font-size: 40px; line-height: 1.05; }
.site-community__script { font-size: 34px; }
.site-community__text p { font-size: 14px; max-width: 300px; }
.site-news__inner > div:first-of-type { border-left: 1px solid #E5E0D3; padding-left: 24px; }
.site-footer__links { white-space: nowrap; }
.site-footer__links a { white-space: nowrap; }
.site-footer small { white-space: nowrap; }
.site-footer .social .i { width: 24px; height: 24px; }
.site-footer__inner { gap: 100px; }
.logo-img { mix-blend-mode: normal; }


/* ---- round 3: fixes from side-by-side check ---- */
.i, .yt { max-width: none; }
.logo-img { flex: none; }
.social a, .icon-btn { display: inline-flex; align-items: center; justify-content: center; }

/* header: nav truly centred, bigger CTA, divider after search */
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
.site-header__inner > nav { margin: 0; }
.site-header__actions { justify-self: end; gap: 22px; }
.site-header__actions .icon-btn { width: auto; height: 30px; border-radius: 0; padding-right: 24px; border-right: 1px solid #DDD6C6; background: none; }
.site-header__actions .icon-btn .i { width: 22px; height: 22px; }
.btn-nav { height: 40px; padding: 0 22px; font-size: 13px; gap: 8px; }

/* hero + painted corners */
.site-top {
  background:
    url("assets/wash-sage-bl.svg") -160px 80% / 370px auto no-repeat,
    url("assets/wash-sage-r.svg") calc(100% + 80px) 100% / 260px auto no-repeat,
    radial-gradient(620px 300px at 60% 22%, rgba(246, 217, 200, .55), transparent 72%),
    linear-gradient(#FCF4E7, #FBF6EC);
}
.site-hero__text { padding-top: 30px; }
.hand { font-size: 1em; }
.site-hero__media .hand { font-size: 36px; line-height: 1.02; }

/* videos */
.site-section .section-head { margin-bottom: 12px; }
.video-card__title { font-size: 16.5px; margin: 18px 0 10px; }
.video-card .yt-link { margin-top: 22px; white-space: nowrap; }
.yt-link .yt { flex: none; }

/* articles */
.mini-article .thumb { width: 105px; height: 91px; }

/* voice banner: soft painted look, feathered illustration */
.wash--banner {
  background:
    radial-gradient(560px 210px at 13% 55%, rgba(246, 217, 200, .6), transparent 72%),
    radial-gradient(460px 210px at 93% 28%, rgba(190, 212, 192, .6), transparent 72%),
    linear-gradient(#FBF2E5, #FAF3E7);
}
.wash--banner::before { filter: blur(3px); opacity: .78; }
.site-cta__art {
  -webkit-mask-image: radial-gradient(ellipse 60% 64% at 50% 52%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 64% at 50% 52%, #000 52%, transparent 100%);
  -webkit-mask-composite: source-over; mask-composite: add;
}
.site-cta__quote .hand { font-size: 36px; line-height: 1.12; }
.site-community__script { font-size: 31px; line-height: 1.2; }
.site-community__badge { mix-blend-mode: normal; object-fit: contain; }

/* footer */
.site-footer__inner { gap: 0; }
.site-footer .logo-img { height: 58px; width: auto; flex: none; }
.site-footer__links { margin-left: 100px; }
.site-footer .social { margin-left: auto; margin-right: 26px; }
.site-footer small { font-size: 10px; flex: none; }

/* ---- round 4: proportions from side-by-side check ---- */
.site-hero { padding: 4px 0 22px; }
.site-hero__text h1 { font-size: 52.5px; }
.site-hero__media { height: 395px; }
.site-section { padding: 36px 0 34px; }
.site-section--tint { padding-top: 34px; }
.site-section .section-head { margin-bottom: 10px; }

.panel-sage { padding: 20px 24px 8px; }
.mini-article { padding: 10px 0; }
.mini-article .thumb { height: 87px; }

.site-cta__grid { grid-template-columns: 330px 480px 1fr; column-gap: 24px; padding-left: 70px; }
.site-cta__art { width: 330px; height: auto; }
.site-cta__art {
  -webkit-mask-image: radial-gradient(ellipse 72% 74% at 50% 56%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 74% at 50% 56%, #000 60%, transparent 100%);
}

.site-community__script { font-size: 34px; line-height: 1.12; position: relative; }
.site-community__script span { display: block; white-space: nowrap; }
.site-community__script span:nth-child(2) { margin-left: 30px; }
.site-community__script span:nth-child(3) { margin-left: 40px; }
.site-community__script .dash { position: absolute; right: -10px; bottom: -14px; display: flex; align-items: center; gap: 8px; color: var(--teal); transform: rotate(7deg); }

.site-footer .logo-img { height: 68px; }
.site-footer__links { margin-left: 112px; gap: 28px; font-size: 10.5px; }
.site-footer small { font-size: 9px; }

/* ---- round 5: final polish ---- */
.site-cta__art {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 13%, #000 76%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 16%);
  mask-image: linear-gradient(to right, transparent 0, #000 13%, #000 76%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 16%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.site-community__script { font-size: 28px; }
.site-community__script span:nth-child(2) { margin-left: 26px; }
.site-community__script span:nth-child(3) { margin-left: 34px; }
.site-community__script .dash { right: -34px; bottom: -10px; }
.site-community__script .dash { left: 205px; right: auto; bottom: -6px; }

/* ---- mobile fixes ---- */
html, body { overflow-x: hidden; }
@media (max-width: 1100px) {
  .site-cta__grid { grid-template-columns: minmax(0, 1fr); padding: 44px 0; row-gap: 24px; }
  .site-cta__quote { padding-left: 0; font-size: 26px; }
  .site-cta__quote .hand { font-size: 32px; }
  .site-footer__inner { flex-wrap: wrap; justify-content: center; gap: 18px; text-align: center; }
  .site-footer__links { margin-left: 0; flex-wrap: wrap; justify-content: center; gap: 10px 22px; white-space: normal; }
  .site-footer .social { margin: 0; }
  .site-header__inner { grid-template-columns: 1fr auto; height: 84px; }
  .logo-img { height: 64px; }
  .site-hero__text h1 { font-size: 42px; }
  .site-community__script .dash { display: none; }
}
@media (max-width: 640px) {
  .btn-nav { padding: 0 14px; font-size: 12px; }
  .site-header__actions .icon-btn { display: none; }
}

/* ===== round 6: painted artwork strips + measured layout corrections ===== */
.art { position: absolute; pointer-events: none; background: no-repeat center / 100% 100%; z-index: 0; }
.art--hero-left  { left: 0; top: 0; bottom: 0; width: 107px; background-image: url("assets/img/art-hero-left.jpg");
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%); mask-image: linear-gradient(to right, #000 55%, transparent 100%); }
.art--hero-right { right: 0; top: 0; bottom: 0; width: 79px; background-image: url("assets/img/art-hero-right.jpg");
  -webkit-mask-image: linear-gradient(to left, #000 50%, transparent 100%); mask-image: linear-gradient(to left, #000 50%, transparent 100%); }
.art--community-right { right: 0; top: 0; bottom: 0; width: 79px; background-image: url("assets/img/art-community-right.jpg");
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 100%); mask-image: linear-gradient(to left, #000 45%, transparent 100%); }
.site-top { background: linear-gradient(#FCF4E7, #FBF6EC); }
.site-top::before { display: none; }
.site-header__inner, .site-hero__grid { position: relative; z-index: 1; }

/* painted CTA backdrop */
.site-cta { background: #FBF3E6 url("assets/img/cta-bg.jpg") center / cover no-repeat; min-height: 297px; }
.site-cta::before, .site-cta::after { display: none !important; }
.site-cta__art-space { display: block; width: 330px; }
.site-cta__grid { min-height: 297px; }

/* header */
.site-header__actions { margin-right: -23px; gap: 0; }
.site-header__actions .icon-btn { padding-right: 15px; margin-right: 18px; }
.btn-nav { height: 38px; padding: 0 18px; font-size: 12.5px; }
.site-nav { gap: 33px; padding-left: 20px; }

/* hero: positions measured against the mockup */
.site-hero { padding: 14px 0 36px; }
.site-hero__grid { align-items: start; }
.site-hero__text { padding-top: 28px; }
.site-hero__text h1 { margin-bottom: 6px; }
.site-hero__text p { margin-bottom: 21px; }
.site-hero__media { height: 409px; }
.site-hero__media .hand { left: 38px; top: 46px; font-size: 33px; line-height: 1.05; }
.site-hero__caption { bottom: 25px; }

/* section heights */
#videos.site-section { padding-bottom: 28px; }
.site-section--tint { padding: 13px 0 35px; }
.sa-grid > div:first-child { padding-top: 15px; }
.story-card { min-height: 305px; }
.mini-article { align-items: flex-start; padding: 11px 0; }
.mini-article > span:last-child { padding-top: 8px; }
.mini-article:nth-of-type(1) .thumb { height: 91px; }
.mini-article:nth-of-type(2) .thumb { height: 77px; }
.mini-article:nth-of-type(3) .thumb { height: 80px; }
.site-news { padding: 46px 0; }
.site-footer { padding: 28px 0; }

@media (max-width: 1100px) {
  .site-cta { background-position: 20% center; }
  .site-cta__art-space { display: none; }
  .art--hero-left, .art--hero-right { opacity: .8; }
}
.site-hero__text h1 { line-height: 1.06; }
.site-hero__text .eyebrow { margin-bottom: 14px; }
#videos.site-section { padding-bottom: 24px; }

/* ===== round 7: fine alignment ===== */
.video-card { display: flex; flex-direction: column; }
.video-card .yt-link { margin-top: auto; padding-top: 16px; }
.video-card__meta { margin-bottom: 0; }
.site-section .section-head { margin-bottom: 7px; }

.story-card__by { margin-top: 6px; }
.story-card__go { bottom: 18px; }

.site-cta h2 { margin-bottom: 9px; }
.site-cta p { margin-bottom: 17px; }
.site-cta__quote .hand { font-size: 30px; line-height: 1.12; }
.site-cta__quote .dash { margin: 4px 0 0 58px; }

.site-footer { padding: 15px 0 41px; }

/* ===== round 8 ===== */
#videos.site-section { padding-top: 30px; padding-bottom: 32px; }
.video-card .yt-link { padding-top: 10px; }
.sa-grid > div:first-child { padding-top: 25px; }
.sa-grid .section-head { margin-bottom: 10px; }
.story-card__by { margin-top: -6px; }

/* ===== round 9: measured against mockup coordinates ===== */
#videos.site-section { padding-top: 36px; padding-bottom: 44px; }
.site-section .section-head { margin-bottom: 10px; }
.video-card .yt-link { padding-top: 6px; }
.sa-grid > div:first-child { padding-top: 15px; }
.sa-grid .section-head { margin-bottom: 10px; }
.story-card__by { margin-top: 0; }

/* ===== round 10: column proportions from mockup ===== */
.site-section .section-head { align-items: center; }
.video-card__title { margin-top: 11px; }
.video-card .yt-link { padding-top: 12px; }
.sa-grid { grid-template-columns: 820px 396px; column-gap: 50px; }
.panel-sage .card-head { margin-bottom: 4px; }
@media (max-width: 1100px) { .sa-grid { grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: 24px; } }

/* ===== round 11 ===== */
.panel-sage { padding-bottom: 14px; }
.site-hero__media .hand { font-size: 31px; }
.site-news { padding: 47px 0; }

/* ===== BTS local patch (2026-11-05): CTA readability on narrow screens =====
   Owner-approved fix: under 1100px the painted backdrop illustration sits
   behind the text; a soft cream panel keeps copy legible at 390/768px. */
@media (max-width: 1100px) {
  .site-cta { background-position: 24% center; }
  .site-cta__grid {
    background: linear-gradient(180deg, rgba(253, 250, 243, .96), rgba(253, 250, 243, .88));
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px 28px;
    margin: 36px 0;
    row-gap: 20px;
  }
}

/* ===== BTS local patch: video card as a nested-anchor-safe wrapper =====
   The card must contain a real "Watch on YouTube" link, so the card itself
   becomes a div and the clickable area is this inner anchor. Same visual
   result as the reference (flex column, YouTube link pinned to the bottom). */
.video-card__main {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none !important;
}
