.yn-skip { position: fixed; z-index: 30; left: 12px; top: 12px; padding: 12px; background: var(--white); transform: translateY(-180%); }
.yn-skip:focus { transform: none; }
.yes-no-page [hidden] { display: none !important; }
.yn-hero h1 { max-width: 1000px; font-size: clamp(2.2rem, 5vw, 4rem); }
.yn-hero p { max-width: 740px; }
.yn-content { padding-bottom: 60px; }
.yn-content .notice p { margin-bottom: 0; }
.yn-quick-nav { margin-block: 42px 26px; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.yn-quick-nav h2 { font-size: 1.6rem; }
.yn-quick-nav ol { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; margin: 0; padding: 0; }
.yn-quick-nav a { display: flex; align-items: center; min-height: 48px; padding: 8px; color: var(--ink); font-size: .86rem; font-weight: 700; line-height: 1.6; }
.yn-controls { margin-block: 24px; }
.yn-controls button, #print-reference { cursor: pointer; }
.yn-section { padding-block: 46px; border-top: 1px solid var(--line); }
.yn-section > p { max-width: 900px; }
.yn-section h2 { font-size: clamp(1.65rem, 3.3vw, 2.55rem); }
.yn-chart { margin-top: 24px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--white); }
.yn-chart summary { padding: 20px 24px; min-height: 60px; font-weight: 700; line-height: 1.6; background: var(--soft); cursor: pointer; }
.yn-chart summary::marker { color: var(--green); }
.yn-chart summary span { float: right; margin-left: 12px; color: var(--ink); }
.yn-chart summary:focus-visible { outline-offset: -5px; }
.yn-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
.yn-table th, .yn-table td { padding: 20px 24px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.7; overflow-wrap: anywhere; }
.yn-table thead th:first-child { width: 50%; }
.yn-table thead th { font-size: .8rem; color: var(--ink); background: var(--soft); }
.yn-table tbody th { font-weight: 600; }
.yn-table small { display: block; margin-top: 5px; font-size: .8rem; font-weight: 400; line-height: 1.65; color: var(--muted); }
.yn-table .yn-person { font-size: .72rem; }
.yn-yes, .yn-no { font-size: 1.2rem; font-weight: 800; line-height: 1.5; }
.yn-yes { color: var(--green); }
.yn-no { color: var(--red); }
.yn-chart-note { padding: 0 24px 18px; }
.yn-back { display: inline-block; padding-block: 14px; color: var(--ink); font-size: .8rem; }
.yn-reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-block: 28px; }
.yn-ref-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; }
.yn-ref-card h3 { font-size: 1rem; }
.yn-ref-card dl { margin: 0; }
.yn-ref-card dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px; padding-block: 8px; border-top: 1px solid var(--line); }
.yn-ref-card dd { margin: 0; }
.yn-ref-card p { font-size: .8rem; }
.yn-source { border-top: 1px solid var(--line); padding-top: 32px; }
.yn-source h2 { font-size: 1.4rem; }
.yn-source p { font-size: .85rem; }
.yn-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 850px) {
  .yn-quick-nav ol, .yn-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yn-table th, .yn-table td { padding: 16px; }
}
@media (max-width: 580px) {
  .yn-quick-nav ol, .yn-reference-grid { grid-template-columns: minmax(0, 1fr); }
  .yn-table, .yn-table tbody, .yn-table tr, .yn-table td, .yn-table tbody th { display: block; width: 100%; }
  .yn-table thead { display: none; }
  .yn-table tr + tr { border-top: 2px solid var(--line); }
  .yn-table td { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 2px 12px; }
  .yn-table td::before { content: attr(data-label); font-size: .78rem; font-weight: 700; color: var(--ink); align-self: center; }
  .yn-table td small { grid-column: 2; }
  .yn-chart summary { padding: 18px; }
  .yn-section { padding-block: 34px; }
}
@media print {
  @page { margin: 12mm; }
  html, body { font-size: 9pt; background: #fff; color: #222; }
  .yes-no-page > :not(main), .yes-no-page main > :not(.yn-content),
  .yn-content > :not(#quick-reference), #quick-reference .yn-screen-only { display: none !important; }
  .yn-content, #quick-reference { width: 100%; padding: 0; border: 0; }
  #quick-reference h2 { font-size: 20pt; margin-bottom: 10px; }
  #quick-reference p { line-height: 1.45; color: #222; }
  .yn-reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-block: 16px; }
  .yn-ref-card { padding: 10px; border-radius: 8px; break-inside: avoid; }
  .yn-ref-card h3 { font-size: 10pt; line-height: 1.3; }
  .yn-ref-card dl > div { gap: 6px; padding-block: 4px; }
  .yn-yes, .yn-no { font-size: 10pt; color: #222; background: transparent; padding: 0; }
  .yn-ref-card p { font-size: 8pt; }
}

.yn-print-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-block: 32px 16px;
}
.yn-print-controls p { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--ink); }

.yn-ref-example { margin: 0 0 16px; line-height: 1.5; }
.yn-ref-example > span { font-weight: 600; color: var(--ink); }
.yn-ref-example small { color: var(--muted); }
