:root {
  --ink: #1c1914;
  --paper: #f6f1e7;
  --paper-2: #fffaf2;
  --rule: #e2d8c6;
  --forest: #1e3a2f;
  --forest-2: #14281f;
  --amber: #c9781a;
  --up: #1f7a4d;
  --down: #a33b32;
  --muted: #6d6458;
  --shadow: 0 18px 40px rgba(28, 25, 20, 0.08);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
.tape { overflow: hidden; background: #0e1c17; color: #f6f1e7; border-bottom: 1px solid #2a4a3c; }
.tape-price { background: #14281f; }
.tape-track { display: inline-flex; gap: 2rem; align-items: center; padding: 0.45rem 0; white-space: nowrap; animation: tape-scroll 125s linear infinite; }
.tape-slow { animation-duration: 120s; }
.tape:hover .tape-track, .tape:focus-within .tape-track { animation-play-state: paused; }
.tape a, .tape span { font-family: ui-sans-serif, sans-serif; font-size: 0.85rem; text-decoration: none; color: inherit; }
@keyframes tape-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none; }
  .tape { overflow-x: auto; }
}
.avatar { display: flex; gap: 1rem; align-items: center; padding: 0.8rem 1.2rem; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.avatar-video { width: min(100%, 280px); max-height: 280px; background: #111; border-radius: 12px; }
.avatar-still { width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #e7b15a, #1e3a2f 62%); flex: none; animation: avatar-pulse 2.4s ease-in-out infinite; }
@keyframes avatar-pulse { 50% { transform: scale(1.04); } }
.captions { margin: 0.2rem 0; font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) { .avatar-still { animation: none; } }
a { color: inherit; }
img { max-width: 100%; }
.top {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 0.85rem 1.4rem; background: var(--forest); color: #f6f1e7;
  position: sticky; top: 0; z-index: 5;
}
.brand { font-weight: 700; letter-spacing: -0.03em; font-size: 1.35rem; text-decoration: none; }
.brand i { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #e7b15a; margin-right: 0.45rem; box-shadow: 0 0 0 4px rgba(231,177,90,.25); }
.nav { display: flex; gap: 0.9rem; flex-wrap: wrap; font-family: ui-sans-serif, "Segoe UI", sans-serif; font-size: 0.92rem; }
.nav a { color: #f6f1e7; text-decoration: none; opacity: 0.86; }
.nav a.on, .nav a:hover { opacity: 1; border-bottom: 2px solid #e7b15a; }
.grow { flex: 1; }
.who { font-family: ui-sans-serif, sans-serif; font-size: 0.85rem; opacity: 0.9; }
.shell { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.25rem; padding: 1.25rem; max-width: 1280px; margin: 0 auto; }
.markets { display: flex; gap: 0.85rem; flex-wrap: wrap; align-items: center; padding: 0.4rem 1.4rem; background: var(--forest-2); font-family: ui-sans-serif, sans-serif; font-size: 0.82rem; }
.markets a { color: #f6f1e7; text-decoration: none; opacity: 0.78; }
.markets a.on, .markets a:hover { opacity: 1; border-bottom: 2px solid #e7b15a; }
.lang { position: relative; font-family: ui-sans-serif, sans-serif; }
.lang summary { cursor: pointer; list-style: none; color: #f6f1e7; }
.lang summary::-webkit-details-marker { display: none; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 0.35rem); background: var(--paper-2); color: var(--ink); border: 1px solid var(--rule); border-radius: 10px; min-width: 160px; max-height: 280px; overflow: auto; z-index: 40; padding: 0.25rem 0; }
.lang-menu a { display: block; padding: 0.35rem 0.75rem; text-decoration: none; }
.copilot-btn { background: transparent; color: #f6f1e7; border: 1px solid rgba(246,241,231,.4); border-radius: 999px; padding: 0.35rem 0.7rem; font-family: ui-sans-serif, sans-serif; cursor: pointer; }
.copilot { position: fixed; top: 0; right: 0; height: 100vh; width: min(400px, 100%); background: var(--paper); border-left: 1px solid var(--rule); z-index: 60; display: none; flex-direction: column; padding: 0.8rem; box-shadow: var(--shadow); }
.copilot.open { display: flex; }
.copilot h2 { margin: 0; font-size: 1rem; }
.copilot .answer { flex: 1; overflow: auto; min-height: 8rem; }
.copilot-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
@media (max-width: 800px) { .copilot.open { width: 100%; } }
.panel { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 16px; padding: 0.9rem 1rem; box-shadow: var(--shadow); }
.panel h2 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem; font-family: ui-sans-serif, sans-serif; }
.side a, .langs a { display: block; text-decoration: none; padding: 0.28rem 0; font-family: ui-sans-serif, sans-serif; font-size: 0.92rem; }
.side a.on { color: var(--amber); font-weight: 700; }
.search { display: flex; gap: 0.4rem; margin-bottom: 0.8rem; }
.search input, .auth input, .desk input {
  flex: 1; border: 1px solid var(--rule); background: white; border-radius: 999px; padding: 0.55rem 0.9rem;
  font: inherit; font-family: ui-sans-serif, sans-serif;
}
button, .btn {
  background: var(--forest); color: #f6f1e7; border: 0; border-radius: 999px; padding: 0.55rem 0.95rem;
  font-family: ui-sans-serif, sans-serif; cursor: pointer; text-decoration: none; display: inline-block;
}
.card { padding: 0.95rem 0; border-bottom: 1px solid var(--rule); }
.card:last-child { border-bottom: 0; }
.kicker { font-family: ui-sans-serif, sans-serif; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--amber); }
.muted { color: var(--muted); font-family: ui-sans-serif, sans-serif; }
.eyebrow { font-family: ui-sans-serif, sans-serif; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card h3 { margin: 0.2rem 0; font-size: 1.28rem; line-height: 1.25; }
.card h3 a { text-decoration: none; }
.card p { margin: 0.25rem 0 0; color: #3c362e; }
.meta { color: var(--muted); font-family: ui-sans-serif, sans-serif; font-size: 0.82rem; margin-top: 0.35rem; }
.banner { background: #efe4cf; border-radius: 12px; padding: 0.55rem 0.8rem; font-family: ui-sans-serif, sans-serif; font-size: 0.85rem; margin-bottom: 0.6rem; }
.mover { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px dashed var(--rule); font-family: ui-sans-serif, sans-serif; font-size: 0.88rem; }
.up { color: var(--up); } .down { color: var(--down); }
.article { max-width: 760px; margin: 0 auto; padding: 1.5rem; }
.article h1 { font-size: 2.1rem; line-height: 1.15; }
.prose { font-size: 1.08rem; line-height: 1.55; }
.auth, .desk-wrap, .narrow { max-width: 640px; margin: 1.5rem auto; padding: 0 1rem; }
.auth form, .desk form { display: grid; gap: 0.6rem; }
.err { color: var(--down); font-family: ui-sans-serif, sans-serif; }
.answer { white-space: pre-wrap; background: white; border-radius: 12px; padding: 0.8rem 1rem; border: 1px solid var(--rule); }
footer { text-align: center; color: var(--muted); font-family: ui-sans-serif, sans-serif; font-size: 0.8rem; padding: 1.5rem; }
.dl-wrap { max-width: 1080px; margin: 0 auto; padding: 1.4rem 1rem 2rem; }
.dl-wrap h1 { margin: 0.2rem 0 0.4rem; font-size: 2rem; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.9rem; margin-top: 1rem; }
.dl-card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); }
.dl-card h2 { margin: 0 0 0.4rem; font-size: 1.25rem; letter-spacing: 0; text-transform: none; color: var(--ink); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.pill { font-family: ui-sans-serif, sans-serif; font-size: 0.75rem; background: #efe4cf; border-radius: 999px; padding: 0.15rem 0.5rem; }
.dl-btn { display: inline-block; background: var(--forest); color: #f6f1e7; text-decoration: none; border-radius: 10px; padding: 0.55rem 0.9rem; min-height: 44px; line-height: 1.4; font-family: ui-sans-serif, sans-serif; }
.dl-code { display: flex; gap: 0.4rem; align-items: stretch; margin-top: 0.7rem; }
.dl-code pre { flex: 1; margin: 0; background: var(--forest-2); color: #f6f1e7; border-radius: 10px; padding: 0.65rem 0.7rem; overflow-x: auto; font-size: 0.78rem; line-height: 1.35; }
.copy { min-height: 44px; min-width: 4.5rem; border: 0; border-radius: 10px; background: #e7b15a; color: #1c1914; font-weight: 700; font-family: ui-sans-serif, sans-serif; }
.tv-stage { position: relative; background: #111; border-radius: 12px; overflow: hidden; max-width: 960px; margin: 1rem auto; }
.tv-stage video { width: 100%; max-height: 70vh; display: block; background: #111; }
.lower-third { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.55rem 0.8rem; background: rgba(14, 28, 23, 0.82); color: #f6f1e7; font-family: ui-sans-serif, sans-serif; font-size: 0.95rem; }
.tv-strip { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.4rem 1rem 1rem; }
.tv-chip { border: 1px solid var(--rule); background: var(--paper-2); border-radius: 999px; padding: 0.35rem 0.7rem; font-family: ui-sans-serif, sans-serif; cursor: pointer; white-space: nowrap; }
.tv-chip.on { border-color: var(--forest); }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side-right { order: 3; }
  .top { flex-wrap: wrap; }
}
