:root {
  --navy: #092646;
  --teal: #096b75;
  --ink: #20364b;
  --muted: #627383;
  --line: #dfe6ea;
  --bg: #f5f7f9;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #f87829; outline-offset: 3px; }
main:focus { outline: none; }
main { max-width: 720px; margin: auto; padding: 20px 16px 32px; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 20px; line-height: 1.6; color: var(--navy); }
h2 { font-size: 17px; color: var(--navy); }
h3 { font-size: 15px; }
svg { width: 24px; height: 24px; flex-shrink: 0; }
.skip { position: fixed; top: -100px; z-index: 9; background: white; padding: 12px; }
.skip:focus { top: 0; }
/* Role selection: the first content shown inside the app. */
.role-section { margin-bottom: 28px; }
.role-hint { color: var(--muted); font-size: 13px; margin: 4px 0 16px; }
.role-grid { display: grid; gap: 12px; }
.role-card { display: flex; gap: 14px; align-items: center; min-height: 94px; padding: 18px 16px; border: 1px solid #d6e2ea; border-radius: 10px; background: #f3f7fb; }
.role-card.wsm { background: #f1f8f6; border-color: #d4e6df; }
.role-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px; background: #e3edf5; color: var(--navy); }
.wsm .role-icon { background: #e0eeea; color: var(--teal); }
.role-card h2 { font-size: 18px; }
.role-card p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.chevron { margin-left: auto; font-size: 26px; color: var(--teal); }
.role-note { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
/* Compact list navigation, shared across phone and tablet WebViews. */
.back-nav { margin: -8px 0 12px; }
.back-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--teal); font-size: 13px; }
.guide-layout { display: block; }
.role-switch { display: flex; gap: 4px; background: #edf1f4; padding: 4px; border-radius: 8px; margin-bottom: 20px; }
.role-switch a { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 8px; border-radius: 6px; font-size: 14px; }
.role-switch a[aria-current] { background: var(--navy); color: white; }
.guide-heading p, .article-lead { margin: 5px 0 16px; color: var(--muted); font-size: 13px; }
.search { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 48px; border: 1px solid #cbd8df; border-radius: 8px; }
.search:focus-within { border-color: var(--teal); }
.search svg { width: 20px; color: var(--muted); }
.search input { min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink); font-size: 16px; }
.search input::placeholder { font-size: 13px; }
.result-count { color: var(--muted); font-size: 12px; margin: 10px 0 18px; }
.category { margin-bottom: 24px; }
.category h2 { margin: 0 0 10px; font-size: 15px; }
.category h2 span { margin-left: 8px; font-size: 11px; color: var(--muted); background: var(--bg); padding: 2px 7px; border-radius: 4px; }
.article-grid { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.article-card { display: flex; align-items: center; gap: 12px; padding: 15px 12px; min-height: 72px; }
.article-card + .article-card { border-top: 1px solid var(--line); }
.article-icon { display: flex; color: var(--teal); }
.article-icon svg { width: 21px; }
.article-card h3 { font-size: 14px; line-height: 1.7; }
.article-card p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.article-card > span:last-child { margin-left: auto; font-size: 23px; color: var(--muted); }
.no-results { padding: 18px; background: var(--bg); border-radius: 8px; }
.no-results h2 { font-size: 15px; }
.no-results p { font-size: 13px; margin: 10px 0; }
.no-results button { min-height: 44px; cursor: pointer; background: var(--navy); color: white; border: 0; border-radius: 5px; padding: 8px 15px; }
/* FAQs and support stay within the help content, without site chrome. */
.faq-section { scroll-margin-top: 16px; margin: 0 0 24px; }
.guide-main .faq-section { margin-top: 28px; }
.section-heading { margin-bottom: 10px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; min-height: 52px; padding: 15px 0; display: flex; gap: 10px; align-items: baseline; font-size: 13px; font-weight: 550; }
summary::-webkit-details-marker { display: none; }
summary:before { content: 'Q'; color: var(--teal); font-weight: 700; }
summary span { margin-left: auto; color: var(--teal); }
details[open] summary span { transform: rotate(45deg); }
details p { padding: 0 22px 16px; color: var(--muted); font-size: 13px; }
details p a { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal); margin-top: 4px; }
.support { padding: 16px; background: var(--bg); border-radius: 8px; }
.support h2 { font-size: 15px; }
.support p { font-size: 12px; color: var(--muted); margin: 5px 0 8px; }
.support > a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; color: var(--teal); font-size: 13px; }
.support > a span { font-size: 22px; }
/* Article content and replaceable media. */
.eyebrow { display: block; color: var(--teal); font-size: 12px; margin-bottom: 6px; }
.route-label { display: flex; gap: 12px; align-items: center; background: var(--bg); padding: 12px; border-radius: 6px; margin-bottom: 16px; }
.route-label svg { color: var(--teal); width: 20px; }
.route-label small { font-size: 11px; color: var(--muted); }
.route-label p { font-size: 13px; margin-top: 2px; }
.video { border-radius: 8px; overflow: hidden; background: #f0f5f6; border: 1px solid #e1eaec; }
.has-video { aspect-ratio: 16 / 9; }
.video iframe { display: block; border: 0; width: 100%; height: 100%; }
.media-placeholder { display: grid; grid-template-columns: 36px 1fr; gap: 0 12px; padding: 16px; align-items: center; }
.play { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: white; color: var(--teal); font-size: 23px; }
.media-placeholder strong { font-size: 13px; }
.media-placeholder > span:last-child { color: var(--muted); font-size: 12px; }
.steps-title { font-size: 17px; margin: 24px 0 16px; }
.steps { padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 40px; font-size: 14px; line-height: 1.9; }
.steps li:before { content: counter(step); position: absolute; left: 0; top: 0; background: #eaf3f3; color: var(--teal); font-weight: 700; font-size: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.note { border-left: 3px solid #b5a376; background: #faf9f4; padding: 14px 16px; margin: 0 0 20px; }
.note strong { font-size: 13px; }
.note p { font-size: 13px; color: #656a63; margin-top: 6px; }
.screenshot-placeholder { border: 1px dashed #d7e0e4; border-radius: 6px; padding: 16px 10px; display: flex; gap: 8px; justify-content: center; align-items: center; color: var(--muted); font-size: 12px; }
.screenshot-placeholder svg { width: 18px; }
.screen-image { margin: 20px 0; text-align: center; }
.screen-image img { max-width: 100%; max-height: 650px; object-fit: contain; }
.screen-image figcaption { font-size: 12px; color: var(--muted); }
.article-end { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 12px; display: flex; justify-content: space-between; gap: 18px; font-size: 13px; color: var(--teal); }
.article-end a { min-height: 44px; padding: 8px 0; }
.article-end > a:last-child { text-align: right; max-width: 60%; }
.article-end small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
[hidden] { display: none !important; }
@media (hover: hover) { .role-card:hover, .article-card:hover { background: #eaf2f5; } }
@media (min-width: 600px) { main { padding: 24px 24px 40px; } }
@media (max-width: 350px) { .role-card { gap: 10px; padding: 15px 12px; } .role-icon { width: 32px; height: 36px; } .role-card h2 { font-size: 17px; } }

.video-caption { margin: 8px 0 16px; color: var(--muted); font-size: 12px; white-space: pre-wrap; }
.steps li, .note p, .article-lead, .article-card p, details p { white-space: pre-wrap; }
