:root {
  --ink: #071b33;
  --ink-2: #0d2945;
  --ivory: #f7f3e8;
  --paper: #fbf8f0;
  --accent: #c8da21;
  --accent-dark: #819300;
  --coral: #e65e57;
  --green: #2e8b64;
  --rule: rgba(7, 27, 51, .25);
  --rule-dark: rgba(247, 243, 232, .32);
  --muted: #58616c;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Arial Narrow', 'Roboto Condensed', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--ivory); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); }

.app-shell { min-height: 100vh; background: var(--ivory); }
.site-header { position: relative; z-index: 30; color: var(--ivory); background: var(--ink); border-bottom: 1px solid var(--rule-dark); }
.site-header__inner { width: min(1440px, calc(100% - 64px)); height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo-button { padding: 0; border: 0; background: transparent; color: inherit; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); font: 700 25px/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 45px; height: 45px; color: var(--accent); }
.primary-nav { height: 100%; display: flex; align-items: stretch; gap: 34px; }
.primary-nav button { position: relative; padding: 2px 5px 0; border: 0; color: rgba(247,243,232,.84); background: transparent; font-size: 15px; font-weight: 600; }
.primary-nav button:hover, .primary-nav button.active { color: var(--ivory); }
.primary-nav button.active::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 0; height: 4px; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 13px; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: inherit; }
.icon-button:hover, .icon-button.saved { color: var(--accent-dark); }
.site-header .icon-button:hover { color: var(--accent); }
.join-button, .accent-button { min-height: 42px; padding: 0 20px; border: 1px solid var(--accent); background: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: var(--ink); font-size: 14px; font-weight: 700; }
.join-button:hover, .accent-button:hover { background: #d8ea2a; }
.menu-toggle { display: none; }
.search-bar { position: absolute; top: 76px; left: 50%; transform: translateX(-50%); width: min(760px, calc(100% - 32px)); padding: 13px 16px; display: flex; align-items: center; gap: 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); box-shadow: 0 18px 50px rgba(7,27,51,.22); }
.search-bar input { flex: 1; min-width: 0; padding: 8px; border: 0; background: transparent; font-size: 16px; }
.search-bar button { border: 0; background: transparent; font-size: 13px; font-weight: 700; }

.market-rail { height: 84px; color: var(--ivory); background: var(--ink-2); border-bottom: 1px solid var(--rule-dark); }
.market-rail__inner { width: min(1440px, calc(100% - 64px)); height: 100%; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)) auto; align-items: center; }
.market-item { min-width: 0; height: 58%; padding: 4px 26px; border-left: 1px solid var(--rule-dark); display: grid; grid-template-columns: auto auto; align-content: center; gap: 3px 16px; }
.market-item:first-child { padding-left: 0; border-left: 0; }
.market-item span { grid-column: 1 / -1; font-size: 13px; }
.market-item strong { font: 400 22px/1.15 var(--serif); }
.market-item em { align-self: end; font-style: normal; font-size: 14px; }
.up { color: var(--accent-dark); }
.market-rail .up { color: var(--accent); }
.down { color: var(--coral); }
.market-rail small { max-width: 116px; color: rgba(247,243,232,.64); font-size: 11px; line-height: 1.35; }

.home-hero { position: relative; display: grid; grid-template-columns: minmax(540px, 1.65fr) minmax(320px, .95fr) 345px; min-height: 305px; background: var(--paper); border-bottom: 1px solid var(--ink); overflow: hidden; }
.hero-copy { position: relative; z-index: 2; padding: 38px 24px 22px max(64px, calc((100vw - 1440px) / 2)); }
.hero-copy h1 { max-width: 720px; margin-bottom: 20px; font-size: clamp(42px, 3.55vw, 54px); line-height: .98; letter-spacing: -.045em; white-space: nowrap; }
.hero-copy h1::after { content: ''; display: block; width: 48px; height: 3px; margin-top: 18px; background: var(--accent); }
.hero-copy p { max-width: 560px; margin-bottom: 18px; font: 20px/1.32 var(--serif); }
.primary-button { min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--ivory); display: inline-flex; align-items: center; gap: 13px; font-weight: 700; }
.primary-button:hover { color: var(--accent); }
.home-hero > img { width: 100%; height: 100%; min-height: 305px; object-fit: cover; object-position: 60% center; mix-blend-mode: multiply; }
.market-summary { padding: 20px 38px 24px 26px; border-left: 1px solid var(--rule); background: rgba(251,248,240,.9); }
.section-head { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--ink); }
.section-head h2 { margin: 0; font-size: 23px; line-height: 1.2; }
.summary-row { height: 45px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto 72px; align-items: center; gap: 10px; }
.summary-row strong { font-weight: 500; }
.summary-row em { text-align: right; font-style: normal; }
.text-link { padding: 0; border: 0; background: transparent; display: inline-flex; align-items: center; gap: 8px; color: inherit; font: 600 12px/1.2 var(--sans); }
.text-link:hover { color: var(--accent-dark); }
.market-summary > .text-link { margin-top: 18px; font-size: 13px; }

.home-grid { display: grid; grid-template-columns: 1fr 1.05fr 1fr; width: 100%; background: var(--paper); }
.home-grid > section { min-width: 0; min-height: 488px; padding: 18px 24px 24px; border-right: 1px solid var(--rule); }
.home-grid > section:first-child { padding-left: max(50px, calc((100vw - 1440px) / 2)); }
.home-grid > section:last-child { padding-right: max(50px, calc((100vw - 1440px) / 2)); border-right: 0; }
.news-row { min-height: 67px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 28px 1fr auto 18px; align-items: center; gap: 8px; }
.news-row .icon-button { width: 24px; height: 36px; }
.news-row small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.news-row h3 { margin: 2px 0 0; font: 15px/1.25 var(--serif); }
.news-row time { color: var(--muted); font-size: 11px; }
.list-end { margin-top: 28px; font-size: 13px; }
.analysis-frame { position: relative; margin-top: 12px; padding: 12px 12px 44px; border: 1px solid var(--ink); }
.analysis-frame__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.analysis-frame__head h3 { max-width: 270px; margin: 0; font: 18px/1.2 var(--serif); }
.horizon-tabs, .scenario-tabs { display: flex; align-items: center; }
.horizon-tabs button, .scenario-tabs button, .calendar-controls button { min-width: 42px; height: 34px; padding: 0 11px; border: 1px solid var(--rule); border-left: 0; background: transparent; font-size: 12px; font-weight: 600; }
.horizon-tabs button:first-child, .scenario-tabs button:first-of-type { border-left: 1px solid var(--rule); }
.horizon-tabs button.active, .scenario-tabs button.active, .calendar-controls button.active { color: var(--accent); background: var(--ink); border-color: var(--ink); }
.mini-chart { width: 100%; height: 245px; margin-top: 10px; overflow: visible; }
.grid-line { stroke: rgba(7,27,51,.12); stroke-width: 1; }
.volume-bar { fill: rgba(7,27,51,.35); }
.chart-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.chart-dot { fill: var(--accent); stroke: var(--ink); stroke-width: 2; }
.level-line { stroke: rgba(7,27,51,.7); stroke-width: 1; stroke-dasharray: 6 5; }
.analysis-thesis { display: grid; grid-template-columns: 45px 1fr; gap: 10px; padding-top: 9px; border-top: 1px solid var(--rule); }
.analysis-thesis strong { font-size: 11px; letter-spacing: .07em; }
.analysis-thesis p { margin: 0; font: 13px/1.35 var(--serif); }
.analysis-detail-link { position: absolute; right: 12px; bottom: 12px; }
.forum-table-head { height: 33px; display: grid; grid-template-columns: 1fr 50px 55px; align-items: center; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--rule); }
.forum-preview-row { width: 100%; min-height: 68px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; display: grid; grid-template-columns: 1fr 50px 55px; align-items: center; gap: 5px; text-align: left; }
.forum-preview-row strong { padding-right: 8px; font: 15px/1.3 var(--serif); }
.forum-preview-row span { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.forum-preview-row .vote-count { color: var(--accent-dark); }

.analysis-page, .forum-page, .calendar-page { width: min(1440px, calc(100% - 64px)); margin: 0 auto; padding: 28px 0 60px; }
.analysis-title { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; margin-bottom: 18px; }
.analysis-title h1 { margin-bottom: 6px; font-size: clamp(38px, 4vw, 56px); line-height: 1; letter-spacing: -.035em; }
.analysis-title > div > p { margin-bottom: 15px; font-size: 16px; }
.byline { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.byline > span:not(.avatar) { display: flex; align-items: center; gap: 5px; padding-left: 15px; border-left: 1px solid var(--rule); }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--ivory); font-size: 11px; font-weight: 700; }
.analysis-actions { display: flex; gap: 4px; padding-bottom: 4px; }
.analysis-layout { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(300px, .95fr); gap: 36px; align-items: start; }
.analysis-main { border: 1px solid var(--rule); background: var(--paper); }
.chart-toolbar { min-height: 54px; padding: 8px 10px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 185px auto 1fr; align-items: center; gap: 22px; }
.chart-toolbar select { height: 36px; padding: 0 10px; border: 1px solid var(--rule); background: transparent; }
.scenario-tabs { justify-self: end; }
.scenario-tabs span { margin-right: 9px; font-size: 12px; }
.scenario-tabs button { min-width: 65px; }
.chart-meta { padding: 12px 16px 0; display: flex; flex-wrap: wrap; gap: 13px; color: var(--muted); font-size: 11px; }
.chart-meta em { color: var(--green); font-style: normal; }
.chart-meta strong { color: var(--green); font-weight: 500; }
.main-chart { width: 100%; height: 390px; display: block; }
.main-chart text { fill: var(--ink); font: 11px var(--sans); }
.main-chart .chart-line.main { stroke-width: 2.4; }
.candle-wick { stroke-width: 1; }.candle-wick.up { stroke: var(--green); }.candle-wick.down { stroke: var(--coral); }.candle.up { fill: var(--green); }.candle.down { fill: var(--coral); }
.article-copy { padding: 0 16px 8px; }
.article-copy section { padding: 15px 0; border-top: 1px solid var(--rule); }
.article-copy h2 { margin-bottom: 4px; font-size: 22px; }
.article-copy p { max-width: 960px; margin: 0; font-size: 14px; line-height: 1.45; }
.thesis-panel { border: 1px solid var(--rule); background: var(--paper); }
.thesis-panel > h2, .related > h2 { margin: 0; padding: 15px 16px 12px; border-bottom: 1px solid var(--rule); font-size: 25px; }
.thesis-panel > section { min-height: 112px; margin: 0 14px; padding: 18px 8px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 38px 1fr; gap: 10px; }
.thesis-icon { color: var(--accent-dark); font: 30px/1 var(--serif); }
.thesis-panel h3 { margin-bottom: 4px; font: 19px/1.2 var(--serif); }
.thesis-panel p, .thesis-panel li { margin: 0; font-size: 13px; line-height: 1.4; }
.thesis-panel ul { margin: 5px 0 0; padding-left: 18px; }
.risk { color: var(--accent-dark); font: 23px var(--serif); }
.invalid { display: block; margin-bottom: 5px; color: var(--coral); font: 23px var(--serif); }
.risk-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 9px; }
.risk-bars i { height: 4px; background: rgba(7,27,51,.15); }
.risk-bars i:first-child { background: var(--accent-dark); }.risk-bars i:nth-child(2) { background: rgba(129,147,0,.55); }
.related { margin-top: 0; }
.related > h2 { font-size: 21px; }
.related button { width: 100%; min-height: 61px; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; font-size: 12px; }
.related small { display: block; margin-top: 3px; color: var(--muted); }

.forum-title { min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.forum-title h1 { margin-bottom: 5px; font-size: clamp(42px, 4vw, 58px); line-height: 1; letter-spacing: -.035em; }
.forum-title p { margin: 0; font-size: 17px; }
.accent-button { min-height: 48px; font-size: 15px; }
.forum-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr) 290px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.category-rail { border-right: 1px solid var(--rule); }
.category-rail button { position: relative; width: 100%; min-height: 60px; padding: 0 16px 0 20px; border: 0; background: transparent; display: flex; align-items: center; justify-content: space-between; text-align: left; }
.category-rail button.active { font-weight: 700; background: rgba(255,255,255,.3); }
.category-rail button.active::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); }
.category-rail em { color: var(--muted); font-style: normal; font-size: 13px; }
.discussion-feed { min-width: 0; border-right: 1px solid var(--rule); }
.sort-tabs { height: 60px; display: flex; gap: 34px; padding: 0 18px; border-bottom: 1px solid var(--rule); }
.sort-tabs button { position: relative; border: 0; background: transparent; font-weight: 600; }
.sort-tabs button.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); }
.discussion-head { height: 48px; padding: 0 16px 0 55px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 58px 64px 105px; align-items: center; font-size: 12px; }
.topic-row { display: grid; grid-template-columns: minmax(0, 1fr) 58px 64px 105px; border-bottom: 1px solid var(--rule); background: rgba(255,255,255,.14); }
.topic-row > span { min-height: 68px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.topic-toggle { min-width: 0; min-height: 68px; padding: 10px 12px 10px 16px; border: 0; background: transparent; display: flex; align-items: center; gap: 14px; text-align: left; }
.topic-toggle span { min-width: 0; }
.topic-toggle strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 14px; white-space: nowrap; }
.topic-toggle small, .activity small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.topic-row .activity { flex-direction: column; align-items: flex-start; justify-content: center; }
.topic-row.expanded { border-left: 3px solid var(--accent); background: rgba(255,255,255,.4); }
.topic-detail { grid-column: 1 / -1; padding: 0 16px 16px 55px; }
.topic-detail p { max-width: 650px; margin: 0 0 18px; font-size: 13px; }
.topic-actions { display: flex; align-items: center; gap: 24px; }
.topic-actions button { height: 36px; padding: 0; border: 0; background: transparent; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.topic-actions .vote-button { padding: 0 14px; border: 1px solid var(--accent-dark); }
.topic-actions .vote-button.active { background: var(--accent); }
.topic-actions .saved { color: var(--accent-dark); }
.forum-context { padding: 0 18px; }
.forum-context > section { padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.forum-context h2 { margin: 0; padding: 16px 0 11px; border-bottom: 1px solid var(--ink); font-size: 21px; }
.weekly-topic { margin-top: 16px; padding: 16px; border: 1px solid var(--rule); border-left: 3px solid var(--accent); }
.weekly-topic strong { font-size: 14px; }
.weekly-topic p { color: var(--muted); font-size: 11px; }
.forum-context ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: rule; }
.forum-context li { position: relative; padding: 0 0 19px 36px; counter-increment: rule; }
.forum-context li::before { content: counter(rule); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 11px; }
.forum-context li strong, .forum-context li span { display: block; font-size: 12px; }
.forum-context li span { margin-top: 3px; color: var(--muted); line-height: 1.4; }
.empty-state { padding: 60px 30px; text-align: center; }
.empty-state h2 { font-size: 22px; }

.calendar-page { min-height: 700px; }
.calendar-page > header { padding: 26px 0 24px; border-bottom: 1px solid var(--ink); }
.calendar-page h1 { margin-bottom: 6px; font-size: clamp(42px, 4vw, 58px); }
.calendar-page header p { margin: 0; font-size: 17px; }
.calendar-controls { padding: 18px 0; display: flex; }
.calendar-controls button { min-width: 110px; }
.event-list { border: 1px solid var(--rule); background: var(--paper); }
.event-list__head, .event-list article { display: grid; grid-template-columns: 90px 120px 1fr 110px; align-items: center; }
.event-list__head { height: 42px; padding: 0 20px; background: var(--ink); color: var(--ivory); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.event-list article { min-height: 74px; padding: 0 20px; border-bottom: 1px solid var(--rule); }
.event-list article > strong { font: 26px var(--serif); }
.event-list article > div { display: flex; align-items: center; gap: 10px; }
.importance { width: 70px; padding: 5px 6px; text-align: center; border: 1px solid var(--rule); font-size: 11px; }.importance.high { color: var(--coral); }.importance.medium { color: var(--accent-dark); }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(7,27,51,.76); }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid var(--ink); background: var(--paper); box-shadow: 0 25px 80px rgba(0,0,0,.3); }
.modal__head { min-height: 68px; padding: 0 20px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; }
.modal__head h2 { margin: 0; font-size: 27px; }
.topic-form { padding: 22px; }
.topic-form label { display: grid; gap: 7px; margin-bottom: 16px; font-size: 12px; font-weight: 700; }
.topic-form input, .topic-form select, .topic-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--rule); background: transparent; resize: vertical; font-size: 14px; font-weight: 400; }
.topic-form p { color: var(--muted); font-size: 11px; }
.topic-form .accent-button { width: 100%; }
.modal-lead { color: var(--ink) !important; font: 17px/1.45 var(--serif) !important; }
.toast { position: fixed; z-index: 120; top: 175px; left: 50%; transform: translateX(-50%); padding: 11px 17px; display: flex; align-items: center; gap: 9px; background: var(--ink); color: var(--ivory); box-shadow: 0 10px 30px rgba(7,27,51,.24); font-size: 12px; }
.global-toast { top: auto; bottom: 26px; }

.site-footer { min-height: 72px; padding: 18px max(36px, calc((100vw - 1440px) / 2)); background: var(--ink); color: var(--ivory); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; font-size: 11px; }
.site-footer .menu { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { padding: 0 12px; border-left: 1px solid var(--rule-dark); color: inherit; font-size: 11px; }
.site-footer small { color: rgba(247,243,232,.65); }

@media (max-width: 1180px) {
  .site-header__inner, .market-rail__inner, .analysis-page, .forum-page, .calendar-page { width: min(100% - 36px, 1100px); }
  .primary-nav { gap: 18px; }
  .market-rail { height: 70px; }
  .market-rail__inner { grid-template-columns: repeat(4, 1fr); }
  .market-rail small { display: none; }
  .market-item { padding: 3px 12px; }.market-item strong { font-size: 17px; }
  .home-hero { grid-template-columns: minmax(430px, 1.4fr) minmax(260px, .8fr) 295px; }
  .hero-copy { padding-left: 36px; }
  .hero-copy h1 { white-space: normal; }
  .home-grid { grid-template-columns: 1fr 1fr; }.home-grid > section:first-child { padding-left: 30px; }.home-grid > section:last-child { grid-column: 1 / -1; padding: 20px 30px; border-top: 1px solid var(--rule); }.forum-preview-row, .forum-table-head { grid-template-columns: 1fr 70px 70px; }
  .forum-layout { grid-template-columns: 210px minmax(0, 1fr); }.forum-context { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 18px; border-top: 1px solid var(--rule); }.discussion-feed { border-right: 0; }
}

@media (max-width: 820px) {
  .site-header__inner { width: calc(100% - 28px); height: 66px; }
  .brand { font-size: 20px; }.brand-mark { width: 38px; height: 38px; }
  .menu-toggle { display: inline-grid; }.search-toggle { display: none; }.join-button { display: none; }
  .primary-nav { position: absolute; top: 66px; left: 0; right: 0; height: auto; padding: 10px 14px 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--rule-dark); }.primary-nav.is-open { display: flex; }.primary-nav button { min-height: 47px; text-align: left; }.primary-nav button.active::after { left: 0; right: auto; top: 9px; bottom: 9px; width: 3px; height: auto; }
  .market-rail { height: 58px; overflow-x: auto; scrollbar-width: none; }.market-rail__inner { width: max-content; min-width: 100%; padding: 0 14px; grid-template-columns: repeat(4, 155px); }.market-item { height: 70%; }.market-item strong { font-size: 15px; }.market-item span, .market-item em { font-size: 11px; }
  .home-hero { display: block; min-height: auto; }.hero-copy { min-height: 395px; padding: 38px 24px 32px; }.hero-copy h1 { max-width: 480px; font-size: 46px; white-space: normal; }.hero-copy p { max-width: 410px; font-size: 18px; }.home-hero > img { position: absolute; inset: 0; z-index: 0; min-height: 395px; object-position: 56% center; opacity: .34; }.market-summary { position: relative; z-index: 2; border-top: 1px solid var(--rule); border-left: 0; padding: 18px 24px; }
  .home-grid { display: block; }.home-grid > section { min-height: auto; padding: 20px 24px 32px !important; border-right: 0; border-bottom: 1px solid var(--rule); }.analysis-frame { padding-bottom: 46px; }.mini-chart { height: 220px; }
  .analysis-page, .forum-page, .calendar-page { width: calc(100% - 32px); padding-top: 24px; }
  .analysis-title { display: block; }.analysis-title h1 { font-size: 42px; }.analysis-actions { margin-top: 12px; }
  .analysis-layout { display: block; }.chart-toolbar { grid-template-columns: 1fr auto; gap: 10px; }.scenario-tabs { grid-column: 1 / -1; justify-self: start; }.main-chart { height: auto; min-height: 300px; }.thesis-panel { margin-top: 20px; }
  .forum-title { min-height: 160px; align-items: flex-start; padding-top: 18px; flex-direction: column; justify-content: center; }.forum-title h1 { font-size: 43px; }
  .forum-layout { display: block; }.category-rail { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--rule); }.category-rail button { min-width: 165px; }.category-rail button.active::before { inset: auto 0 0 0; width: auto; height: 3px; }.discussion-head { grid-template-columns: 1fr 45px 50px; padding-left: 16px; }.discussion-head span:last-child { display: none; }.topic-row { grid-template-columns: minmax(0,1fr) 45px 50px; }.topic-row > .activity { display: none; }.topic-detail { padding-left: 18px; }.topic-actions { gap: 12px; flex-wrap: wrap; }.forum-context { display: block; }.forum-context > section:last-child { border-bottom: 0; }
  .event-list__head, .event-list article { grid-template-columns: 55px 80px 1fr; }.event-list__head span:last-child, .event-list article > .importance { display: none; }
  .site-footer { grid-template-columns: 1fr; gap: 13px; padding: 24px; }.site-footer .menu { flex-wrap: wrap; }.site-footer li:first-child a { padding-left: 0; border-left: 0; }
}

@media (max-width: 520px) {
  .hero-copy { min-height: 430px; }.hero-copy h1 { font-size: 40px; }.home-hero > img { opacity: .42; object-position: 52% center; }
  .summary-row { grid-template-columns: 1fr auto 64px; }.section-head h2 { font-size: 21px; }
  .analysis-frame__head { display: block; }.analysis-frame__head .horizon-tabs { margin-top: 12px; }.mini-chart { height: 180px; }
  .analysis-title h1, .forum-title h1, .calendar-page h1 { font-size: 37px; }.analysis-title > div > p, .forum-title p { font-size: 14px; }
  .byline { flex-wrap: wrap; gap: 9px; }.byline > span:not(.avatar) { padding-left: 9px; }
  .chart-toolbar { display: flex; flex-wrap: wrap; }.chart-toolbar select { width: 100%; }.scenario-tabs { overflow-x: auto; }.chart-meta em { display: none; }
  .topic-toggle strong { white-space: normal; }.topic-row { grid-template-columns: minmax(0,1fr) 42px 45px; }.sort-tabs { gap: 18px; }.discussion-head { grid-template-columns: 1fr 42px 45px; }
  .event-list__head, .event-list article { padding: 0 10px; grid-template-columns: 45px 64px 1fr; }.event-list article > div { gap: 6px; }.event-list article b { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* WordPress-generated markup and membership UI. */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px; clip: auto !important; background: var(--paper); color: var(--ink); font-weight: 700; }
.primary-nav .menu { height: 100%; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 34px; list-style: none; }
.primary-nav li { height: 100%; }
.primary-nav a { position: relative; height: 100%; padding: 2px 5px 0; display: flex; align-items: center; color: rgba(247,243,232,.84); font-size: 15px; font-weight: 600; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--ivory); }
.primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 0; height: 4px; background: var(--accent); }
.search-bar .search-form { flex: 1; display: flex; align-items: center; gap: 8px; }
.search-bar .search-submit { min-width: 72px; padding: 8px 12px; color: var(--ivory); background: var(--ink); }
.category-rail a { position: relative; width: 100%; min-height: 60px; padding: 0 16px 0 20px; display: flex; align-items: center; justify-content: space-between; }
.category-rail a.active { font-weight: 700; background: rgba(255,255,255,.3); }
.category-rail a.active::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); }
.sort-tabs a { position: relative; display: inline-flex; align-items: center; font-weight: 600; }
.sort-tabs a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); }
.topic-actions a, .topic-single-actions a, .topic-single-actions button { min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--rule); background: transparent; font-size: 12px; }
.topic-actions .vote-button, .topic-single-actions .vote-button { border-color: var(--accent-dark); }
.topic-single-actions .vote-button.active { background: var(--accent); }
.home-volume rect { fill: rgba(7,27,51,.25); }

.editorial-page, .archive-page, .search-page, .error-page, .single-post-page, .account-page, .single-topic-page { width: min(1080px, calc(100% - 64px)); min-height: 560px; margin: 0 auto; padding: 46px 0 70px; }
.editorial-header, .archive-header, .search-header, .error-header, .single-post-header, .account-title { padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.editorial-header h1, .archive-header h1, .search-header h1, .error-header h1, .single-post-header h1, .account-title h1, .single-topic h1 { margin-bottom: 8px; font-size: clamp(39px, 5vw, 62px); line-height: 1; letter-spacing: -.04em; }
.post-list { display: grid; }
.content-list-item { min-height: 128px; padding: 20px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.content-list-item h2 { margin-bottom: 6px; font-size: 25px; }
.content-list-item p { max-width: 760px; margin: 0; color: var(--muted); }
.content-list-item small { color: var(--muted); }
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination a, .pagination .current { min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--rule); }
.pagination .current { color: var(--accent); background: var(--ink); }
.single-post, .single-topic, .comments-area { padding: 30px; border: 1px solid var(--rule); background: var(--paper); }
.single-post .entry-content, .single-topic .entry-content { max-width: 820px; font: 17px/1.75 var(--serif); }
.entry-content a { color: var(--accent-dark); text-decoration: underline; }
.entry-content blockquote { margin-left: 0; padding: 12px 20px; border-left: 4px solid var(--accent); }
.single-topic .back-link { display: inline-block; margin-bottom: 24px; font-weight: 700; }
.topic-single-actions { margin-top: 30px; padding-top: 20px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--rule); }
.topic-single-actions form { margin: 0; }
.comments-area { margin-top: 24px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.comment-author img { width: 38px; height: 38px; margin-right: 10px; border-radius: 50%; vertical-align: middle; }
.comment-form { display: grid; gap: 12px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 5px; font-weight: 700; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--rule); background: transparent; }
.comment-form .submit { min-height: 44px; padding: 0 20px; border: 1px solid var(--accent); background: var(--accent); font-weight: 700; }

.account-title { margin-bottom: 26px; }
.account-title p { margin: 0; font: 18px/1.4 var(--serif); }
.account-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.auth-card, .account-panel, .account-summary { padding: 28px; border: 1px solid var(--rule); background: var(--paper); }
.auth-card.featured { border-top: 4px solid var(--accent); }
.auth-card h2, .account-panel h2 { margin: 5px 0 18px; font-size: 27px; }
.eyebrow { color: var(--accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.ft-form { display: grid; gap: 15px; }
.ft-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.ft-form input:not([type="checkbox"]), .ft-form select, .ft-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--rule); background: rgba(255,255,255,.3); resize: vertical; font-size: 14px; font-weight: 400; }
.ft-form .check-row { display: flex; align-items: center; gap: 8px; }
.ft-form .accent-button { justify-self: start; }
.ft-form small { color: var(--muted); line-height: 1.4; }
.ft-honeypot { position: absolute !important; left: -9999px !important; }
.account-dashboard { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.account-summary { text-align: center; }
.account-summary img { border-radius: 50%; }
.account-summary h2 { margin: 12px 0 2px; }
.account-summary p { color: var(--muted); }
.secondary-button { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); font-weight: 700; }
.account-content { display: grid; gap: 18px; }
.profile-form { grid-template-columns: 1fr 1fr; }
.profile-form .full-row, .profile-form button { grid-column: 1 / -1; }
.saved-list { display: grid; }
.saved-list > a { min-height: 62px; padding: 10px 0; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.saved-list strong, .saved-list small { display: block; }
.saved-list small, .saved-list em { color: var(--muted); font-size: 11px; font-style: normal; }
.ft-notice { width: min(1080px, calc(100% - 32px)); margin: 12px auto 22px; padding: 12px 16px; border: 1px solid var(--rule); border-left: 4px solid var(--accent-dark); background: var(--paper); }
.ft-notice.error { border-left-color: var(--coral); }
.ft-notice p { margin: 0; }
.ft-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--ink); background: var(--paper); box-shadow: 0 24px 80px rgba(7,27,51,.35); }
.ft-dialog::backdrop { background: rgba(7,27,51,.76); }
.dialog-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; }
.topic-form-wrap { padding: 34px; }
.topic-form-wrap > p { color: var(--muted); }

@media (max-width: 820px) {
  .primary-nav .menu { height: auto; display: block; }
  .primary-nav li, .primary-nav a { height: auto; }
  .primary-nav a { min-height: 47px; padding-left: 14px; }
  .primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after { left: 0; right: auto; top: 9px; bottom: 9px; width: 3px; height: auto; }
  .category-rail a { min-width: 165px; }
  .category-rail a.active::before { inset: auto 0 0 0; width: auto; height: 3px; }
  .account-page, .single-topic-page, .editorial-page, .archive-page, .search-page, .error-page, .single-post-page { width: calc(100% - 32px); padding-top: 28px; }
  .account-auth-grid, .account-dashboard { grid-template-columns: 1fr; }
  .account-summary { text-align: left; }
}

@media (max-width: 520px) {
  .auth-card, .account-panel, .account-summary, .single-post, .single-topic, .comments-area { padding: 20px; }
  .profile-form { grid-template-columns: 1fr; }
  .profile-form .full-row, .profile-form button { grid-column: auto; }
  .content-list-item { grid-template-columns: 1fr; }
  .topic-single-actions { align-items: stretch; flex-direction: column; }
}
