/* Team Handball Org — shared stylesheet (mobile-first) */

:root {
  --navy: #0d1f3c;
  --navy-2: #12294d;
  --navy-3: #1a3a6b;
  --orange: #f26a21;
  --orange-dark: #c94e0e;
  --ink: #16233a;
  --muted: #5a6b85;
  --bg: #f6f8fb;
  --card: #ffffff;
  --line: #dbe3ee;
  --sky: #eef3fb;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
}

a {
  color: var(--navy-3);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 2.5rem 0;
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 700;
  z-index: 50;
}

.skip:focus {
  left: 0;
}

/* Accent bar with diagonal court stripes */
.accent-bar {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--orange) 0 14px,
    var(--navy) 14px 28px
  );
}

/* Header */
.site-header {
  background: var(--navy);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
}

.brand:hover {
  text-decoration: none;
}

.brand-ball {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.brand-name {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.02rem;
  color: var(--white);
}

.brand-sub {
  color: var(--orange);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}

.site-nav a {
  color: #cdd9ec;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--white);
  text-decoration: none;
  border-bottom-color: var(--orange);
}

.site-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--orange);
}

/* Hero */
.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0 2.75rem;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(242, 106, 33, 0.07) 0 26px,
    transparent 26px 52px
  );
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.hero-home {
  padding: 4rem 0 3.25rem;
}

.kicker {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  max-width: 18ch;
  border-left: 6px solid var(--orange);
  padding-left: 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 1.4rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  font-size: 0.8rem;
}

.crumb {
  color: #9fb2cf;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.crumb + .crumb::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--orange);
}

.crumb a {
  color: #cdd9ec;
}

.crumb a:hover {
  color: var(--white);
}

.crumb[aria-current="page"] {
  color: var(--white);
}

/* Stat chips (scoreboard style) */
.stat-band {
  background: var(--navy-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.stat-chip {
  background: var(--navy);
  border: 2px solid var(--orange);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  text-align: center;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.35);
}

.stat-value {
  display: block;
  color: var(--orange);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  color: #cdd9ec;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.15rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 10px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 2px 6px rgba(13, 31, 60, 0.06);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: 0 8px 18px rgba(13, 31, 60, 0.12);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.card h3 a {
  color: var(--navy);
}

.card h3 a:hover {
  color: var(--orange-dark);
  text-decoration: none;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Article body */
.article {
  max-width: 46rem;
}

.article h2 {
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-left: 6px solid var(--orange);
  padding-left: 0.8rem;
  margin: 2rem 0 0.9rem;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  color: var(--navy-3);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1.5rem 0 0.6rem;
}

.article p {
  margin-bottom: 1rem;
  max-width: 68ch;
}

.article strong {
  color: var(--navy);
}

.article ul {
  margin: 0 0 1rem 1.4rem;
}

.article ul li {
  margin-bottom: 0.4rem;
}

.article code {
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.88em;
  color: var(--navy);
}

/* Court figure */
.court-figure {
  margin: 2rem 0 0.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}

.court-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.court-figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.6rem 0.4rem 0.2rem;
}

/* Editorial note */
.editorial-note {
  border: 2px dashed var(--orange);
  background: #fdf1e9;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.8rem;
  font-size: 0.95rem;
  color: var(--ink);
}

/* Related reading */
.related {
  background: var(--sky);
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
}

.related-heading {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
}

.related-card {
  border-top-width: 3px;
}

.related-card h3 {
  font-size: 0.92rem;
}

.card-arrow {
  font-size: 0.85rem !important;
  font-weight: 700;
  color: var(--orange-dark) !important;
  margin-top: 0.4rem;
}

/* Contact card */
.contact-card {
  max-width: 46rem;
  margin-top: 1.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
}

.contact-card h2 {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 0.75rem 1.4rem;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.btn:hover {
  background: #ff7d38;
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cdd9ec;
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  padding-bottom: 2.2rem;
}

.footer-title {
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.footer-note {
  font-size: 0.88rem;
  color: #9fb2cf;
  max-width: 42ch;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: #cdd9ec;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--orange);
}

.court-motif {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--orange) 0 22px,
    transparent 22px 30px
  );
  opacity: 0.85;
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #9fb2cf;
  padding: 1.1rem 1rem;
}

/* Wider screens */
@media (min-width: 700px) {
  .section {
    padding: 3.25rem 0;
  }

  .page-hero {
    padding: 3.5rem 0 3rem;
  }

  .hero-home {
    padding: 5rem 0 4rem;
  }

  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.6fr;
  }

  .article h2 {
    font-size: 1.45rem;
  }
}

@media (min-width: 960px) {
  .stat-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.byline{display:flex;flex-wrap:wrap;gap:.35rem 1rem;align-items:baseline;margin:1.1rem 0 1.5rem;padding:.75rem 1rem;background:var(--sky);border-left:4px solid var(--orange);border-radius:0 8px 8px 0;font-size:.95rem;color:var(--muted)}
.byline-name{font-weight:600;color:var(--ink)}
.byline-name a{color:var(--orange-dark);text-decoration:none}
.byline-name a:hover{text-decoration:underline}
.byline-dates{color:var(--muted)}
.author-box{margin:1.5rem 0 0;padding:1rem 1.2rem;background:var(--card);border:1px solid var(--line);border-radius:10px;color:var(--muted)}
.author-box-label{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--navy);margin:0 0 .35rem}
.author-box-name{font-weight:600;color:var(--ink);margin:0 0 .4rem}
.author-box-bio{margin:0}
.author-box-bio a{color:var(--orange-dark)}
.editorial-roles{list-style:none;padding:0;margin:1rem 0}
.editorial-roles li{margin-bottom:.55rem}

