/* A — supporting flows, reading pages and print. Core UI lives in styles.css. */

/* Buying candidates: keep the section open, and reserve framing for each product. */
.shopping-section {
  padding-block: 64px;
  scroll-margin-top: 28px;
  border-top: 1px solid var(--line);
}
.shopping-intro {
  max-width: 76ch;
  margin: 14px 0 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.shopping-fit { margin-block: 30px 36px; }
.shopping-fit h3,
.shopping-official h3,
.shopping-total h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -.025em;
}
.shopping-fit ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
  padding: 20px 0 24px;
  margin: 16px 0 0;
  border-block: 1px solid var(--line);
  counter-reset: shopping-check;
}
.shopping-fit li {
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  counter-increment: shopping-check;
}
.shopping-fit li::before {
  content: counter(shopping-check, decimal-leading-zero);
  display: block;
  margin-bottom: 7px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.offers-section { margin-top: 36px; }
.ad-label { margin-bottom: 10px; color: var(--muted); font-size: 14px; line-height: 1.8; }
#offers-title { font-size: 22px; font-weight: 700; line-height: 1.6; letter-spacing: -.025em; }
.shopping-offer-note { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-block: 24px; }
.shopping-official {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 36px;
  padding-block: 32px;
  margin-top: 38px;
  border-block: 1px solid var(--line);
}
.shopping-official p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.shopping-official > .small-note { grid-column: 1 / -1; margin-top: 0; }
.shopping-official-links { display: grid; align-content: start; gap: 12px; min-width: 0; }
.shopping-official-links a { display: block; max-width: 100%; text-align: left; overflow-wrap: anywhere; }
.shopping-total { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 34px; }
.shopping-total .points { margin-block: 18px; }
.shopping-return { min-width: 0; padding-left: 32px; border-left: 1px solid var(--line); }
.shopping-return > p:first-child { font-size: 20px; font-weight: 700; line-height: 1.7; margin-bottom: 20px; }
.shopping-return button { width: 100%; max-width: 100%; white-space: normal; }
.shopping-return .small-note { margin-top: 14px; }
.shopping-entry {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.shopping-entry:hover { border-color: var(--primary); background: var(--primary-soft); }
.shopping-entry > span { flex-shrink: 0; }
.shopping-entry + .small-note { margin-top: 10px; }

/* Explicit file saving and restoration. */
.resume-section {
  margin-block: 28px 60px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  scroll-margin-top: 28px;
}
.resume-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: 32px; }
.resume-heading h2 { font-size: 30px; font-weight: 700; line-height: 1.5; letter-spacing: -.035em; }
.resume-heading p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.resume-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; }
.resume-actions button { flex: 1 1 190px; max-width: 100%; white-space: normal; }
.resume-section > .small-note { margin-top: 20px; }
.resume-status { margin-top: 16px; color: var(--success); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.resume-status:empty { display: none; }
.resume-status.is-error { color: var(--danger); }
.session-status { margin: 16px 0; }
.session-status:empty { display: none; }
.session-status.is-error { color: var(--danger); }
.resume-preview { margin-top: 26px; padding-top: 26px; border-top: 2px solid var(--primary); overflow-wrap: anywhere; }
.resume-preview h3 { font-size: 24px; font-weight: 700; line-height: 1.6; }
.resume-preview > p { margin-top: 14px; }
.resume-device-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; list-style: none; padding: 0; margin: 24px 0; }
.resume-device-list li { min-width: 0; padding-left: 16px; border-left: 2px solid var(--line); }
.resume-device-list strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.resume-device-list span { display: block; color: var(--muted); font-size: 14px; line-height: 1.8; }
.resume-replace-note { padding: 14px 18px; border-left: 3px solid var(--warning); background: var(--warning-soft); color: var(--ink); font-size: 16px; line-height: 1.8; }
.resume-preview > .resume-actions { margin-top: 24px; justify-content: start; }
.resume-preview > .resume-actions button { flex: 0 1 auto; }
#resume-warnings:empty { display: none; }
#resume-warnings:not(:empty) { padding-left: 22px; margin-block: 18px; color: var(--warning); font-size: 14px; line-height: 1.8; }

/* Symptoms, safety guidance and source attribution. */
.check-section { padding-block: 60px; border-top: 1px solid var(--line); scroll-margin-top: 28px; }
.safety-box { padding: 18px 22px; margin-block: 26px; border-left: 3px solid var(--warning); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--warning-soft); }
.safety-box summary { min-height: 36px; color: var(--warning); font-size: 16px; font-weight: 700; line-height: 1.8; cursor: pointer; }
.safety-box summary::marker { color: var(--warning); }
.safety-box[open] summary { margin-bottom: 14px; }
.safety-box p { font-size: 16px; line-height: 1.8; }
.safety-box p + p { margin-top: 12px; }
.safety-box .source-list { margin-top: 20px; }
.check-filter { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(180px, 320px); align-items: center; gap: 14px; margin: 30px 0 20px; }
.check-filter > span { min-width: 0; font-size: 18px; font-weight: 700; }
.check-filter label { font-size: 14px; }
.check-filter input { min-width: 0; width: 100%; }
.guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-option { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-align: left; line-height: 1.8; overflow-wrap: anywhere; }
.guide-option strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.7; }
.guide-option span { display: block; margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.guide-option:hover { border-color: var(--primary); }
.guide-option[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.guide-option[aria-pressed="true"] strong { color: var(--primary); }
.guide-option .guide-scope-label { padding-top: 11px; margin-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
#guide-count { margin-top: 14px; }
.guide-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; padding-top: 30px; margin-top: 30px; border-top: 1px solid var(--line); scroll-margin-top: 28px; }
.guide-copy { min-width: 0; }
.guide-copy h3 { font-size: 24px; font-weight: 700; line-height: 1.6; letter-spacing: -.025em; }
.guide-first { margin: 18px 0 14px; font-size: 18px; font-weight: 700; line-height: 1.8; color: var(--ink); }
.guide-copy > p { line-height: 1.8; }
.guide-steps { display: grid; gap: 0; margin: 22px 0; }
.guide-step { display: flex; align-items: flex-start; gap: 13px; padding-block: 18px; border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.guide-step input { width: 20px; height: 20px; margin-top: 5px; flex-shrink: 0; accent-color: var(--primary); }
.guide-step > div { min-width: 0; }
.guide-step strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.8; }
.guide-step p { margin-top: 7px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.guide-step:has(input:checked) strong { color: var(--success); }
.guide-note { margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--line-strong); color: var(--warning); font-size: 14px; line-height: 1.8; }
.guide-references { min-width: 0; padding-left: 28px; border-left: 1px solid var(--line); }
.guide-references h4 { margin: 0 0 18px; font-size: 16px; font-weight: 700; line-height: 1.8; }
.source-list { display: grid; gap: 18px; }
.source-item { min-width: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.source-item:last-child { border-bottom: 0; padding-bottom: 0; }
.source-item a { display: inline-block; padding-block: 5px; color: var(--primary); font-size: 14px; font-weight: 700; line-height: 1.8; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.source-item p { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.source-list + .small-note { margin-top: 20px; }
.feedback { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 28px 0 12px; border: 0; }
.feedback legend { margin-bottom: 10px; font-size: 16px; font-weight: 700; }
.feedback label { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; line-height: 1.8; cursor: pointer; }
.feedback input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--primary); }
.guide-share { padding-top: 22px; margin-top: 26px; border-top: 1px solid var(--line); }
.guide-share .small-note { margin-top: 12px; }
.guide-link-field { display: block; margin-top: 18px; font-size: 14px; font-weight: 700; }
.guide-link-field input { display: block; width: 100%; min-width: 0; margin-top: 8px; }
.guide-share [role="status"]:empty { display: none; }
.guide-applicability { margin-block: 20px; padding-left: 16px; border-left: 2px solid var(--primary); color: var(--muted); font-size: 14px; line-height: 1.8; }
.loading-error { padding: 20px; border-left: 3px solid var(--warning); background: var(--warning-soft); color: var(--ink); }
.loading-error p { font-size: 16px; line-height: 1.8; margin-bottom: 16px; }

/* The user's choice and the concrete next-action checklist. */
.decision-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; padding-block: 36px; margin-block: 16px 30px; border-block: 1px solid var(--line); }
.decision-section h2 { font-size: 30px; font-weight: 700; line-height: 1.5; letter-spacing: -.035em; }
.decision-section .help { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.decision-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.decision { min-width: 0; min-height: 48px; padding: 11px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.8; }
.decision:hover:not([aria-pressed="true"]) { border-color: var(--line-strong); background: var(--primary-soft); }
.decision[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--surface); }
.decision[aria-pressed="true"]:hover { border-color: var(--primary-hover); background: var(--primary-hover); }
.decision-summary { color: var(--muted); font-size: 16px; line-height: 1.8; }
.next-section { padding-block: 42px 60px; }
.next-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.next-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.next-card.is-selected { border-color: var(--primary); }
.next-card .card-kicker { color: var(--primary); font-size: 13px; font-weight: 700; line-height: 1.7; }
.next-card h3 { font-size: 22px; font-weight: 700; line-height: 1.6; letter-spacing: -.025em; }
.next-card > p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.next-card details { font-size: 14px; line-height: 1.8; }
.next-card summary { min-height: 44px; font-weight: 700; cursor: pointer; }
.next-card .shopping-entry { width: 100%; margin-top: 0; }
.next-card > .inline-link { align-self: start; }
.plan-choice { width: 100%; min-height: 48px; max-width: 100%; margin-top: auto; text-align: left; white-space: normal; }
.plan-choice[aria-pressed="true"] { color: var(--surface); background: var(--primary); border-color: var(--primary); }
.plan-choice[aria-pressed="true"]:hover:not(:disabled) { color: var(--surface); background: var(--primary-hover); border-color: var(--primary-hover); }
.action-plan { padding: 28px; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); scroll-margin-top: 28px; }
.action-plan-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.action-plan-heading > div { min-width: 0; }
.action-plan h3 { font-size: 24px; font-weight: 700; line-height: 1.6; letter-spacing: -.025em; }
.action-plan-heading p:not(.eyebrow):not(.action-progress) { margin-top: 12px; max-width: 70ch; color: var(--muted); font-size: 16px; line-height: 1.8; }
.action-progress { flex-shrink: 0; max-width: 100%; padding: 7px 11px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary); font-size: 14px; font-weight: 700; line-height: 1.8; }
.action-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.action-item { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.action-item:hover { border-color: var(--line-strong); }
.action-item.is-checked { border-color: var(--primary); background: var(--primary-soft); }
.action-item input { width: 20px; height: 20px; margin-top: 5px; flex-shrink: 0; accent-color: var(--primary); }
.action-item-copy { min-width: 0; }
.action-item-copy strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.8; }
.action-item-copy > span { display: block; margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.action-plan-footer { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-top: 24px; margin-top: 26px; border-top: 1px solid var(--line); }
.action-plan-footer > div { min-width: 0; max-width: 65ch; }
.action-plan-footer .primary-button { flex-shrink: 0; max-width: 100%; white-space: normal; }
.action-plan-footer .small-note + .small-note { margin-top: 8px; }

/* Static information and generated symptom pages share the same article system. */
.reading-page { max-width: 900px; min-width: 0; padding-block: 44px 80px; }
.reading-page h1 { margin: 8px 0 24px; font-size: clamp(32px, 4vw, 46px); font-weight: 700; line-height: 1.5; letter-spacing: -.04em; overflow-wrap: anywhere; }
.reading-page h2 { margin: 40px 0 16px; font-size: 30px; font-weight: 700; line-height: 1.5; letter-spacing: -.03em; }
.reading-page h3 { margin: 28px 0 12px; font-size: 22px; font-weight: 700; line-height: 1.6; }
.reading-page p,
.reading-page li { font-size: 16px; line-height: 1.8; }
.reading-page p + p { margin-top: 16px; }
.reading-page .lead { margin-bottom: 24px; font-size: 20px; font-weight: 700; line-height: 1.8; }
.reading-page .eyebrow { font-size: 13px; }
.reading-page .small-note { font-size: 14px; }
.reading-page ul,
.reading-page ol { padding-left: 24px; margin-block: 18px; }
.reading-page li + li { margin-top: 10px; }
.reading-page h2[id] { scroll-margin-top: 28px; }
.reading-page .source-item p { font-size: 14px; line-height: 1.8; }
.reading-page .guide-applicability,
.reading-page .guide-note { font-size: 14px; }
.reading-page .guide-copy h2 { margin-top: 0; font-size: 24px; }
.reading-page .guide-references h2 { margin-top: 0; font-size: 20px; }
.reading-page .guide-detail { margin-top: 30px; }
.reading-page .guide-list { margin-block: 22px; }
.reading-page .next-section { padding-block: 30px; margin-top: 30px; border-top: 1px solid var(--line); }
.reading-page .next-section h2 { margin-top: 0; }
.reading-page .entry-paths { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-block: 24px; }
.reading-page ol.guide-steps { padding-left: 25px; list-style: decimal; }
.reading-page ol.guide-steps li { padding: 16px 0 16px 6px; margin: 0; border-bottom: 1px solid var(--line); }
.reading-page ol.guide-steps li::marker { color: var(--primary); font-weight: 700; }
.reading-page ol.guide-steps li strong { font-weight: 700; }
.reading-page ol.guide-steps li p { margin-top: 7px; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 24px; color: var(--primary); font-size: 14px; line-height: 1.8; text-decoration: underline; text-underline-offset: 4px; }
.button-link { display: inline-flex; justify-content: center; max-width: 100%; margin-top: 18px; white-space: normal; text-align: center; }
.buying-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }
.buying-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.8; }
.buying-nav a:hover { border-color: var(--primary); color: var(--primary); }
.candidate-record { min-inline-size: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); margin: 20px 0; padding: 14px; }
.candidate-record legend { font-weight: 700; padding-inline: 6px; }
.candidate-record .memo-fields { margin-top: 12px; }
.candidate-record [aria-invalid="true"] { border-color: var(--warning); }
.buying-return-note { padding-left: 18px; margin-block: 24px; border-left: 3px solid var(--primary); }
.buying-category-start { margin: 12px 0 32px; }

/* The generated pre is for printing only; the visible textarea remains the screen output. */
.memo-print { display: none; }

@media (max-width: 1100px) {
  .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-grid { gap: 16px; }
  .next-card { padding: 20px; }
}
@media (max-width: 1000px) {
  .resume-heading { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .resume-heading > .resume-actions { justify-content: start; }
  .resume-heading > .resume-actions button { flex: 0 1 auto; }
  .action-plan-footer { flex-direction: column; align-items: start; gap: 18px; }
}
@media (max-width: 900px) {
  .next-grid { grid-template-columns: minmax(0, 1fr); }
  .next-card { padding: 24px; }
  .next-card .plan-choice { margin-top: 6px; }
  .guide-detail { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .guide-references { padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .decision-section { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 760px) {
  .shopping-section { padding-block: 42px; }
  .shopping-intro { margin-block: 14px 24px; }
  .shopping-fit { margin-block: 24px 30px; }
  .shopping-fit ul { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 0; }
  .shopping-fit li { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .shopping-fit li:last-child { border-bottom: 0; }
  .shopping-fit li::before { margin-bottom: 5px; }
  .offers-section { margin-top: 30px; }
  #offers-title { font-size: 20px; }
  .offers { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-block: 22px; }
  .shopping-official,
  .shopping-total { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .shopping-official { padding-block: 26px; margin-top: 30px; }
  .shopping-total { margin-top: 28px; }
  .shopping-return { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .shopping-return > p:first-child { font-size: 18px; }
  .shopping-entry { width: 100%; }
  .resume-section { padding: 24px 20px; margin-block: 16px 42px; }
  .resume-heading h2 { font-size: 24px; }
  .resume-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .resume-actions button,
  .resume-heading > .resume-actions button,
  .resume-preview > .resume-actions button { flex: 0 1 auto; width: 100%; }
  .resume-preview { padding-top: 22px; margin-top: 24px; }
  .resume-preview h3 { font-size: 22px; }
  .resume-device-list { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .resume-replace-note { padding: 12px 14px; }
  .check-section { padding-block: 42px; }
  .safety-box { padding: 16px; margin-block: 24px; }
  .check-filter { grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin-block: 24px 18px; }
  .check-filter > span { grid-column: 1 / -1; font-size: 18px; }
  .guide-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .guide-option { padding: 18px; }
  .guide-detail { padding-top: 24px; margin-top: 26px; }
  .guide-copy h3 { font-size: 22px; }
  .guide-first { font-size: 18px; }
  .guide-step { gap: 11px; padding-block: 16px; }
  .feedback { gap: 4px 18px; }
  .guide-share { padding-top: 20px; }
  .decision-section { padding-block: 28px; margin-block: 0 16px; }
  .decision-section h2 { font-size: 24px; }
  .decision-buttons { gap: 10px; }
  .decision { flex: 1 1 150px; }
  .next-section { padding-block: 32px 42px; }
  .next-card { padding: 22px 20px; gap: 15px; }
  .next-card h3 { font-size: 20px; }
  .action-plan { padding: 24px 20px; margin-top: 26px; }
  .action-plan-heading { flex-direction: column; align-items: start; gap: 15px; margin-bottom: 22px; }
  .action-plan h3 { font-size: 22px; }
  .action-items { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .action-item { padding: 16px 14px; gap: 11px; }
  .action-plan-footer .primary-button { width: 100%; }
  .reading-page { padding-block: 30px 54px; }
  .reading-page h1 { font-size: 30px; margin-bottom: 22px; }
  .reading-page h2 { font-size: 24px; margin-top: 32px; }
  .reading-page h3 { font-size: 20px; }
  .reading-page .lead { font-size: 18px; }
  .reading-page .guide-copy h2 { font-size: 22px; }
  .reading-page .guide-references h2 { font-size: 20px; }
  .back-link { margin-bottom: 18px; }
  .buying-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .buying-nav a { min-width: 0; padding-inline: 10px; }
}

/* Scope memo-only printing to the app; standalone articles keep their content. */
@media print {
  @page { margin: 18mm; }
  body { color: #000; background: #fff; }
  body.app-page > :not(main),
  body.app-page main > :not(.memo-section),
  body.app-page .memo-intro,
  body.app-page .memo-paper > :not(.memo-top):not(.memo-print) { display: none !important; }
  body.app-page .memo-section {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  body.app-page .memo-paper {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  body.app-page .memo-top { display: block; padding: 0 0 10pt; margin: 0 0 14pt; border-bottom: 1px solid #aaa; color: #000; }
  body.app-page .memo-top h3 { color: #000; font-size: 14pt; line-height: 1.5; }
  body.app-page .memo-top > span { display: block; margin-top: 5pt; color: #000; font-size: 10pt; text-align: left; }
  body.app-page .memo-print {
    display: block;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 0;
    margin: 0;
    border: 0;
    color: #000;
    font-family: inherit;
    font-size: 12pt;
    line-height: 1.7;
  }
  body:not(.app-page) .concept,
  body:not(.app-page) .header,
  body:not(.app-page) .footer,
  body:not(.app-page) .skip,
  body:not(.app-page) .back-link,
  body:not(.app-page) .buying-nav { display: none !important; }
  body:not(.app-page) .reading-page { width: 100%; max-width: none; padding: 0; margin: 0; }
  body:not(.app-page) .reading-page .guide-detail { display: block; gap: 0; border: 0; padding: 0; margin-top: 20pt; }
  body:not(.app-page) .reading-page .guide-references { padding: 16pt 0 0; margin-top: 20pt; border-left: 0; border-top: 1px solid #aaa; }
  body:not(.app-page) .reading-page .guide-list { display: block; }
  body:not(.app-page) .reading-page .guide-option { margin-bottom: 12pt; break-inside: avoid; }
  body:not(.app-page) .reading-page .source-item { break-inside: avoid; }
  body:not(.app-page) .reading-page p,
  body:not(.app-page) .reading-page li { orphans: 3; widows: 3; }
  body:not(.app-page) .reading-page h1,
  body:not(.app-page) .reading-page h2,
  body:not(.app-page) .reading-page h3 { break-after: avoid; }
}
