/* Market View: a chronological research feed within the approved Commentary shell. */
.commentary-market main.market-main { max-width: none; padding: 1.8rem clamp(1rem, 3.5vw, 4rem) 3rem; }
.market-workspace { max-width: 1640px; margin: 0 auto; min-width: 0; }
.market-eyebrow { margin: 0 0 .35rem; color: #75e8e1; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.market-heading { margin-bottom: 1.15rem; }
.market-heading h1 { margin: 0; color: #f7f9fc; font-size: clamp(2rem, 2.5vw, 2.9rem); line-height: 1.12; }
.market-lede { margin: .35rem 0 0; color: #dbeaf0; font-family: Archivo, sans-serif; font-size: 1.12rem; font-weight: 600; }
.market-intro { margin: .5rem 0 0; max-width: 76ch; color: #afc2d0; font-size: .87rem; line-height: 1.5; }

.market-filters { margin-bottom: .95rem; padding: .85rem 1rem; border: 1px solid var(--mc-border-strong); border-radius: 12px; background: rgba(17, 40, 58, .94); box-shadow: 0 15px 36px rgba(0, 8, 16, .2), inset 0 1px rgba(122, 242, 234, .06); }
.market-filters-heading { display: flex; align-items: baseline; gap: .7rem; margin-bottom: .6rem; }
.market-filters-heading h2 { margin: 0; color: #e8f4f8; font-size: .91rem; }
.market-filters-heading span { color: #9fb7c5; font-size: .74rem; }
.market-filter-form.search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem .9rem; align-items: end; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.market-filter-form .field-row { min-width: 0; }
.market-filter-form > .field-row:first-child { grid-column: 1; grid-row: 1; }
.market-filter-form .radio-row { gap: .35rem; }
.market-filter-form .radio-row label { position: relative; min-height: 37px; padding: .38rem .7rem; border: 1px solid var(--mc-border); border-radius: 7px; background: var(--mc-surface-muted); color: #dbe7ec; font-size: .75rem; }
.market-filter-form .radio-row label:has(input:checked) { border-color: #51ddd5; background: #0b343c; color: #8df9ef; font-weight: 700; }
.market-filter-form .radio-row input { width: auto; margin: 0; accent-color: #59ded5; }
.market-filter-form .custom-range { display: none; grid-column: 1 / -1; grid-row: 2; }
.market-filter-form:has(input[name="window"][value="custom"]:checked) .custom-range { display: flex; }
.market-filter-form .date-row { max-width: 32rem; }
.market-filter-form .home-source-disclosure { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.market-filter-form:has(input[name="window"][value="custom"]:checked) .home-source-disclosure { grid-row: 3; }
.market-filter-form .home-source-disclosure > summary { padding: .4rem .7rem; }
.market-filter-form .channel-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem .9rem; min-width: 0; padding: .6rem .85rem; border-color: var(--mc-border); background: var(--mc-surface-muted); }
.market-filter-form .channel-picker legend { color: #cbd9e5; }
.market-filter-form .channel-picker .picker-global { grid-column: 1 / -1; margin-bottom: .1rem; }
.market-filter-form .channel-picker .cat-group { margin: 0; border: 0; min-width: 0; }
.market-filter-form .channel-picker .cat-group[open] { grid-column: 1 / -1; }
.market-filter-form .channel-picker .cat-group:not([open]) .group-toggles { display: none; }
.market-filter-form .chip-check { background: var(--mc-surface-inner); text-transform: none; letter-spacing: 0; font-weight: 400; }
.market-filter-form .market-filter-action { grid-column: 2; grid-row: 1; }
.market-filter-form .btn-primary { min-height: 40px; padding: .55rem 1.1rem; white-space: nowrap; font-size: .86rem; font-weight: 700; background: #61e5dc; color: #061e2b; border-color: #82f4eb; border-radius: 8px; }
.market-filter-form .btn-primary:hover, .market-filter-form .btn-primary:focus-visible { background: #8af9f0; border-color: #a5fff8; color: #061e2b; }
.market-filter-form .scanning { grid-column: 1 / -1; background: var(--mc-surface-inner); }

.market-scope { display: grid; grid-template-columns: minmax(190px, .95fr) minmax(0, 1.65fr) minmax(110px, .4fr); margin-bottom: .6rem; border: 1px solid #2c5463; border-radius: 10px; background: rgba(17, 40, 58, .88); overflow: hidden; }
.market-scope > div { display: flex; flex-direction: column; gap: .2rem; min-width: 0; padding: .7rem .95rem; }
.market-scope > div + div { border-left: 1px solid #2a4b5c; }
.market-scope-label { color: #92b7c1; text-transform: uppercase; letter-spacing: .11em; font-size: .61rem; font-weight: 700; }
.market-scope strong { color: #e9f4f7; font-size: .82rem; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.market-notice { margin: 0 0 .6rem; border-left: 2px solid #68e4dc; background: var(--mc-surface-inner); color: #d1e3e9; padding: .55rem .75rem; font-size: .79rem; line-height: 1.4; }
.market-limit { border: 1px solid #477e89; border-left: 3px solid #74ded8; border-radius: 8px; }

.market-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: center; margin: .75rem 0 1.1rem; padding: .75rem 1rem; border: 1px solid #294b59; border-radius: 9px; background: rgba(17, 40, 58, .78); }
.market-guide h2 { margin: 0 0 .3rem; color: #88e7e1; font-size: .7rem; text-transform: uppercase; letter-spacing: .11em; }
.market-guide p { margin: 0; color: #b7cbd4; font-size: .76rem; line-height: 1.45; }
.market-guide a { color: #8cf2e9; font-weight: 600; }

.market-feed-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 0 0 .65rem; }
.market-feed-heading h2 { margin: 0; color: #edf7fa; font-size: 1.1rem; }
.market-feed-heading > p { margin: 0; color: #9dbbc6; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.market-feed-list { border: 1px solid #2c5260; border-radius: 12px; background: rgba(23, 49, 67, .9); overflow: hidden; }
.market-item { display: grid; grid-template-columns: clamp(180px, 19%, 270px) minmax(0, 1fr); min-width: 0; border-bottom: 1px solid #294957; }
.market-item:last-child { border-bottom: 0; }
.market-item:hover, .market-item:focus-within { background: var(--mc-row-hover); }
.market-item-meta { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; padding: 1.05rem 1.1rem; border-right: 1px solid #294957; min-width: 0; }
.market-source { color: #8ef1e9; font-size: .83rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.market-date { color: #a9c2cd; font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.market-item-content { min-width: 0; padding: 1rem 1.2rem 1.05rem; }
.market-item h3 { margin: 0 0 .75rem; color: #f0f7f9; font-size: clamp(.98rem, 1vw, 1.1rem); line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.market-item h3 a { color: inherit; text-decoration: none; }
.market-item h3 a:hover, .market-item h3 a:focus-visible { color: #a8fff5; text-decoration: underline; }
.market-item-bottom { display: flex; justify-content: space-between; align-items: end; gap: .8rem 1.2rem; min-width: 0; }
.market-matches { min-width: 0; }
.market-matches-label { display: block; margin-bottom: .43rem; color: #94aebc; font-size: .62rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.market-chips { display: flex; flex-wrap: wrap; gap: .38rem; }
.market-chip.chip { min-height: 35px; padding: .25rem .45rem; gap: .4rem; border-color: #356272; border-radius: 6px; background: var(--mc-surface-inner); font-size: .76rem; white-space: nowrap; }
.market-chip .sym-badge { padding: 0; border: 0; background: none; color: #e8f7f9; font-size: .96em; }
.market-chip .count { padding-left: .42rem; border-left: 1px solid #416c77; color: #9fd9d6; font-size: .74rem; }
.market-chip:hover, .market-chip:focus-visible { border-color: #65e5dc; background: #123a43; transform: none; }
.market-no-matches { color: #a7bec9; font-size: .79rem; line-height: 1.45; }
.market-video-link { flex: none; color: #8debe5; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.market-video-link:hover, .market-video-link:focus-visible { color: #b2fff8; }
.market-video-link span { margin-left: .2rem; }
.market-empty { text-align: left; padding: 1.5rem; background: rgba(23, 49, 67, .9); }

.market-trust { max-width: 100%; margin-top: 1.3rem; }
.market-ticker { margin-top: 1.35rem; border-top: 1px solid #274e5c; padding-top: 1rem; }
.market-ticker .ticker { background: rgba(17, 40, 58, .68); border-color: #284758; opacity: .9; }
:where(.commentary-market) a:focus-visible, :where(.commentary-market) button:focus-visible, :where(.commentary-market) summary:focus-visible, :where(.commentary-market) input:focus-visible { outline: 2px solid #9cfbf1; outline-offset: 3px; }

@media (max-width: 850px) {
  .market-filter-form .channel-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-guide { grid-template-columns: 1fr; gap: .5rem; }
  .market-item { grid-template-columns: minmax(145px, 25%) minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .commentary-market main.market-main { padding: 1.35rem 1rem 2rem; }
  .market-heading { margin-bottom: 1rem; }
  .market-heading h1 { font-size: 2.1rem; }
  .market-lede { font-size: 1rem; }
  .market-filters { padding: .8rem; }
  .market-filters-heading span { display: none; }
  .market-filter-form.search-form { grid-template-columns: minmax(0, 1fr); }
  .market-filter-form > .field-row:first-child { grid-column: 1; }
  .market-filter-form .market-filter-action { grid-column: 1; grid-row: 4; }
  .market-filter-form .btn-primary { width: 100%; }
  .market-filter-form .home-source-disclosure { grid-row: 3; }
  .market-filter-form .channel-picker { grid-template-columns: minmax(0, 1fr); }
  .market-filter-form .date-row { flex-wrap: wrap; }
  .market-filter-form .date-row input { min-width: 0; }
  .market-scope { grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); }
  .market-scope > div { padding: .7rem .75rem; }
  .market-scope > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; border-left: 0; border-top: 1px solid #2a4b5c; }
  .market-scope > div:nth-child(3) { grid-column: 2; grid-row: 1; }
  .market-feed-heading { align-items: start; }
  .market-feed-heading > p { text-align: right; }
  .market-item { display: block; }
  .market-item-meta { flex-direction: row; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .85rem .9rem .25rem; border-right: 0; }
  .market-source { min-width: 0; }
  .market-date { flex: none; font-size: .66rem; }
  .market-item-content { padding: .3rem .9rem .9rem; }
  .market-item h3 { font-size: 1rem; }
  .market-item-bottom { align-items: start; flex-direction: column; }
  .market-video-link { padding: .2rem 0; }
  .market-trust { padding-left: 0; padding-right: 0; }
}
