:root {
      --ink: #182620;
      --ink-soft: #3d4a44;
      --paper: #eef1ea;
      --panel: #ffffff;
      --line: #d7ddd2;
      --muted: #6d786f;
      --teal: #1f7a6c;
      --teal-deep: #145a4f;
      --teal-soft: #e3f0ec;
      --amber: #c97a2b;
      --amber-soft: #f7e9d8;
      --rose: #a8503f;
      --rose-soft: #faebe8;
      --green: #2e7d32;
      --green-soft: #e8f5e9;
      --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
      --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif;
      --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
      --wrap: 1140px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--paper);
      color: var(--ink);
      font-family: var(--sans);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      padding-bottom: 64px;
    }
    a { color: inherit; }
    img { max-width: 100%; display: block; }
    ::selection { background: var(--teal); color: #fff; }
    :focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

    .wrap { width: min(var(--wrap), 100% - clamp(24px, 5vw, 64px)); margin-inline: auto; }

    /* ---------- Nav ---------- */
    .nav {
      position: sticky; top: 0; z-index: 40;
      background: rgba(238,241,234,.94);
      backdrop-filter: saturate(1.4) blur(10px);
      -webkit-backdrop-filter: saturate(1.4) blur(10px);
      border-bottom: 1px solid var(--line);
    }
    .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
    .nav-left { display: flex; align-items: center; gap: 16px; }
    .nav img { height: 40px; width: auto; }
    .back-btn {
      display: inline-flex; align-items: center; gap: 6px;
      font-family: var(--mono); font-size: 12px; font-weight: 700;
      color: var(--teal); text-decoration: none; padding: 6px 12px;
      border-radius: 6px; background: var(--teal-soft); border: 1px solid rgba(31,122,108,.2);
      transition: all .15s ease;
    }
    .back-btn:hover { background: var(--teal); color: #fff; }

    .nav-links { display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
    .nav-links a { text-decoration: none; color: var(--ink-soft); transition: color .15s ease; }
    .nav-links a:hover, .nav-links a.active { color: var(--teal); font-weight: 700; }
    
    .nav-btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
      text-decoration: none; cursor: pointer; padding: 8px 16px; border-radius: 999px;
      font-weight: 700; transition: all .18s ease; outline: none; border: 2px solid transparent;
      line-height: 1.2;
    }
    .nav-btn.primary {
      background: var(--teal); color: #ffffff !important; border-color: var(--teal);
      box-shadow: 0 2px 8px rgba(31,122,108,.3);
    }
    .nav-btn.primary:hover {
      background: var(--teal-deep); border-color: var(--teal-deep); color: #ffffff !important;
      transform: translateY(-1px);
    }
    .nav-btn.secondary {
      background: var(--panel); color: var(--ink) !important; border-color: var(--line);
    }
    .nav-btn.secondary:hover {
      background: var(--paper); border-color: var(--teal); color: var(--teal) !important;
      transform: translateY(-1px);
    }

    /* ---------- Hero ---------- */
    .market-hero {
      padding: clamp(32px, 5vh, 48px) 0 clamp(24px, 4vh, 36px);
      background:
        radial-gradient(ellipse 650px 380px at 5% 0%, rgba(31,122,108,.12), transparent 60%),
        radial-gradient(ellipse 550px 380px at 95% 100%, rgba(201,122,43,.14), transparent 60%),
        var(--paper);
      border-bottom: 1px solid var(--line);
    }
    .hero-content { max-width: 820px; }
    .eyebrow {
      font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
      text-transform: uppercase; color: var(--teal); margin: 0 0 10px; display: flex; align-items: center; gap: 8px;
    }
    .eyebrow .badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
    .market-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.8vw, 42px); line-height: 1.18; margin: 0 0 10px; }
    .market-hero .lede { font-size: clamp(15px, 1.2vw, 17px); color: var(--ink-soft); max-width: 720px; margin: 0; line-height: 1.5; }
    
    .as-of-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
      padding: 5px 12px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft);
      white-space: nowrap; flex-shrink: 0;
    }
    .as-of-badge strong { color: var(--teal); font-weight: 700; }

    /* ---------- Section Sticky Navigation Bar (Above Sovereign Yields) ---------- */
    .section-nav-toolbar {
      position: sticky; top: 65px; z-index: 38;
      background: rgba(238,241,234,.96);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      padding: 8px 0;
      border-bottom: 1px solid var(--line);
      box-shadow: 0 2px 10px rgba(0,0,0,.02);
      transition: top .2s ease, padding .2s ease;
    }
    .section-nav-inner {
      display: flex; align-items: center; justify-content: space-between; gap: 10px;
      min-width: 0;
    }
    .section-jump-links {
      display: flex; align-items: center; gap: 4px;
      flex: 1 1 auto; min-width: 0;
      overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding: 2px 0;
    }
    .section-jump-links::-webkit-scrollbar { display: none; }
    .sec-nav-link {
      font-family: var(--mono); font-size: 12px; font-weight: 600;
      color: var(--ink-soft); text-decoration: none; padding: 5px 10px;
      border-radius: 6px; transition: all .15s ease;
      white-space: nowrap; flex-shrink: 0;
    }
    .sec-nav-link:hover {
      background: var(--teal-soft); color: var(--teal);
    }
    .sec-nav-link.active {
      background: var(--teal); color: #ffffff !important;
      font-weight: 700; box-shadow: 0 2px 6px rgba(31,122,108,.25);
    }
    .sec-lbl-full { display: inline; }
    .sec-lbl-short { display: none; }

    /* ---------- Global Horizon Bar (Return Window Only) ---------- */
    .horizon-toolbar {
      position: sticky; top: 106px; z-index: 30;
      background: rgba(238,241,234,.96);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      padding: 9px 0; border-bottom: 1px solid var(--line);
      box-shadow: 0 4px 12px rgba(0,0,0,.03);
      transition: top .2s ease, padding .2s ease;
    }
    .horizon-inner {
      display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 14px;
    }
    .horizon-label-group {
      display: flex; align-items: center; gap: 12px; flex-shrink: 0;
    }
    .horizon-label {
      font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
      color: var(--muted); font-weight: 600; white-space: nowrap;
    }
    .hl-tablet { display: none; }
    .hl-mobile { display: none; }
    .as-of-mobile-icon { display: none; }
    .horizon-meta-info {
      display: flex; align-items: center; gap: 12px;
    }
    .horizon-window-desc {
      font-family: var(--mono); font-size: 11.5px; color: var(--muted);
      font-weight: 600;
    }
    .horizon-pills {
      display: inline-flex; background: var(--panel); border: 1px solid var(--line);
      border-radius: 999px; padding: 3px; gap: 2px;
    }
    .horizon-pill {
      font-family: var(--mono); font-size: 12px; padding: 6px 14px; border-radius: 999px;
      border: none; background: transparent; color: var(--ink-soft); cursor: pointer;
      font-weight: 600; transition: all .15s ease;
    }
    .horizon-pill:hover { color: var(--teal); }
    .horizon-pill.active {
      background: var(--ink); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15);
    }

    /* ---------- Section Headers ---------- */
    .section-wrap {
      padding: 38px 0;
      scroll-margin-top: 160px;
    }
    .section-header {
      display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
      gap: 12px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--line);
    }
    .section-title {
      font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); font-weight: 400; margin: 0;
      display: flex; align-items: center; gap: 10px;
    }
    .section-desc {
      font-size: 14px; color: var(--muted); margin: 4px 0 0;
    }
    .section-badge {
      font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
      background: var(--panel); border: 1px solid var(--line); color: var(--muted);
    }

    /* ---------- Indices Grid ---------- */
    .indices-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 18px;
    }
    .index-card {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 20px 22px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
      position: relative;
    }
    .index-card:hover {
      transform: translateY(-3px);
      border-color: var(--teal);
      box-shadow: 0 10px 24px rgba(24,38,32,.07);
    }
    .index-card-head {
      display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px;
    }
    .index-category {
      font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
      color: var(--teal); background: var(--teal-soft); padding: 3px 8px; border-radius: 4px; font-weight: 700;
    }
    .index-card h3 {
      font-size: 20px; font-family: var(--sans); font-weight: 700; margin: 6px 0 4px; line-height: 1.25;
    }
    .index-role {
      font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.4;
    }

    .index-level-row {
      display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 14px;
    }
    .index-level {
      font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1;
    }
    
    /* Return Badges */
    .ret-badge {
      display: inline-flex; align-items: center; gap: 4px;
      font-family: var(--mono); font-size: 13px; font-weight: 700;
      padding: 4px 10px; border-radius: 6px;
    }
    .ret-badge.pos { background: var(--green-soft); color: var(--green); border: 1px solid rgba(46,125,50,.2); }
    .ret-badge.neg { background: var(--rose-soft); color: var(--rose); border: 1px solid rgba(168,80,63,.2); }
    .ret-badge.neutral { background: var(--paper); color: var(--muted); }

    .index-stats-grid {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 8px; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px;
      font-family: var(--mono); font-size: 11px;
    }
    .stat-item { display: flex; flex-direction: column; }
    .stat-lbl { color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: 11px; }
    .stat-val { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 2px; }

    .cagr-anchor {
      margin-top: 10px; padding: 8px 10px; background: var(--paper); border-radius: 6px;
      font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
      display: flex; justify-content: space-between; align-items: center;
    }
    .cagr-anchor b { color: var(--teal); font-weight: 700; }

    /* ---------- Macro & Sovereign Strip (Above Horizon) ---------- */
    .macro-section {
      padding: 26px 0 16px;
      scroll-margin-top: 120px;
    }
    .macro-strip-card {
      background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
      padding: 22px 24px; box-shadow: 0 4px 16px rgba(0,0,0,.02);
    }
    .macro-strip-header {
      display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
      gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
    }
    .macro-strip-title {
      font-family: var(--serif); font-size: 22px; font-weight: 400; margin: 0;
      display: flex; align-items: center; gap: 8px;
    }
    .macro-strip-desc {
      font-size: 13px; color: var(--muted); margin: 4px 0 0;
    }
    .spot-rate-badge {
      font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--teal);
      background: var(--teal-soft); border: 1px solid rgba(31,122,108,.25);
      border-radius: 999px; padding: 4px 12px; white-space: nowrap;
    }
    .rates-list {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px;
    }
    .rate-box {
      padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfa;
      transition: transform .15s ease, box-shadow .15s ease;
    }
    .rate-box:hover {
      transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,.04);
    }
    .rate-box .r-lbl { font-size: 11px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; }
    .rate-box .r-val { font-family: var(--mono); font-size: 19px; font-weight: 700; color: var(--ink); margin-top: 4px; }
    .rate-box.benchmark { border-color: var(--amber); background: var(--amber-soft); }
    .rate-box.benchmark .r-lbl { color: #82470e; font-weight: 700; }
    .rate-box.benchmark .r-val { color: #82470e; }

    /* ---------- Precious Metals Cards ---------- */
    .metals-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px;
    }
    .metal-item {
      display: flex; justify-content: space-between; align-items: center;
      padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
      box-shadow: 0 4px 16px rgba(0,0,0,.02); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }
    .metal-item:hover {
      transform: translateY(-2px); border-color: var(--teal);
      box-shadow: 0 8px 20px rgba(24,38,32,.06);
    }
    .metal-item .m-title { font-weight: 700; font-size: 15px; color: var(--ink); }
    .metal-item .m-sub { font-size: 11.5px; color: var(--muted); font-family: var(--mono); margin-top: 3px; }
    .metal-item .m-price { font-family: var(--mono); font-size: 18px; font-weight: 700; text-align: right; color: var(--ink); }

    /* ---------- Equities & MF Filter Controls ---------- */
    .controls-shelf {
      background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
      padding: 16px 20px; margin-bottom: 20px;
      display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
    }
    .controls-left { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
    .control-label {
      font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
      color: var(--muted); font-weight: 600;
    }
    .time-btn-group {
      display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
    }
    .time-btn {
      font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 6px 12px;
      background: var(--panel); border: none; border-right: 1px solid var(--line); cursor: pointer;
      color: var(--ink-soft); transition: all .15s ease;
    }
    .time-btn:last-child { border-right: none; }
    .time-btn:hover { color: var(--teal); }
    .time-btn.active { background: var(--teal); color: #fff; }

    .toggle-sort-btn {
      display: inline-flex; align-items: center; gap: 6px;
      font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 6px 14px;
      border-radius: 8px; border: 1px solid var(--line); background: var(--paper); cursor: pointer;
      transition: all .15s ease;
    }
    .toggle-sort-btn.gainers { background: var(--green-soft); color: var(--green); border-color: rgba(46,125,50,.3); }
    .toggle-sort-btn.decliners { background: var(--rose-soft); color: var(--rose); border-color: rgba(168,80,63,.3); }

    /* Outlier & Quality Controls */
    .outlier-btn {
      display: inline-flex; align-items: center; gap: 6px;
      font-family: var(--mono); font-size: 11.5px; font-weight: 700; padding: 6px 14px;
      border-radius: 8px; border: 1px solid var(--line); cursor: pointer;
      transition: all .15s ease;
    }
    .outlier-btn.active {
      background: var(--teal-soft); color: var(--teal-deep); border-color: rgba(31,122,108,.35);
    }
    .outlier-btn.inactive {
      background: var(--amber-soft); color: #82470e; border-color: rgba(201,122,43,.35);
    }

    .segment-select {
      font-family: var(--mono); font-size: 11.5px; padding: 6px 10px;
      background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
      color: var(--ink); outline: none; cursor: pointer; font-weight: 600;
    }
    .segment-select:focus { border-color: var(--teal); }

    .outlier-notice-banner {
      background: #fafbfa; border: 1px solid var(--line); border-radius: 8px;
      padding: 10px 14px; margin-bottom: 14px; font-size: 12.5px;
      display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
    }
    .outlier-notice-banner.warn {
      background: var(--amber-soft); border-color: var(--amber); color: #5a3206;
    }
    .view-outliers-btn {
      background: none; border: none; font-family: var(--mono); font-size: 11.5px; font-weight: 700;
      color: var(--teal); text-decoration: underline; cursor: pointer; padding: 0;
    }
    .view-outliers-btn:hover { color: var(--teal-deep); }

    /* Modal for Outlier Details */
    .outlier-modal-overlay {
      position: fixed; inset: 0; z-index: 60;
      background: rgba(24,38,32,.55); backdrop-filter: blur(4px);
      display: none; place-items: center; padding: 20px;
    }
    .outlier-modal-overlay.open { display: grid; }
    .outlier-modal-box {
      background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
      width: min(640px, 100%); max-height: 85vh; overflow-y: auto; padding: 24px;
      box-shadow: 0 20px 40px rgba(0,0,0,.2);
    }
    .outlier-modal-head {
      display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
      border-bottom: 1px solid var(--line); padding-bottom: 10px;
    }
    .outlier-modal-close {
      background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted);
      line-height: 1;
    }
    .outlier-modal-close:hover { color: var(--ink); }

    /* Share Button Next to Section Titles */
    .section-share-btn {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 3px 10px; font-family: var(--mono); font-size: 11px; font-weight: 600;
      color: var(--teal); background: var(--teal-soft); border: 1px solid rgba(31,122,108,.25);
      border-radius: 999px; cursor: pointer; vertical-align: middle; margin-left: 10px;
      transition: all .15s ease; text-decoration: none;
    }
    .section-share-btn:hover {
      background: var(--teal); color: #fff; border-color: var(--teal);
      transform: translateY(-1px); box-shadow: 0 2px 8px rgba(31,122,108,.25);
    }
    .section-share-btn svg { flex-shrink: 0; }

    /* Share Modal */
    .share-modal-overlay {
      position: fixed; inset: 0; z-index: 70;
      background: rgba(24,38,32,.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
      display: none; place-items: center; padding: 20px;
    }
    .share-modal-overlay.open { display: grid; }
    .share-modal-box {
      background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
      width: min(720px, 100%); max-height: 88vh; overflow-y: auto; padding: 24px;
      box-shadow: 0 24px 48px rgba(0,0,0,.28);
    }
    .share-modal-head {
      display: flex; justify-content: space-between; align-items: flex-start;
      margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px;
    }
    .share-actions-row {
      display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
    }
    .share-action-btn {
      display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
      border-radius: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700;
      cursor: pointer; transition: all .15s ease; border: 1px solid transparent;
    }
    .share-action-btn.primary {
      background: #000; color: #fff; border-color: #000;
    }
    .share-action-btn.primary:hover {
      background: #1d9bf0; border-color: #1d9bf0;
      box-shadow: 0 3px 10px rgba(29,155,240,.3);
    }
    .share-action-btn.secondary {
      background: var(--paper); color: var(--ink); border-color: var(--line);
    }
    .share-action-btn.secondary:hover {
      border-color: var(--teal); color: var(--teal); background: var(--teal-soft);
    }
    .share-toast {
      display: none; font-family: var(--mono); font-size: 12px; font-weight: 600;
      padding: 8px 12px; border-radius: 6px; margin-bottom: 12px;
      background: var(--teal-soft); color: var(--teal); border: 1px solid rgba(31,122,108,.3);
    }
    .share-toast.show { display: block; }
    .share-textarea {
      width: 100%; box-sizing: border-box; background: var(--paper); border: 1px solid var(--line);
      border-radius: 8px; padding: 10px 12px; font-family: var(--mono); font-size: 12px;
      line-height: 1.5; color: var(--ink); resize: vertical; outline: none; margin-top: 4px;
    }
    .share-textarea:focus { border-color: var(--teal); }
    .share-img-preview-wrap {
      margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
      background: #0f1814; text-align: center; max-height: 320px; overflow-y: auto;
    }
    .share-img-preview-wrap img {
      width: 100%; height: auto; display: block;
    }

    .search-input-wrap {
      position: relative; width: 260px; max-width: 100%;
    }
    .search-input-wrap input {
      width: 100%; height: 36px; padding: 0 12px 0 32px;
      font-family: var(--sans); font-size: 13px;
      background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
      outline: none; transition: border-color .15s ease;
    }
    .search-input-wrap input:focus { border-color: var(--teal); background: #fff; }
    .search-input-wrap svg {
      position: absolute; left: 10px; top: 10px; color: var(--muted); pointer-events: none;
    }

    /* Category Pill Filter for MF */
    .cat-pills-wrap {
      display: flex; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%;
    }
    .cat-pill {
      font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 999px;
      background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft);
      cursor: pointer; transition: all .15s ease;
    }
    .cat-pill:hover { border-color: var(--teal); color: var(--teal); }
    .cat-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

    /* ---------- Responsive Tables ---------- */
    .table-container {
      background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
      overflow-x: auto; -webkit-overflow-scrolling: touch; box-shadow: 0 4px 16px rgba(0,0,0,.02);
    }
    table.data-table {
      width: 100%; border-collapse: collapse; text-align: left; font-size: 13.5px;
      table-layout: auto;
    }
    table.data-table th {
      background: #fafbfa; font-family: var(--mono); font-size: 11px;
      letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
      padding: 11px 14px; border-bottom: 2px solid var(--line);
    }
    table.data-table td {
      padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle;
    }
    table.data-table tr:last-child td { border-bottom: none; }
    table.data-table tr:hover td { background: #f6f9f7; }

    .col-hdr-full { display: inline; }
    .col-hdr-short { display: none; }
    
    .rank-cell {
      font-family: var(--mono); font-weight: 700; color: var(--muted);
      width: 38px; text-align: center; padding-left: 8px; padding-right: 6px;
      white-space: nowrap;
    }
    .rank-cell.top-3 { color: var(--amber); }

    .name-col { min-width: 0; }
    .stock-symbol {
      font-family: var(--mono); font-weight: 700; color: var(--ink); font-size: 13.5px;
    }
    .stock-name {
      font-size: 12px; color: var(--muted); margin-top: 2px;
      word-break: break-word; overflow-wrap: break-word;
    }
    .fund-title {
      font-weight: 600; font-size: 13.5px; color: var(--ink); line-height: 1.35;
      word-break: break-word; overflow-wrap: break-word;
    }
    .fund-cat {
      font-family: var(--mono); font-size: 11px; color: var(--teal); margin-top: 2px;
      word-break: break-word; overflow-wrap: break-word;
    }
    .price-col {
      width: 95px; text-align: right;
    }
    .ret-col {
      width: 95px; text-align: right;
    }
    .price-cell {
      font-family: var(--mono); font-weight: 700; text-align: right; white-space: nowrap; width: 95px;
    }
    .ret-cell {
      font-family: var(--mono); font-weight: 700; text-align: right; white-space: nowrap; width: 95px;
    }

    /* ---------- Educational Takeaway Card ---------- */
    .cadence-callout {
      background: radial-gradient(ellipse 650px 380px at 10% 10%, rgba(31,122,108,.15), transparent 70%), var(--panel);
      border: 1px solid var(--line); border-left: 5px solid var(--teal);
      border-radius: 12px; padding: 24px 28px; margin: 40px 0 20px;
    }
    .cadence-callout h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 10px; }
    .cadence-callout p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 14px; }
    .cadence-callout .links-row { display: flex; flex-wrap: wrap; gap: 14px; }
    .cadence-callout a {
      font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--teal);
      text-decoration: underline; text-underline-offset: 3px;
    }


    /* ==========================================
       REAL ESTATE BENCHMARK (NHB RESIDEX)
       ========================================== */
    .re-section {
      padding: 10px 0 24px;
      scroll-margin-top: 120px;
    }
    .re-card {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 24px;
      box-shadow: 0 4px 16px rgba(0,0,0,.02);
      margin-bottom: 24px;
    }
    .re-strip-header {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 18px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--line);
    }
    .re-strip-title {
      font-family: var(--serif);
      font-size: 22px;
      font-weight: 400;
      margin: 0;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .re-strip-desc {
      font-size: 13px;
      color: var(--muted);
      margin: 4px 0 0;
    }
    .re-badge-national {
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 700;
      color: var(--amber);
      background: var(--amber-soft);
      border: 1px solid rgba(201,122,43,.3);
      border-radius: 999px;
      padding: 4px 12px;
      white-space: nowrap;
    }
    .re-anchor-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 12px;
      margin-bottom: 22px;
    }
    .re-stat-box {
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fafbfa;
      transition: transform .15s ease, box-shadow .15s ease;
    }
    .re-stat-box:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,.04);
    }
    .re-stat-box.highlight {
      background: var(--teal-soft);
      border-color: rgba(31,122,108,.3);
    }
    .re-stat-box.amber-highlight {
      background: var(--amber-soft);
      border-color: rgba(201,122,43,.35);
    }
    .re-stat-box .re-lbl {
      font-size: 11px;
      color: var(--muted);
      font-family: var(--mono);
      text-transform: uppercase;
      letter-spacing: .05em;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .re-stat-box.highlight .re-lbl { color: var(--teal-deep); }
    .re-stat-box.amber-highlight .re-lbl { color: #82470e; }
    .re-stat-box .re-val {
      font-family: var(--mono);
      font-size: 22px;
      font-weight: 700;
      color: var(--ink);
      margin-top: 6px;
      line-height: 1.1;
    }
    .re-stat-box .re-subtext {
      font-size: 11.5px;
      color: var(--muted);
      margin-top: 5px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* City Explorer Toolbar */
    .re-toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 14px 18px;
      margin-bottom: 20px;
    }
    .re-toolbar-left {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px;
    }
    .re-toolbar-right {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
    }
    .re-city-dropdown {
      font-family: var(--mono);
      font-size: 13px;
      font-weight: 700;
      padding: 7px 12px;
      background: #ffffff;
      border: 1.5px solid var(--teal);
      border-radius: 8px;
      color: var(--teal-deep);
      outline: none;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(31,122,108,.1);
    }
    .re-city-dropdown:focus {
      border-color: var(--ink);
    }
    .re-view-pills {
      display: inline-flex;
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      background: #ffffff;
    }
    .re-view-pill {
      font-family: var(--mono);
      font-size: 11.5px;
      font-weight: 600;
      padding: 7px 13px;
      background: #ffffff;
      border: none;
      border-right: 1px solid var(--line);
      cursor: pointer;
      color: var(--ink-soft);
      transition: all .15s ease;
    }
    .re-view-pill:last-child { border-right: none; }
    .re-view-pill:hover { color: var(--teal); background: #f6f9f7; }
    .re-view-pill.active { background: var(--ink); color: #ffffff; }

    /* City Hero Highlight Strip */
    .re-hero-strip {
      background: linear-gradient(135deg, #fafbfa 0%, #ffffff 100%);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 18px 20px;
      margin-bottom: 20px;
    }
    .re-hero-top {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 14px;
    }
    .re-hero-city-name {
      font-family: var(--sans);
      font-size: 20px;
      font-weight: 700;
      color: var(--ink);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .re-hero-state-pill {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--muted);
      background: var(--paper);
      padding: 2px 8px;
      border-radius: 4px;
      font-weight: 600;
    }
    .re-hero-stats-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
      gap: 12px;
      margin-bottom: 14px;
    }
    .re-hero-stat-card {
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 10px 14px;
    }
    .re-hero-stat-lbl {
      font-family: var(--mono);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .05em;
      color: var(--muted);
    }
    .re-hero-stat-val {
      font-family: var(--mono);
      font-size: 17px;
      font-weight: 700;
      color: var(--ink);
      margin-top: 4px;
      display: flex;
      align-items: baseline;
      gap: 6px;
    }
    .re-tier-pills-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding-top: 12px;
      border-top: 1px dashed var(--line);
      align-items: center;
    }
    .re-tier-label {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--muted);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .05em;
      margin-right: 4px;
    }
    .re-tier-pill {
      font-family: var(--mono);
      font-size: 11px;
      padding: 5px 10px;
      border-radius: 6px;
      background: var(--paper);
      border: 1px solid var(--line);
      color: var(--ink-soft);
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .re-tier-pill b { color: var(--teal-deep); }

    /* Chart SVG Container & Tooltip */
    .re-chart-wrap {
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 18px 20px 14px;
      margin-bottom: 22px;
      position: relative;
    }
    .re-chart-header {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 12px;
    }
    .re-chart-title {
      font-family: var(--sans);
      font-size: 14px;
      font-weight: 700;
      color: var(--ink);
    }
    .re-chart-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      font-family: var(--mono);
      font-size: 11px;
      color: var(--ink-soft);
      align-items: center;
    }
    .re-legend-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .re-legend-line {
      width: 16px;
      height: 3px;
      border-radius: 2px;
    }
    .re-legend-line.city { background: var(--teal); }
    .re-legend-line.national { background: var(--amber); border-top: 2px dashed var(--amber); height: 0; }
    .re-legend-line.overlap { background: var(--muted); border-top: 2px dotted var(--muted); height: 0; }
    .re-svg-box {
      width: 100%;
      height: auto;
      display: block;
      overflow: visible;
    }
    .re-chart-tooltip {
      position: absolute;
      pointer-events: none;
      background: rgba(24, 38, 32, 0.94);
      color: #ffffff;
      padding: 10px 14px;
      border-radius: 8px;
      font-family: var(--mono);
      font-size: 11.5px;
      line-height: 1.45;
      box-shadow: 0 8px 20px rgba(0,0,0,.25);
      z-index: 20;
      display: none;
      min-width: 180px;
      transition: opacity .1s ease, transform .1s ease;
      backdrop-filter: blur(4px);
    }
    .re-chart-tooltip strong { color: #8fe0cd; display: block; margin-bottom: 3px; }

    /* Leaderboard Table Specifics */
    .re-table-interactive tbody tr {
      cursor: pointer;
      transition: background .12s ease;
    }
    .re-table-interactive tbody tr:hover td {
      background: var(--teal-soft) !important;
    }
    .re-table-interactive tbody tr.active-city td {
      background: #eef7f4 !important;
      font-weight: 600;
    }
    .re-table-interactive tbody tr.active-city td:first-child {
      border-left: 4px solid var(--teal);
    }
    .re-table-interactive tr.national-row td {
      background: var(--amber-soft);
      font-weight: 700;
      border-top: 2px solid var(--amber);
      border-bottom: 2px solid var(--amber);
    }
    .re-sortable-th {
      cursor: pointer;
      user-select: none;
      -webkit-user-select: none;
      transition: color .15s ease, background-color .15s ease;
      white-space: nowrap;
    }
    .re-sortable-th:hover {
      color: var(--teal) !important;
      background: var(--teal-soft) !important;
    }
    .re-sortable-th.active-sort {
      color: var(--teal-deep) !important;
      font-weight: 700;
    }
    .re-sort-arrow {
      display: inline-block;
      margin-left: 3px;
      font-size: 11px;
      vertical-align: middle;
      color: var(--teal);
    }

    /* Editorial Section Captions (Subtle Educational Pathways) */
    .section-editorial-caption {
      margin-top: 18px;
      padding-top: 12px;
      border-top: 1px dashed var(--line);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      font-family: var(--mono);
      font-size: 11.5px;
      color: var(--muted);
      line-height: 1.45;
    }
    .editorial-link {
      color: var(--teal);
      font-weight: 600;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: color .15s ease;
      white-space: nowrap;
    }
    .editorial-link:hover {
      color: var(--teal-deep);
      text-decoration: underline;
    }
    .editorial-link-primary {
      color: var(--teal-deep);
      background: var(--teal-soft);
      padding: 4px 10px;
      border-radius: 6px;
      font-weight: 700;
      border: 1px solid rgba(31,122,108,.2);
      transition: all .15s ease;
    }
    .editorial-link-primary:hover {
      background: var(--teal);
      color: #ffffff !important;
      text-decoration: none;
      box-shadow: 0 2px 6px rgba(31,122,108,.25);
    }

    /* ========================================================
       RESPONSIVE & ADAPTIVE STYLES (TABLET, MOBILE & SHORT WINDOWS)
       ======================================================== */

    @media (max-width: 900px) {
      .nav-links { display: none; }
      .controls-shelf { flex-direction: column; align-items: stretch; }
      .search-input-wrap { width: 100%; }

      /* Table column compaction to eliminate horizontal scroll */
      table.data-table th, table.data-table td {
        padding: 9px 10px;
      }
      .col-hdr-full { display: none; }
      .col-hdr-short { display: inline; }
      .rank-cell { width: 34px; padding-left: 6px; padding-right: 4px; }
      .price-col, .price-cell { width: 85px; }
      .ret-col, .ret-cell { width: 85px; }

      /* Real Estate Responsive (Tablet) */
      .re-anchor-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    }

    /* Short Viewports (<=700px height) or Mobile/Tablet (<=768px width):
       Unpin main header to preserve vertical viewing space, stack toolbars at top: 0 and top: 35px */
    @media (max-height: 700px), (max-width: 768px) {
      .nav {
        position: relative !important;
        top: auto !important;
      }
      .section-nav-toolbar {
        top: 0 !important;
        padding: 6px 0 !important;
      }
      .horizon-toolbar {
        top: 35px !important;
        padding: 6px 0 !important;
      }
      .macro-section, .re-section {
        scroll-margin-top: 48px !important;
      }
      .section-wrap {
        scroll-margin-top: 84px !important;
      }
    }

    /* Tablet Portrait & Mobile (<=768px):
       Compact labels, smooth overflow fade mask, compact date badge */
    @media (max-width: 768px) {
      /* Short responsive labels for section links (Realty, Funds, Stocks) */
      .sec-lbl-full { display: none; }
      .sec-lbl-short { display: inline; }
      .sec-nav-link { padding: 4px 8px; font-size: 11px; }

      /* Edge fade gradient mask so overflowing links fade smoothly */
      .section-jump-links {
        mask-image: linear-gradient(to right, black calc(100% - 16px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black calc(100% - 16px), transparent 100%);
      }

      /* Compact As-Of Badge */
      .as-of-badge { padding: 4px 8px; font-size: 11px; flex-shrink: 0; }
      .as-of-prefix { display: none; }
      .as-of-mobile-icon { display: inline; }

      /* Compact Horizon Toolbar */
      .hl-desktop { display: none; }
      .hl-tablet { display: none; }
      .hl-mobile { display: inline; }
      .horizon-window-desc { display: none; }
      .horizon-inner {
        flex-direction: row; justify-content: space-between; align-items: center;
        flex-wrap: nowrap; gap: 8px;
      }
      .horizon-label-group {
        display: flex; align-items: center; gap: 6px; flex-shrink: 0; width: auto;
      }
      .horizon-pill { padding: 4px 10px; font-size: 11px; }
    }

    @media (max-width: 600px) {
      /* Macro & Metals cards */
      .section-share-btn { padding: 2px 7px; font-size: 11px; margin-left: 6px; }
      .share-modal-box { padding: 16px; }
      .share-actions-row { gap: 6px; }
      .share-action-btn { padding: 7px 10px; font-size: 11px; }
      .macro-strip-card { padding: 16px; }
      .metal-item { padding: 14px 16px; }
      .rate-box { padding: 10px; }
      .rate-box .r-val { font-size: 17px; }
      .rates-list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
      .metals-grid { grid-template-columns: 1fr; gap: 10px; }

      /* Real Estate Responsive (Mobile) */
      .re-card { padding: 16px; }
      .re-anchor-grid { grid-template-columns: 1fr; gap: 8px; }
      .re-stat-box .re-val { font-size: 19px; }
      .re-hero-strip { padding: 14px 16px; }
      .re-hero-stats-row { grid-template-columns: 1fr 1fr; gap: 8px; }
      .re-hero-stat-val { font-size: 15px; }
      .re-tier-pills-row { flex-direction: column; align-items: flex-start; }
      .re-toolbar { flex-direction: column; align-items: stretch; }
      .re-view-pills { width: 100%; display: flex; }
      .re-view-pill { flex: 1; text-align: center; font-size: 11px; padding: 6px 8px; }
      .re-chart-wrap { padding: 14px 12px; }
      .re-chart-title { font-size: 13px; }
      .re-chart-legend { font-size: 11px; gap: 8px; }

      /* Mobile Table sizing */
      table.data-table { font-size: 12.5px; }
      table.data-table th { font-size: 11px; letter-spacing: .02em; }
      table.data-table th, table.data-table td { padding: 8px 6px; }
      .rank-cell { width: 28px; padding-left: 4px; padding-right: 2px; font-size: 11.5px; }
      .fund-title { font-size: 12px; }
      .fund-cat { font-size: 11px; }
      .stock-symbol { font-size: 12px; }
      .stock-name { font-size: 11px; }
      .price-col, .price-cell { width: 72px; font-size: 12px; }
      .ret-col, .ret-cell { width: 72px; font-size: 12px; }
      .ret-badge { font-size: 11px; padding: 2px 5px; }
    }

    /* Small Mobile Devices (<=480px) */
    @media (max-width: 480px) {
      .sec-nav-link { padding: 3px 6px; font-size: 11px; }
      .section-jump-links { gap: 2px; }
      .as-of-badge { padding: 3px 6px; font-size: 11px; }
      .horizon-pill { padding: 3px 8px; font-size: 11px; }
    }

    /* ========================================================
       COLLAPSIBLE CHART & TABLE COMPONENTS
       ======================================================== */
    .re-collapse-btn {
      background: #fafbfa;
      border: 1px solid var(--line);
      color: var(--ink-soft);
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 600;
      padding: 4px 10px;
      border-radius: 6px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all .15s ease;
      white-space: nowrap;
      user-select: none;
    }
    .re-collapse-btn:hover {
      background: var(--panel);
      border-color: var(--teal);
      color: var(--teal);
      box-shadow: 0 1px 4px rgba(0,0,0,.04);
    }
    .re-collapse-btn .re-collapse-icon {
      display: inline-block;
      font-size: 11px;
      line-height: 1;
      transition: transform .18s ease;
    }
    .re-collapse-btn.is-collapsed .re-collapse-icon {
      transform: rotate(-90deg);
    }
    .re-collapse-btn.is-collapsed {
      background: var(--teal-soft);
      border-color: rgba(31,122,108,.3);
      color: var(--teal-deep);
      font-weight: 700;
    }
    .re-collapsible-body {
      transition: opacity .2s ease;
    }
    .re-collapsible-body.is-collapsed {
      display: none !important;
    }

/* Phones: long link labels wrap instead of pushing the page sideways */
@media (max-width: 600px) {
  .editorial-link { white-space: normal; text-align: left; }
}

/* ---------- Dashboard: one panel at a time, same card look everywhere ---------- */
.market-hero { padding: clamp(18px, 3vh, 28px) 0 clamp(14px, 2vh, 20px); }
.market-hero h1 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; }
.market-hero .lede { font-size: 15px; }
.macro-section, .re-section { padding: 18px 0 8px; }
.macro-strip-card, .re-card, main.wrap > .section-wrap {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; box-shadow: 0 4px 16px rgba(0,0,0,.02); margin-bottom: 0;
}
main.wrap > .section-wrap { margin: 18px auto 8px; }
.section-header { border-bottom-width: 1px; }
.dash-panel[hidden], #dashOverview[hidden], .horizon-toolbar[hidden] { display: none !important; }
#dashOverview { padding: 18px 0 8px; }
.dash-tiles { display: grid; gap: 16px; }
.dash-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dash-rows { display: grid; gap: 16px; }
.dash-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.dash-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: 0 4px 16px rgba(0,0,0,.02); min-width: 0; }
.dc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dc-head h2 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.dc-links { display: flex; gap: 6px; }
.dc-link { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--teal-deep, #17594f); cursor: pointer; }
.dc-link:hover { border-color: var(--teal); }
.dc-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash-table th, .dash-table td { padding: 7px 8px; text-align: left; border-top: 1px solid var(--line); vertical-align: middle; }
.dash-table thead th { border-top: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap; }
.dash-table .num { text-align: right; font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.dash-table .num.up { color: var(--green, #2f7d4f); }
.dash-table .num.down { color: #b3402a; }
.dash-table .num.muted { color: var(--muted); font-weight: 600; }
.dash-table th.row { font-weight: 700; white-space: nowrap; }
.dash-table tr.grp th { text-align: center; font-size: 10.5px; padding: 0 4px 4px; border-bottom: 0; }
.dash-table tr.grp .g-short { color: var(--teal-deep, #17594f); border-bottom: 2px solid var(--teal); }
.dash-table tr.grp .g-mid { color: #8a5a14; border-bottom: 2px solid var(--amber, #c97a2b); }
.dash-table tr.grp .g-long { color: #5b3f8a; border-bottom: 2px solid #8b6fc0; }
.dash-table.tops th.row small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.dash-table.tops td { max-width: 260px; }
.dash-table.tops .pick { display: inline-block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; margin-right: 8px; font-weight: 600; }
.dash-table.tops b.num { font-size: 13px; vertical-align: middle; }
.dash-card .table-wrap { overflow-x: auto; }
.dash-tile { display: flex; flex-direction: column; gap: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: 0 4px 16px rgba(0,0,0,.02); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.dash-tile:hover, .dash-tile:focus-visible { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(24,38,32,.35); outline: none; }
.dt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dt-title { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.dt-open { font-size: 12.5px; font-weight: 700; color: var(--teal-deep, #17594f); white-space: nowrap; }
.dt-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dt-big strong { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.1; }
.dt-big small { color: var(--muted); font-size: 13px; }
.dt-delta { font-family: var(--mono); font-size: 12.5px; font-weight: 700; }
.dt-delta.up { color: var(--green, #2f7d4f); }
.dt-delta.down { color: #b3402a; }
.dt-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.dt-stats div { display: grid; gap: 1px; }
.dt-stats dt { font-size: 12px; color: var(--muted); }
.dt-stats dd { margin: 0; font-weight: 700; font-size: 15px; }
.dash-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .dash-tiles { gap: 12px; } .dash-table.tops .pick { max-width: 130px; } .macro-strip-card, .re-card, main.wrap > .section-wrap { padding: 16px; } }
.indices-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.dash-strip .dash-tile { padding: 12px 18px; gap: 8px; }
.dash-strip .dt-big strong { font-size: 26px; }
.dash-strip .dt-stats { padding-top: 8px; }
.dash-table td, .dash-table th { padding-block: 6px; }

.dash-strip .dash-tile { padding: 12px 16px; gap: 6px; }
.dt-inline { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--muted); padding-top: 8px; border-top: 1px dashed var(--line); }
.dt-inline b { color: var(--ink); }
.dash-table.tops td small { display: block; color: var(--muted); font-size: 11.5px; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-table.tops .pick { display: block; max-width: 300px; margin: 0; }
.dash-table.tops td { max-width: none; }
.dash-table.tops .num { font-size: 14px; }
@media (max-width: 1000px) { .dash-strip { grid-template-columns: 1fr; } .dash-two { grid-template-columns: 1fr; } }
.dash-table thead th.num { font-size: 11px; }

.dt-acts { display: inline-flex; align-items: center; gap: 10px; }
.dash-share { margin-left: 0; }
.dash-tile { cursor: pointer; }


/* Utilities replacing inline styles */
.is-hidden { display: none; }
th.th-right { text-align: right; }
.accent-teal { accent-color:var(--teal); }
.mp-caption-top { margin-top:24px;padding-top:14px; }
.mp-check-label { font-family:var(--mono);font-size:11.5px;color:var(--muted);display:inline-flex;align-items:center;gap:6px;cursor:pointer; }
.mp-field-gap { margin:14px 0 10px; }
.mp-field-label { font-family:var(--mono);font-size:11px;text-transform:uppercase;color:var(--muted);font-weight:700; }
.mp-h3 { font-family:var(--serif);font-size:19px;font-weight:600;margin:0;color:var(--ink); }
.mp-head-row { display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;flex-wrap:wrap;gap:8px; }
.mp-head-row--spaced { margin-top:28px; }
.mp-head-title { display:flex;align-items:baseline;gap:10px;flex-wrap:wrap; }
.mp-meta { font-family:var(--mono);font-size:11px;color:var(--muted); }
.mp-modal-lead { font-size:13px;color:var(--ink-soft);line-height:1.5;margin:0 0 14px; }
.mp-modal-sub { font-size:12.5px;color:var(--muted);margin:4px 0 0;font-family:var(--mono); }
.mp-modal-title { margin:0;font-family:var(--serif);font-size:20px; }
.mp-modal-title--flex { display:flex;align-items:center;gap:8px; }
.mp-scroll-360 { max-height:360px;overflow-y:auto; }
.mp-table-sm { font-size:12.5px; }
.mt-14 { margin-top:14px; }
.mt-28 { margin-top:28px; }
.re-svg-box { position:relative;width:100%;min-height:280px; }
.text-green { color:var(--green); }

th.th-center-40 { width: 40px; text-align: center; }
