/* Didsbury Netball Club website: "match day".
   Barlow Condensed italic capitals (bib and kit-sheet lettering) over Barlow text.
   Royal / navy / sky from the VX3 kit. The kit's hem sweep is the one decorative element.
   Written for phones first; wider screens are layered on with min-width. */

:root {
  --royal: #034AAD;
  --royal-deep: #023A8A;
  --navy: #002752;
  --navy-deep: #001B3B;
  --sky: #9CDEFF;
  --sky-pale: #E9F5FF;
  --white: #fff;
  --ink: #0E1F3D;
  --text: #2C3A55;
  --text-on-dark: #D9E6F8;
  --rule: #CAD6E8;
  --rule-on-dark: rgba(156, 222, 255, 0.24);

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --maxw: 1120px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--text); background: var(--white); }
img, svg { display: block; max-width: 100%; }
a { color: var(--royal); text-underline-offset: 3px; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 14px; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.005em; color: var(--royal); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(52px, 15.5vw, 124px); }
h2 { font-size: clamp(34px, 8.6vw, 52px); line-height: 0.96; }
h3 { font-size: 26px; line-height: 1; font-style: normal; font-weight: 700; }
.lede { font-size: 20px; line-height: 1.45; }
.measure { max-width: 60ch; }
.measure > :last-child { margin-bottom: 0; }

/* ---------- buttons: shaped like the bib patches ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 24px; border: 2px solid var(--royal); border-radius: 6px; background: var(--royal); color: #fff; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; text-align: center; }
.btn:hover { background: var(--royal-deep); border-color: var(--royal-deep); }
.btn-line { background: transparent; color: var(--royal); }
.btn-line:hover { background: var(--sky-pale); border-color: var(--royal); color: var(--royal); }
.dark .btn { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.dark .btn:hover { background: #fff; border-color: #fff; }
.dark .btn-line { background: transparent; border-color: #fff; color: #fff; }
.dark .btn-line:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }
.btn-small { min-height: 42px; padding: 6px 16px; font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 60; background: var(--navy); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 44px; height: 44px; }
.wm { display: flex; flex-direction: column; text-transform: uppercase; color: #fff; }
.wm-1 { font-family: var(--display); font-weight: 800; font-size: 27px; line-height: 0.82; letter-spacing: 0.01em; }
.wm-2 { font-family: var(--display); font-weight: 600; font-size: 12.5px; line-height: 1; letter-spacing: 0.24em; color: var(--sky); margin-top: 3px; }
.links { display: none; }
.menu-btn { background: none; border: 0; padding: 12px 6px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; transform: skewX(-14deg); }
.mobile { display: none; background: var(--navy); border-top: 1px solid var(--rule-on-dark); }
.mobile.open { display: block; }
.mobile a { display: block; padding: 14px var(--gutter); border-bottom: 1px solid var(--rule-on-dark); font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; color: #fff; text-decoration: none; }

/* ---------- dark surfaces ---------- */
.dark { background: var(--navy); color: var(--text-on-dark); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark a:not(.btn) { color: var(--sky); }
.dark.royal { background: var(--royal); color: #fff; }
.dark.royal a:not(.btn) { color: #fff; }

/* ---------- the kit hem sweep ---------- */
.sweep { display: block; overflow: visible; width: 100%; height: clamp(44px, 11vw, 132px); margin-bottom: -1px; }

/* ---------- home hero: words on the team photo ---------- */
.hero { position: relative; min-height: min(88svh, 700px); display: flex; align-items: flex-end; background: var(--navy-deep); overflow: hidden; }
.hero-photo { position: absolute; left: 0; top: 0; width: 100%; height: 82%; object-fit: cover; object-position: 50% 30%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 27, 59, 0) 36%, rgba(0, 27, 59, 0.78) 60%, var(--navy-deep) 82%); }
.hero .sweep { position: absolute; left: 0; bottom: 0; z-index: 2; }
.hero .wrap { position: relative; z-index: 3; width: 100%; padding-top: 40px; padding-bottom: calc(clamp(44px, 11vw, 132px) + 18px); }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 27, 59, 0.5); }
.hero .lede { color: #fff; max-width: 30ch; margin: 12px 0 0; }
.hero h1 { font-size: clamp(46px, 13.6vw, 96px); }
.hero .actions { flex-wrap: nowrap; gap: 10px; margin-top: 22px; }
.hero .btn { padding: 10px 14px; font-size: 20px; white-space: nowrap; }

/* ---------- inner page title ---------- */
.page-title { padding-top: 26px; }
.page-title h1 { font-size: clamp(38px, 9.5vw, 64px); line-height: 0.96; }
.page-title .wrap { padding-bottom: 10px; }
.page-title .sweep { height: clamp(28px, 6vw, 60px); }
.page-title .lede { max-width: 44ch; margin: 14px 0 0; }

/* Inner pages with a photo: the title sits on the team photo, as on the home page */
.page-hero { position: relative; min-height: clamp(300px, 70vw, 540px); display: flex; align-items: flex-end; background: var(--navy-deep); overflow: hidden; }
.page-hero .hero-photo { height: 100%; }
.page-hero.tall { min-height: clamp(320px, 80vw, 660px); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 27, 59, 0) 45%, rgba(0, 27, 59, 0.82) 100%); }
.page-hero .sweep { position: absolute; left: 0; bottom: 0; z-index: 2; height: clamp(28px, 6vw, 60px); }
.page-hero .wrap { position: relative; z-index: 3; width: 100%; padding-bottom: calc(clamp(28px, 6vw, 60px) + 14px); }
.page-hero h1 { font-size: clamp(38px, 9.5vw, 64px); line-height: 0.96; color: #fff; text-shadow: 0 2px 20px rgba(0, 27, 59, 0.6); }

/* Intro under a photo title: opening line large, the rest beside it on wide screens */
.intro > div > :last-child { margin-bottom: 0; }
.intro .lede { color: var(--ink); }

/* ---------- sections ---------- */
.band { padding: 52px 0; }
.band.tight-top { padding-top: 30px; }
.band.pale { background: var(--sky-pale); }
.band h2 + * { margin-top: 20px; }
.split { display: grid; gap: 28px; }
.split img { width: 100%; border-radius: 6px; }
.more { margin: 22px 0 0; font-weight: 600; }

/* ---------- training schedule ---------- */
.schedule { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--rule-on-dark); }
.schedule li { display: grid; grid-template-columns: 70px 1fr; column-gap: 16px; row-gap: 2px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--rule-on-dark); }
.bib { grid-row: 1 / span 3; align-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 70px; height: 58px; border-radius: 7px; background: var(--sky); color: var(--navy); font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 0.9; letter-spacing: 0.01em; outline: 1.5px dashed rgba(0, 39, 82, 0.4); outline-offset: -5px; }
.bib small { font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 2px; }
.sch-teams { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 28px; line-height: 0.95; text-transform: uppercase; color: #fff; }
.sch-when { font-weight: 600; color: var(--sky); }
.sch-where { font-size: 16px; }
.schedule + .more { margin-top: 20px; }
/* the same list on a white page */
.light .schedule, .light .schedule li { border-color: var(--rule); }
.light .bib { background: var(--royal); color: #fff; outline-color: rgba(255, 255, 255, 0.5); }
.light .sch-teams { color: var(--royal); }
.light .sch-when { color: var(--ink); }

/* ---------- plain lists ---------- */
.points { margin: 20px 0 0; padding: 0; list-style: none; max-width: 64ch; }
.points li { padding: 14px 0 14px 22px; border-top: 1px solid var(--rule); position: relative; }
.points li:last-child { border-bottom: 1px solid var(--rule); }
.points li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 10px; height: 4px; background: var(--royal); transform: skewX(-20deg); }
.dark .points li { border-color: var(--rule-on-dark); }
.dark .points li::before { background: var(--sky); }

.rows { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.rows li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.rows h3 { font-size: 26px; }
.rows span { display: block; margin-top: 4px; }
.rows a { display: inline-block; margin-top: 6px; padding: 4px 0; font-weight: 600; overflow-wrap: anywhere; }
.dark .rows, .dark .rows li { border-color: var(--rule-on-dark); }

/* ---------- venues: three boxes ---------- */
.venues { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.venues li { display: flex; flex-direction: column; background: var(--navy); color: var(--text-on-dark); border-radius: 6px; padding: 22px 22px 20px; border-top: 6px solid var(--sky); }
.venues h3 { color: #fff; font-size: 28px; }
.venues span { margin-top: 6px; }
.venues a { margin-top: 18px; color: var(--sky); font-weight: 600; align-self: flex-start; padding: 4px 0; }

/* ---------- how we work ---------- */
.guide { display: grid; gap: 30px; margin-top: 24px; }
.guide h3 { margin-bottom: 4px; }
.guide .points { margin-top: 10px; }

/* ---------- people ---------- */
.people { display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-on-dark); }
.people { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.people li { padding: 16px 0; border-bottom: 1px solid var(--rule-on-dark); }
.people h3 { font-size: 24px; }
.people .role { font-weight: 600; color: var(--sky); margin-top: 4px; }
.people p { margin: 10px 0 0; font-size: 16px; }
.people a { display: inline-block; margin-top: 8px; overflow-wrap: anywhere; }
.coaches { width: 100%; border-collapse: collapse; margin-top: 22px; }
.coaches td { padding: 13px 0; border-top: 1px solid var(--rule); }
.coaches tr:last-child td { border-bottom: 1px solid var(--rule); }
.coaches td:first-child { font-weight: 600; color: var(--ink); }
.coaches td:last-child { text-align: right; }

/* ---------- policies ---------- */
.welfare { display: grid; gap: 22px; }
.welfare h2 { font-size: clamp(30px, 7.5vw, 40px); }
.welfare p { margin: 14px 0 0; max-width: 56ch; }
.welfare .btn { justify-self: start; font-family: var(--body); font-size: 16px; font-weight: 600; text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
.doc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.doc-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: var(--sky-pale); color: var(--royal); font-weight: 600; font-size: 16px; text-decoration: none; }
.doc-jump a:hover { background: var(--sky); color: var(--navy); }
.doc-group { margin-top: 40px; scroll-margin-top: 90px; }
.doc-group h3 { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 30px; color: var(--royal); padding-bottom: 10px; border-bottom: 3px solid var(--royal); }
.doclist { list-style: none; margin: 0; padding: 0; }
.doclist li { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.doc-title { display: block; font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--ink); }
.doc-desc { display: block; margin-top: 4px; font-size: 16px; line-height: 1.45; }
.doc-date { font-size: 15px; color: var(--text); opacity: 0.85; }
.doc-files { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-files a { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 14px; border: 2px solid var(--royal); border-radius: 6px; font-weight: 600; font-size: 16px; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.doc-files small { font-size: 12px; font-weight: 600; color: var(--text); opacity: 0.75; }
.doc-files a:hover { background: var(--sky-pale); }

/* ---------- footer and phone join bar ---------- */
.site-foot { position: relative; padding: 56px 0 26px; font-size: 16px; background: var(--navy-deep); }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: linear-gradient(180deg, var(--royal) 0 8px, var(--sky) 8px 14px); }
.foot-main { display: grid; gap: 30px; }
.foot-club { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.foot-club img { width: 92px; height: 92px; flex: none; }
.foot-club .wm-1 { font-size: 52px; }
.foot-club .wm-2 { font-size: 23.5px; margin-top: 5px; }
.site-foot nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
.site-foot nav a:not(.btn) { font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none; color: #fff; padding: 7px 0; }
.site-foot nav a:not(.btn):hover { color: var(--sky); }
.foot-legal { margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--rule-on-dark); font-size: 15px; color: var(--text-on-dark); opacity: 0.85; }

@media (min-width: 720px) {
  :root { --gutter: 36px; }
  body { font-size: 18px; }
  .band { padding: 84px 0; }
  .band.tight-top { padding-top: 40px; }
  .lede { font-size: 23px; }
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
  .hero .lede { max-width: 36ch; }
  .page-title { padding-top: 40px; }
  .intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .intro .lede { margin: 0; }

  .schedule li { grid-template-columns: 76px 1.15fr 1fr 1fr; align-items: center; column-gap: 28px; padding: 12px 0; }
  .bib { grid-row: auto; width: 76px; height: 58px; font-size: 30px; }
  .sch-teams { font-size: 28px; }
  .sch-when { font-size: 20px; }
  .sch-where { font-size: 19px; text-align: right; }
  .people { grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
  .guide { grid-template-columns: 1.4fr 1fr; gap: 56px; }
  .welfare { grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
  .venues { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .doclist li { grid-template-columns: 1fr 340px; align-items: center; gap: 24px; }
  .doc-files { justify-content: flex-end; }
}

@media (min-width: 960px) {
  .menu-btn, .mobile, .mobile.open { display: none; }
  .foot-main { grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
  .site-foot nav { display: flex; justify-content: flex-end; gap: 34px; }
  .foot-club img { width: 120px; height: 120px; }
  .foot-club .wm-1 { font-size: 64px; }
  .foot-club .wm-2 { font-size: 29px; margin-top: 6px; }
  .site-foot { padding-top: 72px; }
  .site-head .wrap { min-height: 76px; }
  .brand img { width: 52px; height: 52px; }
  .brand .wm-1 { font-size: 31px; }
  .brand .wm-2 { font-size: 14.5px; }
  .links { display: flex; align-items: center; gap: 30px; }
  .links a:not(.btn) { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: 0.02em; color: #fff; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
  .links a:not(.btn):hover, .links a[aria-current] { border-bottom-color: var(--sky); }
  .hero { min-height: min(88svh, 800px); }
  .hero-photo { height: 100%; object-position: 50% 78%; }
  .hero .btn { padding: 10px 24px; font-size: 22px; }
  .hero .lede { max-width: none; }
  .hero .sweep, section > .sweep { height: 104px; }
  .page-title > .sweep { height: 60px; }
  .hero .wrap { padding-bottom: 126px; }
  .hero::before { background: linear-gradient(180deg, rgba(0, 27, 59, 0) 34%, rgba(0, 27, 59, 0.74) 62%, rgba(0, 27, 59, 0.94) 100%); }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .links a, .doc-files a { transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
}
