/* Travochboll.se – mörkt tema som följer loggan: svart, vitt och klarblått. */
:root {
  --bg: #05060c;
  --bg-elev: #0c1018;
  --bg-elev-2: #121826;
  --ink: #f5f7fa;
  --muted: #9aa6b5;
  --line: #1c2535;
  --line-strong: #2a3a52;
  --blue: #009bfe;
  --blue-2: #33b4ff;
  --blue-dim: rgba(0, 155, 254, 0.14);
  --blue-line: rgba(0, 155, 254, 0.45);
  --home: #009bfe;
  --draw: #c9d0d8;
  --away: #ff6b57;
  --warn: #e8b84a;
  --sans: "Barlow", "Segoe UI", "Helvetica Neue", sans-serif;
  --cond: "Barlow Condensed", "Barlow", "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue-2); }
a:hover { color: #fff; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #000;
  padding: 0.5rem 1rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 20; }

.masthead {
  background: #000;
  border-bottom: 1px solid var(--blue-line);
}
.masthead-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0.9rem;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
}
.wordmark {
  display: block;
  text-decoration: none;
  line-height: 0;
}
.wordmark img {
  width: min(420px, 88vw);
  height: auto;
  display: block;
}
.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  text-align: center;
}
nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  margin-top: 0.35rem;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
}
nav a:hover,
nav a[aria-current="page"] {
  color: #fff;
  background: var(--blue-dim);
  box-shadow: inset 0 0 0 1px var(--blue-line);
}

main, .wrap { max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

.preview-note {
  border: 1px dashed var(--blue-line);
  background: var(--blue-dim);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: var(--radius);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.75rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line-strong);
}
.hero h2 {
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  line-height: 1.05;
  margin: 0 0 0.55rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero p { margin: 0; color: var(--muted); max-width: 40rem; }
.hero-meta {
  text-align: right;
  font-size: 0.95rem;
  color: var(--muted);
}
.hero-meta strong {
  display: block;
  color: var(--blue);
  font-family: var(--cond);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}
.week-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 1rem 1rem 0.95rem;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 10.4rem;
  box-shadow: var(--shadow);
}
.week-card:hover { border-color: var(--blue); }
.week-card .kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.week-card h3 {
  font-family: var(--cond);
  font-size: 1.7rem;
  margin: 0 0 0.3rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.week-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.week-card .status {
  margin-top: auto;
  padding-top: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-2);
  font-weight: 600;
}

.section { margin: 0 0 3rem; scroll-margin-top: 1rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.65rem;
  margin-bottom: 1rem;
}
.section-head h2 {
  font-family: var(--cond);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-head p { margin: 0; text-align: right; color: var(--muted); font-size: 0.95rem; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.facts li strong { color: var(--ink); font-weight: 600; }

.placeholder {
  background: var(--blue-dim);
  border: 1px dashed var(--blue);
  padding: 0.9rem 1rem;
  margin: 0 0 1.1rem;
  border-radius: var(--radius);
}
.placeholder strong {
  display: inline-block;
  background: var(--blue);
  color: #031018;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  margin: 0 0.45rem 0.4rem 0;
  border-radius: 999px;
  font-weight: 700;
}
.placeholder p { margin: 0; }

.tips-box, .source, .prose, .race, .match, .about-card, .v86-empty {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tips-box, .about-card { padding: 1rem 1.1rem; margin-bottom: 1rem; }
.tips-box h3, .race h3, .about-card h2, .prose h2 {
  font-family: var(--cond);
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.8rem;
}
.tips-grid div { min-height: 4.2rem; }
.tips-grid dt, .field-label, .our-tip .field-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.2rem;
  font-weight: 600;
}
.tips-grid dd, .empty-field {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}
.source, .fine {
  font-size: 0.85rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0.35rem 0 0;
  border-radius: 0;
}

.coupon { display: grid; gap: 0.55rem; }
.match {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: 0.55rem 0.9rem;
  padding: 0.8rem 0.9rem;
  align-items: center;
}
.match-nr {
  font-family: var(--cond);
  font-size: 1.45rem;
  color: var(--blue);
  font-weight: 700;
}
.match-teams { font-weight: 600; }
.match-teams small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}
.signs {
  display: grid;
  grid-template-columns: repeat(3, 4.7rem);
  gap: 0.3rem;
}
.sign {
  border: 1px solid var(--line-strong);
  text-align: center;
  padding: 0.28rem 0.2rem 0.32rem;
  background: var(--bg);
  border-radius: 8px;
}
.sign .lab {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.1rem;
}
.sign .bar {
  height: 4px;
  background: #1a2230;
  margin: 0.22rem 0;
  overflow: hidden;
  border-radius: 2px;
}
.sign .bar span { display: block; height: 100%; background: var(--home); }
.sign[data-sign="X"] .bar span { background: var(--draw); }
.sign[data-sign="2"] .bar span { background: var(--away); }
.sign .pct { font-size: 0.75rem; color: var(--ink); }
.sign .odd { font-size: 0.7rem; color: var(--muted); }
.our-tip {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.tip-cells { display: flex; gap: 0.25rem; }
.tip-cells span {
  width: 1.65rem;
  height: 1.65rem;
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--line-strong);
  background: var(--bg);
  border-radius: 4px;
}
.tip-cells span.filled {
  border-style: solid;
  border-color: var(--blue);
  color: var(--blue);
}

.races { display: grid; gap: 1rem; }
.race { padding: 0.95rem 1rem 1rem; }
.race-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}
.race-top h3 { margin: 0; font-size: 1.25rem; }
.race-top .meta { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.race .subtitle { margin: 0 0 0.65rem; color: var(--muted); font-size: 0.92rem; }
.horses {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.horses th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding: 0.3rem 0.35rem;
}
.horses td {
  padding: 0.3rem 0.35rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.horses tr:last-child td { border-bottom: 0; }
.horses .nr { font-weight: 700; width: 2rem; color: var(--blue-2); }
.horses .streck { width: 8rem; }
.streck-bar { display: flex; align-items: center; gap: 0.35rem; }
.streck-bar .track {
  flex: 1;
  height: 6px;
  background: #1a2230;
  overflow: hidden;
  border-radius: 2px;
}
.streck-bar .track i { display: block; height: 100%; background: var(--blue); }
.lead td { background: rgba(0, 155, 254, 0.08); }
.lead .track i { background: var(--blue-2); }

.v86-empty {
  padding: 1.4rem 1rem 1.2rem;
  text-align: center;
  color: var(--muted);
}
.v86-empty ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  list-style: none;
  padding: 1rem 0 0;
  margin: 0;
  text-align: left;
}
.v86-empty li {
  border: 1px dashed var(--line-strong);
  padding: 0.65rem;
  min-height: 4.2rem;
  color: var(--muted);
  border-radius: 8px;
  background: var(--bg);
}

.legal {
  background: #000;
  color: var(--muted);
  padding: 2rem 1.25rem 2.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--blue-line);
}
.legal-inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 1rem; }
.legal h2 {
  font-family: var(--cond);
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal a { color: var(--blue-2); }
.age {
  display: inline-block;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  padding: 0.05rem 0.4rem;
  margin-right: 0.4rem;
  border-radius: 4px;
}
.footer-nav { font-size: 0.9rem; }

.prose { padding: 1.25rem 1.3rem; margin-bottom: 1rem; }
.prose p { margin: 0 0 0.8rem; }
.prose p:last-child { margin-bottom: 0; }

.logo-about {
  display: block;
  width: min(360px, 80vw);
  margin: 0 auto 1.2rem;
}

@media (max-width: 860px) {
  .hero, .week-grid, .tips-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { text-align: left; }
  .signs { grid-template-columns: repeat(3, 1fr); }
  .v86-empty ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .hero, .tips-grid, .match { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .section-head p { text-align: left; }
  .signs { max-width: 20rem; }
  .race-top { flex-direction: column; }
  .horses .hide-sm { display: none; }
  .v86-empty ol { grid-template-columns: 1fr; }
  .wordmark img { width: min(300px, 92vw); }
}
