.market-theme {
  --market-ink: #f7f0dc;
  --market-muted: #b8cbc5;
  --market-line: rgba(184, 208, 194, 0.22);
  --market-panel: rgba(5, 35, 36, 0.78);
  --market-panel-strong: rgba(5, 31, 33, 0.92);
  --market-gold: #e6ca86;
  --market-emerald: #6ed7a1;
  --market-rose: #f39aa9;
  background: #061a1d;
  color: var(--market-ink);
}

.market-theme .site-header {
  position: relative;
  z-index: 30;
  border-color: rgba(184, 208, 194, 0.15);
  background: rgba(3, 23, 28, 0.94);
  color: var(--market-ink);
}

.market-theme .site-header > div { max-width: 94rem; flex-wrap: nowrap; gap: .75rem; }
.market-theme .site-header nav { width: auto; flex-wrap: nowrap; }
.market-theme .site-header nav a[href*="social_cards"],
.market-theme .site-header nav a[href*="vector_vest"],
.market-theme .site-header nav a[href*="policy_inspector"],
.market-theme .site-header nav a[href*="admin/jobs"] { display: none; }
.market-theme .site-header nav a { color: #b8c9c4; }
.market-theme .site-header nav a:hover { color: #fff7df; background: rgba(216, 197, 139, 0.1); }
.market-theme .site-header nav a[href*="market_timing"] { color: #fff3d1; background: rgba(208, 185, 116, 0.15); box-shadow: inset 0 0 0 1px rgba(218, 198, 137, 0.22); }
.market-theme .site-header form input { border-color: rgba(184, 208, 194, 0.18); background: rgba(4, 30, 35, 0.74); color: #fff7df; box-shadow: none; }
.market-theme .site-header form input::placeholder { color: #91a6a1; }
.market-theme .site-header button { border-color: rgba(184, 208, 194, 0.18); color: #b8c9c4; }
.site-header .site-brand { min-width: max-content; }
.site-header .site-brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; font-weight: 400; }
.site-header .site-brand-guide { letter-spacing: .02em; }
.site-header .site-brand img { object-fit: contain; }
.site-header .site-brand .site-brand-name { color: inherit; }
.site-header .site-brand .site-brand-guide { color: #64748b; }
.site-header .site-brand .site-brand-name::after { content: ""; }
.site-header .site-brand .site-brand-guide::before { content: ""; }
.site-header .site-brand .site-brand-guide { display: block; }
.site-header .site-brand { color: #0f172a; }
.market-theme .site-header .site-brand { color: #fff7df; }
.market-theme .site-header .site-brand-guide { color: #9db3ad; }
.site-header .site-brand > .site-brand-name { color: inherit; }
.site-header .site-brand > span { min-width: 0; }
.site-header .site-brand > span > span { white-space: nowrap; }
.site-header .site-brand > .site-brand-name { white-space: nowrap; }
.site-header .site-brand > img.site-brand-avatar,
.site-header .site-brand .site-brand-avatar {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  border: 1px solid rgba(230, 202, 134, .35);
  filter: drop-shadow(0 4px 8px rgba(14, 28, 26, 0.26));
}

.market-main { max-width: none !important; padding: 0 !important; }
.market-main > div { width: 100%; }
.market-page { position: relative; min-height: calc(100vh - 76px); overflow: hidden; }
.market-page::before { content: ""; position: fixed; inset: 0; z-index: -2; background: #061a1d var(--market-art) center / cover no-repeat; }
.market-page::after { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 22, 27, .36), rgba(3, 25, 27, .75) 42%, #061a1d 92%), radial-gradient(ellipse at 72% 8%, rgba(240, 204, 133, .29), transparent 35%), rgba(4, 27, 30, .28); backdrop-filter: saturate(.78); }

/* Card readability stays local; landscape exposure lives in meadow.css. */
.market-page[data-market-weather] {
  --environment-hero-scrim: rgba(8, 32, 34, .88);
  --environment-card-surface: #35534b;
  --environment-card-border: #8ea89a;
  isolation: isolate;
}
.market-page[data-market-weather] .market-dashboard-state { position: relative; isolation: isolate; width: fit-content; max-width: 100%; }
.market-page[data-market-weather] .market-dashboard-state::before {
  content: "";
  position: absolute;
  inset: -3rem -6rem -2.5rem -5rem;
  z-index: -1;
  pointer-events: none;
  /* A soft pool follows the text's width instead of backing the whole grid cell. */
  background: radial-gradient(ellipse closest-side, var(--environment-hero-scrim) 52%, color-mix(in srgb, var(--environment-hero-scrim) 65%, transparent) 72%, transparent 100%);
}
.market-page[data-market-weather] .market-weather-card {
  background: var(--environment-card-surface);
  border-color: var(--environment-card-border);
  backdrop-filter: none;
}
.market-page[data-market-weather] .market-weather-card p { color: #e0e9e1; }
.market-page[data-market-weather] .market-weather-icon { color: #e2e9db; }
.market-page[data-market-weather] .market-provenance-strip,
.market-page[data-market-weather] .market-research-disclosure { background: #153638; }
.market-page[data-market-weather] :focus-visible { outline: 3px solid #92cbd0; outline-offset: 3px; }
.market-page[data-market-weather] .market-analysis-surface :focus-visible { outline-color: #245c61; }
.market-weather-preview { margin-bottom: 1rem; padding: .7rem 1rem; border: 1px solid #8ea89a; border-radius: .6rem; background: #153638; color: #eef3ec; font-size: .75rem; }
.market-weather-preview p { margin: .25rem 0 .5rem; }
.market-weather-preview nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.market-weather-preview a { padding: .25rem .6rem; border: 1px solid #8ea89a; border-radius: .3rem; }
.market-weather-preview a[aria-current="page"] { background: #e0e9e1; color: #153638; }
@media (max-width: 720px) {
  .market-page[data-market-weather] .market-dashboard-state::before { inset-inline: -5rem; }
  .market-page[data-market-weather] .market-provenance-strip > .market-refresh-button { margin: .5rem; white-space: normal; text-align: center; }
}
.market-inner { width: min(100% - 2rem, 91rem); margin-inline: auto; padding: 2.2rem 0 3rem; }

.market-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(19rem, .65fr); gap: 2.5rem; align-items: end; min-height: 15rem; padding: 1rem 1.5rem 2.3rem; }
.market-kicker { color: #c8d2cf; font-size: .68rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; }
.market-hero h1 { margin-top: 1rem; max-width: 46rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 5.4vw, 5rem); font-weight: 400; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.market-hero-copy { margin-top: 1.2rem; max-width: 39rem; color: #d2ddd8; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.55; }
.market-hero-aside { align-self: center; }
.market-motto { margin: 0 1rem 1.1rem 0; text-align: right; color: #f2ead1; font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; line-height: 1.35; }
.market-weather-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.15rem 1.3rem; border: 1px solid rgba(190, 213, 200, .25); border-radius: 1.15rem; background: linear-gradient(135deg, rgba(54, 85, 69, .76), rgba(4, 36, 42, .84)); box-shadow: 0 18px 45px rgba(1, 15, 18, .25), inset 0 1px rgba(255, 250, 225, .08); backdrop-filter: blur(14px); }
.market-weather-icon { color: #f5d28b; font-size: 2.5rem; filter: drop-shadow(0 0 11px rgba(238, 199, 111, .28)); }
.market-weather-card small { display: block; color: #d0ddd5; font-size: .72rem; }
.market-weather-card strong { display: block; margin-top: .25rem; color: #fff4da; font-family: Georgia, "Times New Roman", serif; font-size: 1.32rem; font-weight: 400; }
.market-weather-card p { margin-top: .25rem; color: #bed0ca; font-size: .78rem; line-height: 1.5; }
.market-weather-arrow { color: #b9ccc6; font-size: 1.35rem; }
.market-hero-actions { display: flex; justify-content: flex-end; margin-top: .75rem; }

.market-glass { border: 1px solid var(--market-line); border-radius: 1.35rem; background: linear-gradient(135deg, rgba(9, 45, 43, .88), rgba(3, 28, 32, .84)); box-shadow: 0 20px 55px rgba(1, 15, 18, .28), inset 0 1px rgba(247, 240, 220, .05); backdrop-filter: blur(16px); }
.market-overview { padding: 1.8rem; }
.market-overview-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.market-overview-header p, .market-section-label { color: #bfd0cc; font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.market-history-button, .market-action-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1rem; border: 1px solid rgba(184, 208, 194, .28); border-radius: 999px; color: #edf2e9; font-size: .78rem; transition: .2s ease; }
.market-history-button:hover, .market-action-button:hover { border-color: rgba(230, 202, 134, .58); background: rgba(230, 202, 134, .1); color: #fff1c6; }
.market-refresh-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1rem; border: 1px solid rgba(230, 202, 134, .58); border-radius: 999px; background: rgba(230, 202, 134, .14); color: #fff1c6; font-size: .78rem; font-weight: 700; box-shadow: inset 0 1px rgba(255, 250, 225, .08), 0 0 22px rgba(230, 202, 134, .08); cursor: pointer; transition: .2s ease; }
.market-refresh-button:hover { border-color: rgba(247, 222, 157, .86); background: rgba(230, 202, 134, .23); color: #fff8e4; }
.market-state-grid { display: grid; grid-template-columns: minmax(18rem, 1.45fr) minmax(0, 2.4fr); gap: 2rem; align-items: center; margin-top: 1.5rem; }
.market-state-pill { display: inline-flex; padding: .65rem 1.9rem; border: 1px solid currentColor; border-radius: 999px; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: .08em; line-height: 1; box-shadow: inset 0 0 25px rgba(255, 255, 255, .05), 0 0 28px color-mix(in srgb, currentColor 18%, transparent); }
.market-tone-positive { color: var(--market-emerald); background: rgba(36, 109, 75, .18); }
.market-tone-caution { color: var(--market-gold); background: rgba(121, 96, 39, .19); }
.market-tone-danger { color: var(--market-rose); background: rgba(126, 43, 60, .2); }
.market-tone-unknown { color: #a9b9b6; background: rgba(111, 129, 127, .12); }
.market-state-copy { margin-top: 1.15rem; max-width: 34rem; color: #b5c7c4; font-size: .9rem; line-height: 1.65; }
.market-state-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.market-meta-chip { padding: .38rem .65rem; border: 1px solid rgba(184, 208, 194, .16); border-radius: 999px; background: rgba(4, 28, 31, .5); color: #d7e0dc; font-size: .68rem; text-transform: capitalize; }
.market-orb-grid { display: grid; grid-template-columns: repeat(5, minmax(5.4rem, 1fr)); gap: clamp(.55rem, 1.5vw, 1.35rem); }
.market-orb-metric { min-width: 0; text-align: center; background: transparent; }
.market-orb-metric dt { min-height: 2.25rem; color: #c5d4d0; font-size: .61rem; font-weight: 600; letter-spacing: .12em; line-height: 1.45; text-transform: uppercase; }
.market-orb { display: grid; place-items: center; width: clamp(4.6rem, 7.4vw, 6.7rem); aspect-ratio: 1; margin: .55rem auto .7rem; border: 1px solid currentColor; border-radius: 50%; background: radial-gradient(circle at 31% 22%, rgba(255,255,255,.63), transparent 15%), radial-gradient(circle at 45% 43%, color-mix(in srgb, currentColor 38%, #132a2d), #071c22 72%); box-shadow: inset 3px 4px 12px rgba(255,255,255,.15), inset -7px -8px 16px rgba(0,0,0,.42), 0 0 21px color-mix(in srgb, currentColor 32%, transparent), 0 8px 15px rgba(0,0,0,.28); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.4rem, 2.4vw, 2rem); color: inherit; }
.market-orb-metric dd:last-child { color: inherit; font-family: Georgia, "Times New Roman", serif; font-size: .85rem; }

.market-components { display: grid; grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr); gap: 1.2rem; margin-top: 1rem; padding: 1.15rem; }
.market-component-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: .9rem; }
.market-component { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: center; min-height: 7.5rem; padding: .85rem; border: 1px solid rgba(184, 208, 194, .14); border-radius: 1rem; background: rgba(7, 38, 38, .52); }
.market-component .market-orb { width: 4.5rem; margin: 0; font-size: 1.25rem; }
.market-component strong { color: #edf1e5; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.market-component p { margin-top: .35rem; color: #aebfbb; font-size: .72rem; line-height: 1.45; }
.market-takeaways { position: relative; min-height: 100%; padding: 1.15rem 1.2rem 1.15rem 5.6rem; border: 1px solid rgba(230, 202, 134, .16); border-radius: 1rem; background: rgba(5, 32, 34, .55); }
.market-nata { position: absolute; left: .8rem; top: 1rem; width: 4.3rem; height: 5.4rem; object-fit: cover; border-radius: .6rem; filter: drop-shadow(0 6px 12px rgba(0,0,0,.32)); }
.market-takeaways h3 { color: #f3e9c9; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.market-takeaways ul { margin-top: .8rem; color: #b9cbc6; font-size: .76rem; line-height: 1.55; }
.market-takeaways li + li { margin-top: .55rem; }
.market-takeaways li::marker { color: var(--market-gold); }
.market-details { margin-top: 1rem; overflow: hidden; }
.market-details summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.5rem; cursor: pointer; color: #edf1e8; font-size: .83rem; }
.market-details summary::marker { color: var(--market-gold); }
.market-details-content { padding: 0 1.5rem 1.5rem; color: #b7c9c4; }
.market-details-content h3 { color: #f2ead0; }
.market-details-content dt, .market-details-content p { color: #9fb3ae; }

.market-history { margin-top: 1rem; overflow: hidden; }
.market-history > header { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--market-line); }
.market-history h2 { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 400; }
.market-history table { color: #dbe4df; }
.market-history thead { background: rgba(4, 27, 31, .7); color: #9fb4af; }
.market-history tbody { border-color: rgba(184, 208, 194, .1); }
.market-history tr { border-color: rgba(184, 208, 194, .1); }
.market-history tbody tr:hover { background: rgba(223, 201, 135, .06); }
.market-history .market-table-muted { color: #9eb2ad; }
.market-history a { color: #edd28f; }
.market-empty { padding: 4rem 1.5rem; text-align: center; color: #afc1bc; }

.market-page-header { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.2rem; padding: .5rem 1rem 0; }
.market-page-header h1 { margin-top: .35rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
.market-page-header p:last-child { color: #b2c4bf; font-size: .8rem; }
.market-notice { margin: 0 1rem 1rem; border-color: rgba(184, 208, 194, .22) !important; background: rgba(5, 35, 36, .82) !important; color: #dce7e0 !important; }
.market-support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1rem; }
.market-support-card { padding: 1.25rem; }
.market-support-card h2 { color: #f2ead1; font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; }
.market-support-card p, .market-support-card dt { color: #9fb3ae; }
.market-support-card dd { color: #edf1e8; }
.market-support-card dl > div { border-color: rgba(184, 208, 194, .12); }

@media (max-width: 1000px) {
  .market-theme .site-header > div { flex-wrap: wrap; }
  .market-theme .site-header nav { width: 100%; flex-wrap: wrap; }
  .market-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2rem; }
  .market-hero-aside { width: min(100%, 32rem); }
  .market-motto { text-align: left; }
  .market-state-grid, .market-components { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .market-inner { width: min(100% - 1rem, 91rem); padding-top: 1rem; }
  .market-hero { gap: 1.5rem; padding: 1rem .75rem 1.5rem; }
  .market-hero h1 { font-size: 2.75rem; }
  .market-overview { padding: 1rem; }
  .market-overview-header { align-items: flex-start; flex-direction: column; }
  .market-hero-actions { justify-content: flex-start; }
  .market-state-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .market-orb-grid { grid-template-columns: repeat(2, 1fr); }
  .market-orb-grid .market-orb-metric:first-child { grid-column: 1 / -1; }
  .market-component-list { grid-template-columns: 1fr; }
  .market-components { padding: .85rem; }
  .market-support-grid { grid-template-columns: 1fr; }
  .market-page-header { align-items: flex-start; flex-direction: column; }
  .market-motto { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .market-theme *, .market-theme *::before, .market-theme *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Market Timing index: analytical surface above the atmospheric shell. */
.market-theme { --market-cream: #f8f5ec; --market-cream-line: #d9ded6; --market-dark-text: #10343a; --market-light-muted: #657771; --market-positive: #2f906c; --market-caution: #ae8330; --market-danger: #bd5d56; }
.market-inner { width: min(100% - 2rem, 83rem); padding-top: 1.15rem; }
.market-dashboard-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(18rem, .75fr); align-items: center; gap: 2rem; padding: .35rem .7rem 1.05rem; }
.market-dashboard-state h1 { margin: .35rem 0 0; color: #fffaf0; font: 400 clamp(3rem, 5vw, 4.45rem)/1 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.market-page[data-market-weather] .market-dashboard-state--unavailable h1 { max-width: 30ch; font-size: clamp(1.55rem, 2.8vw, 2.25rem); line-height: 1.16; letter-spacing: -.025em; text-wrap: balance; }
.market-page[data-market-weather] .market-assessment-limitation { max-width: 70ch; margin-top: .55rem; color: #dbe5df; font-size: clamp(.8rem, 1.1vw, .95rem); font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.market-page[data-market-weather] .market-assessment-unavailable { padding: 1rem 1.25rem; text-align: left; }
.market-page[data-market-weather] .market-assessment-unavailable h2 { color: var(--market-dark-text); font-size: .95rem; font-weight: 600; }
.market-page[data-market-weather] .market-assessment-unavailable p { margin-top: .3rem; font-size: .8rem; line-height: 1.5; }
.market-direction { margin-top: .25rem; font-size: clamp(1.1rem, 1.9vw, 1.55rem); font-weight: 600; }
.market-direction.market-tone-positive { color: #b7e8cf; background: none; }
.market-direction.market-tone-danger { color: #f0b8b3; background: none; }
.market-direction.market-tone-caution, .market-direction.market-tone-unknown { color: #e8d8a9; background: none; }
.market-direction-separator, .market-posture { color: #e9eee5; }
.market-status-pills { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.market-status-pill { display: inline-flex; padding: .33rem .72rem; border: 1px solid currentColor; border-radius: 999px; font-size: .73rem; font-weight: 600; background: rgba(3, 32, 32, .42); }
.market-dashboard-hero .market-weather-card { min-height: 6.5rem; padding: 1rem 1.15rem; border-radius: .85rem; box-shadow: none; }
.market-dashboard-hero .market-weather-icon { font-size: 2rem; filter: none; }
.market-dashboard-hero .market-weather-card strong { font-size: 1.15rem; }
.market-dashboard-hero .market-weather-card p { margin-top: .2rem; }
.market-provenance-strip { display: grid; grid-template-columns: 1.15fr 1.35fr .9fr .65fr auto; align-items: center; gap: 0; min-height: 4rem; margin-bottom: .65rem; border: 1px solid rgba(190, 213, 200, .29); border-radius: .65rem; background: rgba(5, 35, 37, .83); }
.market-provenance-strip > div { min-width: 0; padding: .65rem 1rem; border-right: 1px solid rgba(184, 208, 194, .16); }
.market-provenance-strip > div span { display: block; color: #a9beb8; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.market-provenance-strip > div strong { display: block; margin-top: .2rem; overflow-wrap: anywhere; color: #f1eee0; font-size: .77rem; font-weight: 600; }
.market-provenance-strip > div strong.market-tone-positive { color: #a8d9bc; background: none; }
.market-provenance-strip > div strong.market-tone-caution { color: #e2c990; background: none; }
.market-provenance-strip > div strong.market-tone-danger { color: #e5a5a0; background: none; }
.market-refresh-form { padding: .45rem .65rem; }
.market-provenance-strip .market-refresh-button { white-space: nowrap; box-shadow: none; }
.market-admin-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .65rem; padding: .55rem .6rem .55rem 1rem; border: 1px solid rgba(230, 202, 134, .5); border-radius: .65rem; background: rgba(5, 35, 37, .83); color: #f1eee0; font-size: .8rem; }
.market-analysis-surface, .market-measurement { border: 1px solid var(--market-cream-line); border-radius: .65rem; background: var(--market-cream); color: var(--market-dark-text); box-shadow: 0 8px 24px rgba(2, 18, 20, .12); }
.market-saved-banner .market-action-button { margin-top: .55rem; border-color: #74978d; color: #183f3a; font-weight: 700; }
.market-saved-banner .market-action-button:hover { background: #e6eee8; color: #133b35; }
.market-analysis-surface .market-section-label { color: #647973; }
.market-chart-panel { padding: .9rem 1rem .7rem; }
.market-chart-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.market-chart-header h2 { margin-top: .1rem; font: 700 1.4rem/1.15 Georgia, "Times New Roman", serif; }
.market-chart-header h2 small { color: #60766f; font: 500 .75rem/1.2 system-ui, sans-serif; }
.market-chart-header nav { display: flex; gap: .18rem; padding: .2rem; border-radius: .4rem; background: #eaece5; }
.market-chart-header nav a { min-width: 2.45rem; padding: .32rem .5rem; border-radius: .3rem; color: #34534e; font-size: .7rem; font-weight: 700; text-align: center; }
.market-chart-header nav a[aria-current="page"] { background: #173e3d; color: #fff8e9; }
.market-chart-quote { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .35rem; color: #58716b; font-size: .7rem; font-variant-numeric: tabular-nums; }
.market-chart-scroll { overflow-x: auto; }
.market-candlesticks { display: block; width: 100%; min-width: 640px; height: auto; max-height: 290px; }
.market-chart-grid { stroke: #dde3dc; stroke-width: 1; }
.market-chart-axis, .market-chart-date { fill: #697d77; font: 11px system-ui, sans-serif; }
.market-candlesticks g[data-rising="true"] .market-chart-body, .market-candlesticks g[data-rising="true"] .market-chart-wick { fill: #2f906c; stroke: #2f906c; }
.market-candlesticks g[data-rising="false"] .market-chart-body, .market-candlesticks g[data-rising="false"] .market-chart-wick { fill: #c65c56; stroke: #c65c56; }
.market-candlesticks .market-chart-volume { opacity: .25; stroke: none !important; }
.market-chart-marker-line { stroke: #418f74; stroke-width: 1; stroke-dasharray: 4 3; }
.market-chart-marker { fill: #2a8068; }
.market-chart-marker-text { fill: white; font: 10px system-ui, sans-serif; }
.market-chart-source { margin-top: .15rem; color: #70827d; font-size: .65rem; }
.market-chart-empty { display: grid; min-height: 13rem; place-items: center; color: #657771; font-size: .85rem; }
.market-measurements { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; margin-top: .55rem; }
.market-measurement { min-width: 0; padding: .85rem .9rem .75rem; }
.market-measurement dt { min-height: 2rem; color: #405c59; font-size: .63rem; font-weight: 800; letter-spacing: .09em; line-height: 1.4; text-transform: uppercase; }
.market-measurement-value { color: var(--market-dark-text); font-size: clamp(1.8rem, 2.9vw, 2.55rem); font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.market-measurement-description { min-height: 1.4rem; margin-top: .2rem; color: var(--market-accent); font-size: .76rem; font-weight: 700; }
.market-gauge { height: .34rem; overflow: hidden; margin-top: .4rem; border-radius: 999px; background: #d5d9d5; }
.market-gauge span { display: block; height: 100%; border-radius: inherit; background: var(--market-accent); }
.market-accent-positive { --market-accent: var(--market-positive); }
.market-accent-caution { --market-accent: var(--market-caution); }
.market-accent-danger { --market-accent: var(--market-danger); }
.market-accent-unknown { --market-accent: #82938e; }
.market-component-row { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(18rem, .95fr); gap: .5rem; margin-top: .55rem; }
.market-component-panel { padding: .85rem; }
.market-component-panel .market-component-list { margin-top: .55rem; gap: .45rem; }
.market-component-panel .market-component { display: flex; min-height: 5.5rem; gap: .65rem; padding: .65rem; border-color: #d9ded6; border-radius: .5rem; background: #faf9f3; }
.market-component-dot { flex: none; width: .75rem; height: .75rem; border-radius: 50%; background: var(--market-accent); }
.market-component-panel .market-component h3 { color: #304e4b; font-size: .63rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.market-component-panel .market-component strong { display: block; margin-top: .1rem; color: var(--market-accent); font-size: .8rem; letter-spacing: 0; text-transform: none; }
.market-component-panel .market-component p { margin-top: .1rem; color: #607570; font-size: .68rem; }
.market-nata-read { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem; }
.market-nata-read .market-nata { position: static; flex: none; width: 3rem; height: 3.5rem; border-radius: .4rem; filter: none; }
.market-nata-read p { margin-top: .35rem; color: #35534f; font-size: .75rem; line-height: 1.38; }
.market-research { margin-top: .55rem; }
.market-research-disclosure { border: 1px solid rgba(184, 208, 194, .24); border-radius: .6rem; background: rgba(5, 35, 37, .79); }
.market-research-disclosure > summary { padding: .75rem 1rem; cursor: pointer; color: #f2eee1; font-size: .8rem; font-weight: 700; }
.market-research-disclosure > summary span { margin-left: .7rem; color: #a9bbb5; font-size: .7rem; font-weight: 400; }
.market-research-content { padding: 0 .75rem .75rem; }
.market-research-content > .market-glass { margin: .5rem 0; }
.market-research-content .market-details { margin-top: .5rem; }
.market-history.market-analysis-surface { margin-top: .55rem; overflow: hidden; }
.market-history.market-analysis-surface > header { align-items: center; padding: .65rem .9rem; border-color: var(--market-cream-line); }
.market-history.market-analysis-surface > header > div { display: flex; gap: .4rem; }
.market-history.market-analysis-surface h2 { color: var(--market-dark-text); font: 800 .78rem/1.2 system-ui, sans-serif; letter-spacing: .11em; text-transform: uppercase; }
.market-history.market-analysis-surface .market-history-button { padding: .4rem .7rem; border-color: #c6d0c8; color: #244842; font-size: .7rem; }
.market-history-filters { display: flex; gap: .3rem; padding: .45rem .8rem; }
.market-history-filters a { padding: .25rem .5rem; border-radius: .3rem; color: #6a7b74; font-size: .68rem; }
.market-history-filters a[aria-current="page"] { background: #e1e8e0; color: #173e3d; font-weight: 700; }
.market-history-scroll { overflow-x: auto; }
.market-history.market-analysis-surface table { width: 100%; min-width: 780px; color: var(--market-dark-text); font-size: .71rem; }
.market-history.market-analysis-surface th { padding: .45rem .65rem; background: #edf0e9; color: #536862; font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.market-history.market-analysis-surface td { padding: .45rem .65rem; border-top: 1px solid #e2e5dd; white-space: nowrap; }
.market-history.market-analysis-surface a { color: #275c51; }
.market-table-chip { display: inline-block; padding: .2rem .45rem; border-radius: 999px; background: color-mix(in srgb, var(--market-accent) 15%, white); color: var(--market-accent); font-size: .64rem; font-weight: 700; }
.market-history.market-analysis-surface .market-empty { color: #607570; }
@media (max-width: 1080px) {
  .market-provenance-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-provenance-strip > div { border-bottom: 1px solid rgba(184, 208, 194, .16); }
  .market-provenance-strip .market-refresh-form { grid-column: 1 / -1; }
  .market-measurements { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .market-component-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .market-inner { width: min(100% - 1rem, 83rem); }
  .market-dashboard-hero { grid-template-columns: 1fr; gap: .9rem; padding: .3rem .35rem .9rem; }
  .market-dashboard-state h1 { font-size: 3.15rem; }
  .market-dashboard-hero .market-weather-card { min-height: 0; }
  .market-provenance-strip { grid-template-columns: 1fr; }
  .market-provenance-strip > div { padding: .55rem .75rem; border-right: 0; }
  .market-measurements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-measurement dt { min-height: 1.6rem; }
  .market-component-panel .market-component-list { grid-template-columns: 1fr; }
  .market-component-panel .market-component { min-height: 3.5rem; }
  .market-history.market-analysis-surface > header { align-items: flex-start; flex-direction: column; }
  .market-research-disclosure > summary span { display: block; margin: .25rem 0 0; }
}

/* Restored Market baseline. Keep the newer assessment selection and weather labels. */
.market-restored .site-header > div { max-width: 74rem; padding: .45rem .75rem; gap: .55rem; }
.market-restored .site-header .site-brand-avatar { width: 2.2rem; height: 2.2rem; }
.market-restored .site-header .site-brand-name { font-size: .95rem; }
.market-restored .site-header .site-brand-guide { font-size: .65rem; }
.market-restored .site-header form[data-controller="stock-search"] { order: 0; margin-left: auto; width: 16rem; flex: 0 1 16rem; }
.market-restored .site-header form input { font-size: .72rem; padding-block: .45rem; }
.market-restored .site-header nav { font-size: .72rem; gap: .1rem; }
.market-restored .site-header nav a, .market-restored .site-header nav button { padding: .45rem .6rem; }
.market-restored .market-page { isolation: isolate; }
.market-restored .market-page .market-dashboard-state::before { content: none; }
.market-restored .market-inner { width: min(100% - 2rem, 72rem); padding: 1.2rem 0 2rem; }
.market-restored .market-dashboard-hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); min-height: 10.5rem; gap: 2rem; padding: 0 .7rem 1rem; }
.market-restored .market-kicker { font-size: .64rem; letter-spacing: .2em; }
.market-restored .market-dashboard-state h1 { font-size: clamp(2.75rem, 4.7vw, 4.3rem); margin: .45rem 0 .1rem; line-height: 1; }
.market-restored .market-state-context { display: block; margin-bottom: .25rem; font: 500 .72rem/1.2 system-ui, sans-serif; letter-spacing: .02em; color: #bfd0ca; }
.market-restored .market-page .market-dashboard-state--unavailable h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 22ch; }
.market-restored .market-direction { font: 400 1.65rem/1.15 Georgia, "Times New Roman", serif; }
.market-restored .market-status-pills { margin-top: .65rem; gap: .7rem; }
.market-restored .market-status-pill { min-width: 7.2rem; justify-content: center; padding: .32rem .8rem; font-size: .7rem; }
.market-restored .market-page .market-weather-card { grid-template-columns: auto 1fr; min-height: 6rem; padding: 1rem 1.2rem; border-color: rgba(172, 207, 189, .26); background: linear-gradient(120deg, rgba(37, 74, 64, .65), rgba(3, 34, 39, .86)); border-radius: .8rem; }
.market-restored .market-weather-card strong { font: 400 1.25rem/1.3 Georgia, serif; }
.market-restored .market-page .market-weather-card p { color: #c4d2ce; font-size: .72rem; }
.market-restored .market-page .market-weather-icon { font-size: 2rem; color: #ead297; }
.market-restored .market-provenance-strip { grid-template-columns: 1.1fr 1.35fr .9fr .7fr auto; min-height: 3.4rem; margin-bottom: .55rem; border-radius: .5rem; }
.market-restored .market-page .market-provenance-strip { background: rgba(4, 37, 40, .88); }
.market-restored .market-provenance-strip > div { padding: .4rem .9rem; border-bottom: 0; }
.market-restored .market-provenance-strip > div span { text-transform: none; letter-spacing: .02em; font-weight: 400; font-size: .65rem; }
.market-restored .market-provenance-strip > div strong { font-size: .72rem; line-height: 1.4; }
.market-restored .market-provenance-strip small { color: #b7cbc5; font-size: .65rem; }
.market-restored .market-provenance-strip > .market-refresh-button { justify-self: end; margin: .4rem .65rem .4rem .25rem; font-size: .68rem; padding: .5rem .75rem; }
.market-restored .market-chart-panel { padding: .75rem .9rem .5rem; }
.market-restored .market-chart-header .market-section-label { display: none; }
.market-restored .market-chart-header h2 { font-size: 1.35rem; }
.market-restored .market-chart-header nav a { min-width: 2.3rem; font-size: .65rem; }
.market-restored .market-chart-quote { font-size: .67rem; gap: .6rem; }
.market-restored .market-candlesticks { max-height: 215px; }
.market-restored .market-chart-source { font-size: .6rem; line-height: 1.35; }
.market-restored .market-candlesticks g[data-rising="true"] .market-chart-volume { fill: var(--market-positive); }
.market-restored .market-candlesticks g[data-rising="false"] .market-chart-volume { fill: var(--market-danger); }
.market-restored .market-measurements { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.market-restored .market-measurement { display: grid; grid-template-columns: auto 1fr; gap: 0 .6rem; padding: 1rem 1rem .85rem; min-height: 7.2rem; }
.market-restored .market-measurement dt { grid-column: 1 / -1; min-height: 1.5rem; font-size: .6rem; letter-spacing: .07em; }
.market-restored .market-measurement dt small { display: none; }
.market-restored .market-measurement-value { grid-row: 2; font-size: 2.45rem; font-weight: 500; letter-spacing: -.055em; }
.market-restored .market-measurement-value small { font-size: .6rem; letter-spacing: 0; color: #698078; margin-left: .15rem; }
.market-restored .market-measurement-description { grid-column: 1 / -1; grid-row: 3; font: 600 .8rem/1.3 Georgia, serif; }
.market-restored .market-gauge { grid-column: 2; grid-row: 2; align-self: center; height: .45rem; margin: 0; }
.market-restored .market-component-row { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: .45rem; }
.market-restored .market-component-panel { padding: .65rem; }
.market-restored .market-section-label { font-size: .6rem; letter-spacing: .13em; }
.market-restored .market-component-panel .market-component-list { gap: .4rem; margin-top: .5rem; }
.market-restored .market-component-panel .market-component { min-height: 4.8rem; padding: .6rem; gap: .65rem; background: #f4f3e9; }
.market-restored .market-component-dot { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; background: color-mix(in srgb, var(--market-accent) 22%, #fbf5d9); color: var(--market-accent); font: 500 1rem Georgia, serif; }
.market-restored .market-component-panel .market-component h3 { font-size: .6rem; }
.market-restored .market-component-panel .market-component strong { font-size: .7rem; }
.market-restored .market-component-panel .market-component p { font-size: .62rem; line-height: 1.3; }
.market-restored .market-nata-read { padding: .9rem .8rem; gap: .75rem; }
.market-restored .market-nata-read .market-nata { width: 3.9rem; height: 4.5rem; }
.market-restored .market-nata-read p { font-size: .7rem; line-height: 1.4; margin-top: .3rem; }
.market-restored .market-research-disclosure > summary { padding: .5rem .85rem; font-size: .7rem; }
.market-restored .market-research-disclosure > summary span { font-size: .63rem; }
.market-restored .market-provenance-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-block: .75rem; }
.market-restored .market-provenance-details dt { color: #a9c2b9; }
.market-restored .market-research-content { font-size: .8rem; line-height: 1.6; }
.market-restored .market-history.market-analysis-surface h2 { font-size: .65rem; }
.market-restored .market-history.market-analysis-surface table { font-size: .65rem; }
.market-restored .market-history.market-analysis-surface th { font-size: .55rem; letter-spacing: .02em; }
.market-restored .market-history.market-analysis-surface td { padding-block: .4rem; }
.market-restored .market-history-filters { padding-block: .2rem; }
@media (max-width: 1100px) {
  .market-restored .site-header > div { flex-wrap: wrap; }
  .market-restored .site-header nav { width: 100%; }
  .market-restored .market-provenance-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .market-restored .market-provenance-strip > .market-refresh-button { grid-column: 1 / -1; }
  .market-restored .market-component-row { grid-template-columns: 1fr; }
  .market-restored .market-measurements { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .market-restored .market-dashboard-hero { grid-template-columns: 1fr; gap: 1rem; }
  .market-restored .market-direction { font-size: 1.3rem; }
  .market-restored .market-provenance-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-restored .market-provenance-strip > div { padding: .65rem; }
  .market-restored .market-measurements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-restored .market-component-panel .market-component-list { grid-template-columns: 1fr; }
  .market-restored .market-component-panel .market-component p, .market-restored .market-chart-source { font-size: .7rem; }
  .market-restored .market-provenance-details { grid-template-columns: 1fr; }
}
