/* Physics page only: Editorial Light Paper Contrast Enhancements */
body.research-page .abstract-copy h2,
body.research-page .abstract-panel h2,
body.research-page .paper-heading h2 {
  color: #173b49 !important;
}

body.research-page .abstract-copy p,
body.research-page .abstract-panel p,
body.research-page .paper-heading p {
  color: #284853 !important;
}

body.research-page .abstract-verdict,
body.research-page .abstract-verdict p,
body.research-page .abstract-verdict strong,
body.research-page .commercial-verdict,
body.research-page .corpus-verdict {
  color: #173b49 !important;
}

body.research-page .abstract-verdict small,
body.research-page .research-label {
  color: #805828 !important;
}

/* 本頁閱讀版面：章節與正文分欄，白底紙張導覽。 */
html body.memory-physics-page .studio-main-workbench {
  max-width: 1540px !important;
  margin: 0 auto !important;
  padding: 24px var(--hub-keepout, 24px) 48px !important;
}
html body.memory-physics-page .studio-layout {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  position: relative !important;
}
html body.memory-physics-page aside.lens-vertical-rail {
  position: fixed !important;
  top: 72px !important;
  right: var(--hub-keepout, 24px) !important;
  left: auto !important;
  width: auto !important;
  min-width: 154px !important;
  max-width: 224px !important;
  max-height: calc(100dvh - 96px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  background: rgba(241, 245, 249, 0.82) !important;
  backdrop-filter: blur(14px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
  border: 1px solid rgba(203, 213, 225, 0.78) !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  z-index: 65 !important;
  opacity: 0.9 !important;
}
html body.memory-physics-page aside.lens-vertical-rail:is(:hover, :focus-within) {
  width: 224px !important;
  min-width: 224px !important;
  max-width: 224px !important;
  padding: 10px !important;
  border-radius: 12px !important;
  opacity: 0.98 !important;
  background: rgba(248, 250, 252, 0.96) !important;
}
html body.memory-physics-page .lens-vertical-rail .rail-title,
html body.memory-physics-page .lens-vertical-rail .rail-tag {
  opacity: 0.9 !important;
}
html body.memory-physics-page .lens-vertical-rail .lens-node-item {
  opacity: 0.85 !important;
  min-height: 30px !important;
  padding: 5px 7px !important;
  margin: 0 !important;
}
html body.memory-physics-page .lens-vertical-rail .lens-node-item.active {
  opacity: 1 !important;
  background: rgba(13, 148, 136, 0.10) !important;
  border-left-color: #0d9488 !important;
  color: #0f172a !important;
}
html body.memory-physics-page .lens-stage-container { min-width: 0 !important; width: 100% !important; }
html body.memory-physics-page .lens-stage-container .paper-section {
  padding: clamp(22px, 2.6vw, 38px) clamp(24px, 3vw, 44px) !important;
  margin-bottom: 20px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(203, 213, 225, 0.72) !important;
  border-radius: 12px !important;
}
html body.memory-physics-page .paper-section { scroll-margin-top: var(--f1-anchor-offset, 96px); }
html body.memory-physics-page .f1-chapter-toggle { display: none; }
html body.memory-physics-page .paper-heading { align-items: start; }
html body.memory-physics-page .abstract-copy p { max-width: 74ch; }
html body.memory-physics-page .paper-note { font-size: 14px; line-height: 1.8; color: #55452c; }
html body.memory-physics-page .f1-stat-source { margin-top: auto; padding-top: 10px; color: #006f70; font-size: 12px; line-height: 1.5; }
html body.memory-physics-page .stat-sub { font-size: 13px; line-height: 1.6; color: #526a72; }
html body.memory-physics-page .f1-stat-bridge .stat-val { overflow-wrap: anywhere; font-size: 1rem !important; }
.memory-physics-page .f1-reading-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.memory-physics-page .f1-reading-routes a { display: flex; flex-direction: column; gap: 9px; padding: 20px; background: #ffffff; border: 1px solid #cddbdc; border-top: 2px solid #006f70; border-radius: 8px; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03); }
.memory-physics-page .f1-reading-routes small { color: #805828; font: 600 12px/1.5 monospace; }
.memory-physics-page .f1-reading-routes strong { color: #173b49; font-size: 17px; line-height: 1.4; }
.memory-physics-page .f1-reading-routes a > span { color: #526a72; font-size: 14px; line-height: 1.7; }
.memory-physics-page .f1-evidence-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 18px 0 24px; padding: 12px 18px; border: 1px solid #cddbdc; border-left: 3px solid #006f70; background: #f0f4ef; border-radius: 6px; color: #284853; font-size: 13px; line-height: 1.6; }
.memory-physics-page .f1-evidence-links b { color: #805828; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.memory-physics-page .f1-evidence-links a { color: #006f70; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; text-decoration: none; }
.memory-physics-page .f1-evidence-links a:hover { color: #08594f; text-decoration: underline; }
html body.memory-physics-page :is(a, button, .table-scroll-container):focus-visible { outline: 3px solid #006f70; outline-offset: 4px; }
html body.memory-physics-page .state-lab-controls button { min-height: 44px !important; }
html body.memory-physics-page .memory-lane { padding-top: 30px !important; }
html body.memory-physics-page .lane-title { position: static; width: 100%; margin-bottom: 48px; gap: 16px; align-items: start; }
html body.memory-physics-page .lane-title b { font-size: 20px; line-height: 1.35; color: #173b49; }
html body.memory-physics-page .lane-title span { font-size: 10px; line-height: 1.5; text-align: right; color: #805828; }
html body.memory-physics-page :is(.taxonomy-wrap, .attack-matrix) { overflow: hidden !important; }
html body.memory-physics-page .table-scroll-container { overflow-x: auto !important; overscroll-behavior-inline: contain; }
html body.memory-physics-page :is(.taxonomy-table, .attack-table) { display: table; min-width: 920px; width: 100%; }
html body.memory-physics-page :is(.taxonomy-table, .attack-table) caption { padding: 16px; text-align: left; color: #526a72; font-size: 13px; line-height: 1.6; }
html body.memory-physics-page :is(.taxonomy-table, .attack-table) thead { display: table-header-group; }
html body.memory-physics-page :is(.taxonomy-table, .attack-table) tbody { display: table-row-group; }
html body.memory-physics-page :is(.taxonomy-table, .attack-table) tr { display: table-row; }
html body.memory-physics-page :is(.taxonomy-table, .attack-table) :is(th, td) { display: table-cell; width: auto; padding: 16px; vertical-align: top; }
html body.memory-physics-page :is(.taxonomy-table, .attack-table) td::before { display: none; }
html body.memory-physics-page .scroll-hint-bar { color: #526a72 !important; background: #edf2ee !important; }
/* 證據階梯維持原結構與分類邊框，修正白底上的標題與階級小標。 */
html body.memory-physics-page .claim-rung h3 { color: #173b49 !important; }
html body.memory-physics-page .claim-rung > span { color: #805828 !important; }
/* 原內嵌 verdict 規則同時顯示雙語；以頁面語系明確收斂。 */
html[data-language="zh"] body.memory-physics-page [data-lang="en"],
html[data-language="en"] body.memory-physics-page [data-lang="zh"] { display: none !important; }
@media (max-width: 1320px) {
  html body.memory-physics-page .site-header { grid-template-columns: minmax(0, 1fr) auto !important; gap: 10px !important; }
  html body.memory-physics-page .site-header .primary-nav { display: none !important; }
  html body.memory-physics-page .site-header .primary-nav.open { display: flex !important; position: absolute; top: 100% !important; inset-inline: 0; flex-direction: column; align-items: stretch !important; gap: 0 !important; background: #ffffff; border-bottom: 1px solid #cbd5e1; padding: 12px 20px; }
  html body.memory-physics-page .site-header .primary-nav a { min-height: 44px; display: flex; align-items: center; }
  html body.memory-physics-page .menu-button { display: inline-flex; min-width: 44px; min-height: 44px; }
  html body.memory-physics-page .header-actions .home-pill { display: none; }
}
@media (max-width: 1024px) {
  html body.memory-physics-page .studio-layout { display: block !important; }
  html body.memory-physics-page .f1-chapter-toggle { display: none !important; }
  html body.memory-physics-page .lens-stage-container .paper-heading { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 640px) {
  html body.memory-physics-page .site-header .brand-section { display: none !important; }
  html body.memory-physics-page .site-header .brand { gap: 8px !important; }
  html body.memory-physics-page .lens-stage-container .paper-section { padding: 22px 16px !important; }
  html body.memory-physics-page .abstract-copy,
  html body.memory-physics-page .abstract-verdict.glassmorphism-verdict { padding: 20px 16px !important; }
  html body.memory-physics-page .f1-reading-routes { grid-template-columns: minmax(0, 1fr); }
  html body.memory-physics-page .research-hero-links { flex-wrap: wrap; }
  html body.memory-physics-page .state-lab-controls { gap: 6px !important; }
  html body.memory-physics-page .state-lab-controls button { flex-basis: 100% !important; }
  html body.memory-physics-page .memory-lane { padding: 24px 14px !important; }
  html body.memory-physics-page .state-lab-copy { padding: 22px 16px; gap: 14px; }
  html body.memory-physics-page .state-lab-copy h3 { font-size: 22px; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) {
  html body.memory-physics-page *, html body.memory-physics-page *::before, html body.memory-physics-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
