/*
 * The sub-cent data page (cleanup, November 6, 2026). This sheet loads after the companion sheet, on the data page
 * only, so the other companion pages do not change. It sets a smaller title, the scope and bulk downloads at the top,
 * the controls of both explorers, the download lists and the disclosures.
 */

/* Elements that a script hides must stay hidden, also where a rule sets their display. */
.notes-page .data-page [hidden] { display: none !important; }

/* Title and top of the page */
.notes-page .data-page h1 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); max-width: 32ch; margin-bottom: .75rem; }
.notes-page .dp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, 27rem); gap: 1.25rem 3rem; align-items: start; margin: 0 0 .75rem; }
.notes-page .dp-intro > * { max-width: 44rem; }
.notes-page .data-page .note-deck { font-size: 1.125rem; margin: 0 0 1.25rem; }
.notes-page .dp-facts { display: grid; grid-template-columns: repeat(3, max-content); gap: .5rem 2.5rem; margin: 0 0 1rem; }
.notes-page .dp-facts dt { color: var(--muted); font-size: .875rem; }
.notes-page .dp-facts dd { margin: .1rem 0 0; font: 600 1.5rem/1.2 Chivo, Arial, sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }
.notes-page .data-page .note-byline { margin: 0; }
.notes-page .dp-bulk { padding: 1rem 1.25rem; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.notes-page .dp-bulk h2 { font-size: 1.125rem; margin: 0 0 .25rem; padding: 0; border: 0; }
.notes-page .dp-note { margin: 0 0 .5rem; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.notes-page .dp-bulk .dp-note:last-child { margin: .6rem 0 0; }
.notes-page .dp-files { list-style: none; margin: 0; padding: 0; }
.notes-page .data-page .note-body .dp-files { margin: 0; padding: 0; }
.notes-page .dp-files li { padding: .5rem 0; border-top: 1px solid var(--line); line-height: 1.45; }
.notes-page .data-page .dp-files li + li { margin-top: 0; }
.notes-page .dp-files a { font-weight: 600; }
.notes-page .dp-meta { display: block; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.notes-page .dp-desc { display: block; }
/* At desktop width each bulk file takes one line: its name on the left, its size on the right. */
@media (min-width: 861px) {
  .notes-page .dp-bulk .dp-files li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 1rem; }
  .notes-page .dp-bulk .dp-meta { text-align: right; }
}

/* Links to the parts of the page */
.notes-page .dp-jump { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: .25rem 0 0; border-bottom: 1px solid var(--line); }
.notes-page .dp-jump a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Sections sit closer together than on a reading page. */
.notes-page .data-page .note-body h2 { margin-top: 2.25rem; padding-top: 1.75rem; }
.notes-page .data-page .note-body > h2:first-child { margin-top: 1.5rem; padding-top: 0; border-top: 0; }

/* Lower download lists: three columns at desktop width, one on a phone. */
.notes-page .dp-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem 2rem; margin: 1rem 0 1.25rem; }
.notes-page .data-page .dp-downloads h3 { font-size: 1.0625rem; margin: 0 0 .5rem; }
.notes-page .dp-downloads .dp-meta { display: inline-block; margin-left: .4rem; white-space: nowrap; }

/* Disclosures: a visible marker. The companion sheet makes summaries flex boxes, and those lose the browser's marker. */
.notes-page .data-page details > summary { list-style: none; gap: .65rem; }
.notes-page .data-page details > summary::-webkit-details-marker { display: none; }
.notes-page .data-page details > summary::before { content: ""; flex: none; width: .45rem; height: .45rem; margin: 0 .2rem 0 .1rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.notes-page .data-page details[open] > summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .notes-page .data-page details > summary::before { transition: none; } }
.notes-page .data-page .dp-about, .notes-page .data-page .dp-archive { margin: 0; border-top: 1px solid var(--line); }
.notes-page .data-page .dp-about:last-of-type { border-bottom: 1px solid var(--line); }
.notes-page .data-page .dp-archive { margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.notes-page .data-page .dp-about > ul, .notes-page .data-page .dp-archive > p { margin: 0 0 1rem; }
.notes-page .dp-credit { margin-top: 1.25rem; color: var(--muted); font-size: .9375rem; }

/* Selects: no native arrow. One chevron sits .9rem inside the right edge, the same inset as the text on the left,
   and the text stops 2.5rem from the right, so a long label never reaches the chevron. */
.notes-page .data-page select, .notes-page #data-explorer select {
  -webkit-appearance: none; appearance: none; max-width: 100%; padding: 0 2.5rem 0 .9rem;
  background: #0b0b0b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23f2f2f2' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .9rem center / 12px 8px;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer; }
.notes-page .data-page select option { background: #0b0b0b; color: var(--ink); }
@media (forced-colors: active) { .notes-page .data-page select, .notes-page #data-explorer select { -webkit-appearance: auto; appearance: auto; padding-right: .9rem; background-image: none; } }

/* Trade explorer: the search and the day choice side by side, then the scope of what shows. */
.notes-page .tx-controls { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem 2rem; align-items: start; padding: 1rem 1.25rem; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.notes-page .tx-controls .tx-search, .notes-page .tx-controls .tx-browse { max-width: none; margin: 0; }
.notes-page .tx-status:empty { min-height: 0; margin: .5rem 0; }
.notes-page .tx-scope { margin: 1.25rem 0 .75rem; font-size: 1.0625rem; line-height: 1.5; max-width: 60rem; }
.notes-page .tx-scope strong { color: var(--ink); font-weight: 600; }
.notes-page .tx-active { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .75rem; }
.notes-page .tx-active-label { color: var(--muted); font-size: .9375rem; }
.notes-page .tx .tx-chip { display: inline-flex; align-items: center; gap: .6rem; max-width: 100%; border-color: var(--purple-text); background: var(--purple-soft); text-align: left; }
.notes-page .tx .tx-chip:hover:not(:disabled) { background: #2d2049; }
.notes-page .tx-chip-x { font-size: 1.25rem; line-height: 1; }
.notes-page .tx-filters { margin-top: 0; }
.notes-page .tx-dl-note { flex-basis: 100%; margin: 0; color: var(--muted); font-size: .9375rem; }
.notes-page .tx-empty { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.notes-page .tx-empty p { margin: 0; }
.notes-page .tx-result-type { color: var(--purple-text); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.notes-page .data-page .tx-results { max-width: none; }
.notes-page .tx-entity { margin-top: .5rem; }
.notes-page .tx-summary dl > .tx-fact-wide { grid-column: span 2; }
.notes-page .tx-entity-title { scroll-margin-top: 1rem; }
.notes-page .tx-entity-title:focus { outline: none; }
.notes-page .tx-entity-title:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.notes-page .tx-entity-event { margin: 0 0 .5rem; }

/* Totals explorer: the core filters in columns, the rest in "More filters", one reset. */
.notes-page #data-explorer .dx-core { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 1rem; align-items: start; }
/* Each filter group is a panel. Its legend floats, so it sits inside the panel as a heading, with the same inset as the
   options below it, and never across the top border. */
.notes-page #data-explorer fieldset { min-width: 0; margin: 0 0 .75rem; padding: .85rem 1rem 1rem; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.notes-page #data-explorer legend { float: left; width: 100%; margin: 0 0 .6rem; padding: 0; font-weight: 600; line-height: 1.3; }
.notes-page #data-explorer legend + * { clear: both; }
.notes-page #data-explorer .dx-group-actions { margin-top: .6rem; }
.notes-page #data-explorer .dx-note { font-size: .875rem; line-height: 1.45; }
.notes-page #data-explorer .dx-more { margin: 0 0 .75rem; padding: 0; background: none; border: 0; }
.notes-page #data-explorer .dx-more > .dx-core { margin-top: .25rem; }
.notes-page #data-explorer .dx-active p { color: #dcdcdc; }
.notes-page #data-explorer .dx-active p:focus { outline: none; }
.notes-page #data-explorer .dx-summary { margin-top: .5rem; }
.notes-page #data-explorer .dx-summary h3 { font-size: 1.125rem; margin: 0 0 .75rem; }
.notes-page #data-explorer .dx-break { gap: .5rem 1rem; }
.notes-page #data-explorer .dx-break .dx-note { margin: 0; }

@media (max-width: 860px) {
  .notes-page .dp-hero, .notes-page .tx-controls { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .notes-page .data-page h1 { font-size: clamp(1.625rem, 7.2vw, 2rem); }
  .notes-page .data-page .note-deck { font-size: 1.0625rem; }
  .notes-page .dp-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem 1rem; }
  .notes-page .dp-facts dd { font-size: 1.125rem; }
  .notes-page .dp-bulk, .notes-page .tx-controls { padding: .9rem 1rem; }
  .notes-page .dp-downloads .dp-meta { display: block; margin-left: 0; }
  .notes-page .tx-summary dl > .tx-fact-wide { grid-column: 1 / -1; }
}
