/* Public and organizer layouts share the editable brand tokens. */
:root {
  --be-frame: min(100% - 40px, 1240px);
  --be-soft: color-mix(in srgb, var(--paper) 89%, var(--wine));
  --be-border: color-mix(in srgb, var(--wine) 17%, var(--paper));
  --be-space: clamp(21px, 4vw, 44px);
  --be-corner: 12px;
}

body { background: var(--paper); }
.app-mast { position: relative; z-index: 2; background: var(--paper); border-color: var(--be-border); }
.app-mast > div { width: var(--be-frame); max-width: none; min-height: 75px; padding: 10px 0; }
.app-mast nav { gap: 5px clamp(13px, 2vw, 29px); }
.app-mast nav a, .app-mast nav button { display: inline-flex; align-items: center; min-height: 42px; }
.app-mast nav .be-nav-cta {
  background: var(--red); border-radius: 6px; color: #fff; padding: 6px 12px; gap: 8px;
}
.app-mast nav .be-nav-cta:hover { color: #fff; background: var(--wine); text-decoration: none; }
.app-main { width: var(--be-frame); margin-inline: auto; padding: var(--be-space) 0; }
.app-card, .app-desk-nav a { border-color: var(--be-border); }
.app-desk-panel { padding: clamp(17px, 3vw, 32px); }
.app-desk-nav a { background: var(--be-soft); }
.app-desk-nav a[aria-current] { color: var(--red); background: var(--paper); }
.app-narrow, .app-live { box-shadow: 0 9px 32px #3315190a; }
.app-form label { min-width: 0; }

.be-home { padding-top: clamp(12px, 3vw, 34px); }
.be-home .cms-section { margin: 0 0 clamp(34px, 6vw, 79px); scroll-margin-top: 18px; }
.be-home .cms-hero {
  min-height: clamp(410px, 47vw, 610px); align-items: center;
  border-radius: var(--be-corner); background: #21181b; color: #fff7ef;
}
.be-home .cms-hero > img { inset: 0 0 auto auto; width: 72%; height: 100%; object-position: 72% 45%; }
.be-home .cms-hero.cms-has-image::before {
  background: linear-gradient(90deg, #21181b 0%, #21181b 28%, #21181bea 40%, #21181b49 64%, #21181b00 100%);
}
.be-home .cms-hero .cms-copy { padding: clamp(25px, 6vw, 84px); }
.be-home .cms-hero .cms-eyebrow { margin-bottom: 12px; color: #ffbc82; letter-spacing: .16em; font-size: .78rem; }
.be-home .cms-hero h1 { max-width: 15.4ch; font: 850 clamp(41px, 6.1vw, 84px)/.95 var(--font); letter-spacing: -.043em; margin: 0 0 19px; text-wrap: balance; }
.be-home .cms-hero .cms-copy > p:not(.cms-eyebrow) { max-width: 36ch; color: #f4dcd6; }
.be-home .cms-hero .app-button { min-height: 46px; padding-inline: 17px; }
.be-hero-secondary { display: inline-flex; align-items: center; min-height: 46px; gap: 7px; margin: 10px 0 0 14px; color: #fff5eb; font-weight: 700; text-underline-offset: 4px; }
.be-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px 25px; margin-bottom: 17px; flex-wrap: wrap; }
.be-section-heading h2, .be-home .cms-gallery-section h2 { font-size: clamp(31px, 4.6vw, 63px); margin-bottom: 3px; }
.be-section-heading p { color: var(--muted); margin: 0; max-width: 58ch; }
.be-section-heading > a { font-weight: 750; white-space: nowrap; }
.be-sport-grid { display: grid; grid-template-columns: 1.21fr 1fr 1fr; gap: 13px; }
.be-sport { position: relative; min-height: 335px; overflow: hidden; isolation: isolate; border-radius: var(--be-corner);
  color: #fff6ed; background: var(--wine); display: flex; align-items: end; text-decoration: none; }
.be-sport::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #201519f5, #201519a0 34%, transparent 75%); }
.be-sport img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 69% center; z-index: -2; transition: transform .28s ease; }
.be-sport:hover img, .be-sport:focus-visible img { transform: scale(1.035); }
.be-sport > div { padding: 23px; }
.be-sport h3 { font-size: clamp(24px, 3.4vw, 41px); margin: 0 0 5px; }
.be-sport p { margin-bottom: 12px; font-weight: 500; }
.be-sport strong { color: #ffce9b; font-size: .93rem; text-decoration: underline; text-underline-offset: 4px; }
.be-modules { padding: clamp(18px, 4vw, 43px); border: 1px solid var(--be-border); border-radius: var(--be-corner); background: var(--be-soft); }
.be-module-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.be-module-link, .be-module-card { display: grid; align-items: start; grid-template-columns: 43px minmax(0,1fr); gap: 12px;
  padding: 16px 7px; border-top: 1px solid var(--be-border); text-decoration: none; color: var(--ink); min-height: 82px; }
.be-module-link { grid-template-columns: 43px minmax(0,1fr) auto; }
.be-module-link:hover { color: var(--red); }
.be-module-icon { height: 41px; display: grid; place-content: center; border-radius: 8px; color: var(--red);
  background: var(--paper); border: 1px solid var(--be-border); font-size: 1.28rem; }
.be-module-arrow { align-self: center; font-weight: 800; }
.be-module-list strong, .be-module-list small { display: block; }
.be-module-list strong { font-size: 1.14rem; margin-bottom: 2px; }
.be-module-list small { color: var(--muted); line-height: 1.4; }
.be-home .cms-feature { min-height: 330px; margin-bottom: 20px; }
.be-home .cms-feature .cms-copy { padding: clamp(24px, 5vw, 64px); }
.be-home .cms-feature:nth-of-type(even) > img { grid-column: 2; grid-row: 1; }
.be-home .cms-feature:nth-of-type(even) .cms-copy { grid-column: 1; grid-row: 1; }

.be-showcase-banner { background: var(--be-soft); border: 1px solid var(--be-border); border-radius: 8px;
  padding: 10px 13px; margin-bottom: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; }
.be-showcase-banner strong { color: var(--red); margin-right: 9px; }
.be-showcase-banner a { font-weight: 700; }
.bet-hero { min-height: clamp(315px, 38vw, 500px); }
.bet-hero .bet-title { max-width: 16ch; }
.bet-hero .bet-actions { gap: 9px 10px; }
.bet-nav { padding-inline: clamp(7px, 3vw, 34px); }
.bet-nav a { min-height: 48px; }
.bet-content { background: var(--paper); }
.bet-result-winner { background: var(--be-soft); }

.be-dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 13px; flex-wrap: wrap; margin-bottom: 22px; }
.be-dashboard-head h1 { margin-bottom: 4px; font-size: clamp(35px, 4.6vw, 64px); }
.be-dashboard-head p { margin: 0; color: var(--muted); }
.be-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.be-demo-desk { background: var(--be-soft); margin-bottom: 30px; scroll-margin-top: 15px; }
.be-demo-head { display: flex; align-items: end; justify-content: space-between; gap: 10px 26px; flex-wrap: wrap; }
.be-demo-head p { margin: 0; max-width: 56ch; color: var(--muted); }
.be-demo-load { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.be-demo-load select { min-width: 145px; }
.be-demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; margin-top: 20px; }
.be-demo-item { padding: 13px; border: 1px solid var(--be-border); border-radius: 8px; background: var(--paper); }
.be-demo-item small { color: var(--muted); }
.be-demo-item h3 { margin: 5px 0 10px; }
.be-demo-item a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; }
.be-demo-cleanup { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 11px;
  border-top: 1px solid var(--be-border); margin-top: 15px; padding-top: 12px; }
.be-demo-cleanup p { margin: 0; color: var(--muted); max-width: 60ch; }
.be-dashboard-section { margin-bottom: 27px; }
.be-dashboard-section .be-section-heading h2 { font-size: clamp(24px, 3.3vw, 37px); }
.be-dashboard-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 15px; }
.be-tournament-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: var(--ink); text-decoration: none;
  min-height: 60px; border-top: 1px solid var(--be-border); padding: 7px 0; }
.be-tournament-row:hover { color: var(--red); }
.be-tournament-row small { color: var(--muted); display: block; }

.be-footer { margin-top: 16px; background: var(--wine); color: #fff4ed; }
.be-footer-grid { display: grid; width: var(--be-frame); margin: auto; grid-template-columns: 1.45fr repeat(3,minmax(0,1fr)); gap: 24px;
  padding: clamp(28px, 5vw, 54px) 0 25px; }
.be-footer-grid nav { display: grid; align-content: start; }
.be-footer-grid h2 { color: #f6ceb9; font-size: .86rem; letter-spacing: .08em; margin: 0 0 5px; text-transform: uppercase; }
.be-footer a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
.be-footer a:hover { text-decoration: underline; }
.be-footer-grid nav a { display: flex; align-items: center; min-height: 40px; font-weight: 600; }
.be-footer-brand > a { font-size: 1.6rem; font-weight: 850; letter-spacing: -.04em; }
.be-footer-brand p { margin-top: 8px; color: #fae1d5; }
.be-footer-base { width: var(--be-frame); margin-inline: auto; padding: 17px 0; border-top: 1px solid #ffffff44; color: #f3dcd2; font-size: .85rem; }

@media (max-width: 900px) {
  .be-home .cms-hero { min-height: 430px; }
  .be-sport-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .be-sport { min-height: 275px; }
  .be-sport > div { padding: 15px; }
  .be-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  :root { --be-frame: calc(100% - 28px); }
  .app-mast > div { min-height: 60px; }
  .app-mast nav { width: 100%; }
  .app-mast nav a, .app-mast nav button { min-height: 44px; }
  .be-home .cms-hero { min-height: 540px; align-items: end; }
  .be-home .cms-hero .cms-copy { padding: 22px; }
  .be-home .cms-hero > img { width: 100%; height: 72%; object-position: 68% 50%; }
  .be-home .cms-hero.cms-has-image::before { background: linear-gradient(0deg,#21181b 0%,#21181b 30%,#21181b94 65%,transparent); }
  .be-home .cms-hero h1 { font-size: clamp(39px, 11vw, 63px); }
  .be-hero-secondary { margin-left: 0; margin-right: 8px; display: flex; }
  .be-sport-grid, .be-module-list, .be-demo-grid, .be-dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .be-sport { min-height: 240px; }
  .be-module-link { min-height: 80px; }
  .be-home .cms-feature:nth-of-type(even) > img, .be-home .cms-feature:nth-of-type(even) .cms-copy { grid-area: auto; }
  .be-footer-grid { gap: 15px; }
  .be-footer-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .be-sport img { transition: none; }
}
@media print {
  body:has(.award-sheet) :is(.be-footer, .be-showcase-banner, .app-dummy-notice) { display: none; }
}
