/* ==========================================================================
   WCAG2.CO.IL — Design System (RTL, Hebrew)
   Neutral authority palette. Purple #90278E reserved for Nagich phase.
   The portal itself must conform to WCAG 2 AA.
   ========================================================================== */

:root {
  /* Brand — neutral, authoritative */
  --brand: #0B5FA4;
  --brand-dark: #084a82;
  --brand-darker: #063a66;
  --accent: #0C8C8C;        /* teal */
  --accent-dark: #086d6d;

  /* Ink & surfaces */
  --ink: #16202c;
  --ink-soft: #344150;
  --muted: #56636f;         /* >=4.5:1 on white */
  --bg: #ffffff;
  --surface: #f3f7fb;
  --surface-2: #e9f1f8;
  --border: #d6e0ea;
  --border-strong: #b9c7d6;
  --border-input: #6a7480;  /* >=3:1 on white for 1.4.11 form-control borders */

  /* Status */
  --ok: #157347;
  --ok-bg: #e7f5ec;
  --warn: #9a4a12;
  --warn-bg: #fdf1e6;
  --info-bg: #e9f1f8;

  /* Type */
  --font: "Heebo", "Assistant", "Segoe UI", Arial, sans-serif;
  --font-head: "Rubik", "Heebo", "Segoe UI", Arial, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --readw: 760px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(16,32,44,.08), 0 6px 24px rgba(16,32,44,.06);
  --shadow-sm: 0 1px 2px rgba(16,32,44,.10);
}

/* Reset & base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 170px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *{animation:none!important;transition:none!important;} }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.5rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.7rem); margin: 2.2rem 0 .7rem; padding-top: .3rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-inline-start: 1.4em; margin: 0 0 1rem; }
li { margin: .3em 0; }
strong { font-weight: 700; }

/* Skip link -------------------------------------------------------------- */
.skip-link {
  position: absolute; right: 12px; top: -60px; z-index: 1000;
  background: var(--brand-dark); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 8px;
  transition: top .15s ease; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

/* Layout helpers --------------------------------------------------------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.prose { max-width: var(--readw); }
.center { text-align: center; }

/* Header (two-tier: brand row + nav bar) --------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 4px 18px rgba(16,32,44,.05); }
.header-top-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand .logo-mark { width: 46px; height: 46px; flex: none; }
.brand .logo-mark img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 7px rgba(11,95,164,.26)); }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; line-height: 1.05; color: var(--ink); }
.brand-text b { color: var(--brand); }
.brand .tagline { display: block; font-size: .73rem; font-weight: 500; color: var(--muted); font-family: var(--font); margin-top: 3px; }

.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .6rem; }
.header-actions .btn { padding: .5rem .95rem; font-size: .92rem; }

.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 9px; padding: .55rem .85rem; font-size: 1rem; font-weight: 700; color: var(--ink); cursor: pointer; align-items: center; gap: .45rem; }

.main-nav-bar { background: var(--surface); border-top: 1px solid var(--border); }
.main-nav-bar ul { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.main-nav-bar a {
  display: block; padding: .8rem .95rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink-soft);
  text-decoration: none; border-bottom: 3px solid transparent;
  transition: color .12s, border-color .12s, background .12s;
}
.main-nav-bar a:hover { color: var(--brand-dark); background: #fff; }
.main-nav-bar a[aria-current="page"] { color: var(--brand-dark); border-bottom-color: var(--accent); background: #fff; }

@media (max-width: 900px) {
  .header-actions { display: none; }
  .nav-toggle { display: inline-flex; margin-inline-start: auto; }
  .main-nav-bar { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-top: 1px solid var(--border); box-shadow: var(--shadow); max-height: 76vh; overflow: auto; }
  .main-nav-bar.open { display: block; }
  .main-nav-bar ul { flex-direction: column; }
  .main-nav-bar a { padding: .8rem 20px; border-bottom: 1px solid var(--border); border-inline-start: 3px solid transparent; }
  .main-nav-bar a[aria-current="page"] { border-bottom-color: var(--border); border-inline-start-color: var(--accent); }
}

/* Hero ------------------------------------------------------------------- */
.hero { background: linear-gradient(160deg, #f3f8fc 0%, #eaf2f9 60%, #e6eef6 100%); border-bottom: 1px solid var(--border); }
.hero-inner { padding: 3rem 0 2.6rem; }
.hero h1 { max-width: 18ch; }
.hero .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; margin: 0 0 1.4rem; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--accent-dark); font-size: .85rem; letter-spacing: .02em; background: #d9efef; padding: .25rem .7rem; border-radius: 999px; margin-bottom: 1rem; }

/* Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 10px; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; font-family: var(--font-head); font-size: 1rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand-dark); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--brand-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Cards / grid ----------------------------------------------------------- */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.3rem; box-shadow: var(--shadow-sm); display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-top: 0; color: var(--brand-dark); }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }
.card .pill-num { font-family: var(--font-head); font-weight: 800; color: var(--accent-dark); font-size: .85rem; }

.section { padding: 3rem 0; }
.section h2 { margin-top: 0; }
.section-head { max-width: 62ch; margin-bottom: 1.6rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.alt-bg { background: var(--surface); border-block: 1px solid var(--border); }

/* Article layout --------------------------------------------------------- */
.article-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 2.5rem; align-items: start; padding: 2rem 0 3rem; }
@media (max-width: 980px) { .article-wrap { grid-template-columns: 1fr; } .toc-side { display: none; } }
.article { min-width: 0; }
.article > *:not(.tldr):not(table):not(.callout):not(.faq):not(.cta) { max-width: var(--readw); }
.article h2, .article h3 { max-width: var(--readw); }

/* Breadcrumbs ------------------------------------------------------------ */
.breadcrumbs { font-size: .9rem; color: var(--muted); margin: 0 0 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.breadcrumbs li::after { content: "‹"; margin-inline-start: .35rem; color: var(--border-strong); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: .18em; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }

/* Meta line -------------------------------------------------------------- */
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: var(--muted); font-size: .9rem; margin: 0 0 1.6rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.article-meta span { display: inline-flex; align-items: center; gap: .35rem; }

/* TL;DR (answer-first box) ----------------------------------------------- */
.tldr { background: var(--surface); border: 1px solid var(--border); border-inline-start: 5px solid var(--brand); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 0 0 1.8rem; }
.tldr h2, .tldr .tldr-label { margin: 0 0 .4rem; font-size: .8rem; font-weight: 800; letter-spacing: .04em; color: var(--brand-dark); font-family: var(--font-head); text-transform: none; padding: 0; }
.tldr p { margin: 0; font-size: 1.08rem; color: var(--ink); }
.tldr p + p { margin-top: .6rem; }

/* Callouts --------------------------------------------------------------- */
.callout { border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0; border: 1px solid var(--border); background: var(--info-bg); }
.callout > :last-child { margin-bottom: 0; }
.callout .c-title { font-weight: 800; font-family: var(--font-head); display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.callout.info { background: var(--info-bg); border-color: #bcd6ea; }
.callout.warn { background: var(--warn-bg); border-color: #f0cba3; }
.callout.warn .c-title { color: var(--warn); }
.callout.tip { background: var(--ok-bg); border-color: #aedcc1; }
.callout.tip .c-title { color: var(--ok); }

/* Definition box --------------------------------------------------------- */
.definition { background: #fff; border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0; }
.definition dt { font-weight: 800; color: var(--brand-dark); font-family: var(--font-head); }
.definition dd { margin: .3rem 0 0; color: var(--ink-soft); }

/* Tables ----------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
caption { caption-side: top; text-align: start; font-weight: 700; color: var(--muted); padding: .6rem .9rem; font-size: .9rem; }
th, td { padding: .7rem .9rem; text-align: start; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); color: var(--brand-darker); font-weight: 700; border-bottom: 2px solid var(--border-strong); }
tbody tr:nth-child(even) { background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }

/* TOC -------------------------------------------------------------------- */
.toc-side { position: sticky; top: 170px; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; font-size: .92rem; }
.toc .toc-label { font-weight: 800; font-family: var(--font-head); color: var(--ink); margin-bottom: .5rem; font-size: .82rem; letter-spacing: .03em; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: .25rem 0; }
.toc a { text-decoration: none; color: var(--ink-soft); display: block; padding: .15rem 0; border-inline-start: 2px solid transparent; padding-inline-start: .6rem; }
.toc a:hover { color: var(--brand); border-color: var(--accent); }

/* FAQ -------------------------------------------------------------------- */
.faq { margin: 2.4rem 0; }
.faq > h2 { margin-bottom: 1rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .7rem; background: #fff; overflow: hidden; }
.faq-item > summary { cursor: pointer; padding: .95rem 1.1rem; font-weight: 700; font-family: var(--font-head); color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; font-weight: 400; line-height: 1; flex: none; }
.faq-item[open] > summary::after { content: "–"; }
.faq-item[open] > summary { border-bottom: 1px solid var(--border); }
.faq-answer { padding: .4rem 1.1rem 1.1rem; color: var(--ink-soft); }
.faq-answer > :last-child { margin-bottom: 0; }

/* Sources ---------------------------------------------------------------- */
.sources { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 2.2rem 0; font-size: .95rem; }
.sources h2 { margin-top: 0; font-size: 1.1rem; }
.sources ul { padding-inline-start: 1.2em; margin: 0; }
.sources li { margin: .35em 0; color: var(--muted); }

/* CTA -------------------------------------------------------------------- */
.cta { background: linear-gradient(135deg, var(--brand-dark), var(--accent-dark)); color: #fff; border-radius: var(--radius); padding: 1.8rem 1.6rem; margin: 2.4rem 0; text-align: center; }
.cta h2 { color: #fff; margin: 0 0 .5rem; }
.cta p { color: #e8f2f8; margin: 0 auto 1.2rem; max-width: 52ch; }
.cta .btn-primary { background: #fff; color: var(--brand-dark); }
.cta .btn-primary:hover { background: #eef5fb; color: var(--brand-darker); }
/* placeholder marker for Nagich phase-2 injection */
.cta[data-cta="placeholder"] { position: relative; }

/* ===== Promo / sponsored banner (Nagich brand) ===================== */
:root {
  --nagich: #90278E;
  --nagich-dark: #6c1d6b;
  --nagich-accent: #d23f97;
}
.promo {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
  padding: 1.5rem 1.7rem;
  margin: 1.5rem 0;
  background: radial-gradient(125% 145% at 100% 0%, #9e2570 0%, var(--nagich) 46%, var(--nagich-dark) 100%);
  box-shadow: 0 10px 30px rgba(108,29,107,.28);
}
.promo::after { /* soft decorative glow */
  content: ""; position: absolute; inset-inline-start: -60px; bottom: -80px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.08); pointer-events: none;
}
.promo-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.16); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  padding: .2rem .6rem; border-radius: 999px; margin-bottom: 1rem;
}
.promo-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .8; }
.promo-body {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 1.5rem; align-items: center;
}
@media (max-width: 820px) { .promo-body { grid-template-columns: 1fr; text-align: center; gap: 1rem; } }
.promo-logo { display: flex; align-items: center; gap: .6rem; }
@media (max-width: 820px) { .promo-logo { justify-content: center; } }
.promo-logo-mark {
  width: 56px; height: 56px; flex: none; border-radius: 16px;
  background: #fff; color: var(--nagich);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.promo-logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.1; color: #fff; }
.promo-logo-text small { display: block; font-size: .72rem; font-weight: 500; color: rgba(255,255,255,.92); }
.promo-content { min-width: 0; }
.promo-title { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: #fff; margin: 0 0 .35rem; line-height: 1.25; }
.promo-sub { color: rgba(255,255,255,.92); margin: 0 0 .7rem; font-size: 1rem; }
.promo-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
@media (max-width: 820px) { .promo-feats { justify-content: center; } }
.promo-feats li {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  padding: .22rem .65rem; border-radius: 999px; font-size: .82rem; font-weight: 500;
}
.promo-feats li::before { content: "\2713\00a0"; font-weight: 700; }
.promo-cta { display: flex; flex-direction: column; gap: .55rem; align-items: stretch; min-width: 210px; }
@media (max-width: 820px) { .promo-cta { min-width: 0; } }
.promo-btn { background: #fff; color: var(--nagich-dark); font-weight: 800; justify-content: center; }
.promo-btn:hover { background: #f6e9f5; color: var(--nagich-dark); }
.promo-disclaimer { font-size: .7rem; line-height: 1.45; color: rgba(255,255,255,.92); text-align: center; }

/* ----- Thin top leaderboard strip (Nagich) ----- */
.promo-strip {
  background: linear-gradient(90deg, var(--nagich-dark) 0%, var(--nagich) 100%);
  color: #fff;
  position: relative; /* lives inside .site-header, so it sticks together with the menu */
}
.promo-strip::after { /* pink accent on the inline-start edge only (keeps text on solid purple) */
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 30%;
  background: linear-gradient(90deg, var(--nagich-accent), transparent); opacity: .55; pointer-events: none;
}
.promo-strip.themed::after { display: none; } /* category strips use a solid theme, no pink accent */
/* per-category color themes (white text stays AA-contrast on every background) */
.promo-strip.cat-is5568    { background: linear-gradient(90deg,#08436f,#0b5fa4); }
.promo-strip.cat-is5568    .ps-cta { color:#0b5fa4; }
.promo-strip.cat-wcag2     { background: linear-gradient(90deg,#241b5e,#3b2e8c); }
.promo-strip.cat-wcag2     .ps-cta { color:#3b2e8c; }
.promo-strip.cat-law       { background: linear-gradient(90deg,#741722,#9c1f2e); }
.promo-strip.cat-law       .ps-cta { color:#9c1f2e; }
.promo-strip.cat-websites  { background: linear-gradient(90deg,#13502f,#176a42); }
.promo-strip.cat-websites  .ps-cta { color:#176a42; }
.promo-strip.cat-documents { background: linear-gradient(90deg,#7d4500,#9c5500); }
.promo-strip.cat-documents .ps-cta { color:#9c5500; }
.promo-strip.cat-statement { background: linear-gradient(90deg,#0a5054,#0f6e72); }
.promo-strip.cat-statement .ps-cta { color:#0f6e72; }
.promo-strip.cat-experts   { background: linear-gradient(90deg,#5c3714,#7a4a1e); }
.promo-strip.cat-experts   .ps-cta { color:#7a4a1e; }
.promo-strip.cat-guides    { background: linear-gradient(90deg,#2c3a47,#3f5163); }
.promo-strip.cat-guides    .ps-cta { color:#3f5163; }
.promo-strip.cat-solutions { background: linear-gradient(90deg,#6c1d6b,#90278e); }
.promo-strip.cat-solutions .ps-cta { color:#90278e; }
@media (max-width: 900px) { /* nav collapses -> shorter sticky header */
  html { scroll-padding-top: 120px; }
}
.promo-strip-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: .75rem; min-height: 46px; padding-block: .4rem;
}
.promo-strip .ps-tag {
  flex: none; font-size: .66rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(255,255,255,.18); padding: .14rem .5rem; border-radius: 999px;
}
.promo-strip .ps-brand { flex: none; font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: #fff; }
.promo-strip .ps-text {
  flex: 1 1 auto; min-width: 0; font-size: .95rem; color: rgba(255,255,255,.95);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.promo-strip .ps-cta {
  flex: none; background: #fff; color: var(--nagich-dark); font-weight: 800; font-size: .9rem;
  padding: .35rem .9rem; border-radius: 8px; text-decoration: none; white-space: nowrap;
}
.promo-strip .ps-cta:hover { background: #f6e9f5; color: var(--nagich-dark); }
@media (max-width: 620px) {
  .promo-strip .ps-text { display: none; }
  .promo-strip .ps-brand { font-size: .92rem; }
  .promo-strip .ps-cta { padding: .3rem .7rem; }
}

/* ----- Comparison page ----- */
.disclosure { background:#fff8e6; border:1px solid #f0d98a; border-radius:var(--radius); padding:.8rem 1.1rem; font-size:.9rem; color:#6b5300; margin:1.3rem 0; }
.cmp-table td:first-child { font-weight:700; }
.cmp-table tbody tr.is-rec { background:#f7ecf6; }
.cmp-table tbody tr.is-rec td:first-child { color:var(--nagich); }
.tier { display:inline-block; font-size:.73rem; font-weight:700; padding:.12rem .5rem; border-radius:999px; white-space:nowrap; }
.tier.full { background:#ecf9f1; color:#157347; }
.tier.mid { background:#eef2f8; color:#3a4a5e; }
.tier.basic { background:#f4f5f7; color:var(--muted); }
.yes { color:#157347; font-weight:700; }
.dep { color:#9a6a12; font-size:.92em; }
.no { color:var(--muted); }
/* ----- Success-criterion level badges ----- */
.sc-lvl { display:inline-block; font-size:.72rem; font-weight:700; padding:.1rem .5rem; border-radius:999px; white-space:nowrap; line-height:1.5; }
.sc-lvl.a { background:#eef2f8; color:#3a4a5e; }
.sc-lvl.aa { background:#e7f0fb; color:#0B5FA4; }
.sc-lvl.aaa { background:#f3eafc; color:#6b2bb5; }
.sc-list { list-style:none; padding:0; margin:1rem 0; display:grid; gap:.5rem; }
.sc-list li { display:flex; align-items:center; gap:.6rem; padding:.55rem .8rem; border:1px solid var(--line,#e4e8ee); border-radius:var(--radius); background:#fff; }
.sc-list li .sc-num { font-weight:700; color:var(--brand,#0B5FA4); min-width:3.2rem; font-variant-numeric:tabular-nums; }
.sc-list li a { font-weight:500; }
.sc-list li .sc-req { margin-inline-start:auto; font-size:.78rem; color:#157347; white-space:nowrap; }
.sc-list li .sc-opt { margin-inline-start:auto; font-size:.78rem; color:var(--muted); white-space:nowrap; }
/* ----- Interactive tools (contrast checker, statement generator) ----- */
.tool { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:1.2rem 1.3rem; margin:1.4rem 0; }
.tool-controls { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.tool-field { display:flex; flex-direction:column; gap:.4rem; }
.tool-field > label { font-weight:700; font-family:var(--font-head); font-size:.95rem; }
.color-row { display:flex; gap:.5rem; align-items:center; }
.color-row input[type=color] { inline-size:48px; block-size:42px; padding:0; border:1px solid var(--border-input); border-radius:8px; background:none; cursor:pointer; flex:none; }
.color-row input[type=text] { flex:1 1 auto; min-width:0; padding:.55rem .7rem; border:1px solid var(--border-input); border-radius:8px; font-family:var(--font); font-size:1rem; direction:ltr; text-align:start; }
.cc-result { display:flex; flex-wrap:wrap; gap:1rem 1.4rem; align-items:center; margin-top:1.2rem; }
.cc-ratio { display:flex; flex-direction:column; align-items:center; background:var(--surface); border-radius:12px; padding:.6rem 1.1rem; min-width:120px; }
.cc-ratio .cc-num { font-family:var(--font-head); font-weight:800; font-size:1.9rem; line-height:1; color:var(--brand-dark); }
.cc-ratio-lbl { font-size:.8rem; color:var(--muted); margin-top:.25rem; }
.cc-checks { list-style:none; padding:0; margin:0; display:grid; gap:.45rem; flex:1 1 260px; }
.cc-checks li { display:flex; justify-content:space-between; gap:.7rem; align-items:center; font-size:.92rem; padding:.35rem .6rem; border:1px solid var(--border); border-radius:8px; }
.cc-badge { font-weight:700; font-size:.82rem; padding:.1rem .55rem; border-radius:999px; white-space:nowrap; }
.cc-badge.pass { background:#ecf9f1; color:#157347; }
.cc-badge.fail { background:#fdecec; color:#b42318; }
.cc-preview { margin-top:1.2rem; border-radius:10px; padding:1.1rem 1.2rem; border:1px solid var(--border); }
.cc-prev-lg { font-size:1.5rem; font-weight:700; margin:0 0 .4rem; }
.cc-prev-sm { font-size:1rem; margin:0; }
.gen-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.gen-field { display:flex; flex-direction:column; gap:.35rem; }
.gen-field.full { grid-column:1 / -1; }
.gen-field label { font-weight:700; font-family:var(--font-head); font-size:.92rem; }
.gen-field input, .gen-field select, .gen-field textarea { padding:.55rem .7rem; border:1px solid var(--border-input); border-radius:8px; font-family:var(--font); font-size:1rem; width:100%; }
.gen-field textarea { min-height:80px; resize:vertical; }
.gen-checks { display:flex; flex-wrap:wrap; gap:.5rem .9rem; }
.gen-checks label { font-weight:500; display:flex; align-items:center; gap:.4rem; font-family:var(--font); }
.gen-output { width:100%; min-height:320px; margin-top:1rem; padding:1rem; border:1px solid var(--border-input); border-radius:10px; font-family:var(--font); font-size:.95rem; line-height:1.7; white-space:pre-wrap; }
.tool-actions { display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1rem; align-items:center; }
.copied-note { color:#157347; font-weight:700; font-size:.9rem; }
@media (max-width:560px){ .tool-controls{grid-template-columns:1fr;} .gen-grid{grid-template-columns:1fr;} }
.rec-box { background:linear-gradient(135deg,var(--nagich),var(--nagich-dark)); color:#fff; border-radius:var(--radius); padding:1.5rem 1.6rem; margin:1.6rem 0; }
.rec-box h2 { color:#fff; margin:.1rem 0 .5rem; }
.rec-box p { color:rgba(255,255,255,.92); }
.rec-box .rec-brands { display:flex; flex-wrap:wrap; gap:.7rem; margin:1rem 0; }
.rec-box .rec-brand { background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.25); border-radius:10px; padding:.7rem .9rem; flex:1 1 200px; }
.rec-box .rec-brand b { display:block; font-family:var(--font-head); font-size:1.05rem; }
.rec-box .rec-brand small { color:rgba(255,255,255,.8); }
.rec-box a.btn { background:#fff; color:var(--nagich-dark); font-weight:800; }
.rec-box a.btn:hover { background:#f6e9f5; color:var(--nagich-dark); }

/* Related ---------------------------------------------------------------- */
.related { margin: 2.4rem 0 0; }
.related h2 { font-size: 1.25rem; }

/* Hub list (pillar pages) ------------------------------------------------ */
.topic-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.topic-list a { display: flex; gap: .7rem; align-items: baseline; text-decoration: none; padding: .85rem 1.05rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.topic-list a:hover { border-color: var(--brand); background: var(--surface); }
.topic-list .star { color: var(--accent); font-weight: 700; }
.topic-list b { color: var(--brand-dark); font-family: var(--font-head); }
.topic-list span { color: var(--muted); font-size: .92rem; }
.topic-list .row-text { display: block; }

/* Stat strip ------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
@media (max-width:640px){ .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width:380px){ .stats { grid-template-columns: 1fr; } }
.stat { background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding:1.1rem; text-align:center; }
.stat .num { font-family: var(--font-head); font-weight:800; font-size:1.7rem; color: var(--brand); display:block; }
.stat .lbl { color: var(--muted); font-size:.9rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: #0e1a26; color: #c4d0dc; margin-top: 3rem; padding: 2.6rem 0 1.6rem; font-size: .94rem; }
.site-footer a { color: #d8e3ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.6rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: .95rem; margin: 0 0 .7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.footer-brand b { color: #fff; }
.footer-brand .logo-mark { width: 34px; height: 34px; }
.footer-brand .logo-mark img { filter: none; }
.disclaimer { color: #8ea0b2; font-size: .85rem; margin-top: .8rem; max-width: 46ch; }
.footer-bottom { border-top: 1px solid #22323f; margin-top: 1.8rem; padding-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; color: #8ea0b2; font-size: .85rem; }

/* Utilities -------------------------------------------------------------- */
.mt0{margin-top:0}.mb0{margin-bottom:0}.muted{color:var(--muted)}
.visually-hidden { position:absolute!important; width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0; }
.badge { display:inline-block; background: var(--surface-2); color: var(--brand-dark); font-weight:700; font-size:.78rem; padding:.15rem .55rem; border-radius:999px; }
.badge.aa { background:#e7f5ec; color: var(--ok); }
