/* Ticker Tape — layout on top of house.css + theme.css */

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--ink);
  padding: var(--s-2) var(--s-3); border-radius: var(--r); z-index: 100;
}
.skip:focus { left: var(--s-3); top: var(--s-3); }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--s-4); }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* header */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar-in { display: flex; align-items: center; gap: var(--s-4); height: 64px; }
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -.03em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  line-height: 1;
}
.wordmark .mark { color: var(--accent); font-size: 22px; }
.wordmark .accent { color: var(--accent); }
.nav { display: flex; gap: var(--s-3); margin-left: var(--s-4); }
.nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: var(--t-sm);
  padding: 6px 4px; border-radius: 6px;
}
.nav a:hover { color: var(--ink); }
.bar-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }

.stamp {
  font-family: var(--sans);
  font-size: max(14px,11px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  background: var(--wash);
  padding: 4px 8px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stamp.is-live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--good);
  vertical-align: 1px;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.btn.is-busy { opacity: .75; cursor: progress; }
@media (prefers-reduced-motion: reduce) {
  .stamp.is-live::before { animation: none; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 var(--s-3);
  border-radius: var(--r); border: 1px solid transparent;
  font: 600 15px/1 var(--sans); cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--edge); }
.btn-secondary:hover { background: var(--sunk); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--edge); }
.btn-ghost:hover { background: var(--sunk); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* hero */
.hero { padding: var(--s-6) 0 var(--s-5); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-6);
  align-items: start;
}
.kicker {
  display: inline-block;
  background: var(--wash); color: var(--accent);
  font-size: max(14px,11px); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
  margin: var(--s-3) 0 var(--s-3);
}
h1 em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 700; }
.lede { color: var(--ink-2); font-size: var(--t-lg); max-width: 52ch; margin: 0 0 var(--s-4); }

.add-form { margin-bottom: var(--s-3); max-width: 420px; }
.add-form label { display: block; font-weight: 600; font-size: var(--t-sm); margin-bottom: 6px; }
.add-row { display: flex; gap: var(--s-2); }
.add-row input {
  flex: 1; min-height: 44px; padding: 0 var(--s-3);
  border: 1px solid var(--edge); border-radius: var(--r);
  background: var(--surface); color: var(--ink); font: 16px/1 var(--sans);
  text-transform: uppercase; letter-spacing: .04em;
}
.add-row input::placeholder { text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.hint { color: var(--ink-2); font-size: var(--t-sm); margin: 6px 0 0; }
.form-msg { min-height: 1.4em; font-size: var(--t-sm); margin: 6px 0 0; }
.form-msg.err { color: var(--bad); }
.form-msg.ok { color: var(--good); }

.hero-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-3); }
.hero-meta { color: var(--ink-2); font-size: var(--t-sm); margin: var(--s-3) 0 0; }

/* hero card */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 28px -18px rgba(13,17,23,.28);
  overflow: hidden;
}
.hero-card-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line);
  background: var(--sunk);
}
.hero-card-time { font-size: var(--t-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hero-card-body { padding: var(--s-2) var(--s-4); }
.hero-card-foot {
  padding: var(--s-2) var(--s-4);
  border-top: 1px solid var(--line);
  font-size: max(14px,12px); color: var(--ink-2);
  display: flex; gap: 6px; flex-wrap: wrap;
}
.dot-sep { opacity: .5; }

.mini-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--s-3);
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.mini-row:last-child { border-bottom: 0; }
.mini-sym { font-weight: 700; font-size: var(--t-md); }
.mini-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-chg { font-size: var(--t-sm); font-weight: 600; min-width: 78px; text-align: right; }
.up { color: var(--good); }
.down { color: var(--bad); }
.flat { color: var(--ink-2); }

/* sections */
.section { padding: var(--s-6) 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-3);
  margin-bottom: var(--s-4); flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 750; letter-spacing: -.03em; line-height: 1.05; margin: 6px 0 0;
}
.section-actions { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }

/* board */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.board { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board th, .board td { padding: 12px var(--s-3); text-align: left; border-bottom: 1px solid var(--line); }
.board th { font-size: max(14px,11px); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; background: var(--sunk); }
.board tr:last-child td { border-bottom: 0; }
.board .num { text-align: right; }
.board td.num { text-align: right; }
.board .col-actions { text-align: right; width: 1%; }
.board .sym { font-weight: 700; font-size: var(--t-md); }
.board .price { font-weight: 600; }
.board .chg { font-weight: 600; }
.board .time { color: var(--ink-2); font-size: var(--t-sm); }
.board .unavail { color: var(--ink-2); font-size: var(--t-sm); }
.remove {
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 16px; line-height: 1;
}
.remove:hover { color: var(--bad); border-color: var(--bad); }
.note { color: var(--ink-2); font-size: var(--t-sm); margin: var(--s-2) 0 0; max-width: 65ch; }
.credit { color: var(--ink-2); font-size: max(14px,12px); margin: var(--s-2) 0 0; }

/* movers */
.movers { margin-top: var(--s-5); }
.movers h3 { font-family: var(--display); font-size: var(--t-xl); font-weight: 750; letter-spacing: -.02em; margin: 0 0 var(--s-3); }
.movers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--s-3); }
.mover {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--s-3);
}
.mover .m-sym { font-weight: 700; font-size: var(--t-md); }
.mover .m-chg { font-size: var(--t-2xl); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.mover .m-price { color: var(--ink-2); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }

/* tape */
.tape-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.panel {
  background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); }
.panel-head h3 { font-family: var(--display); font-size: var(--t-xl); font-weight: 750; letter-spacing: -.02em; margin: 0; }
.inline-form { display: flex; gap: var(--s-2); }
.inline-form input {
  flex: 1; min-height: 44px; padding: 0 var(--s-3);
  border: 1px solid var(--edge); border-radius: var(--r);
  background: var(--surface); color: var(--ink); font: 16px/1 var(--sans);
}
.panel-body { display: flex; flex-direction: column; gap: var(--s-2); }
.post, .article {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s-3);
}
.post-head { display: flex; justify-content: space-between; gap: var(--s-2); font-size: var(--t-sm); color: var(--ink-2); margin-bottom: 6px; }
.post-author { font-weight: 700; color: var(--ink); }
.post-text { margin: 0 0 8px; font-size: var(--t-md); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.post-meta { display: flex; gap: var(--s-3); font-size: max(14px,12px); color: var(--ink-2); flex-wrap: wrap; }
.post-meta a { color: var(--accent); text-decoration: none; font-weight: 600; }
.post-meta a:hover { text-decoration: underline; }
.article h4 { font-family: var(--display); font-size: var(--t-md); font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; line-height: 1.3; }
.article .a-meta { font-size: max(14px,12px); color: var(--ink-2); margin-bottom: 6px; }
.article p { margin: 0 0 6px; font-size: var(--t-sm); color: var(--ink-2); }
.article a { color: var(--accent); font-weight: 600; text-decoration: none; font-size: var(--t-sm); }
.article a:hover { text-decoration: underline; }

/* read */
.read-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--s-4);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.read-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-3); }
.read-body { min-height: 120px; font-size: var(--t-md); line-height: 1.6; max-width: 72ch; }
.read-body h4 { font-family: var(--display); font-size: var(--t-lg); margin: var(--s-3) 0 6px; letter-spacing: -.01em; }
.read-body p { margin: 0 0 var(--s-2); }
.read-body ul { margin: 0 0 var(--s-2); padding-left: 20px; }
.read-body strong { color: var(--ink); }
.read-foot { display: flex; justify-content: space-between; gap: var(--s-3); align-items: center; margin-top: var(--s-3); flex-wrap: wrap; }
.thinking { color: var(--ink-2); font-style: italic; }

/* faq */
.faq-wrap { max-width: 760px; }
.faq-wrap h2 { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); font-weight: 750; letter-spacing: -.03em; margin: 6px 0 var(--s-4); }
.faq { border-bottom: 1px solid var(--line); padding: var(--s-3) 0; }
.faq summary { cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 {
  display: inline; font-family: var(--display); font-size: var(--t-lg); font-weight: 700;
  letter-spacing: -.01em; margin: 0;
}
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--ink-2); margin: var(--s-2) 0 0; max-width: 65ch; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--sunk); padding: var(--s-5) 0; margin-top: var(--s-5); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-4); align-items: start; }
.foot-mark { font-size: 24px; margin: 0 0 6px; }
.foot address { font-style: normal; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.7; }
.foot address a { color: var(--accent); text-decoration: none; }
.foot address a:hover { text-decoration: underline; }
.foot-note { grid-column: 1 / -1; margin: 0; max-width: 65ch; }

.muted { color: var(--ink-2); }

/* responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .tape-grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .wordmark { font-size: 22px; }
  .wordmark .mark { font-size: 18px; }
  .bar-in { height: 58px; }
  .hero { padding-top: var(--s-4); }
  .board th:nth-child(5), .board td:nth-child(5) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
/* freehand photo slot */
.hero-media img,[class*="hero-media"] img,[class*="hero-visual"] img,[class*="hero-image"] img{display:block;width:100%;height:auto;max-height:72vh;object-fit:cover;border-radius:var(--r-card,14px)}

img[data-photo]:not([src]),img[data-photo][src=""]{display:block;max-width:100%;background-color:var(--sunk, #ece9e4);background-image:repeating-linear-gradient(45deg,rgba(127,127,127,.08) 0 10px,transparent 10px 20px);color:transparent;font-size:0;border:0}
img[data-photo]:not([src]):not([width]),img[data-photo][src=""]:not([width]){width:100%;aspect-ratio:4/3}

/* tao1 photo tile (JAMES_FIN_PHOTO_SRC_KEEP v2) */
img[data-photo]:not([src]),img[data-photo][src=""]{display:block;max-width:100%;background-color:var(--sunk, #ece9e4);background-image:repeating-linear-gradient(45deg,rgba(127,127,127,.08) 0 10px,transparent 10px 20px);color:transparent;font-size:0;border:0}
img[data-photo]:not([src]):not([width]),img[data-photo][src=""]:not([width]){width:100%;aspect-ratio:4/3}
