/* IUYFC — Isleham United Youth Football Club
   Light theme. Dark header/footer. Black & White. Accent: #111111.
   ================================================================ */

/* === TICKER === */
.ticker-wrap { overflow: hidden; }
.ticker-inner {
  display: inline-block;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  min-height: 44px;
  border: none;
  cursor: pointer;
}
.btn-primary:hover  { background: #333333; transform: translateY(-1px); }
.btn-primary:focus  { outline: 3px solid #111111; outline-offset: 3px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #111111;
  border: 2px solid #111111;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  min-height: 44px;
  cursor: pointer;
}
.btn-secondary:hover { background: #111111; color: white; }
.btn-secondary:focus { outline: 3px solid #111111; outline-offset: 3px; }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  min-height: 44px;
}
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.1); }
.btn-outline-white:focus { outline: 3px solid white; outline-offset: 3px; }

/* === PAGE HERO (inner pages) === */
.page-hero {
  background: linear-gradient(135deg, #111111 0%, #1a1a1a 60%, #222222 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.08) 0px,
    rgba(255,255,255,0.08) 18px,
    transparent 18px,
    transparent 40px
  );
  pointer-events: none;
}

/* === BADGES === */
.badge-age {
  display: inline-block;
  background: #111111;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-boys {
  display: inline-block;
  background: #111111;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-girls {
  display: inline-block;
  background: #7C3AED;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-women {
  display: inline-block;
  background: #1d4ed8;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-mini {
  display: inline-block;
  background: #059669;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === SECTION DIVIDER === */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, #111111, #333333, #111111);
}

/* === SECTION BANNER PLACEHOLDER === */
.section-banner-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #d1d5db;
  color: #9ca3af;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === SHOT POWERED STRIP === */
.shot-powered-strip {
  background: #0a0a0a;
  padding: 1rem 0;
}
.shot-logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: white;
  letter-spacing: -0.02em;
}

/* === REVEAL ANIMATIONS === */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* === FAA WIDGET === */
.faa-widget-wrap iframe {
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  display: block;
  width: 100%;
}
.faa-admin-notice {
  background: #FEF3C7;
  border: 1px solid #D97706;
  border-left: 4px solid #D97706;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: #92400E;
  margin-bottom: 1.5rem;
  font-family: 'Montserrat', sans-serif;
}

/* === SAFEGUARDING ALERT === */
.safeguarding-box {
  background: #FEF2F2;
  border: 2px solid #111111;
  border-radius: 8px;
  padding: 1.5rem;
}

/* === SPONSOR CARDS === */
.sponsor-card {
  background: white;
  border: 2px dashed #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}
.sponsor-card:hover { border-color: #111111; }

/* === FORM STYLES === */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.375rem;
  font-family: 'Montserrat', sans-serif;
}
.form-label.required::after { content: ' *'; color: #111111; }

.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  color: #111111;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 44px;
  box-sizing: border-box;
}
.form-input:focus {
  outline: none;
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17,17,17,0.1);
}
.form-input::placeholder { color: #9ca3af; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-fieldset {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.form-fieldset legend {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #111111;
  padding: 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #111111;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.form-error {
  color: #b91c1c;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  font-family: 'Montserrat', sans-serif;
  display: none;
}
.form-error.show { display: block; }

/* === CODE GATE (register page) === */
.code-gate-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, #111111 0%, #1a1a1a 60%, #222222 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.registration-section-hidden { display: none; }

/* === KIT SWATCH === */
.kit-swatch {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
  vertical-align: middle;
  margin-right: 6px;
}

/* === CARD PATTERN === */
.club-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.club-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  border-color: rgba(17,17,17,0.25);
}
.club-card-accent         { height: 6px; background: #111111; }
.club-card-accent--purple { background: #7C3AED; }
.club-card-accent--green  { background: #059669; }
.club-card-accent--blue   { background: #1d4ed8; }
.club-card-body           { padding: 1.25rem; }

/* === TEAM ACCORDION === */
.accordion-icon { transition: transform 0.2s; }
.accordion-toggle[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }

/* === TIER CARD (partners page) === */
.tier-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tier-card:hover { border-color: #111111; box-shadow: 0 4px 20px rgba(17,17,17,0.1); }
.tier-card--featured {
  border-color: #111111;
  box-shadow: 0 4px 20px rgba(17,17,17,0.15);
}

/* === COMMITTEE CARD === */
.committee-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s;
}
.committee-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); }
.committee-avatar {
  width: 64px;
  height: 64px;
  background: #111111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
}

/* === FA FULL-TIME RESPONSIVE WRAPPER === */
.fa-results-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.fa-results-wrap iframe,
.faa-widget-wrap iframe {
  display: block;
  width: 100%;
  min-width: 300px;
}
.accordion-content .faa-widget-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* === NEWS CARD === */
.news-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #d1d5db;
}

/* === PRINT STYLES === */
@media print {
  @page { margin: 1.5cm; size: A4 portrait; }

  /* ---- Hide non-content ---- */
  header, footer, nav, .no-print, button,
  .section-divider, .shot-powered-strip,
  .ticker-wrap, .btn-primary, .btn-secondary { display: none !important; }

  /* ---- Base ---- */
  body { background: white !important; color: black !important; font-size: 10pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* ---- Hero: collapse to a heading block ---- */
  .page-hero {
    background: none !important;
    padding: 0 0 0.75rem !important;
    border-bottom: 2px solid #111 !important;
    overflow: visible !important;
  }
  .page-hero::before, .page-hero::after { display: none !important; }
  .page-hero h1 { color: black !important; font-size: 22pt !important; margin-bottom: 0.2rem !important; }
  .page-hero p { color: #444 !important; font-size: 9pt !important; margin-top: 0 !important; }

  /* ---- Sections: collapse screen padding ---- */
  .print-section { break-inside: avoid; page-break-inside: avoid; }
  section, .print-section { padding-top: 0.8rem !important; padding-bottom: 0.8rem !important; }

  /* ---- Strip all Tailwind py-* padding (too much screen whitespace) ---- */
  [class*="py-8"],
  [class*="py-10"],
  [class*="py-12"],
  [class*="py-16"] { padding-top: 0.8rem !important; padding-bottom: 0.8rem !important; }

  /* ---- Headings ---- */
  h2 { font-size: 13pt !important; margin-bottom: 0.4rem !important; }
  h3 { font-size: 11pt !important; margin-bottom: 0.2rem !important; }
  p, li { font-size: 9.5pt !important; line-height: 1.4 !important; }

  /* ---- Strip dark backgrounds to white with border ---- */
  [class*="bg-\[#111"] { background: white !important; color: black !important; }
  [class*="bg-\[#0a0"] { background: white !important; color: black !important; }
  [class*="bg-\[#1a1"] { background: white !important; color: black !important; }
  [class*="bg-gray-50"],
  [class*="bg-\[#f8f9fa\]"] { background: white !important; }

  /* ---- Cards ---- */
  [class*="rounded-lg"],
  [class*="rounded-xl"] { border: 1px solid #ccc !important; padding: 0.4rem 0.6rem !important; }

  /* ---- SVG ground diagram: constrain height ---- */
  figure { break-inside: avoid; }
  figure svg { max-height: 280px !important; width: auto !important; max-width: 100% !important; }

  /* ---- Kit image ---- */
  .print-section img { max-height: 300px !important; width: auto !important; }

  /* ---- Grid: single column for print ---- */
  .grid { display: block !important; }
  .grid > * { margin-bottom: 0.4rem !important; width: 100% !important; }

  /* ---- Links ---- */
  a { color: black !important; text-decoration: none !important; }

  /* ---- Facility icon squares — hide, let text stand alone ---- */
  .w-8.h-8 { display: none !important; }
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #e5e7eb; }
::-webkit-scrollbar-thumb { background: #111111; border-radius: 6px; border: 2px solid #e5e7eb; }
::-webkit-scrollbar-thumb:hover { background: #000000; }

/* === KIT STRIPE WATERMARK — IUYFC vertical B&W jersey stripes === */

/* Global: header and footer always carry the stripe */
header {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.07) 0px,
    rgba(255,255,255,0.07) 18px,
    transparent 18px,
    transparent 40px
  );
}
footer .max-w-7xl {
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 0px,
    rgba(255,255,255,0.05) 18px,
    transparent 18px,
    transparent 40px
  );
  pointer-events: none;
}
footer {
  position: relative;
  overflow: hidden;
}

/* Light sections (white / off-white) */
.stripe-bg-light {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.055) 0px,
    rgba(0,0,0,0.055) 18px,
    transparent 18px,
    transparent 40px
  );
}

/* Dark sections (black / near-black) */
.stripe-bg-dark {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 0px,
    rgba(255,255,255,0.05) 18px,
    transparent 18px,
    transparent 40px
  );
}

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #111111;
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  z-index: 200;
  transition: top 0.2s;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
}
.skip-link:focus { top: 0; }

/* === RESPONSIVE — MOBILE === */
@media (max-width: 640px) {
  .page-hero { padding: 3rem 0 2rem; }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 3rem); }

  /* Prevent hero headline from causing horizontal overflow */
  h1 { word-break: break-word; overflow-wrap: break-word; }

  /* Tighten button groups so they stack cleanly */
  .hero-btn-group { flex-direction: column; align-items: stretch; }
  .hero-btn-group a { text-align: center; }

  /* Stats strip — wrap on mobile */
  .stats-strip-inner { flex-wrap: wrap; gap: 1rem 1.5rem; }

  /* Form tabs — horizontal scroll */
  .form-tab-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
  }
  .form-tab-bar::-webkit-scrollbar { display: none; }
  .form-tab-bar button { scroll-snap-align: start; white-space: nowrap; }

  /* Registration code gate — better padding */
  .code-gate-wrap { padding: 1.5rem 1rem; }

  /* Footer logo line — stack on small screens */
  .footer-logo-line { flex-direction: column; align-items: flex-start; }

  /* Accordion titles — allow wrap */
  .accordion-toggle { white-space: normal; text-align: left; }

  /* News article grid — remove forced minimum */
  article .grid { gap: 2rem; }

  /* Sponsor / tier cards — full width */
  .sponsor-card { min-height: 60px; }
}

@media (max-width: 480px) {
  /* Shrink team category headings on very small screens */
  .section-category-heading { font-size: 1.5rem; }

  /* Ensure club card grids wrap cleanly at smallest sizes */
  .club-card-grid { grid-template-columns: 1fr !important; }
}

/* ── FA Full-Time live feed (js/fa-feed.js) ─────────────────── */
.fa-list { list-style: none; margin: 0; padding: 0; }
.fa-row { position: relative; padding: 12px 14px; border-bottom: 1px solid #f3f4f6; }
.fa-row:last-child { border-bottom: none; }
.fa-row:hover { background: #f9fafb; }
.fa-link { position: absolute; inset: 0; z-index: 1; }
.fa-link:focus-visible { outline: 2px solid #111111; outline-offset: -2px; }
.fa-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.75rem; color: #6b7280; margin-bottom: 6px; }
.fa-day { font-weight: 700; color: #374151; }
.fa-pill { display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 999px; }
.fa-pill-home { background: #111111; color: #ffffff; }
.fa-pill-away { background: #e5e7eb; color: #374151; }
.fa-pill-cup { background: #fef3c7; color: #92400e; }
.fa-pill-w { background: #dcfce7; color: #166534; }
.fa-pill-d { background: #f3f4f6; color: #374151; }
.fa-pill-l { background: #fee2e2; color: #991b1b; }
.fa-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; font-size: 0.9rem; color: #111827; }
.fa-home { text-align: right; }
.fa-away { text-align: left; }
.fa-score { font-family: 'Poppins', sans-serif; font-weight: 800; background: #111111; color: #ffffff; padding: 3px 10px; border-radius: 6px; white-space: nowrap; }
.fa-score-none { background: #f3f4f6; color: #6b7280; font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.fa-vs { font-weight: 700; color: #9ca3af; }
.fa-venue { font-size: 0.75rem; color: #6b7280; margin-top: 6px; text-align: center; }
.fa-empty { font-size: 0.875rem; color: #9ca3af; font-style: italic; padding: 16px 14px; }

/* Isleham's matchday programme, within each existing team profile. */
.team-hub-nav { display: flex; gap: 0; overflow-x: auto; margin: -12px 0 32px; border-top: 1px solid #111; border-bottom: 1px solid #d1d5db; scrollbar-width: thin; }
.team-hub-nav button { flex: 0 0 auto; min-height: 52px; padding: 11px 18px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #4b5563; font: 800 0.75rem 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
.team-hub-nav button:hover, .team-hub-nav button:focus-visible { color: #111; border-bottom-color: var(--team-accent, #111); outline-offset: 2px; }
#team-overview, #team-form-guide, #team-fixtures, #team-results, #team-table, #team-info { scroll-margin-top: 115px; }
.team-hub-overview { margin-bottom: 24px; }
.team-hub-section-title { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.team-hub-section-title span { color: var(--team-accent, #111); font: 800 0.68rem 'Montserrat', sans-serif; letter-spacing: 0.08em; white-space: nowrap; }
.team-hub-section-title h2, .team-form-guide h2 { color: #111; font: 900 clamp(1.2rem, 2.5vw, 1.7rem) 'Poppins', sans-serif; line-height: 1.2; }
.team-hub-primary, .team-hub-secondary { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.team-hub-card { min-width: 0; padding: 22px; border: 1px solid #d1d5db; border-radius: 3px; background: #fff; }
.team-hub-next { background: #111; color: #fff; border-color: #111; border-left: 6px solid var(--team-accent, #fff); }
.team-hub-eyebrow { color: #6b7280; font: 800 0.7rem 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; }
.team-hub-next .team-hub-eyebrow { color: #e5e7eb; }
.team-hub-date { font: 700 0.95rem 'Montserrat', sans-serif; margin-bottom: 12px; }
.team-hub-opponent { font: 800 clamp(1.15rem, 2.5vw, 1.7rem) 'Poppins', sans-serif; line-height: 1.3; overflow-wrap: anywhere; margin-bottom: 12px; }
.team-hub-opponent strong { font-weight: 900; white-space: nowrap; }
.team-hub-unscored { display: block; margin-top: 5px; color: #6b7280; font: 600 0.75rem 'Montserrat', sans-serif; }
.team-hub-meta { color: #6b7280; font: 500 0.78rem 'Montserrat', sans-serif; line-height: 1.5; }
.team-hub-next .team-hub-meta { color: #d1d5db; }
.team-hub-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; padding: 8px 14px; border-radius: 3px; background: #f3f4f6; color: #111; font: 700 0.78rem 'Montserrat', sans-serif; }
.team-hub-action:hover, .team-hub-action:focus-visible { background: #e5e7eb; }
.team-hub-next .team-hub-action { background: #fff; }
.team-hub-missing, .team-hub-no-form { color: #6b7280; font: 500 0.87rem 'Montserrat', sans-serif; line-height: 1.5; }
.team-hub-missing a { display: inline-block; margin-top: 5px; color: #111; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.team-hub-next .team-hub-missing { color: #d1d5db; }
.team-table-position { font: 900 2rem 'Poppins', sans-serif; line-height: 1; margin-bottom: 12px; }
.team-table-position span { font: 600 0.85rem 'Montserrat', sans-serif; color: #6b7280; }
.team-table-numbers { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 600 0.78rem 'Montserrat', sans-serif; color: #4b5563; }
.team-table-numbers strong { font: 800 1rem 'Poppins', sans-serif; color: #111; }
.team-season-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #e5e7eb; border-left: 1px solid #e5e7eb; }
.team-season-grid div { display: flex; flex-direction: column; padding: 9px 12px; border-right: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.team-season-grid strong { font: 900 1.4rem 'Poppins', sans-serif; }
.team-season-grid span { color: #6b7280; font: 700 0.65rem 'Montserrat', sans-serif; text-transform: uppercase; }
.team-hub-data > .team-hub-source { margin-top: 10px; }
.team-form-guide { display: grid; gap: 18px; padding: 24px; margin: 24px 0 12px; background: #fff; border-top: 4px solid #111; border-bottom: 1px solid #d1d5db; }
.team-form-guide .team-hub-eyebrow { color: var(--team-accent, #111); margin-bottom: 5px; }
.team-form-list { list-style: none; margin: 0; padding: 0; }
.team-form-row { display: flex; align-items: center; gap: 12px; min-height: 50px; border-bottom: 1px solid #e5e7eb; }
.team-form-row:last-child { border-bottom: 0; }
.team-form { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 3px; font: 800 0.85rem 'Poppins', sans-serif; }
.team-form-w { background: #dcfce7; color: #166534; }
.team-form-d { background: #e5e7eb; color: #374151; }
.team-form-l { background: #fee2e2; color: #991b1b; }
.team-form-fixture { min-width: 0; flex: 1; font: 600 0.78rem 'Montserrat', sans-serif; }
.team-form-fixture strong { display: block; overflow-wrap: anywhere; }
.team-form-fixture small { display: block; color: #6b7280; font-size: 0.7rem; }
.team-form-score { font: 900 0.95rem 'Poppins', sans-serif; white-space: nowrap; }
.team-hub-source { color: #6b7280; font: 500 0.72rem 'Montserrat', sans-serif; line-height: 1.5; }
.team-table-scroll { overflow-x: auto; }
.team-league-table { width: 100%; min-width: 520px; border-collapse: collapse; font: 500 0.78rem 'Montserrat', sans-serif; }
.team-league-table th, .team-league-table td { padding: 11px 12px; border-top: 1px solid #f3f4f6; text-align: center; }
.team-league-table thead th { background: #f9fafb; color: #4b5563; font-weight: 800; }
.team-league-table th:nth-child(2) { text-align: left; }
.team-league-table tbody th { font-weight: 600; }
.team-league-ours { background: #f3e8ff; color: #3b0764; }
@media (min-width: 720px) { .team-hub-primary, .team-hub-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px) { .team-form-guide { grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr); } }
@media (max-width: 640px) {
  .fa-teams { display: block; line-height: 1.8; }
  .fa-home, .fa-away { display: inline; }
  .fa-vs, .fa-score { margin: 0 6px; }
  .fa-venue { text-align: left; }
}
