/* 247QuickTools — main stylesheet */
/* Brand: deep navy (#0f2a47) + orange accent (#f97316) */

/* ── Reset & base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f1f5f9;
  color: #1e293b;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: #0f2a47; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ── Variables ────────────────────────────────────────── */
:root {
  --navy: #0f2a47;
  --navy-light: #1a3a5c;
  --orange: #f97316;
  --orange-dark: #ea6c0c;
  --green: #16a34a;
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --muted: #64748b;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
}

/* ── Utility ──────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-muted { color: var(--muted); }

/* ── Header / Nav ─────────────────────────────────────── */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1140px;
  margin: 0 auto;
  height: 56px;
  gap: 24px;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
}
.logo span { color: var(--orange); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.site-nav a.active { color: var(--orange); }

/* ── Breadcrumb ───────────────────────────────────────── */
.breadcrumb {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted);
}
.breadcrumb-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: #cbd5e1; }

/* ── Hero / Page header ───────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 48px 20px;
  text-align: center;
}
.page-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.tool-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4080 100%);
  color: #fff;
  padding: 32px 20px 28px;
}
.tool-hero-inner { max-width: 1140px; margin: 0 auto; }
.tool-hero h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 6px; }
.tool-hero p { color: rgba(255,255,255,.78); font-size: 1rem; max-width: 640px; }

/* ── Main layout ──────────────────────────────────────── */
main { flex: 1; }

.page-body { padding: 32px 20px 48px; max-width: 1140px; margin: 0 auto; }

/* Tool page: main + sidebar */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
@media (max-width: 900px) {
  .tool-layout { grid-template-columns: 1fr; }
}

/* ── Card ─────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-body { padding: 20px; }

/* ── Tool app shell ───────────────────────────────────── */
.tool-app {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 24px;
}
.tool-app-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.tool-app-title { font-weight: 700; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.tool-app-body { padding: 24px; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  border: none;
  transition: background .15s, transform .1s, box-shadow .15s;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-light); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--bg); }
.btn-success { background: var(--green); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }

.btn-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── Form elements ────────────────────────────────────── */
.form-row { margin-bottom: 16px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; color: #334155; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--navy);
  background: #fff;
  transition: border-color .15s;
  line-height: 1.4;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .form-grid-3 { grid-template-columns: 1fr 1fr; } }

/* ── Tags / badges ────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.badge-orange { background: #fff7ed; color: var(--orange); border: 1px solid #fed7aa; }
.badge-green  { background: #f0fdf4; color: var(--green); border: 1px solid #bbf7d0; }
.badge-navy   { background: #eff6ff; color: var(--navy); border: 1px solid #bfdbfe; }
.badge-coming { background: #f8fafc; color: #94a3b8; border: 1px solid #e2e8f0; }

/* ── Category grid ────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  text-decoration: none;
  color: inherit;
}
.category-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.category-card.coming-soon {
  opacity: .6;
  cursor: default;
  pointer-events: none;
}
.category-card .cat-icon { font-size: 2rem; line-height: 1; }
.category-card .cat-title { font-weight: 700; font-size: 1.05rem; }
.category-card .cat-desc { font-size: .85rem; color: var(--muted); line-height: 1.45; }

/* ── Tools grid ───────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.tool-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  text-decoration: none;
  color: inherit;
}
.tool-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.tool-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); }
.tool-card p { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.tool-card .tool-arrow { margin-top: auto; font-size: .82rem; color: var(--orange); font-weight: 600; }

/* ── Affiliate sidebar ────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.affiliate-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.affiliate-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.affiliate-label::before { content: "★"; color: #f59e0b; }
.affiliate-card h4 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.affiliate-card p { font-size: .82rem; color: var(--muted); margin-bottom: 12px; line-height: 1.45; }
.affiliate-btn {
  display: block;
  text-align: center;
  background: #ff9900;
  color: #111;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
  transition: background .15s;
}
.affiliate-btn:hover { background: #e68a00; text-decoration: none; color: #111; }

/* ── Related tools ────────────────────────────────────── */
.related-tools .card-header { color: var(--navy); font-size: .9rem; }
.related-tool-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}
.related-tool-link:last-child { border-bottom: none; }
.related-tool-link:hover { color: var(--orange); text-decoration: none; }
.related-tool-link .arrow { color: var(--orange); }

/* ── Share button ─────────────────────────────────────── */
.share-card { text-align: center; }
.share-card p { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.share-btn:hover { background: var(--navy-light); }
.share-copied { color: var(--green); font-size: .82rem; margin-top: 6px; display: none; }
.share-copied.show { display: block; }

/* ── How to use guide ─────────────────────────────────── */
.guide-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.guide-section h2 { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--orange); display: inline-block; }
.guide-steps { display: flex; flex-direction: column; gap: 20px; }
.guide-step { display: flex; gap: 16px; }
.guide-step-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem;
}
.guide-step-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 5px; color: var(--navy); }
.guide-step-content p { font-size: .9rem; color: #475569; line-height: 1.65; }

/* ── Homepage hero ────────────────────────────────────── */
.home-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a72 50%, #0f2a47 100%);
  color: #fff;
  padding: 72px 20px 64px;
  text-align: center;
}
.home-hero h1 { font-size: 2.6rem; font-weight: 900; line-height: 1.15; margin-bottom: 16px; }
.home-hero h1 em { color: var(--orange); font-style: normal; }
.home-hero p { font-size: 1.15rem; color: rgba(255,255,255,.78); max-width: 560px; margin: 0 auto 28px; }
.hero-badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-badge { background: rgba(255,255,255,.12); color: rgba(255,255,255,.88); padding: 5px 14px; border-radius: 20px; font-size: .82rem; font-weight: 600; border: 1px solid rgba(255,255,255,.18); }

/* ── Pitch (Formation Builder) ────────────────────────── */
.pitch-container { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
.pitch-svg { width: 100%; border-radius: 4px; }
.player-slot {
  cursor: pointer;
  transition: transform .15s;
}
.player-slot:hover { transform: scale(1.08); }
.player-dot { fill: var(--orange); stroke: #fff; stroke-width: 2; }
.player-dot.gk { fill: #f59e0b; }
.player-name-text { fill: #fff; font-size: 9px; font-weight: 700; font-family: system-ui, sans-serif; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }

/* ── Bracket ──────────────────────────────────────────── */
.bracket-wrap { overflow-x: auto; }
.bracket {
  display: flex;
  gap: 32px;
  padding: 16px 0;
  min-width: max-content;
}
.bracket-round { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.bracket-round-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; margin-bottom: 8px; text-align: center; }
.bracket-match {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  min-width: 160px;
  background: var(--card);
}
.bracket-team {
  padding: 7px 10px;
  font-size: .85rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bracket-team:last-child { border-bottom: none; }
.bracket-team.winner { background: #f0fdf4; font-weight: 700; color: var(--green); }
.bracket-team.tbd { color: #94a3b8; }
.bracket-score { font-weight: 700; min-width: 20px; text-align: center; }
input.bracket-score-input {
  width: 36px; padding: 2px 4px; text-align: center;
  border: 1px solid var(--border); border-radius: 4px; font-size: .85rem;
}

/* ── League table ─────────────────────────────────────── */
.league-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.league-table th {
  background: var(--navy);
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-size: .78rem;
  letter-spacing: .3px;
  white-space: nowrap;
}
.league-table th:not(:first-child) { text-align: center; }
.league-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.league-table td:not(:first-child) { text-align: center; }
.league-table tr:hover td { background: #f8fafc; }
.league-table .pos { font-weight: 700; color: var(--muted); width: 28px; }
.league-table .team-name { font-weight: 600; }
.league-table .pts { font-weight: 800; color: var(--navy); }
.form-pill {
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 800;
  text-align: center;
  line-height: 18px;
  color: #fff;
  margin: 0 1px;
}
.form-w { background: var(--green); }
.form-d { background: #94a3b8; }
.form-l { background: #ef4444; }

/* ── Calendar ─────────────────────────────────────────── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  font-size: .82rem;
}
.cal-header-cell { text-align: center; font-weight: 700; color: var(--muted); padding: 6px 2px; font-size: .72rem; text-transform: uppercase; }
.cal-day {
  min-height: 64px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 5px;
  background: #fff;
}
.cal-day.other-month { background: #f8fafc; }
.cal-day.has-fixture { border-color: var(--orange); }
.cal-day-num { font-weight: 700; font-size: .78rem; color: #334155; margin-bottom: 3px; }
.cal-fixture-pill {
  background: var(--orange);
  color: #fff;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: .65rem;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-fixture-pill.away { background: var(--navy); }

/* ── Squad list ───────────────────────────────────────── */
.squad-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.squad-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: .9rem;
}
.squad-item:hover { border-color: var(--orange); }
.squad-num { font-weight: 700; color: var(--muted); width: 22px; font-size: .82rem; }
.squad-name { flex: 1; font-weight: 600; }
.squad-remove { background: none; border: none; color: #ef4444; font-size: 1.1rem; padding: 0 4px; line-height: 1; cursor: pointer; }

/* ── Team columns ─────────────────────────────────────── */
.teams-output {
  display: grid;
  gap: 16px;
}
.team-column {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
}
.team-column-header {
  padding: 10px 16px;
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
}
.team-column-body { background: #fff; }
.team-column-player {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.team-column-player:last-child { border-bottom: none; }

.team-colors { --t1: #f97316; --t2: #0f2a47; --t3: #16a34a; --t4: #7c3aed; }

/* ── Stats table ──────────────────────────────────────── */
.stats-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.stats-table th { background: #f1f5f9; color: #334155; padding: 9px 10px; font-size: .78rem; text-align: left; border-bottom: 2px solid var(--border); white-space: nowrap; }
.stats-table th:not(:first-child) { text-align: center; }
.stats-table td { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; }
.stats-table td:not(:first-child) { text-align: center; }
.stats-table tr:hover td { background: #fafafa; }
.stat-input { width: 52px; padding: 4px 6px; text-align: center; border: 1.5px solid var(--border); border-radius: 4px; font-size: .85rem; font-family: inherit; }
.stat-input:focus { outline: none; border-color: var(--orange); }

/* ── Match report output ──────────────────────────────── */
.report-output {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 6px;
  padding: 24px;
  font-family: 'Georgia', serif;
}
.report-output h2 { font-size: 1.2rem; text-align: center; margin-bottom: 4px; }
.report-output .report-meta { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.report-score { font-size: 2rem; font-weight: 900; text-align: center; margin: 12px 0; }
.report-section { margin-bottom: 14px; }
.report-section h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 5px; font-family: system-ui, sans-serif; }
.report-section p { font-size: .9rem; line-height: 1.6; }

/* ── Penalty order ────────────────────────────────────── */
.penalty-order { display: flex; flex-direction: column; gap: 8px; }
.penalty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.penalty-num { font-weight: 800; color: var(--navy); width: 24px; text-align: center; font-size: .9rem; }
.penalty-name { flex: 1; font-weight: 600; }
.penalty-result { display: flex; gap: 6px; }
.penalty-btn {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  font-size: .78rem;
  font-weight: 700;
  background: #fff;
  cursor: pointer;
}
.penalty-btn.scored { background: var(--green); color: #fff; border-color: var(--green); }
.penalty-btn.missed { background: #ef4444; color: #fff; border-color: #ef4444; }
.penalty-row.sudden-death { border-color: #f59e0b; background: #fffbeb; }

/* ── Draft ────────────────────────────────────────────── */
.draft-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.draft-team { border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.draft-team-header { padding: 8px 12px; font-weight: 800; font-size: .88rem; color: #fff; }
.draft-pick { padding: 7px 12px; border-bottom: 1px solid var(--border); font-size: .85rem; background: #fff; }
.draft-pick:last-child { border-bottom: none; }
.draft-pick.current-turn { background: #fff7ed; color: var(--orange); font-weight: 700; }
.draft-turn-indicator {
  background: var(--orange);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
}

/* ── Captain picker ───────────────────────────────────── */
.captain-display {
  text-align: center;
  padding: 32px 20px;
}
.captain-name {
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  margin: 12px 0 8px;
  min-height: 2.4rem;
  transition: all .2s;
}
.captain-name.spinning { animation: spin-names .1s ease-in-out; }
.captain-armband { font-size: 3rem; }
.captain-history { margin-top: 16px; }
.captain-history-item { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.captain-history-item:last-child { border-bottom: none; }

@keyframes spin-names { 0% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* ── Substitution timeline ────────────────────────────── */
.sub-timeline { position: relative; padding: 20px 0; }
.sub-event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.sub-minute { font-weight: 800; color: var(--orange); width: 40px; font-size: .9rem; }
.sub-arrow-on { color: var(--green); font-size: 1.1rem; }
.sub-arrow-off { color: #ef4444; font-size: 1.1rem; }
.sub-player { font-weight: 600; font-size: .9rem; }
.sub-remove { margin-left: auto; background: none; border: none; color: #cbd5e1; cursor: pointer; font-size: 1rem; }
.sub-remove:hover { color: #ef4444; }

/* ── Print ────────────────────────────────────────────── */
@media print {
  .site-header, .breadcrumb, .tool-app-header .btn-group, .sidebar, .guide-section, .btn, .no-print { display: none !important; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-app { box-shadow: none; border: 1px solid #ccc; }
  body { background: #fff; }
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  padding: 28px 20px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo { font-weight: 800; font-size: 1rem; color: #fff; }
.footer-logo span { color: var(--orange); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.55); transition: color .15s; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-disclaimer { width: 100%; text-align: center; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.4); font-size: .75rem; }

/* ── Responsive nav collapse ──────────────────────────── */
@media (max-width: 700px) {
  .site-nav { display: none; }
  .home-hero h1 { font-size: 1.8rem; }
  .tool-hero h1 { font-size: 1.4rem; }
  .page-hero h1 { font-size: 1.6rem; }
}

/* ── Misc utility ─────────────────────────────────────── */
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.section-title { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.section-desc { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
hr.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.empty-state { text-align: center; padding: 32px; color: var(--muted); font-size: .9rem; }
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 10px; }
.tag-sport { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; background: #fff7ed; color: var(--orange); border-radius: 20px; font-size: .78rem; font-weight: 700; }
