/* SubDyL website. Same tokens as the app (constants/theme.ts): editorial, dark, Fraunces + Inter. */
@font-face { font-family: "Fraunces"; src: url("/site/fonts/Fraunces_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/site/fonts/Fraunces_700Bold_Italic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/site/fonts/Fraunces_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/site/fonts/Inter_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/site/fonts/Inter_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/site/fonts/Inter_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/site/fonts/Inter_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #141E29; --bg-raised: #1A2535; --card: #1E2D3D; --border: #2A3D50;
  --text: #E8D5B5; --text-2: #9AABBF; --muted: #5E7A94; --headline: #F0E2C8;
  --accent: #B33A3A; --accent-light: #D44A4A; --gold: #D4A843; --gold-soft: rgba(212,168,67,.16);
  --success: #4CAF7D; --pub: #4A90C4; --forum: #7E6CB5; --video: #B33A3A;
  --display: "Fraunces", Georgia, "Times New Roman", serif; --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1180px; --gutter: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--headline); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--headline); font-weight: 700; letter-spacing: -0.01em; margin: 0; line-height: 1.15; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rule { display: inline-block; width: 18px; height: 2px; background: var(--gold); border-radius: 1px; vertical-align: middle; margin-right: 8px; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }

/* Masthead */
.top { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { font-family: var(--display); font-size: 28px; color: var(--headline); letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.brand .mark { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.brand small { font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
@media (max-width: 1100px) { .brand small { display: none; } }
.brand { white-space: nowrap; }
nav.primary { display: flex; gap: 22px; margin-left: 8px; }
nav.primary a { font-weight: 500; font-size: 14px; color: var(--text-2); padding: 22px 0; border-bottom: 2px solid transparent; }
nav.primary a.on, nav.primary a:hover { color: var(--headline); border-bottom-color: var(--gold); }
.top .spacer { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.search input { background: transparent; border: 0; color: var(--text); font: inherit; font-size: 14px; width: 160px; outline: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); color: var(--headline); background: var(--card); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-light); color: #fff; }
.btn.gold { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.menu-toggle { display: none; }

/* Edition line */
.edition { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 10px; border-bottom: 1px solid var(--border); }
.edition h1 { font-size: 36px; }
.edition .date { color: var(--muted); font-size: 13px; }

/* Sections and tabs */
.section-head { display: flex; align-items: center; gap: 10px; margin: 36px 0 14px; }
.section-head h2 { font-size: 22px; }
.section-head .more { margin-left: auto; font-size: 13px; color: var(--gold); font-weight: 600; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--border); margin: 12px 0 20px; }
.tabs a { padding: 10px 0; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--headline); border-bottom-color: var(--gold); font-weight: 600; }

/* Front page grid */
.front { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; margin-top: 24px; }
.lead .pic { aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: var(--card); margin-bottom: 14px; position: relative; }
.lead .pic img { width: 100%; height: 100%; object-fit: cover; }
.lead h2 { font-size: 34px; line-height: 1.12; margin: 6px 0 10px; }
.lead .excerpt { color: var(--text-2); font-size: 16px; max-width: 60ch; }
.meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.meta .dot { width: 6px; height: 6px; border-radius: 3px; display: inline-block; }
.meta .time { margin-left: auto; color: var(--muted); font-weight: 400; }
.dot.publications { background: var(--pub); } .dot.forums { background: var(--forum); } .dot.video { background: var(--video); }
.play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(179,58,58,.88); display: grid; place-items: center; color: #fff; }
.play.small { width: 26px; height: 26px; margin: 0; left: auto; top: auto; right: 8px; bottom: 8px; }
.play svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; } .play.small svg { width: 10px; height: 10px; }

/* Row cards */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 1fr 112px; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: start; }
.row.noimg { grid-template-columns: 1fr; }
.row h3 { font-size: 18px; line-height: 1.22; margin: 6px 0 4px; }
.row .excerpt { color: var(--text-2); font-size: 14px; }
.row .thumb { width: 112px; height: 112px; border-radius: 10px; overflow: hidden; background: var(--card); position: relative; }
.row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.rail .row { grid-template-columns: 1fr 84px; }
.rail .row .thumb { width: 84px; height: 84px; }
.rail .row h3 { font-size: 16px; }

/* Grid of article cards (section pages) */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 28px; }
.card { display: flex; flex-direction: column; gap: 8px; }
.card .pic { aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: var(--card); position: relative; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 19px; line-height: 1.2; }
.card .excerpt { color: var(--text-2); font-size: 14px; }

/* Market table */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--border); font-weight: 600; }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .w { display: flex; align-items: center; gap: 12px; }
.tile { width: 44px; height: 44px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 700; color: var(--muted); font-size: 14px; overflow: hidden; flex: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.price { font-weight: 700; color: var(--headline); font-size: 15px; }
.up { color: var(--success); } .down { color: var(--accent-light); } .flat { color: var(--muted); }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); }
.pill.on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.chips a { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); }
.chips a.on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }

/* Watch page */
.watch-head { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; margin-top: 24px; }
.watch-head .hero { width: 220px; height: 220px; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--border); display: grid; place-items: center; font-family: var(--display); font-size: 48px; color: var(--muted); }
.watch-head .hero img { width: 100%; height: 100%; object-fit: cover; }
.watch-head h1 { font-size: 34px; }
.pricecard { background: var(--card); border: 1px solid var(--gold); border-radius: 14px; padding: 18px 20px; margin-top: 16px; display: grid; gap: 4px; }
.pricecard .big { font-size: 38px; font-weight: 700; color: var(--headline); font-family: var(--sans); letter-spacing: -0.02em; }
.pricecard .sub { color: var(--text-2); font-size: 13px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px 20px; margin-top: 18px; }
.specs div { border-top: 1px solid var(--border); padding-top: 8px; }
.specs .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.specs .v { color: var(--headline); font-weight: 500; }
.chart { width: 100%; height: 180px; display: block; margin-top: 10px; }
.listing { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: center; }
.listing .tile { width: 56px; height: 56px; }
.listing .t { font-weight: 500; color: var(--text); font-size: 14px; }
.listing .m { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Directory lists */
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.dir a.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.dir .fav { width: 28px; height: 28px; border-radius: 7px; background: var(--bg-raised); flex: none; object-fit: contain; padding: 4px; }
.dir .n { font-weight: 600; color: var(--headline); font-size: 15px; }
.dir .s { color: var(--muted); font-size: 12px; }

/* Prose pages */
.prose { max-width: 72ch; }
.prose h1 { font-size: 40px; margin: 28px 0 10px; }
.prose h2 { font-size: 24px; margin: 28px 0 8px; }
.prose p { margin: 0 0 14px; color: var(--text); }
.prose ul { padding-left: 20px; } .prose li { margin: 6px 0; }

/* App promo */
.promo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 36px; margin: 48px 0; }
.promo h2 { font-size: 30px; margin-bottom: 8px; }
.promo p { color: var(--text-2); margin-bottom: 18px; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.promo .phone { justify-self: center; width: 240px; border-radius: 28px; border: 1px solid var(--border); box-shadow: 0 30px 60px rgba(0,0,0,.4); }

/* Footer */
footer { border-top: 1px solid var(--border); margin-top: 56px; padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
footer a { color: var(--text-2); }
footer .spacer { flex: 1; }

.empty { color: var(--muted); padding: 36px 0; text-align: center; }
.pager { display: flex; gap: 12px; margin: 24px 0; }

@media (max-width: 900px) {
  .front { grid-template-columns: 1fr; gap: 24px; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .watch-head { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .promo .phone { width: 200px; }
}
@media (max-width: 640px) {
  .top .wrap { height: 56px; gap: 12px; }
  nav.primary { display: none; }
  nav.primary.open { display: flex; position: absolute; left: 0; right: 0; top: 56px; background: var(--bg); flex-direction: column; gap: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--border); }
  nav.primary.open a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .search { display: none; }
  .edition h1 { font-size: 30px; }
  .lead h2 { font-size: 26px; }
  .grid3 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr 88px; } .row .thumb { width: 88px; height: 88px; }
  .table .hide-m { display: none; }
}

/* A picture the publisher refused: drop the frame rather than show a broken icon. */
.thumb.broken, .pic.broken { display: none; }
.tile.broken img { display: none; }
