/* Server-rendered /stock/TICKER document before the guest desk hydrates.
   :root alone is Navy (the card-back style, as in dark-card-back.css); the boot
   script gives new visitors black Dark, and Classic dark, Light and Gothic are
   also selected on :root. */
:root {
  color-scheme: dark;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --stock-surface: #0d1322; --stock-surface-raised: #111a2c; --stock-text: #efefed;
  --stock-muted: #a0a9bb; --stock-border: #253049; --stock-border-strong: #3d4a68; --stock-focus: #d8c089;
  --stock-hatch: rgba(196, 210, 238, .034);
}
:root[data-dark-style="classic"] {
  --stock-surface: #101114; --stock-surface-raised: #191a1e;
  --stock-muted: #a2a6ad; --stock-border: #303238; --stock-border-strong: #50545d; --stock-focus: #c4cfd4;
  --stock-hatch: transparent;
}
/* Black: the card-back tonal steps of dark-card-back.css on neutral greys. */
:root[data-dark-style="black"] {
  --stock-surface: #0a0a0a; --stock-surface-raised: #101010;
  --stock-muted: #a9a9a9; --stock-border: #282828; --stock-border-strong: #454545;
  --stock-hatch: rgba(209, 209, 209, .034);
}
:root[data-theme="light"] {
  color-scheme: light;
  --stock-surface: #f9f6f3; --stock-surface-raised: #fffdfa; --stock-text: #202124;
  --stock-muted: #726b65; --stock-border: #e1dad3; --stock-border-strong: #b9aca1; --stock-focus: #4f4944;
}
:root[data-theme="gothic"] {
  color-scheme: light;
  --stock-surface: #cdb078; --stock-surface-raised: #ead9b6; --stock-text: #322a20;
  --stock-muted: #4f4130; --stock-border: #94774d; --stock-border-strong: #644e31; --stock-focus: #5c4128;
}
body:has(.public-stock-document) { background: var(--stock-surface); color: var(--stock-text); margin: 0; font-family: system-ui, sans-serif; }
/* The navy canvas hatch, so the first paint matches the app's dark style. */
:root:not([data-theme="light"]):not([data-theme="gothic"]) body:has(.public-stock-document) {
  background-image: repeating-linear-gradient(45deg, var(--stock-hatch) 0 1px, transparent 1px 12px), repeating-linear-gradient(-45deg, var(--stock-hatch) 0 1px, transparent 1px 12px);
}
.public-stock-document { max-width: 960px; margin: auto; padding: clamp(16px, 4vw, 48px); line-height: 1.7; overflow-wrap: anywhere; }
.public-stock-document h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; margin-block: 16px 8px; }
.public-stock-document h2 { font-size: 20px; line-height: 1.3; margin-block: 0 8px; }
.public-stock-document a { color: inherit; text-underline-offset: 4px; }
.public-stock-document :focus-visible { outline: 2px solid var(--stock-focus); outline-offset: 4px; }
.public-stock-lead, .public-stock-note, .public-stock-breadcrumb { color: var(--stock-muted); }
.public-stock-note { font-size: 14px; }
.public-stock-breadcrumb ol, .public-stock-related ul { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.public-stock-breadcrumb { margin-top: 12px; font-size: 14px; }
.public-stock-breadcrumb li + li::before { content: "/"; margin-inline-end: 16px; color: var(--stock-border-strong); }
.public-stock-section, .public-stock-related { border-top: 1px solid var(--stock-border); padding-block: 20px; }
.public-stock-document dl { margin: 0; }
.public-stock-document dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-block: 12px; border-bottom: 1px solid var(--stock-border); }
.public-stock-document dl div:last-child { border-bottom: 0; }
.public-stock-document dt { color: var(--stock-muted); }
.public-stock-document dd { margin: 0; text-align: end; }
.public-stock-document time, .public-stock-document td, .public-stock-document tbody th { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.public-stock-table { overflow-x: auto; border: 1px solid var(--stock-border); border-radius: 8px; background: var(--stock-surface-raised); }
.public-stock-table:focus-visible { outline: 2px solid var(--stock-focus); outline-offset: 2px; }
.public-stock-table table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.public-stock-table caption { caption-side: top; padding: 10px 12px; text-align: start; color: var(--stock-muted); white-space: normal; }
.public-stock-table th, .public-stock-table td { padding: 8px 12px; border-top: 1px solid var(--stock-border); text-align: end; }
.public-stock-table th:first-child { text-align: start; }
.public-stock-table thead th { color: var(--stock-muted); font-weight: 600; }
.public-stock-table tbody th { font-weight: 400; }
/* While JavaScript loads the app, a desk-shaped placeholder replaces the crawlable
   document so the page does not flash one layout and then another. Without
   JavaScript, or if the app fails (public-stock-entry.js, 12 s head timeout),
   html[data-stock-boot] is absent and the document is the page. */
.public-stock-boot, .psb-status { display: none; }
html[data-stock-boot] .public-stock-document { display: none; }
html[data-stock-boot] .public-stock-boot { display: grid; grid-template-rows: 70px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; overflow: hidden; pointer-events: none; user-select: none; }
html[data-stock-boot] .psb-status { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.public-stock-boot { --psb-fill: color-mix(in srgb, var(--stock-text) 8%, var(--stock-surface)); --psb-shine: color-mix(in srgb, var(--stock-surface) 66%, transparent); }
.psb-bar { display: block; position: relative; flex-shrink: 0; max-width: 100%; height: 12px; overflow: hidden; border-radius: 4px; background: var(--psb-fill); }
.psb-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 15%, var(--psb-shine) 50%, transparent 85%); transform: translateX(-100%); animation: psb-shimmer 1.8s linear infinite; }
.psb-fine { height: 8px; }
.psb-heading { height: 22px; }
.psb-control { height: 32px; border-radius: 7px; }
.psb-value { height: 42px; border-radius: 6px; }
.psb-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 34px; border-bottom: 1px solid var(--stock-border); }
.psb-tabs { display: flex; gap: 18px; }
.psb-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 0; }
.psb-rail { display: flex; flex-direction: column; gap: 22px; padding: 18px 14px; border-right: 1px solid var(--stock-border); background: var(--stock-surface-raised); }
.psb-rail-row { display: flex; align-items: center; gap: 16px; }
.psb-rail-row > div { display: grid; flex: 1; gap: 10px; }
.psb-main { min-width: 0; padding: 28px 32px; }
.psb-ticker { display: grid; gap: 12px; margin-bottom: 32px; }
.psb-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.psb-columns section { display: grid; gap: 14px; align-content: start; }
.psb-row { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); align-items: center; gap: 16px; height: 42px; border-bottom: 1px solid color-mix(in srgb, var(--stock-border) 60%, transparent); }
.psb-row > .psb-bar:not(:first-child) { justify-self: end; }
@keyframes psb-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .psb-bar::after { animation: none; } }
@media (max-width: 760px) {
  .psb-topbar { padding: 0 16px; }
  .psb-tabs { display: none; }
  .psb-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .psb-rail { padding: 9px 12px; border-right: 0; border-bottom: 1px solid var(--stock-border); }
  .psb-rail > :not(:first-child) { display: none; }
  .psb-main { padding: 20px 16px; }
  .psb-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .public-stock-document dl div { flex-direction: column; }
  .public-stock-document dd { text-align: start; }
  .public-stock-table th, .public-stock-table td { padding: 8px; }
}
.public-stock-news { margin: 0; padding: 0; list-style: none; }
.public-stock-news li { padding-block: 8px; border-bottom: 1px solid var(--stock-border); font-size: 15px; }
.public-stock-news li:last-child { border-bottom: 0; }
.public-stock-news time, .public-stock-news-form { color: var(--stock-muted); font-family: var(--font-mono); font-size: 13px; }
.public-stock-news-label { padding: 0 6px; border: 1px solid var(--stock-border-strong); border-radius: 4px; font-size: 12px; }
/* FennEdge notes: one compact row per daily-recap appearance — the date links to the recap,
   rank/gap/change in mono, then the filing or halt (or the explicit "none") on its own line. */
.public-stock-recaps .public-stock-recap { display: grid; grid-template-columns: 10.5ch minmax(0, 1fr); gap: 2px 14px; align-items: baseline; padding-block: 10px; }
.public-stock-recap > a { font-family: var(--font-mono); font-size: 14px; font-weight: 600; text-decoration: none; }
.public-stock-recap > a:hover { text-decoration: underline; }
.public-stock-recap > a time { color: var(--stock-text); font-size: inherit; }
.public-stock-recap-facts { color: var(--stock-muted); font-family: var(--font-mono); font-size: 13px; }
.public-stock-recap-why { grid-column: 2; font-size: 14px; line-height: 1.5; }
.public-stock-recap-none { color: var(--stock-muted); font-style: italic; }
@media (max-width: 560px) {
  .public-stock-recaps .public-stock-recap { grid-template-columns: 1fr; }
  .public-stock-recap-why { grid-column: 1; }
}
