/* OverTheLast, design system. Performance-first: no webfonts, no framework. */

:root {
  --navy: #1d2330;
  --navy-2: #262d3d;
  --card: #2c3445;
  --line: #3a4358;
  --ink: #eef1f6;
  --muted: #9aa4b8;
  --red: #e23744;
  --green: #56b15a;
  --gold: #e8b54a;
  --radius: 10px;
  --wrap: 1080px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--navy);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

a { color: #7fb3ff; }
a:hover { color: #a8ccff; }

h1, h2, h3 { line-height: 1.25; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 .4em; }
h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
/* Silks-diamond accent before section headings (house style) */
.wrap > h2 { display: flex; align-items: center; gap: .55em; }
.wrap > h2::before {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  background: var(--green);
  transform: rotate(45deg);
  border-radius: 1px;
}
h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }

/* --- Age / safer-gambling strip ----------------------------------------- */
.age-strip {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 6px 12px;
}
.age-strip a { color: #fff; text-decoration: none; }
.age-strip a:hover { text-decoration: underline; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  background: var(--navy-2);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand .brand-the { color: var(--red); }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
}
.site-nav a:hover { color: var(--ink); }

/* --- Hub hero ------------------------------------------------------------ */
.hub-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 40px;
  border-bottom: 3px solid var(--green);
  background:
    radial-gradient(125% 150% at 100% 0%, rgba(86, 177, 90, 0.13), transparent 55%),
    linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
}
/* Silks texture + faint red speed-streaks (brand motion lines) */
.hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, transparent 0 26px, rgba(226, 55, 68, 0.05) 26px 28px),
    url("/assets/img/silks-pattern.svg");
  background-size: auto, 38px 38px;
  pointer-events: none;
}
/* Horseshoe watermark, bleeding off the top-right */
.hub-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  background: url("/assets/img/horseshoe.svg") no-repeat center / contain;
  pointer-events: none;
}
.hub-hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 800;
  color: var(--green);
  margin: 0 0 8px;
}
.hub-hero p.lede { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin: .2em 0 0; }

/* --- Fast facts (the LLM-citable answer block) -------------------------- */
.fast-facts {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.fast-facts .ff-head {
  background: var(--navy-2);
  padding: 10px 16px;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.fast-facts dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.fast-facts div {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.fast-facts dt {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 700;
}
.fast-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }

/* --- Generic content ---------------------------------------------------- */
main { padding: 8px 0 50px; }
.prose { max-width: 72ch; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.prose th { color: var(--muted); text-transform: uppercase; font-size: .74rem; letter-spacing: .05em; }

/* --- Winners table ------------------------------------------------------ */
.winners { width: 100%; border-collapse: collapse; margin: .5em 0 1.5em; }
.winners caption { text-align: left; color: var(--muted); font-size: .85rem; padding-bottom: 6px; }
.winners th, .winners td { padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.winners thead th {
  color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .05em;
}
.winners tbody tr:hover { background: var(--navy-2); }

/* --- FAQ ---------------------------------------------------------------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 8px 0;
  background: var(--card);
}
.faq summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--green); font-weight: 900; }
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-body { padding: 0 16px 14px; color: var(--muted); }

/* --- Operator / betting table ------------------------------------------ */
.operators { display: grid; gap: 12px; margin: 1em 0; }
.operator {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.operator .op-name { font-weight: 800; font-size: 1.05rem; }
.operator .op-offer { flex: 1; min-width: 220px; color: var(--muted); font-size: .92rem; }
.operator .op-terms { width: 100%; font-size: .72rem; color: var(--muted); }
.btn {
  display: inline-block;
  background: var(--green);
  color: #0d1f0e;
  font-weight: 800;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: .9rem;
}
.btn:hover { background: #65c269; color: #0d1f0e; }
.compliance-note {
  border-left: 3px solid var(--gold);
  background: var(--navy-2);
  padding: 10px 14px;
  font-size: .82rem;
  color: var(--muted);
  border-radius: 0 8px 8px 0;
  margin: 1em 0;
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--navy-2);
  border-top: 3px solid var(--green);
  padding: 28px 0;
  font-size: .85rem;
  color: var(--muted);
}
.site-footer .safer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
  background: var(--card);
}
.site-footer .safer strong { color: var(--ink); }
.site-footer a { color: var(--muted); }

/* --- Homepage cards ----------------------------------------------------- */
.hub-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 1.4em 0;
}
.hub-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
/* Turf accent bar that grows in on hover */
.hub-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .16s ease;
}
.hub-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}
.hub-card:hover::before { transform: scaleY(1); }
.hub-card .hc-tag {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 800; color: var(--green);
}
.hub-card h3 { margin: 6px 0 4px; }
.hub-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* --- Article byline & related ------------------------------------------- */
.byline {
  color: var(--muted);
  font-size: .85rem;
  margin: 10px 0 0;
}
.byline strong { color: var(--ink); }
.related {
  margin: 2.2em 0 0;
  border-top: 1px solid var(--line);
  padding-top: 1.2em;
}
.related h2 { margin-top: 0; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--card);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.related a:hover { border-color: var(--green); }
.sources { font-size: .9rem; color: var(--muted); }
.sources li { margin: 4px 0; }

/* --- Tool / calculator --------------------------------------------------- */
.tool {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 20px;
  margin: 1.2em 0;
}
.tool label { display: block; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 5px; }
.tool input, .tool select {
  width: 100%;
  padding: 11px 12px;
  font-size: 1rem;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}
.tool .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool textarea {
  width: 100%;
  min-height: 120px;
  padding: 11px 12px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  resize: vertical;
}
.tool .actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
button.btn { cursor: pointer; font-family: inherit; border: 0; }
.btn-secondary { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: var(--green); background: var(--navy); color: var(--ink); }
.tool .checkrow { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.tool .checkrow input { width: auto; }
.tool .checkrow label { margin: 0; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink); }
.tool-result {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tool-result .stat { background: var(--navy); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.tool-result .stat span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.tool-result .stat strong { font-size: 1.5rem; color: var(--green); }

@media (max-width: 560px) {
  .tool .row { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* --- Tips: status bar --------------------------------------------------- */
.status-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--green);
  background: var(--card); border-radius: var(--radius);
  padding: 12px 16px; margin: 22px 0;
}
.status-bar strong { font-size: 1.02rem; }
.status-bar .status-meta { color: var(--muted); font-size: .85rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.status-dot.live { background: var(--green); box-shadow: 0 0 0 0 rgba(86,177,90,.6); animation: pulse 2s infinite; }
.status-dot.amber { background: var(--gold); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(86,177,90,.55); }
  70% { box-shadow: 0 0 0 7px rgba(86,177,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(86,177,90,0); }
}
@media (prefers-reduced-motion: reduce) { .status-dot.live { animation: none; } }

/* --- Tips table -------------------------------------------------------- */
.tips-table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; }
.tips-table caption { text-align: left; color: var(--muted); font-size: .8rem; padding-bottom: 8px; }
.tips-table thead th {
  text-align: left; color: var(--muted); text-transform: uppercase;
  font-size: .68rem; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.tips-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .94rem; }
.tips-table tbody tr:hover { background: var(--navy-2); }
.tips-table .t-sub { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.tips-table .t-time { white-space: nowrap; font-weight: 700; }
.tips-table .t-price strong { font-size: 1.02rem; }
.tips-table .t-edge { font-weight: 700; color: var(--green); white-space: nowrap; }

/* --- Tier + result pills ----------------------------------------------- */
.tier-pill, .result-pill {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .03em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.tier-strong { background: rgba(86,177,90,.16); color: #7fd083; border: 1px solid rgba(86,177,90,.5); }
.tier-moderate { background: rgba(232,181,74,.14); color: var(--gold); border: 1px solid rgba(232,181,74,.45); }
.tier-speculative { background: rgba(154,164,184,.14); color: var(--muted); border: 1px solid var(--line); }
.result-win { background: rgba(86,177,90,.16); color: #7fd083; border: 1px solid rgba(86,177,90,.5); }
.result-loss { background: rgba(226,55,68,.14); color: #f08a92; border: 1px solid rgba(226,55,68,.45); }
.result-void, .result-pending { background: rgba(154,164,184,.14); color: var(--muted); border: 1px solid var(--line); }

/* --- Callout (empty / no-bets states) ---------------------------------- */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  background: var(--card); border-radius: var(--radius);
  padding: 4px 20px 16px; margin: 1.4em 0;
}
.callout h2 { margin-top: .8em; }
.callout h2::before { display: none; }
.callout p { color: var(--muted); max-width: 70ch; }

/* --- Tracker scorecards ------------------------------------------------ */
.scorecards {
  display: grid; gap: 12px; margin: 1.4em 0;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.score {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 16px;
}
.score .s-label {
  display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 700; margin-bottom: 6px;
}
.score strong { font-size: 1.7rem; font-weight: 800; }

.pos { color: var(--green); }
.neg { color: var(--red); }
.tool-result .stat strong.neg { color: var(--red); }
.tool-result .stat strong.pos { color: var(--green); }

.verdict {
  border-radius: var(--radius); padding: 14px 16px; margin: 1.2em 0;
  background: var(--navy-2); border: 1px solid var(--line); font-size: 1.02rem;
}
.verdict.pos { border-left: 3px solid var(--green); }
.verdict.neg { border-left: 3px solid var(--red); }

/* --- Equity curve chart ------------------------------------------------ */
.equity { margin: 1em 0 1.4em; }
.equity svg { width: 100%; height: auto; display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.equity .axis-zero { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 4; }
.equity .equity-line { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.equity .equity-line.pos { stroke: var(--green); }
.equity .equity-line.neg { stroke: var(--red); }
.equity .equity-area { opacity: .14; }
.equity .equity-area.pos { fill: var(--green); }
.equity .equity-area.neg { fill: var(--red); }
.equity figcaption { color: var(--muted); font-size: .8rem; margin-top: 6px; }

/* --- Generic prose data table ------------------------------------------ */
.prose-table { width: 100%; border-collapse: collapse; margin: .6em 0 1.4em; }
.prose-table thead th {
  text-align: left; color: var(--muted); text-transform: uppercase;
  font-size: .68rem; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.prose-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.prose-table tbody tr:hover { background: var(--navy-2); }

/* --- Accessibility: skip link + focus ---------------------------------- */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--green); color: #0d1f0e; font-weight: 800;
  padding: 10px 16px; border-radius: 0 0 8px 8px; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.btn:focus-visible { outline-offset: 3px; }
main:focus { outline: none; }

/* --- Breadcrumbs ------------------------------------------------------- */
.breadcrumb { background: var(--navy-2); border-bottom: 1px solid var(--line); font-size: .8rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 9px 0; }
.breadcrumb li { display: flex; align-items: center; color: var(--muted); }
.breadcrumb li:not(:first-child)::before { content: "/"; color: var(--line); margin: 0 8px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* --- Brand bracket device ---------------------------------------------- */
.brand .brand-bracket { color: var(--green); font-weight: 900; }

/* --- Tips CTA block (sitewide conversion to the tracked tips) ---------- */
.tips-cta {
  margin: 2.2em 0 1em;
  border: 1px solid rgba(86, 177, 90, 0.45);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(86, 177, 90, 0.12), transparent 60%),
    var(--card);
  padding: 20px 22px;
}
.tips-cta-eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .7rem;
  font-weight: 800; color: var(--green); margin: 0 0 6px;
}
.tips-cta-h { font-size: 1.3rem; margin: 0 0 6px; }
.tips-cta-rec { color: var(--muted); margin: 0 0 14px; max-width: 60ch; }
.tips-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- Responsive data tables (contain wide tables on phones) ------------ */
@media (max-width: 640px) {
  .tips-table, .prose-table, .winners, .prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .tips-cta-h { font-size: 1.15rem; }
}

/* Active nav section */
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--green); padding-bottom: 2px; }

/* --- Homepage hero actions + proof line --- */
.hero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero-proof { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.scorecards + .hero-proof { margin-top: 12px; }
