/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --ink: #172337;
  --muted: #5c6b80;
  --paper: #f5f7fb;
  --panel: #ffffff;
  --line: #dce3ef;
  --green: #2456d6;
  --green-soft: #e8efff;
  --red: #b52d47;
  --red-soft: #fff0f3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-shell, .tape-shell { width: min(1400px, calc(100% - 40px)); margin: 0 auto; }
.landing-shell { min-height: 100vh; display: grid; align-content: center; padding: 72px 0; }
.hero { max-width: 940px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin: 0; font-family: Georgia, serif; font-size: clamp(3.4rem, 8vw, 7.8rem); font-weight: 500; letter-spacing: -.055em; line-height: .92; }
.lede { max-width: 730px; margin: 30px 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.55; }

.ticker-search { display: flex; gap: 10px; max-width: 650px; }
.ticker-search input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 17px 20px; color: var(--ink); font: 700 1.15rem ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; box-shadow: 0 8px 30px rgb(23 33 27 / 7%); }
.ticker-search input:focus { outline: 3px solid rgb(23 107 77 / 18%); border-color: var(--green); }
.ticker-search input[type="submit"], .ticker-search input[type="submit"]:focus { box-shadow: none; }
.ticker-search input[type="submit"] { flex: 0 0 auto; border: 0; border-radius: 6px; padding: 0 24px; background: var(--green); color: white; font: 750 .95rem ui-sans-serif, system-ui, sans-serif; cursor: pointer; text-transform: none; }
.notice, .match-panel { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.match-card { display: flex; justify-content: space-between; margin-top: 10px; padding: 13px; border-top: 1px solid var(--line); text-decoration: none; }
.match-card small { color: var(--muted); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 90px; padding-top: 28px; border-top: 1px solid var(--line); }
.principles div { display: grid; gap: 8px; }
.principles span { color: var(--muted); line-height: 1.45; }

.tape-shell { padding: 24px 0 50px; }
.tape-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.wordmark { font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.ticker-search--compact { width: 260px; }
.ticker-search--compact input { padding: 10px 13px; font-size: .9rem; box-shadow: none; }
.ticker-search--compact input[type="submit"] { padding: 0 15px; }
.instrument-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding: 56px 0 38px; }
.instrument-heading h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(4rem, 9vw, 8rem); font-weight: 500; letter-spacing: -.06em; line-height: .8; }
.instrument-heading > div > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 1.15rem; }
.instrument-meta { display: flex; gap: 34px; margin: 0; }
.instrument-meta div { display: grid; gap: 5px; }
.instrument-meta dt { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.instrument-meta dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
.tape-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 18px 60px rgb(23 33 27 / 7%); }
.section-heading { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; }
.api-link { color: var(--green); font-size: .85rem; font-weight: 700; text-decoration: none; }
.table-wrap { overflow-x: auto; }
.tape-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.tape-table th { padding: 12px 14px; color: var(--muted); background: #f1eee4; font-size: .68rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.tape-table td { padding: 15px 14px; border-top: 1px solid #ebe7da; vertical-align: top; }
.tape-table tbody tr:hover { background: #faf8f1; }
.tape-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.published a { text-decoration: none; white-space: nowrap; }
.published small { display: block; margin-top: 4px; color: var(--muted); font: .68rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.action { display: inline-block; border-radius: 999px; padding: 5px 9px; background: var(--green-soft); color: var(--green); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.action--sale { background: var(--red-soft); color: var(--red); }
.action--neutral { background: #ece9df; color: #545d55; }
.activity-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; padding: 20px 24px 8px; }
.activity-filters div { display: grid; gap: 6px; }
.activity-filters label { font-size: .75rem; color: var(--muted); font-weight: 700; }
.activity-filters select, .activity-filters input { border: 1px solid var(--line); border-radius: 5px; padding: 9px 10px; background: var(--panel); color: var(--ink); font: inherit; font-size: .8rem; }
.activity-filters input[type="submit"] { background: var(--green); color: white; cursor: pointer; }
.data-note { padding: 6px 24px 14px; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.row-note { display: block; color: var(--muted); margin-top: 6px; font-size: .72rem; line-height: 1.5; }
.reported-owner + .reported-owner { margin-top: 12px; }
.activity-table .published { min-width: 175px; }
.transaction-details { min-width: 90px; max-width: 360px; }
.transaction-details[open] { min-width: 260px; }
.transaction-details summary { color: var(--green); cursor: pointer; }
.transaction-details p { font-size: .75rem; line-height: 1.6; }
.activity-pagination { display: flex; justify-content: space-between; gap: 20px; padding: 20px 24px; border-top: 1px solid var(--line); font-size: .8rem; }
.activity-pagination span { color: var(--muted); }
.owner-heading h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1.1; overflow-wrap: anywhere; }
.profile-panel { margin-bottom: 28px; }
.past-disclosures > summary { cursor: pointer; justify-content: flex-start; gap: 10px; }
.past-disclosures > summary::before { content: "▸"; }
.past-disclosures[open] > summary::before { content: "▾"; }
.balance-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 10px 14px; border-top: 1px solid var(--line); }
.balance-heading h3 { margin: 0; font-size: .9rem; }
.balance-heading p { margin: 0; color: var(--muted); font-size: .72rem; }
.balance-heading .balance-joint { flex-basis: 100%; }
.balance-table { table-layout: fixed; min-width: 760px; font-size: .8rem; }
.balance-security { width: 28%; }
.balance-account { width: 17%; }
.balance-quantity { width: 18%; }
.balance-context { width: 37%; }
.balance-table th { padding: 6px 14px; white-space: normal; }
.balance-table td { padding: 8px 14px; overflow-wrap: anywhere; }
.balance-table .row-note { margin-top: 2px; font-size: .7rem; line-height: 1.35; }
.balance-table .balance-attribution { margin: 4px 0; font-size: .7rem; line-height: 1.35; }
.balance-table details { margin-top: 3px; font-size: .72rem; }
.balance-table summary, .balance-footnotes summary { cursor: pointer; }
.balance-footnotes.data-note { margin: 0; padding: 6px 14px 10px; font-size: .7rem; }
.empty-state { padding: 75px 24px; text-align: center; }
.empty-state h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; }
.empty-state p { max-width: 600px; margin: auto; color: var(--muted); line-height: 1.5; }
.tape-footer { padding: 18px 4px; color: var(--muted); font-size: .75rem; }

@media (max-width: 800px) {
  .landing-shell, .tape-shell { width: min(100% - 24px, 1400px); }
  .landing-shell { padding: 48px 0; }
  .ticker-search { flex-direction: column; }
  .ticker-search input[type="submit"] { min-height: 50px; }
  .principles { grid-template-columns: 1fr; gap: 20px; margin-top: 55px; }
  .instrument-heading { align-items: start; flex-direction: column; padding-top: 42px; }
  .instrument-meta { width: 100%; flex-wrap: wrap; }
  .ticker-search--compact { width: 150px; flex-direction: row; }
  .ticker-search--compact input[type="submit"] { min-height: auto; }
}
