:root {
  color-scheme: light;
  --page: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #eef5ff;
  --ink: #091a30;
  --muted: #52647b;
  --line: #d7e3f2;
  --blue: #075eb8;
  --blue-strong: #054f9b;
  --accent: #18b981;
  --shadow: 0 20px 55px rgba(32, 76, 128, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 82% 4%, rgba(66, 185, 255, .13), transparent 28%), linear-gradient(180deg, #fff, var(--page) 48%, #fff);
  color: var(--ink);
  font: 16px/1.6 "Open Sans", "Segoe UI", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--blue-strong); }
:focus-visible { outline: 3px solid #b45309; outline-offset: 3px; }
h1, h2, h3 { color: var(--ink); font-family: Roboto, "Segoe UI", Arial, sans-serif; line-height: 1.18; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: -.035em; margin: .4rem 0 1rem; }
h2 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); letter-spacing: -.02em; margin: .35rem 0 1.2rem; }
h3 { font-size: 1.22rem; margin: .3rem 0 .65rem; }
p { margin: 0 0 1rem; overflow-wrap: anywhere; }
.wrap { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .7rem 1rem; background: var(--ink); color: #fff; }
.skip-link:focus { top: 1rem; }
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .9rem; flex: none; min-width: 0; color: var(--ink); font-weight: 750; text-decoration: none; }
.brand img { width: 154px; height: auto; max-height: 44px; object-fit: contain; }
.brand span { border-left: 1px solid var(--line); padding-left: .9rem; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; }
.site-nav a { display: inline-flex; min-height: 42px; max-width: 100%; align-items: center; padding: .5rem .85rem; border-radius: .65rem; color: var(--ink); font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.site-nav a:hover, .site-nav a:focus-visible { background: var(--surface-soft); color: var(--blue); }
.site-nav .nav-account { color: var(--blue); border: 1px solid var(--line); margin-left: .3rem; }
main { min-height: 65vh; }
.eyebrow { color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .65rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 70ch; }
.hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .9fr); gap: 1.4rem; padding-top: 2.2rem; }
.hero-copy, .hero-aside, .offline-panel { min-width: 0; border: 1px solid var(--line); border-radius: 1.6rem; background: var(--surface); box-shadow: var(--shadow); }
.hero-copy { padding: clamp(1.5rem, 4vw, 3.3rem); background: radial-gradient(circle at 95% 0, rgba(66, 185, 255, .16), transparent 31%), var(--surface); }
.hero-aside { align-self: stretch; padding: 2rem; background: linear-gradient(145deg, var(--surface-soft), var(--surface)); }
.hero-aside h2 { font-size: 1.55rem; }
.hero-aside ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.hero-aside li + li { border-top: 1px solid var(--line); }
.hero-aside a { display: block; padding: .88rem .1rem; font-weight: 650; text-decoration: none; }
.hero-aside a::after { content: " →"; }
.search-form { margin-top: 1.6rem; }
.search-form label { display: block; margin-bottom: .5rem; font-weight: 750; }
.search-line { display: flex; gap: .65rem; }
.search-line input { min-width: 0; flex: 1; padding: .85rem 1rem; border: 1px solid #aabed5; border-radius: .75rem; background: #fff; color: #091a30; }
.search-line input::placeholder { color: #617188; opacity: 1; }
.search-line button, .button, .button-row button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.15rem; border: 1px solid var(--blue); border-radius: .75rem; background: var(--blue); color: #fff; font-weight: 750; text-align: center; text-decoration: none; }
.search-line button:hover, .button:hover, .button-row button:not(:disabled):hover { background: var(--blue-strong); border-color: var(--blue-strong); color: #fff; }
.button-secondary, .button-row .button-secondary { color: var(--blue); background: var(--surface); border-color: var(--line); }
.button-secondary:hover, .button-row .button-secondary:not(:disabled):hover { color: var(--blue); background: var(--surface-soft); border-color: var(--blue); }
.field-hint { margin: .65rem 0 0; color: var(--muted); font-size: .88rem; }
.section { margin: 3rem 0; }
.category-grid, .article-grid, .choice-grid { display: grid; gap: 1rem; }
.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-card, .article-card, .choice-card { min-width: 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.15rem; background: var(--surface); box-shadow: 0 12px 35px rgba(32, 76, 128, .065); }
.category-card { display: flex; flex-direction: column; gap: .5rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.category-card:hover, .article-card:hover { border-color: #87c8ff; box-shadow: 0 18px 38px rgba(32, 76, 128, .12); }
.category-label { min-width: 0; font: 750 1.23rem/1.3 Roboto, "Segoe UI", Arial, sans-serif; overflow-wrap: anywhere; }
.category-description { color: var(--muted); flex: 1; }
.category-meta { color: var(--blue); font-weight: 750; }
.article-card h3 a { color: var(--ink); text-decoration: none; }
.article-card h3 a:hover { color: var(--blue); text-decoration: underline; }
.article-card > p:not(.eyebrow) { color: var(--muted); }
.text-link { font-weight: 750; }
.help-choices { margin: 4rem 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.choice-card { background: linear-gradient(140deg, var(--surface), var(--surface-soft)); }
.choice-card .text-link { overflow-wrap: anywhere; }
.choice-card p:not(.eyebrow) { color: var(--muted); }
.hero-aside a { overflow-wrap: anywhere; }
.choice-card .button { margin-top: .4rem; }
.breadcrumb { margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.breadcrumb a, .breadcrumb span { overflow-wrap: anywhere; word-break: break-word; }
.breadcrumb li + li::before { content: "/"; color: #8ca1b9; margin-right: .4rem; }
.breadcrumb [aria-current] { color: var(--ink); }
.page-heading { max-width: 780px; padding: 2.3rem 0 1.5rem; }
.page-heading > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.page-heading + .search-form { max-width: 760px; margin-top: .5rem; }
.notice { padding: 1rem 1.15rem; border: 1px solid #b7dcff; border-radius: .75rem; background: #e9f5ff; color: #244866; }
.notice.error { border-color: #e9bcbc; background: #fff1f1; color: #843534; }
.empty-results { max-width: 770px; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.pagination a { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); font-weight: 700; text-decoration: none; }
.result-count { color: var(--muted); }
.guide { max-width: 880px; margin: 2rem auto 0; }
.guide-header { padding: 1.8rem 0 1.7rem; border-bottom: 1px solid var(--line); }
.guide-header h1 { max-width: 23ch; }
.availability { display: inline-block; margin: .6rem 0 0; padding: .8rem 1rem; border-radius: .7rem; background: var(--surface-soft); color: var(--ink); }
.guide-choices { margin: 2rem 0; }
.guide-choices > p { max-width: 72ch; }
.guide-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.guide-choice { min-width: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }
.guide-choice h3 { margin: 0 0 .5rem; font-size: 1.12rem; }
.guide-choice p { margin: 0 0 .8rem; color: var(--muted); }
.guide-choice a { font-weight: 750; overflow-wrap: anywhere; }
.guide-toc { margin: 2rem 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.guide-toc ol { columns: 2; min-width: 0; margin-bottom: 0; padding-left: 1.4rem; }
.guide-toc li { min-width: 0; break-inside: avoid; padding: .2rem 0; overflow-wrap: anywhere; }
.guide-toc a { overflow-wrap: anywhere; word-break: break-word; }
.guide-section { margin: 2.5rem 0; }
.steps { list-style: none; padding: 0; margin: 0; }
.step { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.steps-alternatives .step { grid-template-columns: minmax(0, 1fr); }
.step-number { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 750; }
.step-content { min-width: 0; overflow-wrap: anywhere; }
.step-content h3 { margin: 0 0 .45rem; font-size: 1.12rem; }
.step-content p { margin: .2rem 0 0; font-size: 1.04rem; }
.step-content p + p { margin-top: .8rem; }
.step-links { margin: 1rem 0 0; padding-left: 1.3rem; }
.step-links li { margin: .35rem 0; }
.step-links a, .guide-backlink a { font-weight: 700; overflow-wrap: anywhere; }
.guide-backlink { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.step figure { margin: 1.25rem 0 .2rem; }
.screenshot-link { display: inline-block; max-width: 100%; border-radius: .8rem; }
.screenshot-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.step figure img { display: block; width: auto; max-height: 680px; border: 1px solid var(--line); border-radius: .8rem; background: #fff; box-shadow: 0 12px 30px rgba(32, 76, 128, .1); }
.step figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.guide-section.result { padding: 1.4rem 1.6rem; border-left: 4px solid var(--accent); border-radius: .6rem; background: var(--surface-soft); }
.problem-list { padding-left: 1.3rem; }
.problem-list li { margin-bottom: .8rem; overflow-wrap: anywhere; }
.review-note { color: var(--muted); font-size: .86rem; border-top: 1px solid var(--line); padding-top: 1rem; overflow-wrap: anywhere; }
.offline-panel { max-width: 800px; margin: 1rem 0 4rem; padding: clamp(1.25rem, 3vw, 2rem); }
.button-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.button-row button { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 2rem; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .category-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 1rem; }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 1.5rem, 1180px); }
  .brand { flex-wrap: wrap; gap: .35rem; max-width: 100%; }
  .brand img { width: 125px; }
  .brand span { min-width: 0; font-size: .91rem; overflow-wrap: anywhere; }
  .site-nav { width: 100%; }
  .site-nav a { padding: .43rem .55rem; font-size: .88rem; }
  .hero { padding-top: 1.1rem; }
  .hero-copy, .hero-aside { padding: 1.3rem; }
  .category-grid, .article-grid, .choice-grid, .guide-choice-grid { grid-template-columns: 1fr; }
  .search-line { flex-direction: column; }
  .guide-toc ol { columns: 1; }
  .step { gap: .7rem; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --page: #030a16; --surface: #0c223f; --surface-soft: #102b4b; --ink: #fff; --muted: #c3d2e5; --line: #315579; --blue: #87c8ff; --blue-strong: #b6deff; --shadow: 0 20px 55px rgba(0,0,0,.3); }
  body { background: radial-gradient(circle at 82% 4%, rgba(36,140,255,.12), transparent 28%), linear-gradient(180deg,#020713,var(--page)); }
  .site-header { background: #07172b; }
  .hero-aside, .choice-card { background: linear-gradient(145deg,var(--surface-soft),var(--surface)); }
  .search-line input { background: #091a30; color: #fff; border-color: #557493; }
  .search-line input::placeholder { color: #bdd0e4; }
  .search-line button, .button, .button-row button { background: #116ec7; border-color: #116ec7; color: #fff; }
  .search-line button:hover, .button:hover, .button-row button:not(:disabled):hover { background: #086ecf; border-color: #086ecf; }
  .button-secondary, .button-row .button-secondary { color: var(--blue); background: var(--surface); border-color: var(--line); }
  .button-secondary:hover, .button-row .button-secondary:not(:disabled):hover { color: var(--blue); background: var(--surface-soft); border-color: var(--blue); }
  .notice { background: #163b5b; border-color: #3d7aad; color: #e7f4ff; }
  .notice.error { background: #4a2025; border-color: #bd777c; color: #fff; }
  .step figure img { background: #fff; }
  :focus-visible { outline-color: #f59e0b; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
