/* =========================================================================
   Prague GT – základ: reset, typografie, layout, sekce, pozadí, utility
   Závisí na tokens.css.
   ========================================================================= */

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; /* místo pro posuvník i na krátkých stránkách → obsah při přechodu mezi stránkami neposkočí */ scroll-padding-top: calc(var(--pgt-header-live, var(--pgt-header-h)) + var(--pgt-subnav-h) + 24px); }
body { margin: 0; min-height: 100vh; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

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

/* ---------- Typografie --------------------------------------------------- */
body {
  font: 400 var(--pgt-fs-body)/var(--pgt-lh-body) var(--pgt-font-text);
  color: var(--pgt-text);
  background-color: var(--pgt-bg);
  font-variant-numeric: lining-nums;
}
h1, h2, h3, h4, .pgt-h1, .pgt-h3, .pgt-h4 {
  font-family: var(--pgt-font-head);
  font-weight: 700;
  line-height: var(--pgt-lh-head);
  color: var(--pgt-text-strong);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.pgt-display { font: 700 var(--pgt-fs-display)/.95 var(--pgt-font-head); text-transform: uppercase; color: var(--pgt-text-strong); }
h1, .pgt-h1 { font-size: var(--pgt-fs-h1); line-height: var(--pgt-lh-tight); }
h3, .pgt-h3 { font-size: var(--pgt-fs-h3); line-height: var(--pgt-lh-tight); }
h4, .pgt-h4 { font-size: var(--pgt-fs-h4); }
p + p { margin-top: .8em; }
a { color: var(--pgt-accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pgt-accent-hover); }
strong, b { font-weight: 600; color: var(--pgt-text-strong); }
small { font-size: var(--pgt-fs-small); }

.pgt-lead { font-size: var(--pgt-fs-lead); color: var(--pgt-text); max-width: var(--pgt-text-max); }
.pgt-prose { max-width: var(--pgt-text-max); }
.pgt-prose > * + * { margin-top: .8em; }
.pgt-prose ul { padding-left: 1.2em; }
.pgt-muted { color: var(--pgt-text-muted); }
.pgt-small { font-size: var(--pgt-fs-small); }
.pgt-caps { /* kapitálky – nadtitulky, štítky, popisky polí */
  font: 600 var(--pgt-fs-xs)/1.3 var(--pgt-font-head);
  letter-spacing: var(--pgt-track-caps);
  text-transform: uppercase;
}
.pgt-num { font-family: var(--pgt-font-head); font-variant-numeric: tabular-nums; }
.pgt-url { font: 700 .95em/1.3 var(--pgt-font-url); letter-spacing: .01em; }

/* ---------- Focus (viditelný jen pro klávesnici) ------------------------- */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--pgt-focus); outline-offset: 3px; border-radius: var(--pgt-radius-sm); }

/* ---------- Ikony (inline SVG sprite: <svg class="pgt-icon"><use href="#i-kalendar"/></svg>) */
.pgt-icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em; }
.pgt-icon--lg { width: 1.75em; height: 1.75em; }

/* ---------- Layout ------------------------------------------------------- */
.pgt-wrap { width: 100%; max-width: calc(var(--pgt-content-max) + 2 * var(--pgt-gutter)); margin-inline: auto; padding-inline: var(--pgt-gutter); }
@media (min-width: 600px) { :root { --pgt-gutter: 24px; } }
@media (min-width: 960px) { :root { --pgt-gutter: 32px; } }

.pgt-section { padding-block: var(--pgt-section-gap) 0; }
.pgt-section:last-child { padding-bottom: var(--pgt-section-gap); }
.pgt-section__more { margin-top: var(--pgt-space-5); text-align: center; }

/* Nadpis sekce – malý, zlatý, prostrkaný, se zlatými linkami po stranách */
.pgt-section-title {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin: 0 0 var(--pgt-space-6);
  font: 600 var(--pgt-fs-h2)/1.3 var(--pgt-font-head);
  letter-spacing: var(--pgt-track-section);
  text-transform: uppercase;
  color: var(--pgt-accent);
  text-align: center;
}
.pgt-section-title::before, .pgt-section-title::after { content: ""; flex: 0 1 180px; height: 1px; background: var(--pgt-line-strong); }
.pgt-section-title--left { justify-content: flex-start; }
.pgt-section-title--left::before { flex: 0 0 32px; }
.pgt-section-title--left::after { flex: 1 1 auto; }
@media (max-width: 599px) { .pgt-section-title { letter-spacing: .2em; gap: 12px; } .pgt-section-title::before, .pgt-section-title::after { flex-basis: 48px; } }

/* Mřížky */
.pgt-grid { display: grid; gap: var(--pgt-space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--pgt-grid-min, 280px)), 1fr)); }
.pgt-grid--2 { --pgt-grid-min: 340px; }
.pgt-grid--3 { --pgt-grid-min: 260px; }
.pgt-grid--4 { --pgt-grid-min: 220px; }
.pgt-stack > * + * { margin-top: var(--pgt-stack-gap, var(--pgt-space-4)); }
.pgt-row { display: flex; flex-wrap: wrap; gap: var(--pgt-space-3); align-items: center; }

/* ---------- Pozadí ------------------------------------------------------- */
/* Stránka: plná tmavě červená + světlejší šikmé pásy jako na plakátu (čisté CSS, bez obrázku). */
.pgt-page {
  background-color: var(--pgt-bg);
  background-image:
    repeating-linear-gradient(145deg,
      transparent 0 300px,
      rgba(179, 38, 30, .07) 330px, rgba(179, 38, 30, .16) 380px, rgba(179, 38, 30, .16) 470px, rgba(179, 38, 30, .07) 520px,
      transparent 560px 760px,
      rgba(179, 38, 30, .10) 790px, rgba(179, 38, 30, .10) 830px,
      transparent 860px 1300px),
    linear-gradient(180deg, var(--pgt-red-600) 0, var(--pgt-red-700) 700px, var(--pgt-red-900) 1600px);
  background-repeat: repeat, no-repeat;
}

/* Hlavní pás eventu (hero) – sytější červená, šikmé pásy, zaměřovací křížky */
.pgt-band {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    linear-gradient(145deg, transparent 0 38%, rgba(179, 38, 30, .22) 38% 52%, transparent 52% 60%, rgba(179, 38, 30, .12) 60% 64%, transparent 64%),
    var(--pgt-red-600);
  border-bottom: 1px solid var(--pgt-line);
}
.pgt-band--flat { background: var(--pgt-surface-solid); }

/* Akcent: zaměřovací křížek */
.pgt-mark { position: absolute; z-index: -1; width: 18px; height: 18px; opacity: .6; pointer-events: none; }
.pgt-mark::before, .pgt-mark::after { content: ""; position: absolute; background: var(--pgt-gold-500); }
.pgt-mark::before { left: 8px; top: 0; width: 2px; height: 18px; }
.pgt-mark::after { top: 8px; left: 0; height: 2px; width: 18px; }

/* ---------- Utility ------------------------------------------------------ */
.pgt-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pgt-skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--pgt-accent); color: var(--pgt-on-accent); font-weight: 600; border-radius: var(--pgt-radius-sm); }
.pgt-skip:focus { top: 12px; }
.pgt-center { text-align: center; }
.pgt-mt-0 { margin-top: 0 !important; }
.pgt-mt-4 { margin-top: var(--pgt-space-4); }
.pgt-mt-5 { margin-top: var(--pgt-space-5); }
