* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--color-page, #f6f8f5); color: #26352b; font: 16px/1.75 var(--font-body, system-ui, sans-serif); }
[hidden] { display: none !important; }
a { color: #1b5e20; text-underline-offset: .2em; }
a:hover { color: #133f17; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #ad6900; outline-offset: 4px; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 10; padding: .75rem 1rem; background: #fff; border: 2px solid #1b5e20; }
.skip-link:focus { top: 1rem; }
.help-page-authenticated { padding: 1rem; }
.help-page-public { padding-top: 78px; }
.help-page-public .topic-sidebar { top: 6.5rem; max-height: calc(100dvh - 7.5rem); }
.help-page-public article { scroll-margin-top: 6rem; }
.page-shell { max-width: 1440px; margin: auto; padding: 0 2rem; }
.intro { padding: 3.5rem 0 2rem; }
.eyebrow { color: #355a3a; font-size: .75rem; letter-spacing: .12em; font-weight: 800; display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.preview { color: #70520b; background: #fff4d0; border: 1px solid #e6cd83; padding: .15rem .6rem; border-radius: 20px; font-size: .7rem; letter-spacing: .02em; }
h1, h2, h3 { font-family: var(--font-heading, system-ui); color: #183e22; line-height: 1.3; }
h1 { font-size: clamp(2rem, 4.5vw, 3.35rem); letter-spacing: -.045em; max-width: 1000px; margin: 1rem 0; }
.lede { max-width: 780px; font-size: 1.15rem; color: #526156; }
.intro-meta { color: #5e6b61; font-size: .8rem; }
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.quick-links a { text-decoration: none; display: grid; grid-template-columns: auto 1fr; gap: 0 .75rem; background: #fff; border: 1px solid #dce4db; border-radius: 12px; padding: 1.1rem; }
.quick-links a:hover { border-color: #2e7d32; background: #f0f7ee; }
.quick-links span { color: #758d6d; grid-row: span 2; font-size: .9rem; font-weight: 800; }
.quick-links strong { line-height: 1.5; font-size: .92rem; }
.quick-links small { color: #5e6b61; font-size: .76rem; }
.help-layout { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-bottom: 3rem; }
.topic-sidebar { position: sticky; top: 1rem; max-height: calc(100dvh - 2rem); overflow: auto; padding: .25rem .6rem .5rem 0; scrollbar-width: thin; }
.search-box { background: #edf3e9; border: 1px solid #d4e0ce; border-radius: 10px; padding: 1rem; margin-bottom: 1rem; }
.search-box label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: .5rem; }
.search-box input { width: 100%; min-width: 0; min-height: 44px; background: #fff; border: 1px solid #a5b7a0; border-radius: 6px; padding: .55rem; font-size: .85rem; }
.search-box button, .print-button { border: 1px solid #94a78c; border-radius: 6px; color: #1b5e20; background: #fff; min-height: 44px; padding: .35rem .8rem; margin-top: .6rem; font-size: .85rem; }
#search-status { margin: .4rem 0 0; min-height: 1.5em; color: #4f614d; font-size: .75rem; }
.topic-menu { border: 0; }
.topic-menu summary { font-weight: 800; padding: .4rem 0; min-height: 44px; }
.topic-menu nav p { margin: 1.2rem 0 .35rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: #65735e; }
.topic-menu nav a { display: flex; align-items: center; text-decoration: none; font-size: .86rem; min-height: 44px; padding: .3rem .65rem; border-left: 2px solid #dbe5d6; line-height: 1.45; }
.topic-menu nav a:hover, .topic-menu nav a[aria-current="location"] { background: #eaf2e6; border-left-color: #2e7d32; }
.sidebar-note { color: #5b6a5d; font-size: .78rem; line-height: 1.6; padding: .75rem .25rem 0; }
main { min-width: 0; }
.guide-note { font-size: .8rem; color: #5b6a5d; border-left: 3px solid #c6d6bc; padding: .3rem 1rem; margin: .25rem 0 1.5rem; }
article { background: #fff; border: 1px solid #dce4db; border-radius: 14px; margin-bottom: 1.5rem; padding: clamp(1.2rem, 3vw, 2.4rem); scroll-margin-top: 1.5rem; }
.article-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.article-heading > a { min-width: 44px; min-height: 44px; text-align: right; color: #61735c; text-decoration: none; font-weight: 700; }
.badge { display: inline-block; font: 700 .72rem/1.6 var(--font-body, system-ui); background: #edf4e9; color: #31552b; border: 1px solid #d7e5cf; border-radius: 20px; padding: .15rem .65rem; }
.badge.pro { background: #fff6d9; border-color: #ead79b; color: #73510b; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: .15rem 0 1rem; letter-spacing: -.025em; }
h3 { font-size: 1.06rem; margin: 1.5rem 0 .6rem; }
article p { margin: .8rem 0; }
article ol, article ul { padding-left: 1.6rem; margin: 1rem 0; }
article li { padding-left: .25rem; margin-bottom: .7rem; }
article li::marker { color: #2b642b; font-weight: 800; }
.tip, .notice { border-radius: 8px; padding: 1rem 1.15rem; font-size: .91rem; }
.tip { border-left: 4px solid #5e8a4d; background: #f1f6ed; }
.notice { border-left: 4px solid #bb8423; background: #fff8e7; color: #654d20; }
.table-scroll { overflow-x: auto; margin: 1.2rem 0; border: 1px solid #dce4db; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .84rem; min-width: 540px; }
caption { text-align: left; padding: .75rem 1rem; font-weight: 800; background: #edf3e9; }
th, td { vertical-align: top; padding: .75rem 1rem; border-bottom: 1px solid #e3e9df; }
thead th { background: #f8faf6; }
tbody th { font-weight: 600; width: 42%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.screenshot { margin: 1.25rem 0 .5rem; border: 1px solid #ceddca; border-radius: 10px; background: #f8faf6; overflow: hidden; }
.screenshot summary { padding: .9rem 1rem; color: #244f28; font-size: .9rem; font-weight: 700; min-height: 48px; }
.screenshot[open] summary { border-bottom: 1px solid #ceddca; }
figure { padding: 1rem; margin: 0; text-align: center; }
figure a { display: block; max-width: 560px; margin: auto; }
figure img { width: 100%; height: auto; display: block; border: 1px solid #e1e6dd; border-radius: 6px; }
figcaption { color: #52614e; font-size: .8rem; line-height: 1.6; margin: .8rem auto .1rem; max-width: 560px; text-align: left; }
.troubleshooting dt { font-weight: 800; color: #244c29; margin-top: 1.25rem; }
.troubleshooting dd { margin: .4rem 0 1rem; }
.help-footer { border-top: 1px solid #d4dfce; padding: 1rem .2rem 0; color: #596854; font-size: .8rem; }
@media (max-width: 1100px) {
    .quick-links { grid-template-columns: repeat(2, 1fr); }
    .help-layout { grid-template-columns: 225px minmax(0, 1fr); gap: 1.5rem; }
}
@media (max-width: 760px) {
    .page-shell { padding-left: 1rem; padding-right: 1rem; }
    .intro { padding-top: 2rem; }
    .lede { font-size: 1rem; }
    .quick-links { gap: .6rem; }
    .quick-links a { grid-template-columns: 1fr; padding: .85rem; }
    .quick-links span { display: none; }
    .quick-links strong { font-size: .85rem; }
    .help-layout { display: block; }
    .topic-sidebar, .help-page-public .topic-sidebar { position: static; max-height: none; overflow: visible; padding: 0; margin-bottom: 1.5rem; }
    .topic-menu { padding: .5rem 1rem; background: #fff; border: 1px solid #dce4db; border-radius: 10px; }
    .topic-menu nav { columns: 2; column-gap: 1rem; }
    .topic-menu nav a, .topic-menu nav p { break-inside: avoid; }
    .sidebar-note { padding: 0; }
    article { padding: 1.15rem; }
    article ol, article ul { padding-left: 1.3rem; }
    .badge { max-width: calc(100% - 40px); }
    figure { padding: .5rem; }
}
@media (max-width: 420px) { .topic-menu nav { columns: 1; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media screen {
    html[data-theme="dark"] .help-page { color: var(--color-text); }
    html[data-theme="dark"] .page-shell :is(h1, h2, h3, .troubleshooting dt) { color: var(--color-heading); }
    html[data-theme="dark"] .page-shell a { color: var(--color-link); }
    html[data-theme="dark"] .page-shell :is(.lede, .eyebrow, .intro-meta, .quick-links small, .quick-links span, .guide-note, .sidebar-note, .help-footer, figcaption, #search-status, .topic-menu nav p) { color: var(--color-muted); }
    html[data-theme="dark"] .page-shell :is(article, .quick-links a, .topic-menu, .search-box input, .search-box button, .print-button) { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border); }
    html[data-theme="dark"] .page-shell :is(.search-box, .screenshot, caption, thead th, .topic-menu nav a:hover, .topic-menu nav a[aria-current="location"]) { background: var(--color-surface-soft); border-color: var(--color-border); }
    html[data-theme="dark"] .page-shell .topic-menu nav a[aria-current="location"] { border-left-color: var(--color-link); }
    html[data-theme="dark"] .page-shell :is(th, td, .table-scroll, .screenshot summary, figure img) { border-color: var(--color-border); }
    html[data-theme="dark"] .page-shell .screenshot summary { color: var(--color-link); }
    html[data-theme="dark"] .page-shell :is(.tip, .badge) { background: var(--color-success-bg); color: var(--color-success); border-color: var(--color-success-border); }
    html[data-theme="dark"] .page-shell :is(.notice, .badge.pro) { background: var(--color-warning-bg); color: var(--color-warning); border-color: var(--color-warning-border); }
}
@media print {
    @page { margin: 14mm; }
    body { background: #fff; color: #000; font-size: 10pt; }
    .help-page { padding: 0; }
    .skip-link, .help-site-navigation, .help-site-footer, .help-footer, .topic-sidebar, .quick-links, .article-heading > a, #back-to-top, .preview { display: none !important; }
    a:focus, a:focus-visible { outline: none; }
    .page-shell { padding: 0; }
    .intro { padding: 1rem 0; }
    .help-layout { display: block; }
    #help-articles > article[hidden] { display: block !important; }
    article { border: 0; padding: 1rem 0; border-bottom: 1px solid #ccc; }
    h2, h3, summary, .article-heading { break-after: avoid; }
    h2 + ol, h2 + ul, h3 + ol, h3 + ul, li:first-child { break-before: avoid; }
    li { break-inside: avoid; }
    p, li { orphans: 3; widows: 3; }
    .screenshot, figure, table, .tip, .notice { break-inside: avoid; }
    .screenshot { overflow: visible; }
    figure a { max-width: 100%; }
    figure img { max-height: 155mm; width: auto; max-width: 100%; margin: auto; }
    .table-scroll { overflow: visible; }
    table { min-width: 0; }
    a { color: #000; }
}
