/*
Theme Name: DIVDEV
Theme URI: https://divdev.co
Author: DIVDEV
Description: Minimal custom theme for התאחדות הפטאנק בישראל
Version: 1.1.0
Text Domain: divdev
*/

/* ═══════════════════════════════════════════════════════════════════════════
   Design Tokens
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Brand */
  --brand-primary:   #023373;
  --brand-secondary: #1666D9;
  --brand-accent:    #94BDF2;
  --brand-gradient:  linear-gradient(135deg, #023373, #1666D9);

  /* Page backgrounds */
  --page-bg:     #FCFCFC;
  --page-bg-alt: #F2F2F2;

  /* Text */
  --page-fg:        #1A1A1A;
  --page-fg-strong: #023373;
  --page-fg-muted:  rgba(2, 51, 115, 0.65);
  --page-fg-subtle: rgba(2, 51, 115, 0.45);
  --page-fg-faint:  rgba(2, 51, 115, 0.25);

  /* Glass */
  --glass-bg:        rgba(2, 51, 115, 0.05);
  --glass-border:    rgba(2, 51, 115, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.70);

  /* Lines / borders */
  --line:        rgba(2, 51, 115, 0.10);
  --line-strong: rgba(2, 51, 115, 0.20);

  /* Shadows (navy-tinted) */
  --shadow-card:   0 4px 24px -6px  rgba(2, 51, 115, 0.14);
  --shadow-strong: 0 12px 40px -10px rgba(2, 51, 115, 0.22);

  /* Radius */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* Motion */
  --ease:     cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 140ms;
  --dur:      220ms;
  --dur-slow: 420ms;

  /* Fonts */
  --font-display: "Secular One", "Heebo", system-ui, sans-serif;
  --font-sans:    "Heebo", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --container:     1280px;
  --container-pad: clamp(18px, 3.5vw, 44px);
  --section-pad:   clamp(60px, 10vw, 112px);
  --nav-h:         68px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Reset
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
  direction: rtl;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  color: var(--brand-secondary);
  transition: color var(--dur-fast);
}
a:hover { color: var(--brand-primary); }

/* ═══════════════════════════════════════════════════════════════════════════
   Layout
   ═══════════════════════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.site-main {
  padding-top: var(--nav-h);
  flex: 1;
}

/* Front page + inner pages with a dark hero: hero sits behind the nav */
body.home .site-main,
body.pq-dark-top .site-main { padding-top: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   Typography
   ═══════════════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--page-fg-strong);
  line-height: 1.1;
  margin-block: 0 0.5em;
}

h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(31px, 4vw, 51px); }
h3 { font-size: clamp(22px, 2.4vw, 31px); }

p { margin-block: 0 1em; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Header / Nav
   ═══════════════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--brand-primary);
  transition: background 450ms ease, box-shadow 450ms ease, backdrop-filter 450ms ease;
}

/* WordPress admin bar pushes fixed header down */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Transparent on front page + dark-hero inner pages (hero peeks behind) */
body.home .site-header:not(.is-scrolled),
body.pq-dark-top .site-header:not(.is-scrolled) {
  background: transparent;
}

/* Dark hero clearance for the fixed header — unified top spacing across inner heroes */
body.pq-dark-top .pq-page-header,
body.pq-dark-top .pq-assoc-hero,
body.pq-dark-top .pq-gal2-hero,
body.pq-dark-top .pq-docs-hero {
  padding-top: calc(var(--nav-h) + clamp(40px, 5vw, 60px));
}

/* Glass morphism when scrolled */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 rgba(2, 51, 115, 0.10), 0 2px 20px rgba(2, 51, 115, 0.05);
}

.site-header .container { height: 100%; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--container-pad);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  flex-shrink: 0;
  transition: color var(--dur-fast);
}
.site-logo img,
.site-logo__img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.site-header.is-scrolled .site-logo { color: var(--brand-primary); }

/* Nav links */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  padding: 0.4em 0.75em;
  border-radius: var(--r-sm);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.site-nav a:hover,
.site-nav a.current-menu-item {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Scrolled nav — links turn navy */
.site-header.is-scrolled .site-nav a {
  color: var(--brand-primary);
}
.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a.current-menu-item {
  color: var(--brand-primary);
  background: var(--glass-bg);
}

/* Dropdown nav */
.nav-item--has-dropdown { position: relative; }
.nav-dropdown-toggle,
.site-nav .nav-dropdown-toggle {
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-chevron {
  opacity: 0.6;
  transition: transform 180ms var(--ease, cubic-bezier(.2,.7,.2,1));
  flex-shrink: 0;
}
.nav-item--has-dropdown:hover .nav-chevron,
.nav-item--has-dropdown.is-open .nav-chevron {
  transform: rotate(180deg);
}
.nav-dropdown {
  display: block !important; /* beats .site-nav ul specificity (0,1,1 vs 0,1,0) */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden; /* clip item hover backgrounds to rounded corners */
  box-shadow: 0 8px 32px rgba(2,51,115,0.18);
  padding: 10px 0 6px; /* top padding bridges the gap */
  list-style: none;
  margin: 0;
  z-index: 300;
  transition: opacity 0.15s, visibility 0.15s;
}
.nav-item--has-dropdown:hover .nav-dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.nav-dropdown li { display: block; width: 100%; }
.nav-dropdown a {
  display: block;
  width: 100%;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-primary);
  text-align: right;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background 0.12s, font-weight 0s;
}
.nav-dropdown a:hover { background: var(--page-bg-alt); color: var(--brand-primary); }
.site-header.is-scrolled .nav-dropdown a:hover { color: var(--brand-primary); }

/* Mobile: show dropdown inline when parent is toggled */
@media (max-width: 900px) {
  .nav-dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255,255,255,0.08);
    border-radius: var(--r-sm);
    padding: 4px 0 4px 16px;
    margin-top: 4px;
    transition: none;
  }
  .nav-item--has-dropdown:hover .nav-dropdown { display: none; }
  .nav-item--has-dropdown.is-open .nav-dropdown { display: block; }
  .nav-dropdown a { color: rgba(255,255,255,0.9); font-size: 15px; padding: 8px 14px; }
  .nav-dropdown a:hover { background: rgba(255,255,255,0.1); }
  .site-header.is-scrolled .nav-dropdown a { color: var(--brand-primary); }
}

/* Nav CTA pill */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  flex-shrink: 0;
  transition: background var(--dur), transform var(--dur-fast);
}
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}
.site-header.is-scrolled .nav-cta {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.site-header.is-scrolled .nav-cta:hover {
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
  transition: background var(--dur-fast);
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.site-header.is-scrolled .nav-toggle { color: var(--brand-primary); }

/* ═══════════════════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--brand-primary);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(56px, 8vw, 96px) 84px;
  margin-top: 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: clamp(40px, 5vw, 56px);
}

/* Brand column */
.footer-brand {}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-logo-wrap img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  max-width: 180px;
}

/* Footer link columns */
.footer-col__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.footer-col a:hover { color: #fff; }

/* Footer bottom bar */
.site-footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin-bottom: 28px;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-legal {
  display: flex;
  gap: 16px;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 13px;
}
.footer-legal a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background var(--dur), color var(--dur), transform var(--dur-fast), box-shadow var(--dur);
}

.btn--primary {
  background: var(--brand-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-secondary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn--outline {
  background: transparent;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.btn--outline:hover {
  background: var(--brand-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Inline CTA link (underline style, used in cards) */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--brand-accent);
  padding-bottom: 2px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.cta-link:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.cta-text-muted {
  font-size: 14px;
  color: var(--page-fg-subtle);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Badges / Pills
   ═══════════════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge--open {
  background: #e8f4e8;
  color: #1a6b1a;
  border-color: rgba(26, 107, 26, 0.25);
}
.badge--soon {
  background: #eef4fb;
  color: var(--brand-secondary);
  border-color: rgba(22, 102, 217, 0.25);
}
.badge--closed,
.badge--past {
  background: #f5f5f5;
  color: #666;
  border-color: rgba(0, 0, 0, 0.10);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Sections
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-section { padding-block: var(--section-pad); }
.pq-section--alt { background: var(--page-bg-alt); }

.pq-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.pq-section__header h2 { margin: 0; }

.pq-section__more {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-secondary);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pq-section__more:hover { color: var(--brand-primary); }

/* ═══════════════════════════════════════════════════════════════════════════
   Cards — shared base
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur), transform var(--dur);
}
.pq-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
}

.pq-card__body {
  padding: 24px 28px;
  flex: 1;
}

.pq-card__footer {
  padding: 16px 28px;
  border-top: 1px solid var(--line);
}

.pq-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--brand-primary);
  margin-block: 12px 14px;
  line-height: 1.2;
}
.pq-card__title a {
  color: inherit;
  text-decoration: none;
}
.pq-card__title a:hover { color: var(--brand-secondary); }

/* Meta rows (date, location) */
.pq-card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--page-fg-muted);
  margin-bottom: 8px;
}
.pq-card__meta svg {
  flex-shrink: 0;
  color: var(--brand-accent);
}

.pq-card__date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--page-fg-subtle);
  margin-bottom: 4px;
}

.pq-card__excerpt {
  font-size: 14px;
  color: var(--page-fg-muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tags row */
.pq-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pq-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--glass-bg);
  color: var(--page-fg-muted);
  border: 1px solid var(--glass-border);
}
.pq-tag--primary {
  background: rgba(2, 51, 115, 0.06);
  color: var(--brand-primary);
  border-color: rgba(2, 51, 115, 0.16);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Card — Post (with image)
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-post-card .pq-card__image {
  display: block;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.pq-post-card .pq-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--dur-slow);
}
.pq-post-card:hover .pq-card__img { transform: scale(1.04); }

/* ═══════════════════════════════════════════════════════════════════════════
   Card — Competition DL + Podium
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-card__dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
  font-size: 13px;
  margin: 10px 0;
}
.pq-card__dl dt {
  color: var(--page-fg-subtle);
  font-weight: 600;
  white-space: nowrap;
}
.pq-card__dl dd { margin: 0; color: var(--page-fg-muted); }

.pq-podium {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.pq-podium__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 5px;
  border-bottom: 1px solid var(--line);
}
.pq-podium__item:last-child { border-bottom: none; }
.pq-podium__medal { font-size: 1rem; flex-shrink: 0; }
.pq-podium__names { font-weight: 700; flex: 1; color: var(--brand-primary); }
.pq-podium__club { color: var(--page-fg-subtle); font-size: 12px; }

/* ═══════════════════════════════════════════════════════════════════════════
   Homepage — Grids / Scroll rows
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.pq-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Desktop: 3-up grid. Mobile: horizontal scroll snap */
.pq-scroll-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Gutenberg block overrides
   ═══════════════════════════════════════════════════════════════════════════ */

/* Pill buttons inside Gutenberg blocks */
.wp-block-button__link {
  border-radius: var(--r-pill) !important;
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  padding: 11px 26px !important;
  font-size: 15px !important;
  transition: transform var(--dur-fast), box-shadow var(--dur) !important;
}
.wp-block-button__link:hover {
  transform: translateY(-2px) !important;
}

/* Hero cover: full-ish height on front page */
body.home .wp-block-cover {
  min-height: clamp(480px, 70vh, 780px) !important;
}

/* Block editor — keep Gutenberg content constrained
   ═══════════════════════════════════════════════════════════════════════════ */
.entry-content .wp-block-group:not(.alignfull):not(.alignwide) {
  max-width: var(--container);
  margin-inline: auto;
}
.wp-block-cover.alignfull { margin-inline: 0; width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   Competition Spotlight
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.pq-spotlight__info { order: 1; }
.pq-spotlight__image { order: 2; }

.pq-spotlight__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--brand-primary);
}
.pq-spotlight__title a { color: inherit; text-decoration: none; }
.pq-spotlight__title a:hover { color: var(--brand-secondary); }

.pq-spotlight__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--page-fg-muted);
  font-size: 14px;
}
.pq-spotlight__meta span { display: flex; align-items: center; gap: 7px; }
.pq-meta-sep { color: var(--page-fg-subtle); }

.pq-podium--lg { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pq-podium--lg .pq-podium__item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 14px 18px;
}
.pq-podium--lg .pq-podium__medal { font-size: 26px; line-height: 1; flex-shrink: 0; }
.pq-podium__text { display: flex; flex-direction: column; gap: 2px; }
.pq-podium--lg .pq-podium__names { font-weight: 700; font-size: 16px; color: var(--brand-primary); }
.pq-podium--lg .pq-podium__club { font-size: 13px; color: var(--page-fg-muted); }

.pq-spotlight__image { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--glass-bg); }
.pq-spotlight__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ═══════════════════════════════════════════════════════════════════════════
   News Card / Updates (עדכונים)
   ═══════════════════════════════════════════════════════════════════════════ */

/* White card wrapping all rows */
.pq-news-card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* Each update row */
.pq-news-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background var(--dur-fast);
}
.pq-news-row:last-child { border-bottom: none; }
.pq-news-row:hover { background: var(--glass-bg); }

/* Date badge: monospace, muted bg, brand-secondary text */
.pq-news-row__date {
  flex-shrink: 0;
  min-width: 72px;
  text-align: center;
  background: var(--page-bg-alt);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  align-self: center;
}

.pq-news-row__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--page-fg);
  margin: 0;
  padding-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .pq-scroll-row       { grid-template-columns: repeat(2, 1fr); }
  .pq-grid--3          { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid   { grid-template-columns: 1fr 1fr; }
  .pq-spotlight        { gap: 32px; }
}

@media (max-width: 768px) {
  .pq-gow {
    grid-template-columns: 1fr;
  }
  /* Image moves above text on mobile */
  .pq-gow__image { order: -1; aspect-ratio: 16/9; }

  .pq-news-row { padding: 14px 18px; gap: 14px; }
  .pq-news-row__date { min-width: 58px; font-size: 11px; }

  .pq-scroll-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--container-pad));
    padding-inline: var(--container-pad);
  }
  .pq-scroll-row > * {
    flex: 0 0 min(300px, 80vw);
    scroll-snap-align: start;
  }

  .pq-grid--3 { grid-template-columns: 1fr; }

  .pq-spotlight {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pq-spotlight__image { order: -1; aspect-ratio: 16/9; }


  .site-nav { display: none; }
  .site-nav.is-open {
    display: block;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--brand-primary);
    overflow-y: auto;
    padding: 16px var(--container-pad);
    z-index: 49;
  }
  .site-nav.is-open ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav.is-open a {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    font-size: 17px;
  }
  .nav-toggle { display: flex; }

  .site-footer__grid  { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer-brand       { grid-column: span 2; }

  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .footer-brand      { grid-column: span 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  max-height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pq-hero picture { display: contents; }
.pq-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Gradient from right (RTL start = navy) to left (transparent) */
.pq-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(2, 51, 115, 0.82) 0%,
    rgba(2, 51, 115, 0.55) 42%,
    rgba(2, 30, 80, 0.20) 70%,
    transparent 100%
  );
}

.pq-hero__fade-bottom {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--page-bg));
}

.pq-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Inner block anchored to right side — margin-left:auto pushes right in RTL */
.pq-hero__inner {
  max-width: 560px;
  margin-left: auto;
  margin-right: 0;
}

.pq-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(2, 51, 115, 0.40);
}

.pq-hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 440px;
}

.pq-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pq-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur);
}

.pq-hero__cta--primary {
  background: #ffffff;
  color: var(--brand-primary);
}
.pq-hero__cta--primary:hover {
  color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 51, 115, 0.25);
}

.pq-hero__cta--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.40);
  backdrop-filter: blur(8px);
}
.pq-hero__cta--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Scroll indicator */
.pq-hero__scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: pq-bounce 2s ease-in-out infinite;
}

.pq-hero__scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.60);
}

@keyframes pq-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Game of Week
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-gow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.pq-gow__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--brand-primary);
  margin: 0 0 8px;
  line-height: 1.2;
}
.pq-gow__title a { color: inherit; text-decoration: none; }
.pq-gow__title a:hover { color: var(--brand-secondary); }

.pq-gow__date {
  font-size: 14px;
  color: var(--page-fg-muted);
  margin: 0 0 20px;
}

.pq-gow__subtitle {
  font-size: 15px;
  font-weight: 500;
  color: var(--page-fg-muted);
  margin: 0 0 28px;
}

.pq-gow__results {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.pq-gow__result-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.pq-gow__result-row--border { border-bottom: 1px solid var(--line); }

/* Rank pill badges (replaces emoji medals in תוצאות section) */
.pq-rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  white-space: nowrap;
}
.pq-rank-pill--1 { background: #F5C842; color: #5A3E00; }
.pq-rank-pill--2 { background: #C0C0C0; color: #3A3A3A; }
.pq-rank-pill--3 { background: #CD7F32; color: #fff; }
.pq-rank-pill--other { background: var(--page-bg-alt); color: var(--page-fg-muted); }

.pq-gow__result-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pq-gow__result-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--brand-primary);
}
.pq-gow__result-club {
  font-size: 13px;
  color: var(--page-fg-muted);
}

.pq-gow__image {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-strong);
}
.pq-gow__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Strategic Partners — static centered grid
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-partners {
  padding-block: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 36px);
  background: #fff;
}

/* pq-partners__title removed — heading now uses standard pq-section__header h2 */

.pq-partners__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
}

.pq-partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
}
.pq-partners__item img {
  height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(25%);
  opacity: 0.82;
  transition: filter var(--dur), opacity var(--dur);
}
.pq-partners__item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Empty state
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-empty-state {
  text-align: center;
  color: var(--page-fg-subtle);
  font-size: 15px;
  padding-block: 32px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Event Card — matches petanque.divdev.co design
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-ev-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pq-ev-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

/* Equal-height cards on desktop — fill the stretched grid track so a card with
   a countdown line matches the others; footer stays bottom-aligned via meta flex:1 */
@media (min-width: 769px) {
  .pq-scroll-row > .pq-ev-card { height: 100%; }
}

.pq-ev-card__badge-row {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Badge variants */
.pq-ev-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
}
.pq-ev-badge--open {
  background: #e8f4e8;
  color: #1a6b1a;
  border-color: rgba(26, 107, 26, 0.25);
}
.pq-ev-badge--soon {
  background: #eef4fb;
  color: var(--brand-secondary);
  border-color: rgba(22, 102, 217, 0.25);
}
.pq-ev-badge--closed,
.pq-ev-badge--past {
  background: #f5f5f5;
  color: #666;
  border-color: rgba(0, 0, 0, 0.10);
}

.pq-ev-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--brand-primary);
  line-height: 1.25;
  margin: 0 0 16px;
}
.pq-ev-card__title a {
  color: inherit;
  text-decoration: none;
}
.pq-ev-card__title a:hover { color: var(--brand-secondary); }

.pq-ev-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pq-ev-card__meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--page-fg);
}

.pq-ev-card__footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pq-ev-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-secondary);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.pq-ev-card__cta:hover { color: var(--brand-primary); }
.pq-ev-card__cta--muted {
  color: var(--page-fg-muted);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .pq-hero__bg {
    object-position: center center;
  }
  .pq-hero__inner {
    max-width: 100%;
    margin-inline-start: 0;
  }
  .pq-hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(2, 51, 115, 0.65) 0%,
      rgba(2, 51, 115, 0.40) 60%,
      rgba(2, 30, 80, 0.15) 100%
    );
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Inner Page Header
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-page-header {
  background: linear-gradient(135deg, rgb(2,51,115), rgb(22,102,217));
  padding-block: clamp(52px, 9vw, 88px) clamp(44px, 7vw, 72px);
  position: relative;
  overflow: hidden;
}
.pq-page-header .container { position: relative; z-index: 1; }
.pq-page-header--centered .container { text-align: center; }
.pq-page-header--centered .pq-page-header__desc { margin-inline: auto; }
.pq-page-header__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-bottom: 8px;
}
.pq-page-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.1;
}
.pq-page-header__desc {
  font-size: 16px;
  color: rgba(255,255,255,0.68);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Filter Tabs
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.pq-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: var(--glass-bg);
  color: var(--page-fg-muted);
  border: 1px solid var(--glass-border);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}
.pq-tab:hover { background: rgba(2,51,115,0.09); color: var(--brand-primary); border-color: rgba(2,51,115,0.18); }
.pq-tab--active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.pq-tab--active:hover { color: #fff; background: var(--brand-secondary); border-color: var(--brand-secondary); }

.pq-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(24px, 3vw, 36px);
  padding-bottom: clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--line);
}
.pq-filter-bar__label { font-size: 13px; font-weight: 700; color: var(--page-fg-subtle); white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════════════════
   Person Card
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.pq-person-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}
.pq-person-card__thumb { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; border: 2px solid var(--brand-accent); }
.pq-person-card__avatar { width: 68px; height: 68px; border-radius: 50%; background: var(--glass-bg); border: 2px solid var(--glass-border); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 24px; }
.pq-person-card__role { font-size: 11px; font-weight: 700; color: var(--brand-secondary); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.pq-person-card__name { font-family: var(--font-display); font-size: 16px; color: var(--brand-primary); margin: 0 0 10px; line-height: 1.2; }
.pq-person-card__contact { font-size: 13px; color: var(--page-fg-muted); display: flex; flex-direction: column; gap: 5px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.pq-person-card__contact a { color: var(--brand-secondary); text-decoration: none; }
.pq-person-card__contact a:hover { color: var(--brand-primary); }

/* ═══════════════════════════════════════════════════════════════════════════
   Clubs page — filter bar
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-filter-bar {
  background: var(--page-bg);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 10;
}
.admin-bar .pq-filter-bar { top: calc(var(--nav-h) + 32px); }
@media screen and (max-width: 782px) { .admin-bar .pq-filter-bar { top: calc(var(--nav-h) + 46px); } }

.pq-filter-bar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pq-filter-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  flex: 1;
}
.pq-filter-pills::-webkit-scrollbar { display: none; }

.pq-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--page-fg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 150ms ease;
  font-family: var(--font-sans);
}
.pq-filter-pill--active {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
}
.pq-filter-pill__count {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--glass-bg);
  opacity: 0.6;
}
.pq-filter-pill--active .pq-filter-pill__count {
  background: rgba(255, 255, 255, 0.18);
  opacity: 0.85;
}

.pq-clubs-search-wrap { flex-shrink: 0; }
.pq-clubs-search {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--page-bg-alt);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--page-fg);
  outline: none;
  min-width: 200px;
  direction: rtl;
  transition: border-color 150ms;
}
.pq-clubs-search:focus { border-color: var(--brand-primary); }
.pq-clubs-search::placeholder { color: var(--page-fg-muted); }

/* Mobile: search drops to its own full-width row below the category pills */
@media (max-width: 767px) {
  .pq-clubs-search-wrap { flex: 1 0 100%; }
  .pq-clubs-search { width: 100%; min-width: 0; box-sizing: border-box; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Competitions — year strip + type bar + event rows
   ═══════════════════════════════════════════════════════════════════════════ */

/* Competitions filters */
.pq-comp-filters { background: #fff; border-bottom: 1px solid rgba(2,51,115,0.10); padding: 10px 0; }
.pq-year-row { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin-bottom: 8px; }
.pq-type-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.pq-year-btn {
  padding: 4px 14px; border-radius: 4px; border: none;
  background: transparent; color: var(--page-fg-muted); font-size: 14px; font-weight: 600;
  font-family: var(--font-sans); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.pq-year-btn:hover { color: var(--brand-primary); background: rgba(2,51,115,0.06); }
.pq-year-btn--active { background: var(--brand-primary); color: #fff; }

.pq-type-btn {
  padding: 5px 16px; border-radius: var(--r-pill); border: 1.5px solid rgba(2,51,115,0.18);
  background: transparent; color: var(--brand-primary); font-size: 14px; font-weight: 500;
  font-family: var(--font-sans); cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pq-type-btn:hover { background: rgba(2,51,115,0.06); }
.pq-type-btn--active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

/* Events section */
.pq-events-section { padding: clamp(24px,4vw,40px) 0 clamp(48px,8vw,96px); }
.pq-events-count { font-size: 14px; color: var(--page-fg-muted); margin: 0 0 16px; }
.pq-events-list { display: flex; flex-direction: column; gap: 8px; }

/* Event row */
.pq-event-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-card);
  padding: 20px 28px 20px 20px;
  border-right: 4px solid transparent;
  transition: box-shadow 0.15s;
}
.pq-event-row:hover { box-shadow: var(--shadow-strong); }
.pq-event-row--highlight { border-right-color: var(--brand-primary); background: rgba(2,51,115,0.03); }
.pq-event-row:not(.pq-event-row--past) { box-shadow: 0 2px 12px -2px rgba(2,51,115,0.12), 0 1px 4px rgba(2,51,115,0.06); }
.pq-event-row:not(.pq-event-row--past):hover { box-shadow: var(--shadow-strong); }
.pq-event-row--past { opacity: 0.75; }

/* Info side */
.pq-event-row__info { flex: 1; text-align: right; }
.pq-event-row__meta { display: flex; align-items: center; gap: 16px; justify-content: flex-start; margin-bottom: 4px; flex-wrap: wrap; }
.pq-event-row__dates { color: var(--brand-primary); font-size: 14px; font-weight: 600; }
.pq-event-row__location { font-size: 13px; color: var(--page-fg-muted); }
.pq-event-row__title { font-size: 20px; font-weight: 700; color: var(--page-fg); margin: 0 0 6px; line-height: 1.3; }
.pq-event-row__title--past { color: var(--page-fg-muted); }
.pq-event-type-tag {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px;
  border-radius: var(--r-pill); background: rgba(2,51,115,0.08); color: var(--brand-primary);
}
.pq-event-tags-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }

/* Action side */
.pq-event-row__action { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 130px; }
.pq-event-reg { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; }
.pq-event-status { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #16a34a; }
.pq-event-status__dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: #16a34a; }
.pq-event-status--soon { color: var(--page-fg-muted); }
.pq-event-status--soon .pq-event-status__dot { background: rgba(2,51,115,0.3); }
.pq-event-status--past { color: var(--page-fg-muted); }
.pq-event-status--past .pq-event-status__dot { background: rgba(2,51,115,0.25); }
.pq-event-register-btn {
  display: inline-block; padding: 8px 18px; border-radius: var(--r-pill);
  background: var(--brand-primary); color: #fff; font-size: 14px; font-weight: 600;
  text-decoration: none; font-family: var(--font-sans);
  border: 1.5px solid var(--brand-primary);
  transition: background 150ms, color 150ms;
  white-space: nowrap;
}
.pq-event-register-btn:hover { background: #fff; color: var(--brand-primary); }
.pq-event-register-btn--disabled {
  background: #e5e7eb; color: #9ca3af; border-color: #e5e7eb;
  cursor: not-allowed; pointer-events: none;
}
.pq-event-status--closed { color: #b45309; }
.pq-event-status--closed .pq-event-status__dot { background: #d97706; }
.pq-event-countdown { font-size: 11px; font-weight: 500; color: #4b5563; line-height: 1.3; }
.pq-event-doc-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; text-decoration: none;
  color: var(--brand-primary); background: transparent;
  border: 1px solid rgba(2,51,115,0.3); white-space: nowrap;
  transition: background 150ms, border-color 150ms;
}
.pq-event-doc-btn:hover { background: rgba(2,51,115,0.06); border-color: var(--brand-primary); }
.pq-event-participants { font-size: 13px; color: var(--page-fg-muted); font-weight: 500; }

/* Past section divider */
.pq-events-past-divider { display: flex; align-items: center; gap: 16px; margin: 16px 0 4px; flex-direction: row-reverse; }
.pq-events-past-divider__label { font-size: 15px; font-weight: 700; color: var(--page-fg-muted); white-space: nowrap; margin: 0; }
.pq-events-past-divider__rule { flex: 1; height: 1px; background: rgba(2,51,115,0.12); }

/* Mobile */
@media (max-width: 600px) {
  .pq-event-row { flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; }
  .pq-event-row__info { text-align: right; width: 100%; }
  .pq-event-row__action { flex-direction: column; align-items: flex-start; width: 100%; min-width: 0; }
  .pq-event-reg { width: 100%; align-items: flex-start; text-align: right; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Category results page (taxonomy-comp_category)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Season filter tabs */
.pq-cat-seasons {
  background: var(--page-bg);
  border-bottom: 1px solid var(--line);
}
.pq-seasons-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pq-seasons-inner::-webkit-scrollbar { display: none; }
.pq-season-tab {
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--page-fg-muted);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  font-family: var(--font-sans);
}
.pq-season-tab:hover { color: var(--brand-primary); }
.pq-season-tab--active {
  color: var(--brand-primary);
  font-weight: 700;
  border-bottom-color: var(--brand-primary);
}

/* Results section */
.pq-cat-section { background: var(--page-bg-alt); padding: clamp(28px,4vw,48px) 0 clamp(48px,8vw,80px); }

/* Cards grid */
.pq-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px,2vw,24px);
}

/* Card */
.pq-result-card {
  background: var(--page-bg);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}
.pq-result-card:hover { box-shadow: var(--shadow-strong); transform: translateY(-2px); }

/* Card image area */
.pq-result-card__img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgb(2,51,115), rgb(22,102,217));
}
.pq-result-card__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.pq-result-card__overlay {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  background: linear-gradient(to top, rgba(2,19,51,0.92) 0%, rgba(2,19,51,0.55) 45%, transparent 100%);
  padding: 24px 20px 14px;
}
.pq-result-card__title {
  font-size: 17px; font-weight: 800; color: #fff; line-height: 1.2;
}
.pq-result-card__sub {
  font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 3px;
}

/* Facebook gallery link — absolute bottom-left of image */
.pq-result-card__gallery {
  position: absolute;
  bottom: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(2,19,51,0.52);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-size: 11px; font-weight: 600;
  text-decoration: none; letter-spacing: 0.01em;
  transition: background 0.15s;
}
.pq-result-card__gallery:hover { background: rgba(2,19,51,0.88); color: #fff; }

/* Podium rows */
.pq-result-card__podium {
  padding: clamp(14px,2vw,20px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pq-podium-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--page-bg-alt);
}
.pq-rank-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1;
}
.pq-rank-badge__word {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.8;
  letter-spacing: 0.01em;
}
.pq-rank-badge__num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}
.pq-podium-row__info { min-width: 0; }
.pq-podium-row__names {
  font-size: 13px; font-weight: 700;
  color: var(--brand-primary); line-height: 1.4;
}
.pq-podium-row__club {
  font-size: 11px; color: var(--page-fg-muted); margin-top: 3px;
}

/* Mobile */
@media (max-width: 600px) {
  .pq-results-grid { grid-template-columns: 1fr; }
}

/* Lightbox */
.pq-lightbox {
  position: fixed; inset: 0;
  background: rgba(2,19,51,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  animation: pqLbIn 0.18s ease;
}
.pq-lightbox img {
  max-width: min(90vw, 1200px);
  max-height: 88vh;
  border-radius: var(--r-md);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  object-fit: contain;
  cursor: default;
}
.pq-lightbox__close {
  position: absolute; top: 18px; left: 18px;
  width: 40px; height: 40px;
  border-radius: 50%; border: none;
  background: rgba(255,255,255,0.15); color: #fff;
  font-size: 22px; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
@keyframes pqLbIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════════════════
   Clubs section + grid
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-clubs-section {
  background: var(--page-bg-alt);
  padding: clamp(32px, 4vw, 56px) 0;
}
.pq-clubs-count {
  font-size: 13px;
  color: var(--page-fg-muted);
  margin-bottom: clamp(20px, 2vw, 28px);
}
.pq-clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Club Card
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-club-card {
  background: var(--page-bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.pq-club-card:hover { box-shadow: var(--shadow-strong); transform: translateY(-3px); }

.pq-club-card__top-bar {
  height: 4px;
  background: var(--brand-gradient);
  flex-shrink: 0;
}
.pq-club-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.pq-club-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.pq-club-card__name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1.25;
}
.pq-club-card__region-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--glass-bg);
  color: var(--brand-secondary);
  border: 1px solid var(--glass-border);
  white-space: nowrap;
}
.pq-club-card__divider {
  height: 1px;
  background: var(--line);
}
.pq-club-card__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Contact rows */
.pq-contact-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.pq-contact-row__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-accent);
  flex-shrink: 0;
  min-width: 44px;
}
.pq-contact-row__value {
  font-size: 16px;
  color: var(--page-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pq-contact-row__value--interactive { color: var(--brand-secondary); font-weight: 500; }
.pq-contact-row__value--small { font-size: 13px; }


/* ═══════════════════════════════════════════════════════════════════════════
   Docs archive — layout, sidebar, file rows
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-docs-section {
  background: var(--page-bg-alt);
  padding: clamp(32px, 4vw, 56px) 0;
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

/* Sidebar */
.docs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.admin-bar .docs-sidebar { top: calc(var(--nav-h) + 52px); }

.docs-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--page-fg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: right;
  font-family: var(--font-sans);
  transition: all 150ms ease;
  width: 100%;
}
.docs-nav-btn--active {
  background: rgba(2, 51, 115, 0.08);
  border-color: rgba(2, 51, 115, 0.18);
  color: var(--brand-primary);
  font-weight: 700;
}
.docs-nav-btn__icon {
  flex-shrink: 0;
  opacity: 0.5;
  display: flex;
}
.docs-nav-btn--active .docs-nav-btn__icon { opacity: 1; }
.docs-nav-btn__label { flex: 1; }
.docs-nav-btn__count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--line-strong);
  color: var(--page-fg-muted);
  flex-shrink: 0;
}
.docs-nav-btn--active .docs-nav-btn__count {
  background: var(--brand-primary);
  color: #fff;
}

/* Content panes */
.docs-content { min-width: 0; }
.docs-pane { display: none; flex-direction: column; gap: 32px; }
.docs-pane--active { display: flex; }
.docs-pane__header { display: flex; align-items: center; gap: 16px; }
.docs-pane__title { font-size: 22px; font-weight: 700; color: var(--brand-primary); margin: 0; white-space: nowrap; }
.docs-pane__rule { flex: 1; height: 2px; background: rgba(2,51,115,0.12); border-radius: 2px; }
.docs-pills-block { display: flex; flex-direction: column; gap: 12px; }

/* Sub-sections */
.docs-subsection { display: flex; flex-direction: column; gap: 0; }
.docs-subsection + .docs-subsection { margin-top: 32px; }

.docs-subsection__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.docs-subsection__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 31px);
  white-space: nowrap;
}
.docs-subsection__rule {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

/* Sub-filter pills */
.docs-sub-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.docs-sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--page-fg);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 140ms ease;
}
.docs-sub-pill--active {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
}
.docs-sub-pill__count {
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--line-strong);
  color: var(--page-fg-muted);
}
.docs-sub-pill--active .docs-sub-pill__count {
  background: rgba(255, 255, 255, 0.20);
  color: #fff;
}

.docs-sub-pane { display: none; }
.docs-sub-pane--active { display: block; }

/* File list + rows */
.docs-file-list {
  background: var(--page-bg);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.docs-file-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 140ms;
}
.docs-file-row--last { border-bottom: none; }
.docs-file-row:hover { background: rgba(2, 51, 115, 0.03); }

.docs-file-icon {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.docs-file-icon__label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.docs-file-info { min-width: 0; }
.docs-file-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-primary);
}
.docs-file-subtitle {
  font-size: 14px;
  color: var(--page-fg-muted);
  margin-top: 2px;
}
.docs-file-meta {
  font-size: 11px;
  color: var(--page-fg-muted);
  opacity: 0.6;
  margin-top: 3px;
}
.docs-file-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.docs-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--brand-primary);
  background: transparent;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms, color 150ms;
}
.docs-view-btn:hover { background: var(--brand-primary); color: #fff; }
.docs-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms;
}
.docs-dl-btn:hover { background: var(--brand-secondary); color: #fff; }
.docs-no-file {
  font-size: 12px;
  color: var(--page-fg-muted);
  font-style: italic;
}

/* Mobile */
@media (max-width: 680px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static !important; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .docs-nav-btn { width: auto; padding: 8px 14px; font-size: 13px; }
  .docs-nav-btn__count { display: none; }
  .docs-file-row { grid-template-columns: auto 1fr; }
  .docs-file-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Gallery v2
   ═══════════════════════════════════════════════════════════════════════════ */
/* Hero */
.pq-gal2-hero { background: var(--brand-gradient); padding: clamp(48px,7vw,88px) 0 clamp(40px,5vw,64px); }
.pq-gal2-hero__title { color: #fff; margin: 0 0 16px; line-height: 1.1; font-family: var(--font-display); }
.pq-gal2-hero__sub { color: rgba(255,255,255,0.72); font-size: clamp(15px,1.5vw,18px); margin: 0; }

/* Filter bar */
.pq-gal2-filter-bar { background: var(--page-bg); border-bottom: 1px solid var(--line); }
.pq-gal2-tabs { display: flex; justify-content: flex-start; gap: 0; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.pq-gal2-tabs::-webkit-scrollbar { display: none; }
.pq-gal2-tab { padding: 14px 22px; font-size: 14px; font-weight: 500; color: var(--page-fg-muted); background: none; border: none; border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; margin-bottom: -1px; transition: color 150ms, border-color 150ms; text-decoration: none; display: block; font-family: inherit; }
.pq-gal2-tab:hover { color: var(--brand-primary); }
.pq-gal2-tab--active { font-weight: 700; color: var(--brand-primary) !important; border-bottom-color: var(--brand-primary); }

/* Content section */
.pq-gal2-section { background: var(--page-bg-alt); padding: clamp(28px,4vw,48px) 0; }
.pq-gal2-count { font-size: 13px; color: var(--page-fg-muted); margin-bottom: 24px; }

/* Grid */
.pq-gal2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: clamp(14px,2vw,22px); }

/* Card */
.pq-gal2-card { background: var(--page-bg); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: box-shadow 200ms, transform 200ms; }
.pq-gal2-card:hover { box-shadow: var(--shadow-strong); transform: translateY(-4px); }

/* Thumbnail */
.pq-gal2-thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.pq-gal2-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pq-gal2-placeholder { width: 100%; height: 100%; background: var(--brand-gradient); display: flex; align-items: center; justify-content: center; }
.pq-gal2-placeholder span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.45); }
.pq-gal2-year-badge { position: absolute; top: 10px; inset-inline-end: 10px; background: rgba(2,19,51,0.72); backdrop-filter: blur(4px); border-radius: 8px; padding: 3px 10px; color: #fff; font-size: 11px; font-weight: 700; }

/* Card body */
.pq-gal2-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pq-gal2-title { font-size: 15px; font-weight: 700; color: var(--brand-primary); line-height: 1.3; margin-bottom: 4px; }
.pq-gal2-date { font-size: 12px; color: var(--page-fg-muted); }

/* CTA button */
.pq-gal2-cta { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; background: var(--brand-secondary); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; align-self: flex-start; transition: background 150ms; }
.pq-gal2-cta:hover { background: var(--brand-primary); color: #fff; }
.pq-gal2-cta--pending { background: rgba(2,51,115,0.18); opacity: 0.55; cursor: default; pointer-events: none; }

/* Footnote */
.pq-gal2-footnote { font-size: 12px; color: var(--page-fg-muted); margin-top: 32px; font-style: italic; }

/* ═══════════════════════════════════════════════════════════════════════════
   About Association page
   ═══════════════════════════════════════════════════════════════════════════ */
/* Hero */
.pq-assoc-hero { background: var(--brand-gradient); padding: clamp(48px,7vw,88px) 0 clamp(40px,5vw,64px); }
.pq-assoc-hero__eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.pq-assoc-hero__title { color: #fff; margin: 0 0 20px; line-height: 1.05; font-family: var(--font-display); }
.pq-assoc-hero__sub { color: rgba(255,255,255,0.78); font-size: clamp(15px,1.5vw,18px); max-width: 560px; margin: 0 auto; }

/* Stats bar */
.pq-assoc-stats { background: var(--page-bg); border-bottom: 1px solid var(--line); padding: clamp(28px,3vw,40px) 0; }
.pq-assoc-stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(16px,3vw,32px); text-align: center; }
.pq-assoc-stat__val { font-size: clamp(28px,4vw,48px); font-weight: 800; color: var(--brand-primary); line-height: 1; font-family: var(--font-display); }
.pq-assoc-stat__lbl { font-size: 13px; color: var(--page-fg-muted); margin-top: 6px; }

/* Split section */
.pq-assoc-split { background: var(--page-bg-alt); padding: clamp(48px,6vw,80px) 0; }
.pq-assoc-split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; }
.pq-assoc-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-secondary); margin-bottom: 12px; }
.pq-assoc-split__heading { margin-bottom: 24px; font-family: var(--font-display); color: var(--brand-primary); }
.pq-assoc-content p { font-size: 16px; line-height: 1.75; color: var(--page-fg); margin-bottom: 16px; }
.pq-assoc-content p:last-child { margin-bottom: 0; }
.pq-assoc-split__img-wrap { aspect-ratio: 1/1; border-radius: 24px; overflow: hidden; }
.pq-assoc-split__img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 720px) {
  .pq-assoc-split__inner { grid-template-columns: 1fr; }
  .pq-assoc-stats__grid  { grid-template-columns: repeat(2,1fr); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Org Structure page
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-org-search-bar { background: var(--page-bg); border-bottom: 1px solid var(--line); padding: 16px 0; }
.pq-org-search-wrap { position: relative; max-width: 400px; }
.pq-org-search-icon { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); pointer-events: none; }
.pq-org-search-input { width: 100%; padding: 10px 44px 10px 16px; font-size: 15px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--page-bg-alt); color: var(--page-fg); outline: none; transition: border-color 150ms; box-sizing: border-box; font-family: inherit; }
.pq-org-search-input:focus { border-color: var(--brand-secondary); }
.pq-org-section { background: var(--page-bg-alt); padding: clamp(32px,4vw,56px) 0; }
.pq-org-container { display: flex; flex-direction: column; gap: clamp(36px,5vw,56px); }
.pq-org-group__header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.pq-org-group__title { margin: 0; font-size: 31px; font-family: var(--font-display); color: var(--brand-primary); white-space: nowrap; }
.pq-org-group__line { flex: 1; height: 1px; background: var(--line-strong); }
.pq-org-group__count { font-size: 13px; color: var(--page-fg-muted); flex-shrink: 0; }
.pq-org-list { background: var(--page-bg); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.pq-org-row { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); transition: background 140ms; }
.pq-org-row:hover { background: rgba(2,51,115,0.03); }
.pq-org-row--last { border-bottom: none; }
.pq-org-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.pq-org-avatar--named { background: var(--brand-gradient); color: #fff; }
.pq-org-avatar--vacant { background: var(--line-strong); color: var(--page-fg-muted); }
.pq-org-info { min-width: 0; }
.pq-org-name { font-size: 17px; font-weight: 700; color: var(--brand-primary); }
.pq-org-name--vacant { color: var(--page-fg-muted); font-style: italic; }
.pq-org-role { font-size: 14px; color: var(--page-fg-muted); margin-top: 2px; }
.pq-org-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.pq-org-phone { font-size: 15px; color: var(--brand-secondary); text-decoration: none; font-weight: 500; }
.pq-org-phone:hover { color: var(--brand-primary); }
.pq-org-email { font-size: 13px; color: var(--page-fg-muted); text-decoration: none; }
.pq-org-email:hover { color: var(--brand-secondary); }
@media (max-width: 600px) {
  .pq-org-row { grid-template-columns: 40px 1fr; row-gap: 6px; }
  .pq-org-avatar { align-self: start; }
  /* Contact drops to its own row under the name (phone + email side by side) */
  .pq-org-contact {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px 16px;
  }
  .pq-org-group__title { font-size: 24px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Sport / הכירו את הענף page
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-sport-section { padding: clamp(48px,6vw,80px) 0; }
.pq-sport-section--white    { background: var(--page-bg); }
.pq-sport-section--alt      { background: var(--page-bg-alt); }
.pq-sport-section--gradient { background: var(--brand-gradient); padding: clamp(56px,7vw,96px) 0; }

.pq-sport-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }

.pq-sport-img-wrap { aspect-ratio: 4/3; border-radius: 24px; overflow: hidden; }
.pq-sport-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Rules grid */
.pq-sport-rules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: clamp(14px,2vw,20px); }
.pq-rule-card { background: var(--page-bg-alt); border-radius: var(--r-lg); padding: 24px 22px; display: flex; flex-direction: column; gap: 12px; border-top: 3px solid transparent; border-image: var(--brand-gradient) 1; }
.pq-rule-card__num   { font-size: 32px; font-weight: 900; color: var(--brand-accent); line-height: 1; font-variant-numeric: tabular-nums; }
.pq-rule-card__title { margin: 0; font-size: 18px; font-weight: 700; color: var(--brand-primary); }
.pq-rule-card__text  { margin: 0; font-size: 14px; line-height: 1.7; color: var(--page-fg); }

/* Court SVG */
.pq-court-svg { width: 100%; max-width: 560px; display: block; }

/* Role cards */
.pq-roles-list { display: flex; flex-direction: column; gap: 14px; }
.pq-role-card { background: var(--page-bg); border-radius: var(--r-md); padding: 16px 18px; border-right: 3px solid var(--brand-secondary); }
.pq-role-card__header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.pq-role-card__name { font-size: 16px; font-weight: 800; color: var(--brand-primary); }
.pq-role-card__sub  { font-size: 12px; color: var(--brand-secondary); font-weight: 600; }
.pq-role-card__text { margin: 0; font-size: 13px; line-height: 1.65; color: var(--page-fg); }

/* Equipment list */
.pq-equipment-list { display: flex; flex-direction: column; gap: 0; }
.pq-equip-item { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.pq-equip-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.pq-equip-item__title { font-size: 15px; font-weight: 700; color: var(--brand-primary); margin-bottom: 6px; }
.pq-equip-item__text  { margin: 0; font-size: 14px; line-height: 1.65; color: var(--page-fg); }

/* Community bullets */
.pq-sport-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pq-sport-bullets li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,255,255,.88); }
.pq-sport-bullets li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-accent); flex-shrink: 0; display: inline-block; }

/* Documents */
.pq-sport-docs-heading { font-size: 18px; margin-bottom: 14px; color: var(--brand-primary); font-family: var(--font-display); }
.pq-sport-docs-list { background: var(--page-bg-alt); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.pq-sport-doc-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); transition: background 140ms; }
.pq-sport-doc-row:hover { background: rgba(2,51,115,.03); }
.pq-sport-doc-row--last { border-bottom: none; }
.pq-sport-doc-row__title { font-size: 15px; font-weight: 600; color: var(--brand-primary); }
.pq-sport-doc-row__btns { display: flex; gap: 8px; }
.pq-sport-doc-btn { padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pq-sport-doc-btn--outline { border: 1.5px solid var(--brand-primary); color: var(--brand-primary); }
.pq-sport-doc-btn--outline:hover { background: var(--brand-primary); color: #fff; }
.pq-sport-doc-btn--fill { background: var(--brand-primary); color: #fff; border: 1.5px solid var(--brand-primary); }
.pq-sport-doc-btn--fill:hover { background: var(--brand-secondary); border-color: var(--brand-secondary); color: #fff; }

@media (max-width: 600px) {
  .pq-sport-doc-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Hall of Fame Table
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-hof-table-wrap { overflow-x: auto; }
.pq-hof-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pq-hof-table thead th { background: var(--brand-primary); color: #fff; font-family: var(--font-display); font-size: 13px; font-weight: 700; padding: 12px 16px; text-align: right; }
.pq-hof-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--page-fg); vertical-align: top; }
.pq-hof-table tr:last-child td { border-bottom: none; }
.pq-hof-table tr:nth-child(even) { background: var(--glass-bg); }
.pq-hof-year { font-family: var(--font-mono); font-weight: 700; color: var(--brand-secondary); white-space: nowrap; }
.pq-hof-winners { font-weight: 700; color: var(--brand-primary); }

/* ═══════════════════════════════════════════════════════════════════════════
   League Tables
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-league-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(24px, 3vw, 40px); }
.pq-season-select { padding: 9px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: #fff; font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--brand-primary); cursor: pointer; direction: rtl; }
.pq-league-table-wrap { overflow-x: auto; }
.pq-league-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.pq-league-table thead th { background: var(--brand-primary); color: #fff; font-family: var(--font-display); font-size: 13px; font-weight: 700; padding: 12px 18px; text-align: right; white-space: nowrap; }
.pq-league-table td { padding: 11px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pq-league-table tr:last-child td { border-bottom: none; }
.pq-league-table tr:nth-child(even) { background: var(--glass-bg); }
.pq-league-table tr:hover td { background: rgba(2,51,115,0.04); }
.pq-rank-cell { font-family: var(--font-mono); font-weight: 700; color: var(--page-fg-subtle); width: 52px; }
/* League table badge (small, scoped) */
.pq-league-table .pq-rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; font-family: var(--font-mono); font-weight: 700; color: #fff; flex-direction: row; gap: 0; }
.pq-rank-badge--1 { background: #C9A520; }
.pq-rank-badge--2 { background: #8C9099; }
.pq-rank-badge--3 { background: #8B5E3C; }
.pq-rank-badge--other { background: var(--brand-accent); color: var(--brand-primary); }

/* Podium badge (result cards) — override league table scope */
.pq-podium-row .pq-rank-badge { width: 48px; height: 48px; font-size: 12px; flex-direction: column; gap: 1px; flex-shrink: 0; }
.pq-podium-row .pq-rank-badge__word { font-size: 9px; font-weight: 700; opacity: 0.75; font-family: var(--font-sans); letter-spacing: 0.02em; }
.pq-podium-row .pq-rank-badge__num { font-size: 20px; font-weight: 700; line-height: 1; font-family: var(--font-display); }
.pq-team-cell { font-weight: 700; color: var(--brand-primary); }
.pq-num-cell { font-family: var(--font-mono); font-weight: 600; text-align: center; }

/* League season header + promotion/relegation tags */
.pq-league-season {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(20px, 2.5vw, 32px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.pq-league-season__title { font-family: var(--font-display); color: var(--brand-primary); margin: 0; }
.pq-league-season__champ { margin: 6px 0 0; color: var(--page-fg-muted); font-size: 15px; }
.pq-league-season__champ strong { color: var(--brand-primary); }
.pq-league-season__badge {
  align-self: center;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
}
.pq-leg {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}
.pq-leg--down { background: rgba(200, 30, 30, 0.10); color: #C81E1E; }
.pq-leg--up { background: rgba(20, 140, 60, 0.10); color: #148C3C; }

.pq-league-season-block + .pq-league-season-block { margin-top: clamp(36px, 5vw, 56px); }
.pq-league-season-block[hidden], .pq-league-table-wrap[hidden] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive — inner pages
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .pq-clubs-grid        { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .pq-person-grid       { grid-template-columns: repeat(2, 1fr); }
  .pq-gal2-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pq-person-grid { grid-template-columns: 1fr; }
  .pq-gal2-grid   { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Social Strip — fixed bottom bar
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-social-strip {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 55;
  background: var(--brand-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 0;
}
.pq-social-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  direction: ltr;
}
.pq-social-strip__icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.pq-social-strip__icon {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--dur-fast);
  text-decoration: none;
}
.pq-social-strip__icon:hover { color: #fff; }

.pq-social-strip__text {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
  white-space: nowrap;
}
.pq-social-strip__text--mobile { display: none; }

.pq-social-strip__sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.pq-social-strip__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast);
  flex-shrink: 0;
}
.pq-social-strip__cta:hover { background: rgba(255, 255, 255, 0.25); color: #fff; }

@media (max-width: 600px) {
  .pq-social-strip__text:not(.pq-social-strip__text--mobile) { display: none; }
  .pq-social-strip__text--mobile { display: inline; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Articles — listing grid + pagination
   ═══════════════════════════════════════════════════════════════════════════ */
.container--narrow { max-width: 760px; }

.pq-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.pq-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(28px, 4vw, 44px);
}
.pq-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.pq-pagination a.page-numbers:hover { background: var(--page-bg-alt); border-color: var(--line-strong); }
.pq-pagination .page-numbers.current {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
}
.pq-pagination .page-numbers.dots { border: 0; background: transparent; }

/* ═══════════════════════════════════════════════════════════════════════════
   Single post (article)
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-single__head {
  background: var(--brand-gradient);
  padding: clamp(40px, 6vw, 76px) 0 clamp(32px, 4vw, 52px);
}
.pq-single__back {
  display: inline-block;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur-fast);
}
.pq-single__back:hover { color: #fff; }
.pq-single__title {
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.15;
  font-family: var(--font-display);
}
.pq-single__meta {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  margin: 0;
}
.pq-single__sep { margin: 0 8px; }

.pq-single__article { padding: clamp(28px, 4vw, 52px) 0; }

.pq-single__figure {
  margin: 0 0 clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.pq-single__img { width: 100%; height: auto; display: block; }

.pq-single__content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--page-fg);
}
.pq-single__content > * { margin-block: 0 1.1em; }
.pq-single__content h2,
.pq-single__content h3 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  margin-block: 1.6em 0.6em;
  line-height: 1.25;
}
.pq-single__content h2 { font-size: 38px; }
.pq-single__content a { color: var(--brand-secondary); }
.pq-single__content img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.pq-single__content blockquote {
  margin: 1.4em 0;
  padding: 4px 20px;
  border-inline-start: 4px solid var(--brand-accent);
  color: var(--page-fg-muted);
}
.pq-single__content ul,
.pq-single__content ol { padding-inline-start: 1.4em; }
.pq-single__content li { margin-block: 0.3em; }

.pq-single__more { margin-top: clamp(20px, 3vw, 40px); }
.pq-single__more-title {
  font-family: var(--font-display);
  color: var(--brand-primary);
  margin: 0 0 clamp(20px, 2.5vw, 30px);
}

.pq-single__content figure.wp-block-table { margin: 1.6em 0; overflow-x: auto; }
.pq-single__content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border: 1px solid var(--line);
}
.pq-single__content th,
.pq-single__content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: right;
  vertical-align: top;
  line-height: 1.5;
}
.pq-single__content thead th {
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
}
.pq-single__content tbody tr:nth-child(even) { background: rgba(2, 51, 115, 0.04); }

/* ═══════════════════════════════════════════════════════════════════════════
   Hall of Fame — dedicated page
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-hof-eyebrow {
  color: var(--brand-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}
.pq-hof-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}
.pq-hof-stat {
  min-width: 96px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.pq-hof-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: #fff;
}
.pq-hof-stat__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.pq-hof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.pq-hof-card {
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--dur), transform var(--dur);
}
.pq-hof-card:hover { box-shadow: var(--shadow-strong); transform: translateY(-4px); }

.pq-hof-card__media { position: relative; height: 200px; overflow: hidden; }
.pq-hof-card__img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.pq-hof-card__gallery {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(2, 19, 51, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms;
}
.pq-hof-card__gallery:hover { background: rgba(2, 19, 51, 0.72); color: #fff; }

.pq-hof-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.pq-hof-card__comp { font-size: 13px; font-weight: 600; color: var(--page-fg-muted); line-height: 1.35; }
.pq-hof-card__win { display: flex; align-items: flex-start; gap: 7px; }
.pq-hof-card__trophy { font-size: 16px; line-height: 1; margin-top: 1px; flex-shrink: 0; }
.pq-hof-card__winners { font-size: 15px; font-weight: 800; color: var(--brand-primary); line-height: 1.3; }

/* ═══════════════════════════════════════════════════════════════════════════
   Documents library (/docs) — sidebar + client-side category switching
   ═══════════════════════════════════════════════════════════════════════════ */
.pq-docs-hero {
  background: var(--brand-gradient);
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
  text-align: center;
}
.pq-docs-hero__eyebrow {
  color: var(--brand-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.pq-docs-hero__title { color: #fff; margin: 0 0 14px; line-height: 1.1; font-family: var(--font-display); }
.pq-docs-hero__sub { color: rgba(255, 255, 255, 0.72); font-size: clamp(15px, 1.5vw, 18px); margin: 0; }

.pq-docs-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 36px);
  align-items: start;
}

/* Sidebar */
.pq-docs-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: calc(var(--nav-h) + 18px);
}
.pq-docs-cat {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--page-fg);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-align: right;
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.pq-docs-cat:hover { background: var(--glass-bg); }
.pq-docs-cat.is-active {
  background: rgba(2, 51, 115, 0.08);
  border-color: rgba(2, 51, 115, 0.18);
  color: var(--brand-primary);
}
.pq-docs-cat__icon { display: inline-flex; flex-shrink: 0; opacity: 0.9; }
.pq-docs-cat__name { flex: 1; }
.pq-docs-cat__count {
  flex-shrink: 0;
  min-width: 26px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  color: var(--page-fg-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.pq-docs-cat.is-active .pq-docs-cat__count { background: var(--brand-primary); color: #fff; }

/* Content */
.pq-docs-panel + .pq-docs-panel { margin-top: 0; }
.pq-docs-cat-title {
  font-family: var(--font-display);
  color: var(--brand-primary);
  margin: 0 0 16px;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}
.pq-docs-cat-title { margin-top: 0; }

.pq-docs-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pq-docs-subtab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--page-fg-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.pq-docs-subtab:hover { border-color: var(--line-strong); }
.pq-docs-subtab.is-active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.pq-docs-subtab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.pq-docs-subtab.is-active .pq-docs-subtab__count { background: rgba(255, 255, 255, 0.22); color: #fff; }

.pq-docs-list { display: flex; flex-direction: column; gap: 10px; }
/* [hidden] must beat the explicit display rules above */
.pq-docs-panel[hidden], .pq-docs-list[hidden] { display: none !important; }

.pq-doc {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur-fast);
}
.pq-doc:hover { box-shadow: var(--shadow-strong); }
.pq-doc__file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  width: 42px;
  color: #D23B3B;
}
.pq-doc__file svg { width: 24px; height: 24px; }
.pq-doc__type { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.pq-doc__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pq-doc__title { font-weight: 700; color: var(--brand-primary); font-size: 15px; line-height: 1.3; }
.pq-doc__sub { font-size: 13px; color: var(--page-fg-muted); }
.pq-doc__meta { font-family: var(--font-mono); font-size: 12px; color: var(--page-fg-subtle); }
.pq-doc__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pq-doc__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.pq-doc__btn--view { background: transparent; color: var(--brand-primary); border: 1px solid var(--brand-primary); }
.pq-doc__btn--view:hover { background: var(--brand-primary); color: #fff; }
.pq-doc__btn--dl { background: var(--brand-primary); color: #fff; border: 1px solid var(--brand-primary); }
.pq-doc__btn--dl:hover { background: var(--brand-secondary); border-color: var(--brand-secondary); }

/* Mobile — sidebar stacks above content */
@media (max-width: 860px) {
  .pq-docs-layout { grid-template-columns: 1fr; gap: 20px; }
  .pq-docs-side { position: static; }
  .pq-doc { gap: 12px; padding: 12px 14px; }
  .pq-doc__actions { gap: 6px; }
  .pq-doc__btn { padding: 7px 12px; }
}
@media (max-width: 480px) {
  .pq-doc { flex-wrap: wrap; }
  .pq-doc__actions { width: 100%; justify-content: flex-start; padding-inline-start: 58px; }
}

/* Hero logo above the homepage title (added 2026-06-29) */
.pq-hero__logo { display: block; width: 132px; height: 132px; object-fit: contain; margin-block: 0 20px; margin-inline: 0 auto; }
@media (max-width: 768px) { .pq-hero__logo { width: 97px; height: 97px; margin-block: 0 14px; } }

/* Full-results link (PDF or image) — below the podium */
.pq-result-card__full {
  display: block;
  margin-top: 4px;
  padding: 10px 14px;
  border: 1px solid rgba(2,51,115,0.18);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--brand-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pq-result-card__full:hover { background: var(--brand-primary); color: #fff; }

/* ── 404 — Not Found ──────────────────────────────────────────────────────── */
.pq-404 { display: flex; align-items: center; justify-content: center; min-height: 68vh; text-align: center; }
.pq-404__inner { padding-block: clamp(40px, 8vw, 96px); max-width: 640px; }
.pq-404__code {
  font-family: var(--font-display);
  font-size: clamp(96px, 22vw, 200px); line-height: 1; margin: 0;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pq-404__title { font-family: var(--font-display); color: var(--brand-primary); font-size: clamp(24px, 4vw, 36px); margin: 6px 0 12px; }
.pq-404__text { color: var(--page-fg-muted); font-size: clamp(15px, 2vw, 18px); margin: 0 auto 28px; max-width: 46ch; line-height: 1.6; }
.pq-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
