/* Shared reading layout. Authored text, anchors and media stay together. */
:root {
  --reader-font-size: 18px;
  --reader-line-height: 1.75;
  --reader-paragraph-gap: 1.3em;
  --reader-letter-spacing: 0;
  --reader-word-spacing: 0;
}

@media screen {
  body { font-size: var(--reader-font-size); line-height: var(--reader-line-height); }
  :is(a, button, input, select, summary):focus-visible { outline: 3px solid #193131; outline-offset: 4px; }
  :is(button, summary, select) { touch-action: manipulation; }
  [hidden] { display: none !important; }
  #app .page-container, #app .header-inner { width: min(1040px, calc(100% - 64px)); }
  #app .site-header { padding: 20px 0 0; }
  #app .header-inner { min-height: 72px; padding: 0; }
  #app .header-nav { gap: 28px; font-size: 15px; }
  #app .header-nav a { min-height: 48px; display: inline-flex; align-items: center; }
  #app .mobile-menu { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  #app .mobile-drawer a { min-height: 48px; padding: 12px 16px; font-size: 16px; }

  /* Bright brand-compatible category accents, with calm reading surfaces. */
  #app { --topic-accent: #3F8B93; --topic-surface: #F5FCFC; --topic-active-surface: #E1EFF0; }
  #app [data-topic-family="family-0"] { --topic-accent: #E1F168; }
  #app [data-topic-family="family-1"] { --topic-accent: #75C9EC; }
  #app [data-topic-family="family-2"] { --topic-accent: #36C8C2; }
  #app [data-topic-family="family-3"] { --topic-accent: #F5A283; }
  #app [data-topic-family="family-4"] { --topic-accent: #85D5A4; }
  #app [data-topic-family="family-network"] { --topic-accent: #AC91EB; }

  /* Start with the search and a short set of recognizable topic families. */
  /* Keep search suggestions above the positioned topic headings below. */
  #app .banner { z-index: 1; }
  #app .hero-content {
    display: block;
    width: min(1040px, calc(100% - 64px));
    margin: 48px auto 0;
    padding: 0 0 36px;
    border: 0;
    border-radius: 0;
    background: #FFFFFF;
  }
  #app .hero-introduction { display: block; margin: 0; }
  #app .hero-title { max-width: 28ch; margin: 0 0 24px; font-size: clamp(30px, 4vw, 42px); line-height: 1.3; letter-spacing: 0; text-align: left; }
  #app .hero-description { max-width: 65ch; margin: 0; font-size: var(--reader-font-size); line-height: var(--reader-line-height); text-align: left; }
  #app .hero-purpose { margin: 22px 0 0; font-size: 14px; line-height: 1.7; }
  #app .hero-brand-art, #app .card-icon, #app .collection-heading > .icon { display: none; }
  #app .hero-content .search-shell { width: 100%; max-width: none; margin-top: 30px; }
  #app .search-input, #app .hero-content .search-input { height: 66px; min-height: 66px; padding-left: 52px; padding-right: 208px; font-size: 18px; line-height: 1.5; border-radius: 9px; }
  #app .search-symbol, #app .hero-content .search-symbol { top: 23px; left: 19px; }
  #app .search-shortcut, #app .hero-content .search-shortcut { top: 24px; right: 133px; font-size: 12px; }
  #app .search-clear, #app .hero-content .search-clear { top: 11px; right: 122px; }
  #app .search-submit { top: 9px; bottom: 9px; right: 9px; min-height: 48px; padding: 0 18px; font-size: 15px; border-radius: 6px; }
  #app .search-popover { max-height: min(65vh, 500px); padding: 10px; border-radius: 9px; }
  #app .search-result { padding: 16px; min-height: 60px; }
  #app .search-result-title { font-size: 17px; line-height: 1.6; }
  #app .search-result-meta { margin-top: 6px; font-size: 14px; line-height: 1.6; }
  #app .search-all { min-height: 48px; padding: 14px 16px; font-size: 15px; }
  #app .home-main { padding-top: 20px; padding-bottom: 72px; }
  #app .topic-prompt { margin: 0 0 24px; font-size: 17px; line-height: 1.75; }
  #app .home-main > .topic-family,
  #app .home-main > .topic-family + .topic-family {
    margin: 0 0 20px;
    padding: 0;
    border: 2px solid var(--topic-accent);
    border-left-width: 5px;
    border-radius: 10px;
    background: #FFFFFF;
  }
  #app .family-summary { position: relative; padding: 26px 74px 26px 28px; list-style: none; cursor: pointer; border-radius: 10px; }
  #app .family-summary .section-title { display: block; margin: 0; font-size: 23px; line-height: 1.45; letter-spacing: 0; }
  #app :is(.family-summary, .collection-disclosure > summary, .module-summary)::after { content: '+'; position: absolute; right: 27px; top: 23px; color: #3F7276; font-size: 26px; line-height: 1.4; font-weight: 400; }
  #app :is(.family-disclosure, .collection-disclosure, .reading-module)[open] > summary::after { content: '−'; }
  #app .family-disclosure[open] > summary { background: #E1EFF0; border-bottom: 1px solid #B5D2D0; border-radius: 10px 10px 0 0; }
  #app .family-summary:hover { background: #F5FCFC; }
  #app .family-summary { background: var(--topic-surface); }
  #app .family-summary:hover,
  #app .family-disclosure[open] > summary { background: var(--topic-active-surface); }
  #app .family-disclosure .collections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 6px 28px 12px; }
  #app .family-disclosure .collection-card { min-height: 0; margin: 0; padding: 26px 0; border: 0; border-bottom: 1px solid #B5D2D0; border-radius: 0; background: #FFFFFF; box-shadow: none; }
  #app .family-disclosure .collection-card:hover { background: #F5FCFC; transform: none; }
  #app .family-disclosure .card-title { margin: 0; font-size: 20px; line-height: 1.5; letter-spacing: 0; }
  #app .help-banner { margin-top: 44px; padding-top: 28px; gap: 28px; }
  #app .help-banner h2 { font-size: 24px; line-height: 1.45; }
  #app .help-banner p { max-width: 60ch; margin-top: 16px; font-size: 17px; line-height: 1.8; }
  #app .help-banner .primary-button { min-height: 48px; font-size: 16px; }
  #app .support-email { font-size: 15px; line-height: 1.8; }

  /* Navigation moves out of the reading column until it is needed. */
  #app .inner-main { padding-top: 28px; }
  #app .help-layout { display: block; }
  #app .content-panel { width: 100%; max-width: 780px; margin: 0 auto; padding: 0; border: 0; border-radius: 0; }
  #app .content-panel > article { max-width: none; }
  #app .mobile-topic-picker { display: none; }
  #app .topic-nav { position: static; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 24px; width: 100%; max-width: 780px; max-height: none; margin: 0 auto 34px; padding: 0; overflow: visible; }
  #app .all-topics { min-height: 48px; margin: 0; padding: 10px 0; font-size: 15px; line-height: 1.75; }
  #app .topic-browser { position: relative; min-width: 184px; max-width: 100%; }
  #app .topic-browser > summary { position: relative; min-height: 48px; padding: 10px 44px 10px 18px; border: 1px solid #B5D2D0; border-radius: 7px; list-style: none; cursor: pointer; font-size: 15px; line-height: 1.75; }
  #app .topic-browser > summary::after { content: '+'; position: absolute; right: 16px; top: 8px; font-size: 22px; color: #3F7276; }
  #app .topic-browser[open] > summary::after { content: '−'; }
  #app .topic-browser[open] { flex-basis: 100%; }
  #app .topic-browser nav { margin-top: 16px; padding: 18px 24px; border: 1px solid #B5D2D0; border-radius: 8px; }
  #app .topic-browser-family + .topic-browser-family { margin-top: 12px; padding-top: 12px; border-top: 1px solid #B5D2D0; }
  #app .topic-browser-family > summary { min-height: 48px; padding: 10px 0; cursor: pointer; font-size: 17px; line-height: 1.65; }
  #app .topic-link { min-height: 48px; margin: 0; padding: 12px 16px; font-size: 16px; line-height: 1.65; }
  #app .topic-link.is-active { background: #E1EFF0; border-left-color: #3F7276; }
  #app .topic-sections { margin: 8px 0 18px 20px; }
  #app .topic-sections a { min-height: 44px; padding: 10px 0; font-size: 15px; line-height: 1.65; }
  #app .content-panel .breadcrumbs { margin-bottom: 28px; font-size: 15px; line-height: 1.75; gap: 9px; }

  /* Collections and search use the same predictable section rhythm. */
  #app .collection-page-head { margin-bottom: 34px; }
  #app .collection-heading h1, #app .results-heading { max-width: 30ch; font-size: clamp(28px, 3.5vw, 36px); line-height: 1.35; letter-spacing: 0; }
  #app .content-panel > .collection-group,
  #app .content-panel > .collection-group + .collection-group { margin: 0 0 22px; padding: 0; border: 2px solid var(--topic-accent); border-left-width: 4px; border-radius: 9px; scroll-margin-top: 28px; }
  #app .collection-disclosure > summary { position: relative; min-height: 76px; padding: 24px 70px 24px 26px; list-style: none; cursor: pointer; background: #F5FCFC; border-radius: 9px; }
  #app .collection-disclosure > summary .section-title { margin: 0; font-size: 22px; line-height: 1.5; letter-spacing: 0; }
  #app .collection-disclosure[open] > summary { background: #E1EFF0; border-bottom: 1px solid #B5D2D0; border-radius: 9px 9px 0 0; }
  #app .collection-disclosure > summary { background: var(--topic-surface); }
  #app .collection-disclosure > summary:hover,
  #app .collection-disclosure[open] > summary { background: var(--topic-active-surface); }
  #app .topic-link.is-active { background: var(--topic-active-surface); border-left-color: var(--topic-accent); }
  #app .collection-disclosure .article-links { display: block; margin: 0; padding: 0 26px 8px; }
  #app .collection-disclosure .article-link { min-height: 68px; margin: 0; padding: 21px 0; gap: 18px; border: 0; border-bottom: 1px solid #B5D2D0; border-radius: 0; font-size: 18px; line-height: 1.7; }
  #app .collection-disclosure .article-link:last-child { border-bottom: 0; }
  #app .collection-disclosure .article-link:hover { background: #F5FCFC; }

  /* Larger lists split into small choices, using simple rows instead of boxes. */
  #app .collection-subgroups { padding: 0 26px 8px; }
  #app .collection-subgroup { margin: 0; padding: 0; border: 0; scroll-margin-top: 28px; }
  #app .collection-subgroup + .collection-subgroup { border-top: 1px solid #B5D2D0; }
  #app .collection-subdisclosure > summary { position: relative; min-height: 66px; margin: 0; padding: 20px 42px 20px 0; list-style: none; cursor: pointer; background: #FFFFFF; }
  #app .collection-subdisclosure > summary > h3 { margin: 0; font-size: 20px; line-height: 1.6; letter-spacing: 0; overflow-wrap: anywhere; }
  #app .collection-subdisclosure > summary::after { content: '+'; position: absolute; right: 6px; top: 20px; color: #3F7276; font-size: 23px; line-height: 1.4; font-weight: 400; }
  #app .collection-subdisclosure[open] > summary::after { content: '−'; }
  #app .collection-subdisclosure > summary:hover { background: var(--topic-surface); }
  #app .collection-subdisclosure > .article-links { padding: 0 0 12px 16px; }
  #app .collection-subgroups .article-link { min-height: 64px; padding: 18px 0; }
  #app .results-summary { margin-top: 18px; font-size: 17px; line-height: 1.75; }
  #app .results-list { margin-top: 30px; display: grid; gap: 22px; }
  #app .result-card { display: block; padding: 26px; border: 1px solid #B5D2D0; border-radius: 9px; }
  #app .result-card > .icon { display: none; }
  #app .result-card h2 { font-size: 22px; line-height: 1.5; }
  #app .result-card p { max-width: 65ch; margin-top: 14px; font-size: 17px; line-height: 1.8; }
  #app .result-category { margin-top: 18px; font-size: 14px; line-height: 1.7; }
  #app .more-results { min-height: 48px; max-width: 100%; margin-top: 24px; padding: 12px 20px; border: 1px solid #3F7276; border-radius: 6px; background: #3F7276; color: #FFFFFF; font-size: 16px; line-height: 1.6; }
  #app .more-results:hover { background: #193131; border-color: #193131; }

  /* Guide sections open in place, so the reader keeps a stable location. */
  #app .article-title { max-width: 30ch; font-size: clamp(28px, 3.5vw, 36px); line-height: 1.4; letter-spacing: 0; }
  #app .article-audience { margin-top: 18px; font-size: 15px; line-height: 1.75; }
  #app .article-intro { max-width: 65ch; margin-top: 24px; font-size: var(--reader-font-size); line-height: var(--reader-line-height); }
  #app .article-body { margin-top: 32px; font-size: var(--reader-font-size); line-height: var(--reader-line-height); letter-spacing: var(--reader-letter-spacing); word-spacing: var(--reader-word-spacing); }
  #app .article-body > .article-section,
  #app .article-body > .article-section ~ .article-section { margin: 0 0 24px; padding: 0; border: 2px solid var(--topic-accent); border-radius: 10px; scroll-margin-top: 28px; }
  #app .module-summary { position: relative; min-height: 78px; padding: 24px 70px 24px 28px; list-style: none; cursor: pointer; background: #F5FCFC; border-radius: 10px; }
  #app .article-body .module-summary > h2 { max-width: 36ch; margin: 0; font-size: 23px; line-height: 1.5; letter-spacing: 0; }
  #app .reading-module[open] > .module-summary { background: #E1EFF0; border-bottom: 1px solid #B5D2D0; border-radius: 10px 10px 0 0; }
  #app .module-summary:hover { background: #E1EFF0; }
  #app .module-summary { background: var(--topic-surface); border-left: 5px solid var(--topic-accent); }
  #app .reading-module[open] > .module-summary,
  #app .module-summary:hover { background: var(--topic-active-surface); border-left: 5px solid var(--topic-accent); }
  #app .module-content { min-width: 0; padding: 28px; }
  #app .module-content > :is(p, ol, ul, dl, blockquote) { max-width: 65ch; }
  #app .article-body p { margin: 0 0 var(--reader-paragraph-gap); line-height: var(--reader-line-height); }
  #app .article-body h3 { margin: 34px 0 18px; font-size: 21px; line-height: 1.55; letter-spacing: 0; }
  #app .article-body h4 { margin: 28px 0 16px; font-size: 19px; line-height: 1.55; letter-spacing: 0; }
  #app .article-body :is(ul, ol) { margin: 0 0 28px; padding-left: 1.7em; }
  #app .article-body li { margin-bottom: 1em; padding-left: .3em; line-height: var(--reader-line-height); }
  #app .module-content > ol > li { margin-bottom: 20px; padding: 4px 0 20px 7px; border-bottom: 1px solid #B5D2D0; }
  #app .module-content > ol > li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
  #app .article-body ol > li::marker { color: #193131; font-weight: 600; }
  #app .article-body li > :is(ul, ol) { margin-top: 18px; margin-bottom: 0; }
  #app .article-body .setup-checklist { padding-left: 0; }
  #app .article-body .setup-checklist > li { gap: 16px; margin-bottom: 18px; padding: 8px 0 20px; border-bottom: 1px solid #B5D2D0; }
  #app .setup-checklist input[type="checkbox"] { flex-basis: 22px; width: 22px; height: 22px; margin-top: 6px; }
  #app .article-body :is(.article-note, .article-callout, blockquote, .message-example) { margin: 26px 0; padding: 18px 22px; font-size: var(--reader-font-size); line-height: var(--reader-line-height); }
  #app .article-body :is(.article-note, .article-callout, blockquote, .message-example) p { margin-bottom: 16px; }
  #app .article-body :is(.article-note, .article-callout, blockquote, .message-example) p:last-child { margin-bottom: 0; }
  #app .module-content > :last-child { margin-bottom: 0; }
  #app .article-body .faq { margin: 14px 0 0; padding: 0; border: 1px solid #B5D2D0; border-radius: 7px; }
  #app .article-body .faq > summary { min-height: 64px; padding: 20px 54px 20px 20px; font-size: var(--reader-font-size); line-height: 1.65; }
  #app .article-body .faq > summary::after { top: 19px; right: 19px; }
  #app .article-body .faq-answer { padding: 0 20px 22px; font-size: var(--reader-font-size); line-height: var(--reader-line-height); }
  #app .article-body .table-wrap { max-width: 100%; margin: 28px 0; overflow: auto; border: 1px solid #B5D2D0; border-radius: 6px; }
  #app .article-body table { width: 100%; min-width: 0; margin: 0; font-size: max(16px, calc(var(--reader-font-size) - 2px)); line-height: 1.7; }
  #app .article-body :is(th, td) { padding: 16px 18px; line-height: 1.7; vertical-align: top; }
  #app .article-body th a[href], #app .article-body th a[href]:is(:visited, :hover, :focus, :active) { color: #193131; }
  #app .article-body pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
  #app :is(.article-title, .section-title, .card-title, .collection-heading h1),
  #app .article-body :is(p, li, td, th, a, code) { overflow-wrap: anywhere; }
  #app .article-body :is(.article-screenshot, .article-motion, .article-visual-steps, .article-embedded-video) { margin-top: 28px; margin-bottom: 28px; }
  #app .article-body .article-motion-heading h3 { font-size: 16px; line-height: 1.65; }
  #app .article-body :is(.article-motion figcaption, .article-embedded-video figcaption) { font-size: 15px; line-height: 1.75; }
  #app .article-visual-steps { flex-wrap: wrap; }
  #app .article-visual-steps .text-button { min-height: 48px; padding: 10px 0; font-size: 16px; }
  #app .article-tools { margin-top: 36px; gap: 24px; font-size: 15px; line-height: 1.75; }
  #app .article-tools button { min-height: 44px; font-size: 15px; }
  #app .article-export-tools { gap: 24px; }
  #app .support-line { margin-top: 30px; font-size: 16px; line-height: 1.8; }
  #app :is(.setup-progress, .setup-next) { font-size: 16px; line-height: 1.8; }
  #app .setup-next { margin-top: 34px; padding-top: 26px; }
  #app .site-footer { margin-top: 48px; }
  #app :is(.family-summary, .collection-disclosure > summary, .collection-subdisclosure > summary, .module-summary, .topic-browser > summary)::-webkit-details-marker { display: none; }
}

@media screen and (max-width: 680px) {
  #app .page-container, #app .header-inner, #app .hero-content { width: calc(100% - 32px); }
  #app .site-header { padding-top: 12px; }
  #app .header-inner { min-height: 64px; }
  #app .header-nav { display: none; }
  #app .mobile-menu { display: inline-flex; }
  #app .hero-content { margin-top: 30px; padding-bottom: 26px; }
  #app .hero-title { font-size: 30px; }
  #app .hero-description { font-size: var(--reader-font-size); }
  #app .hero-content .search-shell { margin-top: 26px; }
  #app .search-shortcut, #app .hero-content .search-shortcut { display: none; }
  #app .search-input, #app .hero-content .search-input { padding-left: 46px; padding-right: 124px; font-size: 16px; }
  #app .search-symbol, #app .hero-content .search-symbol { left: 15px; }
  #app .search-submit { padding: 0 12px; font-size: 14px; }
  #app .search-clear, #app .hero-content .search-clear { display: none; }
  #app .family-summary { padding: 24px 56px 24px 22px; }
  #app .family-summary .section-title { font-size: 22px; }
  #app :is(.family-summary, .collection-disclosure > summary, .module-summary)::after { right: 20px; top: 21px; }
  #app .family-disclosure .collections-grid { grid-template-columns: 1fr; padding: 0 22px 12px; }
  #app .family-disclosure .collection-card { padding-block: 24px; }
  #app .topic-nav { gap: 12px; margin-bottom: 26px; }
  #app .topic-browser { min-width: 162px; }
  #app .topic-browser nav { padding: 14px 16px; }
  #app .topic-browser-family > summary { font-size: 16px; }
  #app .content-panel .breadcrumbs { font-size: 14px; margin-bottom: 24px; }
  #app .article-title, #app .collection-heading h1, #app .results-heading { font-size: 28px; }
  #app .collection-disclosure > summary { padding: 22px 56px 22px 20px; }
  #app .collection-disclosure > summary .section-title { font-size: 21px; }
  #app .collection-disclosure .article-links { padding-inline: 20px; }
  #app .collection-disclosure .article-link { font-size: 17px; }
  #app .collection-subgroups { padding-inline: 20px; }
  #app .collection-subdisclosure > summary { padding-block: 19px; }
  #app .collection-subdisclosure > summary > h3 { font-size: 19px; }
  #app .collection-subdisclosure > .article-links { padding-left: 12px; padding-right: 0; }
  #app .article-body > .article-section,
  #app .article-body > .article-section ~ .article-section { margin-bottom: 22px; border-radius: 8px; }
  #app .module-summary { padding: 22px 54px 22px 20px; border-radius: 8px; }
  #app .article-body .module-summary > h2 { font-size: 22px; }
  #app .module-content { padding: 24px 20px; }
  #app .article-body :is(.article-note, .article-callout, blockquote, .message-example) { padding: 16px 18px; }
  #app .article-body .faq > summary { padding-left: 16px; }
  #app .article-body .faq-answer { padding: 0 16px 20px; }
  #app .article-body :is(th, td) { padding: 13px 14px; }
  #app .article-tools, #app .article-export-tools { align-items: flex-start; flex-wrap: wrap; gap: 18px 24px; }
  #app .result-card { padding: 22px 20px; }
  #app .result-card h2 { font-size: 21px; }
  #app .help-banner { margin-top: 36px; }
}

@media screen and (max-width: 360px) {
  #app .topic-nav { display: block; }
  #app .topic-browser { margin-top: 10px; width: 100%; }
  #app .module-content { padding: 22px 16px; }
}

@media print {
  #app .more-results { display: none !important; }
  #app :is(.reading-module, .module-content) { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
  #app :is(.module-summary, .family-summary, .collection-disclosure > summary) { list-style: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
  #app :is(.module-summary, .family-summary, .collection-disclosure > summary)::after { display: none; }
  #app .family-summary .section-title { margin: 0 0 8pt; font-size: 15pt; line-height: 1.3; }
  #app :is(.collection-subgroups, .collection-subdisclosure) { display: block; margin: 0; padding: 0; border: 0; background: transparent; }
  #app .collection-subgroup { margin: 12pt 0; padding: 0; border: 0; }
  #app .collection-subdisclosure > summary { margin: 0 0 6pt; padding: 0; border: 0; list-style: none; background: transparent; break-after: avoid-page; }
  #app .collection-subdisclosure > summary > h3 { margin: 0; font-size: 11.5pt; line-height: 1.35; }
  #app .collection-subdisclosure > summary::after { display: none; }
  #app .collection-subdisclosure > summary::-webkit-details-marker { display: none; }
  #app .collection-subdisclosure > .article-links { margin: 0; padding: 0; }
}

/* Optional migration help stays quiet until a reader needs it. */
@media screen {
  #app .migration-disclosure { margin: 0 0 28px; padding: 0; border: 0; border-bottom: 1px solid #B5D2D0; background: #FFFFFF; }
  #app .migration-disclosure > summary { position: relative; min-height: 48px; padding: 12px 34px 12px 0; list-style: none; cursor: pointer; font-size: 16px; line-height: 1.6; color: #193131; }
  #app .migration-disclosure > summary::after { content: '+'; position: absolute; right: 7px; top: 10px; font-size: 22px; color: #3F7276; }
  #app .migration-disclosure[open] > summary::after { content: '−'; }
  #app .migration-disclosure > summary::-webkit-details-marker { display: none; }
  #app .migration-disclosure > div { padding: 8px 0 22px; max-width: 65ch; }
  #app .migration-disclosure p { font-size: 17px; line-height: 1.75; margin: 0 0 14px; }
  #app .result-category { display: block; }
}
@media print {
  #app .migration-disclosure > summary { font-size: 11.5pt; font-weight: 600; }
  #app .migration-disclosure > summary::after { display: none; }
}

/* Guidance for PDFs whose record-specific links open a list first. */
@media screen {
  #app .pdf-guidance { margin: 12px 0 0; max-width: 66ch; color: #456666; font-size: .875rem; line-height: 1.6; }
}
