/* ConnectGH DMS Tutorials - brand: green #0B3D2E, gold #E0A732, page #F4F6F2 */
:root {
  --green: #0B3D2E;
  --green-2: #145A43;
  --green-soft: #E7EFEC;
  --gold: #E0A732;
  --gold-dark: #9A6D12;
  --bg: #F4F6F2;
  --surface: #FFFFFF;
  --text: #1E2321;
  --muted: #5B6661;
  --line: #DCE3DE;
  --code-bg: #0F2A21;
  --code-text: #E6F0EB;
  --link: #0E6B4D;
  --shadow: 0 1px 2px rgba(11, 61, 46, .06), 0 6px 20px rgba(11, 61, 46, .07);
  --radius: 12px;
  --topbar: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --green-soft: #17322A;
    --bg: #0F1513;
    --surface: #161E1B;
    --text: #E4EAE7;
    --muted: #9AA8A2;
    --line: #26332E;
    --code-bg: #0A110E;
    --link: #6FD1A8;
    --gold-dark: #E0A732;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--topbar) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--link); text-underline-offset: 2px; }
.icon { width: 18px; height: 18px; flex: none; }
kbd {
  font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 3px 6px; border-radius: 5px;
  border: 1px solid currentColor; opacity: .55;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 6px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar);
  display: flex; align-items: center; gap: 20px;
  padding: 0 20px;
  background: var(--green); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 2px 10px rgba(0, 0, 0, .12);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; white-space: nowrap; }
.brand .mark { width: 34px; height: 30px; color: #fff; }
.brand span { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand b { color: var(--gold); }
.brand em { font-style: normal; font-weight: 500; opacity: .75; margin-left: 2px; }
.topnav { display: flex; gap: 4px; }
.topnav a {
  color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 7px 12px; border-radius: 8px;
}
.topnav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.topnav a[aria-current] { background: rgba(255, 255, 255, .14); color: #fff; }
.menu-btn {
  display: none; background: none; border: 0; color: #fff; padding: 8px; margin-left: -8px;
  border-radius: 8px; cursor: pointer;
}
.menu-btn .icon { width: 22px; height: 22px; }

/* ---------- Search ---------- */
.search { position: relative; margin-left: auto; width: min(340px, 40vw); }
.search > .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .7); pointer-events: none; }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #fff; pointer-events: none; }
.search input {
  width: 100%; height: 38px; padding: 0 38px 0 36px;
  border-radius: 9px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 14px;
}
.search input::placeholder { color: rgba(255, 255, 255, .65); }
.search input:focus { outline: none; background: #fff; color: var(--text); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224, 167, 50, .35); }
.search input:focus + kbd, .search:focus-within > .icon { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.results {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: min(520px, calc(100vw - 32px));
  max-height: min(70vh, 560px); overflow: auto;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  padding: 6px;
}
.results a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: inherit; }
.results a:hover, .results a[aria-selected="true"] { background: var(--green-soft); }
.results .r-guide { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }
.results .r-title { display: block; font-weight: 650; color: var(--text); }
.results .r-snip { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.results mark { background: rgba(224, 167, 50, .35); color: inherit; border-radius: 2px; }
.results .empty { padding: 14px; color: var(--muted); font-size: 14px; }

/* ---------- Home ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(224, 167, 50, .22), transparent 60%),
    linear-gradient(160deg, var(--green) 0%, #0D4A37 100%);
  color: #fff;
}
.hero-inner { max-width: 960px; margin: 0 auto; padding: 72px 24px 80px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -.02em; margin: 8px 0 14px; max-width: 18ch; }
.lede { font-size: 18px; color: rgba(255, 255, 255, .82); max-width: 60ch; margin: 0 0 28px; }
.hero-search {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px;
  padding: 14px 16px; border-radius: 12px; border: 0; cursor: text;
  background: #fff; color: var(--muted); font: inherit; font-size: 15px; text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.hero-search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrap { max-width: 960px; margin: 0 auto; padding: 40px 24px 56px; }
.section-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 8px 0 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 44px; }
.card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px; border-radius: var(--radius); text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--gold); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); margin-bottom: 8px;
}
@media (prefers-color-scheme: dark) { .card-icon { color: var(--gold); } }
.card-icon .icon { width: 22px; height: 22px; }
.card-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }
.card-title { font-size: 21px; font-weight: 750; letter-spacing: -.01em; }
.card-blurb { color: var(--muted); font-size: 15px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--muted); }
.card-foot .arrow { color: var(--link); transition: transform .15s ease; }
.card:hover .arrow { transform: translateX(3px); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
  display: inline-block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 550;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
.chips a:hover { border-color: var(--green); background: var(--green-soft); }

/* ---------- Video tutorials ---------- */
.hero-inner.with-video { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.overview { margin: 0; }
.overview video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #08251C; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.overview figcaption { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.wrap.wide { max-width: 1180px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px;
  background: var(--gold); color: #1E1A10; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer;
}
.btn:hover { background: #EAB548; }
.btn small { font-weight: 500; opacity: .75; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--green); background: var(--green-soft); }
.vhero { background: linear-gradient(160deg, var(--green) 0%, #0D4A37 100%); color: #fff; }
.vhero-inner { max-width: 1180px; margin: 0 auto; padding: 56px 24px 64px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.vhero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin: 8px 0 14px; }
.vhero .eyebrow, .hero .eyebrow { color: var(--gold); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.filters button {
  font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
}
.filters button span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.filters button[aria-pressed="true"] span { color: rgba(255, 255, 255, .7); }
.group-title { font-size: 20px; letter-spacing: -.01em; margin: 36px 0 14px; display: flex; align-items: baseline; gap: 10px; }
.group-title span { font-size: 13px; font-weight: 500; color: var(--muted); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; }
.vgroup .vgrid { margin-bottom: 0; }
.vcard { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.vcard[hidden] { display: none; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--green); box-shadow: var(--shadow); margin-bottom: 8px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.vcard:hover .thumb img { transform: scale(1.04); }
.play {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(224, 167, 50, .95); color: #1E1A10;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3); opacity: 0; transform: scale(.85); transition: opacity .2s ease, transform .2s ease;
}
.play .icon { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; }
.vcard:hover .play, .vcard:focus-visible .play { opacity: 1; transform: none; }
.dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; font-weight: 600; }
.vmeta { display: flex; align-items: center; gap: 8px; }
.vnum { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }
.badge { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
@media (prefers-color-scheme: dark) { .badge { color: var(--gold); } }
.vtitle { font-size: 17px; font-weight: 700; line-height: 1.3; }
.vcard:hover .vtitle { color: var(--link); }
.vlearn { font-size: 13.5px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Player dialog */
.player {
  width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px;
  background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: auto;
}
.player::backdrop { background: rgba(6, 20, 15, .75); }
.p-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px 14px; }
.p-head h2 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.01em; }
.p-close { background: none; border: 0; color: var(--muted); padding: 6px; border-radius: 8px; cursor: pointer; }
.p-close:hover { background: var(--green-soft); color: var(--text); }
.p-close .icon { width: 22px; height: 22px; }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 64vh; background: #000; }
.p-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; padding: 18px 22px 24px; }
.p-body h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 8px; }
.p-body ol, .p-body ul { margin: 0 0 14px; padding-left: 1.3em; }
.p-body li { margin: 3px 0; }
.ticks { list-style: none; padding-left: 0 !important; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 2px; color: var(--gold-dark); font-weight: 800; }
.p-notes { font-size: 14px; color: var(--muted); margin: 0; }
.p-side { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.p-side .btn { justify-content: center; }
.p-practice { font-size: 14px; padding: 12px 14px; border-radius: 10px; background: var(--green-soft); }
.p-practice:empty { display: none; }
.p-practice p { margin: 0 0 4px; font-weight: 650; }
.p-practice code { background: none; padding: 0; font-size: 12.5px; word-break: break-all; }
.p-next { margin-top: 4px; font-weight: 650; font-size: 14px; text-decoration: none; }
.p-next:empty { display: none; }

/* "Watch the video" links inside the User Guide */
.watch-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.watch {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 10px;
  text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.watch:hover { border-color: var(--gold); }
.watch > .icon { width: 30px; height: 30px; padding: 8px 7px 8px 9px; border-radius: 8px; background: var(--gold); color: #1E1A10; fill: currentColor; }
.watch span { display: flex; flex-direction: column; line-height: 1.25; font-weight: 650; font-size: 14.5px; }
.watch small { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.doc h2 + .watch-row { margin-top: -4px; }

/* ---------- Guide layout ---------- */
.layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); max-width: 1280px; margin: 0 auto; }
.sidebar {
  position: sticky; top: var(--topbar); align-self: start;
  height: calc(100vh - var(--topbar)); overflow-y: auto;
  padding: 28px 16px 40px 24px; border-right: 1px solid var(--line);
  font-size: 14px;
}
.side-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px 10px; }
.toc, .toc ul { list-style: none; margin: 0; padding: 0; }
.toc > li { margin-bottom: 2px; }
.toc a { display: block; padding: 5px 10px; border-radius: 7px; text-decoration: none; color: var(--text); line-height: 1.35; }
.toc > li > a { font-weight: 650; }
.toc ul { margin: 2px 0 8px 10px; padding-left: 8px; border-left: 1px solid var(--line); display: none; }
.toc li.open > ul { display: block; }
.toc ul a { color: var(--muted); font-size: 13.5px; }
.toc a:hover { background: var(--green-soft); color: var(--text); }
.toc a.active { background: var(--green-soft); color: var(--green); font-weight: 650; box-shadow: inset 3px 0 0 var(--gold); }
@media (prefers-color-scheme: dark) { .toc a.active { color: var(--gold); } }

.doc { padding: 40px clamp(20px, 5vw, 64px) 64px; max-width: 900px; min-width: 0; }
.doc-head { padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin: 0; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin: 6px 0 6px; color: var(--green); }
@media (prefers-color-scheme: dark) { .doc h1 { color: var(--text); } }
.meta { color: var(--muted); font-size: 14px; margin: 0; }
.doc h2 {
  font-size: 26px; line-height: 1.25; letter-spacing: -.015em; margin: 56px 0 14px;
  padding-top: 8px; border-top: 3px solid var(--gold); display: inline-block;
}
.doc h3 { font-size: 19px; margin: 34px 0 8px; }
.doc h2, .doc h3 { position: relative; }
.doc h2 + h3 { margin-top: 18px; }
.anchor { margin-left: 8px; opacity: 0; text-decoration: none; color: var(--muted); font-weight: 400; }
.doc h2:hover .anchor, .doc h3:hover .anchor, .anchor:focus { opacity: 1; }
.doc p, .doc li { max-width: 72ch; }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc li { margin: 4px 0; }
.doc ol > li::marker { color: var(--gold-dark); font-weight: 700; }
.doc strong { font-weight: 650; }

.callout {
  margin: 20px 0; padding: 14px 18px; border-radius: 10px;
  background: var(--green-soft); border-left: 4px solid var(--green);
}
@media (prefers-color-scheme: dark) { .callout { border-left-color: var(--gold); } }
.callout p { margin: 0; }
.callout strong:first-child { color: var(--green); margin-right: 4px; }
@media (prefers-color-scheme: dark) { .callout strong:first-child { color: var(--gold); } }
.callout-warning { background: rgba(224, 167, 50, .14); border-left-color: var(--gold); }

.table-wrap { overflow-x: auto; margin: 18px 0 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--green); color: #fff; font-weight: 650; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: rgba(11, 61, 46, .03); }

code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--green-soft); padding: 1px 5px; border-radius: 5px; }
pre.code {
  position: relative; margin: 16px 0 22px; padding: 16px 18px; overflow-x: auto;
  background: var(--code-bg); color: var(--code-text); border-radius: 10px; font-size: 13.5px; line-height: 1.55;
}
pre.code code { background: none; padding: 0; color: inherit; font-size: inherit; }
.copy {
  position: absolute; top: 8px; right: 8px; font: 600 12px/1 inherit; font-family: inherit;
  padding: 6px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; opacity: .75;
}
.copy:hover { opacity: 1; }
:target { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: rgba(224, 167, 50, .35); } 100% { background: transparent; } }
.to-top { display: inline-block; margin-top: 48px; font-size: 14px; font-weight: 600; }

/* ---------- Footer ---------- */
/* Mirrors the company letterhead: green-over-gold rule, mark + wordmark left, details right. */
.footer { background: var(--surface); color: var(--text); font-size: 15px; }
.footer-rule { height: 13px; background: linear-gradient(var(--green) 0 8px, transparent 8px 10px, var(--gold) 10px 13px); }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 24px 24px 22px; }
.footer .help { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.footer .help strong { color: var(--text); }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--link); text-decoration: underline; }
.letterhead { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.lh-brand { display: flex; align-items: center; gap: 14px; }
.lh-brand .mark { width: 74px; height: 64px; color: var(--green); }
.lh-word { font-size: 44px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--green); position: relative; padding-bottom: 20px; }
.lh-word b { color: var(--gold); }
.lh-word small {
  position: absolute; left: 0; bottom: 0; width: 62%; padding-top: 5px;
  border-top: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .35em; text-transform: uppercase; color: var(--text);
}
.lh-details { font-style: normal; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.lh-name { font-weight: 800; letter-spacing: .04em; color: var(--green); font-size: 17px; }
.lh-tagline { font-style: italic; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.lh-details b { color: var(--green); font-weight: 700; }
.lh-details i { font-style: normal; color: var(--muted); margin: 0 6px; }
.lh-details .nw { white-space: nowrap; }
@media (prefers-color-scheme: dark) {
  .lh-brand .mark, .lh-word, .lh-name, .lh-details b { color: #E4EAE7; }
  .footer-rule { background: linear-gradient(#2F7A5E 0 8px, transparent 8px 10px, var(--gold) 10px 13px); }
}
.fine { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner.with-video, .vhero-inner { grid-template-columns: 1fr; gap: 32px; }
  .p-body { grid-template-columns: 1fr; }
  .topnav { display: none; }
  .layout { display: block; }
  .menu-btn { display: block; }
  .sidebar {
    position: fixed; z-index: 40; left: 0; top: var(--topbar); width: min(320px, 86vw);
    background: var(--surface); box-shadow: 8px 0 30px rgba(0, 0, 0, .2);
    transform: translateX(-105%); transition: transform .2s ease;
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: var(--topbar) 0 0 0; background: rgba(0, 0, 0, .35); z-index: 30; }
}
@media (max-width: 640px) {
  .topbar { gap: 10px; padding: 0 16px; }
  .brand em { display: none; }
  .search { width: auto; flex: 1; min-width: 0; }
  .search kbd, .hero-search kbd { display: none; }
  .results { position: fixed; left: 16px; right: 16px; top: calc(var(--topbar) + 6px); width: auto; }
  .hero-inner { padding: 48px 16px 56px; }
  .wrap { padding: 32px 16px 48px; }
  .doc { padding: 28px 16px 48px; }
  .doc h2 { font-size: 23px; }
  .lh-details { align-items: flex-start; text-align: left; }
  .lh-details i { display: none; }
  .lh-details > span > .nw { display: block; }
  .lh-word { font-size: 36px; }
  .lh-brand .mark { width: 60px; height: 52px; }
  th { white-space: normal; }
}
@media (max-width: 380px) { .brand span { display: none; } }

@media print {
  .topbar, .sidebar, .footer, .to-top, .copy, .anchor, .watch-row { display: none !important; }
  .layout { display: block; }
  .doc { max-width: none; padding: 0; }
  body { background: #fff; color: #000; }
  a { color: inherit; text-decoration: none; }
  h2, h3 { break-after: avoid; }
  table, pre, .callout { break-inside: avoid; }
}

/* ---------- Guide pages on white (2026-10-14) ---------- */
@media (prefers-color-scheme: light) {
  body.guide { --bg: #FFFFFF; }
  body.guide .sidebar { background: #FFFFFF; }
}
