/* Shared pages are linked with relative paths and can be opened from disk. */
.guide-hero, .guide-task-intro, .guide-catalog, .guide-article, .guide-viewer {
  --guide-ink: #14384a;
  --guide-muted: #4b6976;
  --guide-teal: #096d68;
  --guide-line: #d5e5e7;
  color: var(--guide-ink);
}
.guide-hero *, .guide-task-intro *, .guide-catalog *, .guide-article *, .guide-viewer * { box-sizing: border-box }
.guide-icon { width: 1.25rem; height: 1.25rem; flex: none; display: inline-block; vertical-align: middle }
.guide-hero [hidden], .guide-catalog [hidden] { display: none !important }
.guide-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
.guide-hero, .guide-task-intro { background: linear-gradient(108deg,#eef8f5 0%,#f4faf9 52%,#ecf5fa 100%); border-bottom: 1px solid var(--guide-line) }
.guide-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; font-size: .88rem; font-weight: 550; padding-block: 1.5rem; color: var(--guide-muted) }
.guide-crumbs a, .guide-crumbs span { color: inherit; text-decoration: none }
.guide-crumbs a:hover { color: var(--guide-teal); text-decoration: underline }
.guide-catalog-heading, .guide-task-heading { margin: clamp(1.3rem,4vw,3.1rem) 0 1.7rem }
.guide-catalog-heading h1, .guide-task-heading h1 { font-size: clamp(2.45rem,6.8vw,5.25rem); line-height: 1.04; letter-spacing: -.054em; font-weight: 620; margin: 0; max-width: 19ch; color: var(--guide-ink); overflow-wrap: anywhere; text-wrap: balance }
.guide-catalog-heading p, .guide-task-heading > p { color: var(--guide-muted); font-size: clamp(1.04rem,1.6vw,1.24rem); max-width: 55ch; line-height: 1.5; margin: 1.2rem 0 0 }
.guide-search { display: flex; align-items: center; gap: .85rem; color: var(--guide-teal); background: white; max-width: 42rem; border: 1px solid #b3cece; border-radius: .95rem; box-shadow: 0 4px 20px #25434c07; padding-inline: 1.15rem; margin: 0 0 clamp(2.1rem,4vw,3.6rem); min-height: 3.55rem }
.guide-search:focus-within { outline: 2px solid var(--guide-teal); outline-offset: 2px }
.guide-search input { flex: 1; width: 0; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--guide-ink); padding: .82rem 0; font: inherit; border-radius: 0 }
.guide-search input::placeholder { color: #567480; opacity: 1 }
.guide-search input::-webkit-search-cancel-button { -webkit-appearance: none }
.guide-clear, .guide-empty button { cursor: pointer; color: var(--guide-teal); background: none; border: 0; font: inherit; font-weight: 620; padding: .5rem 0 }
.guide-clear { font-size: .85rem }
.guide-popular { padding-top: clamp(2.55rem,5vw,4.8rem) }
.guide-popular h2, .guide-directory > h2, .guide-extra > h2, .guide-related > h2 { color: var(--guide-ink); font-size: clamp(1.6rem,3.3vw,2.4rem); line-height: 1.16; letter-spacing: -.038em; font-weight: 620; margin: 0 0 1.35rem }
.guide-quick-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem }
.guide-quick { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 1.3rem; border: 1px solid #cce6e0; border-radius: 1.15rem; background: #eff8f4; color: var(--guide-ink); text-decoration: none; transition: border-color .2s,background .2s }
.guide-quick:nth-child(2) { background: #eef7fa; border-color: #d1e7ec }
.guide-quick:nth-child(3) { background: #f2f5fb; border-color: #dbe4f1 }
.guide-quick-symbol, .guide-topic-symbol { color: var(--guide-teal); display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: #dcf0e9 }
.guide-quick:nth-child(2) .guide-quick-symbol { color: #256c83; background: #d8edf2 }
.guide-quick:nth-child(3) .guide-quick-symbol { color: #44629a; background: #e1e8f5 }
.guide-quick strong { display: block; font-size: 1.17rem; line-height: 1.24; letter-spacing: -.025em }
.guide-quick small { display: block; margin-top: .38rem; font-size: .9rem; line-height: 1.4; color: var(--guide-muted) }
.guide-quick-arrow { position: absolute; right: 1.25rem; top: 1.6rem; color: #57767e }
.guide-quick:hover { border-color: #78a8a3 }
.guide-directory { margin: clamp(3rem,6vw,5.2rem) 0 clamp(3.6rem,7vw,6rem) }
.guide-directory-grid, .guide-article { display: grid; grid-template-columns: minmax(13rem,.33fr) minmax(0,1fr); gap: clamp(1.7rem,6vw,5.2rem); align-items: start }
.guide-topics-nav, .guide-index { position: sticky; top: 6rem; max-height: calc(100vh - 7rem); overflow: auto }
.guide-topics-nav nav, .guide-index nav { padding: .7rem; border: 1px solid var(--guide-line); border-radius: 1.05rem; background: #f8faf9 }
.guide-topics-nav a { display: flex; align-items: center; gap: .8rem; min-height: 2.8rem; padding: .65rem .75rem; border-radius: .55rem; text-decoration: none; line-height: 1.25; color: var(--guide-ink); font-size: .95rem; font-weight: 570 }
.guide-topics-nav a .guide-icon { color: #357e7b; width: 1.06rem; height: 1.06rem }
.guide-topics-nav a:hover, .guide-index li a:hover { background: #e4f1ed; color: #065851 }
.guide-topic { margin-bottom: 2.75rem }
.guide-topic:last-child { margin-bottom: 0 }
.guide-topic, .guide-topic-title, .guide-step, .guide-detail, .guide-task-intro { scroll-margin-top: 6rem }
.guide-topic-title { display: flex; gap: .8rem; align-items: center; margin-bottom: .68rem }
.guide-topic-title h3 { margin: 0; letter-spacing: -.028em; font-size: clamp(1.28rem,2.3vw,1.72rem); font-weight: 620; line-height: 1.2 }
.guide-topic-title .guide-topic-symbol { width: 2.15rem; height: 2.15rem; border-radius: .63rem; background: #edf6f3 }
.guide-topic-title .guide-icon { width: 1.12rem; height: 1.12rem }
.guide-device-intro { margin: 0 0 .6rem; color: var(--guide-muted); line-height: 1.52 }
.guide-task-list, .guide-steps-list, .guide-index ol { list-style: none; margin: 0; padding: 0 }
.guide-task-list li { border-bottom: 1px solid var(--guide-line) }
.guide-task-link { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.05rem .18rem; text-decoration: none; color: var(--guide-ink) }
.guide-task-link > span:first-child { min-width: 0 }
.guide-task-link strong, .guide-task-link small { display: block; overflow-wrap: anywhere }
.guide-task-link strong { font-size: 1.04rem; line-height: 1.35; font-weight: 620 }
.guide-task-link small { color: var(--guide-muted); font-size: .91rem; line-height: 1.47; margin-top: .22rem }
.guide-task-link:hover strong, .guide-related a:hover, .guide-resource a:hover { color: var(--guide-teal); text-decoration: underline; text-underline-offset: .17em }
.guide-link-end { color: var(--guide-muted); display: inline-flex; align-items: center; flex: none; gap: .7rem; white-space: nowrap; font-size: .78rem }
.guide-link-end .guide-icon { width: 1rem; height: 1rem }
.guide-empty { border: 1px solid var(--guide-line); border-radius: 1rem; padding: 1.6rem; background: #f7fbfa }
.guide-directory:has(.guide-topics-nav[hidden]) .guide-directory-grid { grid-template-columns: 1fr }
.guide-article-tag { display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1.1rem; color: #2e6769; font-size: .86rem; font-weight: 600 }
.guide-article-tag .guide-topic-symbol { width: 1.95rem; height: 1.95rem; border-radius: .55rem }
.guide-article-tag .guide-icon { width: 1.05rem; height: 1.05rem }
.guide-article-tag i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7 }
.guide-task-heading { padding-bottom: clamp(2.35rem,5vw,3.7rem); margin-bottom: 0 }
.guide-task-heading h1 { font-size: clamp(2.2rem,5.9vw,4.2rem); max-width: 24ch }
.guide-article { margin-top: clamp(2.25rem,5vw,4.15rem); margin-bottom: clamp(3rem,7vw,6rem) }
.guide-index { min-width: 0 }
.guide-index nav { padding: 1.1rem }
.guide-index h2 { font-size: 1rem; font-weight: 650; line-height: 1.3; letter-spacing: -.015em; margin: .1rem .25rem .8rem }
.guide-index li a { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; font-size: .88rem; padding: .45rem .25rem; border-radius: .3rem; color: var(--guide-muted); line-height: 1.35 }
.guide-index li span { color: var(--guide-teal); font-variant-numeric: tabular-nums }
.guide-return { display: block; border-top: 1px solid var(--guide-line); padding: 1rem .25rem .1rem; margin-top: .7rem; text-decoration: none; font-size: .9rem; color: var(--guide-teal); font-weight: 600 }
.guide-steps { min-width: 0; max-width: 52rem }
.guide-step { margin: 0 0 1.65rem; padding: 0 0 1.7rem; border-bottom: 1px solid var(--guide-line) }
.guide-step-header { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem }
.guide-step-number { flex: none; width: 2.15rem; height: 2.15rem; background: #e3f4ee; border-radius: .65rem; display: grid; place-items: center; color: #146d63; font-weight: 650; font-size: .98rem }
.guide-step-header h2 { margin: 0; letter-spacing: -.033em; font-size: clamp(1.32rem,2.3vw,1.8rem); font-weight: 650; line-height: 1.22; overflow-wrap: anywhere }
.guide-permalink { display: grid; place-items: center; color: #66878d; border-radius: .4rem; min-width: 1.9rem; min-height: 2rem; margin-left: auto }
.guide-permalink:hover { color: var(--guide-teal); background: #ebf5f2 }
.guide-permalink .guide-icon { width: 1.03rem; height: 1.03rem }
.guide-step-body > p, .guide-detail-inner > p { margin: .5rem 0; max-width: 67ch; font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere }
.guide-step-body > p.guide-note, .guide-detail-inner > p.guide-note { margin-top: .8rem; color: #46656a; font-size: .92rem; border-left: 2px solid #8bbdb9; padding-left: .75rem }
.guide-resource a { color: var(--guide-teal); font-weight: 630; text-decoration: underline; text-underline-offset: .16em }
.guide-resource .guide-icon { width: 1rem; height: 1rem }
.guide-figure { margin: 1.1rem 0 .85rem; max-width: 44rem }
.guide-photo { appearance: none; position: relative; width: 100%; display: grid; place-items: center; min-height: 5.4rem; overflow: hidden; padding: 1.2rem 2rem; background: #f2f6f7; border: 1px solid #dfe8ea; border-radius: .85rem; cursor: zoom-in; color: var(--guide-muted) }
.guide-photo img { display: block; max-width: 100%; width: auto; height: auto; max-height: 20rem; object-fit: contain; border-radius: .2rem }
.guide-figure-tall .guide-photo img { max-height: min(72svh, 33rem) }
.guide-figure-icon .guide-photo img { width: 5.4rem }
.guide-photo-zoom { position: absolute; right: .38rem; bottom: .38rem; border: 1px solid #d3e2e1; background: white; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: .55rem; color: var(--guide-teal) }
.guide-photo-zoom .guide-icon { width: 1rem; height: 1rem }
.guide-figure figcaption { font-size: .8rem; color: var(--guide-muted); margin: .48rem .1rem 0; line-height: 1.4 }
.guide-detail { margin: .7rem 0 0; padding: 0 .95rem; background: #f5f9f8; border: 1px solid #dbe8e6; border-radius: .7rem }
.guide-detail summary { display: list-item; cursor: pointer; color: #246764; font-weight: 600; font-size: .94rem; padding: .7rem 0; line-height: 1.38 }
.guide-detail summary::marker { color: #628e8a; font-size: .82em }
.guide-detail-inner { padding: 0 0 .7rem }
.guide-detail-inner > :first-child { margin-top: .15rem }
.guide-extra, .guide-related { margin-top: 2.8rem }
.guide-extra > h2, .guide-related > h2 { font-size: 1.55rem; margin-bottom: .75rem }
.guide-related a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem .1rem; border-bottom: 1px solid var(--guide-line); color: var(--guide-ink); line-height: 1.4; text-decoration: none; font-weight: 570 }
.guide-related .guide-all-link { color: var(--guide-teal) }
.guide-related .guide-icon { width: 1rem; height: 1rem }
.guide-viewer { position: fixed; inset: 0; margin: auto; padding: 0; width: min(94vw,70rem); max-width: 94vw; max-height: 90dvh; border: 1px solid #b4cdd0; border-radius: .9rem; overflow: hidden; background: #f4f7f8; box-shadow: 0 16px 70px #102f4160 }
.guide-viewer:not([open]) { display: none }
.guide-viewer::backdrop { background: #132f3acc }
.guide-viewer-top { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .7rem .9rem; background: white; border-bottom: 1px solid var(--guide-line) }
.guide-viewer-top strong { line-height: 1.25; font-size: .98rem; text-wrap: balance }
.guide-viewer-top > div { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end }
.guide-viewer-top button { font: inherit; font-size: .86rem; font-weight: 600; border: 1px solid #bcd4d3; border-radius: .45rem; color: var(--guide-teal); background: #f6faf9; padding: .72rem .7rem; cursor: pointer }
.guide-viewer-stage { height: min(65dvh,42rem); padding: 1rem; overflow: auto; display: flex }
.guide-viewer-stage img { width: auto; height: auto; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; flex: none }
.guide-viewer[data-actual] .guide-viewer-stage img { max-width: none; max-height: none }
:where(.guide-catalog, .guide-article, .guide-viewer) :is(button, a, summary):focus-visible { outline: 2px solid #08736d; outline-offset: 2px }
@media (max-width: 850px) {
  .guide-directory-grid, .guide-article { grid-template-columns: 1fr; gap: 1.5rem }
  .guide-topics-nav, .guide-index { position: static; max-height: none; overflow: visible }
  .guide-topics-nav nav { display: flex; flex-wrap: wrap; gap: .45rem; border: 0; padding: 0; background: none }
  .guide-topics-nav a { min-height: 2.15rem; border: 1px solid var(--guide-line); font-size: .85rem; padding: .45rem .6rem; gap: .4rem }
  .guide-topics-nav a .guide-icon { width: .94rem; height: .94rem }
  .guide-steps { max-width: none }
  .guide-index ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .6rem }
}
@media (max-width: 650px) {
  .guide-crumbs { padding-block: 1rem; font-size: .78rem }
  .guide-quick-grid { grid-template-columns: 1fr; gap: .6rem }
  .guide-quick { flex-direction: row; align-items: center; gap: .8rem; padding: .84rem 1rem }
  .guide-quick-symbol { flex: none; width: 2.25rem; height: 2.25rem }
  .guide-quick small { margin-top: .18rem; font-size: .84rem }
  .guide-quick-arrow { position: static; margin-left: auto }
  .guide-quick-arrow .guide-icon { width: 1.03rem; height: 1.03rem }
  .guide-directory { margin-top: 2.6rem }
  .guide-link-end span { display: none }
  .guide-topic { margin-bottom: 2rem }
  .guide-index ol { display: block }
  .guide-index .guide-return { display: none }
  .guide-photo { padding: .7rem 1.4rem }
  .guide-photo img { max-height: 18rem }
  .guide-viewer { max-height: 92dvh }
  .guide-viewer-stage { height: 60dvh }
  .guide-viewer-top { flex-wrap: wrap; align-items: flex-start }
  .guide-viewer-top > div { margin-left: auto }
}
