.pd-period {
  --pd-ink: #202827;
  --pd-muted: #68716e;
  --pd-paper: #f3f1eb;
  --pd-card: #fffefa;
  --pd-line: #dedfd7;
  --pd-accent: #245b52;
  --pd-accent-soft: #e6efea;
  --pd-warm: #9a4d37;
  --pd-warm-soft: #f8ece5;
  --pd-gold: #8a5a16;
  --pd-gold-soft: #fff4dc;
  --pd-danger: #933d35;
  --pd-danger-soft: #fff0eb;
  box-sizing: border-box;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 12px 42px;
  color: var(--pd-ink);
  background: var(--pd-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
.pd-period *, .pd-period *::before, .pd-period *::after { box-sizing: border-box; }
.pd-period h2, .pd-period h3, .pd-period h4, .pd-period h5, .pd-period h6, .pd-period p, .pd-period blockquote { margin-top: 0; }
.pd-period button, .pd-period select { font: inherit; }
.pd-period button, .pd-period summary, .pd-period select { -webkit-tap-highlight-color: transparent; }
.pd-period button, .pd-period summary, .pd-period select, .pd-period a { touch-action: manipulation; }
.pd-period p, .pd-period li, .pd-period summary, .pd-period blockquote { overflow-wrap: anywhere; }
.pd-period button:focus-visible, .pd-period select:focus-visible, .pd-period summary:focus-visible, .pd-period a:focus-visible, .pd-compare-scroll:focus-visible {
  outline: 3px solid #d48345;
  outline-offset: 3px;
}
.pd-hero { padding: 5px 4px 15px; }
.pd-hero > div:first-child { display: flex; flex-wrap: wrap; gap: 3px 12px; align-items: baseline; }
.pd-eyebrow, .pd-scope {
  color: var(--pd-accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .12em;
}
.pd-hero h2 { margin: 0; font-size: clamp(25px, 7vw, 34px); line-height: 1.25; letter-spacing: -.035em; }
.pd-hero > p { margin: 7px 0 9px; color: var(--pd-muted); font-size: 13px; }
.pd-identity { display: flex; flex-wrap: wrap; gap: 2px 0; color: var(--pd-muted); font-size: 12px; }
.pd-identity span + span::before { content: "·"; margin: 0 7px; color: #a0a6a1; }
.pd-switcher {
  padding: 12px;
  color: #f8fbf8;
  background: #243d38;
  border: 1px solid #1d3530;
  border-radius: 17px;
  box-shadow: 0 8px 24px rgba(30, 49, 44, .11);
}
.pd-scope-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 12px; padding: 4px; background: rgba(0,0,0,.16); border-radius: 12px; }
#periodControls { scroll-margin-top: 96px; }
.pd-scope-note > summary { min-height: 44px; padding-block: 8px; cursor: pointer; }
.pd-period summary { min-height: 44px; }
.pd-workspace > .pd-source-link { margin: 0 16px; }
.pd-scope-switch button {
  min-height: 44px;
  padding: 8px 12px;
  color: #dce7e2;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-weight: 680;
  cursor: pointer;
}
.pd-scope-switch button.is-active { color: #203b35; background: #f8f7ef; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.pd-control-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pd-field { min-width: 0; }
.pd-field > label { display: block; margin: 0 2px 4px; color: #d5e0db; font-size: 11px; font-weight: 650; }
.pd-select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 8px 30px 8px 11px;
  color: var(--pd-ink);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}
.pd-year-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 5px; }
.pd-step {
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  color: #fff;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 10px;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.pd-step:disabled { opacity: .3; cursor: not-allowed; }
.pd-step:not(:disabled):active { background: rgba(255,255,255,.22); }
.pd-scope-note { margin: 10px 2px 0; padding-top: 9px; color: #d2ded8; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; line-height: 1.6; }
.pd-notices { display: grid; gap: 8px; margin: 11px 0; }
.pd-notice { padding: 0 13px; background: #fff9ed; border: 1px solid #e7dcc4; border-radius: 11px; }
.pd-notice > summary { min-height: 44px; padding: 11px 0; font-size: 13px; font-weight: 680; cursor: pointer; }
.pd-notice-body { padding-bottom: 12px; }
.pd-notice-body > p, .pd-notice-required > p { margin-bottom: 0; color: #625d51; font-size: 13px; }
.pd-notice-required { padding-top: 12px; padding-bottom: 12px; }
.pd-notice-required h4 { margin-bottom: 3px; font-size: 14px; }
.pd-workspace { margin-top: 13px; overflow: hidden; background: var(--pd-card); border: 1px solid var(--pd-line); border-radius: 18px; }
.pd-phase-head { position: relative; padding: 17px 16px 13px; }
.pd-phase-head::before { content: ""; position: absolute; top: 0; left: 16px; width: 38px; height: 3px; background: var(--pd-warm); }
.pd-scope-decadal .pd-phase-head::before { background: var(--pd-accent); }
.pd-phase-head h3 { margin: 3px 0 3px; font-size: 22px; line-height: 1.35; }
.pd-phase-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; }
.pd-phase-meta strong { font-size: 14px; }
.pd-phase-meta span { color: var(--pd-muted); font-size: 12px; }
.pd-boundary { margin-top: 7px; color: var(--pd-muted); font-size: 12px; }
.pd-boundary summary { display: flex; align-items: center; min-height: 44px; color: var(--pd-accent); font-weight: 680; cursor: pointer; }
.pd-boundary p { margin: 0 0 5px; padding: 10px 12px; background: #f4f5f0; border-radius: 9px; white-space: pre-wrap; }
.pd-status { display: flex; gap: 9px; align-items: flex-start; margin: 0 14px 12px; padding: 11px 12px; background: #f0f2ef; border-left: 3px solid #7f8d87; border-radius: 5px 10px 10px 5px; }
.pd-status strong { flex: none; font-size: 13px; }
.pd-status p { margin: 0; color: #5f6965; font-size: 12px; }
.pd-status-partial { background: var(--pd-gold-soft); border-left-color: #ae7927; }
.pd-status-age_hold { background: #f1efea; }
.pd-phase-head + .pd-notices, .pd-status + .pd-notices { margin-right: 14px; margin-left: 14px; }
.pd-topic-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 12px; background: #eeeee8; border-top: 1px solid var(--pd-line); border-bottom: 1px solid var(--pd-line); }
.pd-topic-button {
  min-width: 0;
  min-height: 62px;
  padding: 7px 3px;
  color: #4e5955;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
}
.pd-topic-button > span { display: block; font-size: 15px; font-weight: 720; }
.pd-topic-button > small { display: block; margin-top: 2px; font-size: 10px; line-height: 1.35; }
.pd-topic-button.is-active { color: var(--pd-accent); background: var(--pd-card); border-color: #c7d4cd; box-shadow: 0 2px 7px rgba(40,55,49,.06); }
.pd-scope-yearly .pd-topic-button.is-active { color: var(--pd-warm); border-color: #dec9bd; }
.pd-tab-conflict { color: var(--pd-danger); font-weight: 700; }
.pd-tab-candidate { color: var(--pd-gold); font-weight: 700; }
.pd-tab-hold { color: #6c6a65; }
.pd-tab-modern { color: #42677a; }
.pd-palace { margin: 13px 14px 0; padding: 11px 12px; background: #f1f5f0; border-radius: 11px; }
.pd-palace > summary { display: flex; flex-wrap: wrap; gap: 3px 10px; align-items: baseline; min-height: 30px; cursor: pointer; }
.pd-palace > summary > span { color: var(--pd-muted); font-size: 11px; }
.pd-palace > summary strong { font-size: 14px; }
.pd-palace-body { padding-top: 8px; }
.pd-palace-help { margin-top: 10px; color: var(--pd-muted); font-size: 12px; }
.pd-palace-help p { margin: 0; }
.pd-palace-help p + p { margin-top: 5px; }
.pd-boundary p + p { margin-top: 6px; }
.pd-stars { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.pd-stars li { display: inline-flex; gap: 5px; align-items: center; padding: 2px 8px; background: #fff; border: 1px solid #d7e0d8; border-radius: 999px; font-size: 12px; }
.pd-stars small { color: var(--pd-muted); font-size: 10px; }
.pd-topic-panel { padding: 16px 14px 19px; }
.pd-topic-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; margin-bottom: 11px; }
.pd-topic-head > div > span { display: block; color: var(--pd-muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.pd-topic-head h4 { margin: 0; font-size: 23px; line-height: 1.35; }
.pd-badge { display: inline-flex; flex: none; align-items: center; min-height: 25px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 720; line-height: 1.35; white-space: nowrap; }
.pd-badge-candidate { color: #76500f; background: #ffedc2; }
.pd-badge-conflict { color: #87352e; background: #ffe0d8; }
.pd-badge-modern { color: #345c70; background: #e4eef2; }
.pd-badge-empty, .pd-badge-hold { color: #5f625e; background: #ecece7; }
.pd-badge-adopted { color: #285c4c; background: #e1eee6; }
.pd-topic-summary { margin: -2px 0 14px; color: #46534f; font-size: 15px; white-space: pre-wrap; }
.pd-alert { margin: 0 0 13px; padding: 12px 13px; border-radius: 10px; }
.pd-alert strong { display: block; margin-bottom: 2px; font-size: 14px; }
.pd-alert p { margin: 0; font-size: 13px; }
.pd-alert-conflict { color: #74362f; background: var(--pd-danger-soft); border: 1px solid #e9c1b7; }
.pd-alert-candidate { color: #674b1b; background: var(--pd-gold-soft); border: 1px solid #ead29b; }
.pd-age-note, .pd-hold-note, .pd-inline-status { margin-bottom: 13px; padding: 11px 12px; color: #5e5d58; background: #f1f0eb; border-radius: 10px; }
.pd-age-note strong, .pd-hold-note strong, .pd-inline-status strong { display: block; font-size: 12px; }
.pd-age-note p, .pd-hold-note p, .pd-inline-status p { margin: 2px 0 0; font-size: 13px; }
/* The visible summary row itself is the 44px touch target; the box padding is not counted. */
.pd-age-note { padding-top: 0; padding-bottom: 0; }
.pd-age-note > summary { display: list-item; min-height: 44px; padding: 12px 0; font-size: 13px; font-weight: 680; line-height: 1.5; cursor: pointer; }
.pd-age-note[open] > p { padding-bottom: 11px; }
.pd-age-note > p { padding-top: 7px; }
.pd-records { margin: 0 0 16px; overflow: hidden; border: 1px solid var(--pd-line); border-radius: 11px; }
.pd-records > summary { min-height: 44px; padding: 9px 12px; background: #f4f5f0; font-size: 13px; font-weight: 680; cursor: pointer; }
.pd-record-group { padding: 11px 12px; background: #fafaf6; }
.pd-record-group + .pd-record-group { border-top: 1px solid var(--pd-line); }
.pd-record-group h5, .pd-section-heading h5, .pd-gaps > h5 { margin: 0 0 6px; font-size: 13px; }
.pd-record-group ul, .pd-match ul, .pd-pending ul, .pd-conditions ul, .pd-unresolved ul, .pd-compare-topic ul { margin: 0; padding-left: 19px; }
.pd-record-group li, .pd-match li, .pd-pending li, .pd-conditions li, .pd-unresolved li { padding-left: 2px; font-size: 13px; }
.pd-record-group li + li, .pd-match li + li, .pd-pending li + li { margin-top: 4px; }
.pd-changes { background: #f3f6f2; }
.pd-section-heading { display: flex; flex-wrap: wrap; gap: 2px 9px; align-items: baseline; margin-bottom: 8px; }
.pd-section-heading h5 { margin: 0; }
.pd-section-heading > span { color: var(--pd-muted); font-size: 11px; }
.pd-interpretation { margin-top: 17px; }
.pd-reading { padding: 14px 0; border-top: 1px dashed #dfe1db; }
.pd-reading:first-of-type { padding-top: 5px; border-top: 0; }
.pd-reading h6, .pd-modern-item h6 { margin: 0 0 5px; font-size: 15px; line-height: 1.5; }
.pd-takeaway { margin-bottom: 7px; color: var(--pd-accent); font-weight: 700; }
.pd-scope-yearly .pd-takeaway { color: var(--pd-warm); }
.pd-reading-text { margin-bottom: 9px; white-space: pre-wrap; }
.pd-reflection { margin-bottom: 9px; padding: 9px 11px; color: #4e5955; background: #f4f5f1; border-radius: 9px; font-size: 13px; }
.pd-reflection > span { margin-right: 8px; color: var(--pd-muted); font-size: 11px; font-weight: 750; }
.pd-unresolved { margin: 10px 0; padding: 0 11px 10px; color: #744535; background: var(--pd-warm-soft); border-radius: 9px; font-size: 13px; }
.pd-unresolved > summary { min-height: 44px; padding: 11px 0 7px; font-weight: 650; cursor: pointer; }
.pd-evidence { margin-top: 9px; font-size: 13px; }
.pd-evidence > summary { display: flex; align-items: center; min-height: 44px; color: var(--pd-accent); font-weight: 680; cursor: pointer; }
.pd-evidence-body { margin: 2px 0 8px; padding: 11px; background: #f7f7f3; border: 1px solid #e4e5df; border-radius: 9px; }
.pd-conditions h6, .pd-match h6, .pd-pending h6, .pd-candidate-source > h6 { margin: 0 0 4px; color: #59635f; font-size: 12px; }
.pd-source { margin-top: 10px; }
.pd-evidence-body > .pd-source:first-child, .pd-candidate-source > .pd-source { margin-top: 0; }
.pd-quote { margin: 0 0 9px; padding: 2px 0 2px 11px; color: #394742; border-left: 2px solid #b5c3b9; font-family: ui-serif, "Songti SC", "STSong", serif; line-height: 1.85; white-space: pre-wrap; }
.pd-citation { margin-bottom: 5px; color: var(--pd-muted); font-size: 12px; }
.pd-source-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--pd-accent); font-weight: 680; text-underline-offset: 3px; }
.pd-source-facts { margin: 4px 0 0; color: #747c78; font-size: 11px; line-height: 1.6; }
.pd-modern { margin-top: 17px; padding: 13px; background: #eff3f4; border-radius: 11px; }
.pd-modern-item + .pd-modern-item { margin-top: 12px; padding-top: 12px; border-top: 1px solid #d7e0e2; }
.pd-modern-item p { margin-bottom: 0; white-space: pre-wrap; }
.pd-candidates { margin-top: 18px; }
.pd-candidate { overflow: hidden; background: #fffdf7; border: 1px solid #e5d7b7; border-radius: 11px; }
.pd-candidate + .pd-candidate { margin-top: 9px; }
.pd-candidate > summary { display: flex; gap: 8px; align-items: center; justify-content: space-between; min-height: 58px; padding: 9px 11px; cursor: pointer; list-style-position: inside; }
.pd-candidate > summary > span:first-child { min-width: 0; }
.pd-candidate > summary strong { display: block; font-size: 13px; line-height: 1.45; }
.pd-candidate > summary small { display: block; margin-top: 2px; color: var(--pd-muted); font-size: 10px; font-weight: 400; line-height: 1.4; }
.pd-candidate-mark { flex: none; padding: 2px 7px; color: #76500f; background: #ffedc2; border-radius: 999px; font-size: 10px; font-weight: 750; }
.pd-candidate-body { padding: 0 11px 12px; border-top: 1px solid #ece2ce; }
.pd-match, .pd-pending, .pd-candidate-source { padding-top: 11px; }
.pd-match > p { margin-bottom: 6px; color: #725d36; font-size: 12px; }
.pd-pending { color: #694b37; }
.pd-candidate-conflict { background: #fff9f6; border-color: #dfaaa0; }
.pd-candidate-conflict > summary { background: #fff0eb; }
.pd-candidate-conflict .pd-candidate-mark { color: #87352e; background: #ffe0d8; }
.pd-candidate-conditions, .pd-candidate-source { margin-top: 10px; }
.pd-candidate-conditions > summary, .pd-candidate-source > summary { min-height: 44px; padding: 9px 0; color: var(--pd-accent); font-size: 13px; font-weight: 680; cursor: pointer; }
.pd-candidate-conditions-body, .pd-candidate-source-body { padding-bottom: 4px; }
.pd-candidate-source-body .pd-source { margin-top: 0; }
.pd-conflict-sources { padding: 11px; background: #fff3ef; border: 1px solid #e6b9af; border-radius: 12px; }
.pd-conflict-note { margin: 12px 0; padding: 10px 12px; color: #74362f; background: #fff3ef; border-radius: 9px; font-size: 13px; }
.pd-gaps { margin-top: 18px; }
.pd-gap { padding: 11px 12px; background: #fbf8f2; border: 1px solid #e9e0d2; border-radius: 9px; }
.pd-gap + .pd-gap { margin-top: 8px; }
.pd-gap h6 { margin: 0 0 3px; font-size: 13px; }
.pd-gap > p { margin-bottom: 0; color: var(--pd-muted); font-size: 13px; }
.pd-empty { margin-bottom: 0; color: var(--pd-muted); font-size: 13px; }
.pd-topic-empty { padding: 13px; background: #f5f5f1; border-radius: 9px; }
.pd-comparison { margin: 0 14px 15px; overflow: hidden; background: #f5f5f0; border: 1px solid var(--pd-line); border-radius: 11px; }
.pd-comparison > summary { display: flex; align-items: center; min-height: 58px; padding: 9px 12px; cursor: pointer; }
.pd-comparison > summary strong { display: block; font-size: 14px; }
.pd-comparison > summary small { display: block; color: var(--pd-muted); font-size: 11px; font-weight: 400; }
.pd-compare-scroll { overflow-x: auto; padding: 0 10px 11px; overscroll-behavior-x: contain; scrollbar-width: thin; }
.pd-compare-grid { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 8px; min-width: 590px; }
.pd-compare-item { padding: 12px; background: #fff; border: 1px solid var(--pd-line); border-radius: 10px; }
.pd-compare-item.pd-current { background: var(--pd-accent-soft); border-color: #acc7b9; }
.pd-compare-label { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; justify-content: space-between; }
.pd-compare-label > span { color: var(--pd-muted); font-size: 11px; font-weight: 700; }
.pd-compare-label .pd-badge { min-height: 21px; padding: 1px 6px; font-size: 9px; }
.pd-compare-item h4 { margin: 4px 0 6px; font-size: 14px; line-height: 1.45; }
.pd-compare-meta, .pd-compare-range { margin: 0 0 6px; color: var(--pd-muted); font-size: 11px; }
.pd-compare-summary { margin: 0; color: #4d5854; font-size: 12px; white-space: pre-line; }
.pd-compare-topic { margin-top: 10px; padding-top: 9px; border-top: 1px solid #dfe3dc; }
.pd-compare-topic h5 { margin: 0 0 4px; font-size: 12px; }
.pd-compare-topic p, .pd-compare-topic li { font-size: 12px; }
.pd-compare-topic p { margin-bottom: 6px; }
.pd-compare-changes { margin-top: 8px; }
.pd-compare-changes > strong { font-size: 11px; }
.pd-phase-empty { padding: 24px 17px; }
.pd-phase-empty h3 { margin: 4px 0; font-size: 20px; }
.pd-phase-empty p { margin-bottom: 0; color: var(--pd-muted); }
@media (min-width: 560px) {
  .pd-control-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
  .pd-switcher { padding: 14px; }
}
@media (min-width: 720px) {
  .pd-period { padding: 26px 24px 56px; }
  .pd-hero { padding-right: 3px; padding-left: 3px; }
  .pd-switcher { padding: 16px 18px; }
  .pd-phase-head { padding: 21px 23px 15px; }
  .pd-topic-switch { padding-right: 20px; padding-left: 20px; }
  .pd-topic-button { min-height: 58px; }
  .pd-palace { margin-right: 23px; margin-left: 23px; }
  .pd-topic-panel { padding: 20px 23px 24px; }
  .pd-comparison { margin-right: 23px; margin-left: 23px; }
  .pd-compare-grid { min-width: 0; }
}
@media (max-width: 350px) {
  .pd-period { padding-right: 9px; padding-left: 9px; }
  .pd-topic-switch { gap: 3px; padding-right: 8px; padding-left: 8px; }
  .pd-topic-button > small { font-size: 9px; }
  .pd-topic-panel { padding-right: 12px; padding-left: 12px; }
  .pd-badge { padding-right: 6px; padding-left: 6px; font-size: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pd-step, .pd-source-link, .pd-scope-switch button, .pd-topic-button { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
}
#periodStatus { padding: 12px 16px; color: #52615d; }
@media (max-width: 600px) { #resultTabs .tab-button:last-child { grid-column: 1 / -1; } }
.pd-period .pd-age-note > summary, .pd-period .pd-palace > summary { min-height: 44px; }
.pd-period .pd-palace > summary { align-items: center; }
.pd-badge-record { color: #5a5f58; background: #ecece4; border: 1px dashed #c6c8bd; }
.pd-tab-record { color: #626660; }
.pd-age-math { margin: 0 0 8px; padding: 10px 12px; background: #eef3ee; border-radius: 9px; color: #34433d; }
.pd-age-math h5 { margin: 0 0 4px; font-size: 13px; }
.pd-age-math p { margin: 0; padding: 0; background: none; font-size: 13px; white-space: normal; font-variant-numeric: tabular-nums; }
.pd-age-math p + p { margin-top: 5px; }
.pd-position-records { margin-top: 17px; padding: 12px 13px; border: 1px dashed #cfd2c8; border-radius: 11px; background: #fafaf6; }
.pd-record-item h6 { margin: 0 0 4px; font-size: 14px; }
.pd-record-item p { margin-bottom: 0; color: #4e5955; font-size: 13px; }
.pd-record-item + .pd-record-item { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e3e5dd; }
.pd-topic-button > small { font-size: 12px; }

/* Pending-clause condition catalogue: one column, sizes in em so enlarged text reflows. */
.pd-review-catalog { margin-top: 18px; padding: 1em .85em 1.1em; background: var(--pd-card); border: 1px solid var(--pd-line); border-radius: 18px; scroll-margin-top: 96px; }
.pd-review-head h3 { margin: 0 0 .35em; font-size: 1.25em; line-height: 1.4; }
.pd-review-head p { margin: 0 0 .8em; color: var(--pd-muted); font-size: .93em; }
.pd-review-list { display: grid; gap: .55em; margin: 0; padding: 0; list-style: none; }
.pd-review { background: #fbfaf5; border: 1px solid #e3ddcc; border-radius: 12px; scroll-margin-top: 96px; }
.pd-review > summary { display: flex; align-items: center; min-height: 52px; padding: .6em .8em; cursor: pointer; }
.pd-review:target > summary, .pd-review[open] > summary { background: var(--pd-gold-soft); border-radius: 12px 12px 0 0; }
.pd-review-title { min-width: 0; }
.pd-review-title strong { display: block; font-size: 1em; line-height: 1.45; }
.pd-review-title small { display: block; margin-top: .15em; color: var(--pd-muted); font-size: .8em; font-weight: 400; line-height: 1.45; }
.pd-review-body { padding: .2em .8em .9em; border-top: 1px solid #ece4d0; }
.pd-review-part { padding-top: .85em; }
.pd-review-part + .pd-review-part { margin-top: .85em; border-top: 1px dashed #e0dccf; }
.pd-review-part h4 { margin: 0 0 .45em; font-size: 1em; line-height: 1.45; }
.pd-review-part h4 small { display: block; color: var(--pd-muted); font-size: .8em; font-weight: 400; }
.pd-review-part h5 { margin: .8em 0 .35em; color: #4e5955; font-size: .9em; }
.pd-review-part ul { margin: 0; padding-left: 1.25em; }
.pd-review-part li { font-size: .93em; }
.pd-review-part li + li { margin-top: .3em; }
.pd-review-part .pd-source { margin-top: 0; }
.pd-review-caution { margin: .55em 0 0; color: var(--pd-gold); font-size: .87em; font-weight: 650; }
.pd-review-fields { display: grid; gap: .45em; margin: 0; }
.pd-review-fields > div { padding: .5em .7em; background: #fff; border: 1px solid #e6e2d6; border-left: 3px solid #c79a4b; border-radius: 6px 9px 9px 6px; }
.pd-review-fields dt { font-size: .93em; font-weight: 700; }
.pd-review-fields dd { margin: .1em 0 0; color: #5d5a50; font-size: .9em; overflow-wrap: anywhere; }
.pd-review-why > p { margin-bottom: .45em; font-size: .93em; }
.pd-review-why ul { color: #744535; }
.pd-review-layer { margin: 0 0 .5em; font-size: .9em; font-weight: 650; }
.pd-position-list { display: grid; grid-template-columns: 1fr; gap: .5em; padding: 0 !important; list-style: none; }
.pd-position-list > li + li { margin-top: 0; }
.pd-position { padding: .6em .75em; background: #f4f6f2; border: 1px solid #dfe4dc; border-radius: 9px; }
.pd-position h5 { margin: 0 0 .2em; color: var(--pd-ink); font-size: .93em; }
.pd-position p { margin: .15em 0 0; font-size: .9em; overflow-wrap: anywhere; }
.pd-position-name { color: var(--pd-muted); }
.pd-position-group { display: inline-block; min-width: 2.6em; margin-right: .4em; color: var(--pd-muted); font-size: .9em; font-weight: 700; }
.pd-position-gap { background: #fbf3ef; border-style: dashed; }
.pd-review-mentions li strong { font-weight: 700; }
.pd-review-notes { margin-top: .6em !important; color: var(--pd-muted); }
.pd-review-notes li { font-size: .85em; }
.pd-witnesses { padding-left: 0 !important; list-style: none; }
.pd-witness { padding: .5em 0; }
.pd-witness + .pd-witness { border-top: 1px solid #ebe8de; }
.pd-witness p { margin: .15em 0 0; }
.pd-witness-links { display: flex; flex-wrap: wrap; gap: 0 1em; }
.pd-witness-limit { color: var(--pd-muted); font-size: .9em; }
.pd-review-back { display: flex; flex-wrap: wrap; gap: 0 1.2em; margin: .8em 0 0; }
/* Narrow screens: nested em paddings grow with large text and squeeze the reading column,
   so side insets switch to small fixed px values; font sizes are untouched. */
@media (max-width: 480px) {
  .pd-review-catalog { padding-right: 9px; padding-left: 9px; border-radius: 14px; }
  .pd-review > summary { padding-right: 10px; padding-left: 10px; }
  .pd-review-body { padding-right: 10px; padding-left: 10px; }
  .pd-review-part ul { padding-left: 1.05em; }
  .pd-review-part .pd-quote { padding-left: 8px; }
  .pd-review-fields > div { padding-right: 8px; padding-left: 8px; }
  .pd-position { padding-right: 8px; padding-left: 8px; }
  .pd-review .pd-source-facts { overflow-wrap: break-word; word-break: normal; }
}
@media (max-width: 350px) {
  .pd-review-catalog { padding-right: 6px; padding-left: 6px; }
  .pd-review > summary, .pd-review-body { padding-right: 8px; padding-left: 8px; }
  .pd-review-part .pd-quote { padding-left: 7px; }
}
@media (min-width: 720px) {
  .pd-review-catalog { padding: 1.3em 1.5em 1.4em; }
  .pd-position-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
