/* =========================================================
   PC Solve Guide — styles
   Concept: a well-used repair manual. Graph paper, a binder page
   with index tabs, and a marker highlighter for what matters.
   ========================================================= */

/* Self-hosted fonts (SIL OFL 1.1). See src/assets/fonts/FONTS-LICENSE.md */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('fonts/bricolage-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/sourcesans3-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/sourcesans3-latin-italic.woff2') format('woff2');
}

:root {
  --paper: #ffffff;
  --wash: #f2f6f4;
  --wash-2: #e4ece8;
  --grid: rgba(18, 107, 79, 0.075);
  --ink: #10231d;
  --ink-2: #4a5c55;
  --rule: #d6e0db;
  --green: #126b4f;
  --green-dark: #0c4f3a;
  --green-deep: #0a2e24;
  --green-tint: #e2f0ea;
  --marker: #ffe45c;
  --marker-soft: #fff5bf;
  --marker-edge: #e8d070;
  --red: #b42318;
  --red-tint: #fdeeec;
  --red-edge: #f3c5bf;

  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --gutter: 16px;
  --focus: var(--green-dark);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

kbd {
  font-family: var(--body); font-size: 0.85em; font-weight: 600;
  padding: 0.05em 0.45em; border: 1px solid var(--rule); border-bottom-width: 3px; border-radius: 6px;
  background: var(--paper); white-space: nowrap;
}

/* Graph paper, used behind headers */
.hero, .page-head, .guide-head {
  background-color: var(--wash);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: 1px solid var(--rule);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: 10px; border: 2px solid transparent;
  font-family: var(--display); font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--solid { background: var(--green); color: #fff; }
.btn--solid:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { border-color: var(--green); color: var(--green-dark); background: var(--paper); }
.btn--ghost:hover { background: var(--green-tint); color: var(--green-dark); }
.btn--quiet { background: var(--wash-2); color: var(--ink); }
.btn--quiet:hover { background: var(--rule); }

/* ---------- Header ---------- */
.notice-strip { background: var(--green-deep); color: #cfe3da; font-size: 0.875rem; padding-block: 7px; line-height: 1.4; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 74px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; font-stretch: 92%; }
.logo__light { font-weight: 500; color: var(--green); }
.logo--light, .logo--light:hover { color: #fff; }
.logo--light .logo__light { color: var(--marker); }

.header-search { position: relative; flex: 1; max-width: 440px; margin-left: 8px; }
.header-search .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--ink-2); width: 20px; height: 20px; pointer-events: none; }
.header-search input {
  width: 100%; min-height: 44px; padding: 0 16px 0 44px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--wash);
  font: inherit; font-size: 1rem; color: var(--ink);
}
.header-search input:focus { background: var(--paper); border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--green-tint); }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap;
}
.site-nav a:hover { background: var(--wash); color: var(--ink); }
.site-nav a[aria-current='page'] { background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%); }

.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    min-height: 44px; padding: 0 14px;
    background: var(--paper); border: 1px solid var(--rule); border-radius: 10px;
    font-weight: 600; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: '';
  }
  .nav-toggle__bars::before { position: absolute; top: -6px; }
  .nav-toggle__bars::after { position: absolute; top: 6px; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 16px; display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 8px; font-size: 1.1rem; }
}
@media (max-width: 640px) {
  .site-header__inner { flex-wrap: wrap; gap: 12px; padding-block: 12px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
}

/* ---------- Hero with the symptom finder ---------- */
.hero { padding-block: 64px 72px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 48px; align-items: center; }
.hero__h {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 800; font-stretch: 86%;
  line-height: 1.02; letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.hero__lede { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; }
.hero__points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.hero__points li { position: relative; padding-left: 32px; font-weight: 600; }
.hero__points li::before {
  content: ''; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4l2.6 2.6L11 4.5' fill='none' stroke='%23FFE45C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.finder-sheet { position: relative; min-width: 0; }
.finder-sheet__tabs { display: flex; gap: 3px; padding-left: 40px; overflow-x: auto; scrollbar-width: none; position: relative; z-index: 2; }
.finder-sheet__tabs::-webkit-scrollbar { display: none; }
.finder-sheet__tabs [role='tab'] {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 1 0 auto;
  padding: 10px 11px 9px;
  background: var(--wash-2); color: var(--ink-2);
  border: 1px solid var(--rule); border-bottom: 0; border-top: 4px solid transparent;
  border-radius: 10px 10px 0 0;
  font-family: var(--display); font-weight: 650; font-size: 0.95rem; cursor: pointer;
}
.finder-sheet__tabs [role='tab'] .icon { width: 18px; height: 18px; }
.finder-sheet__tabs [role='tab']:hover { color: var(--ink); background: var(--paper); }
.finder-sheet__tabs [role='tab'][aria-selected='true'] {
  background: var(--paper); color: var(--ink); border-top-color: var(--marker);
  margin-bottom: -1px; padding-bottom: 10px;
}
.finder-sheet__page {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px 16px 16px 16px;
  padding: 24px 28px 20px 72px;
  box-shadow: 0 1px 0 var(--rule), 0 30px 60px -34px rgba(16, 35, 29, 0.45);
  min-height: 380px;
}
/* punched binder holes and a margin line */
.finder-sheet__page::before {
  content: ''; position: absolute; left: 18px; top: 26px; bottom: 26px; width: 16px;
  background: radial-gradient(circle at 8px 8px, var(--wash-2) 0 6.5px, var(--rule) 7px 7.5px, transparent 8px) 0 0 / 16px 72px repeat-y;
}
.finder-sheet__page::after { content: ''; position: absolute; left: 50px; top: 0; bottom: 0; width: 2px; background: #f2c4bd; }
.finder-sheet__q { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin: 0 0 8px; }
.finder-sheet__more { margin: 14px 0 0; font-weight: 600; }

.symptoms { list-style: none; margin: 0; padding: 0; }
.symptoms a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 8px; margin-inline: -8px;
  border-bottom: 1px dashed var(--rule);
  color: var(--ink); text-decoration: none; font-size: 1.06rem;
  border-radius: 6px;
}
.symptoms a:hover, .symptoms a:focus-visible { background: var(--marker-soft); color: var(--ink); }
.symptoms__text { font-weight: 600; }
.symptoms__time { color: var(--ink-2); font-size: 0.9rem; white-space: nowrap; }

@media (max-width: 980px) {
  .hero { padding-block: 40px 48px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .finder-sheet__page { min-height: 0; }
}
@media (max-width: 560px) {
  .finder-sheet__tabs { padding-left: 0; }
  .finder-sheet__page { padding: 20px 18px 16px 18px; border-radius: 0 14px 14px 14px; }
  .finder-sheet__page::before, .finder-sheet__page::after { display: none; }
  .finder-sheet__tabs [role='tab'] span { font-size: 0.9rem; }
}

/* ---------- Section scaffolding ---------- */
.section-h { font-weight: 750; font-stretch: 92%; font-size: clamp(1.6rem, 2.8vw, 2.15rem); letter-spacing: -0.02em; }
.section-intro { margin-bottom: 28px; max-width: 64ch; }
.section-intro .section-h { margin-bottom: 8px; }
.section-intro p { color: var(--ink-2); margin: 0; }
.side-h { font-weight: 700; font-size: 1.3rem; margin-bottom: 6px; }
.more-link { margin: 28px 0 0; }

/* ---------- Guide rows ---------- */
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.guide-row a {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; align-items: start;
  padding: 18px 10px; border-bottom: 1px solid var(--rule);
  color: var(--ink); text-decoration: none;
  transition: background-color 0.15s;
}
.guide-row a:hover { background: var(--wash); color: var(--ink); }
.guide-row__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green-tint); color: var(--green); }
.guide-row__icon .icon { width: 24px; height: 24px; }
.guide-row[data-topic='viruses'] .guide-row__icon { background: var(--red-tint); color: var(--red); }
.guide-row__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.guide-row__topic { font-size: 0.85rem; font-weight: 700; color: var(--green-dark); }
.guide-row__title { font-family: var(--display); font-weight: 700; font-size: 1.16rem; line-height: 1.3; }
.guide-row a:hover .guide-row__title { color: var(--green-dark); text-decoration: underline; text-underline-offset: 4px; }
.guide-row__summary { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.guide-row__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 2px; }
.meta-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--ink-2); white-space: nowrap; }
.meta-chip .icon { width: 16px; height: 16px; }

.guide-list--compact .guide-row a { padding-block: 14px; gap: 14px; grid-template-columns: 36px minmax(0, 1fr); }
.guide-list--compact .guide-row__icon { width: 36px; height: 36px; border-radius: 10px; }
.guide-list--compact .guide-row__icon .icon { width: 20px; height: 20px; }
.guide-list--compact .guide-row__title { font-size: 1.04rem; }
.guide-list--compact .guide-row__summary, .guide-list--compact .guide-row__meta { display: none; }

.guide-list--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 0; }
.guide-list--grid .guide-row a {
  grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  height: 100%; padding: 20px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper);
}
.guide-list--grid .guide-row__icon { grid-row: 1; }
.guide-list--grid .guide-row__body { grid-column: 1 / -1; }
.guide-list--grid .guide-row__meta { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: 16px; }
.guide-list--grid .guide-row a:hover { border-color: var(--green); background: var(--paper); }

@media (max-width: 1000px) { .guide-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .guide-list--grid { grid-template-columns: 1fr; }
  .guide-row a { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .guide-row__icon { width: 40px; height: 40px; }
  .guide-row__meta { grid-column: 2; flex-direction: row; gap: 14px; align-items: center; }
}

/* ---------- Home: virus path (a real sequence) ---------- */
.virus-path { padding-block: 72px 64px; }
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: path; }
.path__step { counter-increment: path; position: relative; }
.path__step a { display: flex; flex-direction: column; gap: 6px; padding: 0 24px 0 0; color: var(--ink); text-decoration: none; height: 100%; }
.path__step a::before {
  content: counter(path);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  margin-bottom: 12px; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--paper);
}
.path__step:not(:last-child)::after { content: ''; position: absolute; top: 21px; left: 44px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 8px, transparent 8px 14px); }
.path__title { font-family: var(--display); font-weight: 700; font-size: 1.18rem; line-height: 1.25; }
.path__step a:hover .path__title { text-decoration: underline; text-underline-offset: 4px; color: var(--green-dark); }
.path__text { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.path__meta { font-size: 0.88rem; color: var(--green-dark); font-weight: 700; margin-top: auto; padding-top: 6px; }
.path__note {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 36px 0 0; padding: 14px 18px;
  background: var(--red-tint); border: 1px solid var(--red-edge); border-radius: 12px;
  font-size: 1.02rem;
}
.path__note .icon { color: var(--red); margin-top: 2px; }
.path__note a { color: var(--red); font-weight: 700; }

@media (max-width: 960px) {
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .path__step:nth-child(2)::after { display: none; }
}
@media (max-width: 600px) {
  .path { grid-template-columns: 1fr; row-gap: 0; }
  .path__step a { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 0 0 24px; }
  .path__step a::before { grid-row: 1 / span 3; margin: 0; }
  .path__step:not(:last-child)::after { display: block; top: 50px; bottom: 4px; left: 21px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--green) 0 8px, transparent 8px 14px); }
}

/* ---------- Home: brand help ---------- */
.brand-help { background: var(--wash); border-block: 1px solid var(--rule); padding-block: 72px; }
.brand-help__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.brand-help .guide-list { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.brand-help .guide-row:last-child a { border-bottom: 0; }
.brand-help__side { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 24px; position: sticky; top: 20px; }
.brand-help__side > p { color: var(--ink-2); font-size: 1rem; }
.brand-help__side .guide-list { border: 0; border-top: 1px solid var(--rule); border-radius: 0; }
@media (max-width: 900px) { .brand-help__grid { grid-template-columns: 1fr; gap: 32px; } .brand-help__side { position: static; } }

.everyday { padding-block: 72px 64px; }

/* ---------- Home: scam band ---------- */
.scam-band { background: var(--red-tint); border-block: 1px solid var(--red-edge); padding-block: 48px; }
.scam-band__inner { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; align-items: start; }
.scam-band__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; }
.scam-band__icon .icon { width: 32px; height: 32px; }
.scam-band__h { font-weight: 800; font-stretch: 90%; font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.015em; margin-bottom: 10px; max-width: 32ch; }
.scam-band p { max-width: 70ch; }
.scam-band__links { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.scam-band__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--red); border-radius: 10px; background: var(--paper);
  color: var(--red); font-family: var(--display); font-weight: 650; text-decoration: none;
}
.scam-band__links a:hover { background: var(--red); color: #fff; }
.scam-band { --focus: var(--red); }
@media (max-width: 560px) { .scam-band__inner { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Home: promise ---------- */
.promise { padding-block: 72px 88px; }
.promise .section-h { margin-bottom: 28px; }
.promise__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promise__col { border: 1px solid var(--rule); border-radius: 14px; padding: 22px 24px; }
.promise__col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 6px; }
.promise__col h3::before { content: ''; width: 26px; height: 26px; border-radius: 50%; flex: none; background-position: center; background-repeat: no-repeat; background-size: 14px; }
.promise__col--yes h3::before { background-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.promise__col--no h3::before { background-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 3l8 8M11 3l-8 8' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.promise__col ul { list-style: none; margin: 0; padding: 0; }
.promise__col li { padding: 10px 0; border-top: 1px dashed var(--rule); }
@media (max-width: 760px) { .promise__cols { grid-template-columns: 1fr; } }

/* ---------- Page heads ---------- */
.page-head { padding-block: 52px 40px; }
.page-head h1 { font-weight: 800; font-stretch: 88%; font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -0.025em; }
.page-head__lede { margin: 12px 0 0; font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.page-head__topic { display: flex; gap: 22px; align-items: flex-start; }
.page-head__icon { display: grid; place-items: center; flex: none; width: 68px; height: 68px; border-radius: 18px; background: var(--green); color: var(--marker); }
.page-head__icon .icon { width: 36px; height: 36px; }
.page-head--topic[data-topic='viruses'] .page-head__icon { background: var(--red); color: #fff; }
@media (max-width: 560px) { .page-head__topic { flex-direction: column; gap: 14px; } .page-head__icon { width: 54px; height: 54px; border-radius: 14px; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.95rem; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { color: var(--ink); }

.text-page { padding-block: 48px 96px; }

/* ---------- Topic pages ---------- */
.topic-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-block: 40px 88px; align-items: start; }
.count-line { color: var(--ink-2); font-weight: 600; margin-bottom: 12px; }
.topic-aside { border: 1px solid var(--rule); border-radius: 14px; padding: 20px; position: sticky; top: 20px; }
.topic-aside__h { font-size: 1.1rem; margin-bottom: 10px; }
.topic-aside ul { list-style: none; margin: 0; padding: 0; }
.topic-aside a { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-weight: 600; }
.topic-aside a:hover { background: var(--wash); }
.topic-aside .icon { color: var(--green); }
@media (max-width: 900px) { .topic-body { grid-template-columns: 1fr; gap: 32px; } .topic-aside { position: static; } }

/* ---------- Guides library ---------- */
.library { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding-block: 40px 96px; align-items: start; }
.library__side { position: sticky; top: 20px; }
.library-search__label { display: block; font-family: var(--display); font-weight: 700; margin-bottom: 8px; }
.library-search__field { position: relative; }
.library-search__field .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--ink-2); pointer-events: none; }
.library-search__field input {
  width: 100%; min-height: 52px; padding: 0 14px 0 44px;
  border: 2px solid var(--ink); border-radius: 12px; background: var(--paper);
  font: inherit; font-size: 1.05rem; color: var(--ink);
}
.library__topics ul { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.library__topics a { display: flex; align-items: center; gap: 10px; padding: 11px 6px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-weight: 600; }
.library__topics a:hover { background: var(--wash); }
.library__topics .icon { color: var(--green); }
.library__n { margin-left: auto; font-size: 0.85rem; color: var(--ink-2); background: var(--wash); border-radius: 999px; padding: 1px 9px; }
.library__status { color: var(--ink-2); margin: 0 0 8px; }
.library__group { padding-top: 28px; }
.library__group[hidden] { display: none; }
.library__h { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin-bottom: 12px; }
.library__h .icon { color: var(--green); width: 26px; height: 26px; }
.library__empty { margin-top: 28px; padding: 20px; border: 1px dashed var(--rule); border-radius: 12px; }
.guide-row[hidden] { display: none; }
mark { background: var(--marker); color: inherit; padding: 0 1px; border-radius: 2px; }
@media (max-width: 900px) { .library { grid-template-columns: 1fr; gap: 24px; } .library__side { position: static; } .library__topics { display: none; } }

/* ---------- Guide page ---------- */
.guide-head { padding-block: 36px 34px; }
.guide-head h1 { font-weight: 800; font-stretch: 88%; font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.025em; max-width: 24ch; }
.guide-head__deck { margin: 14px 0 0; font-size: 1.2rem; color: var(--ink-2); max-width: 64ch; }
.guide-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 24px 0 0; }
.guide-facts div { border-left: 3px solid var(--marker); padding-left: 10px; }
.guide-facts dt { font-size: 0.82rem; color: var(--ink-2); }
.guide-facts dd { margin: 0; font-weight: 700; font-size: 1rem; }

.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-block: 40px 72px; align-items: start; }
.guide-main { min-width: 0; }
.guide-aside { position: sticky; top: 20px; }

.quick { background: var(--marker-soft); border: 1px solid var(--marker-edge); border-radius: 14px; padding: 18px 22px; margin-bottom: 20px; }
.quick__h { font-size: 1.05rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.quick__h::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.quick p { margin: 0; font-size: 1.1rem; line-height: 1.6; }

.brand-notice { display: flex; gap: 12px; align-items: flex-start; background: var(--green-tint); border: 1px solid #bfdccf; border-radius: 12px; padding: 14px 18px; margin-bottom: 28px; }
.brand-notice .icon { color: var(--green); margin-top: 3px; }
.brand-notice p { margin: 0; font-size: 1rem; line-height: 1.55; }

.aside-box { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 18px 14px; }
.aside-box__title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: var(--display); font-weight: 700; margin: 0 0 10px; }
.aside-box__count { font-family: var(--body); font-size: 0.9rem; color: var(--green-dark); font-weight: 700; }
.progress-bar { height: 6px; border-radius: 3px; background: var(--wash-2); overflow: hidden; margin-bottom: 8px; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--green); transition: width 0.3s; }
.aside-steps, .aside-toc { list-style: none; margin: 0; padding: 0; }
.aside-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--wash-2); }
.aside-steps input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); cursor: pointer; }
.aside-steps a, .aside-toc a { display: flex; gap: 8px; color: var(--ink); text-decoration: none; font-size: 0.97rem; line-height: 1.4; }
.aside-steps a:hover, .aside-toc a:hover { text-decoration: underline; }
.aside-steps__num { font-family: var(--display); font-weight: 700; color: var(--green); min-width: 1.1em; }
.aside-steps li:has(input:checked) a { color: var(--ink-2); text-decoration: line-through; }
.aside-toc li { border-bottom: 1px solid var(--wash-2); }
.aside-toc a { padding: 8px 0 8px 12px; border-left: 3px solid transparent; }
.aside-box a.is-current { font-weight: 700; }
.aside-toc a.is-current { border-left-color: var(--marker); background: linear-gradient(90deg, var(--marker-soft), transparent); }
.aside-box__reset { margin-top: 10px; font-size: 0.9rem; color: var(--ink-2); }

/* Steps (the content is a real sequence) */
.steps { list-style: none; padding: 0 !important; margin: 1.6em 0 0; counter-reset: step; }
.steps > li { position: relative; counter-increment: step; padding: 0 0 36px 66px; margin: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -6px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  color: var(--green-dark); background: var(--paper); border: 2px solid var(--green);
  transition: background-color 0.2s, color 0.2s;
}
.steps > li::after { content: ''; position: absolute; left: 21px; top: 46px; bottom: 6px; width: 2px; background: var(--rule); }
.steps > li:last-child::after { display: none; }
.steps > li.is-done::before { content: '\2713'; background: var(--green); color: var(--marker); }
.steps h2 { margin: 0 0 0.5em !important; font-size: 1.38rem; }
.step-done {
  margin-top: 4px; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--paper);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
}
.step-done:hover { border-color: var(--green); }
.step-done[aria-pressed='true'] { background: var(--green-tint); border-color: var(--green); color: var(--green-dark); }

.solved { margin: 40px 0 0; padding: 24px; border: 1px solid var(--rule); border-radius: 14px; background: var(--wash); }
.solved__h { font-size: 1.3rem; margin-bottom: 14px; }
.solved__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.solved__msg { margin: 16px 0 0; }
.solved__msg .guide-list { background: var(--paper); border-radius: 12px; border: 1px solid var(--rule); overflow: hidden; }
.solved__msg .guide-row:last-child a { border-bottom: 0; }

.safety { display: flex; gap: 16px; align-items: flex-start; margin: 32px 0 0; padding: 20px 22px; background: var(--red-tint); border: 1px solid var(--red-edge); border-radius: 14px; }
.safety__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; }
.safety__title { font-size: 1.15rem; margin-bottom: 6px; }
.safety p { margin: 0; font-size: 1rem; line-height: 1.6; }

.related { background: var(--wash); border-top: 1px solid var(--rule); padding-block: 56px 72px; }
.related .section-h { margin-bottom: 20px; }

@media (max-width: 1000px) {
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; }
  .guide-aside { position: static; order: -1; margin-bottom: 24px; }
  .aside-steps { display: none; }
  .aside-box__reset { display: none; }
}
@media (max-width: 520px) {
  .steps > li { padding-left: 54px; }
  .steps > li::before { width: 38px; height: 38px; font-size: 1rem; }
  .steps > li::after { left: 18px; top: 40px; }
}

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-weight: 700; font-size: 1.55rem; margin: 2em 0 0.55em; letter-spacing: -0.01em; scroll-margin-top: 20px; }
.prose h3 { font-weight: 700; font-size: 1.15rem; margin: 1.5em 0 0.5em; }
.prose p, .prose li { line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--green); }
.prose .intro { font-size: 1.2rem; }

.callout { margin: 1.4em 0; padding: 16px 20px; background: var(--wash); border: 1px solid var(--rule); border-left: 5px solid var(--green); border-radius: 6px 12px 12px 6px; }
.callout p:last-child { margin: 0; }
.callout--warn { background: var(--marker-soft); border-color: var(--marker-edge); border-left-color: #c9a400; }

.ticks { list-style: none; padding-left: 0 !important; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 0.7em; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 0.45em; width: 15px; height: 8px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); rotate: -45deg; }

.table-wrap { overflow-x: auto; margin: 1.3em 0 1.7em; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); }
.table-wrap table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 1rem; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; line-height: 1.5; }
.table-wrap thead th { background: var(--green-deep); color: #fff; font-family: var(--display); font-weight: 600; font-size: 0.95rem; }
.table-wrap tbody th { font-family: var(--display); font-weight: 700; }
.table-wrap tbody tr + tr { border-top: 1px solid var(--rule); }
.table-wrap tbody tr:nth-child(even) { background: #f8faf9; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.2em 0 1.4em; }
.pros-cons > div { border: 1px solid var(--rule); border-radius: 12px; padding: 16px 20px 6px; }
.pros-cons h3 { margin: 0 0 8px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.pros-cons h3::before { content: ''; width: 12px; height: 12px; border-radius: 3px; }
.pros h3::before { background: var(--green); }
.cons h3::before { background: var(--red); }
.pros-cons ul { padding-left: 1.1em; font-size: 1rem; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }

.feature-list { margin: 1.2em 0 1.6em; border-top: 1px solid var(--rule); }
.feature-list dt { font-family: var(--display); font-weight: 700; font-size: 1.06rem; padding-top: 14px; }
.feature-list dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--rule); color: var(--ink-2); line-height: 1.65; }

.faq { border-top: 1px solid var(--rule); margin: 1em 0 1.6em; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; font-family: var(--display); font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--green), var(--green)) center / 14px 2px no-repeat, linear-gradient(var(--green), var(--green)) center / 2px 14px no-repeat;
  transition: rotate 0.2s;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #c6dbd2; font-size: 1rem; --focus: var(--marker); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; padding-block: 56px 40px; }
.site-footer__brand p { margin-top: 16px; max-width: 42ch; color: #b2cbc0; }
.site-footer__owner { font-size: 0.92rem; }
.site-footer__owner a { text-decoration: underline; overflow-wrap: anywhere; }
.site-footer__h { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a, .site-footer .linklike { color: #e3efea; text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: #fff; text-decoration: underline; }
.site-footer__base { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 20px 28px; font-size: 0.88rem; color: #9fbcb0; }
.site-footer__base p { margin: 0; max-width: 110ch; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Consent ---------- */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  width: min(400px, calc(100vw - 32px));
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); border-top: 6px solid var(--green);
  border-radius: 6px 6px 14px 14px; padding: 18px 20px 20px; font-size: 0.98rem;
  box-shadow: 0 24px 48px -20px rgba(16, 35, 29, 0.45);
}
.consent[hidden] { display: none; }
.consent__title { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.consent .btn { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
