/* ir.css — our own News list, SEC filings table, SLMT quote and release pages.
   JP, 5 Nov 2026: replaces the Kaleidoscope widgets. Colours follow the gold
   Weave theme (dark): ink #e8e6e1, muted #9aa0a8, gold #c9a96e, rule #2a2d33. */
.sm-ir {
  --ir-ink: #e8e6e1; --ir-muted: #9aa0a8; --ir-gold: #c9a96e; --ir-rule: #2a2d33;
  --ir-field: #121418; --ir-line: #3a3d44; --ir-up: #c9a96e; --ir-down: #e5735f;
  color: var(--ir-ink); font: inherit; line-height: 1.45; box-sizing: border-box;
}
.sm-ir *, .sm-ir *::before, .sm-ir *::after { box-sizing: inherit; }
.sm-ir a { color: var(--ir-gold); }
.sm-ir__count { color: var(--ir-muted); font-size: .875rem; margin: 0 0 1rem; }

/* pager */
.sm-ir__pager { display: flex; flex-wrap: wrap; gap: .375rem; align-items: center; margin: 1.5rem 0 0; }
.sm-ir__pg {
  min-width: 2.5rem; min-height: 2.5rem; padding: 0 .75rem; border: 1px solid var(--ir-rule);
  background: transparent; color: var(--ir-ink); font: inherit; font-size: .875rem; cursor: pointer; border-radius: 2px;
}
.sm-ir__pg:hover:not(:disabled) { border-color: var(--ir-gold); color: var(--ir-gold); }
.sm-ir__pg.is-current { background: var(--ir-gold); border-color: var(--ir-gold); color: #0b0c0e; font-weight: 600; }
.sm-ir__pg:disabled { opacity: .35; cursor: default; }
.sm-ir__pg:focus-visible, .sm-ir select:focus-visible, .sm-ir a:focus-visible { outline: 2px solid var(--ir-gold); outline-offset: 2px; }
.sm-ir__gap { color: var(--ir-muted); padding: 0 .25rem; }

/* press list — home: one column, title over a gold date (as before) */
.sm-press__list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.sm-press__item { list-style: none !important; margin: 0 !important; padding-left: 0 !important; }
.sm-press__item::before, .sm-press__item::marker { content: none !important; display: none !important; }
.sm-press__item[hidden] { display: none !important; }
.sm-press--home .sm-press__item { padding: 1.25rem 0 !important; border-bottom: 1px solid var(--ir-rule); }
.sm-press--home .sm-press__item:first-child { padding-top: 0 !important; }
.sm-press__title { display: block; color: var(--ir-ink) !important; font-weight: 700; font-size: 1.125rem; line-height: 1.3; letter-spacing: -.03em; text-decoration: none !important; }
.sm-press__title:hover { color: var(--ir-gold) !important; }
.sm-press__date { display: block; margin-top: .5rem; color: var(--ir-gold); font-size: .8125rem; letter-spacing: .06em; font-weight: 600; }

/* press list — /sec-filings/: the old Kaleidoscope block, three-column grid */
.sm-press--full .sm-press__list { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; padding: 2.5rem 0 !important; border-top: 1px solid var(--ir-line); }
.sm-press--full .sm-press__item { display: flex; flex-direction: column; gap: .5625rem; }
.sm-press--full .sm-press__date { order: 0; margin: 0; color: var(--ir-muted); font-size: .985rem; font-weight: 400; letter-spacing: normal; }
.sm-press--full .sm-press__day { font-size: .985rem; }
.sm-press--full .sm-press__title { color: var(--ir-gold) !important; font-size: 1.125rem; }
.sm-press--full .sm-press__title:hover { color: var(--ir-ink) !important; }
@media (max-width: 992px) { .sm-press--full .sm-press__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem; } }
@media (max-width: 640px) { .sm-press--full .sm-press__list { grid-template-columns: 1fr; gap: 1.75rem; } }

/* bars above and below the list, pager and "Powered by" (Kaleidoscope layout) */
.sm-ks__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.sm-ks__bar--top { margin-bottom: 1.75rem; }
.sm-press--home .sm-ks__bar--top { margin-bottom: 1rem; }
.sm-ks__bar--bottom { padding: 1.125rem 0; border-top: 1px solid var(--ir-line); border-bottom: 1px solid var(--ir-line); margin-top: 1.5rem; }
.sm-press--full .sm-ks__bar--bottom { margin-top: 0; }
.sm-ks__count { margin: 0; color: var(--ir-muted); font-size: .985rem; font-weight: 500; }
.sm-press--full .sm-ks__bar--top .sm-ks__count { margin-left: auto; }
.sm-ks__select {
  appearance: none; -webkit-appearance: none; width: auto !important; max-width: 100%; flex: 0 0 auto; min-width: 9.5rem; min-height: 2.5625rem; padding: .625rem 2.25rem .625rem 1rem;
  font: inherit; font-size: .875rem; font-weight: 500; color: var(--ir-gold); border: 2px solid var(--ir-gold); border-radius: 8px; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23c9a96e'/%3E%3C/svg%3E") no-repeat right 1rem center;
}
.sm-ks__select option { color: #111; }
.sm-ks__pager { display: flex; flex-wrap: wrap; gap: .5625rem; }
.sm-ks__pg {
  min-width: 2.25rem; min-height: 2.1875rem; padding: .375rem .85rem; font: inherit; font-size: .985rem; font-weight: 500; line-height: 1;
  color: var(--ir-gold); background: #f6f5f4; border: 1px solid #b1ada5; border-radius: 6px; cursor: pointer;
}
.sm-ks__pg:hover:not(:disabled) { background: var(--ir-gold); border-color: var(--ir-gold); color: #fff; }
.sm-ks__pg.is-current { background: var(--ir-gold); border-color: var(--ir-gold); color: #fff; font-weight: 600; }
.sm-ks__pg:disabled { opacity: .4; cursor: default; }
.sm-ks__pg:focus-visible, .sm-ks__select:focus-visible { outline: 2px solid var(--ir-gold); outline-offset: 2px; }
/* Home: the next section (On the Record) pulls itself up ~48px with a negative
   margin; leave room so the line is not hidden under it. */
.sm-press--home { padding-bottom: 3.5rem; }
.sm-ir__powered { margin: .85rem 0 0; color: var(--ir-muted); font-size: .845rem; }
.sm-ir__powered a { display: inline-flex; align-items: center; gap: .38em; margin-left: .3em; vertical-align: middle; color: var(--ir-gold) !important; text-decoration: none !important; }
.sm-ir__powered a b { font-weight: 600; }
.sm-ir__powered svg { width: .9em; height: auto; margin: 0 !important; flex: none; display: block; }
.sm-ir__powered a:hover b { text-decoration: underline; }
@media (max-width: 640px) {
  .sm-ks__bar--bottom { flex-direction: column; align-items: flex-start; }
  .sm-press--full .sm-ks__bar--top .sm-ks__count { margin-left: 0; }
  .sm-ks__pg:first-child, .sm-ks__pg:last-child { display: none; }
}

/* filings */
.sm-filings__loading, .sm-filings__error { color: var(--ir-muted); }
.sm-filings__filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.25rem; }
.sm-filings__filter label { display: block; color: var(--ir-muted); font-size: .8125rem; margin-bottom: .375rem; }
.sm-filings__filter select {
  width: 100%; min-height: 2.75rem; padding: 0 .75rem; font: inherit; font-size: .9375rem;
  color: var(--ir-ink); background: var(--ir-field); border: 1px solid var(--ir-rule); border-radius: 2px;
}
.sm-filings__table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.sm-filings__table th { text-align: left; color: var(--ir-muted); font-weight: 500; font-size: .8125rem; padding: .75rem .75rem .75rem 0; border-bottom: 1px solid var(--ir-rule); }
.sm-filings__table td { padding: .875rem .75rem .875rem 0; border-bottom: 1px solid var(--ir-rule); vertical-align: top; }
.sm-filings__date { white-space: nowrap; color: var(--ir-muted); }
.sm-filings__form strong { color: var(--ir-gold) !important; font-weight: 600; white-space: nowrap; }
.sm-filings__view { white-space: nowrap; }
.sm-filings__view a { margin-right: .875rem; font-size: .875rem; }

@media (max-width: 720px) {
  .sm-filings__filters { grid-template-columns: 1fr; gap: .75rem; }
  .sm-filings__table thead { display: none; }
  .sm-filings__table, .sm-filings__table tbody, .sm-filings__table tr, .sm-filings__table td { display: block; width: 100%; }
  .sm-filings__table tr { padding: .5rem 0 .75rem; border-bottom: 1px solid var(--ir-rule); }
  .sm-filings__table td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .75rem; border: 0; padding: .375rem 0; }
  .sm-filings__table td::before { content: attr(data-label); color: var(--ir-muted); font-size: .8125rem; }
  .sm-filings__date { white-space: normal; }
}

/* quote */
.sm-quote__name { margin: 0; font-size: 1.25rem; font-weight: 600; }
.sm-quote__sym { color: var(--ir-gold); }
.sm-quote__price { margin: .25rem 0 1rem; font-size: clamp(2.5rem, 7vw, 3.5rem); font-weight: 700; color: var(--ir-gold) !important; line-height: 1.1; min-height: 1.1em; }
.sm-quote.is-error .sm-quote__price { font-size: 1rem; color: var(--ir-muted); font-weight: 400; }
.sm-quote__rows { margin: 0; }
.sm-quote__rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--ir-rule); }
.sm-quote__rows dt { font-weight: 600; }
.sm-quote__rows dd { margin: 0; color: var(--ir-gold); font-variant-numeric: tabular-nums; }
.sm-quote__rows dd.is-down { color: var(--ir-down); }
.sm-quote__note { margin: .75rem 0 0; padding-top: .75rem; border-top: 1px solid var(--ir-rule); color: var(--ir-muted); font-size: .75rem; }

/* release page */
.sm-article { max-width: 46rem; margin: 0 auto; padding: 2rem 0 4rem; }
.sm-article__back { margin: 0 0 1.5rem; font-size: .875rem; }
.sm-article__back a { text-decoration: none; }
.sm-article__title { font-size: clamp(1.75rem, 4.5vw, 2.5rem); line-height: 1.2; margin: 0 0 .75rem; color: var(--ir-ink); }
.sm-article__meta { color: var(--ir-gold); font-size: .875rem; letter-spacing: .04em; margin: 0 0 2rem; }
.sm-article__body { font-size: 1.0625rem; line-height: 1.65; overflow-wrap: anywhere; }
.sm-article__body p { margin: 0 0 1.1em; }
.sm-article__body ul, .sm-article__body ol { margin: 0 0 1.1em 1.25em; }
.sm-article__body table { max-width: 100%; display: block; overflow-x: auto; border-collapse: collapse; }
.sm-article__body td, .sm-article__body th { padding: .375rem .625rem; border: 1px solid var(--ir-rule); }
.sm-article__body #mmgallerylink { display: none; }
.sm-article__src { color: var(--ir-muted); font-size: .875rem; border-top: 1px solid var(--ir-rule); padding-top: 1rem; margin-top: 2rem; }

/* Mobile pass (audit 5 Nov 2026 at 360/390/430): thumb-sized targets for the
   standalone links and pager, and 16px form controls so iOS Safari does not
   zoom the page when one is tapped. */
@media (max-width: 720px) {
  .sm-filings__view span { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
  .sm-filings__view a, .sm-ir__powered a, .sm-quote__note a,
  .sm-article__back a, .sm-article__src a {
    display: inline-flex; align-items: center; min-height: 2.75rem; margin-right: 0;
  }
  .sm-filings__table td.sm-filings__view { align-items: center; padding: 0; }
  .sm-ir__powered { margin-top: .25rem; }
  .sm-article__back { margin-bottom: .5rem; }
  .sm-quote__note { line-height: 1.6; }
  .sm-filings__filter select, .sm-ks__select { font-size: 16px; }
  .sm-ks__pg, .sm-ir__pg { min-width: 2.75rem; min-height: 2.75rem; }
  .sm-press--home .sm-press__title { font-size: 1.0625rem; }
}
