:root {
  --navy: #13294b;
  --navy-2: #1d3a63;
  --ink: #0f1b2d;
  --saffron: #e87722;
  --saffron-dark: #c95f10;
  --green: #138a55;
  --red: #c8102e;
  --cream: #fff8ef;
  --sand: #fbefe0;
  --line: #ecdfcd;
  --text: #1c2738;
  --muted: #5d6878;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(19, 41, 75, .08);
  --container: 1200px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* component display rules must not override the hidden attribute */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2, .h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3, .h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.narrow { max-width: 720px; }
.mt-xl { margin-top: 2.5rem; }
.lead { font-size: 1.15rem; color: var(--text); }
.hindi { font-family: "Noto Sans Devanagari", "Noto Sans", sans-serif; }
.eyebrow { color: var(--saffron); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; margin-bottom: .6rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.title-rule::after { content: ""; display: block; width: 72px; height: 3px; margin-top: .55em; border-radius: 2px; background: linear-gradient(90deg, var(--saffron) 50%, var(--green) 50%); }
.tricolor { height: 6px; background: linear-gradient(90deg, var(--saffron) 33.3%, var(--white) 33.3% 66.6%, var(--green) 66.6%); }
.tricolor-thick { height: 10px; }
.icon { width: 1em; height: 1em; flex: none; vertical-align: -.12em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--saffron); color: var(--white); box-shadow: 0 6px 18px rgba(232, 119, 34, .3); }
.btn-primary:hover { background: var(--saffron-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: .45em 1.1em; font-size: .9rem; }
.btn-lg { padding: 1em 2em; font-size: 1.05rem; }
a.link-arrow { display: inline-block; padding: 8px 0; }
.link-arrow { font-weight: 700; color: var(--saffron-dark); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin .15s; }
a:hover .link-arrow::after, .link-arrow:hover::after { margin-left: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 239, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 34px; height: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 1.1rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.brand small { font-size: .7rem; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) { padding: .5em .9em; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--text); }
.site-nav a:not(.btn):hover { background: var(--sand); }
.site-nav a[aria-current="page"] { color: var(--saffron-dark); }
.site-nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* Flash */
.flash-stack { margin-top: 16px; display: grid; gap: 8px; }
.flash { padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.flash-success { background: #e3f4ea; color: #0d5f3a; border: 1px solid #b9e2c9; }
.flash-error { background: #fde8e8; color: #9b1c1c; border: 1px solid #f5c2c2; }

/* Hero */
.hero {
  position: relative; color: var(--white); min-height: min(86vh, 760px); display: flex; flex-direction: column;
  background: linear-gradient(90deg, rgba(10, 22, 42, .88) 0%, rgba(10, 22, 42, .55) 45%, rgba(10, 22, 42, .05) 80%), var(--hero-img) center/cover;
}
.hero-inner { flex: 1; display: flex; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.hero-copy { max-width: 620px; border-left: 6px solid var(--saffron); padding-left: 28px; position: relative; }
.hero-copy::after { content: ""; position: absolute; left: -6px; bottom: 0; width: 6px; height: 40px; background: var(--green); }
.hero-kicker { font-size: 1.05rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffd8b8; }
.hero-kicker span { font-weight: 600; letter-spacing: .3em; opacity: .8; margin-left: .3em; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.8rem); }
.hero-sub { font-size: 1.15rem; color: #e7edf6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0; }
.hero-hindi { color: #f5d9bf; font-size: 1rem; margin: 0; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tint { background: var(--sand); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.section-head p { max-width: 640px; margin: 0; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split-center { align-items: center; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Pillars */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pillars li { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.pillars li.pillar-green { background: #eaf5ee; border-color: #cfe7d8; }
.pillars h3 { margin-bottom: .3em; }
.pillars p { margin: 0; color: var(--muted); }
.num { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--saffron); color: var(--white); font-weight: 800; }
.pillar-green .num, .num-green { background: var(--green); }

/* Sport cards */
.sport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.sport-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.sport-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(19, 41, 75, .14); }
.sport-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.sport-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sport-card:hover .sport-card-media img { transform: scale(1.05); }
.sport-num { position: absolute; top: 0; left: 0; padding: 6px 14px 6px 10px; background: var(--saffron); color: var(--white); font-weight: 800; clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); }
.sport-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.sport-card-body h3 { margin-bottom: .25em; }
.sport-card-body p { color: var(--muted); flex: 1; margin-bottom: .8em; }
.sport-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.12) 0 2px, transparent 3px), linear-gradient(135deg, var(--navy), var(--navy-2)); background-size: 22px 22px, cover; }
.sport-placeholder.tone-1 { background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.14) 0 2px, transparent 3px), linear-gradient(135deg, var(--saffron-dark), var(--saffron)); }
.sport-placeholder.tone-2 { background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.14) 0 2px, transparent 3px), linear-gradient(135deg, #0d6b42, var(--green)); }
.sport-placeholder span { font-size: 4.5rem; font-weight: 800; color: rgba(255,255,255,.9); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.steps li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.steps li:nth-child(odd) { background: #fff1e4; }
.steps li:not(:last-child)::after { content: "›"; position: absolute; right: -16px; top: 50%; transform: translateY(-50%); font-size: 2rem; color: #d4c4ad; z-index: 1; }
.steps h3 { margin: 16px 0 8px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Tournament cards */
.t-list { display: grid; gap: 14px; }
.t-card { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 16px 16px; box-shadow: var(--shadow); }
.t-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 78px; height: 84px; border-radius: 14px; background: var(--navy); color: var(--white); line-height: 1.1; }
.t-month { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: #ffc999; font-weight: 700; }
.t-day { font-size: 1.9rem; font-weight: 800; }
.t-year { font-size: .75rem; opacity: .7; }
.t-body h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.t-body h3 a { text-decoration: none; color: var(--navy); }
.t-body h3 a:hover { color: var(--saffron-dark); }
.t-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; color: var(--muted); font-size: .92rem; }
.t-meta span { display: inline-flex; align-items: center; gap: 6px; }
.t-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.t-list-past .t-date { background: #8892a2; }
.status-cancelled .t-body h3 a { text-decoration: line-through; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.tag-navy { background: #e6ecf5; color: var(--navy); }
.tag-saffron { background: #fde9d7; color: #a24a07; }
.tag-green { background: #e0f3e8; color: #0d6b42; }
.tag-red { background: #fde3e3; color: #a3141f; }
.tag-muted { background: rgba(255,255,255,.2); color: var(--white); }
.tag-lg { font-size: .85rem; padding: 6px 14px; }
.empty { text-align: center; padding: 48px 24px; }

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.tabs { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs a { padding: .5em 1.3em; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--muted); }
.tabs a[aria-selected="true"] { background: var(--navy); color: var(--white); }
.inline-select { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.inline-select select { min-width: 200px; }

/* Page hero */
.page-hero { position: relative; color: var(--white); padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 80px); background: linear-gradient(90deg, rgba(10, 22, 42, .92), rgba(10, 22, 42, .55)), var(--page-img, none) center/cover, var(--navy); }
.page-hero-plain { background: radial-gradient(circle at 85% 10%, rgba(232,119,34,.35), transparent 40%), radial-gradient(circle at 10% 100%, rgba(19,138,85,.3), transparent 45%), var(--navy); }
.page-hero h1 { color: var(--white); max-width: 820px; }
.page-hero p { color: #dbe4f0; font-size: 1.1rem; max-width: 680px; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--saffron) 33.3%, var(--white) 33.3% 66.6%, var(--green) 66.6%); }
.pill-dark { display: inline-block; padding: 10px 18px; border-radius: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: #ffcc9e; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }

/* Detail pages */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.detail-grid > * { min-width: 0; }
.sticky { position: sticky; top: 96px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); padding: 14px 18px; border-radius: 14px; font-weight: 600; }
.check-list .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--green); color: var(--white); }
.facts { display: grid; gap: 0; margin: 0 0 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.facts dd { margin: 0; font-weight: 600; }
.prose { margin-bottom: 24px; font-size: 1.05rem; }

/* Participants & registration status */
.participants { margin-top: 32px; }
.participants h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.participants .count { background: var(--green); color: var(--white); font-size: .8rem; padding: 2px 10px; border-radius: 999px; }
.participant-list { list-style: none; counter-reset: p; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.participant-list li { counter-increment: p; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 12px 52px; position: relative; display: grid; }
.participant-list li::before { content: counter(p); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--sand); color: var(--saffron-dark); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.participant-list span { color: var(--muted); font-size: .85rem; }
.narrow-container { max-width: 720px; }
.reg-list { display: grid; gap: 18px; }
.reg-card { padding: 24px 28px; display: grid; gap: 16px; border-top: 6px solid var(--saffron); scroll-margin-top: 90px; }
.reg-info_requested { border-top-color: var(--navy); }
.reg-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.reg-top > div { display: grid; gap: 2px; }
.reg-title { font-size: 1.2rem; font-weight: 800; color: var(--navy); text-decoration: none; }
a.reg-title:hover { text-decoration: underline; }
.reg-pill { flex: none; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #fde9d7; color: #a24a07; }
.reg-approved .reg-pill { background: #e0f3e8; color: #0d6b42; }
.reg-denied .reg-pill { background: #fde3e3; color: #a3141f; }
.reg-info_requested .reg-pill { background: #e6ecf5; color: var(--navy); }
.reg-card p { margin: 0; }
.reg-approved { border-top-color: var(--green); }
.reg-denied { border-top-color: var(--red); }
.eyebrow-sm { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.reg-note { background: var(--sand); border-radius: 14px; padding: 16px 18px; }
.reg-note p { white-space: pre-wrap; margin-top: 6px; }
.reg-reply { display: grid; gap: 12px; }
.reg-reply .btn { justify-self: start; }
.reg-summary { margin: 0; display: grid; border-top: 1px solid var(--line); }
.page-hero-short { padding: clamp(40px, 6vw, 64px) 0 clamp(32px, 5vw, 48px); }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.account-head h1 { margin: 0; }
.account-actions { display: flex; gap: 8px; }
.hint-banner { background: var(--sand); border-radius: 14px; padding: 14px 18px; margin: 0 0 18px; }
.photo-picker { display: flex; gap: 16px; align-items: center; }
.photo-preview { width: 84px; height: 84px; flex: none; border-radius: 16px; overflow: hidden; background: var(--sand); border: 1px dashed #dccdb8; display: grid; place-items: center; color: var(--saffron-dark); }
.photo-preview .icon { width: 30px; height: 30px; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-controls { display: grid; gap: 8px; }
.field-label { font-weight: 600; font-size: .92rem; }
.photo-buttons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* Webcam window for "Take photo" on computers */
.cam-open { overflow: hidden; }
.cam-modal { position: fixed; inset: 0; z-index: 100; background: rgba(10, 22, 42, .75); display: grid; place-items: center; padding: 16px; }
.cam-modal[hidden] { display: none; }
.cam-box { background: var(--white); border-radius: var(--radius); padding: 16px; width: min(640px, 100%); display: grid; gap: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.cam-stage { position: relative; aspect-ratio: 4 / 3; background: var(--ink); border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.cam-stage video, .cam-stage canvas { width: 100%; height: 100%; object-fit: cover; }
.cam-stage video { transform: scaleX(-1); } /* mirror the live preview like a selfie */
.cam-message { color: #dbe4f0; text-align: center; padding: 24px; margin: 0; }
.cam-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.athlete { display: flex; align-items: center; gap: 12px; }
.athlete-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.reg-photo summary { cursor: pointer; font-weight: 600; color: var(--saffron-dark); padding: 8px 0; }
.reg-photo form { display: grid; gap: 12px; margin-top: 12px; }
.reg-photo .btn { justify-self: start; }
.mine { background: var(--sand); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; font-size: .92rem; }

/* Visitor sign-in */
.auth-section { padding-top: clamp(32px, 5vw, 64px); }
.auth-wrap { max-width: 520px; display: grid; gap: 16px; }
.auth-card { padding: 32px; display: grid; gap: 16px; }
.auth-card h1 { font-size: 1.9rem; margin: 0; }
.auth-card > p { margin: -8px 0 0; }
.auth-form { display: grid; gap: 14px; }
.auth-switch { margin: 0; text-align: center; color: var(--muted); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.label-row a { font-weight: 600; font-size: .9rem; color: var(--saffron-dark); padding: 4px 0; }
.field-hint { font-weight: 400; font-size: .85rem; color: var(--muted); }
.auth-fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 0; display: grid; gap: 12px; }
.auth-fieldset legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.pending-banner { display: grid; gap: 4px; background: var(--navy); color: #dbe4f0; border-radius: var(--radius); padding: 18px 22px; border-left: 6px solid var(--saffron); }
.pending-banner strong { color: var(--white); font-size: 1.1rem; }
.pending-banner .eyebrow-sm { color: #ffcc9e; }
.btn-google { background: var(--white); border: 1px solid #dadce0; color: #1f1f1f; gap: 10px; box-shadow: none; }
.btn-google:hover { background: #f8f9fa; }
.otp-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 700; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--saffron-dark); font-weight: 600; cursor: pointer; text-decoration: underline; }
.back-link { color: var(--muted); text-decoration: none; font-weight: 600; padding: 8px 0; }
.reg-summary div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.reg-summary dt { color: var(--muted); font-weight: 600; }
.reg-summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Forms */
.form-card { padding: 28px; display: grid; gap: 14px; }
.form-card h3 { margin: 0 0 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
input, select, textarea {
  /* 16px keeps iOS Safari from zooming in when a field is focused. */
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--text); width: 100%;
  padding: .75em .9em; border: 1px solid #dccdb8; border-radius: 12px; background: #fffdfa;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(232,119,34,.25); border-color: var(--saffron); }
.optional { font-weight: 400; color: var(--muted); }
.form-note { margin: 0; font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Patron & board */
.band-navy { background: var(--navy); color: #dbe4f0; }
.band-navy h2 { color: var(--white); }
.band-navy .lead { color: #e7edf6; }
.patron { padding: clamp(56px, 8vw, 96px) 0; }
.patron-inner { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.patron-photo { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.patron-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.patron-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; background: linear-gradient(transparent, rgba(10,22,42,.95) 40%); color: var(--white); }
.patron-name strong { display: block; font-size: 1.3rem; }
.patron-name span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #ffcc9e; font-weight: 700; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin: 32px 0; }
.board-card { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 16px 16px 24px; text-align: center; box-shadow: var(--shadow); }
.board-photo { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px; background: #f3f3f3; border-bottom: 8px solid var(--green); display: grid; place-items: center; }
.board-photo.stripe-saffron { border-color: var(--saffron); }
.board-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.board-photo span { font-size: 3rem; font-weight: 800; color: var(--navy); }
.board-card figcaption { margin-top: 18px; display: grid; gap: 4px; }
.board-card strong { color: var(--navy); font-size: 1.08rem; }
.board-card figcaption span { color: var(--muted); font-size: .92rem; }

/* IDEABAAZ */
.band-ink { background: var(--ink); color: #c9d3e1; }
.band-ink h2 { color: var(--white); }
.band-ink .lead { color: #dbe4f0; }
.ideabaaz-shot { border-radius: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.ideabaaz-logo { height: 46px; width: auto; margin-bottom: 18px; }
.dot-list { padding: 0; list-style: none; display: grid; gap: 10px; margin: 0 0 24px; }
.dot-list li { display: flex; gap: 12px; align-items: baseline; }
.dot-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--saffron); flex: none; transform: translateY(-1px); }

/* CTA */
.cta-band { color: var(--white); text-align: center; padding: clamp(72px, 10vw, 128px) 0; background: linear-gradient(rgba(10,22,42,.78), rgba(10,22,42,.85)), var(--cta-img) center/cover; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #dbe4f0; font-size: 1.1rem; }
.cta-band .hero-actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--ink); color: #aab6c7; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-brand strong { display: block; color: var(--white); }
.footer-brand span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.logo-tile { background: var(--white); border-radius: 14px; padding: 8px; }
.logo-tile img { width: 48px; height: auto; }
.site-footer h4 { color: var(--white); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.site-footer a { color: #d6deea; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .muted { color: #8b97a8; }
.assoc { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.socials { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }

/* Tournament draw (bracket). Each match sits in a cell that takes an equal share of the round's height,
   so a match in the next round lines up between the two it follows; the cells draw the connector lines. */
.seed-tag { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: .72rem; font-weight: 700; vertical-align: middle; }
.draw-section h2 { font-size: 1.6rem; }
.swipe-hint { display: none; font-size: .85rem; }
.bracket-scroll { overflow-x: auto; margin: 20px -20px 0; padding: 4px 20px 12px; }
.bracket-scroll:focus-visible { outline: 3px solid rgba(232, 119, 34, .35); }
.bracket { display: flex; min-width: max-content; }
.b-round { display: flex; flex-direction: column; width: 250px; }
.b-round h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--saffron-dark); margin: 0 0 8px; padding-right: 28px; }
.b-round:not(:first-child) h3 { padding-left: 14px; }
.b-matches { flex: 1; display: flex; flex-direction: column; }
.b-cell { flex: 1; display: flex; align-items: center; position: relative; padding: 6px 28px 6px 0; }
.b-round:not(:first-child) .b-cell { padding-left: 14px; }
.b-round:last-child .b-cell { padding-right: 0; }
.b-round:not(:last-child) .b-cell::after { content: ""; position: absolute; right: 14px; width: 14px; top: 50%; border-top: 2px solid #dccbb4; }
.b-round:not(:last-child) .b-cell::before { content: ""; position: absolute; right: 14px; border-right: 2px solid #dccbb4; }
.b-round:not(:last-child) .b-cell:nth-child(odd)::before { top: 50%; bottom: 0; }
.b-round:not(:last-child) .b-cell:nth-child(even)::before { top: 0; bottom: 50%; }
.b-match { position: relative; flex: 1; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: visible; box-shadow: 0 2px 8px rgba(19, 41, 75, .05); }
.b-round:not(:first-child) .b-match::before { content: ""; position: absolute; left: -28px; width: 28px; top: 50%; border-top: 2px solid #dccbb4; }
.b-entry { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; min-height: 48px; }
.b-entry + .b-entry { border-top: 1px solid var(--line); }
.b-name { display: grid; min-width: 0; font-weight: 700; color: var(--navy); line-height: 1.25; }
.b-name, .b-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-name small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.b-seed { flex: none; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--saffron); color: var(--white); font-size: .75rem; font-weight: 800; }
.b-empty { color: var(--muted); font-style: italic; font-size: .9rem; }
.b-match.is-bye { background: #fffdf9; }
.b-entry.is-won { background: #effaf3; }
.b-entry.is-won .b-name { color: var(--green); }
.b-entry.is-lost .b-name, .b-entry.is-lost .b-name small { color: #98a2b3; font-weight: 500; }
.b-entry:first-child { border-radius: 12px 12px 0 0; }
.b-check { flex: none; color: var(--green); font-weight: 800; }
.b-score { padding: 6px 12px; border-top: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--muted); background: var(--sand); border-radius: 0 0 12px 12px; }
.champion { display: inline-grid; gap: 2px; margin: 4px 0 16px; padding: 14px 22px; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--white); box-shadow: var(--shadow); }
.champion span { font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #ffc98f; }
.champion strong { font-size: 1.4rem; }
.champion small { color: #c6d0de; }

/* Group stage tables */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px; margin-top: 18px; }
.group-table { padding: 18px 18px 8px; }
.group-table h3 { font-size: 1.1rem; margin-bottom: 10px; }
.table-scroll { overflow-x: auto; }
.league { width: 100%; border-collapse: collapse; font-size: .92rem; }
.league th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 6px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.league td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.league .left { text-align: left; }
.league td.left small { display: block; color: var(--muted); font-size: .78rem; }
.league tr:last-child td { border-bottom: 0; }
.league tr.qualifies td { background: #effaf3; }
.league tr.qualifies td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.group-fixtures { margin: 10px 0 8px; }
.group-fixtures summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 6px 0; }
.group-fixtures ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.group-fixtures li { padding: 8px 10px; border-radius: 10px; background: var(--cream); font-size: .9rem; }
.group-fixtures li small { display: block; color: var(--muted); }
.group-fixtures .won { font-weight: 800; color: var(--green); }

/* Swiss standings and pairings */
.swiss-table { margin-top: 18px; }
.swiss-rounds { display: grid; gap: 12px; margin-top: 18px; }
.swiss-rounds summary { cursor: pointer; padding: 4px 0 10px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pairings { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pairings li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--cream); font-size: .92rem; }
.pairings li > span:nth-child(4) { text-align: right; }
.pairings .board { color: var(--muted); font-weight: 700; font-size: .8rem; }
.pairings .res { font-weight: 800; color: var(--navy); min-width: 44px; text-align: center; }
.pairings .won { font-weight: 800; color: var(--green); }
.pairings .bye { color: var(--muted); }
.pairings .piece { margin-right: 4px; color: var(--muted); }

/* Leaderboard */
.lb-public td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-public td.left { white-space: normal; }
.lb-public td.dnf { color: var(--red); font-weight: 700; font-size: .8rem; }
.lb-public td.gap { color: var(--muted); font-size: .85rem; }
.lb-public tr.podium-1 td:first-child { box-shadow: inset 4px 0 0 #d4a017; font-weight: 800; }
.lb-public tr.podium-2 td:first-child { box-shadow: inset 4px 0 0 #9aa4b2; font-weight: 800; }
.lb-public tr.podium-3 td:first-child { box-shadow: inset 4px 0 0 #b0703a; font-weight: 800; }

/* Responsive */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .patron-inner { grid-template-columns: 300px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 24px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .25s; }
  .nav-open .site-nav { transform: none; }
  .site-nav .btn { margin: 8px 0 0; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .split, .detail-grid, .patron-inner { grid-template-columns: 1fr; }
  .patron-photo { max-width: 380px; }
  .sticky { position: static; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero { background: linear-gradient(180deg, rgba(10,22,42,.55), rgba(10,22,42,.9)), var(--hero-img) 65% center/cover; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .t-card { grid-template-columns: auto 1fr; }
  .t-cta { grid-column: 1 / -1; }
  .t-date { width: 64px; height: 72px; }
  .facts div, .reg-summary div { grid-template-columns: 1fr; gap: 4px; }
  .hero-copy { padding-left: 18px; }
  .brand strong { font-size: .95rem; }
  /* Two sports per row keeps the long sports list scannable on phones. */
  .sport-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sport-card-body { padding: 12px 12px 14px; }
  .sport-card-body h3 { font-size: 1rem; }
  .sport-card-body p { font-size: .85rem; margin-bottom: .5em; }
  .sport-card-body .link-arrow { font-size: .85rem; }
  .sport-num { font-size: .8rem; padding: 4px 12px 4px 8px; }
  .sport-placeholder span { font-size: 3rem; }
  .photo-picker { align-items: flex-start; }
  .account-head { align-items: flex-start; }
  .auth-card, .reg-card { padding: 22px 18px; }
  .reg-top { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
  .b-round { width: 200px; }
  .swipe-hint { display: block; }
}
