/* Version 3 look: the heatmap on the home page, the More menu and the phone
   menu in the header, column bands and small charts in the screener, and the
   Overview cards (quotes, checks, ten years). Loaded after the other sheets. */

/* ---- header: six links, the rest under More; a menu button on phones ---- */
.nav-open, .burger { display: none; }
.nav-more { position: relative; display: flex; }
.nav-more-btn { display: flex; align-items: center; gap: 5px; background: none; border: 0; box-shadow: none;
  color: var(--hero-muted); font: 500 14px var(--sans); padding: 8px 11px; border-radius: 6px; cursor: pointer; }
.nav-more-btn:hover, .nav-more:focus-within .nav-more-btn { background: rgba(255, 255, 255, .06); color: #fff; filter: none; }
.nav-more-list { display: none; position: absolute; top: 100%; left: 0; z-index: 30; min-width: 190px; padding: 6px;
  background: var(--hero); border: 1px solid var(--hero-line); border-radius: var(--radius); box-shadow: var(--shadow-pop); }
.nav-more:hover .nav-more-list, .nav-more:focus-within .nav-more-list { display: block; }
.nav-more-list a { display: flex; }
.top nav { flex-wrap: nowrap; }

@media (max-width: 900px) {
  .top-inner { flex-wrap: wrap; gap: 8px 12px; }
  .burger { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px;
    margin-left: auto; order: 2; border-radius: 6px; cursor: pointer; padding: 0 10px; }
  .burger span { display: block; height: 2px; background: #fff; border-radius: 4px; }
  .burger:hover { background: rgba(255, 255, 255, .06); }
  .top .search { order: 1; flex: 1 1 160px; margin-left: 0; }
  .top .search input { width: 100%; }
  .top .acct { order: 3; }
  .top nav { display: none; order: 4; width: 100%; flex-direction: column; gap: 0; padding: 4px 0 8px; overflow: visible; }
  .nav-open:checked ~ nav { display: flex; }
  .top nav a, .nav-more-btn { min-height: 44px; }
  .nav-more { flex-direction: column; }
  .nav-more-btn { display: none; }
  .nav-more-list { display: block; position: static; padding: 0; border: 0; box-shadow: none; background: none; min-width: 0; }
}
@media (max-width: 640px) {
  .top .acct { display: none; }
  .nav-open:checked ~ .acct { display: flex; order: 5; width: 100%; padding-bottom: 8px; }
}

/* ---- home page: the band at the top and its search ---- */
main > .home-hero { background: #f5f8fe; box-shadow: 0 0 0 100vmax #f5f8fe; clip-path: inset(0 -100vmax);
  padding: 34px 0 30px; margin: 0; }
.home-hero .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.home-hero h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -0.03em; color: #101b46; margin: 0 0 12px; font-weight: 600; }
.home-hero .lede { color: var(--muted); max-width: 62ch; margin: 0; }
.home-search { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; overflow: hidden;
  box-shadow: var(--shadow); }
.home-search input[type=search] { flex: 1; border: 0; border-radius: 0; padding: 12px 14px; min-width: 0; box-shadow: none; background: #fff; }
.home-search button { border-radius: 0; background: #101b46; padding: 0 16px; min-width: 48px; }
main > .scr-head.after-hero { background: none; box-shadow: none; clip-path: none; color: var(--fg); padding: 30px 0 14px; }
main > .scr-head.after-hero h1 { color: var(--fg); font-size: 24px; }
main > .scr-head.after-hero .muted { color: var(--muted); }
main > .scr-head.after-hero + * { margin-top: 0; }
main > .scr-head.after-hero .scr-find input { background: var(--surface); border-color: var(--line-strong); color: var(--fg); }
main > .scr-head.after-hero .scr-find input::placeholder { color: var(--faint); }

/* ---- screener: bands over the columns, a small chart per row ---- */
.scr tr.bands th { position: static; background: var(--surface); border-bottom: 0; padding: 8px 10px 0; font-size: 11px;
  letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.scr tr.bands th.band { background: var(--ours-soft); color: var(--ours); text-align: center; border-radius: var(--radius) var(--radius) 0 0; }
.scr tr.bands .tag { text-transform: none; letter-spacing: 0; }
.scr th.spark-h { color: var(--muted); }
.scr td.spark { white-space: nowrap; padding-top: 3px; padding-bottom: 3px; }
.scr td.spark svg { vertical-align: middle; overflow: visible; }
.scr td.spark path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }
.scr td.spark span { font-size: 12px; color: var(--muted); margin-left: 6px; vertical-align: middle; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  /* keep the ticker in view while the table scrolls sideways */
  .scr th:nth-child(2), .scr td.tkr { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
  .scr tr.bands th { position: static; }
  .scr th:first-child, .scr td:first-child { display: none; }
  .scr td.nm { max-width: 140px; }
}

/* ---- company Overview ---- */
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.ov-grid .card-head, .ov-ten .card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
ol.ticked { list-style: none; margin: 8px 0 12px; padding: 0; }
ol.ticked li { position: relative; padding: 0 0 14px 34px; }
ol.ticked li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #e5484d; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 26'%3E%3Cpath d='M4 14l7 7L26 4' fill='none' stroke='%23e5484d' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; box-sizing: border-box; }
.ov-q { margin: 0 0 4px; padding: 9px 13px; border-left: 3px solid #f5c400; background: var(--amber-soft); border-radius: 0 6px 6px 0;
  font: 14px/1.55 var(--serif); }
.ov-list { list-style: none; margin: 6px 0 12px; padding: 0; }
.ov-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ov-list li:first-child { border-top: 0; }
.ov-list b { display: block; font-weight: 600; }
.ov-list span:not(.icon) { display: block; color: var(--muted); font-size: 13px; }
.ov-list .icon { font-weight: 600; }
.ov-list .flag .icon { color: var(--red); }
.ov-list .ok { color: var(--muted); }
.ov-list .ok b { font-weight: 500; }
.ov-ten { margin-bottom: 16px; }
.ten { width: 100%; height: auto; display: block; }
.ten .rev { fill: color-mix(in srgb, var(--accent) 45%, transparent); }
.ten .ni { fill: var(--accent); }
.ten .ni.neg { fill: var(--red); }
.ten .zero { stroke: var(--line-strong); }
.ten .axis { fill: var(--faint); font-size: 11px; text-anchor: middle; }
.ten .axis.val { fill: var(--muted); font-size: 10px; }
.legend-inline { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.legend-inline .sw { display: inline-block; width: 10px; height: 10px; border-radius: 4px; margin-left: 6px; }
.legend-inline .sw.rev { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.legend-inline .sw.ni { background: var(--accent); }
@media (max-width: 900px) { .ov-grid { grid-template-columns: 1fr; } }

/* ---- phones: company header in two lines, nothing wider than the screen ---- */
@media (max-width: 640px) {
  .co-head { display: block; }
  .co-price { text-align: left; margin-top: 10px; }
  .co-price .px { font-size: 24px; }
  .snap-row, .snapshot { max-width: 100%; }
  table.snapshot { display: block; overflow-x: auto; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs a { white-space: nowrap; }
  button, .button, .chip, .views a { min-height: 40px; }
}

/* dark theme: set on <html> by base.html from the visitor's choice or their device */
:root[data-theme="dark"] main > .home-hero { background: #0f1630; box-shadow: 0 0 0 100vmax #0f1630; }
:root[data-theme="dark"] .home-hero h1 { color: #fff; }
:root[data-theme="dark"] .home-search, :root[data-theme="dark"] .home-search input[type=search] { background: var(--surface); color: var(--fg); }
code { overflow-wrap: anywhere; }

/* ---- home page: evidence first (tickmark/home.py) ---- */
main > .home-intro { padding: 40px 0 34px; }
.home-intro .lede { font-size: 16px; }
.home-intro .home-search { max-width: 640px; margin-top: 20px; }
.home-sec { margin: 34px 0 0; }
.home-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.home-sec-head h2 { margin: 0; font-size: 24px; letter-spacing: -0.01em; }
.home-sec-head p { margin: 0; flex-basis: 100%; }
.ev-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ev-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.ev-card .ev-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 13px; }
.ev-card .ev-tk { font-weight: 600; font-size: 16px; color: var(--fg); }
.ev-card .ev-nm { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-card .ev-kind { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.ev-card .ev-kind.k-red { color: var(--kaud); } .ev-card .ev-kind.k-green { color: var(--kbuy); }
.ev-card blockquote { margin: 0; font: 15px/1.5 var(--serif); border-left: 3px solid var(--accent); padding-left: 12px; }
.ev-card .ev-fact { margin: 0; font-size: 15px; }
.ev-card .ev-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.home-rl .ev-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .home-rl .ev-cards { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .home-rl .rl-card:nth-child(3) { display: none; } }
.edge { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; }
.edge-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); background: var(--surface); color: var(--fg); }
.edge-item:hover { text-decoration: none; border-color: var(--accent); }
.edge-item b { font-size: 14px; }
.edge-item span { font-size: 13px; color: var(--muted); line-height: 1.45; }
@media (max-width: 1000px) { .edge { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .edge { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .edge-item { padding: 8px 10px; }
  .edge-item b { font-size: 13px; } .edge-item span { display: none; } .edge-item:last-child { grid-column: 1 / -1; } }
.rl-card .rl-text { margin: 0; font: 15px/1.6 var(--serif); }
.rl-card .rl-text del { background: var(--del); color: var(--red); text-decoration: line-through; text-decoration-thickness: 1.5px; border-radius: 4px; }
.rl-card .rl-text ins { background: var(--ins); color: inherit; text-decoration: none; border-radius: 4px; }
.home-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 10px; }
.home-links a { border: 1px solid var(--line-strong); border-radius: 99px; padding: 6px 14px; font-weight: 600; background: var(--surface); }
.home-mine .ev-card blockquote { border-left-color: var(--kbuy); }

/* ---- company tabs in groups: groups on the first row, the open group's tabs below ---- */
.tab-groups { margin-bottom: 0; }
.subtabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; padding: 8px 6px; background: var(--surface);
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.subtabs a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.subtabs a:hover { background: var(--surface-2); color: var(--fg); text-decoration: none; }
.subtabs a.on { background: var(--accent-soft); color: var(--accent); }
.subtabs .count { margin-left: 5px; font-size: 11px; }
.tab-groups + section, .tab-groups + .card, .tab-groups + div { margin-top: 18px; }
@media (max-width: 640px) { .subtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }

/* ---- one Share button that opens the share links ---- */
.share-pop { position: relative; display: inline-block; margin-top: 10px; }
.share-pop > summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.share-pop > summary::-webkit-details-marker { display: none; }
.share-pop[open] > summary { border-color: #c4d0ff; }
.share-pop { display: block; }
.share-pop .share { margin: 8px 0 0; }        /* opens in place: the navy band clips anything that floats out of it */
main > .co-head .share-pop > summary { background: rgba(255, 255, 255, .06); color: #fff; border-color: #2c3a74; }

/* ---- home: a way down to the screener ---- */
.to-screener { font-weight: 600; }

/* ---- home page: the intro on the navy band, every company as a dot beside it (charts.growth_margin) ---- */
main > .home-intro { background: var(--hero); box-shadow: 0 0 0 100vmax var(--hero); color: var(--hero-fg); padding: 44px 0 48px; }
.home-intro .eyebrow { color: #8ea4ff; }
.home-intro h1 { color: #fff; }
.home-intro .lede { color: var(--hero-muted); }
.home-intro .home-search { background: rgba(255, 255, 255, .06); border-color: #2c3a74; box-shadow: none; }
.home-intro .home-search input[type=search] { background: transparent; color: #fff; }
.home-intro .home-search input[type=search]::placeholder { color: #8b96c2; }
.home-intro .home-search button { background: var(--accent); }
main > .home-field { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; align-items: center; }
.home-field .intro-text { min-width: 0; }
.gm-corners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.gm-corner { --c: #22a06b; display: flex; flex-direction: column; padding: 10px 14px; border-radius: var(--radius); color: var(--hero-muted);
  background: rgba(255, 255, 255, .06); border: 1px solid #2c3a74; border-left: 4px solid var(--c); font-size: 14px; }
.gm-corner:hover { text-decoration: none; background: rgba(255, 255, 255, .11); }
.gm-corner b { font: 600 24px/1.2 var(--display); color: #fff; }
.gm-corner.warn { --c: #f5b83d; } .gm-corner.info { --c: #6b93ff; } .gm-corner.bad { --c: #f87171; }
.gm { margin: 0; min-width: 0; }
.gm svg { display: block; width: 100%; height: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-pop); font-family: var(--sans); }
.gm .gm-good { fill: #22a06b; fill-opacity: .07; } .gm .gm-bad { fill: #e5484d; fill-opacity: .07; }
.gm .gm-grid { stroke: var(--line); } .gm .gm-axis { stroke: var(--faint); }
.gm .gm-tick { font-size: 12px; fill: var(--muted); }
.gm circle { fill-opacity: .62; stroke: var(--surface); stroke-width: .8; transition: fill-opacity .12s; }
.gm a:hover circle, .gm a:focus circle { fill-opacity: 1; stroke: var(--fg); stroke-width: 1.5; }
.gm .gm-label { font-size: 11px; font-weight: 600; fill: var(--fg); pointer-events: none; }
/* A phone draws the 760-wide chart at about half size: bigger type, and only the largest names */
@media (max-width: 600px) {
  .gm .gm-tick { font-size: 18px; }
  .gm .gm-label { display: none; }
  .gm .gm-label.gm-big { display: inline; font-size: 21px; }
}
.gm-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: 13px; color: var(--hero-muted); }
.gm-legend .gm-out { flex-basis: 100%; }
.gm-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }

/* ---- /peers: one shape per company (tickmark/shape.py) ---- */
.shapes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .shapes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shape { --c: #22a06b; display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 10px; color: var(--fg);
  border-top: 4px solid var(--c); box-shadow: var(--shadow-pop); transition: transform .12s, box-shadow .12s; }
.shape:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.shape.weak { --c: #e5484d; } .shape.mixed { --c: #e8a10c; } .shape.fair { --c: #7cc242; } .shape.strong { --c: #16a36a; }
.shape-top { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.shape-nm { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shape svg { display: block; width: 100%; height: auto; margin: 2px 0; }
.shape .shape-ring { fill: none; stroke: var(--line-strong); }
.shape .shape-fill { fill: var(--c); fill-opacity: .5; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; }
.shape .shape-ax { font-size: 11px; fill: var(--muted); font-family: var(--sans); }
.shape-facts { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.shape-facts b { color: var(--fg); font-weight: 600; white-space: nowrap; }
.shape.focus { box-shadow: 0 0 0 2px var(--accent), 0 8px 24px rgba(13, 21, 51, .12); }
.peer-shapes { margin: 18px 0 28px; }
.shapes-more { margin-top: 12px; } .shapes-more > summary { cursor: pointer; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.peer-topic-h { font-size: 24px; margin: 0 0 10px; }
.co-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.co-actions .watch-form { margin-top: 0; }
.co-peers { font: 600 13px var(--sans); padding: 6px 13px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); }
.co-peers:hover { text-decoration: none; filter: brightness(1.1); }
@media (prefers-reduced-motion: reduce) { .shape, .gm circle, .hs-tile { transition: none; } .shape:hover, .hs-tile:hover { transform: none; } }

/* ---- home: ready-made screens (screener.PRESETS) ---- */
.hs-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.hs-tile { --c: var(--accent); display: flex; flex-direction: column; gap: 8px; text-align: left; min-height: 0; padding: 14px 16px 12px;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: pointer; font: inherit; font-weight: 400; transition: transform .12s, box-shadow .12s; }
.hs-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); background: var(--surface); }
.hs-tile[aria-selected="true"] { background: color-mix(in srgb, var(--c) 10%, var(--surface)); border-color: var(--c); box-shadow: 0 0 0 1px var(--c); }
.hs-tile:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.hs-tile-top { display: flex; justify-content: space-between; align-items: center; }
.hs-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius); color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.hs-tile-top b { font: 600 32px/1 var(--display); letter-spacing: -.02em; color: var(--c); font-variant-numeric: tabular-nums; }
.hs-tl { font-weight: 600; font-size: 15px; }
.hs-bar { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.hs-bar i { display: block; height: 100%; background: var(--c); border-radius: 6px; }
.hs-tk { display: flex; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.hs-tk span { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 7px; border-radius: 6px; }
.hs-panel { padding: 0; overflow: hidden; border-top: 3px solid var(--c); }
.hs-note { margin: 0; padding: 10px 16px; font-size: 14px; color: var(--muted); }
.hs-note b { color: var(--c); font-size: 16px; }
.hs-wrap { overflow-x: auto; }
.hs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hs-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 14px; background: var(--surface-2); white-space: nowrap; }
.hs-table td { padding: 7px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
.hs-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.hs-table td.up1 { background: var(--t-up1); } .hs-table td.up2 { background: var(--t-up2); } .hs-table td.up3 { background: var(--t-up3); }
.hs-table td.dn1 { background: var(--t-dn1); } .hs-table td.dn2 { background: var(--t-dn2); } .hs-table td.dn3 { background: var(--t-dn3); }
.hs-table .tk { font-weight: 600; }
.hs-table .nm { max-width: 26ch; overflow: hidden; text-overflow: ellipsis; }
.hs-spark { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.hs-spark path { fill: none; stroke-width: 1.8; stroke: var(--l-ok); } .hs-spark path.dn { stroke: var(--l-flag); }
.hs-spark .pos { color: var(--l-ok); } .hs-spark .neg { color: var(--l-flag); }
.hs-all { display: block; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surface-2); font-weight: 600; text-align: right; }
@media (max-width: 900px) {
  main > .home-field { grid-template-columns: 1fr; gap: 22px; }
  main > .home-intro { padding: 30px 0 34px; }
}
@media (max-width: 640px) {
  .hs-table .hide-sm { display: none; }
  .hs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hs-tile { padding: 12px; } .hs-tile-top b { font-size: 24px; } .hs-tl { font-size: 14px; } .hs-tk span:nth-child(3) { display: none; }
  .shapes { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 168px; overflow-x: auto; padding-bottom: 6px; }
  .gm-corner b { font-size: 20px; }
}
.ev-card .ev-head { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 600; }

/* ---- light or dark, the visitor's choice (base.html) ---- */
.theme-btn { width: 38px; height: 38px; min-height: 0; padding: 0; border-radius: 6px; border: 1px solid #2c3a74; background: rgba(255, 255, 255, .06);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.theme-btn:hover { background: rgba(255, 255, 255, .12); }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }

/* ---- company Overview: four numbers with ten years behind each (tickmark/glance.py) ---- */
:root { --gl-bar: #c9d6fd; --gl-up: #17803f; --gl-up-bg: #e3f5ea; --gl-down: #c2410c; --gl-down-bg: #fdeee4;
  --mx0: #3b6cf6; --mx1: #12a594; --mx2: #f08c00; --mx3: #8b5cf6; --mx4: #0d9488; --mx5: #e0559b; }
:root[data-theme="dark"] { --gl-bar: #2c3f80; --gl-up: #4ade80; --gl-up-bg: rgba(74, 222, 128, .13); --gl-down: #fb923c;
  --gl-down-bg: rgba(251, 146, 60, .15); --mx0: #6b93ff; --mx1: #3dd6b5; --mx2: #ffa94d; --mx3: #a78bfa; --mx4: #2dd4bf; --mx5: #f472b6; }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 16px; position: relative; }
.gl-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 14px; color: var(--fg); box-shadow: var(--shadow-pop); }
.gl-card:hover { text-decoration: none; border-color: var(--line-strong); }
.gl-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.gl-label { font-weight: 600; color: var(--muted); }
.gl-span { color: var(--faint); font-size: 12px; }
.gl-val { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gl-val b { font: 600 27px/1.15 var(--display); letter-spacing: -0.02em; }
.gl-delta { font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.gl-delta.up { color: var(--gl-up); background: var(--gl-up-bg); }
.gl-delta.down { color: var(--gl-down); background: var(--gl-down-bg); }
.gl-bars { height: 58px; display: flex; align-items: flex-end; gap: 4px; margin-top: 6px; }
.gl-bars i { flex: 1; background: var(--gl-bar); border-radius: 4px 4px 0 0; }
.gl-bars i.last { background: var(--accent); }
.gl-bars i.neg { background: var(--gl-down); opacity: .55; }
.gl-line { width: 100%; height: 58px; margin-top: 6px; }
.gl-line polyline { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.gl-note { font-size: 13px; color: var(--muted); }

/* the accounting checks as a row of lights */
.ov-tally { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ov-tally b { font-size: 15px; color: var(--gl-up); }
.ov-lights { display: flex; gap: 4px; margin-bottom: 10px; }
.ov-lights i { flex: 1; height: 9px; border-radius: 4px; background: var(--gl-up); }
.ov-lights i.flag { background: var(--gl-down); }
.ov-list li { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.ov-list .icon { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.ov-list .flag .icon { background: var(--gl-down-bg); color: var(--gl-down); }
.ov-list .ok .icon { background: var(--gl-up-bg); color: var(--gl-up); }
.ov-list .ok { color: var(--fg); }

/* where the revenue came from */
.ov-mix { margin-top: 16px; }
.mix-bar { display: flex; height: 20px; border-radius: 6px; overflow: hidden; margin: 4px 0 12px; }
.mix-key { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.mix-key li { display: flex; align-items: center; gap: 7px; }
.mix-key i { width: 10px; height: 10px; border-radius: 4px; }
.mx0 { background: var(--mx0); } .mx1 { background: var(--mx1); } .mx2 { background: var(--mx2); }
.mx3 { background: var(--mx3); } .mx4 { background: var(--mx4); } .mx5 { background: var(--mx5); }

/* every key number, folded under one line */
.snap-more { margin-top: 4px; }
.snap-more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 600; font-size: 14px; }
.snap-more > summary::-webkit-details-marker { display: none; }
.snap-more > summary::before { content: "▸"; color: var(--muted); }
.snap-more[open] > summary::before { content: "▾"; }
.snap-more[open] > summary { margin-bottom: 10px; }
@media (min-width: 901px) and (max-width: 1400px) { .top-inner { gap: 16px; } .top .search input { width: 140px; } }
@media (max-width: 900px) { .theme-btn { order: 1; } }
@media (max-width: 640px) {
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gl-card { padding: 12px 12px 10px; }
  .gl-span { display: none; }
  .gl-val { gap: 6px; }
  .gl-val b { font-size: 20px; }
  .gl-delta { font-size: 12px; padding: 1px 6px; }
  .gl-bars, .gl-line { height: 40px; }
  .gl-bars { gap: 2px; }
  .gl-note { font-size: 12px; }
}

/* ---- changes in the numbers (tickmark/changes.py) ---- */
.nx-arrow { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.nx-arrow.up { background: var(--gl-up-bg); color: var(--gl-up); }
.nx-arrow.down { background: var(--gl-down-bg); color: var(--gl-down); }
.nx-list { display: flex; flex-direction: column; gap: 10px; }
.nx-row { display: flex; gap: 14px; padding: 14px 18px; align-items: flex-start; }
.nx-main { min-width: 0; flex: 1; }
.nx-top { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 13px; }
.nx-tk { font-weight: 600; font-size: 15px; color: var(--fg); }
.nx-kind { margin-left: auto; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.nx-title { margin: 4px 0 6px; font-size: 16px; }
.nx-vals { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; }
.nx-chg { font-size: 13px; font-weight: 600; padding: 1px 8px; border-radius: 99px; }
.nx-chg.up { color: var(--gl-up); background: var(--gl-up-bg); } .nx-chg.down { color: var(--gl-down); background: var(--gl-down-bg); }
.nx-foot { margin: 0; }
.nx-foot a { margin-left: 6px; }
.ov-nx { margin-bottom: 16px; }
.nx-mini { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px 20px; }
.nx-mini li { display: flex; gap: 10px; align-items: flex-start; }
.nx-mini b { display: block; font-size: 14px; }

/* ---- company header: a mark, one sentence from the 10-K, key facts, the actions (company.html) ---- */
.co-id { display: flex; gap: 16px; align-items: center; min-width: 0; }
.co-logo { --c: #4a5694; flex: none; width: 58px; height: 58px; border-radius: var(--radius); display: grid; place-items: center;
  font: 600 32px/1 var(--display); color: #fff; background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 55%, #0a1230));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 6px 18px rgba(0, 0, 0, .25); }
.co-head h1 { margin: 0; }
.co-lede, .co-chips, .co-head > .co-actions { flex-basis: 100%; }
.co-lede { margin: 4px 0 0; max-width: 820px; font-size: 15px; line-height: 1.5; color: #d5dbf3; }
.co-lede a { color: var(--hero-muted); font-size: 13px; white-space: nowrap; }
.co-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.co-chips > div { padding: 7px 12px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.co-chips dt { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--hero-muted); }
.co-chips dd { margin: 1px 0 0; font-weight: 600; color: #fff; font-size: 14px; }
.co-head > .co-actions { margin-top: 4px; }
.co-head > .co-actions .share-bar { margin: 0; }
.co-embed { font: 600 13px var(--sans); padding: 6px 13px; border-radius: 999px; color: #fff; border: 1px solid #2c3a74; background: rgba(255, 255, 255, .06); }
.co-embed:hover { text-decoration: none; border-color: #c4d0ff; }
.co-range { display: grid; gap: 3px; width: 220px; margin: 8px 0 0 auto; text-align: left; }
.co-range-bar { position: relative; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #f87171, #fbbf24, #4ade80); }
.co-range-bar i { position: absolute; top: -4px; width: 3px; height: 14px; margin-left: -1.5px; border-radius: 4px; background: #fff; }
.co-range-ends { display: flex; justify-content: space-between; color: var(--hero-muted); }
@media (max-width: 640px) {
  .co-logo { width: 46px; height: 46px; font-size: 24px; border-radius: var(--radius); }
  .co-range { margin-left: 0; }
  .co-chips > div { padding: 6px 10px; }
  .co-lede { font-size: 14px; }
}

/* ---- Overview: against the peers (tickmark/standing.py) ---- */
.ov-peers, .ov-flow { margin-bottom: 16px; }
.ov-peers .card-head, .ov-flow .card-head, .hc .card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ovp-grid { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
.ovp-shape { margin: 0; }
.ovp-shape svg { display: block; width: 100%; height: auto; }
.ovp-shape .shape-ring { fill: none; stroke: var(--line-strong); }
.ovp-shape .shape-ax { font-size: 11px; fill: var(--muted); font-weight: 600; }
.ovp-me { fill: color-mix(in srgb, var(--accent) 22%, transparent); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.ovp-mid { fill: color-mix(in srgb, var(--faint) 16%, transparent); stroke: var(--faint); stroke-width: 1.3; stroke-dasharray: 3 2; }
.ovp-key { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.ovp-key i { display: inline-block; width: 10px; height: 10px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }
.ovp-key i.me { background: var(--accent); } .ovp-key i.mid { background: var(--faint); }
.ovp-strips { min-width: 0; }
.ovp-strips > p { margin: 0 0 4px; }
.ovp-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 150px; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.ovp-row:first-of-type { border-top: 0; }
.ovp-label { font-weight: 600; font-size: 14px; }
.ovp-track { position: relative; height: 26px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); margin: 0 10px; }
.ovp-track::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; background: var(--line-strong); }
.ovp-dot { position: absolute; top: 8px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: color-mix(in srgb, var(--faint) 55%, transparent); z-index: 1; }
.ovp-dot:hover { background: var(--fg); }
.ovp-dot.me { top: 3px; width: 18px; height: 18px; margin-left: -9px; background: var(--accent); z-index: 2;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 0 1.5px var(--surface) inset; }
.ovp-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ovp-val small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.ovp-val.pos { color: var(--green); } .ovp-val.neg { color: var(--red); }
@media (max-width: 900px) {
  .ovp-grid { grid-template-columns: minmax(0, 1fr); }
  .ovp-shape { max-width: 300px; margin: 0 auto; }
  .ovp-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .ovp-track { grid-column: 1 / -1; grid-row: 2; margin: 0 9px; }
}

/* ---- bands from a total to its parts (_flow.html) ---- */
:root { --fl-rev: #2f5bea; --fl-gp: #0fa37a; --fl-op: #0f8a5f; --fl-ni: #17803f; --fl-cor: #e5484d; --fl-opex: #f0663a;
  --fl-exp: #f08c00; --fl-tax: #c2410c; --fl-inc: #8b5cf6; --fl-inc-t: #6d3fd6; --fl-band: .36; }
:root[data-theme="dark"] { --fl-rev: #5b84ff; --fl-gp: #2ee6a0; --fl-op: #34d399; --fl-ni: #4ade80; --fl-cor: #ff6b6b; --fl-opex: #ff8a5c;
  --fl-exp: #ffa94d; --fl-tax: #e8590c; --fl-inc: #a78bfa; --fl-inc-t: #c4b5fd; --fl-band: .42; }
.fl-scroll { overflow-x: auto; }
.fl { display: block; width: 100%; min-width: 760px; height: auto; }
.fl-b { opacity: var(--fl-band); transition: opacity .15s; }
.fl-b:hover { opacity: calc(var(--fl-band) + .25); }
.fl-t { font-size: 13px; fill: var(--fg); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.fl-l { font-weight: 700; }
.fl-v { fill: var(--fg); font-weight: 600; }
.fl-v.fl-big { font-size: 16px; font-weight: 700; }
.fl-s, .fl .fl-s { fill: var(--muted); font-size: 12px; font-weight: 500; }
.fl .fl-up { fill: var(--gl-up); font-weight: 600; } .fl .fl-down { fill: var(--gl-down); font-weight: 600; }
.fl .mx0 { fill: var(--mx0); } .fl .mx1 { fill: var(--mx1); } .fl .mx2 { fill: var(--mx2); }
.fl .mx3 { fill: var(--mx3); } .fl .mx4 { fill: var(--mx4); } .fl .mx5 { fill: var(--mx5); }
.fl .rev { fill: var(--fl-rev); } .fl .gp { fill: var(--fl-gp); } .fl .op { fill: var(--fl-op); } .fl .ni { fill: var(--fl-ni); }
.fl .cor { fill: var(--fl-cor); } .fl .opex { fill: var(--fl-opex); } .fl .exp { fill: var(--fl-exp); } .fl .tax { fill: var(--fl-tax); }
.fl .inc { fill: var(--fl-inc); }
.fl .good { fill: var(--gl-up); } .fl .bad { fill: #e5484d; } .fl .warn { fill: #f08c00; }
.fl tspan.fl-l.mx0, .fl tspan.fl-l.mx1, .fl tspan.fl-l.mx2, .fl tspan.fl-l.mx3, .fl tspan.fl-l.mx4, .fl tspan.fl-l.mx5, .fl tspan.fl-l.rev { fill: var(--fg); }
.fl tspan.fl-l.gp, .fl tspan.fl-l.op, .fl tspan.fl-l.ni, .fl tspan.fl-l.good { fill: var(--gl-up); }
.fl tspan.fl-l.bad, .fl tspan.fl-l.cor, .fl tspan.fl-l.opex, .fl tspan.fl-l.exp, .fl tspan.fl-l.tax { fill: var(--red); }
.fl tspan.fl-l.inc { fill: var(--fl-inc-t); }
/* where each $100 went, one bar per year, under the flow */
.fl-spend { padding-top: 4px; }
.fl-swipe { display: none; margin: 4px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 800px) { .fl-swipe { display: block; } }
.fl-spend h3 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sp-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 7px; }
.sp-y { font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.sp-bar { display: flex; gap: 2px; height: 28px; }
.sp-bar i { display: flex; align-items: center; justify-content: center; min-width: 1px; border-radius: 4px; font-style: normal;
  font-size: 12px; font-weight: 700; color: #fff; opacity: .78; overflow: hidden; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sp-row.on .sp-y { color: var(--fg); font-weight: 700; }
.sp-row.on .sp-bar { height: 38px; } .sp-row.on .sp-bar i { opacity: 1; font-size: 13.5px; }
.sp-bar .cor, .sp-key .cor { background: var(--fl-cor); } .sp-bar .opex, .sp-key .opex { background: var(--fl-opex); }
.sp-bar .exp, .sp-key .exp { background: var(--fl-exp); } .sp-bar .tax, .sp-key .tax { background: var(--fl-tax); }
.sp-bar .ni, .sp-key .ni { background: var(--fl-ni); }
:root[data-theme="dark"] .sp-bar i { color: #0b1230; }
.sp-key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0 72px; padding: 0; font-size: 13px; }
.sp-key li { display: flex; align-items: center; gap: 6px; }
.sp-key i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
@media (max-width: 600px) {
  .sp-row { grid-template-columns: 50px minmax(0, 1fr); gap: 8px; } .sp-y { font-size: 12px; }
  .sp-bar i { font-size: 11px; } .sp-row.on .sp-bar i { font-size: 12px; } .sp-key { margin-left: 0; }
}

/* ---- Overview: three health cards (tickmark/standing.py) ---- */
.ov-health { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.hc { display: flex; flex-direction: column; }
.hc .card-body { display: flex; flex-direction: column; flex: 1; }
.hc-badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--gl-up-bg); color: var(--gl-up); }
.hc.mixed .hc-badge { background: var(--amber-soft); color: #9a6a00; }
.hc.bad .hc-badge { background: var(--gl-down-bg); color: var(--gl-down); }
:root[data-theme="dark"] .hc.mixed .hc-badge { color: #fbbf24; }
.hc-list { list-style: none; margin: 0 0 10px; padding: 0; }
.hc-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; padding: 6px 0; font-size: 14px; }
.hc-list .icon { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600;
  color: #fff; background: #22a06b; margin-top: 1px; }
.hc-list .flag .icon { background: #f08c00; }
.hc-list b { display: block; font-weight: 600; }
.hc-list span:not(.icon) { display: block; color: var(--muted); font-size: 13px; }
.hc-spark { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.hc-spark svg { display: block; width: 100%; height: 48px; margin-top: 4px; }
.hc-spark polyline { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.hc.mixed .hc-spark polyline { stroke: #f08c00; } .hc.good .hc-spark polyline { stroke: #22a06b; }
.hc-note { margin: 8px 0 16px; }
.ovp-table-wrap { overflow-x: auto; margin-top: 12px; }
.ovp-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.ovp-table caption { text-align: left; padding-bottom: 6px; }
.ovp-table th { text-align: right; font-weight: 600; color: var(--muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ovp-table td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ovp-table th:first-child, .ovp-table td:first-child { text-align: left; }
.ovp-table td:first-child .muted { display: inline-block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.ovp-table tr.me td { background: var(--accent-soft); font-weight: 600; }
/* the years above the flow: radio buttons, one panel per year, the latest shown */
.fl-years > input { position: absolute; opacity: 0; pointer-events: none; }
.fl-years > label { display: inline-block; margin: 14px 0 0 6px; padding: 4px 11px; border-radius: 99px; font-size: 13px; font-weight: 600;
  color: var(--muted); border: 1px solid var(--line); cursor: pointer; }
.fl-years > label:first-of-type { margin-left: 20px; }
.fl-years > input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.fl-years > input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.fl-years > .fl-year { display: none; }
.fl-foot { padding-top: 0; }

/* ---- the Overview's own short menu; sections land below the sticky top bar ---- */
.ov-jump { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.ov-jump a { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.ov-jump a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
#peers, #flow, #health, #debt-flow, #ownership-sum, #quotes, #profile, #timeline { scroll-margin-top: 90px; }
@media (max-width: 640px) {
  .ov-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .ov-jump a { white-space: nowrap; }
  #peers, #flow, #health, #debt-flow, #ownership-sum, #quotes, #profile, #timeline { scroll-margin-top: 130px; }
}

/* ---- Overview: who owns it (tickmark/standing.py ownership) ---- */
.ov-own { margin: 16px 0; }
.ov-own .card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.own-bar { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.own-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mx0), var(--mx3)); border-radius: 99px; }
.own-cap { margin: 6px 0 12px; }
.own-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.own-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2);
  border: 1px solid var(--line); color: var(--fg); }
.own-tile:hover { text-decoration: none; border-color: var(--accent); }
.own-tile b { font: 600 24px/1.2 var(--display); }
.own-tile b.pos { color: var(--green); } .own-tile b.neg { color: var(--red); }

/* ---- Overview: multiples at each fiscal year end (tickmark/glance.py valuation; needs prices) ---- */
.ov-val { margin-bottom: 16px; scroll-margin-top: 90px; }
.ov-val .card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.val-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.val-card { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.val-card figcaption { display: flex; align-items: baseline; gap: 8px; }
.val-now { font: 600 24px var(--display); }
.val-card svg { display: block; width: 100%; height: 70px; margin: 6px 0; }
.val-card polyline { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linejoin: round; }
.val-src { padding: 0 20px 14px; margin: 0; }

/* the debt note's own lines (tickmark/debt_notes.py) */
.dl-h { margin: 18px 0 8px; font-size: 15px; }
.dl-bar { display: flex; height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.dl-bar i { display: block; height: 100%; }
.dl-bar .fix, .dl-key .fix { background: var(--mx0); } .dl-bar .flo, .dl-key .flo { background: var(--mx2); }
.dl-key { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); margin: 6px 0 0; }
.dl-key i { display: inline-block; width: 10px; height: 10px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; background: var(--line-strong); }
.dl-table td:first-child { white-space: normal; min-width: 200px; }
.dl-more { display: none; }
.ov-flow:has(.dl-all[open]) .dl-more { display: table-row-group; }

/* Words that only fit on a wide screen */
@media (max-width: 560px) { .hide-sm { display: none; } }
.pager .pg-gap { display: none; color: var(--muted); padding: 0 2px; }
@media (max-width: 560px) { .pager .pg-far { display: none; } .pager .pg-gap { display: inline; } }

/* Feed: the day's routine 10-Qs in one line, and the full company list folded */
.feed-fold summary { cursor: pointer; color: var(--fg); }
.feed-fold .sub { margin-top: 4px; line-height: 1.7; }
.co-all > summary { cursor: pointer; padding: 10px 16px; color: var(--accent); font-size: 13px; font-weight: 600; }

/* Home: one ask at the end, before the links */
.home-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: center; margin: 32px 0 8px;
  padding: 20px 24px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.home-cta h2 { margin: 0 0 4px; font-size: 19px; }
.home-cta p { margin: 0; }
.home-cta-form { display: flex; gap: 8px; }
.home-cta-form input { min-width: 240px; }
.home-cta-alt { grid-column: 1 / -1; }
@media (max-width: 760px) { .home-cta { grid-template-columns: 1fr; padding: 16px; } .home-cta-form input { min-width: 0; flex: 1; } }

/* No hole after the last ready-made screen: it takes the rest of its row */
.hs-tiles > .hs-tile:last-child:nth-child(4n+3) { grid-column: span 2; }
.hs-tiles > .hs-tile:last-child:nth-child(4n+2) { grid-column: span 3; }
@media (max-width: 640px) {
  .hs-tiles > .hs-tile:last-child:nth-child(4n+2) { grid-column: auto; }
  .hs-tiles > .hs-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
a.hs-tile, a.hs-tile:hover { text-decoration: none; }
