:root {
  --black: #0b0d0f;
  --coal: #15191e;
  --panel: #1d2228;
  --white: #f7f8fa;
  --muted: #aeb5bf;
  --line: #303740;
  --blue: #35a7df;
  --blue-dark: #0d6e9e;
  --red: #e23f45;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--black); font-family: Inter, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20; height: 76px; padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  display: flex; align-items: center; justify-content: space-between; color: white;
  background: rgba(11, 13, 15, .9); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { display: block; width: 176px; height: 42px; object-fit: contain; object-position: left center; }
.brand-copy { border-left: 1px solid #59616b; padding-left: 12px; color: #c8cdd3; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.main-nav a { color: #d9dde2; }
.main-nav a:hover { color: var(--blue); }
.menu-toggle { display: none; border: 1px solid #4a525c; background: transparent; color: white; padding: 9px 12px; }
.mobile-page-nav { display: none; }

.hero { position: relative; min-height: 760px; height: 92vh; color: white; overflow: hidden; display: flex; align-items: center; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: rgba(0,0,0,.3); box-shadow: inset 62vw 0 150px rgba(5,8,10,.94); }
.hero-content { position: relative; z-index: 2; width: min(620px, calc(100% - 48px)); margin-left: max(24px, calc((100vw - var(--max)) / 2)); padding-top: 52px; }
.eyebrow { margin: 0 0 13px; color: var(--blue); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
h1, h2, h3 { font-family: "Barlow Condensed", Impact, sans-serif; text-transform: uppercase; letter-spacing: 0; }
h1 { margin: 0; max-width: 600px; font-size: clamp(64px, 7vw, 104px); line-height: .9; }
.hero-content > p:not(.eyebrow) { max-width: 590px; margin: 26px 0 0; color: #e4e7ea; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { min-height: 46px; padding: 13px 20px; border: 1px solid transparent; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.button-primary { background: var(--blue); color: #071018; }
.button-primary:hover { background: #69c8f2; }
.button-ghost { border-color: rgba(255,255,255,.5); color: white; background: rgba(0,0,0,.2); }
.button-outline { border-color: #727b85; color: var(--black); background: transparent; }
.button-full { width: 100%; }
.hero-status { position: absolute; z-index: 2; right: max(24px, calc((100vw - var(--max)) / 2)); bottom: 34px; width: 310px; padding: 20px; border-left: 3px solid var(--red); background: rgba(11,13,15,.88); }
.hero-status span, .hero-status strong, .hero-status a { display: block; }
.hero-status span { color: #aeb6be; font-size: 12px; text-transform: uppercase; }
.hero-status strong { margin: 5px 0 12px; font-family: "Barlow Condensed"; font-size: 24px; text-transform: uppercase; }
.hero-status a { color: var(--blue); font-size: 13px; font-weight: 700; }

.band { padding: 96px max(24px, calc((100vw - var(--max)) / 2)); }
.band-dark { background: var(--coal); color: white; }
.section-heading h2, .cta-band h2 { margin: 0; font-size: clamp(42px, 5vw, 68px); line-height: .95; }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.split-heading > p { max-width: 430px; margin: 0; color: var(--muted); line-height: 1.6; }
.intro-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: end; margin-top: 52px; }
.intro-lead { margin: 0; font-size: 21px; line-height: 1.65; color: #3f4852; }
.intro-support { margin: 18px 0 0; color: #707984; font-size: 14px; line-height: 1.7; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #cbd0d5; border-bottom: 1px solid #cbd0d5; }
.stats div { min-height: 112px; padding: 25px 20px; border-right: 1px solid #cbd0d5; }
.stats div:last-child { border-right: 0; }
.stats strong, .stats span { display: block; }
.stats strong { font: 800 26px/1 "Barlow Condensed"; text-transform: uppercase; }
.stats span { margin-top: 9px; color: #68717b; font-size: 13px; }
.mascot-feature { margin-top: 68px; min-height: 480px; display: grid; grid-template-columns: minmax(300px, .85fr) 1.15fr; overflow: hidden; background: var(--black); color: white; }
.mascot-feature img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.mascot-feature > div { padding: clamp(40px, 7vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.mascot-feature h3 { margin: 0; max-width: 560px; font-size: clamp(48px, 6vw, 78px); line-height: .95; }
.mascot-feature > div > p:last-child { max-width: 600px; margin: 24px 0 0; color: #bbc1c7; line-height: 1.75; }

.space-gallery { padding: 96px max(24px, calc((100vw - var(--max)) / 2)); background: #0f1215; color: white; }
.gallery-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; align-items: end; margin-bottom: 42px; }
.gallery-heading h2 { margin: 0; max-width: 760px; font-size: clamp(42px, 5vw, 68px); line-height: .95; }
.gallery-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-auto-rows: 270px; gap: 10px; }
.gallery-grid figure { position: relative; margin: 0; overflow: hidden; background: #20252a; }
.gallery-grid figure.gallery-wide { grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid figure:hover img { transform: scale(1.025); }
.gallery-grid figcaption { position: absolute; left: 16px; bottom: 14px; padding: 7px 10px; background: rgba(8,10,12,.82); border-left: 2px solid var(--red); color: white; font-size: 11px; font-weight: 700; text-transform: uppercase; }

.schedule-section { background: #f2f4f6; }
.schedule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.schedule-grid article, .team-grid article { min-height: 190px; padding: 24px; border: 1px solid #d5dbe1; border-radius: 6px; background: white; }
.schedule-grid h3, .team-grid h3 { margin: 0 0 14px; font-size: 30px; }
.schedule-grid p, .team-grid p { margin: 8px 0 0; color: #59626c; font-size: 13px; line-height: 1.55; }
.schedule-grid .schedule-lines span { display: block; }
.schedule-grid .schedule-lines span + span { margin-top: 4px; }

.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.plan-card { min-height: 270px; padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.plan-card.featured { border-top: 3px solid var(--blue); }
.plan-card span { display: block; color: var(--blue); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.plan-card strong { display: block; margin-top: 34px; font: 800 46px/1 "Barlow Condensed"; color: white; }
.plan-card p { margin: 8px 0 0; color: white; font-weight: 800; }
.plan-card small { display: block; margin-top: 26px; color: #b9c0c7; line-height: 1.6; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.team-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.team-grid article { background: #f6f8fa; }
.team-grid span { display: block; margin-bottom: 30px; color: var(--blue-dark); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }

.section-collapse { border: 1px solid #d5dbe1; border-radius: 6px; background: white; overflow: hidden; }
.section-collapse summary { list-style: none; min-height: 118px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; cursor: pointer; }
.section-collapse summary::-webkit-details-marker { display: none; }
.section-collapse summary span, .section-collapse summary em, .section-collapse summary strong, .section-collapse summary b { display: block; }
.section-collapse summary em { color: var(--blue-dark); font-style: normal; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.section-collapse summary strong { margin-top: 7px; font-family: "Barlow Condensed", Impact, sans-serif; font-size: clamp(42px, 5vw, 66px); line-height: .92; text-transform: uppercase; }
.section-collapse summary b { min-width: 118px; padding: 12px 15px; border: 1px solid #727b85; border-radius: 4px; color: var(--black); font-size: 0; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.section-collapse summary b::before { content: "Expandir"; font-size: 12px; }
.section-collapse[open] summary b::before { content: "Recolher"; }
.section-collapse .schedule-grid, .section-collapse .plans-grid, .section-collapse .team-grid, .section-collapse .competition-grid, .section-collapse .rules-section-inline, .section-collapse .section-collapse-intro { padding: 0 28px 28px; }
.section-collapse .schedule-grid, .section-collapse .plans-grid, .section-collapse .team-grid, .section-collapse .competition-grid { margin-top: 18px; }
.section-collapse .section-collapse-intro { color: #59626c; line-height: 1.65; }
.section-collapse-dark .section-collapse-intro { color: #bac0c7; }
.section-collapse .section-collapse-intro p { max-width: 520px; margin: 0; }
.section-collapse-dark { border-color: #303740; background: #11151a; color: white; }
.section-collapse-dark[open] summary { border-bottom: 1px solid #303740; }
.section-collapse-dark summary em { color: var(--blue); }
.section-collapse-dark summary b { border-color: #4b5560; color: white; }
.competition-intro { padding: 0 28px; color: #bac0c7; line-height: 1.65; }
.competition-intro p { max-width: 520px; margin: 0; }
.rules-section-inline { display: none; margin-top: 28px; }
.rules-section-inline .section-heading { margin-top: 8px; }

.competition-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 48px; }
.competition-card { min-height: 360px; padding: 28px; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; background: var(--panel); }
.competition-card.featured { border-top: 3px solid var(--blue); }
.competition-card.muted { opacity: .8; }
.competition-meta { display: flex; justify-content: space-between; gap: 12px; color: #9ca4ad; font-size: 11px; text-transform: uppercase; }
.competition-meta span { color: var(--blue); font-weight: 800; }
.competition-card h3 { margin: 62px 0 12px; font-size: 36px; }
.competition-card p { margin: 0; color: #bac0c7; font-size: 14px; line-height: 1.65; }
.competition-card dl { display: flex; gap: 30px; margin: auto 0 24px; }
.competition-card dl div { display: flex; flex-direction: column; }
.competition-card dt { color: #87909a; font-size: 10px; text-transform: uppercase; }
.competition-card dd { margin: 3px 0 0; font: 700 22px "Barlow Condensed"; }
.card-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.text-action { padding: 0; border: 0; align-self: flex-start; background: transparent; color: var(--blue); cursor: pointer; font-weight: 800; }
.competition-rules { grid-column: 1 / -1; margin-top: -4px; padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: #10151b; }
.competition-rules[hidden] { display: none; }
.competition-rules .section-heading { margin-bottom: 22px; }
.competition-rules .section-heading h2 { font-size: 42px; }
.competition-rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.competition-rules-grid article { min-height: 150px; padding: 20px; border: 1px solid #303740; border-radius: 6px; background: #171d24; }
.competition-rules-grid span { display: block; margin-bottom: 14px; color: var(--blue); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.competition-rules-grid p { margin: 0; color: #bac0c7; font-size: 14px; line-height: 1.65; }

.rules-section { background: white; }
.rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.rules-grid article { min-height: 190px; padding: 24px; border: 1px solid #d8dde3; border-radius: 6px; background: #f7f9fb; }
.rules-grid span { display: block; margin-bottom: 18px; color: var(--blue-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.rules-grid p { margin: 0; color: #56606a; font-size: 14px; line-height: 1.65; }
.timeline { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-top: 22px; }
.timeline span { min-height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--black); color: white; font: 800 13px Inter, Arial, sans-serif; }

.student-area { background: #f2f4f6; }
.student-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.student-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 92px; }
.password-toggle {
  position: absolute;
  right: 7px;
  top: 15px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #9aa2ab;
  border-radius: 4px;
  background: #eef1f4;
  color: #15191e;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.backerct-student-competition-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.backerct-student-tool {
  border: 1px solid #d5dbe1;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.backerct-student-tool > summary {
  min-height: 72px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.backerct-student-tool > summary::-webkit-details-marker { display: none; }
.backerct-student-tool > summary span { color: #59626c; font-size: 12px; }
.backerct-student-tool-body { padding: 0 18px 18px; }
.backerct-student-tool-body form { padding: 0; }
.backerct-registration-list { display: grid; gap: 12px; }
.backerct-registration-card { padding: 16px; border: 1px solid #d5dbe1; border-radius: 6px; }
.backerct-registration-card h3 { margin: 0 0 8px; font-size: 22px; }
.backerct-registration-card p { margin: 8px 0; }
.backerct-registration-card fieldset { margin: 12px 0; padding: 0; border: 0; }
.backerct-registration-card fieldset label { display: inline-flex; align-items: center; gap: 6px; margin: 0 16px 0 0; }
.backerct-registration-card code { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .backerct-student-competition-tools { grid-template-columns: 1fr; }
  .backerct-student-tool > summary { align-items: flex-start; flex-direction: column; gap: 6px; }
}
.student-login, .student-profile { border: 1px solid #d3d8de; border-radius: 6px; background: white; padding: 28px; }
.student-login h3, .student-profile h3, .leaderboard-gate h3 { margin: 0 0 22px; font-size: 34px; line-height: 1; }
.form-hint { margin: 13px 0 0; color: #77808a; font-size: 12px; line-height: 1.55; }
.form-hint.notice { margin: 24px 0 0; padding: 14px 16px; border-left: 3px solid var(--blue); background: white; color: #34404a; }
.student-profile.locked { opacity: .72; }
.student-profile dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.student-profile div { padding: 16px; background: #f4f6f8; border-left: 3px solid var(--blue); }
.student-profile dt { color: #727b85; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.student-profile dd { margin: 6px 0 0; font-weight: 800; line-height: 1.35; }
.logout-form { margin-top: 22px; }
.competition-list { margin: 0; padding-left: 18px; color: #56606a; line-height: 1.8; }

.partners-section { background: #f7f8fa; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
}
.partner-card {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.partner-card a,
.partner-card img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.partner-card img {
  max-width: 150px;
  max-height: 74px;
  object-fit: contain;
  filter: saturate(.95);
}
.partner-card a:hover img { filter: saturate(1.1); }

.leaderboard-gate { margin-top: 42px; padding: 34px; border: 1px solid #d5d9de; border-left: 4px solid var(--red); background: #f4f6f8; }
.leaderboard-gate h3 { max-width: 620px; color: var(--black); }
.leaderboard-private[hidden], .leaderboard-gate[hidden] { display: none; }

.leader-controls { display: grid; grid-template-columns: repeat(2, minmax(220px, 360px)); gap: 16px; margin: 44px 0 22px; }
label { color: #59626c; font-size: 12px; font-weight: 700; }
select, input { width: 100%; height: 46px; margin-top: 8px; padding: 0 13px; border: 1px solid #c7ccd2; border-radius: 4px; background: white; color: var(--black); }
.duration-field { margin: 15px 0 0; padding: 0; border: 0; }
.duration-field legend { margin: 0 0 8px; color: #59626c; font-size: 12px; font-weight: 700; }
.duration-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duration-selects label { margin-top: 0; }
.table-wrap { overflow-x: auto; border: 1px solid #d5d9de; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 17px 18px; text-align: left; border-bottom: 1px solid #dde1e5; }
th { background: #eef0f2; color: #606872; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
td { font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f1f7fa; }
tbody tr.current-student { background: #eaf7fd; box-shadow: inset 4px 0 0 var(--blue); }
.leaderboard-category-row td { background: #101820; color: white; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.leaderboard-category-row:hover { background: #101820; }
.leaderboard-category-row + tr td { border-top: 0; }
.empty-state { padding: 28px; color: #727b85; text-align: center; }
.rank { width: 64px; font: 800 23px "Barlow Condensed"; }
.rank.podium { color: var(--blue-dark); }
.athlete-name { font-weight: 800; }
.athlete-box { display: block; margin-top: 3px; color: #7d858e; font-size: 11px; }
.points { font-weight: 800; }
.updated-at { margin: 14px 0 0; color: #818992; font-size: 11px; text-align: right; }

.cta-band { padding: 70px max(24px, calc((100vw - var(--max)) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 30px; background: var(--blue-dark); color: white; }
.cta-band .eyebrow { color: white; opacity: .72; }
footer { padding: 34px max(24px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; gap: 28px; background: var(--black); color: #aab1b8; font-size: 12px; }
footer p { margin: 0; }
footer a { margin-left: auto; color: var(--blue); }
.footer-brand .brand-logo { width: 150px; height: 34px; }

.backerct-dialog, dialog { width: min(520px, calc(100% - 28px)); max-height: min(88vh, 780px); padding: 0; border: 1px solid #3a4149; border-radius: 7px; background: #15191e; color: white; overflow: auto; }
.backerct-wide-dialog { width: min(1080px, calc(100% - 28px)); }
.backerct-dialog::backdrop, dialog::backdrop { background: rgba(0,0,0,.78); }
.backerct-dialog form, dialog form { padding: 28px; }
.backerct-dialog .dialog-panel { padding: 28px; }
.backerct-dialog .dialog-body { margin-top: 22px; }
.backerct-dialog .student-login { margin: 0; border: 0; border-radius: 0; background: transparent; padding: 28px; color: white; }
.backerct-dialog .leaderboard-heading { display: none; }
.backerct-dialog .leaderboard-gate { margin-top: 0; border-color: #3b454f; background: #20262c; color: white; }
.backerct-dialog .leaderboard-gate h3 { color: white; }
.backerct-dialog .table-wrap { background: white; color: var(--black); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; }
.dialog-head h2 { margin: 0; font-size: 40px; }
.close-button { width: 38px; height: 38px; border: 1px solid #535b64; border-radius: 4px; background: transparent; color: white; cursor: pointer; font-size: 22px; }
.dialog-note { margin: 18px 0 24px; padding: 12px; border-left: 3px solid var(--red); background: #20262c; color: #bfc5cb; font-size: 12px; line-height: 1.55; }
dialog label { display: block; margin-top: 15px; color: #b9c0c7; }
dialog input, dialog select { border-color: #48515b; background: #0d1013; color: white; }
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }

@media (max-width: 820px) {
  .site-header { height: 66px; }
  .brand-copy { display: none; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 66px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 18px; background: #0b0d0f; border-bottom: 1px solid #303740; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid #242a30; }
  .mobile-page-nav { position: sticky; top: 0; z-index: 19; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: #0b0d0f; border-bottom: 1px solid #303740; }
  .mobile-page-nav a { min-height: 44px; padding: 0 5px; display: flex; align-items: center; justify-content: center; background: #15191e; color: white; font-size: 11px; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .04em; }
  .hero { min-height: 680px; height: 90vh; align-items: end; padding-bottom: 130px; }
  .hero > img { object-position: 64% center; }
  .hero-shade { background: rgba(0,0,0,.48); box-shadow: inset 0 -55vh 150px rgba(5,8,10,.94); }
  .hero-content { margin: 0 24px; padding: 0; }
  h1 { font-size: clamp(58px, 17vw, 82px); }
  .hero-content > p:not(.eyebrow) { font-size: 15px; }
  .hero-status { left: 24px; right: 24px; bottom: 22px; width: auto; padding: 13px 16px; }
  .hero-status strong { font-size: 20px; margin-bottom: 5px; }
  .hero-status a { display: none; }
  .band { padding-top: 58px; padding-bottom: 58px; }
  .split-heading, .cta-band { align-items: start; flex-direction: column; }
  .intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: 1fr; }
  .stats div { min-height: 88px; border-right: 0; border-bottom: 1px solid #cbd0d5; }
  .stats div:last-child { border-bottom: 0; }
  .mascot-feature { grid-template-columns: 1fr; }
  .mascot-feature img { min-height: 360px; max-height: 520px; }
  .gallery-heading { grid-template-columns: 1fr; gap: 8px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 230px; }
  .gallery-grid figure.gallery-wide { grid-column: span 2; grid-row: auto; }
  .schedule-grid, .plans-grid, .team-grid, .rules-grid, .competition-rules-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .competition-grid { grid-template-columns: 1fr; }
  .competition-card { min-height: 310px; }
  .section-collapse summary { min-height: 96px; padding: 22px; align-items: flex-start; flex-direction: column; gap: 18px; }
  .section-collapse summary strong { font-size: 42px; }
  .section-collapse summary b { width: 100%; min-width: 0; }
  .section-collapse .schedule-grid, .section-collapse .plans-grid, .section-collapse .team-grid, .section-collapse .competition-grid, .section-collapse .rules-section-inline, .section-collapse .section-collapse-intro { padding: 0 22px 22px; }
  .competition-intro { padding: 0 22px; }
  .rules-section-inline .section-heading h2 { font-size: 42px; }
  .student-grid { grid-template-columns: 1fr; }
  .student-actions .button { width: 100%; }
  .student-profile dl { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leader-controls { grid-template-columns: 1fr; }
  .backerct-wide-dialog { width: calc(100% - 18px); }
  .backerct-dialog .dialog-panel, .backerct-dialog form, .backerct-dialog .student-login { padding: 22px; }
  .backerct-dialog .dialog-head h2 { font-size: 36px; }
  footer { flex-wrap: wrap; }
  footer a { margin-left: 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .section-heading h2, .cta-band h2 { font-size: 46px; }
  .brand-logo { width: 142px; height: 36px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .gallery-grid figure.gallery-wide { grid-column: auto; }
  .partners-grid { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr; }
}

body .wp-site-blocks .has-global-padding:has(.backerct-site),
body .wp-site-blocks .alignfull:has(.backerct-site),
main.has-global-padding:has(.backerct-site),
.wp-block-group.has-global-padding:has(.backerct-site),
.entry-content.has-global-padding:has(.backerct-site) {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

body:has(.backerct-site) .wp-site-blocks > header.wp-block-template-part,
body:has(.backerct-site) .wp-site-blocks > footer.wp-block-template-part,
body:has(.backerct-site) .wp-block-post-title {
  display: none !important;
}

body:has(.backerct-site) #wp--skip-link--target,
body:has(.backerct-site) #wp--skip-link--target > .wp-block-group,
body:has(.backerct-site) .entry-content:has(.backerct-site) {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  padding-top: 0 !important;
}

.backerct-site {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow-x: hidden;
}

.backerct-site h1,
.backerct-site h2,
.backerct-site h3,
.backerct-site p,
.backerct-site a,
.backerct-site span,
.backerct-site small,
.backerct-site dd {
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .backerct-site h1 {
    font-size: clamp(42px, 13vw, 62px);
    line-height: .95;
  }
}

.gallery-cta { margin-top: 16px; }
.backerct-gallery-page { min-height: 100vh; background: #f7f8fa; }
.backerct-gallery-page .gallery-page-hero { padding: 92px max(24px, calc((100vw - var(--max)) / 2)) 76px; background: #10151b; color: white; }
.backerct-gallery-page .gallery-page-hero p:not(.eyebrow) { max-width: 640px; margin: 24px 0 0; color: #c7cdd4; font-size: 18px; line-height: 1.65; }
.backerct-gallery-page .gallery-page-content { padding: 56px max(24px, calc((100vw - var(--max)) / 2)) 88px; }
.backerct-gallery-page .gallery-folder-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 46px; }
.backerct-gallery-page .gallery-folder-button { min-height: 86px; padding: 18px; border: 1px solid #d5dbe1; border-radius: 6px; background: white; color: #15191e; }
.backerct-gallery-page .gallery-folder-button.is-active { border-color: #35a7df; box-shadow: inset 0 3px 0 #35a7df; }
.backerct-gallery-page .gallery-folder-button span, .backerct-gallery-page .gallery-folder-button small { display: block; }
.backerct-gallery-page .gallery-folder-button span { font-family: "Barlow Condensed", Impact, sans-serif; font-size: 30px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.backerct-gallery-page .gallery-folder-button small { margin-top: 9px; color: #68717b; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.backerct-gallery-page .gallery-selected-heading { margin-bottom: 26px; }
.backerct-gallery-page .gallery-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.backerct-gallery-page .gallery-media-card { margin: 0; padding: 0; overflow: hidden; border: 1px solid #d5dbe1; border-radius: 6px; background: white; }
.backerct-gallery-page .gallery-media-card a { display: block; }
.backerct-gallery-page .gallery-media-card img, .backerct-gallery-page .gallery-media-card video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #10151b; }
.backerct-gallery-page .gallery-media-video { grid-column: span 2; }
.backerct-gallery-page .gallery-media-card figcaption { padding: 13px 16px; color: #59626c; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.backerct-gallery-page .gallery-empty { padding: 32px; border: 1px solid #d5dbe1; border-radius: 6px; background: white; }
.backerct-gallery-page .gallery-empty p { max-width: 760px; color: #59626c; line-height: 1.65; }
.backerct-gallery-page code { padding: 2px 6px; border-radius: 4px; background: #eef1f4; color: #15191e; }

@media (max-width: 820px) {
  .mobile-page-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .backerct-gallery-page .gallery-folder-nav, .backerct-gallery-page .gallery-media-grid { grid-template-columns: 1fr; }
  .backerct-gallery-page .gallery-media-video { grid-column: auto; }
}

@media (max-width: 480px) {
  .backerct-gallery-page .gallery-page-hero { padding-top: 64px; }
  .backerct-gallery-page .gallery-folder-button span { font-size: 26px; }
}
