/* Shared research content: equations, publication records and response controls. */
[hidden] { display: none !important; }
.site-updated { font-size: .82rem; line-height: 1.7; color: #aac3cc; }
.site-updated a { color: inherit; text-underline-offset: 3px; }
.map-page .page-header .site-updated { margin-top: 20px; font-size: .82rem; }
.map-page .pill { overflow: visible; display: inline-flex; align-items: center; flex: 0 0 auto; max-width: 100%; }
.map-page mjx-container { max-width: none; }
.math-fragment { display: inline-block; max-width: 100%; margin-block: 4px; vertical-align: middle; }
.formula mjx-container { margin-block: 12px; }
.formula.large, .formula.closure { font-size: clamp(1.03rem,1.5vw,1.35rem); }
.formula.auxiliary, .formula.gamma { font-size: 1.12rem; }
.notation-key { margin-top: 26px; padding: 18px 22px; border: 1px solid #c5d3d5; background: #f8faf7; }
.notation-key summary, .maturity-values summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.notation-key dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.notation-key dt { font-weight: 600; color: #155e70; }
.notation-key dd { margin: 8px 0 0; line-height: 1.7; font-size: .95rem; }
.permalink { display: inline-flex; align-items: center; justify-content: center; width: 36px; min-height: 36px; flex-shrink: 0; font-family: "CMG Mono",monospace; text-decoration: none; color: #28788c; border-radius: 4px; }
.permalink:hover { background: #cddeda; }
[id^="layer-"], [id^="concept-"], [id^="claim-"], [id^="paper-"], [id^="symbol-"] { scroll-margin-top: 96px; }
:target.publication, :target.layer-card, .map-page tr:target { outline: 2px solid #3fa4b8; outline-offset: -2px; }
.library-tools { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) auto; align-items: end; gap: 18px; margin-bottom: 20px; }
.library-tools label { display: block; font-size: .84rem; font-weight: 650; margin-bottom: 8px; }
.library-tools input, .library-tools select, .library-tools button, .explorer-actions button { min-height: 46px; border: 1px solid #99b0b7; background: #f7faf8; border-radius: 4px; color: #123545; padding: 10px 12px; font: inherit; }
.library-tools input, .library-tools select { width: 100%; min-width: 0; }
.library-tools button, .explorer-actions button { cursor: pointer; font-weight: 600; }
.library-tools button:hover, .explorer-actions button:hover { background: #d5e7e6; }
.library-note { max-width: 100ch; font-size: .86rem; line-height: 1.75; color: #4a626e; }
.library-count { font-size: .84rem; font-weight: 650; margin-block: 20px; }
.publication-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.publication { min-width: 0; padding: 24px; background: #f8faf7; border: 1px solid #bbcdd0; border-radius: 5px; }
.publication-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.publication .paper-id { font-size: .8rem; font-weight: 650; letter-spacing: .015em; color: #286c7b; }
.publication h3 { font-family: "CMG Serif",Georgia,serif; font-size: 1.3rem; line-height: 1.4; font-weight: 600; margin: 13px 0; }
.publication h3 a { color: inherit; text-decoration: none; }
.publication h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.publication p { font-size: .94rem; line-height: 1.75; }
.publication .publication-meta { font-size: .77rem; line-height: 1.8; color: #536976; }
.publication-equation { color: #166b7d; padding-block: 4px; font-size: .93rem; }
.publication-doi { display: inline-block; color: #1d6678; font-size: .82rem; margin-top: 14px; overflow-wrap: anywhere; text-underline-offset: 3px; }
.publication-components { padding: 14px 0 0 20px; margin: 12px 0; border-top: 1px solid #bdced0; font-size: .88rem; }
.publication-components li + li { margin-top: 10px; }
.publication-components small { display: block; margin-top: 4px; color: #536976; }
.publication-components a, .publication-parent a { color: #1d6678; text-underline-offset: 3px; }
.publication-parent { border-top: 1px solid #bdced0; padding-top: 12px; }
.library-empty { padding: 24px; border: 1px solid #a9c0c6; }
.map-page .publication { background: var(--surface); border-color: var(--border); }
.map-page .publication h3, .map-page .publication p { color: var(--text); }
.map-page .publication .publication-meta, .map-page .library-note, .map-page .publication-components small { color: var(--text2); }
.map-page .publication .paper-id, .map-page .publication a, .map-page .publication-equation, .map-page .permalink { color: var(--accent); }
.map-page .publication-components, .map-page .publication-parent { border-color: var(--border); }
.map-page .permalink:hover { background: var(--surface2); }
.map-page .library-tools input, .map-page .library-tools select, .map-page .library-tools button { background: var(--surface2); color: var(--text); border-color: var(--border); }
.map-page .library-tools input::placeholder { color: var(--text2); }
.map-page .tab-btn { display: inline-flex; align-items: center; text-decoration: none; }
.map-page .tabs { flex-wrap: wrap; overflow: visible; }
.map-page:not(.map-enhanced) .tab-content { display: block; margin-top: 32px; }
.map-page .layer-heading { display: flex; align-items: center; padding-right: 18px; }
.map-page .layer-heading h2 { flex: 1; margin: 0; min-width: 0; }
.map-page .acc-header > span:first-child { display: block; min-width: 0; }
.map-page .acc-layer, .map-page .acc-title { display: block; }
.map-page .acc-logic { padding: 0 24px 22px; margin: 0; }
.map-page .acc-inner { overflow: visible; }
.map-page .concept-table, .map-page .claim-table { display: block; }
.map-page .concept-table thead, .map-page .claim-table thead { display: none; }
.map-page .concept-table tbody, .map-page .claim-table tbody { display: block; }
.map-page .concept-table tr, .map-page .claim-table tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px 22px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.map-page .concept-table td, .map-page .claim-table td { display: block; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
.map-page .concept-table td:first-child, .map-page .claim-table td:first-child { grid-column: 1 / -1; font-family: "CMG Serif",Georgia,serif; font-size: 1.18rem; }
.map-page .concept-table td:nth-child(3), .map-page .claim-table td:nth-child(3) { color: var(--accent); }
.map-page .concept-table td:not(:first-child)::before, .map-page .claim-table td:not(:first-child)::before { content: attr(data-label); display: block; font-family: "CMG Inter",sans-serif; text-transform: uppercase; font-size: .65rem; font-weight: 650; letter-spacing: .08em; color: var(--text2); margin-bottom: 8px; }
.map-page .claim-table { padding: 4px 24px; }
.map-page .claim-table td:nth-child(4) { grid-column: 1 / -1; }
.map-page .sym-table { table-layout: fixed; }
.map-page .sym-table th:nth-child(1) { width: 18%; }
.map-page .sym-table th:nth-child(2) { width: 42%; }
.map-page .sym-table th:nth-child(3) { width: 17%; }
.map-page .sym-table td { overflow-wrap: anywhere; }
.map-page .maturity-values { margin-top: 24px; }
.map-page .maturity-values table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.map-page .maturity-values caption { text-align: left; color: var(--text2); padding: 15px 0; }
.map-page .chart-wrap { height: 450px; }
.numeric-control { display: grid; grid-template-columns: minmax(0,1fr) 110px; gap: 12px; align-items: center; }
.numeric-control label { display: block; margin: 0; }
.controls .numeric-control input { margin: 0; padding: 9px; min-height: 42px; border: 1px solid #9cb4bd; border-radius: 4px; font: 1rem "CMG Mono",monospace; color: #123545; background: #fbfdfb; }
.controls input[type="range"] { margin: 12px 0 2px; min-height: 26px; }
.control-help { display: block; margin: 0 0 22px; font-size: .78rem; color: #506974; line-height: 1.65; }
.explorer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.controls .input-error { color: #8a2c27; font-size: .86rem; }
.controls [aria-invalid="true"] { border-color: #a23730; }
.mini-readout { flex-direction: column; gap: 8px; }
.mini-readout span { line-height: 1.65; font-size: .86rem; }
.chart-shell { margin: 0; flex-direction: column; justify-content: center; padding: 28px 16px; }
.chart-shell figcaption { color: #b5cbd2; font-size: .82rem; line-height: 1.7; padding: 12px 10px 0; }
#response-chart { cursor: crosshair; }
@media(max-width:980px) {
  .map-page .concept-table tr, .map-page .claim-table tr { display: block; }
  .map-page .concept-table td, .map-page .claim-table td { margin-block: 14px; }
  .map-page .sym-table, .map-page .sym-table tbody, .map-page .maturity-values table, .map-page .maturity-values tbody { display: block; }
  .map-page .sym-table thead, .map-page .maturity-values thead { display: none; }
  .map-page .sym-table tr, .map-page .maturity-values tr { display: block; padding: 18px; border-bottom: 1px solid var(--border); }
  .map-page .sym-table td, .map-page .maturity-values td { display: block; padding: 6px 0; border: 0; }
  .map-page .sym-table td::before, .map-page .maturity-values td::before { content: attr(data-label) ": "; font-size: .8rem; color: var(--text2); font-weight: 600; }
}
@media(max-width:640px) {
  .publication-list, .notation-key dl { grid-template-columns: 1fr; }
  .library-tools { grid-template-columns: 1fr; gap: 12px; }
  .library-tools button { justify-self: start; }
  .publication { padding: 20px 18px; }
  .publication h3 { font-size: 1.2rem; }
  .formula.large, .formula.closure { font-size: 1rem; }
  .map-page .pill { font-size: .8rem; padding-inline: 9px; }
  .map-page .acc-logic { padding-inline: 18px; }
  .map-page .claim-table { padding-inline: 14px; }
  .map-page .chart-wrap { height: 520px; }
  .map-page .tab-btn { padding: 10px 11px; font-size: .85rem; }
  .numeric-control { grid-template-columns: minmax(0,1fr) 100px; }
  .chart-shell { padding: 26px 5px; }
}
@media print {
  .library-tools, .library-count, .library-empty, .permalink, .explorer-actions, .control-help, .input-error { display: none !important; }
  .publication-list, .map-page .tab-content[hidden], .publication[hidden] { display: block !important; }
  .map-page table tr[hidden] { display: block !important; }
  .publication { break-inside: avoid; margin-bottom: 10pt; border-color: #aaa; background: white; color: black; }
  .map-page .concept-table tr, .map-page .claim-table tr { display: block; padding: 8pt; }
  .map-page .concept-table td, .map-page .claim-table td { margin-block: 5pt; }
  .map-page .concept-table td, .map-page .claim-table td, .map-page .sym-table td { font-size: 9.5pt; line-height: 1.45; }
  .map-page .concept-table td:first-child, .map-page .claim-table td:first-child { font-size: 11pt; }
  .map-page .concept-table td:not(:first-child)::before, .map-page .claim-table td:not(:first-child)::before { content: attr(data-label) ": "; display: inline; margin: 0; font-size: 8pt; letter-spacing: 0; color: #444; }
  .publication *, .site-updated, .map-page .publication * { color: #111 !important; }
  .map-page .tabs { display: none; }
  .chart-shell { display: block; max-width: 700px; }
  .chart-shell figcaption { color: #111; }
  .map-page .pill { overflow: visible; }
  .notation-key dl { display: block; }
  .notation-key dl > div { margin-block: 10pt; }
}
