:root {
  color-scheme: light dark;
  --ink: #10202b;
  --muted: #5b6b76;
  --paper: #f6f9fb;
  --surface: #ffffff;
  --soft: #eaf2f7;
  --line: #cfdae2;
  --blue: #087cc1;
  --blue-strong: #0568a2;
  --blue-soft: #d9effb;
  --navy: #09283b;
  --shadow: 0 16px 42px rgba(12, 43, 62, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
}
a { color: inherit; }
img { display: block; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: var(--surface); border: 2px solid var(--blue); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  height: 76px;
  padding: 0 clamp(1.2rem, 5vw, 4.5rem);
  background: rgba(246, 249, 251, .92);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.06rem; letter-spacing: -.02em; }
.brand small { color: var(--muted); margin-top: .27rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.support-link { text-decoration: none; color: var(--blue-strong); font-weight: 700; padding: .5rem .8rem; border-radius: .55rem; }
.support-link:hover, .support-link:focus-visible { background: var(--blue-soft); outline: none; }

.ticker { height: 32px; overflow: hidden; background: var(--navy); color: white; font-size: .77rem; letter-spacing: .12em; font-weight: 700; white-space: nowrap; }
.ticker-track { min-width: max-content; display: flex; align-items: center; height: 100%; animation: ticker 25s linear infinite; }
.ticker span { margin: 0 2.2rem; }
.ticker b { color: #55c7f2; font-size: 1rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

.page-shell { display: grid; grid-template-columns: 245px minmax(0, 900px); gap: clamp(2rem, 5vw, 5rem); max-width: 1250px; margin: 0 auto; padding: 3.75rem clamp(1.25rem, 4vw, 3rem) 7rem; }
.sidebar { position: sticky; top: 134px; align-self: start; }
.eyebrow { margin: 0 0 .65rem; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; line-height: 1.3; font-weight: 800; color: var(--blue-strong); }
.sidebar nav { display: grid; gap: .15rem; margin-top: 1rem; }
.sidebar nav a { text-decoration: none; color: var(--muted); padding: .58rem .75rem; border-left: 3px solid transparent; border-radius: 0 .45rem .45rem 0; font-size: .94rem; }
.sidebar nav a:hover, .sidebar nav a:focus-visible { color: var(--ink); background: var(--soft); outline: none; }
.sidebar nav a.active { color: var(--blue-strong); background: var(--blue-soft); border-left-color: var(--blue); font-weight: 750; }
.sidebar-note { margin-top: 2rem; border-top: 1px solid var(--line); padding: 1.1rem .75rem 0; display: grid; color: var(--muted); font-size: .8rem; }
.sidebar-note strong { color: var(--ink); font-size: .85rem; }

main { min-width: 0; }
.intro { scroll-margin-top: 118px; }
.intro h1 { margin: 0; max-width: 780px; font-size: clamp(3.1rem, 7.4vw, 6.4rem); line-height: .94; letter-spacing: -.028em; font-weight: 780; }
.lede { max-width: 700px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.65; margin: 1.7rem 0 1.9rem; }
.search { height: 56px; max-width: 660px; display: flex; align-items: center; gap: .8rem; padding: 0 .8rem 0 1rem; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: .9rem; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 124, 193, .18), var(--shadow); }
.search svg { width: 21px; height: 21px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search input { min-width: 0; flex: 1; background: transparent; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 1rem; }
.search input::placeholder { color: var(--muted); opacity: .8; }
kbd { font-family: inherit; font-size: .75rem; font-weight: 700; border: 1px solid var(--line); background: var(--soft); border-radius: .35rem; padding: .18rem .38rem; color: var(--muted); white-space: nowrap; }

.quick-grid { margin-top: 2.7rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow); }
.quick-step { background: var(--surface); padding: 1.4rem; display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; }
.quick-step > span { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-strong); font-weight: 800; }
h2, h3, p { overflow-wrap: break-word; }
.quick-step h2 { font-size: 1rem; margin: .22rem 0 .3rem; }
.quick-step p { color: var(--muted); font-size: .91rem; margin: 0; }

.guide { scroll-margin-top: 120px; padding-top: 6.2rem; }
.guide[hidden] { display: none; }
.section-heading { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.section-heading > span { color: var(--blue); font-size: .8rem; font-weight: 800; padding-top: .35rem; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.04; letter-spacing: -.015em; margin: 0; }
.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; margin-top: 2rem; }
.guide h3 { font-size: 1.03rem; letter-spacing: -.01em; margin: 1.15rem 0 .45rem; }
.guide h3:first-child { margin-top: 0; }
.guide p { color: var(--muted); margin: .4rem 0 1rem; }
.guide ol { color: var(--muted); padding-left: 1.25rem; }
.guide li + li { margin-top: .4rem; }
.callout { margin-top: 1.4rem; border-left: 3px solid var(--blue); padding: .9rem 1rem; background: var(--blue-soft); border-radius: 0 .65rem .65rem 0; }
.callout p { margin: .2rem 0 0; color: var(--ink); }

.task-example { margin-top: 2.2rem; border: 1px solid var(--line); background: var(--surface); border-radius: .85rem; overflow: hidden; box-shadow: var(--shadow); }
.task-example-head { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; font-size: .84rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.task-example-head strong { color: var(--ink); }
.task-row { display: grid; grid-template-columns: 2rem 1fr auto 1.4rem; gap: .65rem; align-items: center; padding: .72rem 1rem; font-size: .92rem; }
.task-row:nth-child(odd) { background: var(--soft); }
.task-row.selected { background: var(--navy); color: white; }
.task-row b, .task-row time, .task-row i { color: var(--muted); font-style: normal; font-weight: 600; }
.task-row.selected b, .task-row.selected time, .task-row.selected i { color: #b8d6e6; }
.pill-list { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.pill-list li { min-height: 2.4rem; margin: 0 !important; padding: .42rem .78rem; border: 1px solid var(--line); background: var(--surface); border-radius: 2rem; display: inline-flex; align-items: center; line-height: 1.15; font-size: .85rem; font-weight: 700; color: var(--muted); }

.settings-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.settings-list article { background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; padding: 1.25rem; display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; }
.settings-list h3 { margin-top: .25rem; }
.settings-list p { margin-bottom: 0; font-size: .93rem; }
.mini-icon { width: 2.35rem; height: 2.35rem; display: grid; place-items: center; border-radius: .55rem; background: var(--blue-soft); color: var(--blue-strong); font-weight: 800; }

.shortcut-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.7rem; }
.shortcut-grid article { border-top: 3px solid var(--blue); background: var(--surface); padding: 1.25rem; box-shadow: var(--shadow); border-radius: 0 0 .75rem .75rem; }
.shortcut-grid h3 { min-height: 3.3rem; margin-top: 1rem; }
.shortcut-grid p { font-size: .9rem; margin-bottom: 0; }

.faq-list { margin-top: 1.7rem; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 1.1rem 2.6rem 1.1rem .1rem; font-weight: 750; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .35rem; top: .88rem; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--blue-strong); font-size: 1.25rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: -.25rem 3.4rem 1.3rem .1rem; max-width: 700px; }

.privacy-panel { margin-top: 1.8rem; background: var(--navy); color: white; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 1rem; }
.privacy-panel h3 { color: white; }
.privacy-panel p { color: #c6dae6; }
.button { display: inline-block; background: #18a6e2; color: white; text-decoration: none; font-weight: 800; padding: .65rem .9rem; border-radius: .55rem; margin-top: .35rem; }
.button:hover, .button:focus-visible { background: #39b6e9; outline: 3px solid rgba(255,255,255,.25); }
.results-empty { padding: 3rem 0 0; display: grid; color: var(--muted); }
.results-empty[hidden] { display: none; }
.results-empty strong { color: var(--ink); font-size: 1.2rem; }

footer { max-width: 1250px; margin: 0 auto; border-top: 1px solid var(--line); padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 3rem; display: flex; justify-content: space-between; color: var(--muted); font-size: .84rem; }
footer a { color: var(--blue-strong); font-weight: 700; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}

@media (max-width: 860px) {
  .page-shell { grid-template-columns: 1fr; padding-top: 2.3rem; }
  .sidebar { position: static; overflow-x: auto; padding-bottom: .35rem; }
  .sidebar > .eyebrow, .sidebar-note { display: none; }
  .sidebar nav { display: flex; width: max-content; margin: 0; }
  .sidebar nav a { border-left: 0; border-bottom: 3px solid transparent; border-radius: .45rem .45rem 0 0; white-space: nowrap; }
  .sidebar nav a.active { border-left: 0; border-bottom-color: var(--blue); }
  .intro h1 { font-size: clamp(3.2rem, 13vw, 5.5rem); }
}

@media (max-width: 650px) {
  .site-header { height: 68px; }
  .brand img { width: 40px; height: 40px; }
  .support-link { font-size: .88rem; padding-right: 0; }
  .page-shell { gap: 1rem; padding-left: 1rem; padding-right: 1rem; }
  .quick-grid, .content-grid, .settings-list, .shortcut-grid, .privacy-panel { grid-template-columns: 1fr; }
  .quick-grid { gap: 1px; }
  .guide { padding-top: 4.5rem; }
  .content-grid, .privacy-panel { gap: 1.2rem; }
  .section-heading { grid-template-columns: 2rem 1fr; }
  .search kbd { display: none; }
  .task-example-head { display: grid; }
  .task-row { grid-template-columns: 1.6rem minmax(0, 1fr) 1.2rem; }
  .task-row time { grid-column: 2; font-size: .78rem; }
  .task-row i { grid-column: 3; grid-row: 1 / 3; }
  .shortcut-grid h3 { min-height: 0; }
  details p { margin-right: .4rem; }
  footer { display: grid; gap: .6rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edf7fc;
    --muted: #a9bbc6;
    --paper: #10171c;
    --surface: #182229;
    --soft: #21313b;
    --line: #344651;
    --blue: #29aee7;
    --blue-strong: #64c5ef;
    --blue-soft: #14384a;
    --navy: #061b28;
    --shadow: 0 16px 42px rgba(0, 0, 0, .25);
  }
  .site-header { background: rgba(16, 23, 28, .92); }
  .task-row.selected { background: #07537b; }
}
