/* The generated athlete recruiting site. Styled after the existing athleteinsite.com/<name>/ sites:
   the same "athlete insite" logo pattern header, Oswald condensed caps for names / numbers / section titles,
   Source Sans for text, gold circle icons with dotted leader lines, square corners, no emojis. */
.athsite { --ink: #1d1f23; --soft: #5b606b; --char: #2b2d31; --char-2: #1f2124; --gold-solid: #c9a65a; --rule: #e3e5e9;
  --photo: 180px; --lift: 18px;   /* photo size; space above it = how far it dips into the gold bar */
  color: var(--ink); font: 400 16px/1.6 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif; background: #fff; }

/* ---------- header: about as tall as the photo. Name + key info left, photo a bit left of center, numbers right ---------- */
.as-band { background: #54565a url(pattern-header-xl.jpg) left center / 1440px auto repeat-x; color: #fff; padding: var(--lift) 30px; }
.as-band-in { display: grid; grid-template-columns: 9fr var(--photo) 16fr; gap: 26px; align-items: center; }
.as-left, .as-right { min-width: 0; }
.as-band h2 { margin: 0; font: 500 clamp(30px, 4vw, 44px)/1.02 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.as-sub { margin: 8px 0 0; font: 700 13px 'Source Sans 3', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lt, #e7d688); }
.as-k { margin: 6px 0 0; font: 600 12.5px/1.5 'Source Sans 3', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #e6e7ea; }
.as-teamline { margin: 0 0 10px; } .as-k i, .as-teamline i { font-style: normal; color: var(--gold-solid); padding: 0 4px; }
.as-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 0; }
.as-nums div + div { border-left: 1px solid rgba(255,255,255,.18); padding-left: 14px; }
.as-nums b { display: block; font: 400 34px/1 'Oswald', sans-serif; color: #f1f2f4; }
.as-nums small { display: block; margin-top: 5px; font: 600 10.5px 'Source Sans 3', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #c3c6cc; }
.as-photo-wrap { position: relative; z-index: 2; margin-bottom: calc(-2 * var(--lift)); }   /* dips --lift px into the gold bar */
.as-photo { display: grid; place-items: center; width: var(--photo); height: var(--photo); border-radius: 50%; object-fit: cover; border: 6px solid #fff;
  background: #44474d; font: 500 54px 'Oswald', sans-serif; color: #fff; box-shadow: 0 12px 28px -12px rgba(0,0,0,.6); }

/* ---------- gold contact bar: phone + email bold, centered, full text ---------- */
.as-reach { display: grid; grid-template-columns: 9fr var(--photo) 16fr; gap: 26px; align-items: center; padding: 0 30px; background: var(--gold-grad); }
.reach { display: flex; align-items: center; justify-content: center; gap: 10px; background: transparent; color: #111; border: 0; padding: 15px 0; cursor: pointer; min-width: 0; }
.reach svg { flex: none; width: 20px; height: 20px; }
.reach-val { white-space: nowrap; font: 700 18px 'Source Sans 3', sans-serif; letter-spacing: .01em; }
.copy-tag { flex: none; border: 1.5px solid #111; color: #111; padding: 4px 10px; font: 700 10.5px 'Source Sans 3', sans-serif; letter-spacing: .14em; text-transform: uppercase; transition: background .15s, color .15s; }
.reach:hover .copy-tag { background: #111; color: var(--gold-solid); }
.reach.done .copy-tag { background: #111; color: #fff; }

/* ---------- metrics: quieter, dark band ---------- */
.as-statbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); background: var(--char-2); }
.as-statbar div { text-align: center; padding: 14px 8px 12px; }
.as-statbar div + div { border-left: 1px solid rgba(255,255,255,.08); }
.as-statbar b { display: block; font: 400 25px/1.1 'Oswald', sans-serif; color: #e9eaed; }
.as-statbar small { display: block; margin-top: 4px; font: 600 11px 'Source Sans 3', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #9a9ea8; }

/* ---------- video: full width, the center of attention ---------- */
.as-video { position: relative; display: block; aspect-ratio: 16/9; background: #000; overflow: hidden; color: #fff; text-decoration: none; }
.as-video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; border-radius: 50%; background: var(--gold-grad);
  display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.7); transition: transform .2s; }
.as-video:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.as-video .play svg { width: 26px; height: 26px; fill: #111; margin-left: 4px; }
.as-video .vlabel { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font: 600 12px 'Source Sans 3', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #cfd2d8; }
.as-novideo { display: grid; place-items: center; text-align: center; color: #cfd2d8; font: 600 15px/1.5 'Source Sans 3', sans-serif; padding: 20px; }

/* ---------- body sections: gold circle icon + dotted leader, like the current sites ---------- */
.as-body { padding: 30px 28px 34px; display: grid; gap: 30px; }
.as-sec h4 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 500 20px/1 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.as-sec h4::after { content: ""; flex: 1; border-bottom: 2px dotted #b9bcc4; transform: translateY(4px); }
.as-ico { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--gold-solid); display: grid; place-items: center; }
.as-ico svg { width: 19px; height: 19px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.as-sec p { margin: 0; }
.as-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.as-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.as-kv dt { font: 600 12px/1.9 'Source Sans 3', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.as-kv dd { margin: 0; font-weight: 700; }
.as-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.as-list li { padding-left: 18px; position: relative; font-weight: 600; }
.as-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--gold-solid); }
.as-vids { display: grid; gap: 8px; }
.as-vid-sm { display: flex; align-items: center; gap: 12px; text-decoration: none; border: 1px solid var(--rule); padding: 10px 14px; font-weight: 600; font-size: 15px; color: var(--ink); }
.as-vid-sm:hover { border-color: var(--gold-solid); }
.as-vid-sm .play { width: 30px; height: 30px; border-radius: 50%; background: var(--char); display: grid; place-items: center; flex: none; }
.as-vid-sm .play svg { width: 11px; height: 11px; fill: #fff; margin-left: 2px; }
.as-vid-sm span:not(.play) { flex: 1; }
.as-vid-sm .vgo { font-style: normal; font: 700 11px 'Source Sans 3', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }

/* ---------- schedule: one clear "Add to calendar" button per event ---------- */
.ev-tip { margin: -4px 0 12px !important; color: var(--soft); font-size: 15px; }
.as-sched { border-top: 1px solid var(--rule); }
.ev { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ev-when { font: 500 17px/1.2 'Oswald', sans-serif; text-transform: uppercase; color: var(--ink); }
.ev-when small { display: block; font: 600 12px 'Source Sans 3', sans-serif; letter-spacing: .1em; color: var(--soft); margin-top: 3px; }
.ev-what b { display: block; font-size: 16.5px; } .ev-what span { color: var(--soft); font-size: 14.5px; }
.ev-cal { position: relative; }
.ev-cal summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; background: var(--char); color: #fff; padding: 10px 14px;
  font: 700 12.5px 'Source Sans 3', sans-serif; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; user-select: none; }
.ev-cal summary::-webkit-details-marker { display: none; }
.ev-cal summary::after { content: "▾"; font-size: 11px; opacity: .8; }
.ev-cal summary:hover, .ev-cal[open] summary { background: #000; }
.ev-cal summary svg { width: 17px; height: 17px; color: var(--gold-solid); }
.ev-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 200px; background: #fff; border: 1px solid var(--rule); box-shadow: 0 16px 34px -12px rgba(0,0,0,.35); display: grid; }
.ev-menu a { padding: 11px 14px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; border-top: 1px solid var(--rule); }
.ev-menu a:first-child { border-top: 0; } .ev-menu a:hover { background: #f5f2ea; }
.ev-all { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; text-decoration: none; background: var(--char); color: #fff; padding: 13px;
  font: 700 13px 'Source Sans 3', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.ev-all:hover { background: #000; }
.ev-all svg { width: 18px; height: 18px; color: var(--gold-solid); } .ev-all small { font-weight: 600; letter-spacing: .06em; opacity: .7; }

/* ---------- in-between widths (tablet / narrow window): same layout, smaller ---------- */
@media (max-width: 900px) {
  .athsite { --photo: 140px; --lift: 14px; }
  .as-band { padding-left: 20px; padding-right: 20px; }
  .as-band-in { gap: 18px; }
  .as-band h2 { font-size: 30px; } .as-sub { font-size: 11.5px; letter-spacing: .12em; } .as-k { font-size: 11px; letter-spacing: .1em; }
  .as-nums b { font-size: 25px; } .as-nums small { font-size: 9.5px; letter-spacing: .12em; } .as-nums div + div { padding-left: 9px; }
  /* gold bar: two even halves; the photo only dips --lift px in, less than the bar's top padding */
  .as-reach { grid-template-columns: 1fr 1fr; gap: 0; padding: 0 12px; } .as-gap { display: none; }
  .reach { padding: 18px 6px; } .reach-val { font-size: 15.5px; }
}

/* ---------- phones: stack and center ---------- */
@media (max-width: 600px) {
  .athsite { --photo: 132px; }
  .as-band { padding: 20px 16px 18px; text-align: center; }
  .as-band-in { grid-template-columns: 1fr; gap: 12px; justify-items: center; }
  .as-photo-wrap { order: -1; margin-bottom: 0; }
  .as-band h2 { font-size: 32px; }
  .as-nums { grid-template-columns: repeat(5, auto); justify-content: center; } .as-nums div + div { padding-left: 12px; margin-left: 12px; }
  .as-reach { grid-template-columns: 1fr; padding: 0 16px; }
  .reach { padding: 13px 0; } .reach + .reach { border-top: 1px solid rgba(0,0,0,.15); }
  .reach-val { white-space: normal; overflow-wrap: anywhere; text-align: center; font-size: 17px; }
  .as-statbar { grid-template-columns: repeat(2, 1fr); } .as-statbar div:nth-child(3) { border-left: 0; }
  .as-body { padding: 24px 18px 28px; } .as-grid { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 1fr; gap: 6px; }
  .ev-cal summary { width: 100%; justify-content: center; } .ev-menu { left: 0; right: 0; }
}

/* the preview frame: as wide as a laptop browser, even though the page column is narrower */
#wb-out .device { width: min(1040px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); }

/* ===== v6 tweaks ===== */
/* less overlap: ~10px above the photo and ~10px into the gold bar */
.athsite { --lift: 10px; }
/* photo a touch right of where it was (about 45% across), sitting right above the gap between phone and email */
.as-band-in, .as-reach { grid-template-columns: 13fr var(--photo) 17fr; }
.as-reach .reach:first-child { justify-content: flex-end; }
.as-reach .reach:last-child { justify-content: flex-start; }
/* right-side numbers: natural widths with even gaps, not stretched across */
.as-nums { grid-template-columns: repeat(5, auto); justify-content: start; }
.as-nums div + div { padding-left: 18px; margin-left: 18px; }
/* contact bar and metrics bar: the same height */
.as-reach, .as-statbar { min-height: 56px; }
.reach { padding: 0; height: 56px; }
.as-statbar div { display: flex; align-items: baseline; justify-content: center; gap: 9px; padding: 0 8px; height: 56px; align-content: center; flex-wrap: wrap; }
.as-statbar b { display: inline; font-size: 23px; line-height: 56px; }
.as-statbar small { display: inline; margin-top: 0; }

@media (max-width: 900px) {
  .athsite { --lift: 8px; }
  .as-reach { grid-template-columns: 13fr var(--photo) 17fr; gap: 18px; padding: 0 20px; } .as-gap { display: block; }
  .as-reach .reach:first-child { justify-content: flex-end; } .as-reach .reach:last-child { justify-content: flex-start; }
  .reach { padding: 0; gap: 7px; } .reach-val { font-size: 15px; } .copy-tag { padding: 3px 7px; font-size: 9.5px; }
  .as-nums div + div { padding-left: 10px; margin-left: 10px; }
  .as-statbar b { font-size: 20px; }
}
@media (max-width: 600px) {
  .as-reach { grid-template-columns: 1fr; padding: 0 16px; } .as-gap { display: none; }
  .as-reach .reach:first-child, .as-reach .reach:last-child { justify-content: center; }
  .reach { height: auto; min-height: 52px; padding: 8px 0; }
  .as-nums { grid-template-columns: repeat(5, auto); justify-content: center; } .as-nums div + div { padding-left: 11px; margin-left: 11px; }
  .as-statbar div { height: 52px; } .as-statbar b { line-height: 52px; }
}
@media (max-width: 600px) {
  .as-band-in { grid-template-columns: 1fr; }
  .as-statbar div { flex-direction: column; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 2px; }
  .as-statbar b { line-height: 1.1; font-size: 21px; } .as-statbar small { font-size: 10px; }
  .as-statbar div + div { border-left: 1px solid rgba(255,255,255,.08); } .as-statbar div:nth-child(3) { border-left: 0; }
  .as-statbar div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 600px) { .as-reach { gap: 0; } }

/* ===== v7 ===== */
/* smaller logo pattern (same seamless pattern, shown at 60%) */
.as-band { background-image: url(pattern-header-xl.jpg); background-size: 1440px auto; background-position: left center; background-repeat: repeat-x; }
/* phone + email sit close together around a thin divider that lines up under the photo's center */
.athsite { --g: 26px; }
.as-band-in { gap: var(--g); }
.as-reach { gap: 0; grid-template-columns: calc((100% - var(--photo) - 2 * var(--g)) * 13 / 30 + var(--g) + var(--photo) / 2 - 22px) 44px 1fr; }
.as-gap { display: block; justify-self: center; width: 1px; height: 24px; background: rgba(0,0,0,.28); }
.as-reach .reach:first-child { justify-content: flex-end; } .as-reach .reach:last-child { justify-content: flex-start; }
@media (max-width: 900px) { .athsite { --g: 18px; } .as-reach { padding: 0 20px; } .as-gap { display: block; } }
@media (max-width: 600px) {
  .as-reach { grid-template-columns: 1fr; padding: 0 16px; } .as-gap { display: none; }
  .as-reach .reach:first-child, .as-reach .reach:last-child { justify-content: center; }
  .as-band { background-size: 1100px auto; }
}
/* phones: 1-3 metrics sit in one row; 4 go two-by-two */
@media (max-width: 600px) {
  .as-statbar[data-n="1"] { grid-template-columns: 1fr; } .as-statbar[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
  .as-statbar[data-n="3"] { grid-template-columns: repeat(3, 1fr); }
  .as-statbar[data-n="3"] div:nth-child(3) { border-left: 1px solid rgba(255,255,255,.08); border-top: 0; }
  .as-statbar[data-n="3"] b { font-size: 19px; }
}

/* ===== v8: phones. Compact header so the highlight video is near the top (coaches open our emails on phones) ===== */
@media (max-width: 600px) {
  /* pattern always covers the whole header: no plain grey strips */
  .as-band { background-size: auto 100%; background-repeat: repeat-x; background-position: left center; padding: 12px 14px 12px; text-align: left; }
  /* photo left, name block right of it; teams + numbers in one row underneath */
  .as-band-in { grid-template-columns: 92px 1fr; grid-template-areas: "photo left" "right right"; gap: 10px 14px; align-items: center; justify-items: stretch; }
  .as-photo-wrap { grid-area: photo; order: 0; margin: 0; }
  .athsite { --photo: 92px; }
  .as-photo { border-width: 4px; font-size: 30px; }
  .as-left { grid-area: left; order: 0; text-align: left; }
  .as-right { grid-area: right; order: 0; }
  .as-band h2 { font-size: 30px; text-align: left; line-height: 1.02; }
  .as-sub { margin-top: 4px; font-size: 11.5px; letter-spacing: .12em; }
  .as-k { margin-top: 2px; font-size: 10.5px; letter-spacing: .1em; }
  .as-teamline { margin: 0 0 6px; text-align: center; font-size: 10px; }
  .as-nums { grid-template-columns: repeat(5, 1fr); justify-content: stretch; }
  .as-nums div { text-align: center; } .as-nums div + div { padding-left: 0; margin-left: 0; }
  .as-nums b { font-size: 21px; } .as-nums small { font-size: 8.5px; letter-spacing: .12em; margin-top: 3px; }
  /* contact: two slim rows */
  .reach { min-height: 42px; padding: 6px 0; } .reach-val { font-size: 16px; }
  /* metrics: all in one slim row */
  .as-statbar, .as-statbar[data-n] { grid-template-columns: repeat(var(--n, 4), 1fr); min-height: 0; }
  .as-statbar[data-n="1"] { --n: 1; } .as-statbar[data-n="2"] { --n: 2; } .as-statbar[data-n="3"] { --n: 3; } .as-statbar[data-n="4"] { --n: 4; }
  .as-statbar div, .as-statbar[data-n="3"] div { height: 46px; flex-direction: column; gap: 1px; padding: 0 2px; border-top: 0 !important; }
  .as-statbar div + div { border-left: 1px solid rgba(255,255,255,.08) !important; }
  .as-statbar b, .as-statbar[data-n="3"] b { font-size: 17px; line-height: 1.1; } .as-statbar small { font-size: 8.5px; letter-spacing: .1em; }
}

/* ===== v9 phones: no teams line; phone + email on ONE line (sized to fit by builder.js) ===== */
@media (max-width: 600px) {
  .as-teamline { display: none; }
  .as-reach { grid-template-columns: auto 1px auto; justify-content: center; align-items: center; column-gap: 10px; padding: 0 10px; min-height: 46px; }
  .as-gap { display: block; width: 1px; height: 20px; }
  .as-reach .reach, .as-reach .reach:first-child, .as-reach .reach:last-child { justify-content: center; min-height: 46px; padding: 0; gap: 5px; }
  .reach + .reach { border-top: 0; }
  .reach svg { display: none; }
  .reach-val { white-space: nowrap; overflow-wrap: normal; font-size: 14px; }
  .copy-tag { padding: 2px 4px; font-size: 8px; letter-spacing: .08em; border-width: 1px; }
}
@media (max-width: 600px) {
  /* the real site is full-width on a phone, so the preview is too */
  #wb-out .device { width: 100vw; border-radius: 0; border-left: 0; border-right: 0; }
  /* small copy icon instead of the COPY box (whole phone / email is tappable); turns into a check when copied */
  .copy-tag { display: none; }
  .reach::after { content: ""; flex: none; width: 12px; height: 12px; background: #111; opacity: .75;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='1'/%3E%3Cpath d='M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='1'/%3E%3Cpath d='M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1'/%3E%3C/svg%3E") center / contain no-repeat; }
  .reach.done::after { background: #1f7a4a; opacity: 1;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E"); }
  .as-reach { column-gap: 9px; padding: 0 8px; }
}

/* long text never breaks the layout: long words wrap instead of spilling out */
.as-left, .as-right, .as-sec p, .as-kv dd, .as-list li, .ev-what, .as-k, .as-sub { overflow-wrap: anywhere; }
.ev-what b, .ev-what span { display: block; }
/* phones: very long email -> phone and email on two rows */
@media (max-width: 600px) {
  .as-reach.stack { grid-template-columns: 1fr; } .as-reach.stack .as-gap { display: none; }
  .as-reach.stack .reach { min-height: 38px; } .as-reach.stack .reach + .as-gap + .reach { border-top: 1px solid rgba(0,0,0,.15); }
  .as-reach.stack .reach-val { font-size: 15px; white-space: normal; overflow-wrap: anywhere; text-align: center; }
}

/* every number sits centered over its label */
.as-nums div { text-align: center; }

/* desktop / tablet: phone | email as one centered group that fills the gold bar evenly */
@media (min-width: 601px) {
  .as-reach { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 0 24px; }
  .as-reach .reach, .as-reach .reach:first-child, .as-reach .reach:last-child { flex: none; justify-content: center; }
  .as-gap { display: block; flex: none; }
}

.as-quote { margin: 0 0 16px; padding: 0 0 0 16px; border-left: 3px solid #c9a227; }
.as-quote p { font-style: italic; margin: 0 0 6px; }
.as-quote cite { font-style: normal; font: 600 13px 'Source Sans 3', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
