/* One publication identity across the dashboard, close report and practice tool. */
:root {
  --station-deep: #081632;
  --station-paper: #f3f5f9;
  --station-edge: #d9e1ee;
  --station-muted: #4a5c78;
  --station-shadow: 0 10px 30px -21px #0b1b3f55;
}
body {color:var(--brand-navy);background:var(--station-paper);font-family:Inter,"Microsoft YaHei",system-ui,sans-serif}
.siteHead {background:white;color:var(--brand-navy);border-bottom:1px solid var(--station-edge)}
.siteHead .bar {
  margin:auto;max-width:1250px;min-height:64px;padding:9px 24px;display:flex;align-items:center;
  justify-content:space-between;gap:12px;flex-wrap:wrap;border:0;
}
.siteHead .brandLock, .siteHead .bar>.brandLock:first-child {
  display:inline-flex;align-items:center;gap:9px;text-decoration:none;color:var(--brand-navy);
  font-weight:760;letter-spacing:.015em;line-height:1.16;
}
.brandLock img {display:block;object-fit:contain;border-radius:8px;background:var(--brand-navy)}
.brandLock span {font-size:1.1rem}
.siteHead .brandLock small {
  display:block;margin:.22rem 0 0;color:var(--brand-blue);font:650 .71rem/1.1 system-ui;
  letter-spacing:.075em;white-space:nowrap;
}
.siteHead nav {display:flex;align-items:center;gap:1rem}
.siteHead nav a,.siteHead #memberLogin {color:var(--brand-link);font-size:.91rem;font-weight:650;text-decoration:none}
.siteHead .actions {gap:12px}
.siteHead a:hover {text-decoration:underline;text-underline-offset:4px}
.siteHead .join {background:var(--brand-navy);color:white;font-weight:650;border-radius:9px;border:0}

main,.observePage .shell {max-width:1250px;margin:auto}
.deskPage main,.sandboxPage main,.observePage main.shell {padding:18px 24px 44px}
.stationMast {
  isolation:isolate;overflow:hidden;position:relative;
  background:radial-gradient(ellipse at 83% -140%,#456097 4%,transparent 66%),linear-gradient(112deg,#081631 1%,#122953 58%,#1d3765 100%);
  color:#fff;border-radius:18px;box-shadow:var(--station-shadow);
}
.stationMast::after {
  content:"";position:absolute;z-index:-1;pointer-events:none;
  inset:0 0 0 43%;
  background:repeating-radial-gradient(ellipse at 100% 195%,transparent 0 27px,#d4a5373d 28px,transparent 29px 54px);
  mask-image:linear-gradient(90deg,transparent,#000 40%);
}
.mastContent {display:flex;gap:.4rem 1.2rem;justify-content:space-between;align-items:center;padding:23px 28px 19px}
.stationMast h1,.observePage .title h1 {
  color:white;font:730 clamp(1.7rem,3.3vw,2.65rem)/1.16 system-ui;letter-spacing:-.035em;margin:0;
}
.mastContent h1 small {
  display:inline-block;vertical-align:middle;color:#f4d586;font:650 .76rem/1.6 ui-monospace,monospace;
  letter-spacing:.03em;margin-left:4px;padding:0 7px;border:1px solid #d4a53772;border-radius:5px;
}
.stationMast .mastDate {color:#dce6f8;margin:0;font-size:.9rem;font-variant-numeric:tabular-nums}
.stationMast nav {padding:0 24px;display:flex;align-items:stretch;gap:1.5rem;border-top:1px solid #ffffff26;background:#0816324d}
.stationMast nav a {
  color:#edf1fa;text-decoration:none;font-size:.93rem;font-weight:620;
  display:inline-flex;align-items:center;min-height:43px;padding:0 .2rem;
}
.stationMast nav a:hover,.stationMast nav a:focus-visible {box-shadow:inset 0 -3px var(--brand-gold);color:white}
.deskPage main>section,.observePage main>section,.sandboxPage main>section,.deskPage .grid>section {
  background:white;border:1px solid var(--station-edge);border-radius:16px;box-shadow:var(--station-shadow);
}
.deskPage main>section,.sandboxPage main>section {margin:18px 0;padding:clamp(16px,2vw,26px)}
.deskPage main>section>h2,.deskPage main>section>.row>h2,.sandboxPage main>section>.row>h2,.observePage .heading h2 {
  color:var(--brand-navy);font:720 clamp(1.18rem,2vw,1.52rem)/1.32 system-ui;letter-spacing:-.024em;
}
.deskPage main>section:not(#portfolio)>h2::before,.deskPage main>section>.row>h2::before,.sandboxPage main>section>.row>h2::before,.observePage .heading h2::before {
  content:"";display:inline-block;width:4px;height:.9em;background:var(--brand-gold);margin-right:.55rem;vertical-align:-.025em;border-radius:2px;
}
#portfolio {border:1px solid var(--station-edge);border-radius:16px;box-shadow:var(--station-shadow)}
.reportTop {display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 1rem}
#portfolio .reportTop h2 {font-size:clamp(1.38rem,2.25vw,1.92rem);color:var(--brand-navy);letter-spacing:-.045em}
#portfolio #pfEdit {margin:0;padding:0;border:0;width:auto}
#portfolio #pfEdit summary {
  border:1px solid #bdcce0;border-radius:9px;background:#f2f5fb;color:var(--brand-navy);
  padding:8px 12px;min-height:40px;display:flex;align-items:center;gap:7px;font-size:.9rem;list-style:none;
}
#portfolio #pfEdit summary::-webkit-details-marker {display:none}
#portfolio #pfEdit summary::after {content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
#portfolio #pfEdit[open] {grid-column:1/-1}
#portfolio #pfEdit[open] summary::after {transform:translateY(2px) rotate(225deg)}
#pfEdit .editBody {
  margin:.5rem 0 0;padding:1rem;border-radius:12px;background:#f5f7fb;border:1px solid var(--station-edge);
}
.editFields {display:flex;flex-wrap:wrap;gap:.55rem 1.3rem;margin-bottom:.9rem}
.editFields label,#pfEdit .pfTools label {display:flex;align-items:center;gap:.4rem;color:var(--station-muted);font-weight:580}
#pfEdit .editBody p {font-size:.9rem;color:var(--station-muted)}
#pfComposition {
  grid-column:1/-1;display:flex;flex-wrap:wrap;gap:.32rem;margin:.12rem 0;
  font-family:system-ui,sans-serif;font-size:.84rem;color:var(--brand-blue);
}
#pfComposition>span {display:inline-flex;gap:5px;align-items:center;padding:2px 7px;background:#f0f3f9;border-radius:6px;border:1px solid #e1e7f1;white-space:nowrap}
#pfComposition b {color:var(--brand-navy);font-weight:730}
#portfolio #pfNotice {color:var(--station-muted);margin:.35rem 0 .7rem;font-size:.86rem}
.metricStrip {gap:9px;border:none;margin:0 0 .85rem;background:transparent;border-radius:0;overflow:visible}
.metricStrip>div {
  border:1px solid var(--station-edge);padding:.8rem 1rem;border-radius:10px;
  background:linear-gradient(130deg,#fff,#f1f4fa);
}
.metricStrip>div:first-child {background:linear-gradient(118deg,#0b1b3f,#213a68);border-color:var(--brand-navy)}
.metricStrip>div:first-child span,.metricStrip>div:first-child small {color:#dbe5f6}
.metricStrip>div:first-child strong {color:#f6d98e}
.metricStrip strong {font-size:clamp(1.35rem,2.6vw,2.06rem);font-weight:730}
.metricStrip>div:nth-child(3) {background:linear-gradient(120deg,#fff,#fcf5f3)}
.plotPanel {
  background:linear-gradient(120deg,#0b1b3f 10%,#152e58 72%,#1c355e);
  border:1px solid #22395f;border-radius:13px;padding:1rem 1.15rem;
}
.plotHead h3,.reviewPanel .plotPanel h3 {color:#fff}
.plotModes {background:#0717375c;border-color:#667ba0}.plotModes button:focus-visible {outline-offset:-3px}
.analyticPlot,#pfChart {height:255px}
.mixPanel {background:linear-gradient(156deg,#fff 55%,#f3f5fa);border-color:var(--station-edge);border-radius:13px}
.mixRing {box-shadow:0 3px 12px #0b1b3f18}
#portfolio .resultNotes {border-left:3px solid var(--brand-gold);padding:.25rem .8rem;margin:.8rem 0;background:#faf8f3}
#portfolio .returnDetail {margin:.1rem 0;padding:.7rem 0}
#portfolio .returnDetail summary {width:fit-content}
.deskPage .followPanel {
  background:linear-gradient(110deg,#152a51,#273f69);color:#fff;border:0;border-radius:13px;
  border-left:4px solid var(--brand-gold);box-shadow:var(--station-shadow);
}
.followPanel p {color:#e3eafa}.followPanel a {color:var(--brand-navy);background:#f5d991}
.deskPage .fearNav {font-size:.94rem;gap:.45rem;color:var(--station-muted)}
.fearNav a {padding:4px 9px;background:white;border:1px solid var(--station-edge);border-radius:8px;text-decoration:none}
#fearSymbols,#joint-symbols {border:1px solid var(--station-edge);border-radius:10px;background:#f6f8fc;padding:.5rem .7rem .7rem;min-width:0}
#fearSymbols legend,#joint-symbols legend {padding:0 .35rem;font-weight:650}
#fearSymbols label,#joint-symbols label {display:inline-flex;align-items:center;gap:.25rem;margin:.12rem .18rem .12rem 0;padding:4px 7px;background:white;border:1px solid #dde5f0;border-radius:6px}
#fearSymbols label:has(:checked),#joint-symbols label:has(:checked){background:#ecf1fb;border-color:#9bb0d0;color:var(--brand-navy)}
input[type=checkbox]{accent-color:var(--brand-blue)}.plotPanel input[type=checkbox]{accent-color:var(--brand-gold)}
.deskPage main table th,.observePage main table th,.sandboxPage main table th {color:var(--brand-navy-raised)}
.deskPage main thead,.observePage main thead,.sandboxPage main thead {background:#edf1f8}
#fearCards article,.compareCard,.joint-cards article,.observePage .asset,.observePage .box {border:1px solid #d9e3ef;background:linear-gradient(125deg,#f1f5fb,#fff);border-radius:10px}
.deskPage .member {background:#faf4e6;border-color:#e4d5af}
footer {color:var(--station-muted)}
.observePage .title.stationMast {padding:24px 26px;margin:0 0 14px}
.observePage .title.stationMast .kicker {color:#f4d586}
.observePage .title.stationMast p,.sandboxPage .mastContent p {color:#dee7f7;margin:.4rem 0 0}
.observePage .title.stationMast .primary {color:var(--brand-navy);background:var(--brand-gold);border:0;font-weight:700}
.observePage .shell .signal {background:linear-gradient(116deg,#f6f8fc,#eff2f9);color:var(--brand-navy);border-left:4px solid var(--brand-gold)}
.observePage .signal-grid p,.observePage .quotes span,.observePage .quotes small {color:var(--station-muted)}
.observePage .signal .eyebrow {color:#765817}
.observePage .quotes>div {border-color:#b9c7db}
.sandboxPage .mastContent {display:block}
.sandboxPage #chart {background:#f3f6fb;border-radius:9px}
:where(.siteHead,.stationMast,#portfolio) :focus-visible {outline:3px solid #ac7915;outline-offset:2px}
@media(max-width:720px){
  .siteHead .bar {padding:7px 12px;min-height:55px;gap:.3rem .6rem}
  .brandLock img {width:36px;height:36px;border-radius:7px}
  .brandLock span {font-size:1rem}.siteHead .brandLock small{font-size:.61rem;margin-top:2px}
  .siteHead .actions{gap:9px}.siteHead #memberLogin,.siteHead .join,.siteHead nav a{font-size:.86rem}
  .deskPage main,.sandboxPage main,.observePage main.shell {padding:10px 10px 30px}
  .stationMast {border-radius:13px}
  .mastContent {padding:13px 15px 10px;flex-wrap:wrap;gap:2px 12px}
  .mastContent h1 {font-size:1.67rem}.stationMast .mastDate {font-size:.82rem}
  .stationMast nav {justify-content:space-between;gap:.1rem;padding:0 11px}
  .stationMast nav a {min-height:37px;font-size:.85rem}
  .deskPage .stationMast nav {flex-wrap:wrap;justify-content:flex-start;gap:0 .75rem}
  .deskPage .stationMast nav a,.strategyPage .siteHead nav a {min-height:44px;white-space:nowrap}
  .strategyPage .siteHead nav {flex-wrap:wrap;gap:0 .8rem}
  .deskPage main>section,.sandboxPage main>section {margin:10px 0;padding:13px}
  .observePage .title.stationMast {padding:16px}
  #portfolio {padding:12px;border-radius:13px}.reportTop{gap:2px 7px}
  #portfolio #pfEdit summary {min-height:36px;padding:6px 9px}
  .editFields {display:grid;grid-template-columns:1fr 1fr;gap:9px}
  .editFields label {min-width:0;display:grid;font-size:.88rem}
  .editFields select {width:100%;min-width:0}
  #pfEdit .editBody {padding:.65rem}
  #pfComposition {font-size:.79rem;gap:3px}
  #pfComposition>span {gap:3px;padding:2px 5px}
  #portfolio #pfNotice {margin:.35rem 0 .55rem;font-size:.82rem}
  #pfResult {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #pfResult[hidden] {display:none}
  #pfResult>:not(.chartGrid,.metricStrip) {grid-column:1/-1}
  .metricStrip,.chartGrid {display:contents}
  .metricStrip>div {padding:9px 10px;min-width:0}
  .metricStrip>div:nth-child(-n+2){grid-row:1}
  .metricStrip>div:nth-child(n+3){grid-row:3}
  .metricStrip strong {margin:.12rem 0;font-size:clamp(1.23rem,5.6vw,1.65rem)}
  .metricStrip span,.metricStrip small {font-size:.79rem}
  .chartGrid>.plotPanel {grid-row:2;grid-column:1/-1}
  .chartGrid>.mixPanel {grid-row:4;grid-column:1/-1}
  .plotPanel{padding:10px}.plotModes{margin:.35rem 0 .2rem}
  #pfChart,.analyticPlot {height:192px}
  #portfolio .plotModes button{min-height:36px}
  #portfolio .resultNotes {margin:0}
}
@media(max-width:360px){
  .siteHead .actions{gap:6px}.siteHead .join{padding:7px 8px}
  .mastContent {justify-content:flex-start}.stationMast nav a {font-size:.81rem}
  #pfComposition {font-size:.76rem}
}

.shelfTop {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:1rem}
.shelfTop h2 {margin:0}.shelfTop a {color:#28466e;font-weight:650}
.shelfLinks {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.shelfLinks a {border:1px solid #d6dfed;border-radius:12px;padding:15px;background:linear-gradient(135deg,#f7f9fc,white);color:#0b1b3f;text-decoration:none;display:grid;gap:5px}
.shelfLinks a:focus-visible,.shelfLinks a:hover {border-color:#ac842a;background:#faf7ee}
.shelfLinks small {font-size:.82rem;letter-spacing:.07em;font-weight:750;color:#745410}
.shelfLinks strong {font-size:1.05rem}.shelfLinks span {font-size:.91rem;color:#485c78}
@media(max-width:650px){.shelfLinks{grid-template-columns:1fr;gap:7px}.shelfLinks a{padding:10px 12px}.shelfTop{margin-bottom:10px}}
.classicCase{margin-top:14px;padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:8px 15px;flex-wrap:wrap;background:#f7f4ea;border-radius:10px;border-left:3px solid #bf9637}
.classicCase small{color:#745410;font-weight:700}.deskPage .classicCase h3{margin:.25rem 0;font-size:1.03rem}.deskPage .classicCase p{margin:.25rem 0;color:#40546c;font-size:.94rem}
.classicCase a{font-weight:650;color:var(--brand-navy);min-height:44px;display:inline-flex;align-items:center}

/* The home masthead and tool directory share an outside edge at every width. */
#researchNav {--nav-gutter:clamp(14px,2.2vw,28px);border:1px solid #d3dce9}
#researchNav .mastContent {
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;
  gap:.5rem 1rem;padding:20px var(--nav-gutter);
}
#researchNav h1 {line-height:1.25}
#researchNav .mastDate {margin:0;color:#dae4f4;line-height:1.45}
#researchNav .liteEntry {
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  padding:0 .85rem;border:1px solid #a7b7cf70;border-radius:8px;
  color:#f8faff;text-decoration:none;font-size:.9rem;font-weight:600;
}
#researchNav .editionLinks {display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
#researchNav .creatorEntry {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 .85rem;border-radius:8px;background:#f3d989;color:#172743;text-decoration:none;font-size:.9rem;font-weight:700}
#researchNav .liteEntry:hover {background:#ffffff15}
#researchNav .workspaceNav {display:block;padding:0;border:0;background:white;color:var(--brand-navy)}
.workspaceNav .quickLinks {
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;
  padding:7px var(--nav-gutter);
}
.workspaceNav.hasToggle .quickLinks {grid-template-columns:repeat(6,minmax(0,1fr))}
#researchNav .quickLinks a,#researchNav .directoryToggle {
  display:flex;align-items:center;justify-content:center;gap:.55em;
  min-width:0;min-height:44px;margin:0;padding:.4rem .25rem;border:1px solid transparent;
  border-radius:8px;background:transparent;color:var(--brand-link);text-decoration:none;
  font:650 .95rem/1.35 system-ui,sans-serif;text-align:center;
}
#researchNav .quickLinks a[aria-current] {
  color:var(--brand-navy);background:#f7f0df;border-color:#e5d5b0;
}
#researchNav .directoryToggle {
  background:#eef2f8;border-color:#dbe3ef;color:var(--brand-navy);cursor:pointer;
}
#researchNav .directoryToggle[aria-expanded="true"] {background:var(--brand-navy);border-color:var(--brand-navy);color:white}
.directoryToggle::after {content:"";width:.46em;height:.46em;border:solid currentColor;border-width:0 1.6px 1.6px 0;transform:translateY(-.12em) rotate(45deg)}
.directoryToggle[aria-expanded="true"]::after,#researchDirectory[open]>summary::after {transform:translateY(.1em) rotate(225deg)}
#researchNav .directoryToggle[hidden],#researchNav .hasToggle #researchDirectory>summary {display:none}
#researchDirectory {margin:0;padding:0;border:0}
#researchDirectory>summary::-webkit-details-marker {display:none}
#researchNav .directoryGrid {
  display:grid;grid-template-columns:2fr 2fr 1.35fr;gap:clamp(14px,2.2vw,28px);
  padding:15px var(--nav-gutter) 14px;border-top:1px solid #dce3ef;background:#f7f9fc;
}
.directoryGrid>div {min-width:0}
.directoryGrid>div+div {border-inline-start:1px solid #dce3ef;padding-inline-start:clamp(12px,1.8vw,24px)}
#researchNav .directoryGrid h2 {display:flex;align-items:center;gap:.45rem;margin:0 0 3px;color:var(--brand-navy);font:720 .94rem/1.5 system-ui,sans-serif}
.directoryGrid h2::before {content:"";width:3px;height:.85em;border-radius:2px;background:var(--brand-gold)}
.directoryGrid ul {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 6px;list-style:none;margin:0;padding:0}
.directoryGrid>div:last-child ul {grid-template-columns:minmax(0,1fr)}
#researchNav .directoryGrid a {
  display:flex;align-items:center;min-height:44px;width:100%;padding:4px 6px;
  color:#344966;border-radius:6px;font-size:.92rem;font-weight:540;line-height:1.4;
  white-space:normal;overflow-wrap:anywhere;
}
#researchNav .directoryGrid a[aria-current] {color:var(--brand-navy);background:#f4ecd8}
@media(hover:hover) {
  #researchNav .quickLinks a:hover,#researchNav .directoryGrid a:hover {background:#e8eef7;color:var(--brand-navy);box-shadow:none}
}
#researchNav .workspaceNav :focus-visible {outline:2px solid #91650c;outline-offset:-2px;box-shadow:none}
@media(max-width:749px) {
  #researchNav .directoryGrid {grid-template-columns:1fr;gap:0;padding-block:4px}
  #researchNav .directoryGrid>div {display:grid;grid-template-columns:8rem 1fr;align-items:baseline;padding:.4rem 0;border:0}
  #researchNav .directoryGrid>div+div {border-top:1px solid #dce3ef}
  .directoryGrid>div:last-child ul {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:660px) {
  #researchNav .mastContent {grid-template-columns:minmax(0,1fr) auto;gap:2px .5rem;padding-block:12px}
  #researchNav h1 {grid-column:1;grid-row:1}
  #researchNav .mastDate {grid-column:1;grid-row:2;font-size:.84rem}
  #researchNav .editionLinks {grid-column:1 / -1;grid-row:3;margin-top:.25rem}
  .workspaceNav .quickLinks,.workspaceNav.hasToggle .quickLinks {grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:6px 8px}
  #researchNav .quickLinks a,#researchNav .directoryToggle {font-size:.91rem}
  #researchNav .directoryGrid>div {display:block;padding:.6rem 0 .3rem}
  #researchNav .directoryGrid a {font-size:.9rem}
}
#pfArchiveIntro:not(:empty){padding:12px 16px;margin:.65rem 0;background:#f2f5fa;border-left:3px solid var(--brand-gold);border-radius:6px}#pfArchiveIntro p{margin:.25rem 0}#pfArchiveIntro small{color:var(--brand-muted)}

#pfSettings .pfCustomFields {display:flex;align-items:end;flex-wrap:wrap;gap:.65rem .9rem}
#pfSettings .pfCustomFields label {display:grid;gap:.3rem;min-width:0;color:var(--station-muted);font-weight:580}
#pfSettings .pfCustomFields input,#pfApplySettings {min-height:44px;box-sizing:border-box;max-width:100%}
#pfSettings .pfCustomFields [hidden] {display:none}
#pfSettingsStatus {margin:.45rem 0}
@media(max-width:600px){
  #pfSettings .pfCustomFields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #pfBenchmarkField,#pfApplySettings {grid-column:1/-1}
  #pfSettings .pfCustomFields input {min-width:0;width:100%}
}

#pfSaveForm {margin:.85rem 0;padding:1rem;border-radius:12px;border:1px solid var(--station-edge);background:#f7f9fc}
#pfSaveForm label {display:block;color:var(--brand-navy);font-weight:650;margin-bottom:.35rem}
#pfSaveForm>div {display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
#pfSaveForm input {min-height:44px;max-width:100%;width:17rem}
#pfSaveForm button {min-height:44px}
#pfSaveForm p {color:var(--station-muted);margin:.5rem 0;font-size:.9rem}
#pfSaveForm a {display:inline-flex;align-items:center;min-height:44px}
