.festival-page { overflow: hidden; }
.festival-hero { padding-block: clamp(64px, 9vw, 112px); background: var(--ink); color: var(--paper); }
.festival-hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(250px, .68fr); gap: clamp(38px, 8vw, 100px); align-items: center; }
.festival-hero-copy { max-width: 720px; }
.festival-hero h1 { margin-bottom: 25px; font-size: clamp(3.25rem, 7vw, 6.2rem); }
.festival-hero h1 em { color: var(--gold); font-size: .58em; letter-spacing: -.035em; }
.festival-wordmark { color: var(--gold); font-family: Impact, "Arial Black", sans-serif; font-size: 1.08em; letter-spacing: .02em; }
.festival-lead { max-width: 560px; margin-bottom: 30px; color: rgba(255,253,248,.82); font-size: clamp(1rem, 1.8vw, 1.23rem); line-height: 1.65; }
.festival-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.festival-poster { position: relative; min-height: 370px; padding: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: #21355f; box-shadow: 13px 15px 0 rgba(181,30,43,.72); transform: rotate(2deg); }
.festival-poster > img { width: 100%; height: 330px; border-radius: 11px; object-fit: contain; background: rgba(255,255,255,.07); }
.festival-poster > img[hidden] { display: none; }
.festival-poster > p { position: absolute; right: 20px; bottom: 5px; left: 20px; margin: 0; color: rgba(255,253,248,.8); font-size: .75rem; text-align: center; }
.festival-poster-mark { display: grid; min-height: 330px; align-content: center; justify-items: center; gap: 7px; border-radius: 11px; background: var(--gold); color: var(--ink); overflow: hidden; }
.festival-poster-mark span { font-family: Impact, "Arial Black", sans-serif; font-size: clamp(3rem, 7vw, 5rem); letter-spacing: .025em; line-height: 1; }
.festival-poster-mark i { color: var(--red); font-size: 3.4rem; font-style: normal; line-height: 1; }
.festival-poster-mark small { font-size: .78rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.festival-poster-mark[hidden] { display: none; }
.festival-next { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 42px; align-items: center; padding-block: 74px; }
.festival-next-copy h2 { margin-bottom: 17px; font-size: clamp(2.3rem, 4.3vw, 3.8rem); }
.festival-next-copy > p:last-child { max-width: 580px; margin: 0; color: var(--muted); line-height: 1.65; }
.festival-next-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.festival-next-facts > div { display: grid; gap: 6px; align-content: start; }
.festival-next-facts > div span { color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.festival-next-facts > div strong { font-family: Georgia, serif; font-size: 1.05rem; line-height: 1.3; }
.festival-status { grid-column: 1 / -1; width: fit-content; margin-top: 3px; padding: 7px 10px; border-radius: 99px; background: rgba(242,201,76,.26); color: #6b5111; font-size: .68rem; font-weight: 900; }
.festival-program { padding-block: 78px; background: #efe7d8; }
.festival-tournament-grid, .festival-edition-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.festival-tournament-card, .festival-edition-card { overflow: hidden; border: 1px solid rgba(23,40,79,.12); border-radius: 16px; background: var(--white); }
.festival-tournament-card { display: flex; flex-direction: column; padding: 22px; }
.festival-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.festival-card-tag { display: inline-flex; width: fit-content; padding: 6px 9px; border-radius: 99px; background: rgba(117,169,160,.2); color: #315e59; font-size: .65rem; font-weight: 900; }
.festival-card-tag.is-closed { background: rgba(181,30,43,.1); color: var(--red); }
.festival-tournament-card h3, .festival-edition-card h3 { margin-bottom: 9px; font-size: 1.7rem; line-height: 1.1; }
.festival-tournament-card > p, .festival-edition-copy > p { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.festival-tournament-facts { display: flex; flex-wrap: wrap; gap: 8px 17px; margin: 0 0 18px; color: var(--muted); font-size: .77rem; }
.festival-tournament-facts strong { color: var(--ink); }
.festival-tournament-card .button { align-self: flex-start; margin-top: auto; }
.festival-signup-form { display: grid; gap: 11px; margin-top: 15px; padding: 16px; border-radius: 12px; background: #f5f0e7; }
.festival-signup-form label { display: grid; gap: 6px; font-size: .75rem; font-weight: 800; }
.festival-signup-form input { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit; }
.festival-signup-message { min-height: 1.2em; margin: 0; color: var(--red); font-size: .76rem; font-weight: 800; }
.festival-archive { padding-block: 82px 96px; }
.festival-edition-card { display: grid; grid-template-rows: auto 1fr; }
.festival-edition-cover { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: #e9dfd0; }
.festival-edition-copy { padding: 19px; }
.festival-edition-copy .eyebrow { margin-bottom: 8px; font-size: .64rem; }
.festival-edition-copy .button { margin-top: 3px; }
.festival-gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 15px; }
.festival-gallery-button { display: block; overflow: hidden; padding: 0; border: 0; border-radius: 9px; background: #e9dfd0; cursor: zoom-in; }
.festival-gallery-button img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .2s ease; }
.festival-gallery-button:hover img { transform: scale(1.04); }
.festival-empty { grid-column: 1 / -1; margin: 0; padding: 22px; border: 1px dashed rgba(23,40,79,.23); border-radius: 13px; color: var(--muted); font-size: .88rem; line-height: 1.6; text-align: center; }
.festival-photo-dialog { position: relative; width: min(960px, calc(100% - 28px)); max-width: none; max-height: 90vh; padding: 48px 50px 18px; border: 0; border-radius: 16px; background: #101a32; color: white; }
.festival-photo-dialog::backdrop { background: rgba(8,13,25,.82); }
.festival-photo-dialog img { display: block; max-width: 100%; max-height: 72vh; margin: auto; object-fit: contain; }
.festival-photo-dialog p { margin: 12px 0 0; color: rgba(255,255,255,.8); font-size: .82rem; text-align: center; }
.festival-photo-close, .festival-photo-arrow { position: absolute; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(16,26,50,.76); color: white; cursor: pointer; }
.festival-photo-close { top: 10px; right: 10px; font-size: 1.5rem; }
.festival-photo-arrow { top: 50%; font-size: 1.8rem; transform: translateY(-50%); }
.festival-photo-prev { left: 8px; }
.festival-photo-next { right: 8px; }
.tournament-detail-hero { padding-block: 48px 66px; background: var(--ink); color: var(--paper); }
.tournament-detail-hero .text-link { display: inline-block; margin-bottom: 34px; }
.tournament-detail-hero .eyebrow { margin-bottom: 12px; }
.tournament-detail-hero h1 { max-width: 900px; margin-bottom: 17px; color: var(--paper); font-size: clamp(2.8rem, 6vw, 5.2rem); }
.tournament-detail-lead { max-width: 720px; margin: 0; color: rgba(255,253,248,.82); font-size: 1.05rem; line-height: 1.65; }
.tournament-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tournament-detail-tags .festival-card-tag { background: rgba(255,255,255,.14); color: var(--paper); }
.tournament-detail-tags .festival-card-tag.is-closed { background: rgba(181,30,43,.2); color: #ffd4d7; }
.tournament-detail-content { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.78fr); gap: clamp(30px,6vw,75px); align-items: start; padding-block: 68px 90px; }
.tournament-detail-info h2, .tournament-registration-card h2 { margin-bottom: 24px; font-size: clamp(2rem,4vw,3rem); }
.tournament-detail-facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.tournament-detail-facts > div { display: grid; grid-template-columns: minmax(125px,.45fr) 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.tournament-detail-facts dt { color: var(--muted); font-size: .78rem; font-weight: 800; }
.tournament-detail-facts dd { margin: 0; font-weight: 700; }
.tournament-detail-status, .tournament-closed-message { margin-top: 20px; color: var(--red); font-weight: 800; line-height: 1.55; }
.tournament-registration-card { padding: clamp(22px,4vw,34px); border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 14px 34px rgba(23,40,79,.07); }
.tournament-registration-card h2 { font-size: clamp(1.8rem,3.4vw,2.5rem); }
.tournament-form-intro { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.tournament-signup-form { display: grid; gap: 12px; margin-top: 20px; }
.tournament-signup-form label { display: grid; gap: 6px; font-size: .78rem; font-weight: 800; }
.tournament-signup-form input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit; }
.tournament-signup-form .button { justify-self: start; margin-top: 6px; }
.tournament-form-feedback { min-height: 1.3em; margin: 0; color: var(--red); font-size: .8rem; font-weight: 800; line-height: 1.45; }
.tournament-form-contact-hint { margin: 0; color: var(--muted); font-size: .72rem; }
.tournament-form-consent { display: flex !important; grid-template-columns: auto 1fr; align-items: flex-start; gap: 9px !important; font-size: .7rem !important; font-weight: 600 !important; line-height: 1.5; }
.tournament-form-consent input { flex: 0 0 auto; width: 17px; min-height: 17px; margin: 2px 0 0; accent-color: var(--red); }
.tournament-form-consent a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.tournament-form-honeypot { position: absolute !important; inset-inline-start: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (max-width: 760px) {
  .tournament-detail-content { grid-template-columns: 1fr; padding-block: 48px 64px; }
  .tournament-detail-facts > div { grid-template-columns: minmax(100px,.45fr) 1fr; gap: 12px; }
}
@media (max-width: 820px) {
  .festival-hero-inner { grid-template-columns: minmax(0,1fr) minmax(220px,.7fr); gap: 35px; }
  .festival-poster { min-height: 300px; }
  .festival-poster > img, .festival-poster-mark { min-height: 260px; height: 260px; }
}
@media (max-width: 600px) {
  .festival-hero-inner, .festival-next { grid-template-columns: 1fr; }
  .festival-hero { padding-block: 54px 64px; }
  .festival-hero h1 { font-size: clamp(3rem, 14vw, 4.7rem); }
  .festival-hero h1 em { font-size: .48em; }
  .festival-poster { width: min(100%, 370px); min-height: 280px; margin: 0 auto; }
  .festival-poster > img, .festival-poster-mark { min-height: 240px; height: 240px; }
  .festival-next { gap: 25px; padding-block: 58px; }
  .festival-next-facts { grid-template-columns: 1fr; }
  .festival-status { grid-column: auto; }
  .festival-program { padding-block: 58px; }
  .festival-tournament-grid, .festival-edition-grid { grid-template-columns: 1fr; }
  .festival-archive { padding-block: 58px 72px; }
  .festival-gallery { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .festival-photo-dialog { padding: 50px 36px 15px; }
}
