@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Jost:wght@400;500;600;700&display=swap');
:root {
  --ink: #1d1f24;
  --muted: #5d6470;
  --bg: #F4EFE9;
  --card: #ffffff;
  --line: #dfe2dc;
  --brand: #2F3A32;
  --brand-ink: #ffffff;
  --brand-soft: #E3F3EA;
  --yellow: #FDBA90;
  --navy: #2F3A32;
  --ok: #2e7d4f; --ok-soft: #e5f4e9;
  --warn: #9a5b00; --warn-soft: #fbf0dc;
  --err: #a33a3a; --err-soft: #fbe9e9;
  --info: #2c5d8f; --info-soft: #e7f0fa;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
h1 { font-size: 1.7rem; line-height: 1.2; margin: .2em 0 .5em; }
h2 { font-size: 1.15rem; margin: 0 0 .6em; }
h3 { font-size: 1rem; margin: 0; }
small { font-size: .85em; }
.muted { color: var(--muted); }
.ok-text { color: var(--ok); font-weight: 600; }
.warn-text { color: var(--warn); }
.danger-text { color: var(--err); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--muted); margin: 0; }

.top { border-top: 5px solid var(--brand); box-shadow: 0 3px 0 var(--yellow); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .8rem 1.2rem; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.brand img { display: block; }
.top nav { display: flex; gap: 1rem; align-items: center; }
main { max-width: 980px; margin: 0 auto; padding: 1.4rem 1rem 3rem; }
.narrow { max-width: 620px; margin: 0 auto; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 1.5rem 1rem 2rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 0 0 1rem; }
.stack > * + * { margin-top: .8rem; }
.grid2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.row { display: flex; gap: .6rem; align-items: flex-end; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 240px; }
.inline { display: inline; }
.hero { padding: .5rem 0 1rem; display: flex; gap: 1.2rem; align-items: flex-start; }
.hero-logo { flex: none; margin-top: .4rem; }
.hero p { font-size: 1.05rem; max-width: 46em; }
.steps { padding-left: 1.2rem; margin: 0; }

label { display: block; font-weight: 600; font-size: .95rem; }
label small { font-weight: 400; color: var(--muted); display: block; }
input, select, textarea { display: block; width: 100%; margin-top: .3rem; font: inherit; font-weight: 400; padding: .6rem .7rem; border: 1px solid #cfc9bc; border-radius: 8px; background: #fff; color: var(--ink); }
input[type=checkbox], input[type=radio] { width: auto; display: inline; margin: 0 .5rem 0 0; accent-color: var(--brand); transform: scale(1.15); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #8fb9bd; outline-offset: 2px; }
.row label { flex: 1 1 180px; }
label.check { font-weight: 400; display: flex; align-items: flex-start; gap: .2rem; }
label.check input { margin-top: .3rem; }
fieldset { border: 1px solid var(--line); }
legend { font-weight: 700; padding: 0 .3rem; }
.option { display: flex; gap: .4rem; align-items: flex-start; font-weight: 400; padding: .7rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.option.disabled { opacity: .55; cursor: not-allowed; }
.option input { margin-top: .35rem; }

.btn { display: inline-block; border: 0; border-radius: 999px; padding: .65rem 1.3rem; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: .45rem .95rem; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-danger { background: var(--err); }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; }

.flash { border-radius: 10px; padding: .75rem 1rem; margin: 0 0 1rem; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }
.flash-err { background: var(--err-soft); color: var(--err); }

.chip { display: inline-block; border-radius: 999px; padding: .15rem .65rem; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.chip-missing { background: #eeeae2; color: var(--muted); }
.chip-submitted { background: var(--info-soft); color: var(--info); }
.chip-approved { background: var(--ok-soft); color: var(--ok); }
.chip-changes { background: var(--warn-soft); color: var(--warn); }

.summary { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .summary { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.meter-bar { height: 12px; background: #ebe6dc; border-radius: 999px; overflow: hidden; }
.meter-bar.small { height: 8px; max-width: 220px; margin: .3rem 0; }
.meter-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--navy)); border-radius: 999px; }
.meter p { margin: .5rem 0 0; }

.group > h2 { margin: 1.6rem 0 .6rem; color: var(--navy); padding-left: .6rem; border-left: 4px solid var(--yellow); }
.hours-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.hours-stats div { background: #f5f7f4; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .75rem; min-width: 110px; }
.hours-stats strong { display: block; font-size: 1.15rem; color: var(--navy); }
.hours-stats small { color: var(--muted); }
.item-head { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; margin-bottom: .4rem; }
.item p { margin: .4rem 0; }
.item details { margin-top: .5rem; }
.item summary { cursor: pointer; color: var(--brand); font-weight: 600; margin-bottom: .5rem; }
.filemeta { font-size: .92rem; }
.terms { margin: .4rem 0 .8rem; padding-left: 1.2rem; }
.terms li + li { margin-top: .3rem; }
.signed .sig, .sig { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.35rem; color: var(--brand); }
.hours-form { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; margin: .6rem 0; }
.actions { display: flex; flex-direction: column; gap: .6rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed var(--line); }
.actions:empty { display: none; }
blockquote { margin: .4rem 0; padding: .6rem .8rem; background: #faf8f3; border-left: 3px solid var(--line); }

.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table.compact th, .table.compact td { padding: .35rem .4rem; }
.card:has(> .table) { overflow-x: auto; }

.tabs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 1rem; }
.tabs a { text-decoration: none; padding: .4rem .9rem; border-radius: 999px; color: var(--ink); background: #ebe6dc; font-size: .92rem; }
.tabs a.active { background: var(--navy); color: #fff; }
.tabs .search { display: flex; gap: .4rem; margin-left: auto; align-items: center; }
.tabs .search input { margin: 0; width: 220px; padding: .45rem .7rem; }

.certlist { list-style: none; padding: 0; margin: 0 0 1rem; }
.certlist li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.warnbox { border-color: #ecd3a6; background: #fffaf0; }
.readybox { border-color: #9cc9ab; background: #f4fbf6; }

.verify.good { border-color: #9cc9ab; background: #f4fbf6; }
.verify.bad { border-color: #e2b4b4; background: #fff7f7; }
.verify dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: .5rem 0; }
.verify dt { color: var(--muted); }
.verify dd { margin: 0; font-weight: 600; }

@media (max-width: 560px) {
  h1 { font-size: 1.45rem; }
  .tabs .search { margin-left: 0; width: 100%; }
  .tabs .search input { flex: 1; width: auto; }
}
.quizbox { background: #fffbe6; border: 1px solid #f3df8a; border-radius: 10px; padding: .7rem .9rem; }
.quizbox .btn { margin-top: .5rem; }

/* ---- landing & scope chart ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero h1 { font-size: 2rem; letter-spacing: -.01em; margin-bottom: .3rem; }
.hero-sub { font-size: 1.1rem; color: var(--muted); margin: 0; max-width: 34em; }
.req-line { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0; }
.req-line span { background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .85rem; padding: .2rem .7rem; border-radius: 999px; }
.steps.tight li { margin: .15rem 0; }
.levels { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.level-card { border: 1px solid var(--line); border-top: 6px solid #999; border-radius: 10px; padding: .8rem .9rem; background: #fff; }
.level-card h3 { font-size: 1.05rem; margin: .1rem 0 .35rem; color: var(--navy); }
.level-card p { margin: 0; font-size: .93rem; }
.level-card .level-belt { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--muted); }
.level-card.belt-blue { border-top-color: #1f4fa8; } .level-card.belt-purple { border-top-color: #6b2a7b; }
.level-card.belt-brown { border-top-color: #6e4313; } .level-card.belt-black { border-top-color: #111; }
.beltdot { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: .5rem; vertical-align: -2px; flex: none; background: #999; }
.beltdot.belt-blue { background: #1f4fa8; } .beltdot.belt-purple { background: #6b2a7b; } .beltdot.belt-brown { background: #6e4313; } .beltdot.belt-black { background: #111; }
.matrix-wrap { overflow-x: auto; margin: .6rem 0; }
.matrix { width: 100%; border-collapse: separate; border-spacing: 0 6px; min-width: 520px; }
.matrix thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: center; padding: 0 .3rem .2rem; }
.matrix thead th:first-child { text-align: left; }
.matrix tbody th { text-align: left; font-weight: 700; padding: .55rem .6rem; background: #f6f7f5; border-radius: 8px 0 0 8px; display: flex; align-items: center; }
.matrix tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.matrix td { text-align: center; background: #f6f7f5; padding: .45rem .3rem; }
.matrix td:last-child { border-radius: 0 8px 8px 0; }
.matrix tr.hl th, .matrix tr.hl td { background: #fff8d6; }
.pill { display: inline-block; min-width: 72px; padding: .25rem .6rem; border-radius: 999px; font-weight: 700; font-size: .82rem; }
.pill-lead { background: var(--brand); color: #fff; }
.pill-assist { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px #b9bfd9; }
.rules { margin: .6rem 0 0; padding-left: 1.1rem; }
.rules li { margin: .3rem 0; }
.reqs { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.reqs h3 { color: var(--navy); margin-bottom: .25rem; font-size: 1rem; }
.reqs p { margin: 0; font-size: .93rem; color: var(--ink); }
.foot a { color: var(--muted); }
.policy h2 { margin-top: 1.4rem; color: var(--navy); }
.policy li { margin: .3rem 0; }
@media (max-width: 560px) { .hero h1 { font-size: 1.55rem; } .hero-logo { width: 48px; height: auto; } }

/* ---- verification & standards ---- */
.badge { display: inline-block; min-width: 1.2em; padding: 0 .35em; margin-left: .2em; border-radius: 999px; background: #c0392b; color: #fff; font-size: .75rem; font-weight: 700; text-align: center; }
.vhead { margin-bottom: 1rem; }
.vhead h1 { margin-bottom: .3rem; }
.vstatus { display: flex; gap: .9rem; align-items: center; margin-bottom: .6rem; }
.vstatus h2 { margin: 0; }
.vstatus p { margin: .15rem 0 0; }
.vicon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; color: #fff; background: var(--ok); }
.verify.bad .vicon { background: var(--err); }
.scope-note { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; margin: .6rem 0 0; }
.reqgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: .5rem; }
.reqgroup h3 { color: var(--navy); font-size: .98rem; margin: 0 0 .4rem; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: .55rem; align-items: flex-start; padding: .32rem 0; border-bottom: 1px solid #eef0ec; }
.checks li:last-child { border-bottom: 0; }
.checks small { display: block; color: var(--muted); font-size: .82rem; }
.checks.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 1.2rem; }
.ck { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: .75rem; font-weight: 800; margin-top: .1rem; }
.reassure { border-color: #cfe3d8; background: #f7fbf8; }
@media print {
  body { background: #fff; }
  .no-print, .flash { display: none !important; }
  main { padding: 0; max-width: none; }
  .card { break-inside: avoid; border-color: #ccc; }
  .matrix tbody th, .matrix td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pill-lead, .vicon, .ck, .level-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.parents { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-left: 5px solid var(--yellow); }
.parents h2 { margin-bottom: .2rem; } .parents p { margin: 0; }
.search-again { margin-bottom: 1rem; } .search-again summary { cursor: pointer; color: var(--brand); font-weight: 600; margin-bottom: .6rem; }

/* GWJJ brand type */
h1, h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; letter-spacing: .005em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.45rem; }
.brand img { border-radius: 8px; }
