/* APS Golf — PHP multipage extensions */
:root {
  --php-navy: #10212b;
  --php-navy-deep: #07151d;
  --php-blue: #0d3046;
  --php-teal: #57c1c7;
  --php-teal-dark: #2e7f86;
  --php-cream: #f3efe6;
  --php-paper: #f8f5ee;
  --php-ink: #15232a;
  --php-muted: #667278;
  --php-line: rgba(16, 33, 43, 0.16);
  --php-gold: #c8a65b;
  --php-danger: #a8403d;
  --php-success: #1f7359;
  --php-ease: cubic-bezier(.23, 1, .32, 1);
}

html { scroll-behavior: smooth; }
body { min-width: 320px; background: var(--php-paper); color: var(--php-ink); }
main { min-height: 70vh; overflow-x: clip; overflow-y: visible; }

/* Persistent APS scrollbar for pointer-based desktop browsers. */
@media (hover: hover) and (pointer: fine) {
  html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: var(--php-teal) var(--php-navy-deep);
  }

  html::-webkit-scrollbar { width: 18px; }
  html::-webkit-scrollbar-track { background: var(--php-navy-deep); }
  html::-webkit-scrollbar-thumb {
    min-height: 52px;
    border: 3px solid var(--php-navy-deep);
    border-radius: 999px;
    background: var(--php-teal-dark);
  }
  html::-webkit-scrollbar-thumb:hover { background: var(--php-teal); }
}

@media (forced-colors: active) {
  html { scrollbar-color: auto; }
}
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--php-teal);
  outline-offset: 3px;
}
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; transform: translateY(-160%); padding: 10px 14px; background: #fff; color: var(--php-navy); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.atlas-nav__links a[aria-current="page"] { color: #fff; }
.atlas-nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Shared internal-page hero */
.page-hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: end;
  color: #fff;
  isolation: isolate;
  background: var(--php-navy);
}
.page-hero__image, .page-hero__scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero__image { object-fit: cover; z-index: -3; }
.page-hero__scrim { z-index: -2; background: linear-gradient(90deg, rgba(7,21,29,.97) 0%, rgba(7,21,29,.88) 43%, rgba(7,21,29,.34) 82%), linear-gradient(0deg, rgba(7,21,29,.58), transparent 45%); }
.page-hero__route { position: absolute; z-index: -1; inset: 90px 4vw auto auto; width: 45%; height: 1px; background: rgba(255,255,255,.28); }
.page-hero__route::before, .page-hero__route::after { content: ""; position: absolute; top: -5px; width: 11px; height: 11px; border: 2px solid var(--php-teal); border-radius: 50%; }
.page-hero__route::before { left: 0; } .page-hero__route::after { right: 0; }
.page-hero__content { width: min(1360px, 100%); margin: 0 auto; padding: 190px clamp(24px, 6vw, 92px) 92px; }
.page-hero__code { display: block; margin-top: 26px; font: 700 clamp(3.8rem, 10vw, 9.4rem)/.84 "Barlow Condensed", sans-serif; letter-spacing: -.055em; color: rgba(255,255,255,.12); }
.page-hero h1 { max-width: 960px; margin: 20px 0 0; font: 800 clamp(3.2rem, 7.2vw, 7.4rem)/.86 "Barlow Condensed", sans-serif; letter-spacing: -.04em; text-transform: uppercase; }
.page-hero p { max-width: 690px; margin: 28px 0 0; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.7; color: rgba(255,255,255,.78); }

.page-section { padding: clamp(74px, 9vw, 138px) clamp(24px, 6vw, 94px); }
.page-section:nth-of-type(even) { background: #fff; }
.page-section__heading { width: min(1320px, 100%); margin: 0 auto 54px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 8vw; align-items: end; }
.page-section__heading h2, .venues-intro h2, .contact-layout__intro h2, .principles-section h2, .process-section h2 {
  margin: 14px 0 0; font: 800 clamp(2.7rem, 5.4vw, 5.8rem)/.9 "Barlow Condensed", sans-serif; letter-spacing: -.04em; text-transform: uppercase;
}
.page-section__heading > p { max-width: 580px; margin: 0; color: var(--php-muted); font-size: 1.05rem; line-height: 1.75; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--php-teal-dark); font: 700 .72rem/1 "Archivo", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* Buttons, notices and empty states */
.button, .text-button { appearance: none; border: 0; font: 700 .76rem/1 "Archivo", sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; background: var(--php-teal); color: var(--php-navy); transition: transform 160ms var(--php-ease), box-shadow 160ms var(--php-ease), background 160ms var(--php-ease); }
.button:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(87,193,199,.22); }
.button:active { transform: scale(.97); }
.button--ghost { background: transparent; color: var(--php-navy); border: 1px solid var(--php-line); }
.button--small { min-height: 38px; padding: 0 14px; font-size: .68rem; }
.text-button { padding: 0; background: transparent; color: var(--php-teal-dark); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.status-notice, .catalog-note, .form-success, .form-errors, .alert { padding: 16px 18px; border-left: 4px solid var(--php-teal); background: rgba(87,193,199,.1); line-height: 1.6; }
.form-success { border-color: var(--php-success); background: rgba(31,115,89,.1); color: #15543f; }
.form-errors, .alert--error { border-color: var(--php-danger); background: rgba(168,64,61,.09); color: #792a28; }
.form-errors ul { margin: 8px 0 0 20px; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 7px 10px; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.82); font: 700 .65rem/1 "Archivo",sans-serif; letter-spacing: .11em; text-transform: uppercase; }
.status-pill--published { border-color: var(--php-teal); color: var(--php-teal); }
.empty-state { padding: clamp(36px, 6vw, 72px); border: 1px solid var(--php-line); background: #fff; text-align: center; }
.empty-state h2, .empty-state h3 { margin: 0 0 12px; font: 800 clamp(2rem,4vw,3.8rem)/.92 "Barlow Condensed",sans-serif; text-transform: uppercase; }
.empty-state p { max-width: 620px; margin: 0 auto; color: var(--php-muted); line-height: 1.7; }
.empty-state--compact { padding: 28px; }
.empty-state--dark { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #fff; }
.empty-state--dark p { color: rgba(255,255,255,.68); }

/* Tournament cards and catalogue */
.home-tournament-grid, .tournament-grid { width: min(1320px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tournament-card { position: relative; min-width: 0; min-height: 470px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 235px minmax(0, 1fr); overflow: hidden; background: #fff; border: 1px solid var(--php-line); box-shadow: 0 20px 50px rgba(16,33,43,.08); transition: transform 220ms var(--php-ease), box-shadow 220ms var(--php-ease); }
.tournament-card:hover { transform: translateY(-6px); box-shadow: 0 28px 65px rgba(16,33,43,.14); }
.tournament-card__media { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--php-navy); }
.tournament-card__media img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--php-ease); }
.tournament-card__media--identity { box-sizing: border-box; padding: clamp(20px, 3vw, 34px); background: var(--php-paper); }
.tournament-card__media--identity::after { display: none; }
.tournament-card__media--identity img { object-fit: contain; }
.tournament-card:hover .tournament-card__media img { transform: scale(1.035); }
.tournament-card:hover .tournament-card__media--identity img { transform: none; }
.tournament-card__media .status-pill { position: absolute; top: 18px; left: 18px; background: rgba(7,21,29,.76); backdrop-filter: blur(8px); }
.tournament-card__body { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; padding: 26px; }
.tournament-card__body > span { color: var(--php-teal-dark); font: 700 .68rem/1 "Archivo",sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.tournament-card__body h2, .tournament-card__body h3 { margin: 10px 0; font: 800 clamp(1.9rem,3vw,2.8rem)/.94 "Barlow Condensed",sans-serif; text-transform: uppercase; }
.tournament-card__body > p { margin: 0; color: var(--php-muted); line-height: 1.6; }
.tournament-card__meta { margin-top: auto; padding-top: 22px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; border-top: 1px solid var(--php-line); }
.tournament-card__meta small { display: block; color: var(--php-muted); font-size: .7rem; }
.tournament-card__meta strong { display: block; margin-top: 4px; font-size: .84rem; }
.tournament-card__meta a { color: var(--php-navy); font-weight: 800; }
.tournament-catalog { padding: 66px clamp(24px,6vw,94px) 120px; background: var(--php-paper); }
.catalog-toolbar { width: min(1320px,100%); margin: 0 auto 34px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.filter-links { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-links a { padding: 10px 14px; border: 1px solid var(--php-line); color: var(--php-navy); font: 700 .68rem/1 "Archivo",sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.filter-links a:hover, .filter-links a[aria-current="true"] { background: var(--php-navy); color: #fff; }
.catalog-note { width: min(1320px,100%); margin: 0 auto 28px; }

/* Series */
.series-index { padding: 40px clamp(24px,6vw,94px); background: var(--php-navy); }
.series-jump { width: min(1320px,100%); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px; }
.series-jump a { padding: 12px 16px; color: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.16); font-size: .75rem; font-weight: 700; }
.series-jump a:hover { color: #fff; border-color: var(--series-accent, var(--php-teal)); }
.series-detail { min-height: 600px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .95fr); background: #fff; border-bottom: 1px solid var(--php-line); scroll-margin-top: 75px; }
.series-detail:nth-of-type(even) { direction: rtl; background: var(--php-cream); }
.series-detail > * { direction: ltr; }
.series-detail__media { position: relative; min-height: 540px; overflow: hidden; }
.series-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.series-detail__content { padding: clamp(58px,8vw,118px); display: flex; flex-direction: column; justify-content: center; }
.series-detail__content > span { color: var(--series-accent,var(--php-teal-dark)); font: 700 .7rem/1 "Archivo",sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.series-detail__content h2 { margin: 18px 0; font: 800 clamp(3rem,5.8vw,6.4rem)/.87 "Barlow Condensed",sans-serif; text-transform: uppercase; letter-spacing: -.04em; }
.series-detail__content p { max-width: 640px; color: var(--php-muted); line-height: 1.75; }
.series-detail__status { margin: 28px 0; padding: 16px 0; border-top: 1px solid var(--php-line); border-bottom: 1px solid var(--php-line); color: var(--php-muted); font-size: .84rem; }

/* Venues */
.venues-intro { padding: 96px clamp(24px,6vw,94px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 8vw; align-items: end; }
.venues-intro > * { max-width: 680px; }
.venues-intro > p { color: var(--php-muted); line-height: 1.75; }
.venue-list { border-top: 1px solid var(--php-line); }
.venue-detail { min-height: 660px; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(380px,.85fr); background: #fff; }
.venue-detail + .venue-detail { border-top: 1px solid var(--php-line); }
.venue-detail:nth-child(even) { direction: rtl; background: var(--php-cream); }
.venue-detail > * { direction: ltr; }
.venue-detail__media { position: relative; min-height: 560px; overflow: hidden; }
.venue-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.venue-detail__marker { position: absolute; left: 24px; bottom: 24px; display: inline-flex; gap: 10px; padding: 13px 16px; background: rgba(7,21,29,.84); color: #fff; backdrop-filter: blur(10px); font-weight: 800; }
.venue-detail__copy { padding: clamp(58px,7vw,108px); display: flex; flex-direction: column; justify-content: center; }
.venue-detail__copy h2 { margin: 12px 0 20px; font: 800 clamp(3rem,5.6vw,5.8rem)/.88 "Barlow Condensed",sans-serif; text-transform: uppercase; }
.venue-detail__copy > p { color: var(--php-muted); line-height: 1.75; }
.venue-detail__tournaments { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--php-line); }
.venue-detail__tournaments > span { display: block; margin-bottom: 12px; font: 700 .67rem/1 "Archivo",sans-serif; letter-spacing: .12em; color: var(--php-teal-dark); text-transform: uppercase; }
.venue-detail__tournaments a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; color: var(--php-navy); font-weight: 700; border-bottom: 1px solid var(--php-line); }

/* Tournament detail */
.tournament-hero { position: relative; min-height: 100svh; display: grid; align-items: end; isolation: isolate; color: #fff; background: var(--php-navy-deep); }
.tournament-hero__image, .tournament-hero__scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.tournament-hero__image { object-fit: cover; z-index: -3; }
.tournament-hero__scrim { z-index: -2; background: linear-gradient(90deg,rgba(5,13,17,.97),rgba(5,13,17,.82) 47%,rgba(5,13,17,.35)), linear-gradient(0deg,rgba(5,13,17,.7),transparent 55%); }
.tournament-hero__content { width: min(1380px,100%); margin: 0 auto; padding: 190px clamp(24px,6vw,94px) 80px; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.65fr); gap: 7vw; align-items: end; }
.tournament-hero__logo { max-width: min(520px,90%); max-height: 200px; object-fit: contain; object-position: left center; }
.tournament-hero h1 { margin: 20px 0; font: 800 clamp(3.8rem,8vw,8.4rem)/.84 "Barlow Condensed",sans-serif; text-transform: uppercase; letter-spacing: -.045em; }
.tournament-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tournament-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 760px; margin-top: 18px; scroll-margin-top: 132px; }
.tournament-share > span { margin-right: 3px; color: rgba(255,255,255,.62); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tournament-share a { min-height: 34px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid rgba(255,255,255,.24); color: #fff; font-size: .65rem; font-weight: 800; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; transition: color 160ms var(--ease-out, cubic-bezier(.23,1,.32,1)), border-color 160ms var(--ease-out, cubic-bezier(.23,1,.32,1)), background-color 160ms var(--ease-out, cubic-bezier(.23,1,.32,1)); }
.tournament-share a:hover, .tournament-share a:focus-visible { border-color: var(--php-teal); color: var(--php-navy-deep); background: var(--php-teal); }
.tournament-hero__facts { padding: 28px; border: 1px solid rgba(255,255,255,.2); background: rgba(6,18,24,.56); backdrop-filter: blur(12px); }
.tournament-hero__facts dl { margin: 0; }
.tournament-hero__facts div { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.tournament-hero__facts dt { color: rgba(255,255,255,.52); font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; }
.tournament-hero__facts dd { margin: 6px 0 0; font-weight: 700; }
.tournament-hero__index { margin-top: 22px; color: var(--php-gold); font: 700 .7rem/1 "Archivo",sans-serif; letter-spacing: .14em; }
.tournament-overview, .tournament-venue, .tournament-sponsors { padding: clamp(74px,9vw,132px) clamp(24px,6vw,94px); scroll-margin-top: 72px; }
.tournament-overview { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.65fr); gap: 9vw; background: var(--php-paper); }
.tournament-overview__copy { max-width: 780px; }
.tournament-overview__copy h2, .tournament-venue__copy h2, .tournament-sponsors h2 { margin: 14px 0 24px; font: 800 clamp(2.8rem,5.8vw,6rem)/.9 "Barlow Condensed",sans-serif; text-transform: uppercase; }
.tournament-overview__copy p, .tournament-venue__copy p { color: var(--php-muted); line-height: 1.8; }
.tournament-overview__route { align-self: center; height: 220px; border-left: 1px solid var(--php-line); border-bottom: 1px solid var(--php-line); position: relative; }
.tournament-overview__route::before, .tournament-overview__route::after { content: ""; position: absolute; width: 13px; height: 13px; border: 3px solid var(--php-gold); border-radius: 50%; background: var(--php-paper); }
.tournament-overview__route::before { left: -8px; top: -7px; } .tournament-overview__route::after { right: -7px; bottom: -7px; }
.tournament-venue { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.85fr); gap: 7vw; background: #fff; }
.tournament-venue__media { position: relative; min-height: 520px; overflow: hidden; }
.tournament-venue__media img { width: 100%; height: 100%; object-fit: cover; }
.tournament-venue__copy { align-self: center; }
.tournament-countdown { padding: 0 0 22px !important; border-bottom: 1px solid rgba(255,255,255,.18) !important; }
.tournament-countdown > span { display: block; margin-bottom: 14px; color: var(--php-gold); font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tournament-countdown > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 0 !important; border: 0 !important; }
.tournament-countdown p { margin: 0; display: grid; gap: 3px; }
.tournament-countdown strong { font: 800 clamp(1.8rem,3vw,3rem)/1 "Barlow Condensed",sans-serif; }
.tournament-countdown small { color: rgba(255,255,255,.52); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.tournament-context { position: sticky; z-index: 32; top: 74px; border-bottom: 1px solid rgba(16,33,43,.14); background: rgba(244,241,232,.96); backdrop-filter: blur(14px); }
.tournament-context > div { width: min(1380px,100%); margin: 0 auto; display: flex; gap: 4px; overflow-x: auto; padding: 8px clamp(18px,5vw,76px); scrollbar-width: none; }
.tournament-context > div::-webkit-scrollbar { display: none; }
.tournament-context a { min-height: 42px; display: inline-flex; align-items: center; flex: 0 0 auto; padding: 0 14px; border: 1px solid transparent; color: var(--php-navy); font-size: .67rem; font-weight: 800; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.tournament-context a:hover, .tournament-context a:focus-visible { border-color: var(--php-navy); background: #fff; }
.tournament-overview, .tournament-venue, .tournament-operations, .tournament-partners { scroll-margin-top: 132px; }
.tournament-editorial-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin: 38px 0; background: var(--php-line); }
.tournament-editorial-grid article { min-height: 170px; padding: 24px; background: #fff; }
.tournament-editorial-grid span, .tournament-module > span, .tournament-partners__grid span { color: var(--php-teal-dark); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tournament-editorial-grid p { margin: 16px 0 0; font-size: .88rem; line-height: 1.65; }
.tournament-operations { padding: clamp(74px,9vw,132px) clamp(24px,6vw,94px); background: var(--php-paper); }
.tournament-operations__heading { max-width: 920px; }
.tournament-operations__heading h2, .tournament-partners h2 { margin: 14px 0 0; font: 800 clamp(2.8rem,5.8vw,6rem)/.9 "Barlow Condensed",sans-serif; text-transform: uppercase; }
.tournament-operations__grid { margin-top: 54px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--php-line); }
.tournament-module { min-height: 330px; padding: clamp(26px,3vw,42px); background: #fff; }
.tournament-module[data-state="pending"] { background: rgba(255,255,255,.52); }
.tournament-module h3 { margin: 54px 0 18px; font: 800 clamp(2rem,3.3vw,3.4rem)/.92 "Barlow Condensed",sans-serif; text-transform: uppercase; }
.tournament-module > p { color: var(--php-muted); line-height: 1.7; }
.tournament-module__pending { padding-top: 20px; border-top: 1px solid var(--php-line); }
.tournament-agenda { margin: 28px 0 0; padding: 0; list-style: none; }
.tournament-agenda li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--php-line); }
.tournament-agenda time { color: var(--php-teal-dark); font-size: .75rem; font-weight: 800; }
.tournament-agenda strong { display: block; }
.tournament-agenda p { margin: 6px 0 0; color: var(--php-muted); font-size: .78rem; line-height: 1.5; }
.tournament-partners { padding: clamp(74px,9vw,132px) clamp(24px,6vw,94px); display: grid; grid-template-columns: minmax(300px,.72fr) minmax(0,1.28fr); gap: 8vw; align-items: center; background: var(--php-navy); color: #fff; }
.tournament-partners__intro p { max-width: 560px; margin: 24px 0 30px; color: rgba(255,255,255,.66); line-height: 1.75; }
.tournament-partners__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: rgba(255,255,255,.16); }
.tournament-partners__grid article { min-height: 180px; display: grid; place-items: center; gap: 16px; padding: 28px; background: var(--php-navy); text-align: center; }
.tournament-partners__grid img { max-width: 190px; max-height: 84px; object-fit: contain; }
.tournament-partners__grid strong { font: 800 1.55rem/1 "Barlow Condensed",sans-serif; text-transform: uppercase; }
.tournament-partners__grid span { color: var(--php-gold); }
.tournament-sponsors { background: var(--php-navy-deep); color: #fff; }
.sponsor-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; background: rgba(255,255,255,.14); }
.sponsor-grid article { min-height: 190px; display: grid; place-items: center; padding: 24px; background: var(--php-navy-deep); text-align: center; }
.sponsor-grid img { max-width: 180px; max-height: 86px; object-fit: contain; }
.sponsor-grid strong, .sponsor-grid small { display: block; }
.sponsor-grid small { margin-top: 8px; color: rgba(255,255,255,.55); }

/* About */
.about-statement { display: grid; grid-template-columns: minmax(0,1fr) minmax(380px,.88fr); min-height: 680px; background: #fff; }
.about-statement__media { position: relative; min-height: 600px; overflow: hidden; }
.about-statement__media img { width: 100%; height: 100%; object-fit: cover; }
.about-statement__copy { padding: clamp(64px,8vw,120px); align-self: center; }
.about-statement__copy h2 { margin: 14px 0 24px; font: 800 clamp(3rem,5.6vw,6.2rem)/.88 "Barlow Condensed",sans-serif; text-transform: uppercase; }
.about-statement__copy p { color: var(--php-muted); line-height: 1.78; }
.about-statement__index { display: block; margin-top: 40px; color: rgba(16,33,43,.18); font: 800 5rem/1 "Barlow Condensed",sans-serif; }
.principles-section { padding: clamp(74px,9vw,132px) clamp(24px,6vw,94px); background: var(--php-cream); }
.principles-grid { width: min(1320px,100%); margin: 54px auto 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--php-line); }
.principles-grid article { min-height: 310px; padding: 38px; background: var(--php-cream); }
.principles-grid span { color: var(--php-teal-dark); font-weight: 800; }
.principles-grid h3 { margin: 54px 0 14px; font: 800 2.4rem/.92 "Barlow Condensed",sans-serif; text-transform: uppercase; }
.principles-grid p { color: var(--php-muted); line-height: 1.7; }
.process-section { min-height: 650px; display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); background: var(--php-navy); color: #fff; }
.process-section__copy { padding: clamp(64px,8vw,120px); align-self: center; }
.process-section__copy p { color: rgba(255,255,255,.68); line-height: 1.75; }
.process-section__media { min-height: 560px; }
.process-section__media img { width: 100%; height: 100%; object-fit: cover; }
.page-cta { padding: clamp(72px,9vw,126px) clamp(24px,6vw,94px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: var(--php-teal); color: var(--php-navy); }
.page-cta h2 { max-width: 980px; margin: 0; font: 800 clamp(2.8rem,5.8vw,6.2rem)/.88 "Barlow Condensed",sans-serif; text-transform: uppercase; }

/* Contact and legal */
.contact-layout { padding: clamp(80px,10vw,145px) clamp(24px,6vw,94px); display: grid; grid-template-columns: minmax(0,.75fr) minmax(460px,1fr); gap: 9vw; background: var(--php-paper); }
.contact-layout__intro { align-self: start; position: sticky; top: 110px; }
.contact-layout__intro p { color: var(--php-muted); line-height: 1.75; }
.contact-route { height: 170px; margin-top: 50px; border-left: 1px solid var(--php-line); border-bottom: 1px solid var(--php-line); position: relative; }
.contact-route::before, .contact-route::after { content: ""; position: absolute; width: 13px; height: 13px; border: 3px solid var(--php-teal-dark); border-radius: 50%; background: var(--php-paper); }
.contact-route::before { left: -8px; top: -7px; } .contact-route::after { right: -7px; bottom: -7px; }
.atlas-destinations__facts { margin-top: 32px; border-top: 1px solid var(--atlas-sand); }
.atlas-destinations__facts p { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; margin: 0; padding: 17px 0; border-bottom: 1px solid var(--atlas-sand); }
.atlas-destinations__facts span { color: var(--atlas-muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.atlas-destinations__facts strong { min-width: 0; text-align: right; overflow-wrap: anywhere; font-size: .9rem; }
.atlas-destinations__copy > small { margin-top: 20px; color: var(--atlas-muted); font-size: .75rem; line-height: 1.55; }
.contact-form-card { padding: clamp(28px,5vw,58px); background: #fff; border: 1px solid var(--php-line); box-shadow: 0 28px 70px rgba(16,33,43,.08); }
.stack-form, .form-section { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.form-section--wide { grid-column: 1 / -1; }
.stack-form label, .form-section label { display: grid; gap: 8px; color: var(--php-navy); font-size: .78rem; font-weight: 700; }
.stack-form input, .stack-form textarea, .stack-form select, .form-section input, .form-section textarea, .form-section select {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid rgba(16,33,43,.24); background: #fff; color: var(--php-ink); font: inherit; border-radius: 0;
}
.stack-form textarea, .form-section textarea { min-height: 150px; resize: vertical; }
.stack-form input:focus, .stack-form textarea:focus, .stack-form select:focus, .form-section input:focus, .form-section textarea:focus, .form-section select:focus { border-color: var(--php-teal-dark); }
.checkbox-field { display: flex !important; grid-template-columns: 18px 1fr; align-items: start; gap: 10px !important; font-weight: 400 !important; line-height: 1.5; }
.checkbox-field input { width: 18px; min-height: 18px; margin-top: 2px; }
.form-note { margin: 0; color: var(--php-muted); font-size: .76rem; line-height: 1.55; }
.form-alert { margin: 0 0 26px; padding: 16px 18px; border-left: 4px solid var(--php-teal-dark); background: rgba(23,151,150,.08); color: var(--php-navy); line-height: 1.55; }
.form-alert--error { border-left-color: #a54035; background: rgba(165,64,53,.08); }
.form-alert strong { display: block; margin-bottom: 6px; }
.form-alert ul { margin: 6px 0 0 18px; list-style: disc; }
.form-consent { display: grid !important; grid-template-columns: 20px minmax(0,1fr); align-items: start; gap: 11px !important; color: var(--php-muted) !important; font-weight: 400 !important; line-height: 1.55; }
.form-consent input { width: 20px !important; min-height: 20px !important; margin-top: 1px; accent-color: var(--php-teal-dark); }
.form-consent a { color: var(--php-teal-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-hero { padding: 190px clamp(24px,6vw,94px) 82px; background: var(--php-navy); color: #fff; }
.legal-hero h1 { margin: 18px 0; font: 800 clamp(3.2rem,6.5vw,7rem)/.87 "Barlow Condensed",sans-serif; text-transform: uppercase; }
.legal-hero p { max-width: 690px; color: rgba(255,255,255,.7); line-height: 1.7; }
.legal-content { width: min(920px,calc(100% - 48px)); margin: 0 auto; padding: 84px 0 130px; }
.legal-content article { padding: 32px 0; border-bottom: 1px solid var(--php-line); }
.legal-content h2 { margin: 0 0 14px; font: 800 2rem/1 "Barlow Condensed",sans-serif; text-transform: uppercase; }
.legal-content p { margin: 0; color: var(--php-muted); line-height: 1.8; }
.legal-content a { color: var(--php-teal-dark); text-decoration: underline; text-underline-offset: 3px; }

/* Private editorial preview */
.atlas-preview-mode { --preview-bar-height: 58px; padding-top: var(--preview-bar-height); }
.atlas-preview-mode .atlas-nav { top: var(--preview-bar-height); }
.atlas-preview-bar {
  position: fixed; z-index: 140; inset: 0 0 auto; height: var(--preview-bar-height); display: grid;
  grid-template-columns: minmax(300px,1fr) auto auto; align-items: center; gap: clamp(18px,3vw,48px);
  padding: 0 clamp(20px,4vw,64px); background: #d8ff3e; color: #101613; border-bottom: 1px solid rgba(16,22,19,.22);
  box-shadow: 0 10px 32px rgba(7,21,29,.18); font-family: "Archivo",sans-serif;
}
.atlas-preview-bar__status { display: flex; align-items: center; min-width: 0; gap: 9px; font-size: .66rem; letter-spacing: .11em; }
.atlas-preview-bar__status i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #17372e; box-shadow: 0 0 0 5px rgba(23,55,46,.13); }
.atlas-preview-bar__status span { font-weight: 800; white-space: nowrap; }
.atlas-preview-bar__status strong { overflow: hidden; color: #415147; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.atlas-preview-bar > p { margin: 0; color: #415147; font-size: .68rem; white-space: nowrap; }
.atlas-preview-bar__actions { display: flex; align-items: center; gap: 6px; }
.atlas-preview-bar__actions button,.atlas-preview-bar__actions a { min-height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid rgba(16,22,19,.25); background: transparent; color: #101613; font-size: .66rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform 160ms var(--php-ease),background 160ms var(--php-ease); }
.atlas-preview-bar__actions a { background: #101613; color: #fff; }
.atlas-preview-bar__actions button:hover,.atlas-preview-bar__actions a:hover { transform: translateY(-1px); }
.atlas-preview-bar__actions button:active,.atlas-preview-bar__actions a:active { transform: scale(.97); }
.atlas-preview-error { min-height: 100svh; margin: 0; display: grid; place-items: center; overflow: hidden; padding: 28px; background: #07151d; color: #fff; font-family: "Archivo",sans-serif; }
.atlas-preview-error main { position: relative; width: min(900px,100%); min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(34px,7vw,84px); overflow: hidden; background: #102a3a; border: 1px solid rgba(255,255,255,.16); }
.atlas-preview-error main::after { content: "404"; position: absolute; top: -4vw; right: -1vw; color: rgba(255,255,255,.055); font: 800 clamp(9rem,28vw,22rem)/1 "Barlow Condensed",sans-serif; }
.atlas-preview-error__route { position: absolute; top: 12%; left: 9%; width: 55%; height: 34%; border-top: 1px solid rgba(216,255,62,.55); border-right: 1px solid rgba(216,255,62,.55); border-radius: 0 100% 0 0; }
.atlas-preview-error__route::before,.atlas-preview-error__route::after { content: ""; position: absolute; width: 11px; height: 11px; border: 3px solid #d8ff3e; border-radius: 50%; background: #102a3a; }
.atlas-preview-error__route::before { left: -7px; top: -7px; }.atlas-preview-error__route::after { right: -7px; bottom: -7px; }
.atlas-preview-error main > p,.atlas-preview-error main > h1,.atlas-preview-error main > div { position: relative; z-index: 1; }
.atlas-preview-error main > p:first-of-type { margin: 0 0 14px; color: #d8ff3e; font-size: .7rem; font-weight: 800; letter-spacing: .17em; }
.atlas-preview-error h1 { max-width: 720px; margin: 0; font: 800 clamp(3.4rem,9vw,7.8rem)/.84 "Barlow Condensed",sans-serif; letter-spacing: -.04em; text-transform: uppercase; }
.atlas-preview-error h1 span { color: #d8ff3e; }.atlas-preview-error main > p:nth-of-type(2) { max-width: 620px; margin: 24px 0 32px; color: rgba(255,255,255,.68); line-height: 1.7; }
.atlas-preview-error main > div { display: flex; flex-wrap: wrap; gap: 10px; }.atlas-preview-error main a { min-height: 46px; display: inline-flex; align-items: center; gap: 22px; padding: 0 17px; border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: .72rem; font-weight: 800; text-decoration: none; }.atlas-preview-error main a:first-child { background: #d8ff3e; border-color: #d8ff3e; color: #101613; }

/* Mobile navigation affordance: explicit, tactile and keyboard-visible. */
.atlas-nav__menu-button {
  width: auto;
  min-width: 48px;
  min-height: 48px;
  gap: 8px;
  padding-inline: 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(7,24,32,.28);
  backdrop-filter: blur(8px);
}
.atlas-nav__menu-button span { font-size: .67rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.atlas-nav__menu-button b { font-size: 1.08rem; font-weight: 600; line-height: 1; }
.atlas-nav__menu-button:hover { color: #d8ff3e; border-color: rgba(216,255,62,.64); }
.atlas-nav__menu-button:focus-visible { outline: 3px solid #d8ff3e; outline-offset: 3px; }
.atlas-nav__menu-button:active { transform: scale(.97); }

/* JavaScript progressive enhancement */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 480ms var(--php-ease), transform 480ms var(--php-ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .tournament-operations__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tournament-module:first-child { grid-column: 1 / -1; min-height: 0; }
  .tournament-partners { grid-template-columns: 1fr; }
  .tournament-editorial-grid { grid-template-columns: 1fr; }
  .atlas-destinations__copy { padding: 58px clamp(34px,4.5vw,52px); }
  .atlas-destinations__copy h2 { font-size: clamp(3rem,5.6vw,4.7rem); }
  .atlas-destinations__facts p { grid-template-columns: 1fr; gap: 6px; }
  .atlas-destinations__facts strong { text-align: left; }
  .home-tournament-grid, .tournament-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-section__heading, .venues-intro, .tournament-overview, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .series-detail, .venue-detail, .about-statement, .process-section, .tournament-venue { grid-template-columns: 1fr; }
  .series-detail:nth-of-type(even), .venue-detail:nth-child(even) { direction: ltr; }
  .series-detail__media, .venue-detail__media, .about-statement__media, .process-section__media { min-height: 480px; }
  .tournament-hero__content { grid-template-columns: 1fr; }
  .tournament-hero__facts { max-width: 620px; }
  .contact-layout__intro { position: static; }
  .sponsor-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .tournament-context { top: 68px; }
  .tournament-context > div { padding-inline: 14px; }
  .tournament-context a { min-height: 38px; padding-inline: 11px; font-size: .62rem; }
  .tournament-operations__grid, .tournament-partners__grid { grid-template-columns: 1fr; }
  .tournament-module:first-child { grid-column: auto; }
  .tournament-module { min-height: 270px; }
  .tournament-partners { padding-inline: 24px; }
  .atlas-preview-mode { --preview-bar-height: 116px; }
  .atlas-preview-bar { grid-template-columns: 1fr auto; grid-template-rows: 1fr 1fr; gap: 0 12px; padding: 10px 16px; }
  .atlas-preview-bar__status { align-self: end; }.atlas-preview-bar__status strong { display: none; }
  .atlas-preview-bar > p { align-self: start; grid-column: 1; grid-row: 2; font-size: .59rem; }
  .atlas-preview-bar__actions { grid-column: 2; grid-row: 1 / 3; flex-direction: column; align-items: stretch; }
  .atlas-preview-bar__actions button,.atlas-preview-bar__actions a { min-height: 38px; justify-content: center; padding-inline: 10px; }
  .atlas-preview-error { padding: 0; }.atlas-preview-error main { min-height: 100svh; border: 0; padding: 28px 22px 56px; }
  .page-hero { min-height: 560px; }
  .page-hero__content { padding-top: 150px; padding-bottom: 62px; }
  .page-hero__code { font-size: 4.5rem; }
  .page-section { padding-block: 70px; }
  .home-tournament-grid, .tournament-grid { grid-template-columns: 1fr; }
  .tournament-card { min-height: 0; grid-template-rows: 330px auto; }
  .tournament-card__media { min-height: 0; height: 100%; }
  .about-statement__copy h2 { line-height: .94; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; }
  .series-detail__media, .venue-detail__media, .about-statement__media, .process-section__media, .tournament-venue__media { min-height: 350px; }
  .series-detail__content, .venue-detail__copy, .about-statement__copy, .process-section__copy { padding: 52px 24px; }
  .tournament-hero__content { padding-top: 155px; padding-bottom: 54px; }
  .tournament-hero__logo { max-height: 130px; }
  .tournament-overview__route, .contact-route { display: none; }
  .tournament-venue { padding-inline: 24px; }
  .principles-grid { grid-template-columns: 1fr; }
  .principles-grid article { min-height: 240px; }
  .principles-grid h3 { margin-top: 30px; }
  .page-cta { grid-template-columns: 1fr; }
  .contact-layout { padding-block: 70px; }
  .contact-form-card { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: 1fr; }
  .legal-hero { padding-top: 150px; }
}

@media print { .atlas-preview-bar { position: static; height: auto; min-height: 58px; }.atlas-preview-mode { padding-top: 0; }.atlas-preview-mode .atlas-nav { top: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* News and gallery editorial surfaces */
.editorial-index {
  padding: clamp(64px, 8vw, 118px) clamp(24px, 6vw, 94px);
  background: var(--php-paper);
}
.editorial-filter {
  width: min(1320px, 100%);
  margin: 0 auto 42px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(180px, .68fr)) auto auto;
  gap: 16px;
  align-items: end;
  border: 1px solid var(--php-line);
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 33, 43, .07);
}
.editorial-filter > div > p { margin: 10px 0 0; color: var(--php-muted); }
.editorial-filter > div > p strong { color: var(--php-navy); font: 800 1.55rem/1 "Barlow Condensed", sans-serif; }
.editorial-filter label { display: grid; gap: 8px; }
.editorial-filter label > span { color: var(--php-muted); font: 700 .66rem/1 "Archivo", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.editorial-filter select {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--php-line);
  border-radius: 0;
  background: var(--php-paper);
  color: var(--php-ink);
  font: 600 .84rem/1.2 "Archivo", sans-serif;
}
.editorial-filter .atlas-button { min-height: 48px; }
.editorial-filter .atlas-text-link { align-self: center; white-space: nowrap; }
.news-grid {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.news-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 250px 1fr;
  overflow: hidden;
  border: 1px solid var(--php-line);
  background: #fff;
  box-shadow: 0 20px 50px rgba(16, 33, 43, .08);
  transition: transform 220ms var(--php-ease), box-shadow 220ms var(--php-ease);
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 28px 65px rgba(16, 33, 43, .14); }
.news-card__media { position: relative; display: block; overflow: hidden; background: var(--php-navy); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 480ms var(--php-ease); }
.news-card:hover .news-card__media img { transform: scale(1.035); }
.news-card__media > span { position: absolute; top: 18px; left: 18px; padding: 8px 10px; background: rgba(7, 21, 29, .78); color: var(--php-teal); font: 700 .64rem/1 "Archivo", sans-serif; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(8px); }
.news-card__body { min-width: 0; display: flex; flex-direction: column; padding: 26px; }
.news-card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--php-muted); font: 700 .65rem/1.35 "Archivo", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.news-card__meta a { color: var(--php-teal-dark); }
.news-card h2 { margin: 14px 0 12px; font: 800 clamp(1.8rem, 2.8vw, 2.65rem)/.95 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.news-card h2 a { color: var(--php-navy); }
.news-card__body > p { margin: 0 0 24px; color: var(--php-muted); line-height: 1.65; }
.news-card__body > .atlas-text-link { margin-top: auto; }
.news-detail { background: var(--php-paper); }
.news-detail__header { width: min(1050px, 100%); margin: 0 auto; padding: clamp(150px, 18vw, 230px) clamp(24px, 6vw, 72px) 64px; }
.news-detail__header > .atlas-text-link { margin-bottom: 52px; }
.news-detail__meta { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--php-muted); font: 700 .68rem/1.3 "Archivo", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.news-detail__meta > span { color: var(--php-teal-dark); }
.news-detail__meta a { color: var(--php-navy); }
.news-detail h1 { margin: 22px 0; max-width: 980px; font: 800 clamp(3.5rem, 7vw, 7.4rem)/.85 "Barlow Condensed", sans-serif; letter-spacing: -.04em; text-transform: uppercase; }
.news-detail__header > p { max-width: 760px; margin: 0; color: var(--php-muted); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.72; }
.news-detail__hero { width: min(1320px, calc(100% - 48px)); margin: 0 auto; position: relative; }
.news-detail__hero img { width: 100%; max-height: 760px; object-fit: cover; }
.news-detail__hero > span { position: absolute; right: 22px; bottom: 22px; padding: 10px 12px; background: rgba(7, 21, 29, .82); color: #fff; font: 700 .64rem/1 "Archivo", sans-serif; letter-spacing: .12em; }
.news-detail__body { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: clamp(58px, 8vw, 112px) 0; }
.news-detail__body p { margin: 0 0 1.45em; color: #31434b; font: 400 clamp(1rem, 1.2vw, 1.12rem)/1.86 "Archivo", sans-serif; }
.news-detail__body p:first-child::first-letter { float: left; margin: .04em .12em 0 0; color: var(--php-teal-dark); font: 800 4.5em/.75 "Barlow Condensed", sans-serif; }
.news-detail__footer { width: min(1050px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 96px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; border-top: 1px solid var(--php-line); }
.gallery-grid {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.gallery-tile { grid-column: span 4; margin: 0; min-width: 0; background: #fff; border: 1px solid var(--php-line); }
.gallery-tile:nth-child(5n + 1), .gallery-tile:nth-child(5n + 4) { grid-column: span 7; }
.gallery-tile:nth-child(5n + 2), .gallery-tile:nth-child(5n + 5) { grid-column: span 5; }
.gallery-tile > button { position: relative; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; overflow: hidden; background: var(--php-navy); cursor: zoom-in; }
.gallery-tile:nth-child(5n + 1) > button, .gallery-tile:nth-child(5n + 4) > button { aspect-ratio: 16 / 10; }
.gallery-tile > button img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--php-ease), opacity 180ms var(--php-ease); }
.gallery-tile > button:hover img { transform: scale(1.03); opacity: .9; }
.gallery-tile > button > span { position: absolute; top: 16px; left: 16px; padding: 8px 10px; color: #fff; background: rgba(7, 21, 29, .76); font: 700 .62rem/1 "Archivo", sans-serif; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(8px); }
.gallery-tile figcaption { padding: 20px; }
.gallery-tile figcaption strong { display: block; font: 800 1.5rem/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.gallery-tile figcaption p { margin: 8px 0 0; color: var(--php-muted); line-height: 1.6; }
.gallery-tile figcaption a { display: inline-block; margin-top: 12px; color: var(--php-teal-dark); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.gallery-lightbox { width: min(1180px, calc(100% - 34px)); max-width: none; max-height: calc(100vh - 34px); padding: 0; border: 0; overflow: visible; background: var(--php-navy-deep); color: #fff; box-shadow: 0 30px 90px rgba(0, 0, 0, .55); }
.gallery-lightbox::backdrop { background: rgba(4, 11, 15, .9); backdrop-filter: blur(6px); }
.gallery-lightbox > button { position: absolute; z-index: 2; top: -14px; right: -14px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: var(--php-teal); color: var(--php-navy); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.gallery-lightbox > img { display: block; width: 100%; max-height: calc(100vh - 110px); object-fit: contain; }
.gallery-lightbox > div:not(:empty) { padding: 18px 22px; color: rgba(255,255,255,.76); }

@media (max-width: 1050px) {
  .editorial-filter { grid-template-columns: 1fr 1fr; }
  .editorial-filter > div { grid-column: 1 / -1; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-tile, .gallery-tile:nth-child(n) { grid-column: span 6; }
  .gallery-tile:nth-child(n) > button { aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  .editorial-index { padding-left: 18px; padding-right: 18px; }
  .editorial-filter { grid-template-columns: 1fr; padding: 18px; }
  .editorial-filter > div { grid-column: auto; }
  .editorial-filter .atlas-button { width: 100%; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { grid-template-rows: 220px 1fr; }
  .news-detail__header { padding-left: 24px; padding-right: 24px; }
  .news-detail__hero { width: 100%; }
  .gallery-grid { gap: 12px; }
  .gallery-tile, .gallery-tile:nth-child(n) { grid-column: 1 / -1; }
  .gallery-lightbox { width: calc(100% - 18px); }
}


/* Optional published media inside tournament detail */
.tournament-media-section {
  padding: clamp(72px, 9vw, 132px) clamp(24px, 6vw, 94px);
  scroll-margin-top: 86px;
  background: #fff;
}
.tournament-media-section--news { background: var(--php-paper); }
.tournament-media-section > header {
  width: min(1320px, 100%);
  margin: 0 auto 42px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
}
.tournament-media-section > header h2 {
  margin: 12px 0 0;
  font: 800 clamp(2.8rem, 5.5vw, 5.8rem)/.88 "Barlow Condensed", sans-serif;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.tournament-gallery-grid {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tournament-gallery-grid a { min-height: 250px; overflow: hidden; background: var(--php-navy); }
.tournament-gallery-grid a:first-child { grid-column: span 2; grid-row: span 2; }
.tournament-gallery-grid img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform 420ms var(--php-ease), opacity 180ms var(--php-ease); }
.tournament-gallery-grid a:hover img { transform: scale(1.035); opacity: .9; }

@media (max-width: 1050px) {
  .tournament-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tournament-gallery-grid a:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 720px) {
  .tournament-media-section > header { align-items: flex-start; flex-direction: column; }
  .tournament-gallery-grid { grid-template-columns: 1fr; }
  .tournament-gallery-grid a, .tournament-gallery-grid a:first-child { grid-column: auto; min-height: 220px; }
}

/* Optional home editorial modules: rendered only with published content. */
.home-editorial {
  position: relative;
  padding: clamp(76px, 8vw, 128px) max(5vw, 28px);
  background: #f3f1ea;
  color: var(--php-navy);
  overflow: hidden;
}
.home-editorial--gallery { background: #e8ecea; }
.home-editorial__heading {
  width: min(1180px, 100%);
  margin: 0 auto clamp(32px, 4vw, 54px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}
.home-editorial__heading h2 {
  max-width: 760px;
  margin-top: 12px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.9rem, 6vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .9;
  text-transform: uppercase;
}
.home-editorial > .news-grid,
.home-editorial > .gallery-grid {
  width: min(1180px, 100%);
  margin-inline: auto;
}
.gallery-grid--preview .gallery-card {
  position: relative;
  grid-column: span 4;
  display: block;
  min-width: 0;
  min-height: 270px;
  overflow: hidden;
  background: var(--php-navy);
}
.gallery-grid--preview .gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  display: block;
  object-fit: cover;
  transition: transform 220ms var(--ease-out, cubic-bezier(.23,1,.32,1));
}
.gallery-grid--preview .gallery-card:hover img,
.gallery-grid--preview .gallery-card:focus-visible img { transform: scale(1.025); }
.gallery-grid--preview .gallery-card span {
  position: absolute;
  inset: auto 18px 16px;
  z-index: 2;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.gallery-grid--preview .gallery-card::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(2,17,28,.72));
  pointer-events: none;
}
@media (max-width: 760px) {
  .home-editorial { padding-inline: 20px; }
  .home-editorial__heading { align-items: flex-start; flex-direction: column; }
  .gallery-grid--preview .gallery-card { grid-column: 1 / -1; min-height: 230px; }
  .gallery-grid--preview .gallery-card img { min-height: 230px; }
}

/* Legal navigation: multiple policy links without changing the footer grid. */
.atlas-footer__legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 1.1rem;
}

@media (max-width: 640px) {
  .atlas-footer__legal-links {
    justify-content: flex-start;
  }
}

/* Contenido editorial administrable: estructura legible sin depender de HTML no seguro. */
.atlas-richtext { color: inherit; }
.atlas-richtext > :first-child { margin-top: 0; }
.atlas-richtext > :last-child { margin-bottom: 0; }
.atlas-richtext p { margin: 0 0 1rem; }
.atlas-richtext strong,
.atlas-richtext b { font-weight: 800; }
.atlas-richtext em,
.atlas-richtext i { font-style: italic; }
.atlas-richtext h2,
.atlas-richtext h3,
.atlas-richtext h4 { margin: 1.35rem 0 .55rem; color: inherit; font-family: "Barlow Condensed", Arial Narrow, sans-serif; font-weight: 800; line-height: 1.04; text-transform: uppercase; }
.atlas-richtext h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
.atlas-richtext h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.atlas-richtext h4 { font-size: 1.15rem; }
.atlas-richtext ul,
.atlas-richtext ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.atlas-richtext li + li { margin-top: .38rem; }
.atlas-richtext blockquote { margin: 1.2rem 0; padding: .1rem 0 .1rem 1rem; border-left: 3px solid var(--php-teal-dark); font-weight: 600; }
.atlas-richtext a { color: inherit; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: .18em; font-weight: 700; }
.atlas-richtext a:hover { text-decoration-thickness: 2px; }
.atlas-richtext hr { margin: 1.35rem 0; border: 0; border-top: 1px solid currentColor; opacity: .3; }
.atlas-richtext br + br { display: block; content: ""; margin-top: .7rem; }

.page-hero__body,
.atlas-hero__body,
.atlas-series__body,
.atlas-featured__summary,
.atlas-destinations__body,
.atlas-about__body,
.contact-layout__details,
.tournament-hero__summary,
.tournament-overview__summary,
.tournament-venue__description,
.tournament-module__richtext,
.tournament-card__summary,
.series-panel__summary { font-size: inherit; line-height: inherit; }

.tournament-card__summary p,
.series-panel__summary p { margin-bottom: .72rem; }
.tournament-card__summary h2,
.tournament-card__summary h3,
.tournament-card__summary h4,
.series-panel__summary h2,
.series-panel__summary h3,
.series-panel__summary h4 { font-size: 1.12rem; }

@media (max-width: 720px) {
  .atlas-richtext h2 { font-size: 1.72rem; }
  .atlas-richtext h3 { font-size: 1.42rem; }
}

/* Alias compartido para vistas que publican contenido editorial seguro. */
.aps-richtext { color: inherit; }
.aps-richtext > :first-child { margin-top: 0; }
.aps-richtext > :last-child { margin-bottom: 0; }
.aps-richtext p { margin: 0 0 1rem; }
.aps-richtext strong,
.aps-richtext b { font-weight: 800; }
.aps-richtext em,
.aps-richtext i { font-style: italic; }
.aps-richtext h2,
.aps-richtext h3,
.aps-richtext h4 { margin: 1.35rem 0 .6rem; color: var(--php-navy); font-family: "Barlow Condensed", sans-serif; font-weight: 800; line-height: .98; }
.aps-richtext h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
.aps-richtext h3 { font-size: 1.42rem; }
.aps-richtext h4 { font-size: 1.12rem; }
.aps-richtext ul,
.aps-richtext ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.aps-richtext li { margin: .35rem 0; }
.aps-richtext blockquote { margin: 1.2rem 0; padding: .1rem 0 .1rem 1rem; border-left: 3px solid var(--php-teal); font-style: italic; }
.aps-richtext a { color: inherit; text-decoration: underline; text-decoration-color: var(--php-teal); text-decoration-thickness: 2px; text-underline-offset: .18em; font-weight: 700; }
.aps-richtext br + br { display: block; content: ""; margin-top: .7rem; }
.aps-richtext hr { border: 0; border-top: 1px solid currentColor; opacity: .3; margin: 1.25rem 0; }
@media (max-width: 720px) {
  .aps-richtext h2 { font-size: 1.72rem; }
  .aps-richtext h3 { font-size: 1.42rem; }
}

/* Home featured tournament: one clear presentation below the series. */
.atlas-hero__content--solo { grid-template-columns: minmax(0, 1fr); }
.atlas-hero__content--solo .atlas-hero__copy { max-width: 760px; }
.atlas-featured--single { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.atlas-featured--single > .tournament-card {
  z-index: 1;
  width: min(100%, 860px);
  min-height: 440px;
  grid-template-columns: minmax(240px, .78fr) minmax(0, 1fr);
  grid-template-rows: minmax(440px, auto);
}
.atlas-featured--single .tournament-card__media { height: auto; }
.atlas-featured--single .tournament-card__body { padding: clamp(28px, 4vw, 46px); }
.atlas-featured--single .tournament-card__summary { margin: 8px 0 24px; }
.atlas-featured--single .tournament-card__summary p { margin: 0 0 .8em; }
.atlas-featured--single .tournament-card__summary p:last-child { margin-bottom: 0; }
.atlas-featured--single .tournament-card__body > a { margin-top: auto; }
@media (max-width: 720px) {
  .atlas-featured--single > .tournament-card { width: min(100%, 520px); grid-template-columns: 1fr; grid-template-rows: 290px auto; }
}


/* Fecha confirmada: sello editorial de la tarjeta destacada en Inicio. */
.atlas-featured--single .tournament-card__status-badge {
  position: absolute;
  z-index: 2;
  left: clamp(16px, 2vw, 24px);
  bottom: clamp(16px, 2vw, 24px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(255,255,255,.24);
  border-left: 4px solid var(--series-accent, #d8ff3e);
  background: rgba(7,21,29,.9);
  box-shadow: 7px 7px 0 rgba(7,21,29,.24);
  color: #fff;
  font: 800 .63rem/1 "Archivo", sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.atlas-featured--single .tournament-card__status-badge i {
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--series-accent, #d8ff3e);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--series-accent, #d8ff3e) 20%, transparent);
}
@media (max-width: 720px) {
  .atlas-featured--single .tournament-card__status-badge {
    left: 16px;
    bottom: 16px;
    min-height: 36px;
    font-size: .59rem;
  }
}
