/* ============================================================
   CLASSFACT — 부업·N잡 교육 검증 커뮤니티
   Design tokens follow the project brief exactly (§14).
   Type: Pretendard (display/body) + IBM Plex Mono (data/labels)
   Signature: V0–V4 evidence meter + fact-ledger tables
   ============================================================ */

:root{
  /* Brief palette — do not improvise */
  --navy:#132A44;
  --navy-hover:#0C2036;
  --teal:#168A83;
  --teal-light:#E8F5F3;
  --teal-bright:#3FB3AA;      /* derived: accent on dark surfaces only */
  --blue:#2F6FED;
  --amber:#D99A24;
  --amber-light:#FBF3E1;
  --red:#C84A4A;
  --red-light:#FAECEC;
  --text:#18212B;
  --text-2:#5E6975;
  --border:#DDE3E9;
  --surface:#FFFFFF;
  --bg:#F5F7FA;
  --bg-muted:#EEF2F5;

  --font-sans:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",system-ui,sans-serif;
  --font-mono:"IBM Plex Mono","SFMono-Regular",Menlo,Consolas,monospace;

  --maxw:1200px;
  --radius:12px;
  --radius-sm:8px;
  --shadow:0 1px 2px rgba(19,42,68,.06);
  --shadow-lg:0 8px 28px rgba(19,42,68,.10);
  --header-h:72px;
  --speed:180ms;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:var(--font-sans);font-size:16px;line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0}
input,select,textarea{font:inherit;color:inherit}
h1,h2,h3,h4{margin:0;line-height:1.28;letter-spacing:-.02em;font-weight:800}
p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
table{border-collapse:collapse}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:4px}
::selection{background:var(--teal-light)}

.skip-link{position:absolute;left:-9999px;top:0;background:var(--navy);color:#fff;padding:10px 16px;z-index:200;border-radius:0 0 8px 0}
.skip-link:focus{left:0}

/* ---------- primitives ---------- */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.mono{font-family:var(--font-mono)}
.eyebrow{
  font-family:var(--font-mono);font-size:.75rem;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;color:var(--teal);
  display:flex;align-items:center;gap:10px;margin-bottom:14px;
}
.eyebrow::before{content:"";width:22px;height:2px;background:var(--teal)}
.section-head{margin-bottom:28px}
.section-head h2{font-size:clamp(1.5rem,1.2rem + 1.4vw,2.125rem)}
.section-head .sub{color:var(--text-2);margin-top:10px;max-width:62ch}
.muted{color:var(--text-2)}
.small{font-size:.875rem}

/* buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:44px;padding:0 22px;border-radius:10px;font-weight:700;font-size:.9375rem;
  border:1px solid transparent;transition:background var(--speed),border-color var(--speed),color var(--speed),transform var(--speed);
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--navy);color:#fff}
.btn-primary:hover{background:var(--navy-hover)}
.btn-teal{background:var(--teal);color:#fff}
.btn-teal:hover{background:#106b65}
.btn-ghost{border-color:var(--border);background:var(--surface)}
.btn-ghost:hover{border-color:var(--navy);color:var(--navy)}
.btn-quiet{color:var(--text-2);min-height:40px;padding:0 12px;border-radius:8px}
.btn-quiet:hover{background:var(--bg-muted);color:var(--text)}
.btn-sm{min-height:36px;padding:0 14px;font-size:.875rem;border-radius:8px}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.btn-icon{width:44px;min-height:44px;padding:0;border-radius:10px;border:1px solid var(--border);background:var(--surface);display:inline-flex;align-items:center;justify-content:center;transition:border-color var(--speed),color var(--speed),background var(--speed)}
.btn-icon:hover{border-color:var(--navy)}
.btn-icon.is-on{background:var(--teal-light);border-color:var(--teal);color:var(--teal)}

/* chips / badges */
.chip{
  display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:2px 10px;
  border-radius:999px;border:1px solid var(--border);background:var(--surface);
  font-size:.8125rem;color:var(--text-2);font-weight:600;
}
.chip-cat{background:var(--bg-muted);border-color:transparent;color:var(--text)}
.badge{
  display:inline-flex;align-items:center;gap:5px;padding:2px 9px;min-height:24px;
  border-radius:6px;font-family:var(--font-mono);font-size:.75rem;font-weight:600;letter-spacing:.02em;
}
.badge-A{background:var(--teal-light);color:var(--teal)}
.badge-B{background:#E9F0FD;color:var(--blue)}
.badge-C{background:var(--amber-light);color:#9a6c12}
.badge-D{background:var(--red-light);color:var(--red)}
.badge-neutral{background:var(--bg-muted);color:var(--text-2)}
.badge-help{cursor:pointer;border:0}
.badge-help:hover{filter:brightness(.96)}

/* status dot — never color alone: always paired with text */
.dot{width:7px;height:7px;border-radius:50%;flex:0 0 auto}
.dot-on{background:var(--teal)}
.dot-warn{background:var(--amber)}
.dot-off{background:var(--text-2)}

/* V-meter: 5 segments, signature element */
.vmeter{display:inline-flex;align-items:center;gap:8px}
.vmeter .segs{display:inline-flex;gap:3px}
.vmeter .seg{width:16px;height:8px;border-radius:2px;background:var(--bg-muted);border:1px solid var(--border)}
.vmeter .seg.on{background:var(--teal);border-color:var(--teal)}
.vmeter .lbl{font-family:var(--font-mono);font-size:.75rem;font-weight:600;color:var(--text-2)}
.vmeter.lg .seg{width:26px;height:12px;border-radius:3px}

/* fact ledger — signature spec-sheet table */
.ledger{width:100%;font-size:.9375rem}
.ledger .row{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--border)}
.ledger .row:last-child{border-bottom:0}
.ledger .k{font-family:var(--font-mono);font-size:.75rem;font-weight:600;letter-spacing:.06em;color:var(--text-2);padding-top:3px;flex:0 0 auto}
.ledger .v{text-align:right;font-weight:600;color:var(--text);min-width:0;overflow-wrap:anywhere}
.ledger .v .muted{font-weight:500}

.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.callout{border:1px solid var(--border);border-left:4px solid var(--teal);background:var(--surface);border-radius:10px;padding:16px 18px}
.callout.warn{border-left-color:var(--amber);background:#fffdf7}
.callout.danger{border-left-color:var(--red)}
.callout .t{font-weight:800;margin-bottom:6px;font-size:.9375rem}
.callout p{color:var(--text-2);font-size:.9rem}

.tag-sample{
  display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:6px;
  background:var(--amber-light);color:#8a610f;font-family:var(--font-mono);font-size:.6875rem;font-weight:600;letter-spacing:.05em;
}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:80;background:rgba(255,255,255,.92);
  backdrop-filter:saturate(1.2) blur(8px);border-bottom:1px solid var(--border);
}
.site-header .bar{height:var(--header-h);display:flex;align-items:center;gap:28px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.25rem;letter-spacing:-.02em}
.brand .fact{color:var(--teal)}
.brand-symbol{width:32px;height:32px;flex:0 0 auto}
.main-nav{display:flex;gap:4px;flex:1}
.main-nav a{
  padding:10px 14px;border-radius:8px;font-weight:600;font-size:.9375rem;color:var(--text-2);
  transition:color var(--speed),background var(--speed);
}
.main-nav a:hover{color:var(--text);background:var(--bg-muted)}
.main-nav a[aria-current="page"]{color:var(--navy);background:var(--teal-light)}
.header-actions{display:flex;align-items:center;gap:10px}
.hamburger{display:none}

/* mobile drawer */
.drawer{position:fixed;inset:0;z-index:120;display:none}
.drawer.open{display:block}
.drawer .scrim{position:absolute;inset:0;background:rgba(19,42,68,.45)}
.drawer .panel{
  position:absolute;top:0;right:0;bottom:0;width:min(320px,86vw);background:var(--surface);
  padding:20px;display:flex;flex-direction:column;gap:4px;overflow:auto;
}
.drawer .panel a{padding:13px 12px;border-radius:10px;font-weight:700}
.drawer .panel a:hover{background:var(--bg-muted)}
.drawer .panel .divider{height:1px;background:var(--border);margin:12px 0}

/* bottom nav (mobile) */
.bottom-nav{
  display:none;position:fixed;left:0;right:0;bottom:0;z-index:90;
  background:var(--surface);border-top:1px solid var(--border);
  padding-bottom:env(safe-area-inset-bottom);
}
.bottom-nav ul{display:grid;grid-template-columns:repeat(5,1fr)}
.bottom-nav a{
  display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 4px 9px;
  font-size:.6875rem;font-weight:600;color:var(--text-2);min-height:52px;
}
.bottom-nav a[aria-current="page"]{color:var(--teal)}
.bottom-nav svg{width:22px;height:22px}

/* ---------- hero ---------- */
.hero{background:var(--surface);border-bottom:1px solid var(--border);overflow:hidden;position:relative}
.hero::after{
  content:"";position:absolute;inset:auto -120px -240px auto;width:520px;height:520px;border-radius:50%;
  background:radial-gradient(closest-side,var(--teal-light),transparent 70%);pointer-events:none;
}
.hero .wrap{position:relative;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:56px;padding-top:72px;padding-bottom:80px;align-items:center}
.hero h1{font-size:clamp(2.125rem,1.4rem + 3vw,3.5rem)}
.hero h1 .u{box-shadow:inset 0 -0.34em var(--teal-light)}
.hero .lead{margin-top:18px;color:var(--text-2);font-size:1.0625rem;max-width:52ch}
.hero-search{margin-top:30px;display:flex;gap:10px}
.hero-search .field{
  flex:1;display:flex;align-items:center;gap:10px;background:var(--surface);
  border:1.5px solid var(--border);border-radius:12px;padding:0 16px;min-height:56px;transition:border-color var(--speed);
}
.hero-search .field:focus-within{border-color:var(--teal)}
.hero-search input{flex:1;border:0;background:none;min-width:0}
.hero-search input:focus{outline:none}
.hero-search svg{color:var(--text-2);flex:0 0 auto}
.hero-ctas{margin-top:18px;display:flex;gap:12px;flex-wrap:wrap}
.hero-slogan{margin-top:26px;font-family:var(--font-mono);font-size:.8125rem;color:var(--teal);letter-spacing:.1em}

.hero-visual{position:relative;padding:10px 0}
.report-card{position:relative;z-index:2;padding:22px 24px}
.report-card .rc-top{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:14px;border-bottom:1px solid var(--border);margin-bottom:6px}
.report-card .rc-title{font-family:var(--font-mono);font-size:.75rem;font-weight:600;letter-spacing:.1em;color:var(--text-2)}
.float-chip{
  position:absolute;z-index:3;right:-8px;top:-18px;background:var(--navy);color:#fff;
  border-radius:10px;padding:10px 14px;font-family:var(--font-mono);font-size:.75rem;letter-spacing:.04em;box-shadow:var(--shadow-lg);
}
.float-chip b{color:var(--teal-bright)}
.card-shadow{position:absolute;z-index:1;inset:26px -14px -14px 26px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-muted)}

.hero-stats{border-top:1px solid var(--border);background:var(--surface)}
.hero-stats .wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:0;position:static}
.hero-stats .stat{padding:20px 22px;border-left:1px solid var(--border)}
.hero-stats .stat:first-child{border-left:0;padding-left:0}
.hero-stats .num{font-family:var(--font-mono);font-weight:600;font-size:1.5rem;color:var(--navy)}
.hero-stats .lab{font-size:.8125rem;color:var(--text-2);margin-top:2px}

/* ---------- sections ---------- */
.section{padding:72px 0}
.section.alt{background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}

/* trust principles */
.principles{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.principle{padding:24px;display:flex;flex-direction:column;gap:10px}
.principle .ic{width:40px;height:40px;border-radius:10px;background:var(--teal-light);color:var(--teal);display:flex;align-items:center;justify-content:center}
.principle h3{font-size:1.0625rem}
.principle p{color:var(--text-2);font-size:.9rem}

/* categories */
.cat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.cat-card{padding:18px;display:flex;flex-direction:column;gap:8px;transition:border-color var(--speed),transform var(--speed)}
.cat-card:hover{border-color:var(--teal);transform:translateY(-2px)}
.cat-card .cnt{font-family:var(--font-mono);font-size:.75rem;color:var(--teal);font-weight:600}
.cat-card .nm{font-weight:700;font-size:.9375rem;line-height:1.35}

/* service cards */
.svc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.svc-card{display:flex;flex-direction:column;transition:border-color var(--speed),box-shadow var(--speed)}
.svc-card:hover{border-color:var(--navy);box-shadow:var(--shadow-lg)}
.svc-card .top{display:flex;align-items:center;gap:8px;padding:16px 18px 0;flex-wrap:wrap}
.svc-card .id{font-family:var(--font-mono);font-size:.75rem;color:var(--text-2);letter-spacing:.05em}
.svc-card h3{font-size:1.125rem;padding:10px 18px 2px}
.svc-card h3 a:hover{color:var(--teal)}
.svc-card .op{padding:0 18px;color:var(--text-2);font-size:.875rem}
.svc-card .ledger{padding:6px 18px 0}
.svc-card .ledger .row{padding:9px 0;font-size:.875rem}
.svc-card .foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 18px 14px;border-top:1px solid var(--border);margin-top:14px}
.svc-card .checked{font-family:var(--font-mono);font-size:.71875rem;color:var(--text-2)}
.svc-card .acts{display:flex;gap:6px}
.svc-card .acts .btn-icon{width:36px;min-height:36px;border-radius:8px}

/* compare preview strip */
.compare-preview .card{padding:0;overflow:hidden}
.compare-preview table{width:100%;font-size:.875rem}
.compare-preview th,.compare-preview td{padding:12px 16px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}
.compare-preview thead th{font-family:var(--font-mono);font-size:.71875rem;letter-spacing:.06em;color:var(--text-2);background:var(--bg-muted);font-weight:600}
.compare-preview tr:last-child td{border-bottom:0}

/* V ladder */
.vladder{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.vstep{padding:18px;display:flex;flex-direction:column;gap:10px}
.vstep .lv{font-family:var(--font-mono);font-weight:600;color:var(--navy)}
.vstep h3{font-size:1rem}
.vstep p{font-size:.855rem;color:var(--text-2)}

/* guides */
.guide-list{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.guide-card{padding:22px;display:flex;flex-direction:column;gap:10px;transition:border-color var(--speed)}
.guide-card:hover{border-color:var(--teal)}
.guide-card .no{font-family:var(--font-mono);font-size:.75rem;color:var(--teal);font-weight:600}
.guide-card h3{font-size:1.0625rem;line-height:1.4}
.guide-card p{color:var(--text-2);font-size:.875rem}
.guide-card .more{margin-top:auto;font-weight:700;font-size:.875rem;color:var(--navy)}

/* review CTA band */
.cta-band{background:var(--navy);color:#fff;border-radius:16px;padding:44px 48px;display:flex;align-items:center;justify-content:space-between;gap:32px}
.cta-band h2{font-size:clamp(1.375rem,1.1rem + 1.2vw,1.875rem);color:#fff}
.cta-band p{color:#B9C4D2;margin-top:10px;max-width:56ch}
.cta-band .btn-teal{flex:0 0 auto}

/* ---------- explorer ---------- */
.page-head{background:var(--surface);border-bottom:1px solid var(--border);padding:44px 0 30px}
.page-head h1{font-size:clamp(1.75rem,1.3rem + 2vw,2.5rem)}
.page-head .sub{color:var(--text-2);margin-top:10px;max-width:70ch}

.explorer{display:grid;grid-template-columns:264px minmax(0,1fr);gap:32px;padding:32px 0 72px;align-items:start}
.filters{position:sticky;top:calc(var(--header-h) + 20px)}
.filters .card{padding:6px 18px 14px}
.fgroup{border-bottom:1px solid var(--border);padding:14px 0}
.fgroup:last-child{border-bottom:0}
.fgroup > .fg-title{width:100%;display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:.9rem;padding:4px 0}
.fgroup .fg-body{display:flex;flex-direction:column;gap:2px;padding-top:8px}
.fgroup.collapsed .fg-body{display:none}
.fgroup .chev{transition:transform var(--speed)}
.fgroup.collapsed .chev{transform:rotate(-90deg)}
.fopt{display:flex;align-items:center;gap:9px;padding:6px 2px;border-radius:6px;font-size:.875rem;color:var(--text-2);cursor:pointer}
.fopt:hover{color:var(--text)}
.fopt input{width:16px;height:16px;accent-color:var(--teal)}
.fopt .n{margin-left:auto;font-family:var(--font-mono);font-size:.71875rem}
.filters-foot{display:flex;gap:8px;margin-top:12px}

.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.toolbar .search{flex:1;min-width:220px;display:flex;align-items:center;gap:8px;border:1.5px solid var(--border);border-radius:10px;background:var(--surface);padding:0 12px;min-height:44px}
.toolbar .search:focus-within{border-color:var(--teal)}
.toolbar .search input{flex:1;border:0;background:none;min-width:0}
.toolbar .search input:focus{outline:none}
.toolbar select{
  min-height:44px;border:1px solid var(--border);border-radius:10px;background:var(--surface);
  padding:0 12px;font-weight:600;font-size:.875rem;
}
.result-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.result-count{font-size:.9rem;color:var(--text-2)}
.result-count b{color:var(--text);font-family:var(--font-mono)}
.active-chips{display:flex;gap:8px;flex-wrap:wrap}
.active-chips .chip button{display:inline-flex;margin-left:2px;color:var(--text-2)}
.active-chips .chip button:hover{color:var(--red)}
.results{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.mobile-filter-btn{display:none}

.filters-head{display:none}

/* skeleton / states */
.skel{background:linear-gradient(90deg,var(--bg-muted) 25%,#e6ebf0 50%,var(--bg-muted) 75%);background-size:200% 100%;animation:sk 1.1s infinite linear;border-radius:8px}
@keyframes sk{to{background-position:-200% 0}}
.skel-card{height:250px;border-radius:var(--radius)}
.state{padding:56px 24px;text-align:center;border:1.5px dashed var(--border);border-radius:var(--radius);background:var(--surface)}
.state .ic{width:52px;height:52px;border-radius:14px;background:var(--bg-muted);color:var(--text-2);display:flex;align-items:center;justify-content:center;margin:0 auto 14px}
.state h3{font-size:1.0625rem}
.state p{color:var(--text-2);margin-top:8px;font-size:.9rem}
.state .btn{margin-top:18px}

/* ---------- detail ---------- */
.detail-head{background:var(--surface);border-bottom:1px solid var(--border);padding:40px 0 28px}
.crumbs{font-size:.8125rem;color:var(--text-2);display:flex;gap:6px;flex-wrap:wrap;margin-bottom:18px}
.crumbs a:hover{color:var(--teal)}
.detail-head .meta-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.detail-head h1{font-size:clamp(1.625rem,1.2rem + 2vw,2.375rem)}
.detail-head .op{color:var(--text-2);margin-top:8px}
.detail-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}
.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:32px;padding:36px 0 80px;align-items:start}
.detail-main{display:flex;flex-direction:column;gap:26px;min-width:0}
.detail-side{position:sticky;top:calc(var(--header-h) + 20px);display:flex;flex-direction:column;gap:18px}
.panel{padding:24px}
.panel > h2{font-size:1.1875rem;margin-bottom:16px;display:flex;align-items:center;gap:10px}
.panel > h2 .badge{font-size:.6875rem}
.metric-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--surface)}
.metric{padding:16px;border-left:1px solid var(--border)}
.metric:first-child{border-left:0}
.metric .k{font-size:.75rem;color:var(--text-2)}
.metric .v{font-family:var(--font-mono);font-weight:600;margin-top:4px;font-size:.9375rem;color:var(--navy)}
.metric .v.pending{color:var(--text-2);font-weight:500}
.similar{display:flex;flex-direction:column;gap:10px}
.similar a{display:flex;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid var(--border);border-radius:10px;font-weight:600;font-size:.9rem;transition:border-color var(--speed)}
.similar a:hover{border-color:var(--teal)}
.similar .g{font-family:var(--font-mono);font-size:.71875rem;color:var(--text-2);flex:0 0 auto}

/* ---------- compare ---------- */
.compare-wrap{padding:32px 0 80px}
.compare-scroller{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.cmp-table{width:100%;min-width:760px;font-size:.9rem}
.cmp-table th,.cmp-table td{padding:13px 16px;border-bottom:1px solid var(--border);border-left:1px solid var(--border);text-align:left;vertical-align:top}
.cmp-table th:first-child,.cmp-table td:first-child{
  border-left:0;position:sticky;left:0;background:var(--bg-muted);
  font-family:var(--font-mono);font-size:.71875rem;letter-spacing:.05em;color:var(--text-2);
  min-width:130px;max-width:150px;font-weight:600;z-index:2;
}
.cmp-table thead td{background:var(--surface)}
.cmp-table tr:last-child th,.cmp-table tr:last-child td{border-bottom:0}
.cmp-head-cell{min-width:190px}
.cmp-head-cell .nm{font-weight:800;font-size:1rem}
.cmp-head-cell .rm{margin-top:8px}
.cmp-empty-col{color:var(--text-2)}

/* compare tray */
.cmp-tray{
  position:fixed;left:0;right:0;bottom:0;z-index:85;transform:translateY(110%);
  transition:transform 220ms ease;pointer-events:none;
}
.cmp-tray.show{transform:none;pointer-events:auto}
.cmp-tray .inner{
  max-width:var(--maxw);margin:0 auto 14px;background:var(--navy);color:#fff;border-radius:14px;
  padding:12px 16px;display:flex;align-items:center;gap:12px;box-shadow:var(--shadow-lg);
}
.cmp-tray .items{display:flex;gap:8px;flex:1;overflow:auto}
.cmp-tray .it{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.1);border-radius:8px;padding:6px 10px;font-size:.8125rem;white-space:nowrap}
.cmp-tray .it button{color:#B9C4D2}
.cmp-tray .it button:hover{color:#fff}
.cmp-tray .cnt{font-family:var(--font-mono);font-size:.8125rem;color:#B9C4D2}

/* ---------- review wizard ---------- */
.wizard{max-width:760px;margin:0 auto;padding:36px 0 90px}
.wsteps{display:flex;gap:6px;margin-bottom:26px}
.wsteps .ws{flex:1;height:6px;border-radius:3px;background:var(--bg-muted)}
.wsteps .ws.on{background:var(--teal)}
.wstep-label{font-family:var(--font-mono);font-size:.75rem;color:var(--teal);letter-spacing:.08em;margin-bottom:8px;font-weight:600}
.wpanel{padding:28px}
.wpanel h2{font-size:1.3125rem;margin-bottom:6px}
.wpanel .desc{color:var(--text-2);font-size:.9rem;margin-bottom:22px}
.field-row{margin-bottom:18px}
.field-row label{display:block;font-weight:700;font-size:.9rem;margin-bottom:7px}
.field-row .hint{font-size:.8125rem;color:var(--text-2);margin-top:6px}
.field-row input[type=text],.field-row input[type=email],.field-row input[type=password],.field-row input[type=number],.field-row select,.field-row textarea{
  width:100%;border:1.5px solid var(--border);border-radius:10px;background:var(--surface);
  min-height:46px;padding:10px 14px;transition:border-color var(--speed);
}
.field-row textarea{min-height:110px;resize:vertical;line-height:1.55}
.field-row input:focus,.field-row select:focus,.field-row textarea:focus{outline:none;border-color:var(--teal)}
.field-row .err{display:none;color:var(--red);font-size:.8125rem;margin-top:6px;font-weight:600}
.field-row.invalid input,.field-row.invalid select,.field-row.invalid textarea{border-color:var(--red)}
.field-row.invalid .err{display:block}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
.radio-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.radio-cards label{
  display:flex;gap:10px;align-items:flex-start;border:1.5px solid var(--border);border-radius:10px;
  padding:12px 14px;cursor:pointer;font-weight:600;font-size:.875rem;transition:border-color var(--speed),background var(--speed);
}
.radio-cards input{accent-color:var(--teal);margin-top:3px}
.radio-cards label:has(input:checked){border-color:var(--teal);background:var(--teal-light)}
/* 1–5 rating: segmented bar, not stars */
.rate-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--border)}
.rate-row:last-child{border-bottom:0}
.rate-row .q{font-size:.9rem;font-weight:600;flex:1}
.rate-seg{display:flex;gap:4px}
.rate-seg button{
  width:34px;height:30px;border:1px solid var(--border);border-radius:6px;background:var(--surface);
  font-family:var(--font-mono);font-size:.75rem;color:var(--text-2);transition:all var(--speed);
}
.rate-seg button:hover{border-color:var(--teal)}
.rate-seg button.on{background:var(--teal);border-color:var(--teal);color:#fff}
.wfoot{display:flex;justify-content:space-between;gap:12px;margin-top:24px}
.preview-box{border:1px dashed var(--border);border-radius:10px;padding:18px;background:var(--bg);max-height:340px;overflow:auto;font-size:.875rem;white-space:pre-wrap}

/* ---------- community ---------- */
.board-tabs{display:flex;gap:8px;overflow-x:auto;padding:4px 0 16px;-webkit-overflow-scrolling:touch}
.board-tabs button{
  white-space:nowrap;padding:9px 16px;border-radius:999px;border:1px solid var(--border);
  background:var(--surface);font-weight:600;font-size:.875rem;color:var(--text-2);transition:all var(--speed);
}
.board-tabs button.on{background:var(--navy);border-color:var(--navy);color:#fff}
.post-list{display:flex;flex-direction:column;gap:12px}
.post-item{padding:18px 20px;display:flex;flex-direction:column;gap:8px}
.post-item .pmeta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:.75rem;color:var(--text-2)}
.post-item h3{font-size:1.0625rem}
.post-item p{color:var(--text-2);font-size:.9rem}

/* ---------- article / prose ---------- */
.article{max-width:760px;margin:0 auto;padding:48px 0 90px}
.article-head{margin-bottom:34px}
.article-head h1{font-size:clamp(1.75rem,1.3rem + 2vw,2.375rem)}
.article-head .amet{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap;font-family:var(--font-mono);font-size:.75rem;color:var(--text-2)}
.prose{font-size:1.0313rem;line-height:1.75;color:#222b36}
.prose > * + *{margin-top:1.1em}
.prose h2{font-size:1.375rem;margin-top:2em;padding-top:1.1em;border-top:1px solid var(--border)}
.prose h3{font-size:1.125rem;margin-top:1.6em}
.prose ul{list-style:none;padding-left:0}
.prose ul > li{position:relative;padding-left:22px;margin-top:.55em}
.prose ul > li::before{content:"";position:absolute;left:2px;top:.62em;width:8px;height:8px;border-radius:2px;background:var(--teal)}
.prose ol{padding-left:1.35em;list-style:decimal}
.prose ol > li{margin-top:.55em;padding-left:.3em}
.prose ol > li::marker{font-family:var(--font-mono);font-weight:600;color:var(--teal)}
.prose strong{font-weight:800}
.prose table{width:100%;font-size:.9rem;border:1px solid var(--border);border-radius:10px;overflow:hidden}
.prose th,.prose td{padding:10px 14px;border-bottom:1px solid var(--border);text-align:left}
.prose thead th{background:var(--bg-muted);font-family:var(--font-mono);font-size:.75rem;letter-spacing:.05em;color:var(--text-2)}
.prose tr:last-child td{border-bottom:0}

/* ---------- auth / simple ---------- */
.narrow{max-width:480px;margin:0 auto;padding:48px 0 90px}
.narrow .card{padding:30px}
.narrow h1{font-size:1.625rem;margin-bottom:8px}
.narrow .sub{color:var(--text-2);font-size:.9rem;margin-bottom:22px}

/* ---------- modal & toast ---------- */
.modal{position:fixed;inset:0;z-index:140;display:none;align-items:center;justify-content:center;padding:20px}
.modal.open{display:flex}
.modal .scrim{position:absolute;inset:0;background:rgba(19,42,68,.5)}
.modal .box{position:relative;background:var(--surface);border-radius:14px;max-width:460px;width:100%;padding:26px;box-shadow:var(--shadow-lg);max-height:85vh;overflow:auto}
.modal .box h3{font-size:1.125rem;margin-bottom:10px}
.modal .box .close{position:absolute;top:14px;right:14px}
.toast-zone{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:160;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none}
.toast{
  background:var(--navy);color:#fff;padding:12px 18px;border-radius:10px;font-size:.9rem;font-weight:600;
  box-shadow:var(--shadow-lg);animation:tin 200ms ease;max-width:min(420px,88vw);text-align:center;
}
.toast.warn{background:#7a5a12}
@keyframes tin{from{opacity:0;transform:translateY(8px)}to{opacity:1}}

/* ---------- footer ---------- */
.site-footer{background:var(--navy);color:#B9C4D2;margin-top:0}
.site-footer a:hover{color:#fff}
.f-top{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:32px;padding:52px 0 40px}
.f-brand .brand{color:#fff;margin-bottom:12px}
.f-brand .brand .fact{color:var(--teal-bright)}
.f-brand p{font-size:.875rem;max-width:34ch}
.f-col h4{color:#fff;font-size:.8125rem;font-family:var(--font-mono);letter-spacing:.1em;font-weight:600;margin-bottom:14px}
.f-col ul{display:flex;flex-direction:column;gap:9px;font-size:.875rem}
.f-bottom{border-top:1px solid rgba(255,255,255,.14);padding:20px 0 26px;font-size:.78125rem;display:flex;flex-direction:column;gap:8px}
.f-bottom .legal{display:flex;gap:14px;flex-wrap:wrap}
.f-bottom .legal a{font-weight:600;color:#D7DEE8}
.f-disclaimer{color:#8A98AA;max-width:100ch}

/* ---------- responsive ---------- */
@media (max-width:1023px){
  .hero .wrap{grid-template-columns:1fr;gap:44px;padding-top:52px;padding-bottom:56px}
  .hero-visual{max-width:520px}
  .hero-stats .wrap{grid-template-columns:repeat(2,1fr)}
  .hero-stats .stat{border-left:0;padding-left:0;border-top:1px solid var(--border)}
  .hero-stats .stat:nth-child(-n+2){border-top:0}
  .principles{grid-template-columns:1fr 1fr}
  .cat-grid{grid-template-columns:repeat(3,1fr)}
  .svc-grid,.guide-list{grid-template-columns:repeat(2,1fr)}
  .vladder{grid-template-columns:repeat(2,1fr)}
  .explorer{grid-template-columns:1fr}
  .filters{position:fixed;inset:0;z-index:130;background:var(--surface);padding:0;display:none;overflow:auto}
  .filters.open{display:block}
  .filters .card{border:0;border-radius:0;box-shadow:none;padding:12px 20px 90px}
  .filters-head{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--surface);z-index:2}
  .filters-foot{position:fixed;left:0;right:0;bottom:0;background:var(--surface);border-top:1px solid var(--border);padding:12px 20px calc(12px + env(safe-area-inset-bottom));margin:0}
  .filters-foot .btn{flex:1}
  .mobile-filter-btn{display:inline-flex}
  .detail-grid{grid-template-columns:1fr}
  .detail-side{position:static}
  .f-top{grid-template-columns:1fr 1fr;gap:28px}
  .cta-band{flex-direction:column;align-items:flex-start;padding:34px 28px}
}
@media (max-width:767px){
  :root{--header-h:58px}
  .wrap{padding:0 18px}
  body{padding-bottom:64px}
  .main-nav{display:none}
  .hamburger{display:inline-flex}
  .header-actions .btn-primary{display:none}
  .bottom-nav{display:block}
  .section{padding:52px 0}
  .principles{grid-template-columns:1fr}
  .cat-grid{grid-template-columns:1fr 1fr}
  .svc-grid,.guide-list,.results{grid-template-columns:1fr}
  .vladder{grid-template-columns:1fr}
  .hero-search{flex-direction:column}
  .hero-search .btn{width:100%}
  .grid-2,.radio-cards{grid-template-columns:1fr}
  .metric-strip{grid-template-columns:1fr 1fr}
  .metric{border-top:1px solid var(--border)}
  .metric:nth-child(-n+2){border-top:0}
  .metric:nth-child(odd){border-left:0}
  .float-chip{right:4px}
  .cmp-tray .inner{margin:0 10px calc(74px + env(safe-area-inset-bottom));border-radius:12px}
  .rate-row{flex-direction:column;align-items:flex-start;gap:8px}
  .f-top{grid-template-columns:1fr;padding:40px 0 28px}
  .wpanel{padding:20px}
  .cta-band .btn-teal{width:100%}
}
@media (min-width:768px){
  body{padding-bottom:0}
}
/* print: keep it readable */
@media print{
  .site-header,.bottom-nav,.cmp-tray,.site-footer,.detail-actions{display:none}
  body{background:#fff}
}
