/* =========================================================================
   Commuter Shuttle Co. — employee-benefits HANDBOOK / commuter-program brochure
   LIGHT · teal + warm sand + ink · Bricolage Grotesque + Public Sans
   Layout = tabbed handbook (binder tabs) · color-coded route-tier plan cards
   ========================================================================= */

:root {
  /* Surfaces — warm sand field + paper handbook page */
  --sand:   #f1e7d2;   /* desk / field behind the handbook */
  --sand-2: #e8dcc1;
  --paper:  #fcf8ef;   /* handbook page + cards */
  --paper-2:#f7efdf;
  --line:   #e2d6bd;   /* hairline rules on paper */
  --line-2: #d3c4a4;

  /* Ink */
  --ink:    #21302e;   /* deep teal-charcoal text */
  --ink-2:  #46514e;
  --muted:  #6c7672;

  /* Brand teal */
  --teal:   #0e7c7b;
  --teal-d: #0a5d5c;
  --teal-l: #15a59c;
  --mint:   #d8efeb;   /* teal tint fill */
  --mint-2: #e9f6f3;

  /* Route-tier plan accents (color-coded like benefit plans) */
  --t1: #0e7c7b;   /* Local Loop  — teal   */
  --t2: #d9822b;   /* Corridor    — marigold */
  --t3: #c8584a;   /* Express     — coral   */
  --t4: #5a64b0;   /* Regional    — indigo  */
  --t5: #4e8b54;   /* Park & Ride — green   */

  --warn:   #b86a1f;   /* "tight" advisories */

  --radius:   16px;
  --radius-s: 10px;
  --radius-l: 22px;
  --shadow:  0 1px 0 #fff inset, 0 14px 34px -22px rgba(33,48,46,.42);
  --shadow-s: 0 8px 22px -18px rgba(33,48,46,.5);

  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --disp: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;

  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background:
    radial-gradient(1200px 520px at 80% -120px, #f7eedb 0%, transparent 70%),
    var(--sand);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--disp);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.012em;
  color: var(--ink);
  margin: 0 0 .5em;
}

a { color: var(--teal-d); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 1em; }
img, svg { max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 0; background: var(--teal); color: #fff;
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 200;
}
.skip:focus { left: 0; }

/* ============================ COVER MASTHEAD ============================= */
.cover {
  background: linear-gradient(180deg, var(--teal-d), var(--teal));
  color: #eafaf7;
  position: relative;
  overflow: hidden;
}
.cover::after {
  /* faint route-dot pattern */
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: radial-gradient(currentColor 1.4px, transparent 1.6px);
  background-size: 26px 26px; color: #bfeee6;
}
.cover-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 16px 22px;
  display: flex; align-items: center; gap: 16px; position: relative; z-index: 1;
}
.cover-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; }
.cover-brand:hover { text-decoration: none; }
.cover-mark {
  width: 46px; height: 46px; flex: none;
  background: #fcf8ef; border-radius: 13px;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.45);
}
.cover-name {
  font-family: var(--disp); font-weight: 800; font-size: 1.34rem;
  letter-spacing: -.02em; line-height: 1; color: #fff;
}
.cover-sub {
  font-size: .76rem; letter-spacing: .04em; text-transform: uppercase;
  color: #b8ece4; margin-top: 4px; font-weight: 600;
}
.cover-spacer { flex: 1; }
.cover-call {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fcf8ef; color: var(--teal-d);
  font-family: var(--disp); font-weight: 700; font-size: .98rem;
  padding: 10px 17px; border-radius: 999px;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.55);
  white-space: nowrap;
}
.cover-call:hover { text-decoration: none; transform: translateY(-1px); }
.cover-call .pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--t3);
  box-shadow: 0 0 0 0 rgba(200,88,74,.55); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200,88,74,.5); }
  70% { box-shadow: 0 0 0 9px rgba(200,88,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,88,74,0); }
}

/* ============================ BINDER TABS NAV =========================== */
.tabsbar {
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal) 52%, transparent 52%);
  position: sticky; top: 0; z-index: 90;
}
.tabsbar.stuck { box-shadow: 0 10px 24px -18px rgba(33,48,46,.6); }
.tabs {
  max-width: var(--wrap); margin: 0 auto; padding: 0 16px;
  display: flex; align-items: flex-end; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; position: relative;
  display: flex; flex-direction: column; gap: 1px;
  padding: 9px 16px 11px;
  background: var(--paper-2);
  color: var(--ink-2);
  border: 1px solid var(--line-2); border-bottom: none;
  border-radius: 12px 12px 0 0;
  font-weight: 600; font-size: .9rem; text-decoration: none;
  /* Inactive tabs stay tucked down; only the current section's tab rises. */
  transform: translateY(6px); transition: transform .14s, background .14s;
}
.tab:hover { background: var(--paper); text-decoration: none; }
.tab .tab-ch {
  font-family: var(--disp); font-size: .62rem; letter-spacing: .14em;
  color: var(--teal); font-weight: 700;
}
.tab[aria-current="page"] {
  background: var(--paper); color: var(--ink); transform: translateY(0);
  border-color: var(--line-2);
  box-shadow: 0 -3px 0 var(--teal-d) inset;
}
.tab.flag .tab-ch { color: var(--t2); }
/* Flag star is absolutely placed so it never changes the tab's height
   (otherwise the taller tab grows upward and looks permanently "raised"). */
.tab.flag::after {
  content: "★"; color: var(--t2); font-size: .64rem;
  position: absolute; top: 8px; right: 9px; line-height: 1;
}

.menu-toggle { display: none; }

/* ============================ HANDBOOK PAGE ============================== */
.handbook {
  max-width: var(--wrap); margin: 0 auto 40px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.main { padding: 30px clamp(20px, 4vw, 48px) 44px; }

.page-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--disp); font-weight: 700; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-d);
  background: var(--mint); border-radius: 999px; padding: 5px 13px;
  margin-bottom: 14px;
}
.page-eyebrow .chip {
  font-size: .66rem; color: var(--muted); letter-spacing: .1em;
}

.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--teal-d); }

/* ---- Hero (program cover) ---- */
.hero { margin-bottom: 30px; }
.hero-title {
  font-size: clamp(2.05rem, 5.4vw, 3.35rem); margin-bottom: .32em;
}
.hero-title .hl { color: var(--teal); }
.hero-lede {
  font-size: clamp(1.06rem, 2vw, 1.24rem); color: var(--ink-2);
  max-width: 60ch; line-height: 1.56;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ============================ BUTTONS =================================== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--disp); font-weight: 700; font-size: 1rem;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .14s, box-shadow .14s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-solid { background: var(--teal); color: #fff; box-shadow: var(--shadow-s); }
.btn-solid:hover { background: var(--teal-d); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--teal-d); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--teal); }
.btn-coral { background: var(--t3); color: #fff; }
.btn-coral:hover { background: #b14a3d; color: #fff; }
.btn-sm { padding: 8px 15px; font-size: .9rem; }

/* ============================ CARDS ==================================== */
.cards { display: grid; gap: 18px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-s);
}
.card-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--mint);
  display: grid; place-items: center; margin-bottom: 13px; color: var(--teal-d);
}
.card h3 { font-size: 1.16rem; margin-bottom: .35em; }
.card p { color: var(--ink-2); font-size: .96rem; margin-bottom: 0; }

/* soft tinted callout */
.note {
  background: var(--mint-2); border: 1px solid var(--mint);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-s); padding: 16px 18px; margin: 22px 0;
  font-size: .96rem; color: var(--ink-2);
}
.note strong { color: var(--ink); }

/* ============================ ROUTE-TIER PLAN CARDS ===================== */
.tiers { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.tier {
  --tier: var(--teal);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 0; overflow: hidden;
  box-shadow: var(--shadow-s); display: flex; flex-direction: column;
}
.tier--t1 { --tier: var(--t1); }
.tier--t2 { --tier: var(--t2); }
.tier--t3 { --tier: var(--t3); }
.tier--t4 { --tier: var(--t4); }
.tier--t5 { --tier: var(--t5); }
.tier-head {
  background: var(--tier); color: #fff; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tier-badge {
  font-family: var(--disp); font-weight: 800; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.22); padding: 4px 11px; border-radius: 999px;
}
.tier-head h3 { color: #fff; margin: 0; font-size: 1.24rem; }
.tier-body { padding: 18px 20px 22px; flex: 1; }
.tier-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 12px;
  font-size: .82rem; color: var(--muted);
}
.tier-meta b { color: var(--ink); font-family: var(--disp); }
.tier ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: .95rem; }
.tier ul li { margin-bottom: 5px; }
.tier ul li::marker { color: var(--tier); }

/* ============================ ROUTE-LINE STRIP ========================= */
.routeline {
  --rl: var(--teal);
  display: flex; align-items: center; gap: 0;
  padding: 14px 4px; margin: 6px 0; overflow-x: auto; scrollbar-width: none;
}
.routeline::-webkit-scrollbar { display: none; }
.rl-stop { display: flex; flex-direction: column; align-items: center; flex: none; min-width: 84px; }
.rl-dot {
  width: 15px; height: 15px; border-radius: 50%; background: var(--paper);
  border: 3px solid var(--rl); position: relative; z-index: 1;
}
.rl-stop:first-child .rl-dot, .rl-stop:last-child .rl-dot { background: var(--rl); }
.rl-seg { height: 4px; flex: 1; min-width: 26px; background: var(--rl); opacity: .5; align-self: flex-start; margin-top: 6px; }
.rl-lab { font-size: .72rem; color: var(--muted); margin-top: 7px; text-align: center; line-height: 1.2; }
.rl-time { font-family: var(--disp); font-weight: 700; font-size: .78rem; color: var(--ink); margin-top: 2px; }
.rl-bus {
  width: 26px; height: 26px; border-radius: 7px; background: var(--rl); color: #fff;
  display: grid; place-items: center; flex: none; margin: 0 2px;
}

/* ============================ SECTIONS ================================= */
.section { margin: 40px 0; }
.section-eyebrow {
  font-family: var(--disp); font-weight: 700; font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-d);
  margin-bottom: 8px;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2.05rem); margin-bottom: .5em; }
.section > p { color: var(--ink-2); max-width: 64ch; }

.divider {
  height: 1px; background: var(--line); border: 0; margin: 36px 0;
}

/* definition list (handbook spec rows) */
.deflist { display: grid; gap: 0; margin: 8px 0; border-top: 1px solid var(--line); }
.deflist .row {
  display: grid; grid-template-columns: 190px 1fr; gap: 16px;
  padding: 14px 2px; border-bottom: 1px solid var(--line);
}
.deflist dt { font-family: var(--disp); font-weight: 700; color: var(--ink); margin: 0; }
.deflist dd { margin: 0; color: var(--ink-2); }

/* numbered handbook steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: s; position: relative; padding: 16px 18px 16px 62px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-s);
}
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 16px;
  width: 32px; height: 32px; border-radius: 9px; background: var(--teal); color: #fff;
  font-family: var(--disp); font-weight: 800; display: grid; place-items: center; font-size: 1rem;
}
.steps li b { font-family: var(--disp); }

/* ============================ LANYARD ID-BADGE CTA ===================== */
.lanyard {
  max-width: 420px; margin: 34px auto; position: relative;
  padding-top: 46px; display: flex; flex-direction: column; align-items: center;
}
.lanyard-strap {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 150px; height: 54px; z-index: 0;
}
.badge {
  width: 100%; background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: 0 22px 40px -26px rgba(33,48,46,.6);
  overflow: hidden; position: relative; z-index: 1;
}
.badge-hole {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 9px; border-radius: 999px; background: #cdbf9f;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.3); z-index: 2;
}
.badge-head {
  background: var(--teal); color: #fff; padding: 24px 20px 14px;
  display: flex; align-items: center; gap: 13px;
}
.badge-photo {
  width: 54px; height: 54px; border-radius: 12px; background: #fcf8ef;
  display: grid; place-items: center; flex: none; color: var(--teal-d);
}
.badge-head .bh-label {
  font-family: var(--disp); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: #bdeee6; font-weight: 700;
}
.badge-head .bh-name { font-family: var(--disp); font-weight: 800; font-size: 1.18rem; line-height: 1.05; }
.badge-body { padding: 16px 20px 20px; }
.badge-row { display: flex; justify-content: space-between; font-size: .82rem; padding: 6px 0; border-bottom: 1px dotted var(--line-2); }
.badge-row:last-of-type { border-bottom: none; }
.badge-row .k { color: var(--muted); letter-spacing: .03em; }
.badge-row .v { font-family: var(--disp); font-weight: 700; color: var(--ink); }
.badge-id {
  margin-top: 14px; text-align: center;
  font-family: var(--disp); font-weight: 800; font-size: 1.5rem; color: var(--teal-d);
  letter-spacing: -.01em;
}
.badge-call {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 14px; width: 100%;
  background: var(--t3); color: #fff;
  font-family: var(--disp); font-weight: 700; font-size: 1.05rem;
  padding: 13px; border-radius: 12px;
}
.badge-call:hover { background: #b14a3d; color: #fff; text-decoration: none; }
.badge-foot { text-align: center; font-size: .76rem; color: var(--muted); margin-top: 10px; }
.badge-stamp {
  position: absolute; top: 70px; right: 12px; z-index: 3;
  font-family: var(--disp); font-weight: 800; font-size: .68rem; letter-spacing: .08em;
  color: var(--t5); border: 2px solid var(--t5); border-radius: 6px;
  padding: 3px 8px; transform: rotate(7deg); opacity: .85;
}

/* ============================ PLANNER ================================== */
.planner { display: grid; grid-template-columns: minmax(0,0.92fr) minmax(0,1.08fr); gap: 20px; margin: 8px 0 6px; }
.panel {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.panel h2 { font-size: 1.2rem; margin-bottom: .3em; }
.hint { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select {
  font: inherit; font-size: .95rem; padding: 9px 11px;
  border: 1px solid var(--line-2); border-radius: 9px; background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--teal-l); outline-offset: 1px; border-color: var(--teal); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.stop-row {
  display: grid; grid-template-columns: 26px 1fr 78px 30px; gap: 8px; align-items: center;
  margin-bottom: 8px;
}
.stop-ix {
  width: 26px; height: 26px; border-radius: 8px; background: var(--teal); color: #fff;
  font-family: var(--disp); font-weight: 700; font-size: .82rem; display: grid; place-items: center;
}
.stop-loc { font: inherit; font-size: .9rem; padding: 8px 9px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); color: var(--ink); min-width: 0; }
.stop-head { font: inherit; font-size: .9rem; padding: 8px 9px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); color: var(--ink); text-align: center; }
.stop-del { width: 30px; height: 30px; border: 1px solid var(--line-2); background: var(--paper); border-radius: 8px; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.stop-del:hover { color: var(--t3); border-color: var(--t3); }
.stop-head-labels { display: grid; grid-template-columns: 26px 1fr 78px 30px; gap: 8px; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; padding: 0 2px; }

.row-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mini-btn {
  font: inherit; font-size: .85rem; font-weight: 600; padding: 8px 13px;
  border: 1px solid var(--line-2); background: var(--paper); color: var(--teal-d);
  border-radius: 999px; cursor: pointer;
}
.mini-btn:hover { border-color: var(--teal); background: var(--mint-2); }

/* planner output */
.plan-empty { color: var(--muted); font-size: .92rem; padding: 14px 0; }
.plan-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 16px; }
.plan-stat { background: var(--paper); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; }
.plan-stat .k { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.plan-stat .v { font-family: var(--disp); font-weight: 800; font-size: 1.42rem; color: var(--teal-d); line-height: 1.1; }

.route-card {
  --tier: var(--teal);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin-bottom: 14px; background: var(--paper);
}
.route-card.rc--t1 { --tier: var(--t1); }
.route-card.rc--t2 { --tier: var(--t2); }
.route-card.rc--t3 { --tier: var(--t3); }
.route-card.rc--t4 { --tier: var(--t4); }
.route-card.rc--t5 { --tier: var(--t5); }
.rc-head {
  background: var(--tier); color: #fff; padding: 11px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.rc-head .rc-name { font-family: var(--disp); font-weight: 800; font-size: 1.04rem; }
.rc-head .rc-tag { font-size: .78rem; opacity: .92; }
.rc-body { padding: 6px 16px 16px; }
.rc-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rc-table th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 6px 6px; border-bottom: 1px solid var(--line); font-weight: 600; }
.rc-table td { padding: 8px 6px; border-bottom: 1px dotted var(--line-2); vertical-align: top; }
.rc-table tr:last-child td { border-bottom: none; }
.rc-time { font-family: var(--disp); font-weight: 700; color: var(--teal-d); white-space: nowrap; }
.rc-arrive td { background: var(--mint-2); }
.rc-arrive .rc-time { color: var(--ink); }
.rc-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--muted); padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.rc-foot b { color: var(--ink); font-family: var(--disp); }
.util { display: inline-block; width: 92px; height: 7px; border-radius: 4px; background: var(--line); position: relative; vertical-align: middle; }
.util > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--tier); }

.tag-pill { display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; letter-spacing: .03em; }
.tag-pill.ok { background: var(--mint); color: var(--teal-d); }
.tag-pill.tight { background: #f6e6cf; color: var(--warn); }

.plan-note { font-size: .82rem; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.agenda-box { margin-top: 14px; }
.agenda-box textarea { width: 100%; min-height: 150px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8rem; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper-2); color: var(--ink); resize: vertical; }

/* ============================ EMBED BOX =============================== */
.embed-box { background: var(--mint-2); border: 1px solid var(--mint); border-radius: var(--radius); padding: 22px; margin: 30px 0; }
.embed-box h2 { font-size: 1.24rem; }
.embed-box textarea { width: 100%; min-height: 96px; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); color: var(--ink); resize: vertical; }
.copy-btn { margin-top: 10px; }

/* ============================ FAQ ==================================== */
.faq { margin: 34px 0; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--paper); margin-bottom: 10px; padding: 0 18px;
}
.faq summary {
  font-family: var(--disp); font-weight: 700; font-size: 1.02rem; color: var(--ink);
  padding: 15px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq p { color: var(--ink-2); font-size: .95rem; padding: 12px 0 16px; margin: 0; }

/* ============================ JOURNAL ================================= */
.journal-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 22px; }
.jcard {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-s); border-top: 4px solid var(--teal);
}
.jcard.is-rank { border-top-color: var(--t2); }
.jcard .jkick { font-family: var(--disp); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-d); margin-bottom: 8px; }
.jcard.is-rank .jkick { color: var(--t2); }
.jcard h3 { font-size: 1.18rem; margin-bottom: .4em; }
.jcard h3 a { color: var(--ink); }
.jcard p { font-size: .94rem; color: var(--ink-2); flex: 1; }
.jcard .jmeta { font-size: .78rem; color: var(--muted); margin-top: 8px; }

/* article */
.piece { max-width: 720px; }
.piece-head { margin-bottom: 24px; }
.piece-kicker { font-family: var(--disp); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-d); }
.piece-kicker--rank { color: var(--t2); }
.piece-title { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: .15em 0 .3em; }
.piece-dek { font-size: 1.12rem; color: var(--ink-2); }
.piece-meta { font-size: .78rem; color: var(--muted); letter-spacing: .04em; margin-top: 10px; }
.piece-body { font-size: 1.05rem; }
.piece-body h2 { font-size: 1.5rem; margin: 1.4em 0 .5em; }
.piece-body h3 { font-size: 1.2rem; margin: 1.3em 0 .4em; }
.piece-body ul, .piece-body ol { padding-left: 1.3em; }
.piece-body li { margin-bottom: 7px; }
.piece-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.piece-body th { text-align: left; background: var(--mint-2); padding: 9px 11px; border: 1px solid var(--line); font-family: var(--disp); }
.piece-body td { padding: 9px 11px; border: 1px solid var(--line); }
.piece-body blockquote { border-left: 4px solid var(--teal); background: var(--mint-2); margin: 1.2em 0; padding: 4px 18px; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.rank-no {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--t2); color: #fff; font-family: var(--disp); font-weight: 800; font-size: 1rem;
  vertical-align: middle; margin-right: 6px;
}
.piece-body h3 .rank-no { background: var(--teal); }
.piece-body h3:first-child .rank-no, .rank-1 { background: var(--t2) !important; }

.piece-standards { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 30px 0; font-size: .9rem; color: var(--ink-2); }
.piece-standards .eyebrow { font-family: var(--disp); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-d); margin-bottom: 6px; }
.piece-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 30px; }

/* ============================ FOOTER ================================= */
.footer { background: linear-gradient(180deg, var(--teal-d), #084a49); color: #cfeae5; margin-top: 50px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 40px 22px 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; }
.footer-name { font-family: var(--disp); font-weight: 800; font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.footer-blurb { font-size: .92rem; color: #aedcd5; max-width: 44ch; }
.footer-phone { display: inline-block; margin-top: 10px; font-family: var(--disp); font-weight: 700; font-size: 1.2rem; color: #fff; }
.footer-phone:hover { color: #fff; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.footer-nav a { color: #bfe4de; font-size: .9rem; }
.footer-nav a:hover { color: #fff; }
.footer-base { border-top: 1px solid rgba(255,255,255,.14); margin-top: 28px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .78rem; color: #8fc4bd; }

/* ============================ EMBED PAGE ============================= */
body.embed { background: transparent; }
.embed-wrap { padding: 12px; }
.embed-credit { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ============================ REVEAL ANIM =========================== */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
  .cover-call .pulse { animation: none; }
}

/* ============================ RESPONSIVE =========================== */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .cards.c3, .cards.c4 { grid-template-columns: repeat(2,1fr); }
  .tiers { grid-template-columns: 1fr; }
  .planner { grid-template-columns: 1fr; }
  .plan-summary { grid-template-columns: repeat(2,1fr); }
  .journal-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .deflist .row { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 680px) {
  .cc-long { display: none; }
  .cover-call { font-size: .9rem; padding: 9px 14px; }
}
@media (max-width: 560px) {
  .cards.c2, .cards.c3, .cards.c4 { grid-template-columns: 1fr; }
  .cover-sub { display: none; }
  .cover-inner { padding: 12px 16px; gap: 10px; }
  .cover-name { font-size: 1.15rem; }
  .main { padding: 22px 18px 34px; }
  /* tabs become a horizontal scroller already; make them a touch tighter */
  .tab { padding: 8px 13px 10px; font-size: .85rem; }
  .plan-summary { grid-template-columns: repeat(2,1fr); }
}
