:root{
  --red:#e10f16;
  --red-dark:#b90b11;
  --black:#0f1417;
  --ink:#20262b;
  --muted:#68727c;
  --line:#e1e5e8;
  --panel:#fff;
  --soft:#f4f6f7;
  --bg:#eef1f2;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--ink)}
a{color:inherit}
button,input,select,textarea{font:inherit}
.topbar{
  position:sticky;top:0;z-index:30;background:var(--black);color:#fff;
  display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:28px;
  min-height:70px;padding:10px max(24px,calc((100vw - var(--max))/2));
  box-shadow:0 2px 12px rgba(0,0,0,.18);border-bottom:2px solid var(--red)
}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-weight:900;letter-spacing:.04em;font-size:18px;white-space:nowrap}
.brand b{color:var(--red)}
.brand-logo{width:44px;height:44px;object-fit:contain;border-radius:50%}
nav{display:flex;gap:22px;align-items:center;font-size:13px;font-weight:800}
nav a{color:#fff;text-decoration:none;opacity:.94}
nav a:hover{color:#ff5c61}
.top-status{font-size:11px;color:#b9c1c6;text-align:right;max-width:210px;line-height:1.3}
.home-hero{
  position:relative;overflow:hidden;
  background:
    radial-gradient(circle at 82% 25%,rgba(225,15,22,.14),transparent 22%),
    linear-gradient(180deg,rgba(255,255,255,.97),rgba(239,242,243,.96));
  border-bottom:1px solid var(--line)
}
.hero-inner{max-width:var(--max);margin:auto;padding:44px 34px 46px;display:grid;grid-template-columns:190px 1fr;gap:34px;align-items:center}
.logo-wrap{display:flex;justify-content:center}
.hero-logo{width:176px;height:176px;object-fit:contain;border-radius:50%;filter:drop-shadow(0 10px 16px rgba(0,0,0,.16))}
.eyebrow{text-transform:uppercase;letter-spacing:4px;color:var(--red);font-size:11px;font-weight:900;margin:0 0 8px}
h1{font-size:52px;line-height:.95;margin:0 0 15px;font-weight:950;letter-spacing:-2px}
h1 b{color:var(--red)}
.lead{font-size:20px;line-height:1.38;max-width:760px;margin:0;color:#293137}
.hero-note{font-size:13px;color:var(--muted);margin:14px 0 0;font-weight:700}
.desert-line{height:35px;position:relative;opacity:.16}
.desert-line:before,.desert-line:after{content:"";position:absolute;bottom:0;background:#1a2024}
.desert-line:before{left:-4%;width:58%;height:28px;clip-path:polygon(0 100%,0 78%,12% 66%,22% 69%,35% 43%,50% 68%,63% 55%,78% 75%,100% 58%,100% 100%)}
.desert-line:after{right:-3%;width:55%;height:23px;clip-path:polygon(0 100%,0 70%,15% 78%,28% 51%,41% 70%,56% 38%,71% 72%,87% 60%,100% 75%,100% 100%)}
.desert-line span:before{content:"";position:absolute;right:12%;bottom:1px;width:3px;height:28px;background:#1a2024;box-shadow:-4px 8px 0 -1px #1a2024}
.section{width:min(var(--max),calc(100% - 40px));margin:auto;padding:34px 0 52px}
.section-heading h2{font-size:30px;margin:0 0 7px;font-weight:950;letter-spacing:-.5px}
.section-sub{margin:0 0 22px;color:var(--muted);font-size:14px}
.event-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.event-card{
  min-height:112px;display:grid;grid-template-columns:48px 1fr 22px;align-items:center;gap:14px;
  border:1px solid var(--line);border-radius:11px;background:#fff;padding:18px;text-align:left;cursor:pointer;
  transition:transform .15s,box-shadow .15s,border-color .15s
}
.event-card:hover,.event-card.active{transform:translateY(-2px);box-shadow:0 9px 22px rgba(20,28,34,.09);border-color:#c6ccd0}
.event-card.active{box-shadow:inset 4px 0 0 var(--red),0 9px 22px rgba(20,28,34,.08)}
.event-icon{width:42px;height:42px;border-radius:9px;background:#fff0f1;color:var(--red);display:grid;place-items:center;font-weight:950;font-size:17px}
.event-card strong{display:block;font-size:16px;line-height:1.15}
.event-card small{display:block;color:var(--muted);font-size:12px;line-height:1.35;margin-top:6px}
.event-card i{font-style:normal;color:var(--red);font-size:20px;font-weight:900}
.results{margin-top:18px;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.welcome-panel,.empty{padding:22px;border-left:5px solid var(--red)}
.welcome-panel p,.empty{color:var(--muted);margin:6px 0 0;line-height:1.45}
.result-row{display:grid;grid-template-columns:125px 1fr;gap:20px;padding:18px 20px;border-top:1px solid var(--line);align-items:start}
.result-row:first-child{border-top:0}
.date{font-weight:900;font-size:14px;color:#384148;padding-top:3px}
.result-row h3{margin:0 0 7px;font-size:18px}
.result-row h3 a{color:var(--red);text-decoration:none}
.result-row h3 a:hover{text-decoration:underline}
.result-row p{margin:4px 0;color:#46515a;font-size:13px}
.source{font-size:12px!important;color:#2d363d!important;margin-top:8px!important}
.coach-strip{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:24px;align-items:center}
.coach-strip h2{font-size:28px;margin:0 0 8px}
.coach-strip p:not(.eyebrow){margin:0;color:var(--muted);max-width:720px;line-height:1.45}
.cta,.primary,.admin-row button{
  display:inline-block;text-decoration:none;border:0;border-radius:7px;background:var(--red);color:#fff;padding:12px 18px;font-weight:900;cursor:pointer;white-space:nowrap
}
.cta:hover,.primary:hover,.admin-row button:hover{background:var(--red-dark)}
footer{
  border-top:1px solid var(--line);background:#111518;color:#c7ced3;
  padding:23px max(24px,calc((100vw - var(--max))/2));font-size:12px;
  display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap
}
footer strong{color:#fff}

/* secondary pages */
.hero.compact{
  width:min(var(--max),calc(100% - 40px));margin:auto;padding:44px 0 30px;
  max-width:none
}
.hero.compact h1{font-size:42px;line-height:1;letter-spacing:-1px}
.hero.compact .lead{font-size:18px;margin-top:12px}
.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.form-card{background:#fff;border:1px solid var(--line);border-left:4px solid var(--red);padding:24px;border-radius:9px}
.form-card.wide{max-width:900px}
.form-card h2{margin-top:0;font-size:24px}
.form-card label{display:block;margin:14px 0;font-weight:800;font-size:13px}
.form-card input,.form-card select,.form-card textarea{width:100%;margin-top:7px;padding:11px 12px;border:1px solid #c7cdd1;border-radius:6px;background:#fff}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.form-note{min-height:20px;font-size:13px;line-height:1.4}
.status-box{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.text-link{color:var(--red);font-weight:900}
.muted{color:var(--muted)}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}
.stat{background:#fff;border:1px solid var(--line);padding:18px;border-radius:8px}
.stat strong{display:block;color:var(--red);font-size:30px}
.stat span{color:var(--muted);font-size:12px}
.review-grid{display:grid;gap:28px}
.review-grid>section{background:#fff;border:1px solid var(--line);border-radius:9px;padding:18px}
.review-grid h2{margin:0 0 10px;font-size:21px}
.admin-row{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:13px 0;border-top:1px solid var(--line)}
.admin-row:first-child{border-top:0}
.admin-row p{margin:4px 0 0;color:var(--muted);font-size:12px}
@media(max-width:850px){
  .topbar{grid-template-columns:1fr auto}.top-status{display:none}
  .hero-inner{grid-template-columns:1fr;text-align:center;padding-top:30px}
  .hero-logo{width:132px;height:132px}
  .hero-copy .lead{margin-left:auto;margin-right:auto}
  h1{font-size:40px}
  .event-grid,.two-col,.form-grid,.stat-grid{grid-template-columns:1fr}
  .coach-strip{align-items:flex-start;flex-direction:column}
}
@media(max-width:560px){
  .brand span{font-size:14px}.brand-logo{width:36px;height:36px}
  nav{gap:10px;font-size:11px}
  .section{width:min(var(--max),calc(100% - 26px))}
  .result-row{grid-template-columns:1fr;gap:5px}
}

/* Homepage refinement — cleaner single-logo masthead */
.topbar{
  grid-template-columns:auto 1fr auto;
  min-height:64px;
  padding-top:8px;
  padding-bottom:8px;
}
.brand-logo{
  width:38px;
  height:38px;
}
.brand{
  font-size:17px;
}
.topbar nav{
  justify-self:end;
}
.top-status{
  display:none;
}

.home-hero{
  background:
    radial-gradient(circle at 88% 20%,rgba(225,15,22,.09),transparent 24%),
    linear-gradient(180deg,#fff 0%,#f3f5f6 100%);
}
.hero-inner.hero-simple{
  max-width:var(--max);
  margin:auto;
  padding:56px 34px 52px;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);
  gap:70px;
  align-items:center;
}
.hero-simple .hero-copy{
  max-width:760px;
}
.hero-simple h1{
  font-size:clamp(48px,6vw,76px);
  line-height:.96;
  margin:0 0 18px;
}
.hero-simple .lead{
  max-width:720px;
  font-size:clamp(20px,2.4vw,28px);
  line-height:1.35;
}
.hero-actions{
  display:flex;
  gap:12px;
  margin-top:26px;
  flex-wrap:wrap;
}
.hero-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border-radius:7px;
  font-weight:900;
  text-decoration:none;
  font-size:14px;
}
.primary-action{
  background:var(--red);
  color:#fff;
}
.primary-action:hover{
  background:var(--red-dark);
}
.secondary-action{
  border:1px solid #c7cdd1;
  background:#fff;
  color:#222;
}
.secondary-action:hover{
  border-color:#9fa8ae;
}
.hero-side{
  justify-self:end;
  width:100%;
  max-width:340px;
  min-height:240px;
  border-left:1px solid var(--line);
  padding-left:38px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:20px;
}
.az-outline{
  width:96px;
  height:96px;
  border:3px solid var(--red);
  color:var(--red);
  display:grid;
  place-items:center;
  font-size:34px;
  font-weight:950;
  letter-spacing:-2px;
  transform:skew(-5deg);
}
.hero-side-copy{
  font-size:18px;
  line-height:1.35;
  color:#4a545b;
}
.hero-side-copy strong{
  color:var(--ink);
}
.event-shell{
  padding-top:42px;
}

@media(max-width:850px){
  .hero-inner.hero-simple{
    grid-template-columns:1fr;
    gap:26px;
    padding-top:40px;
    padding-bottom:38px;
  }
  .hero-side{
    justify-self:start;
    max-width:none;
    min-height:auto;
    border-left:0;
    border-top:1px solid var(--line);
    padding:22px 0 0;
    flex-direction:row;
    align-items:center;
  }
  .az-outline{
    width:66px;
    height:66px;
    font-size:24px;
    flex:0 0 auto;
  }
}


/* Homepage simplification — no hero, information lives in masthead */
.masthead{
  position:sticky;
  top:0;
  grid-template-columns:minmax(0,1fr) auto;
  min-height:72px;
  padding-top:10px;
  padding-bottom:10px;
}
.masthead .brand{
  align-items:center;
  gap:12px;
  max-width:820px;
}
.masthead .brand-logo{
  width:46px;
  height:46px;
  flex:0 0 auto;
}
.brand-copy{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
.brand-copy strong{
  font-size:17px;
  line-height:1;
  letter-spacing:.04em;
}
.brand-copy small{
  color:#aeb6bb;
  font-size:11px;
  line-height:1.25;
  font-weight:700;
  letter-spacing:0;
  white-space:normal;
}
.masthead nav{
  justify-self:end;
}
.home-hero,.hero-inner,.hero-simple,.hero-side,.desert-line{
  display:none!important;
}
.event-shell{
  padding-top:26px;
}
.compact-heading{
  margin-bottom:18px;
}
.compact-heading h1{
  font-size:34px;
  line-height:1.05;
  letter-spacing:-.7px;
  margin:0 0 6px;
}
.compact-heading .section-sub{
  margin:0;
}
@media(max-width:700px){
  .masthead{
    grid-template-columns:1fr;
    gap:8px;
  }
  .masthead nav{
    justify-self:start;
    padding-left:58px;
  }
  .brand-copy small{
    font-size:10px;
  }
  .compact-heading h1{
    font-size:28px;
  }
}


/* Minimal event tabs */
.event-tabs{
  display:flex;
  gap:0;
  border-bottom:1px solid var(--line);
  margin-top:8px;
  overflow-x:auto;
  scrollbar-width:none;
}
.event-tabs::-webkit-scrollbar{display:none}
.event-tab{
  appearance:none;
  border:0;
  border-bottom:3px solid transparent;
  background:transparent;
  color:#59636b;
  padding:12px 18px 11px;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
}
.event-tab:hover{
  color:var(--ink);
}
.event-tab.active{
  color:var(--red);
  border-bottom-color:var(--red);
}
.results{
  margin-top:0;
  border-top:0;
  border-radius:0 0 10px 10px;
}
.loading-initial{
  padding:20px;
  margin:0;
}
@media(max-width:700px){
  .event-tab{
    padding:11px 14px 10px;
    font-size:12px;
  }
}


/* Masthead logo cleanup: visually remove the baked-in white ring. */
.masthead .brand-logo,
.topbar .brand-logo{
  width:52px;
  height:52px;
  border-radius:0;
  clip-path:circle(38.5% at 50% 50%);
  object-fit:contain;
  transform:scale(1.08);
}

/* Keep tab treatment explicit so browser default button chrome never leaks through. */
.event-tabs .event-tab{
  -webkit-appearance:none;
  appearance:none;
  border:0;
  border-radius:0;
  border-bottom:3px solid transparent;
  background:transparent;
  box-shadow:none;
  color:#59636b;
}
.event-tabs .event-tab.active{
  color:var(--red);
  border-bottom-color:var(--red);
  background:transparent;
}


/* Admin analytics + coach management */
.admin-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  padding:18px;
  margin:20px 0 28px;
}
.admin-panel-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:baseline;
}
.admin-panel-head h2{margin:0}
.analytics-stats{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.analytics-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.analytics-grid>div{
  border-top:1px solid var(--line);
  padding-top:12px;
}
.analytics-grid h3{
  margin:0 0 8px;
  font-size:14px;
}
.metric-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:6px 0;
  border-bottom:1px solid #eef0f1;
  font-size:12px;
}
.admin-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.admin-actions button{
  padding:8px 11px;
}
.admin-actions .danger{
  background:#fff;
  color:#a3151d;
  border:1px solid #d6a3a7;
}
.admin-actions .danger:hover{
  background:#fff1f2;
}
@media(max-width:850px){
  .analytics-grid{grid-template-columns:1fr 1fr}
  .analytics-stats{grid-template-columns:1fr 1fr 1fr}
}
@media(max-width:560px){
  .analytics-grid,.analytics-stats{grid-template-columns:1fr}
  .admin-row{align-items:flex-start;flex-direction:column}
  .admin-actions{justify-content:flex-start}
}


/* Contact + discreet private admin shortcut */
footer .admin-shortcut{
  margin-left:auto;
  color:#6f787e;
  text-decoration:none;
  font-size:10px;
  letter-spacing:.06em;
}
footer .admin-shortcut:hover{color:#aeb6bb}
.contact-form{max-width:760px}
.hp-field{
  position:absolute!important;
  left:-10000px!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
}
@media(max-width:700px){
  footer .admin-shortcut{margin-left:0}
}


.ai-note{
  color:#7f8a91;
  font-size:10px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:0;
}
@media(max-width:700px){
  .ai-note{font-size:9px}
}
