@font-face {
  font-family:Anton;
  src:url('../fonts/Anton-Regular.ttf') format('truetype');
  font-display:swap
}

:root {
  --purple:#5B2A86;
  --yellow:#F9C000;
  --orange:#E66728;
  --orange-ink:#A84413;
  --black:#0d0d0d;
  --ink:#1f1a24;
  --white:#fff;
  --paper:#f7f5f9;
  --mat-crest:#fff;
  --mat-kit:#D5D4D5;
  --nav-h:88px;
  --tap:44px;
  --z-header:20;
  --z-skip:30
}

* {
  box-sizing:border-box;
  margin:0;
  padding:0
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:110px
}

body {
  font-family:Bahnschrift,'Segoe UI',system-ui,sans-serif;
  background:var(--paper);
  color:var(--ink);
  line-height:1.6
}

h1,h2,h3 {
  font-family:Anton,Impact,sans-serif;
  font-weight:400;
  line-height:1.08;
  text-transform:uppercase;
  letter-spacing:0;
  text-wrap:balance;
  overflow-wrap:break-word
}

h1 {
  font-size:clamp(40px,6vw,80px)
}

h2 {
  font-size:clamp(32px,4vw,56px)
}

h3 {
  font-size:clamp(25px,2.4vw,36px)
}

p {
  max-width:72ch;
  text-wrap:pretty
}

img {
  display:block;
  max-width:100%
}

a {
  color:inherit;
  text-decoration:none
}

button {
  font:inherit
}

a,button,summary {
  -webkit-tap-highlight-color:transparent
}

a,button {
  touch-action:manipulation
}

:focus-visible {
  outline:3px solid var(--purple);
  outline-offset:5px
}

.nav :focus-visible,.foot :focus-visible,.home-hero :focus-visible,.match-brief :focus-visible,.squad :focus-visible,.directiva :focus-visible,.kits :focus-visible,.derby :focus-visible,.next-destination :focus-visible {
  outline-color:var(--yellow)
}

.skip-link {
  position:fixed;
  top:8px;
  left:16px;
  z-index:var(--z-skip);
  padding:12px 18px;
  background:var(--yellow);
  color:var(--black);
  transform:translateY(-160%)
}

.skip-link:focus {
  transform:none
}

#main-content:focus {
  outline:none
}

.band-inner {
  width:min(100%,1328px);
  margin-inline:auto;
  padding-inline:clamp(20px,4vw,64px)
}

/* The emblem's approved CSS crop is shared with the card/export system. */
.crest-clip {
  display:block;
  overflow:hidden;
  aspect-ratio:509/689;
  background-image:url('../img/crest.png');
  background-repeat:no-repeat;
  background-size:314.34% 126.71%;
  background-position:50.32% 41.30%
}

.crest-clip img {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}

.crest-frame {
  display:inline-block;
  background:var(--mat-crest);
  line-height:0
}

/* Navigation: a single persistent set of destinations on every page. */
.site-header {
  position:sticky;
  top:-30px;
  z-index:var(--z-header);
  background:var(--black);
  color:var(--white)
}

.club-strip {
  height:30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-inline:clamp(20px,4vw,64px);
  background:var(--purple);
  font-size:11px;
  letter-spacing:.05em
}

.nav {
  position:relative;
  min-height:var(--nav-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-inline:clamp(20px,4vw,64px);
  gap:24px;
  border-bottom:1px solid #333
}

.nav-brand {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  white-space:nowrap;
  font-family:Anton,Impact,sans-serif;
  font-size:24px;
  line-height:1.2
}

.nav-brand small {
  display:block;
  font-family:Bahnschrift,'Segoe UI',system-ui,sans-serif;
  font-size:10px;
  letter-spacing:.18em;
  color:var(--yellow);
  margin-top:4px
}

.crest-frame--nav {
  padding:4px
}

.crest-frame--nav .crest-clip {
  height:48px
}

.nav-right {
  display:flex;
  align-items:center;
  gap:28px
}

.nav-links {
  display:flex;
  align-items:center;
  list-style:none;
  gap:18px
}

.nav-links a {
  min-height:44px;
  display:flex;
  align-items:center;
  font-size:14px;
  white-space:nowrap;
  position:relative
}

.nav-links a:hover,.nav-links a.is-active {
  color:var(--yellow)
}

.nav-links a.is-active::after {
  content:'';
  position:absolute;
  bottom:0;
  inset-inline:0;
  height:2px;
  background:var(--yellow)
}

.lang-switch {
  display:flex;
  gap:0
}

.lang-btn {
  min-width:44px;
  min-height:44px;
  border:1px solid transparent;
  background:transparent;
  color:white;
  padding:8px;
  font-size:12px;
  cursor:pointer
}

.lang-btn:hover {
  border-color:var(--yellow)
}

.lang-btn.is-active {
  background:var(--yellow);
  color:var(--black);
  font-weight:700
}

.nav-burger {
  display:none;
  min-width:44px;
  min-height:44px;
  border:1px solid #666;
  background:transparent;
  color:white;
  font-size:23px;
  cursor:pointer
}

/* Home: identity and place share the stage, rather than competing in an overlay. */
.home-hero {
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:610px;
  background:var(--purple);
  color:white
}

.home-hero-copy {
  padding:clamp(36px,5vw,76px) clamp(24px,4vw,64px);
  align-self:center
}

.hero-location {
  font-size:15px;
  color:var(--yellow);
  margin-bottom:32px
}

.home-hero h1 {
  font-size:clamp(44px,5.4vw,78px);
  line-height:1.08;
  max-width:10ch
}

.home-hero h1 span {
  display:block
}

.home-hero h1 span+span {
  color:var(--yellow);
  margin-top:8px
}

.home-intro {
  margin-top:26px;
  font-size:18px;
  max-width:34ch
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  min-height:52px;
  padding:14px 22px;
  font-size:15px;
  font-weight:700;
  transition:background .2s ease,color .2s ease
}

.button-yellow {
  background:var(--yellow);
  color:var(--black)
}

.button:hover {
  background:white;
  color:var(--purple)
}

.home-hero .button {
  margin-top:32px
}

.text-link {
  display:inline-flex;
  align-items:center;
  gap:20px;
  min-height:44px;
  font-size:15px;
  font-weight:600;
  text-underline-offset:6px
}

.text-link:hover {
  text-decoration:underline
}

.home-hero-copy>.text-link {
  display:flex;
  width:fit-content;
  margin-top:12px
}

.home-hero-photo {
  position:relative;
  min-width:0;
  overflow:hidden;
  background:#252025
}

.home-hero-photo>img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:52% center;
  position:absolute;
  inset:0
}

.home-hero-photo::after {
  content:'';
  position:absolute;
  inset:40% 0 0;
  background:linear-gradient(transparent,rgba(0,0,0,.85));
  pointer-events:none
}

.home-hero-photo figcaption {
  position:absolute;
  bottom:24px;
  left:32px;
  right:32px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
  z-index:1
}

.hero-photo-motto {
  position:absolute;
  bottom:64px;
  left:32px;
  font-family:Anton,Impact,sans-serif;
  text-transform:uppercase;
  font-size:clamp(52px,7vw,96px);
  color:white;
  line-height:1;
  z-index:1;
  animation:word-arrive .7s cubic-bezier(.16,1,.3,1) both
}

@keyframes word-arrive {
  from {
    transform:translateY(16px);
    opacity:.5
  }
  to {
    transform:translateY(0);
    opacity:1
  }
}

.match-brief {
  background:var(--black);
  color:white;
  padding-block:30px
}

.match-brief-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px
}

.match-brief p {
  font-size:13px;
  color:#ded6e6
}

.match-brief h2 {
  font-size:clamp(26px,3vw,38px);
  margin-block:8px
}

.match-brief h2 span {
  color:var(--yellow);
  margin-inline:8px
}

.match-brief .text-link {
  color:var(--yellow)
}

.home-squad {
  padding-block:clamp(60px,7vw,104px);
  background:var(--paper)
}

.section-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:32px
}

.section-heading h2 {
  max-width:15ch;
  color:var(--purple)
}

.section-heading p {
  margin-top:16px;
  font-size:17px;
  max-width:42ch
}

.section-heading>.text-link {
  flex-shrink:0
}

.featured-cromos {
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-top:40px;
  gap:28px
}

.cromo95-caption {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  min-height:44px;
  margin-top:8px;
  font-size:16px
}

.featured-cromos .cromo95-caption:hover {
  color:var(--purple);
  text-decoration:underline
}

.home-discover {
  padding-block:clamp(48px,6vw,88px);
  background:white
}

.home-discover h2 {
  color:var(--purple);
  max-width:19ch;
  margin-bottom:36px
}

.discover-grid {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:24px
}

.discover-grid>a {
  overflow:hidden;
  position:relative;
  transition:box-shadow .2s ease
}

.discover-grid>a:hover {
  box-shadow:0 0 0 3px var(--purple)
}

.discover-stadium {
  grid-row:span 2;
  min-height:580px;
  display:flex;
  align-items:end;
  color:white;
  background:var(--black)
}

.discover-stadium>img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover
}

.discover-stadium::after {
  content:'';
  position:absolute;
  inset:30% 0 0;
  background:linear-gradient(transparent,rgba(0,0,0,.9))
}

.discover-stadium>div {
  position:relative;
  z-index:1;
  padding:32px
}

.discover-stadium p {
  font-size:14px;
  margin-bottom:12px
}

.discover-stadium h3 {
  max-width:13ch;
  font-size:clamp(32px,3vw,44px)
}

.discover-club {
  display:flex;
  align-items:center;
  gap:28px;
  padding:32px;
  background:var(--purple);
  color:white
}

.discover-club .crest-frame {
  padding:8px;
  flex-shrink:0
}

.discover-club .crest-clip {
  width:70px
}

.discover-club h3 {
  color:var(--yellow)
}

.discover-club p {
  margin-top:12px;
  font-size:15px
}

.discover-club .text-link {
  margin-top:12px
}

.discover-kits {
  display:grid;
  grid-template-columns:1fr 120px;
  gap:24px;
  align-items:center;
  padding:32px;
  background:var(--yellow);
  color:var(--black)
}

.discover-kits p {
  margin-top:12px;
  font-size:15px
}

.discover-kits .text-link {
  margin-top:12px
}

.discover-kits img {
  width:120px;
  height:auto
}

.home-signoff {
  background:var(--purple);
  color:var(--yellow);
  padding:56px 24px;
  text-align:center
}

.home-signoff p {
  font-family:Anton,Impact,sans-serif;
  font-size:clamp(24px,3vw,40px);
  line-height:1.3;
  margin:auto
}

.home-signoff>span {
  display:block;
  color:white;
  font-size:14px;
  margin-top:16px
}

/* Inside pages use location and an optional local index, not another hero. */
.breadcrumb {
  display:flex;
  gap:12px;
  align-items:center;
  min-height:64px;
  font-size:13px
}

.breadcrumb>a {
  min-height:44px;
  display:flex;
  align-items:center;
  color:var(--purple);
  text-decoration:underline;
  text-underline-offset:4px
}

.section-nav {
  display:flex;
  flex-wrap:wrap;
  gap:8px 24px;
  padding-bottom:20px
}

.section-nav a {
  display:inline-flex;
  min-height:44px;
  align-items:center;
  border-bottom:1px solid #b6a8c2;
  font-size:14px
}

.section-nav a:hover {
  color:var(--purple);
  border-color:var(--purple)
}

.band,.squad,.season-status,.directiva,.kits {
  padding-block:clamp(48px,6vw,88px)
}

.band {
  background:var(--paper)
}

.band h1,.band h2 {
  color:var(--purple)
}

.band-body {
  font-size:clamp(18px,2vw,26px);
  line-height:1.65;
  margin-top:32px;
  max-width:55ch
}

.origin-route {
  display:flex;
  align-items:center;
  gap:clamp(20px,5vw,64px);
  font-family:Anton,Impact,sans-serif;
  text-transform:uppercase;
  font-size:clamp(32px,7vw,80px);
  line-height:1.2;
  margin-top:48px;
  color:var(--purple)
}

.origin-route span:nth-child(2) {
  color:var(--orange-ink)
}

/* The complete album, with unchanged physical card proportions. */
.squad {
  background:var(--black);
  color:white
}

.squad h1,.squad h2 {
  color:var(--yellow)
}

.squad-note {
  margin-top:24px;
  font-size:20px
}

.squad-order {
  margin-top:8px;
  color:#ded6e6;
  font-size:14px
}

.squad .cromos95 {
  margin-top:40px;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:36px 28px
}

.cromo95[id] {
  scroll-margin-top:130px
}

.cromo95:target {
  outline:3px solid var(--yellow);
  outline-offset:10px
}

.squad .cromo95-caption {
  color:white
}

/* Season data: explicitly dated snapshot, full native tables. */
.season-status {
  background:var(--black);
  color:white
}

.season-status h1 {
  color:var(--yellow)
}

.season-note {
  margin-top:24px;
  font-size:18px;
  max-width:60ch
}

.season-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
  margin-top:36px;
  padding-block:24px;
  border-block:1px solid #4d4256
}

.season-grid dt {
  font-size:14px;
  color:var(--yellow)
}

.season-grid dd {
  margin-top:10px;
  font-size:17px
}

.season-details {
  margin-top:32px
}

.season-details summary {
  padding-block:16px;
  min-height:44px;
  cursor:pointer;
  color:var(--yellow);
  font-weight:600
}

.season-details summary:hover {
  text-decoration:underline
}

.season-tables {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  margin-top:24px
}

.season-table {
  width:100%;
  border-collapse:collapse;
  font-variant-numeric:tabular-nums
}

.season-table caption {
  text-align:left;
  font-family:Anton,Impact,sans-serif;
  font-size:30px;
  color:white;
  margin-bottom:18px
}

.season-table th,.season-table td {
  padding:14px 8px;
  border-bottom:1px solid #44364e
}

.season-table thead th {
  font-size:12px;
  vertical-align:bottom
}

.season-table thead th:last-child {
  max-width:22ch
}

.season-table th:first-child {
  width:3ch
}

.season-table tbody th {
  font-weight:400
}

.season-table td:last-child {
  text-align:right;
  white-space:nowrap
}

.season-table .season-amunt {
  background:var(--purple);
  color:var(--yellow);
  font-weight:600
}

.season-table.season-fixtures td {
  white-space:normal;
  text-align:left
}

.season-fixtures td>span,.season-fixtures td>strong {
  display:block
}

.fixture-pending {
  font-size:13px;
  color:#ded6e6
}

.season-fixtures td>strong,.fixture-pending {
  margin-top:4px
}

.season-source {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:var(--yellow);
  font-size:13px;
  text-decoration:underline;
  text-underline-offset:4px;
  margin-top:28px
}

/* People, place and objects each have their own composition. */
.directiva {
  background:var(--purple);
  color:white
}

.directiva h2 {
  color:var(--yellow);
  max-width:18ch
}

.cromo-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
  margin-top:40px
}

.cromo {
  align-self:start
}

.cromo img {
  width:100%;
  height:auto
}

.cromo-mascot img {
  aspect-ratio:1208/1800;
  object-fit:cover
}

.cromo figcaption {
  padding-top:18px
}

.cromo figcaption strong {
  font-family:Anton,Impact,sans-serif;
  font-size:23px;
  line-height:1.2;
  font-weight:400;
  display:block
}

.cromo figcaption span {
  display:block;
  color:var(--yellow);
  font-size:14px;
  margin-top:6px
}

.cromo-quote {
  display:block;
  margin-top:12px;
  font-size:14px;
  line-height:1.5
}

.cromo:hover .cromo-quote {
  color:var(--yellow)
}

.split {
  margin-top:56px;
  display:grid;
  grid-template-columns:1.4fr 1fr;
  align-items:center;
  gap:48px
}

.split img {
  width:100%;
  height:auto
}

.split-text h2 {
  font-size:clamp(25px,2.4vw,36px);
  color:var(--purple)
}

.split-text p {
  margin-top:20px;
  font-size:17px
}

.split-text .cap {
  font-size:17px;
  color:var(--orange-ink);
  font-weight:700
}

.split-rev {
  grid-template-columns:1fr 1.4fr
}

.split-rev img {
  order:2
}

.split-rev .split-text {
  order:1
}

.page-estadio .split:first-of-type {
  display:flex;
  flex-direction:column;
  align-items:start
}

.page-estadio .split:first-of-type>img {
  width:100%
}

.page-estadio .split:first-of-type .split-text {
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:48px
}

.page-estadio .split:first-of-type .split-text h2 {
  font-size:clamp(30px,4vw,52px);
  grid-row:span 2;
  max-width:14ch
}

.page-estadio .split:first-of-type .split-text p {
  margin-top:0
}

.page-estadio .split:first-of-type .split-text .cap {
  margin-bottom:16px
}

.kits {
  background:var(--purple);
  color:white
}

.kits h1 {
  color:var(--yellow)
}

.kit-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  margin-top:48px
}

.kit {
  display:flex;
  flex-direction:column;
  align-items:start
}

.kit img {
  width:auto;
  height:auto;
  max-height:620px;
  max-width:100%;
  background:var(--mat-kit)
}

.kit h2 {
  margin-top:28px;
  font-size:30px;
  color:var(--yellow)
}

.kit p {
  margin-top:16px;
  font-size:17px;
  max-width:40ch
}

.cultura {
  background:white
}

.cult-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 56px;
  margin-top:32px
}

.cult-card {
  padding:32px 0;
  border-top:1px solid #c8bcd2
}

.cult-label {
  color:var(--purple);
  font-size:14px;
  font-weight:600
}

.cult-card p:not(.cult-label) {
  margin-top:12px
}

.cult-shout {
  font-family:Anton,Impact,sans-serif;
  font-size:72px;
  color:var(--purple);
  line-height:1
}

.cult-value {
  font-family:Anton,Impact,sans-serif;
  font-size:30px
}

.cult-card blockquote {
  font-size:clamp(22px,2.4vw,30px);
  line-height:1.4;
  margin-top:12px
}

.cult-attr {
  font-size:14px
}

.news-grid {
  margin-top:40px
}

.news-card {
  display:grid;
  grid-template-columns:160px 1fr 1.2fr;
  gap:32px;
  padding-block:32px;
  border-top:1px solid #c8bcd2;
  align-items:baseline
}

.news-date {
  font-size:14px;
  color:var(--orange-ink);
  font-weight:600
}

.news-card h3 {
  color:var(--purple);
  font-size:28px
}

.news-card>p:last-child {
  font-size:16px
}

.derby {
  position:relative;
  overflow:hidden;
  padding-block:clamp(64px,8vw,120px);
  background:url('../img/estadio-aerea.jpg') center/cover;
  color:white
}

.derby-overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(13,13,13,.96),rgba(65,20,101,.9))
}

.derby-inner {
  position:relative
}

.kicker {
  color:var(--yellow);
  font-size:15px;
  margin-bottom:18px
}

.derby h2 {
  font-size:clamp(40px,7vw,88px);
  max-width:14ch
}

.derby-vs {
  font-size:20px;
  color:var(--yellow);
  margin-top:24px
}

.derby-body {
  font-size:18px;
  line-height:1.8;
  margin-top:24px;
  max-width:65ch
}

.derby-bat {
  position:absolute;
  top:10%;
  right:8%;
  width:160px;
  height:auto;
  filter:invert(1);
  mix-blend-mode:screen;
  opacity:.2;
  animation:bat-drift 11s ease-in-out infinite
}

@keyframes bat-drift {
  50% {
    transform:translate(-20px,-16px) rotate(4deg)
  }
}

.next-destination {
  background:var(--yellow);
  color:var(--black);
  padding-block:40px
}

.next-destination p {
  font-size:14px
}

.next-destination a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  font-family:Anton,Impact,sans-serif;
  font-size:clamp(30px,4vw,56px);
  line-height:1.2;
  padding-block:16px;
  min-height:44px
}

.next-destination :focus-visible {
  outline-color:var(--purple)
}

.next-destination a:hover {
  text-decoration:underline;
  text-underline-offset:8px
}

/* Footer is also a visible directory, not a dead end. */
.foot {
  background:var(--black);
  color:white;
  padding-block:64px 24px
}

.foot-inner {
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:64px
}

.crest-frame--foot {
  padding:8px
}

.crest-frame--foot .crest-clip {
  width:76px
}

.foot-motto {
  font-family:Anton,Impact,sans-serif;
  font-size:42px;
  line-height:1;
  color:var(--yellow);
  margin-top:16px
}

.foot-data h2 {
  font-size:24px;
  color:var(--yellow)
}

.foot-data dl {
  display:grid;
  grid-template-columns:150px 1fr;
  gap:10px 24px;
  font-size:14px;
  margin-top:24px
}

.foot-data dt {
  color:#ded6e6
}

.footer-map {
  margin-top:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px
}

.footer-map ul {
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:4px 24px
}

.footer-map a {
  display:inline-flex;
  min-height:44px;
  align-items:center;
  font-size:14px
}

.footer-map a:hover,.footer-map .is-active {
  color:var(--yellow)
}

.back-top {
  white-space:nowrap
}

.foot-bottom {
  margin-top:32px;
  padding-top:24px;
  border-top:1px solid #44364e;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px
}

.foot-rights {
  font-size:12px;
  color:#ded6e6
}

@media(min-width:1600px) {
  .home-hero {
    min-height:700px
  }
  .home-hero-copy {
    padding-left:max(64px,calc((100vw - 1200px)/2))
  }
}

@media(max-width:1180px) {
  .nav {
    padding-inline:24px;
    gap:16px
  }
  .nav-right {
    gap:16px
  }
  .js .nav-burger {
    display:block
  }
  .js .nav-links {
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:16px 24px 28px;
    background:var(--purple);
    max-height:calc(100svh - 90px);
    overflow:auto;
    box-shadow:0 20px 30px #0004
  }
  .js .nav-links.open {
    display:flex
  }
  .js .nav-links a {
    font-family:Anton,Impact,sans-serif;
    font-size:28px;
    padding:10px 0;
    border-bottom:1px solid #ffffff30
  }
  .nav-links a.is-active::after {
    display:none
  }
  html:not(.js) .nav {
    flex-wrap:wrap;
    padding-block:12px
  }
  html:not(.js) .nav .nav-right {
    flex-wrap:wrap
  }
  html:not(.js) .nav .nav-links {
    flex-wrap:wrap;
    gap:4px 20px
  }
  .home-hero {
    min-height:570px
  }
  .home-hero h1 {
    font-size:clamp(40px,5.3vw,64px)
  }
  .discover-grid {
    grid-template-columns:1fr 1fr
  }
  .discover-club {
    padding:24px;
    gap:20px
  }
  .discover-club .crest-clip {
    width:50px
  }
  .discover-kits {
    padding:24px;
    grid-template-columns:1fr 90px;
    gap:16px
  }
  .discover-kits img {
    width:90px
  }
  .season-tables {
    gap:28px
  }
  .cromo-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:40px 28px
  }
}

@media(max-width:900px) {
  .home-hero {
    grid-template-columns:1fr 1fr;
    min-height:540px
  }
  .home-hero-copy {
    padding:40px 24px
  }
  .home-hero h1 {
    font-size:46px
  }
  .home-intro {
    font-size:16px
  }
  .hero-location {
    margin-bottom:24px
  }
  .section-heading {
    align-items:start;
    flex-direction:column;
    gap:14px
  }
  .featured-cromos {
    gap:18px
  }
  .discover-grid {
    grid-template-columns:1fr
  }
  .discover-stadium {
    grid-row:auto;
    min-height:400px
  }
  .discover-club {
    padding:32px
  }
  .discover-club .crest-clip {
    width:70px
  }
  .discover-kits {
    grid-template-columns:1fr 140px;
    padding:32px
  }
  .discover-kits img {
    width:140px
  }
  .season-grid {
    grid-template-columns:1fr 1fr
  }
  .season-tables {
    grid-template-columns:minmax(0,1fr)
  }
  .squad .cromos95 {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .split,.split-rev {
    grid-template-columns:1fr;
    gap:28px
  }
  .split-rev img,.split-rev .split-text {
    order:initial
  }
  .news-card {
    grid-template-columns:120px 1fr;
    gap:12px 24px
  }
  .news-card>p:last-child {
    grid-column:2
  }
  .kit-grid {
    gap:32px
  }
  .foot-inner {
    grid-template-columns:150px 1fr;
    gap:40px
  }
}

@media(max-width:600px) {
  :root {
    --nav-h:76px
  }
  .club-strip {
    padding-inline:20px
  }
  .nav {
    padding-inline:16px;
    gap:10px
  }
  .nav-brand {
    font-size:20px;
    gap:8px
  }
  .crest-frame--nav .crest-clip {
    height:38px
  }
  .nav-right {
    gap:10px
  }
  .nav-brand small {
    font-size:9px
  }
  .nav-links {
    gap:10px
  }
  .js .nav-links a {
    font-size:26px
  }
  .lang-btn {
    padding:6px;
    min-width:44px
  }
  .home-hero {
    grid-template-columns:1fr;
    min-height:0
  }
  .home-hero-copy {
    padding:36px 24px 32px
  }
  .home-hero h1 {
    font-size:clamp(42px,9vw,56px);
    max-width:13ch
  }
  .hero-location {
    margin-bottom:20px
  }
  .home-intro {
    max-width:36ch;
    margin-top:20px
  }
  .home-hero .button {
    margin-top:24px
  }
  .home-hero-photo {
    min-height:310px
  }
  .home-hero-photo>img {
    object-position:center 54%
  }
  .home-hero-photo figcaption {
    left:24px;
    right:24px;
    font-size:11px
  }
  .hero-photo-motto {
    left:24px;
    font-size:64px
  }
  .match-brief-inner {
    align-items:start;
    flex-direction:column;
    gap:12px
  }
  .match-brief {
    padding-block:24px
  }
  .section-heading h2 {
    max-width:16ch
  }
  .featured-cromos {
    grid-template-columns:1fr;
    gap:28px;
    max-width:420px;
    margin-inline:auto
  }
  .home-discover h2 {
    max-width:15ch
  }
  .discover-stadium {
    min-height:380px
  }
  .discover-stadium>div {
    padding:24px
  }
  .discover-club {
    padding:28px 24px;
    gap:24px
  }
  .discover-club .crest-clip {
    width:56px
  }
  .discover-kits {
    padding:28px 24px;
    grid-template-columns:1fr 100px;
    gap:18px
  }
  .discover-kits img {
    width:100px
  }
  .squad .cromos95 {
    grid-template-columns:minmax(0,1fr);
    gap:32px
  }
  .squad-order {
    font-size:13px
  }
  .season-grid {
    gap:24px 20px
  }
  .season-grid dd {
    font-size:15px
  }
  .season-table th,.season-table td {
    padding:12px 5px;
    font-size:14px
  }
  .season-table thead th {
    font-size:11px
  }
  .season-table td:last-child {
    white-space:normal
  }
  .season-table caption {
    font-size:26px
  }
  .cromo-grid {
    gap:32px 20px
  }
  .cromo figcaption strong {
    font-size:20px
  }
  .cromo figcaption span {
    font-size:13px
  }
  .cromo-quote {
    font-size:13px
  }
  .cult-grid {
    grid-template-columns:1fr
  }
  .page-estadio .split:first-of-type .split-text {
    display:block
  }
  .page-estadio .split:first-of-type .split-text .cap {
    margin-top:20px
  }
  .page-estadio .split:first-of-type .split-text h2 {
    max-width:18ch
  }
  .kit-grid {
    grid-template-columns:1fr;
    gap:56px
  }
  .kit img {
    max-height:560px;
    align-self:center
  }
  .news-card {
    grid-template-columns:1fr;
    gap:14px
  }
  .news-card>p:last-child {
    grid-column:auto
  }
  .news-card h3 {
    font-size:26px
  }
  .origin-route {
    gap:20px;
    font-size:clamp(28px,7.8vw,44px)
  }
  .foot-inner {
    grid-template-columns:1fr;
    gap:32px
  }
  .foot-brand {
    display:flex;
    align-items:center;
    gap:24px
  }
  .foot-motto {
    margin-top:0
  }
  .foot-data dl {
    grid-template-columns:100px 1fr;
    gap:12px 20px
  }
  .footer-map {
    align-items:start;
    flex-direction:column;
    gap:12px
  }
  .foot-bottom {
    align-items:start;
    flex-direction:column
  }
  .section-nav {
    gap:0 20px
  }
  .breadcrumb {
    min-height:56px
  }
  .back-top {
    font-size:13px
  }
}

@media(max-width:370px) {
  .nav {
    padding-inline:10px
  }
  .nav-brand {
    font-size:17px;
    gap:6px
  }
  .nav-brand small {
    letter-spacing:.08em
  }
  .crest-frame--nav .crest-clip {
    height:32px
  }
  .nav-right {
    gap:4px
  }
  .nav-burger {
    min-width:44px
  }
  .home-hero h1 {
    font-size:42px
  }
  .home-hero-photo {
    min-height:270px
  }
  .cromo-grid {
    grid-template-columns:1fr
  }
  .discover-club {
    gap:16px
  }
  .discover-club .crest-clip {
    width:40px
  }
  .discover-kits {
    grid-template-columns:1fr 80px
  }
  .discover-kits img {
    width:80px
  }
  .season-grid {
    grid-template-columns:1fr
  }
  .foot-data dl {
    grid-template-columns:1fr;
    gap:2px
  }
  .foot-data dd {
    margin-bottom:12px
  }
}

/* Squad identity: the footballer is the title, the cromo is their artwork. */
.player-identity { padding-block: 20px 24px; }
.player-name { text-transform: none; }
.player-first { display: block; font-family: Bahnschrift, 'Segoe UI', system-ui, sans-serif; font-size: 16px; line-height: 1.4; color: var(--white); margin-bottom: 4px; }
.player-surname { display: block; font-family: Anton, Impact, sans-serif; font-size: clamp(36px, 3.5vw, 44px); line-height: 1.12; text-transform: uppercase; color: var(--yellow); overflow-wrap: normal; }
.player-role { margin-top: 12px; font-size: 14px; line-height: 1.5; color: #ded6e6; }
.player-feature-link { align-items: center; border-bottom: 1px solid #c8bcd2; }
.player-feature-link .player-identity { flex: 1; min-width: 0; }
.player-feature-link .player-first { color: var(--ink); }
.player-feature-link .player-surname, .player-feature-link .player-role { color: var(--purple); }
.player-feature-link .player-arrow { font-size: 26px; color: var(--purple); transition: transform .2s ease; }
.player-feature-link:hover .player-arrow { transform: translateX(3px); }
.featured-cromos .player-feature-link:hover { text-decoration: none; }
.page-plantilla .squad { --position-nav-height: 64px; --line-padding: 64px; padding-top: 48px; padding-bottom: 0; }
.squad-intro { padding-bottom: 40px; }
.squad-season { font-size: 14px; margin-bottom: 16px; color: #ded6e6; }
.squad-intro h1 { font-size: clamp(52px, 7vw, 88px); }
.squad-intro .squad-note { margin-top: 20px; font-size: clamp(17px, 2vw, 22px); max-width: 45ch; }
.squad-position-nav { position: sticky; top: var(--nav-h); z-index: 10; background: var(--black); border-block: 1px solid #44364e; }
.position-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.position-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 12px 4px; font-size: 15px; color: #ded6e6; border-bottom: 3px solid transparent; }
.position-links a:hover, .position-links a[aria-current] { color: var(--yellow); border-bottom-color: var(--yellow); }
.position-count { font-variant-numeric: tabular-nums; font-size: 13px; }
/* Include section padding so the heading lands 24px below the two navigation bars. */
.squad-line { padding-top: var(--line-padding); scroll-margin-top: calc(var(--nav-h) + var(--position-nav-height) + 24px - 110px - var(--line-padding)); }
.squad-line-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #44364e; }
.squad-line-heading h2 { font-size: clamp(32px, 4.2vw, 56px); }
.squad-line-heading > p { color: #ded6e6; font-size: 14px; white-space: nowrap; }
.squad-line-heading > p > span:first-child { font-weight: 700; color: var(--yellow); }
.squad .squad-line .cromos95 { margin-top: 32px; }
.squad-provenance { padding-block: 40px 56px; border-top: 1px solid #44364e; margin-top: 32px; font-size: 13px; color: #ded6e6; }
.squad-provenance .season-source { margin-top: 4px; }
.page-plantilla .cromo95[id] { scroll-margin-top: 90px; }
@media (max-width: 600px) {
  .position-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .position-links a { min-height: 48px; padding: 8px 0; font-size: 13px; gap: 8px; }
  .page-plantilla .squad { --position-nav-height: 96px; --line-padding: 44px; }
  .squad-line-heading { padding-bottom: 20px; gap: 12px; flex-wrap: wrap; }
  .squad-line-heading h2 { font-size: clamp(29px, 7vw, 40px); }
  .squad-line-heading > p { font-size: 13px; }
  .squad .squad-line .cromos95 { margin-top: 28px; }
  .page-plantilla .cromo95[id] { scroll-margin-top: 120px; }
  .player-identity { padding-block: 18px 22px; }
  .player-surname { font-size: 40px; }
}

/* Global refinement: clear destinations, image-led chapters, stable first paint. */
:root { --muted-on-dark: #ded6e6; --rule-dark: #44364e; --rule-light: #c8bcd2; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nav-links a, .footer-map a, .breadcrumb > a { min-width: 44px; }
.club-strip { font-size: 12px; }
.nav-brand small { font-size: 10px; }
.nav-burger { display: none; align-items: center; justify-content: center; gap: 12px; padding: 8px 12px; width: auto; }
.nav-menu-text { font-size: 13px; }
.nav-menu-icon { font-size: 24px; line-height: 1; }
.breadcrumb { min-height: 48px; }
.breadcrumb :focus-visible { outline-color: currentColor; }
.page-temporada main, .page-plantilla main { background: var(--black); }
.page-temporada .breadcrumb, .page-plantilla .breadcrumb { color: var(--muted-on-dark); }
.page-temporada .breadcrumb > a, .page-plantilla .breadcrumb > a { color: var(--yellow); }
.page-equipaciones main { background: var(--purple); }
.page-equipaciones .breadcrumb { color: var(--white); }
.page-equipaciones .breadcrumb > a { color: var(--yellow); }
/* Home: the album remains complete while the mobile journey gets shorter. */
.hero-season-link { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; color: var(--yellow); text-decoration: underline; text-underline-offset: 5px; margin-top: 6px; }
.home-hero h1 { max-width: 12ch; }
.player-tile { display: block; }
.player-tile:hover .player-surname { text-decoration: underline; text-underline-offset: 6px; }
.player-tile:hover .player-arrow { transform: translateX(3px); }
.album-hint { display: none; }
/* Match centre: scoreboards are matches, not oversized summary metrics. */
.page-temporada .season-status { padding-top: 44px; }
.snapshot-date { font-size: 14px; color: var(--yellow); margin-bottom: 18px; }
.season-heading .season-note { max-width: 64ch; }
.match-centre { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.match-result, .match-next { padding: 28px; min-width: 0; }
.match-result { border: 1px solid var(--rule-dark); }
.match-next { background: var(--purple); }
.match-label { font-size: 13px; color: var(--muted-on-dark); }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-top: 24px; }
.scoreboard > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.scoreboard > div > span { font-size: 18px; font-weight: 600; }
.scoreboard strong { font-family: Anton, Impact, sans-serif; font-size: clamp(36px,4vw,56px); line-height: 1.1; font-weight: 400; font-variant-numeric: tabular-nums; }
.scoreboard-divider { font-size: 26px; }
.scoreboard-amunt, .match-outcome { color: var(--yellow); }
.match-outcome { text-align: center; font-size: 14px; font-weight: 600; margin-top: 18px; }
.match-next h2 { font-size: clamp(28px,3vw,40px); margin-block: 26px 20px; color: var(--white); }
.match-next h2 > span, .match-next .text-link { color: var(--yellow); }
.match-next > p:not(.match-label) { font-size: 14px; }
.match-next .text-link { margin-top: 14px; }
.season-index { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 32px; padding-block: 12px; border-bottom: 1px solid var(--rule-dark); }
.season-index a { display: inline-flex; align-items: center; min-height: 44px; color: var(--yellow); font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }
.season-panel { min-width: 0; scroll-margin-top: 20px; }
.season-tables { align-items: start; gap: 40px; }
.season-panel .season-details { margin-top: 0; }
.season-panel summary { font-family: Anton, Impact, sans-serif; font-size: 28px; font-weight: 400; color: var(--white); }
.season-panel table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.standings-table th, .standings-table td { text-align: right; padding: 14px 7px; }
.standings-table thead th:nth-child(2), .standings-table tbody td:first-of-type { text-align: left; }
.standings-table tbody td { white-space: nowrap; }
.standings-table thead th { font-size: 12px; }
.standings-table th:first-child { width: 28px; }
.standings-table td:first-of-type { font-weight: 600; }
.table-legend { font-size: 13px; color: var(--muted-on-dark); line-height: 1.6; margin-top: 18px; }
.fixture-score { font-size: 19px; font-variant-numeric: tabular-nums; }
.fixture-state { display: inline-block !important; font-size: 12px; padding-top: 6px; color: var(--muted-on-dark); }
.fixture-state--win { color: var(--yellow); font-weight: 700; }
.fixture-state--pending { font-size: 12px; }
.fixture-derby { display: flex; width: fit-content; margin-top: 4px; min-height: 44px; align-items: center; color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.season-fixtures tr[id] { scroll-margin-top: 130px; }
/* Club: origin, people, rituals, rivalry. */
.club-origin > .band-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.club-origin-copy .band-body { font-size: clamp(18px,1.8vw,24px); }
.club-origin-copy .origin-route { font-size: clamp(28px,4vw,52px); gap: 24px; }
.club-origin-emblem { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--yellow); padding: 40px; min-height: 380px; }
.club-emblem { padding: 12px; }
.club-emblem .crest-clip { width: 136px; }
.club-origin-emblem > p { font-family: Anton, Impact, sans-serif; font-size: 48px; color: var(--purple); line-height: 1; margin-top: 20px; }
.directiva .cromo-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px; }
.directiva .cromo figcaption strong { font-size: clamp(24px,2.6vw,32px); }
.directiva .cromo figcaption span { font-size: 15px; }
.directiva .cromo-quote { font-size: 16px; }
.mascot-feature { background: var(--yellow); padding-block: 64px; }
.mascot-feature-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.mascot-feature figure { min-width: 0; }
.mascot-feature h2 { font-size: clamp(34px,4vw,56px); color: var(--purple); margin-block: 12px 20px; }
.mascot-feature .mascot-intro { font-size: 20px; max-width: 30ch; margin-bottom: 18px; }
.mascot-feature .photo-link { background: var(--white); }
.mascot-feature .photo-link img { width: 100%; height: auto; }
.derby-duel { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin-top: 32px; font-family: Anton,Impact,sans-serif; font-size: clamp(32px,5vw,64px); line-height: 1.1; text-transform: uppercase; color: var(--yellow); }
.derby-duel .derby-versus { font-family: Bahnschrift,'Segoe UI',system-ui,sans-serif; text-transform: none; font-size: 20px; color: var(--white); }
.derby-calendar { margin-top: 26px; color: var(--yellow); }
.derby :focus-visible { outline-color: var(--yellow); }
/* Place: a static photographic visit, with original images available in full. */
.stadium-page { padding-top: 40px; background: var(--paper); }
.place-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding-bottom: 36px; }
.place-heading h1 { font-size: clamp(44px,6vw,76px); max-width: 15ch; color: var(--purple); }
.place-location { font-size: 15px; margin-bottom: 18px; }
.place-capacity { font-size: 16px; color: var(--orange-ink); white-space: nowrap; font-weight: 600; padding-bottom: 4px; }
.stadium-front { margin: 0; }
.place-story { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 64px; margin-block: 40px 64px; }
.place-story h2 { font-size: clamp(30px,3vw,44px); max-width: 17ch; color: var(--purple); }
.place-story p { font-size: 18px; line-height: 1.8; }
.stadium-aerial { margin-bottom: 64px; }
.stadium-aerial figcaption { display: flex; justify-content: space-between; align-items: start; gap: 32px; margin-top: 24px; }
.stadium-aerial figcaption h2 { font-size: clamp(26px,2.8vw,38px); max-width: 24ch; color: var(--purple); }
.stadium-aerial figcaption p { max-width: 32ch; font-size: 16px; }
.training-feature { background: var(--purple); color: var(--white); padding-block: 64px; }
.training-feature header { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.training-feature h2 { font-size: clamp(32px,4vw,56px); color: var(--yellow); }
.training-feature header p { max-width: 28ch; font-size: 16px; }
.training-description { font-size: 18px; line-height: 1.8; margin-top: 32px; }
.training-feature .text-link { color: var(--yellow); margin-top: 18px; }
.training-feature :focus-visible { outline-color: var(--yellow); }
/* Native image links remain useful when JavaScript is absent. */
.photo-link { display: block; position: relative; cursor: zoom-in; }
.photo-link > img { width: 100%; height: auto; }
.photo-expand { position: absolute; bottom: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; padding: 10px 16px; background: var(--black); color: var(--white); font-size: 13px; line-height: 1.4; transition: background .2s ease,color .2s ease; }
.photo-expand > span:last-child { font-size: 22px; line-height: 1; }
.photo-link:hover .photo-expand { background: var(--yellow); color: var(--black); }
.photo-link:focus-visible { outline-offset: 5px; }
.board-photo .photo-expand { bottom: 10px; right: 10px; padding: 8px 12px; }
/* Three kits, three grounded chapters; geometry is reserved before download. */
.kit-collection { color: var(--white); }
.collection-heading { padding-top: 40px; padding-bottom: 32px; }
.collection-heading h1 { color: var(--yellow); }
.collection-heading > p { font-size: 22px; margin-top: 20px; }
.collection-index { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 24px; }
.collection-index a { min-height: 44px; display: inline-flex; align-items: center; color: var(--yellow); font-size: 15px; text-decoration: underline; text-underline-offset: 5px; }
.kit-chapter { padding-block: 56px 64px; scroll-margin-top: 24px; }
.kit-chapter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.kit-copy { max-width: 40ch; }
.kit-season { font-size: 14px; margin-bottom: 16px; }
.kit-copy h2 { font-size: clamp(34px,4.5vw,64px); color: var(--yellow); }
.kit-copy > p:not(.kit-season) { margin-top: 28px; font-size: 18px; line-height: 1.8; }
.kit-copy .text-link { color: var(--yellow); margin-top: 24px; }
.kit-plate { width: min(100%,420px); justify-self: center; }
.kit-plate .photo-link { aspect-ratio: 510/760; background: var(--mat-kit); }
.kit-plate img { width: 100%; height: 100%; object-fit: contain; }
.kit-chapter--away { background: var(--paper); color: var(--ink); }
.kit-chapter--away .kit-copy { order: 2; }
.kit-chapter--away .kit-plate { order: 1; }
.kit-chapter--away .kit-copy h2, .kit-chapter--away .text-link { color: var(--purple); }
.kit-chapter--keeper { --keeper: #174C3C; background: var(--keeper); color: var(--white); }
.kit-chapter--keeper .photo-link { aspect-ratio: 1027/1531; }
.kit-collection :focus-visible { outline-color: var(--yellow); }
.kit-chapter--away :focus-visible { outline-color: var(--purple); }
/* A compact directory with a native, optional club profile. */
.foot { padding-top: 40px; }
.foot-inner { grid-template-columns: 180px 1fr; gap: 48px; }
.crest-frame--foot .crest-clip { width: 60px; }
.foot-motto { font-size: 36px; }
.foot-data summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; }
.foot-data summary::-webkit-details-marker { display: none; }
.foot-data summary::after { content: '+'; font-size: 25px; color: var(--yellow); }
.foot-data[open] summary::after { content: '−'; }
.foot-data h2 { font-size: 22px; }
.foot-data dl { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 28px; margin-top: 18px; }
.foot-data dt { font-size: 12px; margin-bottom: 4px; }
.foot-data dd { font-size: 14px; }
.footer-map { margin-top: 28px; }
.foot-bottom { margin-top: 20px; padding-top: 18px; }
.next-destination { padding-block: 28px; }
.next-destination a { font-size: clamp(28px,3.5vw,48px); }
/* The modal uses the browser's keyboard containment and Escape behaviour. */
.photo-dialog { width: min(calc(100% - 32px),1200px); max-height: calc(100svh - 32px); margin: auto; padding: 0; border: 1px solid var(--rule-dark); background: var(--black); color: var(--white); overflow: auto; }
.photo-dialog::backdrop { background: rgba(0,0,0,.9); }
.photo-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 20px; }
.photo-dialog-header h2 { font-size: 22px; line-height: 1.3; text-transform: none; }
.photo-dialog button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; min-width: 44px; padding: 8px 12px; background: var(--yellow); color: var(--black); border: 0; cursor: pointer; }
.photo-dialog button > span:last-child { font-size: 24px; }
.photo-dialog img { width: 100%; height: auto; max-height: calc(100svh - 120px); object-fit: contain; background: var(--black); }
.photo-dialog :focus-visible { outline-color: var(--yellow); }
@media (max-width: 1180px) {
  .js .nav-burger { display: flex; }
  .kit-chapter-inner { gap: 48px; }
  .club-origin > .band-inner { gap: 40px; }
  .club-origin-emblem { min-height: 340px; padding: 32px; }
}
@media (max-width: 900px) {
  .match-centre { gap: 20px; }
  .match-result, .match-next { padding: 24px; }
  .club-origin > .band-inner { grid-template-columns: 1.2fr 1fr; gap: 28px; }
  .club-emblem .crest-clip { width: 105px; }
  .club-origin-emblem { min-height: 300px; }
  .directiva .cromo-grid { gap: 24px; }
  .directiva .cromo figcaption strong { font-size: 24px; }
  .place-story { gap: 32px; }
  .kit-chapter-inner { gap: 36px; }
  .foot-inner { grid-template-columns: 140px 1fr; gap: 32px; }
  .foot-data dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .nav-menu-text { display: none; }
  .nav-burger { padding: 8px; }
  .home-hero-copy { padding-block: 32px 28px; }
  .home-hero h1 { max-width: 14ch; }
  .home-hero-copy > .text-link { display: inline-flex; margin-right: 20px; }
  .hero-season-link { margin-top: 4px; font-size: 13px; }
  .home-squad { padding-bottom: 40px; }
  .album-hint { display: block; font-size: 13px; margin-top: 14px; }
  .featured-cromos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 6px; max-width: none; padding: 6px 6px 12px; margin-top: 24px; }
  .featured-cromos > li { min-width: 0; scroll-snap-align: start; }
  .player-tile:focus-visible { outline-offset: 2px; }
  .match-centre { grid-template-columns: minmax(0,1fr); }
  .match-label { font-size: 12px; }
  .scoreboard { gap: 16px; }
  .scoreboard > div > span { font-size: 16px; }
  .scoreboard strong { font-size: 46px; }
  .match-next h2 { margin-top: 22px; }
  .season-panel summary { font-size: 26px; }
  .standings-table th, .standings-table td { padding: 12px 4px; font-size: 13px; }
  .standings-table thead th { font-size: 11px; }
  .standings-table th:first-child { width: 20px; }
  .season-index { gap: 8px 24px; }
  .club-origin > .band-inner { grid-template-columns: minmax(0,1fr); }
  .club-origin-copy .origin-route { font-size: 36px; }
  .club-origin-emblem { min-height: 0; flex-direction: row; gap: 32px; padding: 28px; }
  .club-emblem .crest-clip { width: 78px; }
  .club-origin-emblem > p { margin-top: 0; font-size: 44px; }
  .directiva .cromo-grid { grid-template-columns: minmax(0,1fr); gap: 40px; max-width: 420px; margin-inline: auto; }
  .directiva .cromo figcaption strong { font-size: 30px; }
  .directiva .cromo figcaption span { font-size: 16px; }
  .mascot-feature { padding-block: 44px; }
  .mascot-feature-inner { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .mascot-feature .mascot-intro { font-size: 18px; }
  .derby-duel { gap: 16px; font-size: 38px; }
  .derby-duel .derby-versus { font-size: 17px; }
  .place-heading { flex-direction: column; align-items: start; gap: 20px; padding-bottom: 28px; }
  .place-heading h1 { font-size: 48px; max-width: 14ch; }
  .place-story { grid-template-columns: minmax(0,1fr); gap: 24px; margin-block: 32px 44px; }
  .place-story p { font-size: 17px; }
  .stadium-aerial { margin-bottom: 44px; }
  .stadium-aerial figcaption { flex-direction: column; gap: 16px; }
  .training-feature { padding-block: 44px; }
  .training-feature header { flex-direction: column; align-items: start; gap: 18px; }
  .training-description { font-size: 17px; }
  .photo-expand { bottom: 10px; right: 10px; padding: 8px 12px; font-size: 12px; }
  .collection-heading > p { font-size: 20px; }
  .collection-index { gap: 0 20px; }
  .collection-index a { font-size: 14px; }
  .kit-chapter { padding-block: 36px 44px; }
  .kit-chapter-inner { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .kit-chapter--away .kit-copy, .kit-chapter--away .kit-plate { order: initial; }
  .kit-copy h2 { font-size: 42px; }
  .kit-copy > p:not(.kit-season) { font-size: 17px; margin-top: 20px; }
  .kit-copy .text-link { margin-top: 18px; }
  .kit-plate { width: min(100%,360px); }
  .foot-inner { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .foot-data dd { margin-bottom: 0; }
  .foot-data dl { gap: 20px; }
  .foot-brand { gap: 20px; }
  .foot-bottom { gap: 18px; }
  .footer-map { gap: 8px; }
  .next-destination a { padding-block: 12px; }
  .photo-dialog { width: calc(100% - 20px); max-height: calc(100svh - 20px); }
  .photo-dialog-header { padding: 10px 12px; gap: 14px; }
  .photo-dialog-header h2 { font-size: 18px; }
  .photo-dialog button { padding: 8px 10px; font-size: 13px; }
}

/* Resilient anchors, semantic summaries and print delivery. */
.match-result h2.match-label { font-family: Bahnschrift,'Segoe UI',system-ui,sans-serif; font-size: 13px; line-height: 1.6; font-weight: 400; text-transform: none; }
.season-panel summary h2 { display: inline; font: inherit; text-transform: none; }
.season-fixtures tr[id] { scroll-margin-top: 20px; }
html:not(.js) { scroll-padding-top: 24px; }
html:not(.js) .site-header, html:not(.js) .squad-position-nav { position: static; }
html:not(.js) .lang-switch { display: none; }
html:not(.js) .squad-line, html:not(.js) .page-plantilla .cromo95[id], html:not(.js) .season-fixtures tr[id], html:not(.js) .season-panel, html:not(.js) .kit-chapter { scroll-margin-top: 24px; }
@media print {
  html, body { background: white !important; }
  body * { color: black !important; text-shadow: none !important; box-shadow: none !important; }
  body, main, section, article, aside, header, footer, .club-origin-emblem, .home-hero-copy, .home-hero-photo, .match-next, .cult-card { background: transparent !important; }
  .site-header, .breadcrumb, .squad-position-nav, .section-nav, .season-index, .collection-index, .footer-map, .foot-bottom, .next-destination, .photo-expand, .photo-dialog, .skip-link, .derby-overlay, .derby-bat { display: none !important; }
  .featured-cromos { grid-auto-flow: row; grid-template-columns: repeat(3,minmax(0,1fr)); overflow: visible; }
  .photo-link, .cromo95, .kit-plate { break-inside: avoid; }
  .home-hero { display: block; }
  .home-hero-photo { min-height: 260px; }
  .season-table th, .season-table td, .match-result { border-color: #777 !important; }
  .foot-data summary::after { content: none; }
}

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