/* Content inside the existing dashboard cards; the scene and shell are unchanged. */
.overview-project-facts { margin-top: auto; padding: 0 14px 14px; min-width: 0; overflow-wrap: anywhere; }
.overview-project-facts .overview-row-copy { border-top: 1px solid #294659; padding-block: 10px; }
.overview-project-facts .overview-row-copy > span { display: block; font-size: 14px; line-height: 1.7; }
.overview-project-facts time { display: block; margin-top: 5px; color: #9cb6cb; font-size: 11px; line-height: 1.7; }
.overview-project-facts > p { color: #9cb6cb; font-size: 12px; line-height: 1.7; }
/* Current evidence rows share the same identity and reading link. */
.overview-updates.widget { align-self:start; min-height:0; }
.overview-evidence-intro { margin:0; padding:0 18px 14px; color:#b5cfe2; font-size:14px; line-height:1.6; }
.overview-updates .overview-empty { min-height:0; padding-block:24px; }
#overview-updates { flex:0 1 auto; }
.overview-updates .overview-filterbar { flex-wrap:wrap; }
.overview-news-list .overview-row-copy { min-width:0; flex:1; align-items:flex-start; gap:5px; }
.overview-news-list button.overview-news-title,.overview-news-project,.overview-news-open { display:block; background:transparent; border:0; padding:0; text-align:left; color:inherit; cursor:pointer; max-width:100%; overflow-wrap:anywhere; line-height:1.5; }
.overview-news-project { font-size:14px; font-weight:650; min-height:30px; }
.overview-news-list button.overview-news-title { font-size:15px; font-weight:500; }
.overview-news-list .overview-fact-value { display:block; font-size:22px; line-height:1.4; font-weight:600; color:#e2f4ff; overflow-wrap:anywhere; }
.overview-news-list .overview-fact-value--long { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; font-size:16px; }
.overview-news-list time,.overview-news-list .overview-row-copy>span { color:#a9c2d6; font-size:14px; line-height:1.6; }
.overview-news-open { color:#8bd5fa; font-size:14px; min-height:40px; }
#overview-updates>p,.reading-all>p { padding-inline:18px; font-size:14px; line-height:1.8; }
#overview-updates .tdp-pagination,.reading-all .tdp-pagination { padding:12px 18px; }
.overview-news-list button:focus-visible { outline:2px solid #8bd5ff; outline-offset:4px; }

/* One native modal and one scroll container for the existing project reader. */
#detail-dialog.evidence-dialog { width:min(1180px,calc(100vw - 48px)); max-width:1180px; overflow:clip; background:var(--panel-solid); border-color:var(--surface-edge); }
#detail-dialog.evidence-dialog:has(.reading-page) > .dialog-header { padding:12px 24px 0; min-height:48px; justify-content:flex-end; border:0; background:var(--panel-solid); }
.evidence-dialog:has(.reading-page) .dialog-header > div { display:none; }
.evidence-dialog #dialog-body { margin:0; padding:8px 28px 28px; scroll-padding-block:24px; }
.reading-page { font-family:var(--font-body); font-size:16px; line-height:1.65; color:var(--text); overflow-wrap:anywhere; }
.reading-page [hidden],.reading-controls [hidden],.reading-measurement [hidden] { display:none!important; }
.reading-page h1,.reading-page h2,.reading-page h3 { color:var(--text); line-height:1.35; }
.reading-page h2 { font-size:20px; margin:0 0 18px; }
.reading-page h3 { font-size:18px; margin:0 0 10px; font-weight:600; }
.reading-page p { margin:0 0 12px; }
.reading-page a { color:var(--blue-bright); text-underline-offset:4px; }
.reading-page svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7; vertical-align:middle; flex:none; }
.reading-page :focus-visible,.reading-measurement :focus-visible { outline:2px solid #8bd5ff; outline-offset:4px; }
.reading-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px 32px; padding:0 52px 24px 0; margin-bottom:0; }
.reading-project { display:flex; align-items:center; gap:14px; min-width:0; }
.reading-project h1 { margin:0; font-size:30px; }
.reading-project p { margin:0 0 4px; }
.reading-project .project-brand { width:48px; height:48px; }
.reading-secondary,.reading-date { font-size:14px; line-height:1.65; color:var(--muted); }
.reading-header [data-reading-controls] { flex:0 1 390px; min-width:0; }
.reading-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; }
.reading-controls p { flex:1 1 160px; margin:0; }
.reading-controls button { white-space:normal; font-size:14px; min-height:44px; padding:8px 12px; }
.reading-controls .reading-refresh,.reading-refresh { flex:0 0 36px;width:36px;min-width:36px;min-height:36px;height:36px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted,#b0c8db);font-size:22px;line-height:1;cursor:pointer;box-shadow:none; }
.reading-controls .reading-refresh:hover,.reading-refresh:hover { color:var(--text,#edf7ff);border-color:var(--border,#294b64);background:rgba(127,199,236,.06); }
.reading-refresh:focus-visible { outline:2px solid #8bd5ff;outline-offset:3px; }
.reading-refresh:disabled { opacity:.45;cursor:wait; }
.reading-auto-status { font-size:12px;line-height:1.45;color:var(--muted,#9bb1c5);flex:1 1 160px;min-width:0; }
.reading-tabs { display:flex; gap:0; flex-wrap:wrap; margin-bottom:28px; border-bottom:1px solid var(--surface-edge); }
.reading-actions button,.reading-actions a { font:inherit; font-size:15px; min-height:44px; padding:9px 14px; border:1px solid #365b76; border-radius:8px; background:#102b40; color:#dcf3ff; cursor:pointer; text-decoration:none; }
.reading-tabs button { font:inherit; font-size:14px; font-weight:550; min-height:48px; padding:12px 16px; border:0; border-bottom:2px solid transparent; border-radius:6px 6px 0 0; background:transparent; color:var(--muted); cursor:pointer; }
.reading-tabs button:hover { color:var(--text); background:var(--blue-soft); }
.reading-tabs [aria-current] { border-bottom-color:var(--blue); background:var(--blue-soft); color:var(--text); }
.reading-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:0; }
.reading-main { min-width:0; }
.reading-page .reading-summary { border:0; border-top:1px solid var(--surface-edge); border-radius:0; background:transparent; padding:0 18px; font-size:14px; margin:0; }
.reading-summary summary { cursor:pointer; min-height:48px; padding-block:12px; color:#d8e8f5; }
.reading-summary[open] { padding-bottom:6px; }
.reading-summary dl { border-top:1px solid #294b64; padding-top:12px; }
.reading-summary dl>div { display:flex; justify-content:space-between; gap:12px; margin-bottom:12px; }
.reading-summary dd { margin:0; font-weight:650; }
.reading-fact { border:1px solid var(--surface-edge); border-radius:12px; padding:22px; margin-bottom:18px; background:var(--surface); scroll-margin-block:16px; }
.reading-fact.is-selected { border-color:#63b9df; box-shadow:inset 3px 0 #69c4ef; }
.reading-selected { display:block; color:#93dafb; font-size:14px; margin-bottom:12px; }
.reading-fact .reading-value { font-size:clamp(34px,3vw,42px); font-weight:650; line-height:1.25; margin-block:10px 18px; color:#edf7ff; white-space:pre-wrap; }
.reading-value.reading-value--long { font-size:20px; }
.reading-fact .reading-value--structured { font-size:14px; font-weight:400; color:#b0c8db; margin-bottom:8px; }
.reading-values { margin:0 0 18px; }
.reading-values dt { font-size:14px; color:#b0c8db; }
.reading-values dd { font-size:24px; line-height:1.4; color:#edf7ff; text-align:left; }
.reading-status { font-size:16px; }
.reading-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.reading-page .reading-dates { font-size:14px; color:#b6ccdd; margin-top:16px; padding:0; border:0; background:transparent; }
.reading-page .reading-dates summary { cursor:pointer; min-height:44px; padding:9px 0; margin:0; }
.reading-dates .reading-timestamps { padding:0; margin:8px 0 0; border:0; background:transparent; }
.reading-dates dl>div,.reading-values>div { display:grid; grid-template-columns:minmax(100px,.6fr) minmax(0,1fr); gap:12px; padding-block:8px; border-top:1px solid #28465b; }
.reading-dates dd,.reading-values dd { margin:0; }
.reading-source-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-block:20px 28px; }
.reading-source { padding:20px; border:1px solid var(--surface-edge); border-radius:12px; background:var(--surface); min-width:0; }
.reading-source h3 { font-size:17px; }
.reading-page .reading-source-details,.reading-page .reading-project-sources{margin:12px 0 0;padding:0;border:0;background:transparent}
.reading-source-details summary,.reading-project-sources summary{cursor:pointer;min-height:44px;padding-block:9px;color:var(--text)}
.reading-source-original{display:block;overflow-wrap:anywhere;min-height:44px;margin-bottom:12px}
.reading-source-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; margin-bottom:8px; }
.reading-filter { display:grid; gap:8px; margin-bottom:20px; }
.reading-page .reading-filter-panel { padding:0; margin:0 0 16px; background:transparent; border:0; font-size:14px; }
.reading-filter-panel summary { cursor:pointer; min-height:44px; padding-block:8px; }
.reading-filter input,.reading-filter select { width:100%; min-width:0; min-height:44px; padding:10px; background:#081e30; border:1px solid #43627c; border-radius:7px; color:#e5f3ff; font:inherit; }
.reading-notice { border-inline-start:3px solid var(--blue); padding:12px 16px; background:var(--blue-soft); }
.reading-all .overview-news-list { padding-inline:0; }
@media(max-width:600px){
 #detail-dialog.evidence-dialog { width:100%; max-width:100%; height:100dvh; max-height:100dvh; margin:0; border-radius:0; border-width:0; }
 #detail-dialog.evidence-dialog:has(.reading-page) > .dialog-header { padding:calc(8px + env(safe-area-inset-top)) 16px 0; }
 .evidence-dialog #dialog-body { margin:0; padding:8px 18px calc(22px + env(safe-area-inset-bottom)); }
 .reading-header { padding:0 0 20px; gap:16px; }
 .reading-project { padding-inline-end:44px; }
 .reading-project h1 { font-size:26px; }
 .reading-header [data-reading-controls] { flex-basis:100%; }
 .reading-controls p { flex-basis:140px; }
 .reading-source-list { grid-template-columns:minmax(0,1fr); }
 .reading-fact,.reading-source { padding:18px 16px; }
 .reading-tabs { gap:6px; }
 .reading-tabs button { padding-inline:11px; font-size:14px; }
 .reading-dates dl>div,.reading-values>div { grid-template-columns:1fr; gap:4px; }
}

/* The existing composer is also the generic project workspace. */
/* Shared overview: one surface per fact; charts retain the same reading order. */
.reading-facts { display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start; }
.reading-section { min-width:0; margin-block:10px; }
.reading-page .reading-section>h2 { font-size:18px; padding-bottom:8px; margin-bottom:10px; border-bottom:1px solid var(--surface-edge); }
.reading-section>p:last-child,.reading-group-facts>[data-section-empty] { margin-bottom:0; }
.reading-group-facts { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;align-items:start; }
.reading-group-facts>.reading-fact[data-component="fact"] { max-width:680px; }
.reading-facts .reading-fact { min-width:0;margin:0;padding:24px; }
.reading-facts .reading-fact[data-component="series"],.reading-facts .reading-fact[data-component="distribution"],.reading-facts .reading-fact[data-long-value] { grid-column:1/-1; }
.reading-facts .reading-value { font-size:clamp(28px,3vw,40px); }
.reading-facts .reading-fact[data-component="fact"] .reading-value { font-size:20px;line-height:1.5; }
.reading-facts .reading-value--long { font-size:20px;line-height:1.6; }
.reading-facts .reading-value--structured { font-size:14px; }
.reading-value .reading-primary-unit { display:inline;font-size:18px;font-weight:500;margin-inline-start:8px; }
.reading-facts .reading-group-label { color:var(--muted,#b0c8db);font-size:14px;margin-bottom:12px; }
.reading-facts .reading-explanation { max-width:70ch;line-height:1.7; }
.reading-metric-basis { margin:14px 0;font-size:14px;display:grid;gap:8px; }
.reading-metric-basis>div { display:grid;grid-template-columns:minmax(70px,.3fr) minmax(0,1fr);gap:12px; }
.reading-metric-basis dt { color:var(--muted,#b0c8db); }
.reading-metric-basis dd { margin:0; }
.reading-page .reading-data-note { margin-block:22px; }
.reading-page .reading-question { margin:24px 0;padding-block:24px;border-block:1px solid var(--border,#294b64); }
.reading-question a { display:inline-flex;align-items:center;gap:12px;min-height:44px;font-weight:600; }
.reading-measurement { margin-block:24px;min-width:0; }
.reading-measurement .reading-change { font-size:16px; }
.reading-change>span { display:block;font-size:14px;color:var(--muted,#b0c8db);margin-top:6px; }
.reading-chart { margin:18px 0; }
.reading-chart figcaption { font-size:14px;line-height:1.65; }
.reading-chart figcaption>span { display:block;color:var(--muted,#b0c8db); }
.reading-measurement svg.reading-plot { display:block;width:100%;height:280px;overflow:visible; }
.reading-axis { fill:none;stroke:var(--muted,#b0c8db);stroke-width:1;opacity:.55;vector-effect:non-scaling-stroke; }
.reading-axis-label { fill:var(--text,#d8e8f5);stroke:none;font-size:16px; }
.reading-line { fill:none;stroke:var(--cyan,#8cd5f7);stroke-width:2.5;vector-effect:non-scaling-stroke; }
.reading-point { fill:var(--cyan,#8cd5f7);stroke:var(--bg,#07111f);stroke-width:2;cursor:pointer;vector-effect:non-scaling-stroke; }
.reading-point.is-active,.reading-point:focus-visible { fill:var(--text,#edf7ff);stroke:var(--cyan,#8cd5f7);stroke-width:3; }
.reading-bars { list-style:none;margin:20px 0;padding:0;display:grid;gap:12px; }
.reading-bar-info { display:flex;justify-content:space-between;align-items:start;gap:16px;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;min-height:44px;cursor:pointer; }
.reading-bar-info>span { min-width:0;overflow-wrap:anywhere; }
.reading-bar-info strong { flex:0 0 auto;font-size:16px;max-width:50%;overflow-wrap:anywhere; }
.reading-page svg.reading-bar { display:block;width:100%;height:44px; }
.reading-bar rect { fill:var(--cyan,#8cd5f7);stroke:none; }
.reading-point-navigation { display:grid;gap:8px;font-size:14px; }
.reading-point-navigation select { min-width:0;width:100%;min-height:44px;padding:10px 8px;border:1px solid var(--border,#43627c);border-radius:8px;background:var(--bg,#081e30);color:inherit;font:inherit; }
.reading-point-output { margin-top:12px!important;font-size:14px;min-height:48px; }
.reading-table-toggle,.reading-source-back { font:inherit;font-size:14px;min-height:44px;padding:10px 14px;border:1px solid var(--border,#365b76);border-radius:8px;background:transparent;color:var(--text,#dcf3ff);cursor:pointer; }
.reading-data-table { table-layout:fixed;width:100%;border-collapse:collapse;font-size:14px;line-height:1.65;margin:16px 0;text-align:left; }
.reading-data-table caption { text-align:left;padding:8px 0;color:var(--muted,#b0c8db); }
.reading-data-table th,.reading-data-table td { vertical-align:top;padding:12px 8px;border-bottom:1px solid var(--border,#294b64);overflow-wrap:anywhere; }
.reading-data-table a { display:block;margin-bottom:8px; }
.overview-project-facts .overview-fact-link { background:transparent;color:inherit;border:0;border-top:1px solid var(--border,#294659);width:100%;text-align:left;font:inherit;cursor:pointer; }
.overview-project-facts .overview-fact-link:focus-visible { outline:2px solid var(--cyan,#8bd5ff);outline-offset:3px; }
.overview-project-facts .overview-fact-link>strong { font-size:14px;font-weight:500;color:var(--muted,#b0c8db); }
.overview-project-facts .overview-fact-link>span { font-size:28px;line-height:1.4;color:var(--text,#edf7ff);font-weight:650; }
.overview-project-facts time,.overview-project-facts>p { font-size:14px; }
.overview-project-facts>button:last-child { margin-top:14px;min-height:44px;font-size:14px; }
.overview-project-facts { padding:0 20px 20px; }
.overview-following .overview-project-list:has(>.overview-project-card:only-child) { grid-template-columns:minmax(0,1fr); }
.overview-project-card .overview-project-open { flex:0 0 auto; }
.overview-project-card .overview-project-facts { margin-top:0; }
.overview-project-card .project-card-summary { font-size:14px;line-height:1.7;display:block;min-height:0; }
@container(max-height:400px){.overview-project-card .project-card-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:0}.overview-project-card .overview-project-open{padding:10px 12px;gap:8px}.overview-project-card .overview-project-facts{padding:0 12px 16px}.overview-project-card .overview-project-facts>p{margin-block:4px}.overview-project-facts .overview-fact-link>span{font-size:22px}}
.overview-project-card .project-card-identity small { font-size:14px; }
@container(min-width:780px){
 .overview-project-list>.overview-project-card:only-child { display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.85fr);gap:24px;align-items:start; }
 .overview-project-card:only-child .overview-project-open { padding:24px; }
 .overview-project-card:only-child .overview-project-facts { margin:0;padding:20px 56px 20px 0; }
 .overview-project-card:only-child .project-card-identity strong { font-size:20px; }
}
@media(max-width:900px){.reading-facts{grid-template-columns:minmax(0,1fr)}.reading-measurement svg.reading-plot{height:250px}}
@media(max-width:600px){
 .reading-facts .reading-fact{padding:20px 16px}
 .reading-metric-basis>div{grid-template-columns:1fr;gap:2px}
 .reading-data-table,.reading-data-table tbody,.reading-data-table tr,.reading-data-table th,.reading-data-table td{display:block;width:auto}
 .reading-data-table caption{display:block;width:auto}
 .reading-data-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .reading-data-table tr{margin-bottom:16px;border-bottom:1px solid var(--border,#294b64)}
 .reading-data-table th,.reading-data-table td{border:0;padding:6px 0}
 .reading-bar-info{flex-wrap:wrap;gap:4px}.reading-bar-info strong{max-width:100%}
}

/* The existing composer is also the generic project workspace. */
.chat-project-tools { padding: 10px 28px 4px; }
.chat-project-tools h3 { margin: 0 0 8px; font-size: clamp(1.1rem,2vw,1.5rem); }
.chat-project-tools p { color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.chat-project-tools .pe-actions { display:flex;flex-wrap:wrap;gap:12px;align-items:center; }
.project-workspace .chat-layout { grid-template-columns: minmax(0,1fr); }
.project-workspace .chat-sidebar,.project-workspace .chat-history-toggle { display:none; }
.project-workspace .chat-header { order:0; }
.project-workspace .chat-project-tools { order:1; }
.project-workspace .chat-compose-area { order:3; max-width:none; padding-top:12px; }
.project-workspace .chat-messages { order:2; padding:16px 28px; }
.project-workspace .chat-compose-area .chat-context { display:block; }
.project-workspace .chat-context #chat-connection,.project-workspace .chat-context #chat-upgrade { display:none; }
.project-workspace #chat-quota { display:block; }
.project-workspace .chat-compose-meta { flex-wrap:wrap; }
.project-workspace #chat-input { min-height:70px;max-height:160px; }
.project-send-label { display:none; }
.project-workspace .project-send-label { display:inline; }
.project-workspace .chat-send { display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;gap:8px;padding:10px 14px;white-space:nowrap; }
.chat-messages { order:1; }
.chat-compose-area { order:2; }
.project-workspace .chat-message { overflow-wrap:anywhere; }
.project-workspace .chat-empty { padding:18px 0; }
.project-workspace :focus-visible { outline:2px solid #8bd5ff;outline-offset:4px; }
#chat-retry { margin-top:8px; }
@media(max-width:640px){.chat-project-tools{padding:8px 16px 0}.project-workspace .chat-messages{padding:12px 16px}.project-workspace .chat-send{padding:10px}.project-workspace #chat-input{min-height:56px}.chat-project-tools p{font-size:.85rem}}

/* Unscaled HTML axes share the SVG's data bounds at every viewport width. */
.reading-series-axes { display:grid;grid-template-columns:minmax(0,3.4em) minmax(0,1fr);gap:1em 10px;font-size:.875rem;line-height:1.4; }
.reading-series-axes[data-long-axis] { row-gap:1.6em; }
.reading-axis-unit,.reading-axis-timezone { color:var(--muted,#b0c8db);overflow-wrap:anywhere; }
.reading-axis-timezone { text-align:right; }
.reading-y-labels { position:relative;min-width:0;text-align:right; }
.reading-y-labels>span { position:absolute;right:0;max-width:100%;white-space:pre-line;overflow-wrap:anywhere;transform:translateY(-50%); }
.reading-y-high { top:0; }.reading-y-low { top:100%; }
.reading-series-axes .reading-plot { height:220px; }
.reading-x-labels { grid-column:2;display:flex;justify-content:space-between;align-items:start;gap:12px;padding-inline:2%; }
.reading-x-labels>span { max-width:48%;white-space:pre-line;overflow-wrap:anywhere; }
.reading-x-labels>span:last-child { text-align:right; }
.reading-zero-line { fill:none;stroke:#b0c8db;stroke-width:1;stroke-dasharray:4 5;opacity:.65;vector-effect:non-scaling-stroke; }
.reading-page .reading-period { font-size:.9375rem;color:var(--muted,#b0c8db);line-height:1.5; }
.reading-page .reading-measurement { margin-block:18px; }
.reading-page .reading-chart { margin-block:20px; }
.reading-page .reading-point-output { min-height:0; }

/* R7: content-led cards and one reading sequence, within the existing theme. */
.reading-controls button { background:transparent; box-shadow:none; font-weight:500; }
.reading-controls p { flex-basis:100%; font-size:14px; }
.reading-facts { gap:18px; margin-bottom:14px; }
.reading-facts .reading-fact { padding:22px; }
.reading-fact-heading h3 { margin:0 0 6px; }
.reading-facts .reading-group-label { margin-bottom:4px; }
.reading-primary,.reading-context { min-width:0; }
.reading-facts .reading-value { font-size:clamp(30px,3vw,38px); margin:4px 0 10px; }
.reading-facts .reading-value--long { font-size:20px; line-height:1.6; }
.reading-facts .reading-value--structured { font-size:14px; }
.reading-value-label { font-size:14px; color:var(--muted,#b0c8db); }
.reading-page .reading-value-label { margin:0; }
.reading-page .reading-period { display:flex; flex-wrap:wrap; gap:2px 14px; margin:0 0 14px; }
.reading-page .reading-explanation { max-width:60ch; margin:0 0 12px; line-height:1.65; }
.reading-qualification { font-size:16px; line-height:1.65; color:var(--muted,#b0c8db); max-width:70ch; }
.reading-page .reading-observed { margin:8px 0 0; }
.reading-page .reading-context { margin-top:4px; }
.reading-context .reading-qualification { margin:0; }
.reading-actions { gap:8px; margin-top:14px; }
.reading-actions button,.reading-actions a { background:transparent; font-size:14px; }
.reading-page .reading-dates { margin-top:8px; }
.reading-page .reading-measurement { margin:0; }
.reading-page .reading-chart { margin:18px 0; }
.reading-chart-controls { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:end; padding-top:12px; border-top:1px solid var(--border,#294b64); }
.reading-point-navigation { flex:1 1 240px; min-width:0; gap:4px; }
.reading-table-toggle { flex:0 0 auto; }
.reading-page .reading-point-output { margin:8px 0 0!important; color:var(--muted,#b0c8db); font-size:14px; line-height:1.65; }
.reading-bars { margin:0; gap:12px; }
.reading-bar-info { gap:4px 12px; align-items:center; }
.reading-bar-info.is-active { color:var(--cyan,#8cd5f7); }
.reading-page .reading-point-references { margin:0; padding:0; border:0; background:transparent; }
.reading-point-references summary { cursor:pointer; min-height:44px; padding:8px 0; }
.reading-point-references ol { list-style:none; padding:0; margin:0; }
.reading-point-references li { margin-bottom:12px; }
.reading-data-table .reading-point-references a { margin:0; }
.reading-point-references time { display:block; color:var(--muted,#b0c8db); }
.reading-data-table td:nth-child(2) { font-variant-numeric:tabular-nums; font-weight:600; }
.overview-project-facts .overview-fact-link { padding-block:12px; }
.overview-project-facts .overview-fact-link>span { margin-top:2px; font-size:30px; }
@media(max-width:600px){
 .reading-facts .reading-fact { padding:18px 16px; }
 .reading-header [data-reading-controls] { flex-basis:100%; }
 .reading-tabs button { padding-inline:11px; }
 .reading-chart-controls { gap:8px; }
 .reading-point-navigation { flex-basis:100%; }
}
/* Shared fact-version presentation: the same content is used in widgets. */
.archive-section{margin-block:24px;padding-block:16px;border-top:1px solid #29465a;min-width:0}
.archive-section h3{font-size:20px;line-height:1.4;margin:0 0 16px}.archive-section h4{font-size:16px;line-height:1.5}
.archive-section p,.archive-section label,.archive-section summary,.archive-fact p{font-size:15px;line-height:1.65;overflow-wrap:anywhere}
.archive-section select{display:block;max-width:100%;min-height:44px;margin-block:8px 16px;background:#0b2030;color:#e1eff9;border:1px solid #4c6c83;border-radius:8px;padding:8px 12px}
.archive-timeline{list-style:none;margin:16px 0;padding:0;display:grid;gap:16px}.archive-timeline>li{border-inline-start:2px solid #419bc3;padding-inline-start:16px}
.archive-section details{padding:12px 0}.archive-section summary,.archive-fact summary{cursor:pointer;min-height:44px;padding-block:10px;color:#dceefa}
.archive-fact{border:1px solid #29465a;background:#0a1c29;border-radius:12px;margin-block:12px;padding:20px;min-width:0}
.archive-fact .reading-value{font-size:17px;font-weight:550;white-space:pre-wrap;line-height:1.65}.archive-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.archive-comparison>div{min-width:0}
.reading-tabs{flex-wrap:wrap}.reading-tabs button{min-height:44px}.reading-page [data-widget-part]{min-width:0}.reading-page [data-reading-panel]>*{max-width:100%}
.reading-page [data-reading-panel][hidden],.archive-section [hidden],.archive-fact[hidden]{display:none!important}
.archive-section :focus-visible,.reading-page summary:focus-visible{outline:2px solid #79ceff;outline-offset:3px;border-radius:4px}
@media(max-width:700px){.archive-comparison{grid-template-columns:minmax(0,1fr)}.archive-fact{padding:16px}.archive-timeline>li{padding-inline-start:12px}}
@media(prefers-reduced-motion:reduce){.archive-section *{scroll-behavior:auto!important;transition:none!important}}

/* The approved editorial profile is separate from the permitted CORE cards. */
.reading-introduction { display:flex; align-items:start; flex-wrap:wrap; gap:8px 24px; padding-bottom:24px; margin-bottom:28px; border-bottom:1px solid var(--surface-edge); }
.reading-introduction p { flex:1 1 420px; max-width:75ch; margin:0; }
.reading-introduction .reading-secondary { flex-basis:100%;max-width:none;font-size:12px; }
.reading-introduction a { display:inline-flex; gap:8px; align-items:center; min-height:44px; font-size:14px; }
.reading-profile { min-width:0; margin-top:24px; }
.reading-profile .pd-intro { font-size:18px; line-height:1.7; max-width:78ch; }
.reading-profile .pd-profile-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 28px; margin-block:28px; }
.reading-profile .pd-profile-facts > div { min-width:0; padding-block:14px; border:0; border-top:1px solid var(--surface-edge); }
.reading-profile dt { color:var(--muted); font-size:14px; }
.reading-profile .pd-profile-facts dd { text-align:start; margin:6px 0 0; font-size:16px; font-weight:550; color:var(--text); overflow-wrap:anywhere; }
.reading-profile dd a { display:inline-flex; align-items:center; justify-content:center; min-width:24px; min-height:24px; }
.reading-profile .reading-profile-section { margin-block:28px; max-width:78ch; }
.reading-profile-section > a { display:inline-flex; align-items:center; min-height:44px; font-size:14px; }
.reading-profile .pd-header-links { display:flex; flex-wrap:wrap; gap:4px 24px; }
.reading-profile .pd-header-links a { min-height:44px; display:inline-flex; align-items:center; font-size:14px; }
.reading-profile-provenance { padding-top:20px; border-top:1px solid var(--surface-edge); }
.reading-profile-provenance details { border:0; background:transparent; margin:0; padding:0; }
.reading-profile summary { cursor:pointer; min-height:44px; padding-block:10px; }
.reading-profile ul { padding-inline-start:20px; margin-top:8px; }
.reading-profile li a { display:inline-flex; align-items:center; min-height:44px; overflow-wrap:anywhere; max-width:100%; }
.widget-topic-status{padding:0 0 10px;margin-block-end:12px;border-bottom:1px solid var(--surface-edge);font-size:14px;line-height:1.6}
.widget-topic-status p{margin:0}.widget-topic-status .widget-project-name{color:var(--text);font-size:14px;font-weight:600}.widget-topic-status p+p{margin-block-start:6px}
@media(max-width:700px){.reading-profile .pd-profile-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.reading-profile .pd-intro{font-size:16px}}
@media(max-width:420px){.reading-profile .pd-profile-facts{grid-template-columns:minmax(0,1fr)}}

/* One bound measurement model serves the project reader and compact trends. */
.reading-measurement{min-width:0}.reading-measurement [hidden]{display:none!important}
.reading-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-block:18px 12px}
.reading-chart-heading p{margin:0;min-width:0;font-weight:600;overflow-wrap:anywhere}
.reading-period-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px;border:1px solid #365b76;border-radius:10px;padding:16px;margin:0 0 12px;min-width:0}
.reading-period-controls legend{padding-inline:6px;font-weight:600}.reading-period-controls label{display:grid;gap:6px;flex:1 1 220px;min-width:0}
.reading-period-controls select{width:100%;min-width:0;max-width:100%;min-height:44px;padding:10px 8px;background:#081e30;color:#e5f3ff;border:1px solid #43627c;border-radius:8px;font:inherit;font-size:14px}
.reading-period-controls p{flex-basis:100%;margin:0}.reading-period-controls button{white-space:normal}
.reading-measurement[data-expanded=true] svg.reading-plot{height:clamp(300px,44vh,480px)}
.reading-measurement[data-expanded=false] svg.reading-plot{height:170px}
.reading-measurement[data-compact=true][data-expanded=false] .reading-period-controls,
.reading-measurement[data-compact=true][data-expanded=false] [data-point-details]{display:none}
.reading-measurement[data-compact=true][data-expanded=false] .reading-chart-heading{font-size:14px}
.reading-point-details{margin-block:16px;padding:18px;border:1px solid #365b76;border-radius:10px;background:#0a2030}
.reading-point-details h4{margin:0 0 12px;font-size:17px}.reading-point-details dl{margin-block:0 14px}
.reading-point-details dd{overflow-wrap:anywhere}.reading-point-details summary{cursor:pointer;min-height:44px;padding-block:10px}
.reading-point-sources{margin:0;padding-inline-start:20px}.reading-point-sources a{color:#83d3fc;overflow-wrap:anywhere;min-height:44px;display:inline-flex;align-items:center}
.reading-measurement .reading-x-labels>span{white-space:normal;overflow-wrap:anywhere;font-size:12px}
.reading-measurement :focus-visible{outline:2px solid #79ceff;outline-offset:3px}
@media(max-width:600px){.reading-period-controls{padding:12px}.reading-period-controls label{flex-basis:100%}.reading-point-details{padding:14px}.reading-measurement[data-expanded=true] svg.reading-plot{height:300px}.reading-chart-heading button{width:100%}}

.reading-y-labels[data-flat-level] .reading-y-high{top:50%}
