/*
Theme Name: Handball Pride Local
Description: Responsive tournament theme for the Euro Handball Pride Championship.
Version: 2.0.0
Text Domain: handballpride-local
*/

:root {
  --ink: #111216;
  --paper: #f5f4ef;
  --white: #ffffff;
  --muted: #686971;
  --line: #d8d7d0;
  --cyan: #18d7d1;
  --pink: #f15ca8;
  --yellow: #ffd33d;
  --display: "Syne", sans-serif;
  --body: "DM Sans", sans-serif;
  --header-height: 5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 1rem; line-height: 1.65; overflow-wrap: break-word; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); line-height: 0.98; letter-spacing: 0; }
p { margin-top: 0; }

.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 1000; top: 0.75rem; left: 0.75rem; padding: 0.75rem 1rem; color: var(--white); background: var(--ink); }
.shell { width: min(100% - 2rem, 80rem); margin-inline: auto; }
.shell--content { width: min(100% - 2rem, 48rem); }

.site-header { position: sticky; z-index: 100; top: 0; height: var(--header-height); border-bottom: 1px solid rgba(17,18,22,.14); background: rgba(245,244,239,.94); backdrop-filter: blur(16px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; width: min(100% - 2rem, 86rem); height: 100%; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand__logo { width: 4.2rem; height: 4.2rem; object-fit: contain; }
.brand__fallback { max-width: 18rem; font-family: var(--display); font-size: .86rem; font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.primary-nav, .nav-list { display: flex; align-items: center; }
.nav-list { gap: 1.5rem; padding: 0; margin: 0; list-style: none; }
.nav-list li { position: relative; }
.nav-list a { display: block; padding-block: 1rem; font-size: .82rem; font-weight: 700; text-decoration: none; }
.nav-list > li:nth-child(4), .nav-list > li:nth-child(5) { display: none; }
.sub-menu { position: absolute; top: calc(100% - .25rem); left: -1rem; min-width: 15rem; padding: .6rem 1rem; margin: 0; visibility: hidden; list-style: none; background: var(--white); border: 1px solid var(--line); box-shadow: 0 1rem 2rem rgba(17,18,22,.1); opacity: 0; transform: translateY(.5rem); transition: opacity 160ms ease, transform 160ms ease, visibility 160ms; }
.menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.sub-menu a { padding: .55rem 0; }
.nav-cta, .button { display: inline-flex; gap: 1.25rem; align-items: center; justify-content: center; min-height: 2.8rem; padding: .7rem 1rem; font-size: .82rem; font-weight: 800; text-decoration: none; border: 1px solid var(--ink); border-radius: 4px; }
.nav-cta { margin-left: 1.5rem; color: var(--white); background: var(--ink); }
.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 4px; }
.nav-toggle__icon { display: grid; gap: .35rem; width: 1.2rem; margin: auto; }
.nav-toggle__icon span { height: 2px; background: currentColor; transition: transform 160ms ease; }

.event-hero { overflow: hidden; color: var(--white); background-color: var(--ink); background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 4rem 4rem; }
.event-hero__inner { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(20rem,.9fr); align-items: center; min-height: calc(82svh - var(--header-height)); padding-block: 3rem; }
.eyebrow { display: flex; gap: .65rem; align-items: center; margin-bottom: 1.3rem; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.eyebrow::before { width: 1.8rem; height: .35rem; content: ""; background: var(--pink); }
.eyebrow--link { width: fit-content; }
.event-hero h1 { max-width: 100%; font-size: clamp(4.5rem,8.2vw,8rem); overflow-wrap: normal; text-transform: uppercase; }
.event-hero__lead { max-width: 34rem; margin: 1.8rem 0 2.2rem; color: #d8d7db; font-size: clamp(1.1rem,2vw,1.4rem); }
.button-row { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.button--primary { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.text-link { display: inline-flex; gap: .7rem; align-items: center; font-weight: 800; text-decoration: none; }
.text-link span, .button span { transition: transform 160ms ease; }
.text-link:hover span, .button:hover span { transform: translateX(.25rem); }
.event-hero__copy, .event-hero__visual { min-width: 0; }
.event-hero__visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.event-logo { position: relative; z-index: 2; width: min(68%,30rem); filter: drop-shadow(0 1.5rem 2.5rem rgba(0,0,0,.28)); }
.event-year { position: relative; z-index: 2; font-family: var(--display); font-size: 10rem; font-weight: 800; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.orbit--one { width: 86%; height: 86%; border-color: var(--cyan); }
.orbit--two { width: 68%; height: 68%; border-color: var(--pink); transform: translate(12%,-8%); }
.event-ticker { display: flex; gap: 2.5rem; align-items: center; justify-content: center; min-height: 4.4rem; padding-inline: 1rem; overflow: hidden; color: var(--ink); background: var(--cyan); font-family: var(--display); font-size: 1rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.event-ticker i { width: .6rem; height: .6rem; flex: 0 0 auto; background: var(--ink); border-radius: 50%; }

.section { padding-block: clamp(4.5rem,8vw,8rem); }
.section-heading { display: flex; gap: 2rem; align-items: end; justify-content: space-between; margin-bottom: 2.5rem; }
.section-heading h2 { max-width: 14ch; font-size: clamp(2.6rem,5.5vw,5.4rem); }
.news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.news-card { display: flex; min-width: 0; min-height: 31rem; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.news-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--ink); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.news-card:hover .news-card__media img { transform: scale(1.035); }
.news-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--ink); background: repeating-linear-gradient(135deg,var(--cyan) 0 18px,var(--pink) 18px 36px,var(--yellow) 36px 54px); }
.news-card__placeholder span { padding: .5rem .75rem; font-family: var(--display); font-size: 1.6rem; font-weight: 800; background: var(--white); }
.news-card__body { position: relative; display: flex; min-height: 14rem; flex: 1; flex-direction: column; padding: 1.35rem; }
.news-card__meta, .story-meta { display: flex; gap: .6rem; color: var(--muted); font-size: .73rem; font-weight: 700; text-transform: uppercase; }
.news-card__meta span + span::before, .story-meta span + span::before { margin-right: .6rem; content: "/"; }
.news-card h3 { margin-top: 1rem; font-size: clamp(1.35rem,2vw,1.8rem); line-height: 1.08; }
.news-card h3 a { text-decoration: none; }
.card-link { display: grid; width: 2.5rem; height: 2.5rem; margin-top: auto; place-items: center; align-self: flex-end; color: var(--white); background: var(--ink); text-decoration: none; border-radius: 50%; }

.section--journey { color: var(--white); background: var(--ink); }
.section-heading--light .eyebrow::before { background: var(--cyan); }
.host-timeline { border-top: 1px solid #44454a; }
.host-stop { display: grid; grid-template-columns: 8rem 1fr auto; gap: 2rem; align-items: center; min-height: 8rem; padding: 1.25rem; color: var(--white); border-bottom: 1px solid #44454a; text-decoration: none; transition: color 160ms ease, background-color 160ms ease; }
.host-stop strong { font-family: var(--display); font-size: clamp(1.8rem,4vw,3.8rem); line-height: 1; }
.host-stop__state { color: #a7a7ad; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.host-stop__arrow { font-size: 1.8rem; }
.host-stop:hover, .host-stop--active { color: var(--ink); background: var(--yellow); }
.host-stop:hover .host-stop__state, .host-stop--active .host-stop__state { color: var(--ink); }

.page-hero, .story-header { padding-top: clamp(4.5rem,10vw,9rem); padding-bottom: clamp(3rem,6vw,6rem); }
.page-hero--compact { padding-bottom: 0; }
.page-hero h1, .story-header h1 { max-width: 14ch; font-size: clamp(3.2rem,8vw,7.5rem); text-transform: uppercase; }
.entry-content { padding-bottom: clamp(5rem,9vw,9rem); font-size: clamp(1.03rem,1.5vw,1.16rem); }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 2.5rem 0 1rem; line-height: 1.1; }
.entry-content h2 { font-size: clamp(2rem,4vw,3.4rem); }
.entry-content h3 { font-size: clamp(1.5rem,3vw,2.2rem); }
.entry-content a { color: #b42567; }
.entry-content figure { margin: 2.5rem 0; }
.entry-content iframe { max-width: 100%; }
.entry-content [data-colibri-id], .entry-content .h-section, .entry-content .h-row, .entry-content .h-column, .entry-content .h-section-grid-container, .entry-content .h-row-container, .entry-content .h-column__inner { display: block !important; width: auto !important; max-width: 100% !important; min-height: 0 !important; padding: 0 !important; margin: 0 0 1.25rem !important; color: inherit !important; background: transparent !important; transform: none !important; }
.entry-content .h-column:empty, .entry-content .h-ui-empty-state-container:empty { display: none !important; }
.story-header .story-meta { margin-bottom: 1.5rem; }
.story-header .post-categories { display: flex; gap: .5rem; padding: 0; margin: 2rem 0 0; list-style: none; }
.story-header .post-categories a { display: inline-block; padding: .35rem .7rem; font-size: .72rem; font-weight: 800; text-decoration: none; text-transform: uppercase; border: 1px solid var(--ink); border-radius: 4px; }
.story-image { max-height: 46rem; margin-bottom: 4rem; overflow: hidden; }
.story-image img { width: 100%; max-height: 46rem; object-fit: cover; }
.pagination { margin-top: 3rem; }
.nav-links { display: flex; gap: .5rem; }
.page-numbers { display: grid; min-width: 2.6rem; min-height: 2.6rem; place-items: center; border: 1px solid var(--line); text-decoration: none; }
.page-numbers.current { color: var(--white); background: var(--ink); }
.section--page-news { padding-top: 0; }
.news-grid--sparse { grid-template-columns: repeat(auto-fit,minmax(min(100%,20rem),24rem)); }
.empty-state { max-width: 40rem; padding: 2rem; background: var(--white); border-left: .45rem solid var(--pink); }

.cologne-intro { color: var(--ink); background: var(--yellow); }
.cologne-intro__inner { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(18rem,.85fr); gap: 3rem; align-items: center; min-height: calc(82svh - var(--header-height)); padding-block: 4rem; }
.cologne-intro__inner > * { min-width: 0; }
.cologne-intro h1 { max-width: 10ch; font-size: clamp(4.2rem,7vw,6.8rem); overflow-wrap: normal; text-transform: uppercase; }
.cologne-intro__lead { max-width: 42rem; margin: 1.8rem 0 2rem; font-size: clamp(1.1rem,2vw,1.45rem); }
.cologne-intro__logo { display: grid; place-items: center; }
.cologne-intro__logo img { width: min(100%,26rem); }
.button--dark { color: var(--white); background: var(--ink); }

.site-footer { padding: clamp(3rem,7vw,6rem) max(1rem,calc((100% - 80rem)/2)); color: var(--white); background: #050607; }
.site-footer__top, .site-footer__bottom { display: flex; gap: 2rem; justify-content: space-between; }
.footer-kicker { color: var(--cyan); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.footer-title { margin: 0; font-family: var(--display); font-size: clamp(2.1rem,5vw,4.6rem); font-weight: 800; line-height: .95; text-transform: uppercase; }
.footer-next { display: flex; flex-direction: column; align-items: flex-end; justify-content: end; }
.footer-next span { color: #a7a7ad; font-size: .75rem; text-transform: uppercase; }
.footer-next strong { color: var(--yellow); font-family: var(--display); font-size: 1.6rem; }
.site-footer__bottom { padding-top: 1.5rem; margin-top: 4rem; color: #a7a7ad; font-size: .8rem; border-top: 1px solid #303136; }
.site-footer__bottom p { margin: 0; }

@media (max-width: 68rem) {
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; inset: var(--header-height) 0 auto; display: block; max-height: calc(100svh - var(--header-height)); padding: 1rem; overflow-y: auto; visibility: hidden; background: var(--paper); border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(-.75rem); transition: opacity 160ms ease, transform 160ms ease, visibility 160ms; }
  .site-header .primary-nav.is-open { visibility: visible !important; opacity: 1 !important; transform: translateY(0) !important; }
  html body .site-header .site-header__inner .nav-toggle[aria-expanded="true"] + .primary-nav { visibility: visible !important; opacity: 1 !important; transform: translateY(0) !important; }
  .nav-list { display: block; }
  .nav-list > li:nth-child(4), .nav-list > li:nth-child(5) { display: block; }
  .nav-list a { padding: .8rem 0; font-family: var(--display); font-size: 1.35rem; border-bottom: 1px solid var(--line); }
  .sub-menu { position: static; display: none; min-width: 0; padding: 0 0 0 1rem; visibility: visible; background: transparent; border: 0; box-shadow: none; opacity: 1; transform: none; }
  .menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu { display: block; }
  .sub-menu a { font-family: var(--body); font-size: .95rem; }
  .nav-cta { width: 100%; margin: 1rem 0 0; }
  .event-hero__inner { grid-template-columns: 1fr 20rem; }
}

@media (max-width: 48rem) {
  :root { --header-height: 4.5rem; }
  .brand__logo { width: 3.7rem; height: 3.7rem; }
  .event-hero__inner { grid-template-columns: minmax(0,1fr); min-height: auto; padding-top: 2.5rem; padding-bottom: .5rem; }
  .event-hero h1 { max-width: 100%; font-size: clamp(3rem,14vw,4.25rem); }
  .event-hero__lead { margin: 1rem 0 1.25rem; }
  .event-hero__visual { width: min(58vw,13rem); margin: -.5rem auto 0; }
  .event-ticker { justify-content: flex-start; gap: 1.2rem; }
  .section-heading, .site-footer__top, .site-footer__bottom { align-items: flex-start; flex-direction: column; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { min-height: 0; }
  .host-stop { grid-template-columns: 1fr auto; gap: .5rem 1rem; }
  .host-stop__state { grid-column: 1/-1; }
  .footer-next { align-items: flex-start; }
  .footer-title { max-width: 100%; font-size: clamp(1.7rem,7.5vw,2.4rem); overflow-wrap: anywhere; }
  .cologne-intro__inner { grid-template-columns: minmax(0,1fr); gap: 1.5rem; min-height: auto; padding-block: 3rem; }
  .cologne-intro h1 { font-size: clamp(3.2rem,15vw,5rem); }
  .cologne-intro__logo img { width: min(58vw,13rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}