/* AidWiki 2.0 — design system (light theme, after radioty.com) */

:root {
  --aw-ink: #0B0F0D;
  --aw-text: #1F2937;
  --aw-text-2: #374151;
  --aw-muted: #4B5563;
  --aw-subtle: #6B7280;
  --aw-bg: #FFFFFF;
  --aw-bg-2: #F7F8F8;
  --aw-bg-3: #F1F3F2;
  --aw-line: #E5E7EB;
  --aw-line-2: #EEF0EF;
  --aw-accent: #00FF9A;
  --aw-accent-ink: #05100B;
  --aw-accent-strong: #00A86B;
  --aw-link: #007A51;
  --aw-link-hover: #005C3D;
  --aw-tint: #E8FFF5;
  --aw-navy: #1E3A8A;
  --aw-red: #B42318;
  --aw-radius: 16px;
  --aw-radius-lg: 20px;
  --aw-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  --aw-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --aw-container: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.aw {
  margin: 0;
  background: var(--aw-bg);
  color: var(--aw-text);
  font-family: var(--aw-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.aw a { color: var(--aw-link); text-decoration: none; }
.aw a:hover { color: var(--aw-link-hover); }
.aw img { max-width: 100%; height: auto; }
.aw h1, .aw h2, .aw h3, .aw h4 { color: var(--aw-ink); line-height: 1.2; margin: 0; }
.aw button, .aw input, .aw select, .aw textarea { font: inherit; }
.aw :focus-visible { outline: 3px solid var(--aw-accent-strong); outline-offset: 2px; border-radius: 4px; }
.aw-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.aw-container { width: 100%; max-width: var(--aw-container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .aw-container { padding: 0 16px; } }

/* ---------- Admin bar ---------- */
.aw-adminbar { background: var(--aw-ink); color: #fff; font-size: 13px; }
.aw-adminbar .aw-container { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; min-height: 36px; }
.aw .aw-adminbar a { color: #fff; font-weight: 600; }
.aw .aw-adminbar a:hover { color: var(--aw-accent); }
.aw-adminbar form { margin: 0; }
.aw-adminbar button { background: none; border: 0; color: #fff; font-weight: 600; cursor: pointer; padding: 0; }
.aw-adminbar button:hover { color: var(--aw-accent); }
.aw-adminbar .aw-adminbar__right { margin-left: auto; display: flex; gap: 18px; align-items: center; }

/* ---------- Header ---------- */
.aw-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--aw-line); }
.aw-header .aw-container { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.aw .aw-logo { display: inline-flex; align-items: center; gap: 3px; color: var(--aw-ink); flex-shrink: 0; min-height: 44px; }
.aw .aw-logo:hover { color: var(--aw-ink); }
.aw-logo__text { font-size: 24px; font-weight: 900; letter-spacing: -.035em; line-height: 1; }
.aw-logo__dot { width: 9px; height: 9px; border-radius: 2px; background: var(--aw-accent); margin-top: 10px; }
.aw-nav { display: flex; gap: 24px; }
.aw .aw-nav a {
  display: inline-flex; align-items: center; min-height: 64px;
  font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--aw-muted);
}
.aw .aw-nav a:hover, .aw .aw-nav a.is-active { color: var(--aw-ink); box-shadow: inset 0 -3px 0 var(--aw-accent); }
.aw-header__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.aw-search {
  display: flex; align-items: center; gap: 8px; background: #F4F5F4; border: 1px solid var(--aw-line);
  border-radius: 999px; padding: 0 6px 0 14px; min-height: 42px; width: 300px; max-width: 100%;
}
.aw-search:focus-within { border-color: var(--aw-accent-strong); background: #fff; }
.aw-search svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: var(--aw-subtle); stroke-width: 2; stroke-linecap: round; }
.aw-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; color: var(--aw-ink); }
.aw-search button {
  border: 0; background: var(--aw-accent); color: var(--aw-accent-ink); border-radius: 999px;
  min-height: 32px; padding: 0 14px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.aw-search button:hover { background: #00E68B; }
.aw .aw-header__login { font-size: 14px; font-weight: 700; color: var(--aw-ink); white-space: nowrap; }

/* Mobile menu (no-JS <details>) */
.aw-menu { display: none; position: relative; }
.aw-menu > summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.aw-menu > summary::-webkit-details-marker { display: none; }
.aw-menu > summary:hover { background: var(--aw-bg-3); }
.aw-menu > summary svg { width: 24px; height: 24px; fill: var(--aw-ink); }
.aw-menu__panel {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: #fff;
  border: 1px solid var(--aw-line); border-radius: 14px; padding: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  display: flex; flex-direction: column; gap: 2px; z-index: 60;
}
.aw .aw-menu__panel a { padding: 11px 12px; border-radius: 8px; font-weight: 700; font-size: 15px; color: var(--aw-ink); }
.aw .aw-menu__panel a:hover { background: var(--aw-bg-3); }

@media (max-width: 960px) {
  .aw-nav, .aw-header__login { display: none; }
  .aw-menu { display: block; }
  .aw-header .aw-container { gap: 12px; }
  .aw-search { width: auto; flex: 1; }
  .aw-header__right { flex: 1; }
}
@media (max-width: 480px) {
  .aw-logo__text { font-size: 20px; }
  .aw-search button { display: none; }
}

/* ---------- Page head (grey band) ---------- */
.aw-pagehead { background: var(--aw-bg-2); border-bottom: 1px solid var(--aw-line-2); }
.aw-pagehead .aw-container { padding-top: 20px; padding-bottom: 30px; display: flex; flex-direction: column; gap: 12px; }
.aw-pagehead h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 900; letter-spacing: -.04em; line-height: 1.04; max-width: 980px; }
.aw-lede { margin: 0; font-size: 17px; line-height: 1.6; color: var(--aw-text-2); max-width: 780px; }
.aw-lede p { margin: 0 0 8px; }
.aw-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 600; color: var(--aw-subtle); }

.aw-crumbs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; font-weight: 600; color: var(--aw-subtle); }
.aw-crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.aw-crumbs li + li::before { content: "/"; color: #9CA3AF; }
.aw .aw-crumbs a { color: var(--aw-subtle); }
.aw .aw-crumbs a:hover { color: var(--aw-link); }
.aw .aw-crumbs li:last-child a, .aw-crumbs li:last-child span { color: var(--aw-ink); }

/* ---------- Hero (home) ---------- */
.aw-hero { border-bottom: 1px solid var(--aw-line-2); background:
  radial-gradient(70% 120% at 0% -20%, rgba(0, 255, 154, .14), transparent 60%),
  radial-gradient(60% 120% at 100% 0%, rgba(0, 190, 255, .10), transparent 55%), #fff; }
.aw-hero .aw-container { padding-top: 56px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 18px; }
.aw-hero h1 { font-size: clamp(36px, 6vw, 66px); font-weight: 900; letter-spacing: -.045em; line-height: .98; max-width: 900px; }
.aw-hero__search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 720px; margin-top: 4px; }
.aw-hero__search label {
  flex: 1 1 340px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #D1D5DB;
  border-radius: 999px; padding: 0 18px; min-height: 54px;
}
.aw-hero__search label:focus-within { border-color: var(--aw-accent-strong); }
.aw-hero__search svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--aw-subtle); stroke-width: 2; stroke-linecap: round; }
.aw-hero__search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; color: var(--aw-ink); }

/* ---------- Buttons ---------- */
.aw .aw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; font-size: 14px; font-weight: 700; cursor: pointer;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.aw .aw-btn--accent { background: var(--aw-accent); color: var(--aw-accent-ink); }
.aw .aw-btn--accent:hover { background: #00E68B; color: var(--aw-accent-ink); }
.aw .aw-btn--dark { background: var(--aw-ink); color: #fff; }
.aw .aw-btn--dark:hover { background: #26302B; color: #fff; }
.aw .aw-btn--ghost { background: #fff; color: var(--aw-ink); border-color: #D1D5DB; }
.aw .aw-btn--ghost:hover { border-color: var(--aw-ink); color: var(--aw-ink); }
.aw .aw-btn--lg { min-height: 54px; padding: 0 28px; font-size: 15px; }
.aw .aw-btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }

/* ---------- Main & sections ---------- */
.aw-main { padding: 28px 0 64px; }
.aw-stack { display: flex; flex-direction: column; gap: 40px; }
.aw-stack--sm { gap: 20px; }

.aw-sectitle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.aw-sectitle h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.aw-sectitle__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--aw-tint); color: var(--aw-link); flex-shrink: 0;
}
.aw-sectitle__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.aw .aw-sectitle__more { margin-left: auto; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.aw-count { font-size: 12px; font-weight: 700; color: var(--aw-muted); background: var(--aw-bg-3); border-radius: 999px; padding: 2px 9px; line-height: 1.6; }

.aw-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--aw-text-2); background: #E5E7EB; border-radius: 4px; padding: 3px 8px; line-height: 1.4; }
.aw-badge--accent { color: var(--aw-link); background: var(--aw-tint); }
.aw-badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* Chips */
.aw-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.aw-chips--wrap { flex-wrap: wrap; overflow: visible; }
.aw .aw-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 100px;
  background: #F4F4F5; color: #3F3F46; font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; line-height: 1.2;
}
.aw-pagehead .aw-chip { background: #fff; border-color: var(--aw-line); }
.aw .aw-chip:hover { background: #EBEBEB; color: var(--aw-ink); }
.aw .aw-chip.is-active { background: var(--aw-accent); border-color: var(--aw-accent); color: var(--aw-accent-ink); }
.aw-chip__n { opacity: .65; font-variant-numeric: tabular-nums; }

/* Cards & grids */
.aw-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.aw-grid--people { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px 20px; }
.aw-grid--2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 420px) { .aw-grid--people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; } .aw-grid--2 { grid-template-columns: 1fr; } }

.aw-card { background: #fff; border: 1px solid var(--aw-line); border-radius: var(--aw-radius); box-shadow: var(--aw-shadow); padding: 20px; }
.aw .aw-card--link { display: flex; flex-direction: column; gap: 8px; color: var(--aw-ink); transition: border-color .15s, transform .15s; }
.aw .aw-card--link:hover { border-color: #C9CDD2; color: var(--aw-ink); transform: translateY(-1px); }
.aw-card__title { font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.aw-card__text { font-size: 14px; color: var(--aw-muted); line-height: 1.55; }
.aw-card__meta { font-size: 13px; font-weight: 600; color: var(--aw-subtle); display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* Person tile (monogram — wiki images are not served) */
.aw .aw-person { display: flex; flex-direction: column; gap: 10px; color: var(--aw-ink); }
.aw .aw-person:hover { color: var(--aw-ink); }
.aw-mono {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 14px;
  font-size: clamp(28px, 3vw, 40px); font-weight: 900; letter-spacing: -.03em; transition: transform .2s;
}
.aw-person:hover .aw-mono { transform: scale(1.03); }
.aw-mono--0 { background: var(--aw-ink); color: var(--aw-accent); }
.aw-mono--1 { background: var(--aw-tint); color: var(--aw-link); }
.aw-mono--2 { background: var(--aw-navy); color: #fff; }
.aw-mono--3 { background: var(--aw-bg-3); color: var(--aw-ink); }
.aw-person__name { font-size: 15px; font-weight: 750; line-height: 1.3; }
.aw-person__sub { font-size: 13px; color: var(--aw-subtle); margin-top: -6px; }

/* Link rows */
.aw-rows { display: flex; flex-direction: column; border: 1px solid var(--aw-line); border-radius: var(--aw-radius); overflow: hidden; background: #fff; }
.aw .aw-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 15px 20px; border-top: 1px solid var(--aw-bg-3); color: var(--aw-ink); }
.aw .aw-row:first-child { border-top: 0; }
.aw .aw-row:hover { background: var(--aw-bg-2); color: var(--aw-ink); }
.aw-row__title { flex: 1 1 320px; font-size: 16px; font-weight: 700; line-height: 1.35; }
.aw-row__meta { font-size: 13px; font-weight: 600; color: var(--aw-subtle); white-space: nowrap; }
.aw-row__text { flex-basis: 100%; font-size: 14px; color: var(--aw-muted); line-height: 1.5; }

.aw-links3 { columns: 3 280px; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.aw-links3 li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--aw-bg-3); }
.aw .aw-links3 a { color: var(--aw-ink); font-weight: 600; font-size: 15px; line-height: 1.35; }
.aw .aw-links3 a:hover { color: var(--aw-link); }

/* Gradient panel (radioty "charts panel", light) */
.aw-panel {
  border-radius: 24px; border: 1px solid var(--aw-line); padding: clamp(16px, 2.6vw, 28px);
  background:
    radial-gradient(90% 130% at 12% -10%, rgba(0, 255, 154, .16), transparent 55%),
    radial-gradient(80% 120% at 98% 8%, rgba(0, 190, 255, .12), transparent 52%),
    radial-gradient(90% 120% at 70% 120%, rgba(124, 92, 255, .10), transparent 55%), #fff;
}

/* ---------- Two-column layout ---------- */
.aw-layout { position: relative; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.aw-layout__main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.aw-layout__aside { flex: 1 1 300px; min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1000px) { .aw-layout__aside { max-width: 340px; } }

/* ---------- Ads ---------- */
.aw-ad { display: flex; justify-content: center; align-items: flex-start; width: 100%; max-width: 100%; overflow: hidden; margin: 4px 0; }
.aw-ad:empty { display: none; }
.aw-ad--split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: center; }

/* Pillar rails: shown only where there is real gutter space beside the content */
.aw-rails { position: relative; height: 0; max-width: var(--aw-container); margin: 0 auto; z-index: 5; }
.aw-rail { position: absolute; top: 96px; width: 300px; height: 600px; display: none; }
.aw-rail--l { left: -316px; }
.aw-rail--r { right: -316px; }
.aw-layout > .aw-layout__main .aw-rail { top: auto; }
@media (min-width: 1880px) { .aw-rail { display: block; } }

/* ---------- Article / profile ---------- */
.aw-intro { font-size: 19px; line-height: 1.6; color: #111827; }
.aw-intro p { margin: 0 0 12px; }

.aw-toc { background: var(--aw-bg-2); border-radius: var(--aw-radius); padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.aw-toc__list { flex: 1 1 280px; min-width: 0; }
.aw-toc__label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--aw-subtle); margin-bottom: 8px; }
.aw-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 20px; }
.aw-toc li { counter-increment: toc; display: flex; gap: 8px; padding: 5px 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.aw-toc li::before { content: counter(toc) "."; color: var(--aw-subtle); font-variant-numeric: tabular-nums; min-width: 22px; }
.aw-toc__extra { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 10px; border-top: 1px solid var(--aw-line); font-size: 14px; font-weight: 700; }

.aw-sec { padding: 26px; background: #fff; border: 1px solid var(--aw-line); border-radius: var(--aw-radius-lg); box-shadow: var(--aw-shadow); display: flex; flex-direction: column; gap: 14px; }
.aw-sec__head { display: flex; align-items: flex-start; gap: 14px; }
.aw-sec__num {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 999px; background: var(--aw-ink); color: var(--aw-accent); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.aw-sec__kicker { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--aw-subtle); margin-bottom: 4px; }
.aw-sec h2 { font-size: 24px; font-weight: 850; letter-spacing: -.02em; scroll-margin-top: 84px; }
.aw-sec__photo { margin: 0; }
.aw-sec__photo img { border-radius: 12px; }
.aw-sec__photo figcaption { font-size: 13px; color: var(--aw-subtle); margin-top: 6px; }
.aw-sec__foot { font-size: 13px; color: var(--aw-subtle); padding-top: 10px; border-top: 1px solid var(--aw-bg-3); }

/* Prose for stored HTML */
.aw-prose { font-size: 17px; line-height: 1.75; color: var(--aw-text); overflow-wrap: anywhere; }
.aw-prose > :first-child { margin-top: 0; }
.aw-prose p { margin: 0 0 14px; }
.aw-prose h2, .aw-prose h3, .aw-prose h4 { margin: 22px 0 10px; font-weight: 800; letter-spacing: -.01em; }
.aw-prose h2 { font-size: 22px; } .aw-prose h3 { font-size: 19px; } .aw-prose h4 { font-size: 17px; }
.aw-prose ul, .aw-prose ol { padding-left: 22px; margin: 0 0 14px; }
.aw-prose li { margin: 4px 0; }
.aw-prose blockquote { margin: 0 0 14px; padding: 10px 16px; border-left: 3px solid var(--aw-accent-strong); background: var(--aw-bg-2); border-radius: 0 10px 10px 0; }
.aw-prose img { border-radius: 10px; }
.aw-prose iframe { max-width: 100%; border: 0; border-radius: 12px; }
.aw-prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.aw-prose th, .aw-prose td { border: 1px solid var(--aw-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.aw-prose th { background: var(--aw-bg-2); font-weight: 700; }
.aw-prose span[style], .aw-prose p[style], .aw-prose div[style] { font-family: inherit !important; }
.aw-scroll-x { overflow-x: auto; max-width: 100%; }
.aw-video { position: relative; aspect-ratio: 16 / 9; }
.aw-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }

/* Infobox */
.aw-infobox { background: #fff; border: 1px solid var(--aw-line); border-radius: 18px; box-shadow: var(--aw-shadow); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.aw-infobox .aw-mono { aspect-ratio: auto; height: 170px; font-size: 60px; }
.aw-facts { margin: 0; display: flex; flex-direction: column; }
.aw-facts > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--aw-bg-3); font-size: 14px; line-height: 1.45; }
.aw-facts dt { font-weight: 700; color: var(--aw-subtle); }
.aw-facts dd { margin: 0; font-weight: 600; color: var(--aw-ink); overflow-wrap: anywhere; }
.aw-social { display: flex; gap: 10px; flex-wrap: wrap; }
.aw .aw-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--aw-bg-3); color: var(--aw-ink); }
.aw .aw-social a:hover { background: var(--aw-tint); color: var(--aw-link); }
.aw-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.aw-box { background: var(--aw-bg-2); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.aw-box h2 { font-size: 16px; font-weight: 800; }
.aw .aw-box a { font-weight: 700; font-size: 14px; }

/* Comments / answers */
.aw-answers { display: flex; flex-direction: column; gap: 12px; }
.aw-answer { display: flex; gap: 14px; padding: 18px; background: var(--aw-bg-2); border-radius: var(--aw-radius); }
.aw-answer__n { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--aw-ink); color: var(--aw-accent); font-size: 15px; font-weight: 800; }
.aw-answer:nth-child(even) .aw-answer__n { background: var(--aw-tint); color: var(--aw-link); }
.aw-answer__body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.aw-answer__who { font-size: 14px; font-weight: 700; color: var(--aw-ink); }
.aw-answer__who span { font-weight: 500; color: var(--aw-subtle); }

/* FAQ / collapsibles */
.aw-acc { border: 1px solid var(--aw-line); border-radius: var(--aw-radius); overflow: hidden; background: #fff; }
.aw-acc details + details { border-top: 1px solid var(--aw-line); }
.aw-acc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; font-size: 16px; font-weight: 700; color: var(--aw-ink); }
.aw-acc summary::-webkit-details-marker { display: none; }
.aw-acc summary::after { content: "+"; color: var(--aw-link); font-size: 20px; line-height: 1; }
.aw-acc details[open] summary::after { content: "−"; }
.aw-acc__body { padding: 0 18px 16px; }

.aw-h2 { font-size: 24px; font-weight: 850; letter-spacing: -.02em; scroll-margin-top: 84px; }
.aw-empty { padding: 18px 20px; background: var(--aw-bg-2); border-radius: var(--aw-radius); color: var(--aw-muted); font-size: 15px; }

/* ---------- Forms ---------- */
.aw-form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.aw-field { display: flex; flex-direction: column; gap: 6px; }
.aw-field label { font-size: 14px; font-weight: 700; color: var(--aw-ink); }
.aw .aw-input {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #D1D5DB; border-radius: 12px; background: #fff;
  font-size: 15px; color: var(--aw-ink);
}
.aw .aw-input:focus { outline: none; border-color: var(--aw-accent-strong); box-shadow: 0 0 0 3px rgba(0, 168, 107, .15); }
.aw .aw-input.is-invalid { border-color: var(--aw-red); }
.aw-error { font-size: 13px; color: var(--aw-red); font-weight: 600; }
.aw-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.aw-check input { width: 18px; height: 18px; accent-color: var(--aw-accent-strong); }
.aw-alert { padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.aw-alert--ok { background: var(--aw-tint); color: var(--aw-link-hover); }
.aw-alert--err { background: #FEF3F2; color: var(--aw-red); }
.aw-alert ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Pagination ---------- */
.aw-pager { margin-top: 12px; }
.aw-pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.aw .aw-pager a, .aw-pager span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px;
  border-radius: 10px; background: #F4F4F5; color: var(--aw-ink); font-size: 14px; font-weight: 700;
}
.aw .aw-pager a:hover { background: #E8E9EA; color: var(--aw-ink); }
.aw-pager .is-current span { background: var(--aw-ink); color: #fff; }
.aw-pager .is-disabled span { color: #9CA3AF; background: var(--aw-bg-2); }
.aw .aw-pager .is-next a { background: var(--aw-accent); color: var(--aw-accent-ink); }

/* ---------- Static pages ---------- */
.aw-doc { max-width: 820px; }
.aw-doc .aw-prose { font-size: 16px; }

/* ---------- Footer ---------- */
.aw-footer { background: var(--aw-bg-2); border-top: 1px solid var(--aw-line); color: var(--aw-ink); }
.aw-footer__grid { padding-top: 48px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.aw-footer__col { display: flex; flex-direction: column; gap: 10px; }
.aw-footer__label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--aw-subtle); }
.aw .aw-footer__col a { font-size: 14px; font-weight: 600; color: var(--aw-muted); }
.aw .aw-footer__col a:hover { color: var(--aw-ink); }
.aw-footer__tag { font-size: 14px; font-weight: 700; color: var(--aw-text-2); }
.aw-footer__note { font-size: 13px; line-height: 1.5; color: var(--aw-subtle); }
.aw-footer__bottom { border-top: 1px solid var(--aw-line); }
.aw-footer__bottom .aw-container { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--aw-subtle); }

/* ---------- Error pages ---------- */
.aw-error-page { padding: 80px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.aw-error-page__code { font-size: clamp(64px, 12vw, 120px); font-weight: 900; letter-spacing: -.06em; line-height: .9; color: var(--aw-ink); }
.aw-error-page__code span { color: var(--aw-accent-strong); }

/* ---------- Legacy markup compatibility (admin & older templates) ---------- */
.aw-legacy .row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.aw-legacy [class*="col-"] { padding: 0 10px; flex: 1 1 100%; max-width: 100%; }
@media (min-width: 768px) {
  .aw-legacy .col-md-6, .aw-legacy .col-sm-6, .aw-legacy .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .aw-legacy .col-md-4, .aw-legacy .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .aw-legacy .col-md-3, .aw-legacy .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
}
.aw-legacy .panel, .aw-legacy .hpanel { background: #fff; border: 1px solid var(--aw-line); border-radius: var(--aw-radius); margin-bottom: 16px; overflow: hidden; }
.aw-legacy .hpanel .hpanel, .aw-legacy .panel .hpanel { border: 0; margin: 0; }
.aw-legacy .panel-heading { padding: 14px 18px; font-weight: 800; border-bottom: 1px solid var(--aw-bg-3); }
.aw-legacy .panel-body { padding: 16px 18px; }
.aw-legacy .panel-footer { padding: 12px 18px; background: var(--aw-bg-2); border-top: 1px solid var(--aw-bg-3); font-size: 14px; }
.aw-legacy .list-group { list-style: none; margin: 0; padding: 0; }
.aw-legacy .list-group-item { padding: 10px 0; border-bottom: 1px solid var(--aw-bg-3); }
.aw-legacy .label, .aw-legacy .badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--aw-bg-3); color: var(--aw-text-2); }
.aw-legacy .text-center { text-align: center; }
.aw-legacy .pull-right { float: right; }
.aw-legacy .text-danger { color: var(--aw-link); }
.aw-legacy .font-extra-bold, .aw-legacy .font-bold { font-weight: 800; }
.aw-legacy .form-control { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #D1D5DB; border-radius: 10px; background: #fff; }
.aw-legacy .btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #D1D5DB; background: #fff; font-weight: 700; cursor: pointer; }
.aw-legacy .btn-primary { background: var(--aw-accent); border-color: var(--aw-accent); color: var(--aw-accent-ink); }
.aw-legacy .form-group { margin-bottom: 14px; }
.aw-legacy .numberCircle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--aw-ink); color: var(--aw-accent); font-weight: 800; }
.aw-legacy .breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: 13px; font-weight: 600; }
.aw-legacy .breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #9CA3AF; }
.aw-legacy h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -.035em; }
.aw-toc .aw-ad { width: auto; flex: 0 0 auto; margin: 0; }
.aw-doc h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; margin: 8px 0 20px; }
.aw-doc h2 { font-size: 20px; }
.aw-auth { max-width: 480px; margin: 24px auto; background: #fff; border: 1px solid var(--aw-line); border-radius: var(--aw-radius-lg); box-shadow: var(--aw-shadow); padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.aw-auth h1 { font-size: 32px; font-weight: 900; letter-spacing: -.035em; }
.aw-auth .aw-form { max-width: none; }
.aw-auth__alt { font-size: 14px; color: var(--aw-muted); }
.aw-header__right, .aw-search { min-width: 0; }
.aw-search input { width: 100%; }
@media (max-width: 960px) { .aw-menu { flex-shrink: 0; } }
@media (max-width: 600px) {
  .aw-grid--people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
  .aw-grid--people .aw-mono { font-size: 22px; border-radius: 12px; }
  .aw-person__name { font-size: 13px; }
  .aw-person__sub { font-size: 12px; }
}
.aw-pagehead .text-center { text-align: left; }
