:root { color-scheme: light; --ink: #172b3c; --muted: #657582; --line: #dce3e6; --paper: #fff; --blue: #266eaa; --amber: #c3882d; --cell: 13px; --gap: 4px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f5f6f3; color: var(--ink); font: 15px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--blue); text-underline-offset: 3px; }
button, select { font: inherit; color: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #147eb9; outline-offset: 3px; }
.site-header { max-width: 1300px; margin: 0 auto; padding: 24px 40px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 650; line-height: 1.3; }
.brand-mark { border: 1px solid var(--ink); padding: 10px 7px; font: 19px Georgia, serif; letter-spacing: -1px; }
.brand-caption { display: block; font-size: 9px; color: var(--muted); letter-spacing: 2px; margin-top: 4px; }
nav { display: flex; gap: 26px; }
nav a { text-decoration: none; font-size: 13px; color: var(--muted); padding: 9px 0; border-bottom: 2px solid transparent; }
nav a[aria-current] { color: var(--ink); border-color: var(--ink); }
.page-shell { max-width: 1100px; margin: 0 auto; padding: 48px 32px 64px; }
.page-heading { margin-bottom: 32px; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 2px; margin: 0 0 10px; }
h1 { font: 400 clamp(32px, 4.5vw, 49px)/1.15 Georgia, "Times New Roman", serif; margin: 0 0 16px; letter-spacing: -1.3px; }
.lede { color: var(--muted); max-width: 690px; margin: 0; font-size: 15px; }
.navigator { background: var(--paper); padding: 23px 26px 21px; border: 1px solid var(--line); border-radius: 7px; }
.section-heading, .snapshot-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.section-heading h2 { font-size: 15px; font-weight: 600; margin: 0; }
.text-button { border: 0; padding: 7px 0; color: var(--blue); background: transparent; font-size: 12px; text-decoration: none; white-space: nowrap; }
.calendar-top { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 10px; gap: 14px; }
.calendar-top label { color: var(--muted); font-size: 12px; }
select { border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 5px 24px 5px 9px; font-size: 12px; min-height: 33px; }
.calendar-top select { margin-left: 4px; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 11px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.news { background: #397fb3; }
.macro { background: #d5a04e; }
.both { background: linear-gradient(135deg, #397fb3 50%, #d5a04e 50%); }
.empty { background: #edf0f1; }
.calendar-scroll { overflow-x: auto; padding: 5px 4px 7px; scrollbar-width: thin; }
.calendar-layout { display: grid; grid-template-columns: 29px max-content; grid-template-rows: 19px auto; width: max-content; gap: 0 7px; }
.weekdays { grid-row: 2; display: grid; grid-template-rows: repeat(7, var(--cell)); gap: var(--gap); font-size: 9px; color: var(--muted); line-height: var(--cell); }
.calendar-months { grid-column: 2; display: grid; grid-auto-columns: var(--cell); grid-auto-flow: column; column-gap: var(--gap); font-size: 10px; line-height: 15px; color: var(--muted); }
.calendar-months span { overflow: visible; white-space: nowrap; }
.calendar-grid { grid-column: 2; grid-row: 2; display: grid; grid-template-rows: repeat(7, var(--cell)); grid-auto-columns: var(--cell); grid-auto-flow: column; gap: var(--gap); }
.calendar-day { width: var(--cell); height: var(--cell); border: 1px solid #172b3c08; border-radius: 2px; padding: 0; }
.calendar-day:hover { outline: 1px solid var(--ink); outline-offset: 1px; }
.calendar-day[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.calendar-day:focus-visible { outline: 2px solid #9e361a; outline-offset: 1px; z-index: 1; }
.calendar-day.outside { visibility: hidden; }
.reader-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 27px 0 14px; gap: 14px; }
.tabs { display: flex; gap: 4px; }
.tabs button { border: 1px solid transparent; background: transparent; color: var(--muted); padding: 9px 15px; font-size: 13px; border-radius: 4px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.date-caption { color: var(--muted); font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.reader-card { background: var(--paper); border: 1px solid var(--line); border-radius: 7px; padding: 38px clamp(22px, 6vw, 80px) 52px; }
.document-heading { border-bottom: 1px solid var(--line); padding-bottom: 23px; margin-bottom: 28px; }
.document-heading h2 { font: 400 29px/1.25 Georgia, serif; margin: 0 0 9px; }
.document { font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.document > :first-child { margin-top: 0; }
.document h1, .document h2, .document h3, .document h4 { line-height: 1.4; letter-spacing: 0; margin: 1.6em 0 .7em; }
.document h1 { font-size: 30px; }
.document h2 { font-size: 23px; font-family: Georgia, serif; font-weight: 400; }
.document h3 { font-size: 18px; }
.document h4 { font-size: 16px; }
.document p { margin: 0 0 1.2em; white-space: normal; }
.document img { max-width: 100%; height: auto; }
.document table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 13px; margin: 24px 0; }
.document th, .document td { padding: 9px 12px; border: 1px solid var(--line); }
.document th { background: #f3f6f7; font-weight: 600; }
.document pre { overflow-x: auto; padding: 17px; background: #f3f5f6; border-radius: 4px; font-size: 12px; }
.document code { background: #f3f5f6; font-size: .88em; padding: 2px 4px; }
.document pre code { padding: 0; }
.document blockquote { border-left: 3px solid #d5a04e; margin-left: 0; padding-left: 20px; color: var(--muted); }
.document hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.notice, .missing-image { padding: 18px; background: #f4f6f7; color: var(--muted); border-radius: 4px; }
.snapshots { display: grid; gap: 24px; margin-top: 18px; }
.snapshot-card { border: 1px solid var(--line); border-radius: 7px; background: #fff; overflow: hidden; }
.snapshot-heading { padding: 20px 24px; }
.snapshot-heading h2 { font-size: 16px; font-weight: 600; margin: 0 0 3px; }
.snapshot-heading > div { min-width: 0; }
.snapshot-heading h2, .selected-portfolio-title { overflow-wrap: anywhere; }
.selected-portfolio-title { font-size: 14px; font-weight: 600; line-height: 1.7; margin: 0 0 16px; }
.snapshot-card > img { display: block; width: 100%; height: auto; }
.snapshot-card .notice { margin: 0 24px 24px; }
.justification-nav { margin-top: 40px; margin-bottom: 18px; scroll-margin-top: 20px; }
.justification-nav h2 { font: 26px Georgia, serif; }
.portfolio-field { margin: 20px 0 16px; }
.portfolio-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.portfolio-field select { width: 100%; max-width: 100%; min-width: 0; font-size: 13px; }
.context-card { background: var(--paper); border: 1px solid var(--line); border-radius: 7px; padding: 25px 26px; margin-bottom: 18px; }
.context-card h2 { font-size: 18px; margin: 0 0 12px; }
.context-card p { margin: 5px 0; }
#belief-list { padding-left: 21px; margin-bottom: 0; font-size: 14px; }
#belief-list li { padding: 3px 0; overflow-wrap: anywhere; }
.belief-header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.belief-header h2 { min-width: 0; margin: 0; }
.belief-date { flex-shrink: 0; color: var(--blue); font-size: 12px; white-space: nowrap; }
.belief-free .belief-header { margin-bottom: 0; }
.decision-summary { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.decision-summary h3, .response-heading { font-size: 17px; margin: 0 0 15px; }
#aggregated-decisions { overflow-x: auto; color: var(--muted); font-size: 14px; }
.decision-table { width: 100%; border-collapse: collapse; color: var(--ink); font-size: 14px; }
.decision-table th, .decision-table td { text-align: left; padding: 9px 12px; border: 1px solid var(--line); }
.decision-table th { background: #f3f6f7; font-weight: 600; }
.decision-table th:nth-child(n+3), .decision-table td:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.decision-table caption { text-align: left; color: var(--muted); font-size: 12px; padding-bottom: 10px; }
.decision-table .decision-buy { background: #e8f5e9; }
.decision-table .decision-sell { background: #fdebec; }
html[data-theme="dark"] .decision-table .decision-buy { background: #294535; }
html[data-theme="dark"] .decision-table .decision-sell { background: #4b3036; }
.site-footer { border-top: 1px solid var(--line); max-width: 1220px; margin: 0 auto; padding: 22px 32px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; padding: 12px; background: #fff; z-index: 10; }
@media (max-width: 650px) {
  .site-header { padding: 18px 20px; flex-wrap: wrap; gap: 14px; }
  nav { gap: 22px; }
  .page-shell { padding: 30px 16px 40px; }
  .navigator { padding: 18px 14px; }
  .reader-toolbar { align-items: flex-start; flex-direction: column; margin-top: 20px; }
  .reader-card { padding: 27px 20px 34px; }
  .calendar-top { align-items: flex-start; flex-direction: column; gap: 8px; }
  .snapshot-heading { align-items: flex-start; flex-direction: column; gap: 5px; padding: 18px; }
  .document { font-size: 14px; }
  .site-footer { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Account navigation and appearance, scoped to the Sigmac stylesheet. */
html[data-theme="dark"] { color-scheme: dark; --ink: #e2e9ed; --muted: #a1b0bc; --line: #3a4854; --paper: #222d36; --blue: #83bce8; }
html[data-theme="dark"] body { background: #182129; }
html[data-theme="dark"] select, html[data-theme="dark"] .snapshot-card { background: var(--paper); }
html[data-theme="dark"] .empty { background: #35414b; }
html[data-theme="dark"] .tabs button[aria-selected="true"] { color: #182129; }
html[data-theme="dark"] .document th, html[data-theme="dark"] .document pre, html[data-theme="dark"] .document code,
html[data-theme="dark"] .notice, html[data-theme="dark"] .missing-image, html[data-theme="dark"] .decision-table th { background: #303e49; }
.risks { background: #9854b8; }
.risk-day { box-shadow: inset 0 0 0 2px #9854b8; }
.site-header { max-width: 1440px; gap: 22px; }
.site-header nav { margin-left: auto; gap: 22px; }
.nav-actions { display: flex; align-items: center; gap: 14px; min-width: 0; }
#theme-toggle { border: 0; background: transparent; font-size: 21px; padding: 6px; }
.account-menu, .service-menu { position: relative; min-width: 0; }
.home-control { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--ink); list-style: none; cursor: pointer; text-decoration: none; }
.home-control .service-globe { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-size: 24px; line-height: 1; }
.home-control::-webkit-details-marker { display: none; }
.home-control:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.account-menu summary { display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.account-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 2px solid transparent; border-radius: 50%; background: #68737d; color: #fff; font-size: 13px; font-weight: 600; }
.account-level-1 { background: #1b6ec2; }
.account-level-2 { background: #4CAF50; color: #0f1941; }
.account-level-3 { background: #6f42c1; }
.account-level-4 { background: #d4af37; color: #0f1941; }
.account-level-5 { background: #0f1941; border-color: #d4af37; }
.account-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 10px); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; width: 200px; max-width: calc(100vw - 32px); padding: 12px; z-index: 20; box-shadow: 0 8px 24px #0002; overflow-wrap: anywhere; }
.account-dropdown strong { display: block; overflow-wrap: anywhere; font-size: 13px; margin-bottom: 12px; }
.account-dropdown a, .account-dropdown button { display: block; padding: 8px 0; font-size: 13px; }
.account-dropdown button { border: 0; color: var(--blue); background: transparent; }
.account-detail { margin: 4px 0; font-size: 13px; }
.account-dropdown form { margin-top: 8px; }
.service-dropdown { width: 180px; }
.service-dropdown a { text-decoration: none; }
.current-service { display: block; padding: 8px 0; font-size: 13px; color: var(--muted); }
.account-overview { max-width: 680px; margin-bottom: 36px; }
.account-overview p { overflow-wrap: anywhere; }
.account-identity span { display: block; color: var(--muted); }
.available-services { max-width: 680px; }
.available-services h2 { margin-bottom: 18px; font-size: 20px; }
.service-block { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0; padding: 24px; border: 1px solid var(--line); border-left: 6px solid var(--service-accent); border-radius: 7px; background: var(--paper); background: color-mix(in srgb, var(--service-accent) 8%, var(--paper)); color: var(--ink); font-size: 18px; font-weight: 600; text-decoration: none; }
.service-block:hover { border-color: var(--service-accent); }
.service-general { --service-accent: #397fb3; }
.service-recap { --service-accent: #278878; }
.service-trading { --service-accent: #9854b8; }
.account-login { font-size: 13px; white-space: nowrap; }
.login-panel { max-width: 440px; margin: 0 auto; padding: 24px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.login-panel h2 { margin: 20px 0 12px; font-size: 18px; }
.login-panel hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.login-panel label { display: block; margin-bottom: 4px; }
.login-panel label[for="id_remember"] { display: inline; }
.login-panel input:not([type="checkbox"]):not([type="hidden"]) { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; }
.login-panel button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); }
.login-panel .account-primary { width: 100%; border-color: var(--blue); background: var(--blue); color: var(--paper); }
.login-panel input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.login-panel .account-note { color: var(--muted); }
.login-panel .errorlist { color: #b42318; }
html[data-theme="dark"] .login-panel .errorlist { color: #ffb4ab; }
@media (max-width: 1100px) { .account-name { display: none; } .brand { font-size: 16px; } }
@media (max-width: 760px) {
 .site-header { flex-wrap: wrap; padding: 16px 20px; gap: 12px; }
 .site-header nav { order: 3; width: 100%; margin: 0; gap: 22px; }
 .nav-actions { margin-left: auto; }
 .brand-caption { font-size: 8px; letter-spacing: 1px; }
}

/* Compact structured recap and local export controls. */
.report-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.report-title-row h2 { min-width: 0; }
.text-button:disabled { cursor: default; opacity: .45; }
.recap-metadata { color: var(--muted); font-size: 11px; line-height: 1.6; }
.recap-driver { padding: 18px 16px; border-bottom: 1px solid var(--line); border-radius: 5px; }
.drivers-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 18px; margin: 1.6em 0 .7em; }
.document .drivers-heading h2 { margin: 0; }
.driver-sort { display: flex; flex-wrap: wrap; gap: 4px; }
.driver-sort button { padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--muted); font-size: 11px; }
.driver-sort button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.recap-driver:nth-of-type(odd) { background: #f3f6f8; }
.recap-driver:nth-of-type(even) { background: #fafbfc; }
html[data-theme="dark"] .recap-driver:nth-of-type(odd) { background: #2b3843; }
html[data-theme="dark"] .recap-driver:nth-of-type(even) { background: #24313b; }
.document .driver-heading { display: flex; align-items: baseline; gap: 12px; margin: 0 0 5px; font-size: 16px; line-height: 1.5; }
.driver-title { min-width: 0; }
.impact { flex-shrink: 0; white-space: nowrap; font-size: 12px; font-weight: 700; }
.impact-low, .impact-unknown { color: var(--muted); }
.impact-medium { color: #866100; }
.impact-elevated { color: #b64a00; }
.impact-high { color: #b52635; }
html[data-theme="dark"] .impact-medium { color: #e5c45c; }
html[data-theme="dark"] .impact-elevated { color: #ffa869; }
html[data-theme="dark"] .impact-high { color: #ff969d; }
.document .driver-time { font-size: 11px; color: var(--muted); margin: 0 0 9px; }
.driver-field { font-size: 14px; line-height: 1.65; margin: 7px 0; }
.driver-field > strong { margin-right: 5px; }
.driver-value, .driver-value > p:first-child { display: inline; }
.document .driver-value p { margin: 0 0 6px; }
.driver-sources { margin-top: 9px; font-size: 12px; line-height: 1.5; }
.driver-sources strong { color: var(--muted); font-weight: 500; }
.driver-sources a { display: block; overflow-wrap: anywhere; }
.driver-headlines { font-size: 12px; margin-top: 10px; line-height: 1.65; }
.driver-headlines summary { cursor: pointer; color: var(--blue); }
.driver-headlines summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.document .driver-headlines ul { margin: 7px 0 0; padding-left: 20px; }
.driver-headlines li { margin: 5px 0; }
@media (max-width: 650px) {
 .report-title-row { align-items: flex-start; flex-wrap: wrap; gap: 0 14px; }
 .report-title-row h2 { font-size: 25px; }
 .document .driver-heading { gap: 8px; }
 .impact { font-size: 11px; }
 .section-heading h2 { line-height: 1.5; }
}

/* Date-first trading journal and portfolio-type tabs. */
.trading-date-status { margin: 14px 0; }
.portfolio-tabs { flex-wrap: wrap; gap: 8px; margin: 22px 0 16px; }
.tabs .portfolio-tab { text-align: left; border: 1px solid var(--line); border-radius: 5px; padding: 10px 14px; }
.portfolio-tab span, .portfolio-tab small { display: block; }
.portfolio-tab small { font-size: 10px; margin-top: 3px; opacity: .85; }
.tabs .portfolio-tab.same-day { background: #e6f1fa; color: #234e70; }
.tabs .portfolio-tab.same-day[aria-selected="true"] { background: #245c87; color: #fff; border-color: #245c87; }
.tabs .portfolio-tab.next-day { background: #edf3e6; color: #3f5b26; }
.tabs .portfolio-tab.next-day[aria-selected="true"] { background: #496b31; color: #fff; border-color: #496b31; }
.tabs .portfolio-tab.state-pending { border-bottom: 3px solid #c38412; }
.tabs .portfolio-tab.state-missing { border-style: dashed; border-bottom-width: 2px; }
.tabs .portfolio-tab.state-missing small { text-decoration: underline dotted; }
.tabs .portfolio-tab.state-superseded { border-bottom: 3px dotted var(--muted); }
html[data-theme="dark"] .tabs .portfolio-tab.same-day { background: #263f52; color: #c2ddf1; }
html[data-theme="dark"] .tabs .portfolio-tab.same-day[aria-selected="true"] { background: #397bac; color: #fff; }
html[data-theme="dark"] .tabs .portfolio-tab.next-day { background: #33452a; color: #d3e8c4; }
html[data-theme="dark"] .tabs .portfolio-tab.next-day[aria-selected="true"] { background: #5e8244; color: #fff; }
.portfolio-properties { margin: 22px 0 14px; }
.portfolio-properties h2 { font: 26px Georgia, serif; margin: 0 0 8px; }
.portfolio-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.portfolio-title-row h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.figure-width-toggle { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--blue); }
.figure-width-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.figure-width-toggle[aria-pressed="true"] .icon-expand, .figure-width-toggle[aria-pressed="false"] .icon-fit { display: none; }
#portfolio-panel .snapshots.figure-browser-width { width: var(--figure-viewport-width, 100%); margin-left: calc((100% - var(--figure-viewport-width, 100%)) / 2); }
#portfolio-description { font-size: 13px; margin: 0 0 5px; overflow-wrap: anywhere; }
.snapshot-caption { padding: 14px 20px; }
#portfolio-panel .snapshots { margin-bottom: 20px; }
#portfolio-panel .snapshot-card[hidden], #portfolio-panel[hidden], #portfolio-panel #beliefs[hidden], #portfolio-panel #report[hidden] { display: none; }
@media (max-width: 650px) {
 .tabs .portfolio-tab { flex: 1 1 140px; padding: 9px 11px; }
 .portfolio-properties h2 { font-size: 23px; }
}

.assessed-impact summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.assessed-impact summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.assessed-impact[open] .driver-value { display: block; margin-top: 5px; }
.site-footer { flex-wrap: wrap; gap: 8px 20px; }
.podcast-player { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 5px; }
.podcast-countdown { color: var(--blue); font-size: 20px; font-variant-numeric: tabular-nums; }

/* Publication freshness belongs to the fetched data, independently of polling. */
.data-updated { margin: 0 0 12px; }
.update-badge { color: var(--accent, #2763ad); font-variant-numeric: tabular-nums; font-size: .85em; }
