:root {
  --ink: #071b33;
  --ink-2: #0d2945;
  --ivory: #f7f3e8;
  --paper: #fbf8f0;
  --accent: #c8da21;
  --accent-dark: #819300;
  --accent-strong: #9aab00;
  --olive: #718000;
  --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;
}

/* FinansTayfa Portal v1.3 ------------------------------------------------- */
.site-header__inner { width: min(1600px, calc(100% - 44px)); height: 70px; gap: 20px; }
.logo-button { flex: 0 0 auto; }
.brand { gap: 10px; }
.brand-mark { width: 46px; height: 46px; }
.brand > span { font-size: clamp(24px, 2vw, 34px); letter-spacing: -.035em; }
.primary-nav { min-width: 0; flex: 1 1 auto; justify-content: center; }
.primary-nav .portal-menu { width: 100%; height: 100%; display: flex; align-items: stretch; justify-content: center; gap: clamp(7px, .85vw, 17px); }
.primary-nav .portal-menu > li { position: relative; height: 100%; display: flex; align-items: stretch; }
.primary-nav .portal-menu > li > a { padding: 0 1px; white-space: nowrap; font-size: clamp(11px, .77vw, 13px); letter-spacing: .01em; }
.primary-nav .portal-menu > li > .submenu-toggle { width: 19px; margin: 0 0 0 -2px; padding: 0; display: grid; place-items: center; color: rgba(247,243,232,.7); border: 0; background: none; }
.primary-nav .portal-menu > li > .submenu-toggle:hover,
.primary-nav .portal-menu > li > .submenu-toggle[aria-expanded="true"] { color: var(--accent); }
.primary-nav .portal-menu .sub-menu { position: absolute; z-index: 90; top: calc(100% - 7px); left: -18px; min-width: 218px; padding: 9px; display: grid; gap: 2px; background: var(--ink); border: 1px solid rgba(208,225,0,.35); box-shadow: 0 18px 45px rgba(0,0,0,.28); list-style: none; }
.primary-nav .portal-menu .sub-menu[hidden] { display: none; }
.primary-nav .portal-menu .sub-menu li,
.primary-nav .portal-menu .sub-menu a { width: 100%; height: auto; }
.primary-nav .portal-menu .sub-menu a { min-height: 38px; padding: 8px 10px; display: flex; align-items: center; color: var(--ivory); font-size: 13px; }
.primary-nav .portal-menu .sub-menu a:hover { color: var(--accent); background: rgba(255,255,255,.05); }
.header-actions { flex: 0 0 auto; gap: 8px; }
.icon-button { width: 42px; height: 42px; }

.market-rail--widget { height: 50px; overflow: hidden; background: var(--ink-2); }
.market-rail--widget .tradingview-widget-container,
.market-rail--widget .tradingview-widget-container__widget { width: 100%; min-height: 48px; }
.market-rail--widget iframe { min-height: 48px !important; }

.market-page,
.editorial-page { width: min(1480px, calc(100% - 64px)); margin-inline: auto; padding-block: 42px 72px; }
.market-page__header,
.editorial-header { margin-bottom: 26px; padding-bottom: 24px; display: grid; gap: 8px; border-bottom: 1px solid var(--ink); }
.market-page__header h1,
.editorial-header h1 { margin: 0; font-size: clamp(44px, 5vw, 76px); line-height: .98; letter-spacing: -.045em; }
.market-page__header p,
.editorial-header p { max-width: 850px; margin: 0; color: var(--muted); font-size: 17px; }
.eyebrow { color: var(--olive); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.ft-portal-markets { display: grid; gap: 22px; }
.ft-portal-markets .market-section-nav { height: auto; margin: 0; padding: 5px; position: sticky; z-index: 20; top: 0; display: flex; gap: 4px; overflow-x: auto; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 8px 24px rgba(7,27,51,.06); }
.ft-portal-markets .market-section-nav button { min-width: max-content; min-height: 44px; padding: 0 18px; color: var(--ink); border: 0; border-radius: 0; background: transparent; font-size: 13px; font-weight: 750; }
.ft-portal-markets .market-section-nav button:hover,
.ft-portal-markets .market-section-nav button.active { color: var(--ink); background: #eff5b8; box-shadow: inset 0 -3px var(--accent-strong); }
.market-portal-panel { min-width: 0; padding: 22px; background: var(--paper); border: 1px solid var(--rule); }
.market-portal-panel[hidden] { display: none; }
.market-summary-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.market-summary-layout > div { min-width: 0; padding: 18px; background: #fffdf7; border: 1px solid var(--rule); }
.market-summary-layout h2,
.portal-section-head h2,
.market-movers-terminal h2 { margin: 0 0 15px; font-size: clamp(25px,2vw,34px); }
.portal-section-head { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.portal-section-head p { max-width: 760px; margin: 0; color: var(--muted); }
.tradingview-widget-container { max-width: 100%; }
.ft-tv-table,
.ft-tv-screener,
.ft-tv-hotlists { min-width: 0; overflow: hidden; }
.market-movers-terminal { padding: 24px; background: var(--paper); border: 1px solid var(--rule); }
.market-source-note,
.data-license-note,
.source-policy-note { padding: 12px 15px; color: var(--muted); background: rgba(208,225,0,.08); border-left: 3px solid var(--olive); font-size: 13px; line-height: 1.55; }

.provider-table-wrap { overflow: auto; border: 1px solid var(--rule); }
.provider-table { width: 100%; min-width: 880px; border-collapse: collapse; }
.provider-table th { padding: 11px 14px; color: var(--muted); background: #f1eee5; text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.provider-table td { padding: 13px 14px; border-top: 1px solid var(--rule); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.provider-table td:nth-child(2) { font-family: var(--sans); }
.provider-table .up { color: var(--olive); }
.provider-table .down { color: var(--red); }

.home-market-table--widget { min-width: 0; overflow: hidden; }
.home-market-table--widget .tradingview-widget-container { height: 430px; overflow: hidden; }
.home-market-table--widget iframe { max-width: 100%; }

.asset-portal-directory { display: grid; gap: 26px; }
.asset-detail { display: grid; gap: 24px; }
.asset-quote-head { padding: 24px 28px; display: flex; align-items: end; justify-content: space-between; gap: 20px; color: var(--ivory); background: var(--ink); }
.asset-quote-head p { margin: 0 0 5px; color: var(--accent); font: 700 11px/1 var(--sans); letter-spacing: .12em; }
.asset-quote-head h1 { margin: 0; color: var(--ivory); font-size: clamp(30px,4vw,52px); }
.asset-quote-meta { display: flex; gap: 24px; }
.asset-quote-meta span { display: grid; gap: 4px; color: rgba(247,243,232,.66); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.asset-quote-meta strong { color: var(--ivory); font: 700 13px/1.2 var(--mono); text-transform: none; }
.asset-detail-tabs { min-height: 48px; display: flex; align-items: stretch; overflow-x: auto; border-bottom: 1px solid var(--rule); }
.asset-detail-tabs a { min-width: 130px; padding: 0 18px; display: grid; place-items: center; font-weight: 700; }
.asset-detail-tabs a:hover,
.asset-detail-tabs a.active { background: var(--paper); box-shadow: inset 0 -3px var(--accent-strong); }
.asset-chart { height: 650px; min-width: 0; padding: 8px; background: var(--paper); border: 1px solid var(--rule); }
.asset-chart .tradingview-widget-container,
.asset-chart .tradingview-widget-container__widget { width: 100%; height: 100%; }
.asset-detail-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.6fr); gap: 22px; }
.asset-editor-note,
.asset-facts,
.asset-comments { padding: 26px; background: var(--paper); border: 1px solid var(--rule); }
.asset-editor-note h2,
.asset-facts h2,
.asset-comments h2 { margin: 0 0 18px; font-size: 28px; }
.asset-facts dl { margin: 0; }
.asset-facts dl > div { padding: 11px 0; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rule); }
.asset-facts dt { color: var(--muted); }
.asset-facts dd { margin: 0; font: 700 13px/1.4 var(--mono); text-align: right; }
.asset-comment-form { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; }
.asset-comment-form label { grid-column: 1/-1; font-weight: 700; }
.asset-comment-form textarea { min-height: 100px; padding: 14px; resize: vertical; border: 1px solid var(--rule); background: #fffdf7; }
.asset-comment-form button { align-self: stretch; padding: 0 24px; color: var(--ivory); background: var(--ink); border: 0; font-weight: 700; }
.asset-comment-list { margin-top: 22px; display: grid; gap: 10px; }
.asset-comment-list article { padding: 16px; background: #fffdf7; border: 1px solid var(--rule); }
.asset-comment-author { display: flex; justify-content: space-between; gap: 10px; }
.asset-comment-author time { color: var(--muted); font: 12px/1 var(--mono); }

.calculator-portal { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 24px; }
.calculator-portal > nav { padding: 7px; display: grid; align-content: start; background: var(--paper); border: 1px solid var(--rule); }
.calculator-portal > nav button { min-height: 43px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; text-align: left; font-weight: 700; }
.calculator-portal > nav button:hover,
.calculator-portal > nav button.active { background: #eff5b8; box-shadow: inset 3px 0 var(--accent-strong); }
.calculator-portal > section { padding: clamp(22px,4vw,48px); display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,.65fr); gap: 28px; background: var(--paper); border: 1px solid var(--rule); }
.calculator-portal form { display: grid; gap: 16px; }
.calculator-portal label { display: grid; gap: 7px; font-weight: 700; }
.calculator-portal input { min-height: 48px; padding: 10px 12px; border: 1px solid var(--rule); background: #fffdf7; font: 700 18px/1 var(--mono); }
.calculator-portal form button { min-height: 48px; color: var(--ivory); border: 0; background: var(--ink); font-weight: 750; }
.calculator-result { padding: 26px; color: var(--ivory); background: var(--ink); }
.calculator-result span { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.calculator-result strong { margin: 22px 0 8px; display: block; color: var(--ivory); font: 700 clamp(32px,4vw,56px)/1 var(--mono); }
.calculator-result p { color: rgba(247,243,232,.7); }

.education-portal { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.education-portal article { min-height: 280px; padding: 28px; background: var(--paper); border: 1px solid var(--rule); }
.education-portal article h2 { margin: 12px 0; font-size: 30px; }
.education-portal article ul { padding-left: 19px; color: var(--muted); line-height: 1.8; }
.agenda-categories { margin: -10px 0 22px; display: flex; gap: 6px; overflow-x: auto; }
.agenda-categories a { min-width: max-content; padding: 10px 14px; background: var(--paper); border: 1px solid var(--rule); font-size: 13px; font-weight: 750; }
.agenda-categories a:hover,
.agenda-categories a.active { background: #eff5b8; border-color: var(--olive); }

@media (max-width: 1240px) {
  .site-header__inner { width: calc(100% - 28px); }
  .brand > span { font-size: 25px; }
  .brand-mark { width: 40px; height: 40px; }
  .primary-nav .portal-menu { gap: 8px; }
  .primary-nav .portal-menu > li > a { font-size: 11px; }
  .primary-nav .portal-menu > li > .submenu-toggle { width: 15px; }
  .market-page, .editorial-page { width: min(100% - 36px, 1180px); }
}

@media (max-width: 980px) {
  .primary-nav .portal-menu { height: auto; display: block; }
  .primary-nav .portal-menu > li { height: auto; min-height: 44px; display: grid; grid-template-columns: 1fr 44px; align-items: center; }
  .primary-nav .portal-menu > li > a { min-height: 44px; padding-left: 15px; font-size: 14px; }
  .primary-nav .portal-menu > li > .submenu-toggle { width: 44px; height: 44px; }
  .primary-nav .portal-menu .sub-menu { position: static; grid-column: 1/-1; min-width: 0; margin: 0 8px 8px; box-shadow: none; }
  .market-summary-layout, .asset-detail-grid, .calculator-portal > section { grid-template-columns: 1fr; }
  .calculator-portal { grid-template-columns: 220px minmax(0,1fr); }
  .education-portal { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header__inner { height: 64px; }
  .brand > span { font-size: 21px; }
  .brand-mark { width: 36px; height: 36px; }
  .market-rail--widget { height: 46px; }
  .market-page, .editorial-page { width: calc(100% - 24px); padding-block: 26px 50px; }
  .market-page__header h1, .editorial-header h1 { font-size: 44px; }
  .market-portal-panel, .market-movers-terminal { padding: 12px; }
  .market-summary-layout > div { padding: 10px; }
  .asset-quote-head { padding: 18px; display: grid; }
  .asset-quote-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .asset-chart { height: 520px; }
  .calculator-portal { grid-template-columns: 1fr; }
  .calculator-portal > nav { display: flex; overflow-x: auto; }
  .calculator-portal > nav button { min-width: max-content; border: 0; }
  .asset-comment-form { grid-template-columns: 1fr; }
  .asset-comment-form button { min-height: 46px; }
}

* { 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; }
}

/* Cascade-final v1.3 layout overrides. */
.site-header__inner { width: min(1600px, calc(100% - 44px)); height: 70px; gap: 20px; }
.brand { gap: 10px; }
.brand-mark { width: 46px; height: 46px; }
.brand > span { font-size: clamp(24px, 2vw, 34px); }
.primary-nav { min-width: 0; flex: 1 1 auto; justify-content: center; }
.primary-nav .portal-menu { width: 100%; height: 100%; display: flex; align-items: stretch; justify-content: center; gap: clamp(7px, .85vw, 17px); }
.primary-nav .portal-menu > li { position: relative; height: 100%; display: flex; align-items: stretch; }
.primary-nav .portal-menu > li > a { padding-inline: 1px; white-space: nowrap; font-size: clamp(11px, .77vw, 13px); }
.primary-nav .portal-menu > li > .submenu-toggle { width: 19px; margin-left: -2px; padding: 0; display: grid; place-items: center; color: rgba(247,243,232,.7); border: 0; background: none; }
.primary-nav .portal-menu .sub-menu { position: absolute; z-index: 90; top: calc(100% - 7px); left: -18px; min-width: 218px; padding: 9px; display: grid; gap: 2px; background: var(--ink); border: 1px solid rgba(208,225,0,.35); box-shadow: 0 18px 45px rgba(0,0,0,.28); list-style: none; }
.primary-nav .portal-menu .sub-menu[hidden] { display: none; }
.primary-nav .portal-menu .sub-menu li,
.primary-nav .portal-menu .sub-menu a { width: 100%; height: auto; }
.primary-nav .portal-menu .sub-menu a { min-height: 38px; padding: 8px 10px; color: var(--ivory); font-size: 13px; }
.market-rail--widget { height: 50px; overflow: hidden; }
.market-rail--widget .tradingview-widget-container,
.market-rail--widget .tradingview-widget-container__widget { width: 100%; min-height: 48px; }
.market-page, .editorial-page { width: min(1480px, calc(100% - 64px)); padding-block: 42px 72px; }
.market-page__header, .editorial-header { margin-bottom: 26px; padding-bottom: 24px; }

@media (max-width: 1240px) {
  .site-header__inner { width: calc(100% - 28px); }
  .brand > span { font-size: 25px; }
  .brand-mark { width: 40px; height: 40px; }
  .primary-nav .portal-menu { gap: 8px; }
  .primary-nav .portal-menu > li > a { font-size: 11px; }
}
@media (max-width: 980px) {
  .primary-nav .portal-menu { height: auto; display: block; }
  .primary-nav .portal-menu > li { height: auto; min-height: 44px; display: grid; grid-template-columns: 1fr 44px; align-items: center; }
  .primary-nav .portal-menu > li > a { min-height: 44px; padding-left: 15px; font-size: 14px; }
  .primary-nav .portal-menu > li > .submenu-toggle { width: 44px; height: 44px; }
  .primary-nav .portal-menu .sub-menu { position: static; grid-column: 1/-1; min-width: 0; margin: 0 8px 8px; box-shadow: none; }
}
@media (max-width: 820px) {
  .site-header__inner { height: 66px; }
  .market-page, .editorial-page { width: calc(100% - 28px); }
}
@media (max-width: 520px) {
  .market-page, .editorial-page { width: calc(100% - 24px); }
}

.education-portal { display: grid; grid-template-columns: 240px repeat(3,minmax(0,1fr)); gap: 18px; align-items: start; }
.education-portal > nav { padding: 7px; display: grid; position: sticky; top: 20px; background: var(--paper); border: 1px solid var(--rule); }
.education-portal > nav a { min-height: 43px; padding: 8px 12px; display: flex; align-items: center; border-bottom: 1px solid var(--rule); font-weight: 700; }
.education-portal > nav a:hover { background: #eff5b8; box-shadow: inset 3px 0 var(--accent-strong); }
.education-portal > section { min-height: 300px; padding: 28px; background: var(--paper); border: 1px solid var(--rule); }
.education-portal > section h2 { margin: 0 0 18px; font-size: 28px; }
.education-portal dl { margin: 0; }
.education-portal dl > div { padding: 12px 0; border-top: 1px solid var(--rule); }
.education-portal dt { font-weight: 800; }
.education-portal dd { margin: 4px 0 0; color: var(--muted); }
.education-portal li { margin: 10px 0; color: var(--muted); }
@media (max-width: 1100px) { .education-portal { grid-template-columns: 220px 1fr; }.education-portal > section { grid-column: 2; } }
@media (max-width: 680px) { .education-portal { grid-template-columns: 1fr; }.education-portal > nav { position: static; display: flex; overflow-x: auto; }.education-portal > nav a { min-width: max-content; }.education-portal > section { grid-column: 1; } }

/* Market data, crypto and editor additions (v1.1). */
.market-rail { height: 66px; overflow: hidden; }
.market-rail__viewport { width: 100%; height: 100%; overflow: hidden; }
.market-rail__track { width: max-content; height: 100%; display: flex; align-items: center; animation: ft-market-scroll 56s linear infinite; will-change: transform; }
.market-rail:hover .market-rail__track, .market-rail:focus-within .market-rail__track { animation-play-state: paused; }
.market-rail .market-item { flex: 0 0 205px; height: 70%; padding: 4px 24px; }
.market-rail .market-item:first-child { padding-left: 24px; }
.market-rail .neutral { color: rgba(247,243,232,.58); }
@keyframes ft-market-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.market-page { width: min(1260px, calc(100% - 64px)); min-height: 680px; margin: 0 auto; padding: 42px 0 72px; }
.market-page__header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.market-page__header h1 { margin: 5px 0 8px; font-size: clamp(44px, 5vw, 66px); line-height: .98; letter-spacing: -.045em; }
.market-page__header p { max-width: 700px; margin: 0; font: 18px/1.45 var(--serif); }
.ft-markets { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.market-card { min-width: 0; padding: 20px 22px; border: 1px solid var(--rule); background: var(--paper); }
.market-card--wide, .market-card--full { grid-column: 1 / -1; }
.market-card__head { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--ink); }
.market-card__head h2 { margin: 0; font-size: 25px; }
.market-card__head a { color: var(--muted); font-size: 11px; font-weight: 700; }
.market-card__head a:hover { color: var(--accent-dark); }
.market-data-row { min-height: 54px; display: grid; grid-template-columns: minmax(120px, 1fr) minmax(90px, auto) 80px; align-items: center; gap: 14px; border-bottom: 1px solid var(--rule); }
.market-data-row:last-child { border-bottom: 0; }
.market-data-row strong { font: 19px/1.1 var(--serif); text-align: right; }
.market-data-row em { font-style: normal; text-align: right; }
.market-data-row .neutral { color: var(--muted); }
.market-tablist { display: flex; gap: 0; margin: 16px 0 4px; }
.market-tablist button { min-height: 40px; padding: 0 18px; border: 1px solid var(--rule); background: transparent; font-size: 12px; font-weight: 700; }
.market-tablist button + button { border-left: 0; }
.market-tablist button.active { color: var(--accent); background: var(--ink); border-color: var(--ink); }
.world-market-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.market-empty { padding: 28px; border: 1px dashed var(--rule); color: var(--muted); text-align: center; }
.market-source-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.ft-crypto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.crypto-card { min-height: 180px; padding: 24px; display: grid; align-content: start; border: 1px solid var(--rule); border-top: 4px solid var(--accent); background: var(--paper); }
.crypto-card span { font-weight: 700; }
.crypto-card strong { margin: 18px 0 4px; font: 32px/1 var(--serif); }
.crypto-card em { font-style: normal; font-size: 16px; }
.crypto-card small { margin-top: 18px; color: var(--muted); }
.crypto-page .market-source-note { margin-top: 18px; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.editor-card { min-height: 210px; padding: 24px; display: grid; grid-template-columns: 112px 1fr; align-items: start; gap: 22px; border: 1px solid var(--rule); background: var(--paper); }
.editor-card img { border-radius: 50%; filter: grayscale(100%); }
.editor-card h2 { margin: 5px 0 8px; font-size: 28px; }
.editor-card p { min-height: 44px; color: var(--muted); }

@media (max-width: 1180px) {
  .primary-nav .menu { gap: 17px; }
  .primary-nav a { font-size: 14px; }
  .market-rail .market-item { flex-basis: 190px; }
}

@media (max-width: 820px) {
  .search-toggle { display: inline-grid; }
  .search-bar { top: 66px; }
  .market-rail { height: 58px; overflow: hidden; }
  .market-rail .market-item { flex-basis: 165px; height: 76%; padding: 3px 16px; }
  .market-rail .market-item:first-child { padding-left: 16px; }
  .market-page { width: calc(100% - 32px); padding-top: 30px; }
  .ft-markets, .ft-crypto-grid, .editor-grid { grid-template-columns: 1fr; }
  .market-card--wide, .market-card--full { grid-column: auto; }
  .world-market-grid { grid-template-columns: 1fr; }
  .editor-card { grid-template-columns: 88px 1fr; }
  .editor-card img { width: 88px; height: 88px; }
}

@media (max-width: 520px) {
  .market-page__header h1 { font-size: 42px; }
  .market-page__header p { font-size: 16px; }
  .market-card { padding: 16px; }
  .market-data-row { grid-template-columns: 1fr auto 68px; gap: 8px; }
  .market-data-row strong { font-size: 17px; }
  .market-tablist button { flex: 1; padding: 0 10px; }
  .editor-card { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .market-rail__track { animation: none; }
}

@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; }
}

@media (max-width: 1180px) {
  .primary-nav .menu { gap: 17px; }
  .primary-nav a { font-size: 14px; }
}

/* FinansTayfa v1.2 — compact desktop editorial system. */
:root {
  --mono: 'Roboto Mono', 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 20px;
  --space-4: 28px;
}

[hidden] { display: none !important; }
body { font-size: 15px; line-height: 1.52; }
h1 { font-size: clamp(42px, 4.4vw, 66px); line-height: .98; letter-spacing: -.045em; }
h2 { font-size: clamp(24px, 2vw, 32px); line-height: 1.08; }
h3 { font-size: 18px; line-height: 1.25; }

.site-header__inner { width: min(1460px, calc(100% - 56px)); height: 70px; }
.brand { font-size: 27px; }
.brand-mark { width: 43px; height: 43px; }
.primary-nav .menu { gap: clamp(14px, 1.8vw, 30px); }
.primary-nav a { padding-inline: 2px; font-size: 14px; }
.header-actions { gap: 8px; }
.site-header .header-actions > .icon-button,
.account-menu > .icon-button { width: 42px; height: 42px; border: 1px solid rgba(200,218,33,.72); }
.account-menu { position: relative; }
.account-popover { position: absolute; z-index: 45; top: calc(100% + 12px); right: 0; width: 230px; padding: 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 18px 45px rgba(7,27,51,.2); }
.account-popover::before { content: ''; position: absolute; top: -7px; right: 13px; width: 12px; height: 12px; background: var(--paper); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); transform: rotate(45deg); }
.account-popover strong { display: block; padding: 6px 8px 10px; font-family: var(--serif); font-size: 17px; }
.account-popover a { min-height: 38px; padding: 8px; display: flex; align-items: center; border-top: 1px solid var(--rule); font-size: 13px; font-weight: 700; }
.account-popover a:hover { color: var(--accent-dark); }

.search-bar { top: 70px; z-index: 42; width: min(820px, calc(100% - 40px)); padding: 0; display: block; }
.typeahead-shell { position: relative; padding: 12px 14px; background: var(--paper); }
.search-bar .search-form { min-height: 45px; }
.search-bar input { font-size: 15px; }
.typeahead-results { position: absolute; z-index: 2; top: 100%; left: -1px; right: -1px; max-height: 360px; overflow: auto; background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 18px 40px rgba(7,27,51,.16); }
.typeahead-results a { min-height: 48px; padding: 8px 14px; display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 12px; border-bottom: 1px solid var(--rule); }
.typeahead-results a:hover { background: rgba(200,218,33,.12); }
.typeahead-results strong { font-family: var(--mono); font-size: 12px; }
.typeahead-results span { font-size: 13px; }
.typeahead-results p { margin: 0; padding: 18px; color: var(--muted); }

.market-rail { height: 62px; }
.market-rail .market-item { flex: 0 0 max(220px, 20vw); height: 74%; padding: 3px 26px; grid-template-columns: minmax(90px, 1fr) auto; }
.market-rail .market-item span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.market-rail .market-item strong { font: 600 18px/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.market-rail .market-item em { font: 700 12px/1 var(--mono); font-variant-numeric: tabular-nums; }
.market-rail__track { animation-duration: 48s; }

.home-page { background: var(--paper); }
.home-lead { width: min(1460px, calc(100% - 56px)); min-height: 330px; margin: 0 auto; padding: 34px 0 26px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(500px, .9fr); gap: 44px; align-items: start; border-bottom: 1px solid var(--ink); }
.lead-story { padding: 8px 0; }
.lead-story h1 { max-width: 760px; margin-bottom: 20px; }
.lead-story p { max-width: 700px; margin-bottom: 22px; font: 20px/1.42 var(--serif); }
.lead-link { color: var(--accent-dark); font-size: 14px; }
.home-market-table { padding: 14px 18px 10px; border: 1px solid var(--rule); }
.home-market-table .section-head { min-height: 42px; }
.market-table-head { min-height: 34px; display: grid; grid-template-columns: 1fr 145px 92px; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--rule); }
.market-table-head span:nth-child(n+2) { text-align: right; }
.home-market-table .summary-row { height: 44px; grid-template-columns: 1fr 145px 92px; }
.home-market-table .summary-row strong { overflow: hidden; text-overflow: ellipsis; font: 600 14px/1 var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.home-market-table .summary-row em { font: 700 12px/1 var(--mono); font-variant-numeric: tabular-nums; }

.home-information-grid { width: min(1460px, calc(100% - 56px)); margin: 0 auto; padding: 26px 0; display: grid; grid-template-columns: 1fr 1.08fr .94fr; gap: 24px; border-bottom: 1px solid var(--ink); }
.home-information-grid > section { min-width: 0; padding: 0 16px 16px; border: 1px solid var(--rule); }
.home-information-grid .section-head { min-height: 52px; }
.home-information-grid .section-head h2 { font-size: 24px; }
.kap-row { min-height: 62px; padding: 9px 0; display: grid; grid-template-columns: 66px minmax(0, 1fr) 72px; align-items: center; gap: 10px; border-bottom: 1px solid var(--rule); }
.kap-row > strong { font: 700 12px/1 var(--mono); }
.kap-row b { display: block; overflow: hidden; font: 600 14px/1.28 var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.kap-row small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.kap-row time { color: var(--muted); font: 11px/1.2 var(--mono); text-align: right; }
.kap-row:hover { background: rgba(200,218,33,.08); }
.data-status { margin: 12px 0 0; padding: 10px; color: var(--muted); background: rgba(7,27,51,.035); border-left: 3px solid var(--accent-dark); font-size: 11px; }
.editor-analysis-row { padding: 12px 0 16px; border-bottom: 1px solid var(--rule); }
.editor-analysis-row:last-child { border-bottom: 0; }
.editor-analysis-meta { margin-bottom: 9px; display: flex; align-items: center; gap: 9px; }
.editor-analysis-meta .avatar { width: 30px; height: 30px; font-size: 9px; }
.editor-analysis-meta strong, .editor-analysis-meta time { display: block; font-size: 10px; }
.editor-analysis-meta time { color: var(--muted); }
.editor-analysis-thumb { max-height: 118px; margin-bottom: 9px; display: block; overflow: hidden; }
.editor-analysis-thumb img { width: 100%; height: 118px; object-fit: cover; }
.editor-analysis-row h3 { margin-bottom: 5px; font: 700 18px/1.18 var(--serif); }
.editor-analysis-row p { margin: 0; color: var(--muted); font-size: 12px; }
.home-information-grid .forum-preview-row { min-height: 58px; grid-template-columns: 1fr 40px 44px; }
.home-information-grid .forum-table-head { grid-template-columns: 1fr 40px 44px; }
.home-information-grid .forum-preview-row strong { font-size: 14px; }

.latest-finance-news { width: min(1460px, calc(100% - 56px)); margin: 0 auto; padding: 24px 0 44px; }
.latest-finance-news > .section-head { margin-bottom: 4px; }
.finance-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 28px; }
.finance-news-grid article { min-height: 150px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.finance-news-grid small, .finance-news-grid article > span { color: var(--muted); font-size: 10px; }
.finance-news-grid h3 { margin: 7px 0; font: 700 20px/1.22 var(--serif); }
.finance-news-grid p { margin-bottom: 10px; color: var(--muted); }

.market-page { width: min(1460px, calc(100% - 56px)); padding: 26px 0 56px; }
.market-page__header { margin-bottom: 16px; padding-bottom: 14px; }
.market-page__header h1 { margin: 2px 0 5px; font-size: clamp(40px, 4vw, 54px); }
.market-page__header p { font: 15px/1.45 var(--sans); }
.ft-markets { display: block; }
.market-section-nav { height: 46px; margin-bottom: 12px; display: flex; align-items: stretch; border-bottom: 1px solid var(--rule); }
.market-section-nav a { min-width: 120px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-bottom: 0; font-weight: 700; }
.market-section-nav a:hover, .market-section-nav a.active { background: var(--paper); border-color: var(--rule); box-shadow: inset 0 -3px var(--accent); }
.market-dashboard { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, .9fr); gap: 18px; align-items: start; }
.market-dashboard__main { min-width: 0; display: grid; gap: 14px; }
.market-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.market-card { padding: 12px 14px; }
.market-card__head { min-height: 36px; }
.market-card__head h2 { font-size: 21px; }
.market-data-row { min-height: 40px; grid-template-columns: minmax(110px, 1fr) minmax(100px, auto) 76px; gap: 10px; font-size: 13px; }
.market-data-row strong { font: 600 13px/1 var(--mono); font-variant-numeric: tabular-nums; }
.market-data-row em { font: 700 11px/1 var(--mono); font-variant-numeric: tabular-nums; }
.value-pending { color: var(--muted); font: 10px/1.2 var(--sans); }
.world-market-grid { grid-template-columns: repeat(2, 1fr); column-gap: 22px; }
.market-overview { padding: 12px 14px; border: 1px solid var(--rule); background: var(--paper); }
.market-overview > h2 { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-size: 22px; }
.market-overview .market-data-row { grid-template-columns: minmax(72px, 1fr) minmax(66px, auto) 58px; gap: 6px; }
.market-overview .market-data-row strong { font-size: 11px; }
.market-overview .market-data-row em { font-size: 9px; }
.market-overview__note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.market-overview__note strong { font-size: 12px; }
.market-overview__note p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.market-movers { margin-top: 18px; }
.market-movers [data-market-panel] { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.market-movers [data-market-panel][hidden] { display: none !important; }
.market-source-note { margin-top: 12px; }

.asset-directory { margin: 22px 0; border: 1px solid var(--rule); background: var(--paper); }
.directory-head { min-height: 70px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--rule); }
.directory-head h2 { margin: 0 0 2px; font-size: 23px; }
.directory-head p { margin: 0; color: var(--muted); font-size: 11px; }
.directory-head label { width: min(410px, 45%); }
.directory-head input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--rule); background: transparent; }
.directory-letters { min-height: 50px; padding: 7px 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--rule); }
.directory-letters button { width: 34px; height: 34px; padding: 0; border: 1px solid transparent; background: transparent; font: 700 12px/1 var(--mono); transition: color .16s ease, transform .16s ease, border-color .16s ease, background .16s ease; }
.directory-letters button:first-child { width: 52px; font-family: var(--sans); }
.directory-letters button:hover, .directory-letters button:focus-visible { z-index: 1; color: var(--accent-dark); border-color: var(--accent-dark); transform: scale(1.24); }
.directory-letters button.active { color: var(--accent); background: var(--ink); border-color: var(--ink); }
.directory-table { padding: 0 14px 12px; }
.directory-row { min-height: 38px; padding: 0 8px; display: grid; grid-template-columns: 110px minmax(0, 1fr) 130px; align-items: center; gap: 12px; border-bottom: 1px solid var(--rule); font-size: 12px; }
.directory-row:hover, .directory-row.selected { background: rgba(200,218,33,.12); }
.directory-row strong { font: 700 12px/1 var(--mono); }
.directory-row small { color: var(--muted); }
.directory-row--head { min-height: 34px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.directory-results { max-height: 470px; overflow: auto; }
.directory-empty, .directory-no-results { margin: 0; padding: 28px 18px; color: var(--muted); text-align: center; }
.crypto-directory-wrap { margin-top: 28px; }
.crypto-page .ft-crypto-grid { grid-template-columns: repeat(6, 1fr); gap: 8px; }
.crypto-page .crypto-card { min-height: 112px; padding: 14px; border-top-width: 2px; }
.crypto-page .crypto-card strong { margin: 10px 0 3px; font: 600 18px/1 var(--mono); }
.crypto-page .crypto-card small { margin-top: 9px; }
.analysis-archive .asset-directory { margin: 18px 0; }

.agenda-page { width: min(1320px, calc(100% - 56px)); }
.editorial-header p { margin-bottom: 0; font-size: 16px; }
.agenda-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.agenda-card { min-height: 210px; padding: 22px 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; border-bottom: 1px solid var(--rule); }
.agenda-card__media { min-height: 150px; overflow: hidden; }
.agenda-card__media img { width: 100%; height: 150px; object-fit: cover; }
.agenda-card h2 { margin: 8px 0; font-size: 24px; }
.agenda-card p { color: var(--muted); }
.content-meta, .content-byline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.content-byline { padding-top: 8px; border-top: 1px solid var(--rule); }
.content-byline a { color: var(--accent-dark); font-weight: 700; }

.kap-reader-page { width: min(1120px, calc(100% - 56px)); }
.kap-detail > header { padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.kap-detail h1 { margin: 8px 0 16px; }
.source-line { margin: 0; color: var(--muted); font-size: 12px; }
.kap-detail__content { margin-top: 20px; border: 1px solid var(--rule); background: var(--paper); }
.kap-detail__content section { padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.kap-detail__content h2 { margin-bottom: 6px; font-size: 18px; }
.kap-detail__content p { margin-bottom: 8px; font: 15px/1.65 var(--serif); }

@media (max-width: 1120px) {
  .site-header__inner { width: calc(100% - 32px); }
  .brand { font-size: 22px; }
  .brand-mark { width: 38px; height: 38px; }
  .primary-nav .menu { gap: 12px; }
  .primary-nav a { font-size: 12px; }
  .home-lead { grid-template-columns: 1fr 460px; gap: 24px; }
  .home-information-grid { grid-template-columns: 1fr 1fr; }
  .home-information-grid > section:last-child { grid-column: 1 / -1; }
  .market-dashboard { grid-template-columns: minmax(0, 1fr) 280px; }
  .crypto-page .ft-crypto-grid { grid-template-columns: repeat(3, 1fr); }
  .agenda-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-header__inner { height: 66px; }
  .site-header .header-actions > .icon-button, .account-menu > .icon-button { width: 38px; height: 38px; }
  .search-bar { top: 66px; }
  .menu-toggle { display: inline-grid; }
  .primary-nav { top: 66px; }
  .market-rail { height: 56px; }
  .market-rail .market-item { flex-basis: 175px; padding: 3px 14px; }
  .market-rail .market-item strong { font-size: 14px; }
  .home-lead, .home-information-grid, .latest-finance-news, .market-page { width: calc(100% - 28px); }
  .home-lead { display: block; padding-top: 24px; }
  .lead-story { min-height: auto; padding-bottom: 22px; }
  .lead-story h1 { font-size: 42px; }
  .lead-story p { font-size: 17px; }
  .home-information-grid, .finance-news-grid { grid-template-columns: 1fr; }
  .home-information-grid > section:last-child { grid-column: auto; }
  .market-dashboard { display: block; }
  .market-overview { margin-top: 14px; }
  .market-pair { grid-template-columns: 1fr; }
  .market-section-nav { overflow-x: auto; }
  .market-section-nav a { min-width: 110px; }
  .market-movers [data-market-panel], .world-market-grid { grid-template-columns: 1fr; }
  .directory-head { align-items: stretch; flex-direction: column; }
  .directory-head label { width: 100%; }
  .directory-row { grid-template-columns: 82px minmax(0, 1fr); }
  .directory-row > :last-child { display: none; }
  .crypto-page .ft-crypto-grid { grid-template-columns: 1fr 1fr; }
  .agenda-page, .kap-reader-page { width: calc(100% - 28px); }
  .agenda-card { grid-template-columns: 120px minmax(0, 1fr); }
  .agenda-card__media, .agenda-card__media img { min-height: 110px; height: 110px; }
}

@media (max-width: 520px) {
  .brand span { display: none; }
  .typeahead-results a { grid-template-columns: 70px 1fr; }
  .home-market-table { padding-inline: 12px; }
  .market-table-head, .home-market-table .summary-row { grid-template-columns: 1fr 118px 70px; }
  .home-market-table .summary-row strong { font-size: 11px; }
  .kap-row { grid-template-columns: 54px minmax(0, 1fr); }
  .kap-row time { display: none; }
  .crypto-page .ft-crypto-grid { grid-template-columns: 1fr; }
  .agenda-card { grid-template-columns: 1fr; }
  .agenda-card__media, .agenda-card__media img { min-height: 170px; height: 170px; }
}
