/* Pharos guides: one stylesheet for every product guide. No web fonts, no external requests. */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1c2024;
  --muted: #5a636d;
  --line: #e2dfd7;
  --line-strong: #cfcac0;
  --brand: #0d6b58;
  --brand-ink: #ffffff;
  --brand-soft: #e3f1ec;
  --link: #0b5d82;
  --tip-bg: #e8f3ef; --tip-line: #0d6b58;
  --note-bg: #eef2f8; --note-line: #3b5b8c;
  --imp-bg: #fdf1e3; --imp-line: #b45309;
  --sup-bg: #f1edf7; --sup-line: #6b4fa0;
  --code-bg: #efede7;
  --shadow: 0 1px 2px rgba(20, 24, 28, .06), 0 4px 14px rgba(20, 24, 28, .05);
  --radius: 10px;
  --sidebar: 17.5rem;
  --topbar: 3.5rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131517; --surface: #1b1e21; --ink: #e8e6e1; --muted: #a2a9b1;
    --line: #2b3035; --line-strong: #3a4046; --brand: #4fbea4; --brand-ink: #0b1714; --brand-soft: #18302a;
    --link: #7cc4e6; --tip-bg: #172a25; --tip-line: #4fbea4; --note-bg: #1a2230; --note-line: #7f9fd0;
    --imp-bg: #2c2114; --imp-line: #e39a4b; --sup-bg: #241e30; --sup-line: #a88bd8; --code-bg: #24282c;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131517; --surface: #1b1e21; --ink: #e8e6e1; --muted: #a2a9b1;
  --line: #2b3035; --line-strong: #3a4046; --brand: #4fbea4; --brand-ink: #0b1714; --brand-soft: #18302a;
  --link: #7cc4e6; --tip-bg: #172a25; --tip-line: #4fbea4; --note-bg: #1a2230; --note-line: #7f9fd0;
  --imp-bg: #2c2114; --imp-line: #e39a4b; --sup-bg: #241e30; --sup-line: #a88bd8; --code-bg: #24282c;
  --shadow: none; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar) + 1rem); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
img, video { max-width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--surface); padding: .5rem .8rem; z-index: 50; }
.skip:focus { left: .5rem; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }

/* ---------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar);
  display: flex; align-items: center; gap: .9rem; padding: 0 1rem;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 1.6rem; height: 1.6rem; border-radius: 7px; background: var(--brand); box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--brand) 70%, #fff 30%); flex: none; }
.brand-name { font-weight: 650; letter-spacing: -.01em; }
.brand-sub { color: var(--muted); font-size: .92rem; padding-left: .55rem; border-left: 1px solid var(--line-strong); }
.menu-button {
  display: none; font: inherit; font-size: .95rem; padding: .35rem .7rem; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer;
}
.search { position: relative; margin-left: auto; width: min(22rem, 40vw); }
.search input {
  width: 100%; font: inherit; font-size: .95rem; padding: .42rem .75rem; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink);
}
.search-results {
  position: absolute; right: 0; top: calc(100% + .35rem); width: min(30rem, 92vw); max-height: 70vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: .35rem;
}
.search-results a { display: block; padding: .55rem .7rem; border-radius: 8px; color: var(--ink); text-decoration: none; }
.search-results a:hover, .search-results a.active { background: var(--brand-soft); }
.search-results .r-sec { display: block; font-size: .8rem; color: var(--muted); }
.search-results .r-title { font-weight: 600; }
.search-results .r-snip { display: block; font-size: .88rem; color: var(--muted); }
.search-results mark { background: color-mix(in srgb, var(--imp-line) 25%, transparent); color: inherit; border-radius: 2px; }
.search-results .r-none { padding: .7rem; color: var(--muted); margin: 0; }

/* ---------- layout */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  position: sticky; top: var(--topbar); align-self: start; height: calc(100vh - var(--topbar)); overflow-y: auto;
  padding: 1.25rem .75rem 2rem 1rem; border-right: 1px solid var(--line); font-size: .95rem;
}
.nav-section + .nav-section { margin-top: 1.1rem; }
.nav-heading { margin: 0 0 .3rem .55rem; font-size: .75rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a { display: block; padding: .32rem .55rem; border-radius: 7px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.sidebar li a:hover { background: var(--brand-soft); }
.sidebar li a[aria-current="page"] { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.nav-foot { margin: 1.6rem 0 0 .55rem; font-size: .88rem; }

.content { padding: 1.5rem clamp(1rem, 4vw, 3.5rem) 4rem; max-width: 56rem; width: 100%; }
.crumbs { margin: 0 0 .4rem; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span { padding: 0 .25rem; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5rem; }
.lede { font-size: 1.16rem; color: var(--muted); margin: 0 0 1.6rem; max-width: 42rem; }
h2 { font-size: 1.38rem; line-height: 1.3; margin: 2.4rem 0 .7rem; padding-top: 1.2rem; border-top: 1px solid var(--line); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; margin: 1.6rem 0 .4rem; }
p, ul, ol, table { max-width: 44rem; }
li + li { margin-top: .3rem; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--code-bg); padding: .08em .35em; border-radius: 4px; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* ---------- steps that jump the video */
ol.steps { list-style: none; padding-left: 0; counter-reset: step; }
ol.steps > li.step { position: relative; padding-left: 2.5rem; min-height: 1.8rem; }
ol.steps > li.step + li.step { margin-top: .55rem; }
ol.steps > li.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: .12rem;
  width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  font-weight: 700; font-size: .85rem; display: grid; place-items: center;
}
li.step > p { margin: 0; }
.seek {
  display: inline-flex; align-items: center; gap: .2rem; margin-right: .45rem; vertical-align: .08em;
  font: 600 .78rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: .28rem .4rem; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--link); cursor: pointer;
}
.seek::before { content: "\25B6\FE0E"; font-size: .58rem; }
.seek:hover { border-color: var(--link); }
.seek.playing { background: var(--link); color: var(--surface); border-color: var(--link); }

/* ---------- video */
.video { margin: 1.2rem 0 1.6rem; max-width: 52rem; }
.video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); box-shadow: var(--shadow); }
.video figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .5rem .2rem 0; font-size: .9rem; }
.video-title { font-weight: 600; }
.video-meta { color: var(--muted); }
.video-meta a { color: var(--muted); }
.clip-end {
  margin-top: .5rem; font: inherit; font-size: .9rem; padding: .4rem .8rem; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}

/* ---------- callouts */
.callout { margin: 1.3rem 0; padding: .8rem 1rem .8rem 1.1rem; border-radius: var(--radius); border-left: 4px solid; max-width: 44rem; }
.callout p { margin: .3rem 0; }
.callout-label { display: block; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .1rem; }
.callout-tip { background: var(--tip-bg); border-color: var(--tip-line); }
.callout-tip .callout-label { color: var(--tip-line); }
.callout-note { background: var(--note-bg); border-color: var(--note-line); }
.callout-note .callout-label { color: var(--note-line); }
.callout-important { background: var(--imp-bg); border-color: var(--imp-line); }
.callout-important .callout-label { color: var(--imp-line); }
.callout-support { background: var(--sup-bg); border-color: var(--sup-line); }
.callout-support .callout-label { color: var(--sup-line); }
blockquote { margin: 1.2rem 0; padding: .2rem 1rem; border-left: 3px solid var(--line-strong); color: var(--muted); }

/* ---------- tables */
table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.4rem; font-size: .96rem; display: block; overflow-x: auto; }
thead th { text-align: left; font-weight: 650; border-bottom: 2px solid var(--line-strong); }
th, td { padding: .5rem .7rem .5rem 0; vertical-align: top; border-bottom: 1px solid var(--line); }
th + th, td + td { padding-left: .7rem; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- cards on guide home and site home */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; margin: 1.2rem 0 1.8rem; max-width: 52rem; padding: 0; list-style: none; }
.cards li { margin: 0; }
.cards a { display: block; height: 100%; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.cards a:hover { border-color: var(--brand); }
.cards strong { display: block; margin-bottom: .2rem; color: var(--brand); }
.cards span { display: block; color: var(--muted); font-size: .95rem; line-height: 1.45; }

/* ---------- checklists */
ul.checklist { list-style: none; padding-left: 0; }
ul.checklist li { position: relative; padding-left: 1.9rem; }
ul.checklist li::before { content: ""; position: absolute; left: 0; top: .28rem; width: 1.05rem; height: 1.05rem; border: 2px solid var(--line-strong); border-radius: 4px; background: var(--surface); }

/* ---------- pager and footer */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 3rem 0 0; max-width: 52rem; }
.pager a { display: block; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; }
.pager a:hover { border-color: var(--brand); }
.pager span { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }
.pager-next { grid-column: 2; text-align: right; }
.page-foot { margin-top: 2.5rem; font-size: .85rem; color: var(--muted); }

/* ---------- site home */
body.home { min-height: 100vh; display: grid; place-items: start center; }
.home-main { width: min(56rem, 100%); padding: clamp(2rem, 8vw, 5rem) 1rem 4rem; }
.home-main h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.product-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.product-card:hover { border-color: var(--brand); }
.product-name { font-size: 1.2rem; font-weight: 650; }
.product-desc { color: var(--muted); font-size: .96rem; line-height: 1.45; flex: 1; }
.product-go { color: var(--brand); font-weight: 600; font-size: .95rem; margin-top: .4rem; }

/* ---------- small screens */
@media (max-width: 62rem) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .menu-button { display: inline-block; }
  .sidebar {
    position: fixed; z-index: 30; left: 0; top: var(--topbar); width: min(20rem, 86vw); height: calc(100vh - var(--topbar));
    background: var(--surface); transform: translateX(-102%); transition: transform .18s ease; box-shadow: 8px 0 24px rgba(0,0,0,.12);
  }
  body.nav-open .sidebar { transform: none; }
  .brand-sub { display: none; }
  .search { width: auto; flex: 1; }
}
@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .topbar { gap: .5rem; padding: 0 .75rem; }
  .brand-name { font-size: .95rem; }
  .content { padding: 1.1rem 1rem 3rem; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }

/* ---------- print: the steps, not the screen furniture */
@media print {
  :root { --bg: #fff; --surface: #fff; --ink: #000; --muted: #444; --link: #000; }
  .topbar, .sidebar, .pager, .video, .seek, .skip, .clip-end { display: none !important; }
  .shell { display: block; }
  .content { max-width: none; padding: 0; }
  ol.steps > li.step { padding-left: 2rem; }
  h2 { break-after: avoid; }
  .callout, table, li { break-inside: avoid; }
  a { text-decoration: none; }
}
