/* ==========================================================================
   West Governor Heights Phase 1 — pilot mock-up
   Design system: "Civic charter" — navy + gold on warm cream paper.
   To re-skin: edit the variables in :root only.
   ========================================================================== */

:root {
  /* Palette sampled from the logo (see README → "Swap the logo and palette") */
  --navy-900: #031530;
  --navy-800: #052143;   /* logo dominant navy */
  --navy-700: #0a2d5c;
  --royal:    #0f3a7d;   /* logo band blue */
  --royal-600:#1a4f9e;
  --sky:      #4a90d9;
  --sky-soft: #dcebfa;
  --gold:     #f9c937;   /* logo bright gold */
  --gold-600: #de9b19;   /* logo rim gold */
  --gold-text:#7a4e00;   /* gold-family text that passes AA on cream/white */
  --cream:    #fff8e1;
  --paper:    #fffdf6;
  --white:    #ffffff;
  --ink:      #0b1b33;
  --ink-soft: #3d4b63;
  --line:     #e6dcc0;
  --ok:       #1d6b3a;
  --ok-bg:    #e4f4e9;
  --warn-bg:  #fff1c2;
  --err:      #a4161a;
  --err-bg:   #fde8e8;

  --font-display: "Gloock", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(5,33,67,.08), 0 2px 8px rgba(5,33,67,.06);
  --shadow: 0 6px 24px rgba(5,33,67,.12);
  --shadow-lg: 0 18px 50px rgba(3,21,48,.28);
  --gutter: 16px;
  --maxw: 1120px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-bottom, 100px) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }
svg.ic { display: inline-block; vertical-align: -4px; flex: none; }
a { color: var(--royal); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; color: var(--navy-800); margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 4.6vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--gold-600); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--navy-900); padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 200; }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(40px, 8vw, 80px); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy-800); color: #e9eefb; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* Placeholders must always be visible */
.ph { background: var(--warn-bg); color: #5a3b00; padding: 0 .3em; border-radius: 4px; border-bottom: 2px dashed var(--gold-600); font-weight: 700; white-space: normal; }
.on-navy .ph, .section--navy .ph { background: rgba(249,201,55,.18); color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- Top demo strip + header ---------- */
.demo-strip { background: var(--navy-900); color: #f4dd8a; font-size: .8125rem; text-align: center; padding: 6px var(--gutter); letter-spacing: .02em; }
.demo-strip strong { color: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy-800); color: var(--white); border-bottom: 3px solid var(--gold-600); box-shadow: 0 4px 18px rgba(3,21,48,.25); }
.site-header .header-bar { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); min-width: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text strong { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; letter-spacing: .01em; white-space: nowrap; }
.brand-text span { font-size: .7rem; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }

.nav-toggle { margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid rgba(249,201,55,.55); background: transparent; color: var(--gold); display: grid; place-items: center; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle:hover { background: rgba(249,201,55,.12); }

.site-nav { position: fixed; inset: var(--hdr-bottom, 100px) 0 0 0; background: var(--navy-900); padding: 20px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility .28s; z-index: 90; }
.site-nav.open { transform: none; visibility: visible; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-nav a { display: flex; align-items: center; gap: 12px; padding: 14px 14px; color: var(--white); text-decoration: none; border-radius: 12px; font-size: 1.1rem; min-height: 52px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(249,201,55,.14); color: var(--gold); }
.site-nav a svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.site-nav .nav-group { margin: 14px 14px 4px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); opacity: .85; }
.site-nav .nav-cta a { background: var(--gold); color: var(--navy-900); font-weight: 700; justify-content: center; margin-top: 10px; }
.site-nav .nav-cta a:hover { background: #ffd95e; color: var(--navy-900); }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; transform: none; visibility: visible; background: transparent; padding: 0; margin-left: auto; overflow: visible; }
  .site-nav ul { display: flex; align-items: center; gap: 2px; }
  .site-nav a { padding: 8px 10px; font-size: .93rem; min-height: 44px; white-space: nowrap; }
  .site-nav a svg, .site-nav .nav-group, .site-nav .nav-extra { display: none; }
  .site-nav .nav-cta a { margin: 0 0 0 8px; padding: 8px 16px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent; font: 700 1.05rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 3px 0 var(--gold-600), 0 8px 18px rgba(222,155,25,.35); }
.btn--gold:hover { background: #ffd95e; color: var(--navy-900); transform: translateY(-2px); }
.btn--gold:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--gold-600); }
.btn--navy { background: var(--navy-800); color: var(--white); box-shadow: 0 3px 0 var(--navy-900); }
.btn--navy:hover { background: var(--royal); color: var(--white); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--royal); border-color: var(--royal); }
.btn--ghost:hover { background: var(--royal); color: var(--white); }
.on-navy .btn--ghost { color: var(--gold); border-color: var(--gold); }
.on-navy .btn--ghost:hover { background: var(--gold); color: var(--navy-900); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }

/* ---------- Ribbon label + laurel divider ---------- */
.ribbon { display: inline-block; background: var(--royal); color: var(--white); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 8px 34px; margin-bottom: 14px; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%); }
.ribbon--gold { background: var(--gold); color: var(--navy-900); }
.laurel { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold-600); margin: 0 auto; max-width: 420px; }
.laurel::before, .laurel::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-600)); }
.laurel::after { transform: scaleX(-1); }
.laurel svg { width: 30px; height: 30px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-800); color: var(--white); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background:
  radial-gradient(circle at 50% 18%, rgba(249,201,55,.38) 0, rgba(249,201,55,.12) 22%, transparent 46%),
  radial-gradient(ellipse at 50% 120%, var(--royal) 0, transparent 60%),
  linear-gradient(180deg, var(--navy-800), var(--navy-900)); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: repeating-radial-gradient(circle at 50% 18%, transparent 0 46px, rgba(249,201,55,.09) 46px 47px); mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero-inner { display: grid; gap: 20px; padding-block: 22px 52px; text-align: center; justify-items: center; }
.hero-seal { width: min(52vw, 210px); aspect-ratio: 1 / 1; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); animation: seal-in .9s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 { color: var(--white); margin: 0; }
.hero h1 em { font-style: normal; color: var(--gold); display: block; font-size: .55em; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; margin-bottom: .5em; }
.hero p.lead { color: #d6e0f5; margin-inline: auto; }
.hero-copy { animation: rise .8s .15s both; }
@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1fr 1.15fr; text-align: left; justify-items: start; align-items: center; padding-block: 56px 80px; gap: 56px; }
  .hero-seal { width: min(100%, 400px); justify-self: center; }
  .hero p.lead { margin-inline: 0; }
}

.page-head { background: var(--navy-800); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 85% -20%, rgba(74,144,217,.35), transparent 55%), linear-gradient(180deg, var(--navy-800), var(--navy-900)); }
.page-head .wrap { padding-block: 34px 40px; }
.page-head h1 { color: var(--white); margin: 0 0 .3em; font-size: clamp(1.8rem, 6vw, 2.8rem); }
.page-head p { color: #d6e0f5; margin: 0; max-width: 60ch; }
.crumbs { font-size: .85rem; margin-bottom: 10px; color: var(--gold); }
.crumbs a { color: var(--gold); }

@keyframes seal-in { from { opacity: 0; transform: scale(.88) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); position: relative; }
.card--link { text-decoration: none; color: inherit; display: block; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-600); color: inherit; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.icon-badge { width: 52px; height: 52px; border-radius: 16px; background: var(--navy-800); color: var(--gold); display: grid; place-items: center; margin-bottom: 14px; box-shadow: inset 0 0 0 2px rgba(249,201,55,.35); }
.icon-badge svg { width: 28px; height: 28px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--sky-soft); color: var(--navy-700); }

/* Big action buttons (home) */
.actions { display: grid; gap: 14px; }
@media (min-width: 760px) { .actions { grid-template-columns: repeat(3, 1fr); } }
.action { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px 20px; min-height: 92px; background: var(--white); color: var(--navy-800); border-radius: var(--radius-lg); text-decoration: none; border: 2px solid var(--gold-600); box-shadow: 0 5px 0 var(--gold-600), 0 14px 30px rgba(3,21,48,.25); transition: transform .15s, box-shadow .15s; }
.action:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--gold-600), 0 18px 34px rgba(3,21,48,.3); color: var(--navy-800); }
.action .icon-badge { margin: 0; }
.action strong { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; line-height: 1.15; display: block; }
.action small { color: var(--ink-soft); font-size: .88rem; display: block; margin-top: 2px; }
.action > svg { width: 22px; height: 22px; color: var(--gold-600); }
.actions-wrap { margin-top: -34px; position: relative; z-index: 2; }

/* Announcements */
.notice { display: grid; gap: 4px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--gold-600); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.notice time, .notice .meta { font-size: .85rem; color: var(--ink-soft); }
.notice h3 { margin: 0; font-size: 1.15rem; }
.notice p { margin: .3em 0 0; }
.notice-list { display: grid; gap: 14px; }

/* Quick links & contact strip */
.quick { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line); color: var(--navy-800); text-decoration: none; font-weight: 700; font-size: .95rem; }
.chip:hover { border-color: var(--gold-600); background: var(--cream); color: var(--navy-800); }
.chip svg { width: 18px; height: 18px; color: var(--gold-600); }
.chip[aria-pressed="true"], .chip.active { background: var(--navy-800); color: var(--gold); border-color: var(--navy-800); }
.contact-strip { display: grid; gap: 18px; }
@media (min-width: 760px) { .contact-strip { grid-template-columns: repeat(4, 1fr); } }
.contact-strip .item { display: flex; gap: 12px; align-items: flex-start; }
.contact-strip svg { width: 26px; height: 26px; color: var(--gold); flex: none; margin-top: 2px; }
.contact-strip b { display: block; color: var(--gold); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }

/* Officers */
.officer { text-align: center; padding-top: 28px; }
.monogram { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, var(--royal-600), var(--navy-800)); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.9rem; box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--gold-600); }
.officer .role { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }

/* Callouts */
.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--warn-bg); border: 1.5px solid var(--gold-600); color: #4a3200; }
.callout svg { width: 24px; height: 24px; flex: none; margin-top: 2px; color: var(--gold-text); }
.callout p { margin: 0; }
.callout--blue { background: var(--sky-soft); border-color: var(--sky); color: var(--navy-800); }
.callout--blue svg { color: var(--royal); }
.callout--err { background: var(--err-bg); border-color: var(--err); color: #5b0b0d; }
.callout + .callout, .callout + form, .callout + .card { margin-top: 14px; }

/* ---------- Forms ---------- */
.form-shell { max-width: 760px; margin-inline: auto; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 4vw, 34px); box-shadow: var(--shadow); border-top: 6px solid var(--gold-600); }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-inline-size: 0; }
fieldset.choices-set { margin: 0; }
legend { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy-800); padding: 0; margin-bottom: 12px; width: 100%; border-bottom: 2px solid var(--cream); padding-bottom: 8px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 620px) { .field-row--2 { grid-template-columns: 1fr 1fr; } .field-row--3 { grid-template-columns: 1fr 1fr 1fr; } }
label, .label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy-800); }
.req { color: var(--err); font-weight: 700; margin-left: 2px; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.hint { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: 5px; }
input[type=text], input[type=tel], input[type=email], input[type=date], input[type=number], input[type=search], input[type=file], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid #b9b19a; border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 130px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--royal); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(15,58,125,.22); background: var(--white); }
input[type=file] { padding: 12px; background: var(--cream); border-style: dashed; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); background: var(--err-bg); }
.error-msg { display: none; color: var(--err); font-weight: 700; font-size: .92rem; margin-top: 6px; }
.field.has-error .error-msg { display: flex; gap: 6px; align-items: flex-start; }
.error-msg::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--err); color: #fff; font-size: .75rem; flex: none; margin-top: 2px; }
.choices { display: grid; gap: 10px; }
@media (min-width: 560px) { .choices--inline { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.choice > span { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 2px solid #b9b19a; border-radius: 12px; background: var(--paper); font-weight: 400; color: var(--ink); }
.choice > span::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--royal); flex: none; background: #fff; transition: all .15s; }
.choice--check > span::before { border-radius: 6px; }
.choice input:checked + span { border-color: var(--royal); background: var(--sky-soft); font-weight: 700; }
.choice input:checked + span::before { background: var(--royal); box-shadow: inset 0 0 0 4px #fff; }
.choice--check input:checked + span::before { background: var(--royal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/16px no-repeat; box-shadow: none; }
.choice input:focus-visible + span { outline: 3px solid var(--gold-600); outline-offset: 2px; }
.field.has-error .choice > span { border-color: var(--err); }
.repeat-item { display: grid; gap: 10px; grid-template-columns: 1fr auto; align-items: end; margin-bottom: 10px; }
.repeat-item .field { margin: 0; }
.btn-remove { min-width: 52px; min-height: 52px; border-radius: 12px; border: 2px solid var(--err); background: #fff; color: var(--err); cursor: pointer; font-weight: 700; }
.btn-remove:hover { background: var(--err-bg); }
.consent { background: var(--cream); border: 1.5px solid var(--gold-600); border-radius: var(--radius); padding: 16px; margin: 6px 0 22px; }
.consent .choice > span { background: transparent; border: 0; padding: 0; align-items: flex-start; min-height: 0; }
.consent .choice > span::before { margin-top: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-error-summary { display: none; margin-bottom: 20px; }
.form-error-summary.show { display: flex; }

/* Success ticket */
.ticket-wrap { max-width: 520px; margin: 0 auto; }
.ticket { position: relative; background: var(--navy-800); color: var(--white); border-radius: 22px; padding: 28px 24px 24px; text-align: center; box-shadow: var(--shadow-lg); border: 2px solid var(--gold-600); animation: rise .6s both; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 54%; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold-600); }
.ticket::before { left: -17px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -17px; clip-path: inset(0 50% 0 0); }
.ticket .check { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--gold); color: var(--navy-900); display: grid; place-items: center; }
.ticket .check svg { width: 34px; height: 34px; }
.ticket h2 { color: var(--white); margin-bottom: .2em; }
.ticket .stub { margin-top: 26px; padding-top: 22px; border-top: 3px dashed rgba(249,201,55,.65); }
.ticket .case-label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.ticket .case-no { font-family: var(--font-display); font-size: clamp(1.6rem, 8vw, 2.3rem); letter-spacing: .06em; color: var(--gold); margin: 4px 0 10px; word-break: break-all; }
.ticket .demo-chip { display: inline-block; background: rgba(249,201,55,.16); border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 3px 14px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.next-steps { margin: 22px auto 0; padding: 0; list-style: none; counter-reset: s; text-align: left; max-width: 520px; display: grid; gap: 10px; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.next-steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--navy-900); font-weight: 700; display: grid; place-items: center; }

/* Track + timeline */
.track-form { display: grid; gap: 12px; }
@media (min-width: 620px) { .track-form { grid-template-columns: 1fr auto; align-items: end; } .track-form .field { margin: 0; } }
.timeline { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 26px 54px; min-height: 58px; }
.timeline li::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 3px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line); background: var(--white); display: grid; place-items: center; color: var(--ink-soft); font-weight: 700; }
.timeline li.done .dot { background: var(--navy-800); border-color: var(--navy-800); color: var(--gold); }
.timeline li.done::before { background: var(--navy-800); }
.timeline li.current .dot { background: var(--gold); border-color: var(--gold-600); color: var(--navy-900); box-shadow: 0 0 0 6px rgba(249,201,55,.3); }
.timeline strong { display: block; color: var(--navy-800); }
.timeline li:not(.done):not(.current) strong { color: var(--ink-soft); }
.status-pill { display: inline-block; padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; background: var(--sky-soft); color: var(--navy-800); }
.status-pill.ok { background: var(--ok-bg); color: var(--ok); }
.status-pill.warn { background: var(--warn-bg); color: #6b4700; }
.status-pill.bad { background: var(--err-bg); color: var(--err); }

/* Accordion */
.accordion { display: grid; gap: 12px; }
.acc-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; padding: 16px 18px; min-height: 60px; background: transparent; border: 0; font: 700 1.08rem/1.35 var(--font-body); color: var(--navy-800); cursor: pointer; }
.acc-btn:hover { background: var(--cream); }
.acc-btn svg { width: 22px; height: 22px; flex: none; color: var(--gold-600); transition: transform .25s; }
.acc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc-panel { padding: 0 18px 18px; }
.acc-panel[hidden] { display: none; }

/* Library */
.toolbar { display: grid; gap: 14px; margin-bottom: 22px; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--ink-soft); pointer-events: none; }
.search-box input { padding-left: 46px; }
.doc-list { display: grid; gap: 12px; }
.doc { display: grid; gap: 10px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
@media (min-width: 700px) { .doc { grid-template-columns: 1fr auto; align-items: center; } }
.doc h3 { margin: 0 0 4px; font-size: 1.1rem; }
.doc .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: var(--ink-soft); align-items: center; }
.empty { text-align: center; padding: 34px 18px; background: var(--cream); border: 2px dashed var(--gold-600); border-radius: var(--radius); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.checklist li::before { content: ""; width: 26px; height: 26px; border: 2.5px solid var(--royal); border-radius: 7px; margin-top: 1px; background: #fff; }

/* ---------- Dashboard ---------- */
.demo-ribbon { position: sticky; top: var(--hdr-bottom, 100px); z-index: 80; background: repeating-linear-gradient(-45deg, var(--gold) 0 18px, #ffd95e 18px 36px); color: var(--navy-900); text-align: center; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; padding: 9px var(--gutter); border-bottom: 2px solid var(--gold-600); }
.dash-bar { display: grid; gap: 12px; padding-block: 20px; }
@media (min-width: 700px) { .dash-bar { grid-template-columns: 1fr auto; align-items: end; } }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 26px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); border-top: 5px solid var(--navy-800); }
.kpi:nth-child(2) { border-top-color: var(--gold-600); }
.kpi:nth-child(3) { border-top-color: var(--sky); }
.kpi:nth-child(4) { border-top-color: var(--royal-600); }
.kpi .num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--navy-800); }
.kpi .lbl { font-size: .85rem; color: var(--ink-soft); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(14px, 3vw, 24px); box-shadow: var(--shadow-sm); margin-bottom: 26px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; font-size: 1.4rem; }
.filters { display: grid; gap: 10px; margin-bottom: 14px; }
@media (min-width: 700px) { .filters { grid-template-columns: 2fr repeat(3, 1fr); } }
.filters select, .filters input { min-height: 46px; padding: 8px 12px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
th { text-align: left; background: var(--navy-800); color: var(--gold); font-weight: 700; padding: 11px 14px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
tbody tr:nth-child(even) { background: var(--paper); }
tbody tr:hover { background: var(--cream); }
.row-actions { display: flex; gap: 6px; flex-wrap: nowrap; }
.mini { min-height: 36px; padding: 4px 12px; border-radius: 8px; font: 700 .82rem var(--font-body); cursor: pointer; border: 2px solid; }
.mini--ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.mini--ok:hover { background: var(--ok); color: #fff; }
.mini--no { background: var(--err-bg); color: var(--err); border-color: var(--err); }
.mini--no:hover { background: var(--err); color: #fff; }
.mini[disabled] { opacity: .4; cursor: not-allowed; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; margin-bottom: 8px; }
.chart-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font-body); fill: var(--ink-soft); font-size: 12px; }
.chart .val { fill: var(--navy-800); font-weight: 700; font-size: 11px; }
.perm-note { font-size: .9rem; color: var(--ink-soft); margin: 0 0 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c9d5ee; padding-top: 48px; border-top: 4px solid var(--gold-600); }
.footer-grid { display: grid; gap: 30px; padding-bottom: 34px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand img { width: 96px; height: 96px; margin-bottom: 12px; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.site-footer a { color: #e5ecfb; text-decoration: none; display: inline-block; padding: 6px 0; min-height: 36px; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(249,201,55,.25); padding-block: 18px 26px; font-size: .88rem; display: grid; gap: 6px; color: #a9b8d8; }
.footer-bottom strong { color: var(--gold); }

@media print { .site-header, .site-footer, .demo-strip, .nav-toggle { display: none; } }

::placeholder { color: #66707f; opacity: 1; }
