/*
Theme Name: All Basketball Clean
Theme URI: https://allbasketball.co.uk/
Author: All Basketball
Description: Clean reconstructed theme for All Basketball.
Version: 2.1.0
Text Domain: allbasketball-clean
*/

:root {
  --ink: #202124;
  --navy: #0c1c2e;
  --navy-line: #1b3652;
  --lavender: #e1d3ff;
  --orange: #f0a14a;
  --yellow: #ffd832;
  --white: #fff;
  --muted: #68707a;
  --line: #dadde1;
  --max: 1216px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; border-top: 1px solid #d5d9de; background: var(--white); color: var(--ink); font: 16px/1.45 Arial, Helvetica, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
button, select { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 10px 14px; background: var(--yellow); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 16px; }

.site-header { background: var(--white); }
.header-inner { width: min(calc(100% - 112px), 1168px); height: 142px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.header-logo { display: block; width: 205px; flex: 0 0 205px; margin-left: -7px; }
.header-logo img { display: block; width: 100%; height: auto; }
.header-actions { display: flex; align-items: center; gap: 42px; }
.site-nav { display: flex; align-items: center; gap: 39px; color: #33373c; font-size: 16px; }
.site-nav a { padding: 8px 0 7px; white-space: nowrap; }
.site-nav a.current { border-bottom: 1px solid #33373c; }
.shop-bag { position: relative; display: block; width: 18px; height: 21px; border: 1.7px solid #30353a; border-radius: 1px; }
.shop-bag span::before { content: ""; position: absolute; left: 4px; top: -6px; width: 7px; height: 7px; border: 1.7px solid #30353a; border-bottom: 0; border-radius: 7px 7px 0 0; }

.scoreboard { width: min(calc(100% - 64px), var(--max)); height: 98px; margin: 0 auto; overflow: hidden; border-radius: 10px; background: var(--navy); color: #edf2f7; box-shadow: 0 2px 5px rgba(5,18,31,.16); }
.scoreboard-toolbar { height: 41px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--navy-line); }
.scoreboard-toolbar h2 { margin: 0; color: var(--lavender); font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.scoreboard-controls { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.scoreboard-controls label { color: #e0e5ec; }
.scoreboard-controls select { width: 158px; height: 27px; padding: 0 10px; border: 1px solid #29435e; border-radius: 9px; appearance: none; background: #12273e; color: #f2f4f8; opacity: 1; }
.scoreboard-controls button { width: 30px; height: 25px; padding: 0; border: 0; border-radius: 7px; background: var(--lavender); color: #24344a; font-size: 12px; font-weight: 800; opacity: 1; }
.scoreboard-message { margin: 0; padding: 17px 21px; color: #e7ebf1; font-size: 16px; }

.news-section { width: min(calc(100% - 64px), var(--max)); margin: auto; padding: 194px 0 118px; }
.reference-news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 22px; align-items: start; }
.reference-card { min-width: 0; }
.reference-card-media { display: block; width: 100%; aspect-ratio: 5 / 3; overflow: hidden; border-radius: 12px; background: var(--navy); }
.reference-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reference-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--lavender); font-size: 42px; font-weight: 800; }
.reference-card h2 { margin: 13px 0 0; font-size: clamp(17px, 1.55vw, 20px); font-weight: 400; line-height: 1.3; letter-spacing: -.01em; }
.reference-card h2 a { display: block; }
.more-news-button { width: max-content; margin: 64px auto 0; padding: 13px 24px; display: block; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; transition: background-color .2s ease, color .2s ease; }
.more-news-button:hover, .more-news-button:focus-visible { background: var(--ink); color: var(--white); text-decoration: none; }
.empty { padding: 32px; border: 1px solid var(--line); }

.discover-section { width: min(calc(100% - 64px), var(--max)); margin: auto; padding: 60px 0 110px; border-top: 1px solid #eceef0; }
.discovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.discovery-card { min-width: 0; text-align: center; }
.discovery-image { height: 300px; display: grid; place-items: center; overflow: hidden; background: #f2f3f5; }
.discovery-image-dark { background: #000; }
.discovery-image img { width: 100%; height: 100%; object-fit: contain; }
.discovery-copy { min-height: 210px; margin: 0 16px; padding: 27px 25px; background: var(--yellow); text-align: left; }
.discovery-copy h3 { margin: 0; font-size: 23px; line-height: 1.08; }
.discovery-copy p { margin: 15px 0 22px; color: #4e5358; }
.discovery-copy a, .coming-soon { border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.contact-section { width: min(calc(100% - 64px), var(--max)); margin: 0 auto 110px; }
.contact-heading { margin-bottom: 40px; text-align: center; }
.contact-heading h2 { margin: 0 0 10px; font-size: 40px; }
.contact-heading p { margin: 0; color: var(--muted); }
.contact-panel { min-height: 400px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: var(--yellow); }
.contact-copy { padding: 70px; }
.contact-copy > span { font-size: 13px; font-weight: 800; text-transform: uppercase; }
.contact-copy h3 { max-width: 480px; margin: 14px 0 32px; font-size: 42px; line-height: 1; }
.contact-button { display: inline-block; padding: 12px 17px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.contact-visual { display: grid; place-items: center; background: #15171a; color: #fff; text-align: center; }
.contact-visual strong { font-size: 54px; line-height: .88; }

.site-footer { padding: 70px max(32px, calc((100% - var(--max)) / 2)) 26px; background: #101113; color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 100px; padding-bottom: 60px; }
.footer-connect { max-width: 420px; }
.footer-brand { font-size: 42px; font-weight: 800; line-height: .78; }
.footer-brand span { color: var(--orange); }
.footer-connect p { max-width: 360px; color: #9ca1a8; }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-group h2 { margin: 0 0 8px; color: var(--orange); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.footer-group a { color: #d7d9dc; font-size: 14px; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; border-top: 1px solid #2c2e31; color: #858a91; font-size: 11px; text-transform: uppercase; }

.news-archive { width: min(calc(100% - 64px), var(--max)); margin: auto; padding: 86px 0 120px; }
.news-archive-header { margin-bottom: 58px; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 28px; }
.news-archive-header > p:first-child { grid-column: 1 / -1; margin: 0 0 -13px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.news-archive-header h1 { margin: 0; font-size: clamp(54px, 7vw, 92px); line-height: .82; letter-spacing: -.06em; }
.news-archive-header > p:last-child { max-width: 330px; margin: 0; color: var(--muted); }
.news-archive-rule { height: 1px; margin-bottom: 8px; background: var(--line); }
.news-card-meta { margin-top: 16px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-card-meta + h2 { margin-top: 7px; }
.news-pagination { margin-top: 82px; }
.news-pagination ul { margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; }
.news-pagination .page-numbers { min-width: 39px; height: 39px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; }
.news-pagination .current { border-color: var(--navy); background: var(--navy); color: var(--white); }
.news-pagination .prev, .news-pagination .next { padding-inline: 17px; }

.site-main { width: min(calc(100% - 64px), var(--max)); margin: auto; padding: 70px 0 100px; }
.section-title { margin: 0 0 35px; font-size: 44px; }
.post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.card img { display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.card h2 { font-size: 22px; line-height: 1.2; }
.card .meta { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.entry { max-width: 900px; margin: auto; }
.entry-header h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1; }
.entry > img, .entry-content img { max-width: 100%; height: auto; }
.entry-content { font-size: 18px; }
.nav-links { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.page-numbers { padding: 8px 12px; border: 1px solid var(--line); border-radius: 50%; }

@media (max-width: 900px) {
  .header-inner { width: min(calc(100% - 40px), var(--max)); }
  .header-actions { gap: 22px; }
  .site-nav { gap: 20px; }
  .scoreboard, .news-section, .news-archive, .discover-section, .contact-section, .site-main { width: min(calc(100% - 40px), var(--max)); }
  .reference-news-grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-grid { grid-template-columns: 1fr; }
  .discovery-card { display: grid; grid-template-columns: 1fr 1fr; }
  .discovery-copy { margin: 0; }
}

@media (max-width: 640px) {
  .header-inner { height: auto; min-height: 112px; padding: 14px 0; align-items: flex-start; flex-direction: column; gap: 10px; }
  .header-logo { width: 170px; flex-basis: auto; }
  .header-actions { width: 100%; gap: 16px; }
  .site-nav { flex: 1; gap: 18px; overflow-x: auto; font-size: 13px; }
  .scoreboard { width: calc(100% - 24px); height: auto; min-height: 98px; border-radius: 8px; }
  .scoreboard-toolbar { height: auto; min-height: 42px; padding: 8px 11px; }
  .scoreboard-controls label, .scoreboard-controls select { display: none; }
  .news-section { width: calc(100% - 24px); padding: 80px 0 90px; }
  .reference-news-grid { grid-template-columns: 1fr; gap: 38px; }
  .reference-card h2 { font-size: 19px; }
  .news-archive, .discover-section, .contact-section, .site-main { width: calc(100% - 24px); }
  .news-archive { padding: 62px 0 90px; }
  .news-archive-header { margin-bottom: 38px; display: block; }
  .news-archive-header > p:first-child { margin: 0 0 11px; }
  .news-archive-header h1 { font-size: 62px; }
  .news-archive-rule { margin: 24px 0 18px; }
  .news-pagination { margin-top: 58px; }
  .discovery-card { display: block; }
  .discovery-image { height: 280px; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-copy { padding: 42px 28px; }
  .contact-copy h3 { font-size: 36px; }
  .contact-visual { min-height: 260px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 45px 30px; }
  .footer-connect { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.page-courts-embed .site-footer { display: none; }
.page-courts-embed .courts-embed { width: 100%; }
.page-courts-embed .courts-embed iframe { display: block; width: 100%; border: 0; }
