/* IT music jam – #17 · Out of office. On stage. */

@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/anton-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/anton-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --yellow: #EFD700;
  --black: #111111;
  --night: #212739;
  --asphalt: #383838;
  --paper: #F4F1EA;
  --white: #FFFFFF;
  --line: #BDB9AF;
  --muted: #555555;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.6;
}
a { color: inherit; }
a:hover { color: var(--asphalt); }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 8px; top: -60px; background: var(--black); color: var(--yellow); padding: 10px 14px; z-index: 10; }
.skip:focus { top: 8px; }

/* Kurzor – bliká jen jednou na stránce (.blink) */
.cursor { display: inline-block; width: .4em; height: .72em; background: currentColor; margin-left: .08em; }
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } html { scroll-behavior: auto; } }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 26px;
  font: 600 17px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; text-align: center; border: 2px solid var(--black); border-radius: 0; cursor: pointer;
}
.btn-sm { min-height: 46px; padding: 10px 18px; font-size: 15px; }
.btn-dark { background: var(--black); color: var(--yellow); }
.btn-dark:hover { background: var(--asphalt); color: var(--yellow); }
.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--yellow); }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--black); color: var(--yellow); }

/* Hlavička */
.site-header { padding-top: 24px; }
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 18px; border-bottom: 2px solid var(--black);
}
.logo { font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.menu {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px;
  list-style: none; margin: 0; padding: 0;
  font-size: 15px; text-transform: uppercase; letter-spacing: .05em;
}
.menu a:not(.btn) { text-decoration: none; display: inline-block; padding: 10px 0; }
.menu a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; }

@media (max-width: 940px) {
  .js .menu-toggle {
    display: inline-flex; min-height: 46px; padding: 8px 16px;
    background: var(--black); color: var(--yellow); border: 0;
    font: 600 15px var(--mono); text-transform: uppercase; letter-spacing: .05em; cursor: pointer;
  }
  .js .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .js .menu.open { display: flex; }
  .js .menu li { border-top: 1px solid var(--line); }
  .js .menu a:not(.btn) { display: block; padding: 14px 0; }
  .js .menu .btn { width: 100%; margin-top: 12px; }
}

/* Horní žlutá část (jen úvodní stránka) */
.home .top { background: var(--yellow); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--yellow); padding-bottom: 72px; }
.halftone {
  position: absolute; right: -140px; bottom: -180px; width: 640px; height: 640px; border-radius: 50%;
  background-image: radial-gradient(var(--black) 2.6px, transparent 3px); background-size: 14px 14px; opacity: .2;
  pointer-events: none;
}
.hero-grid { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 48px; padding-top: 64px; }
.hero-main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-main h1 { font-family: var(--display); font-size: clamp(84px, 14vw, 224px); line-height: .84; }
.tag { font-size: 15px; font-weight: 600; letter-spacing: .1em; }
.hero-side { flex: 0 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 38px; }
.edition {
  font-family: var(--display); font-size: clamp(110px, 12vw, 190px); line-height: 1; text-align: center;
  background: var(--black); color: var(--yellow); padding: 12px 24px 2px; margin-bottom: 10px;
}
.band { position: relative; margin: 88px -60px 0; background: var(--black); color: var(--yellow); transform: rotate(-2deg); }
.band-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 40px;
  padding-top: 22px; padding-bottom: 22px; font-weight: 600; font-size: clamp(16px, 2vw, 27px); letter-spacing: .03em;
}

/* O festivalu */
.about { display: flex; flex-direction: column; gap: 40px; }
.about-text p { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.55; max-width: 44rem; }
.about-text p + p { margin-top: 1em; }
.facts { list-style: none; margin: 0; padding: 24px 0 0; border-top: 2px solid var(--black); display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.facts li { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; }
.fact-big { font-family: var(--display); font-size: 56px; line-height: 1; }
.history-link {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px;
  background: var(--black); color: var(--yellow); padding: 28px 36px; text-decoration: none;
  font-family: var(--display); font-size: clamp(36px, 4.6vw, 68px); line-height: 1;
}
.history-link:hover { background: var(--asphalt); color: var(--yellow); }

/* Historie */
.h-intro { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-end; padding-top: 72px; padding-bottom: 56px; }
.h-title { flex: 0 1 auto; font-family: var(--display); font-size: clamp(72px, 12vw, 184px); line-height: 1; white-space: nowrap; }
.h-perex { flex: 999 1 420px; font-size: 19px; max-width: 42rem; }
.h-quote-wrap { padding-bottom: 72px; }
.h-quote { margin: 0; background: var(--yellow); padding: clamp(24px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 16px 48px; }
.h-quote-mark { font-family: var(--display); font-size: 160px; line-height: 0; height: 64px; width: 72px; flex: none; position: relative; top: -64px; }
.h-quote blockquote { margin: 0; flex: 1 1 420px; }
.h-quote blockquote p { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; }
.h-quote figcaption { flex-basis: 100%; font-size: 15px; font-weight: 600; letter-spacing: .06em; }
.h-stats { background: var(--black); color: var(--yellow); }
.h-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.h-stats-grid div { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--paper); }
.h-stat-big { font-family: var(--display); font-size: 72px; line-height: 1; color: var(--yellow); }

.h-nav { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 2px solid var(--black); }
.h-nav .wrap { padding-top: 14px; padding-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.h-chips { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.h-chip { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 7px 10px; border: 2px solid var(--black); background: var(--white); text-decoration: none; font-size: 11px; font-weight: 600; }
.h-chip:hover, .h-chip.is-active { background: var(--black); color: var(--yellow); }
.h-chip.is-next { background: var(--yellow); }
.h-chip-year { font-family: var(--display); font-size: 22px; font-weight: 400; line-height: 1; }
.h-eras { display: flex; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.h-era { border-top: 4px solid var(--black); padding-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.h-era-1 { border-color: var(--asphalt); } .h-era-2 { border-color: var(--night); } .h-era-3 { border-color: var(--yellow); }

.year { display: flex; flex-wrap: wrap; gap: 40px 56px; padding-top: 72px; padding-bottom: 72px; border-bottom: 2px solid var(--black); scroll-margin-top: 110px; }
.year-meta { flex: 1 1 280px; max-width: 340px; display: flex; flex-direction: column; gap: 18px; align-self: flex-start; position: sticky; top: 130px; }
.year-head { display: flex; align-items: flex-end; gap: 16px; }
.year-ed { font-family: var(--display); font-size: clamp(72px, 7vw, 96px); line-height: 1; background: var(--black); color: var(--yellow); padding: 8px 18px 0; }
.year-num { font-family: var(--display); font-size: clamp(48px, 5vw, 64px); line-height: .9; }
.year-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; line-height: 1.45; border-top: 2px solid var(--black); padding-top: 16px; }
.year-dl dt { font-weight: 600; } .year-dl dd { margin: 0; }
.year-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.year-tags li { border: 2px solid var(--black); padding: 2px 8px; font-size: 13px; font-weight: 600; }
.year-tags li.is-main { background: var(--yellow); border-color: var(--yellow); }
.year-body { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.year-text { max-width: 46rem; display: flex; flex-direction: column; gap: 14px; }
.year-lead p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }
.year-more summary { cursor: pointer; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; text-decoration: underline; text-underline-offset: 4px; list-style: none; padding: 6px 0; }
.year-more summary::-webkit-details-marker { display: none; }
.year-more summary::after { content: " ↓"; }
.year-more[open] summary { margin-bottom: 12px; }
.year-more[open] summary::after { content: " ↑"; }
.year-more p { font-size: 17px; line-height: 1.65; }
.year-more p + p { margin-top: 1em; }
.year-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.year-next { background: var(--yellow); max-width: none; padding-left: max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter))); }
.year-next .year-tags li.is-main { background: var(--black); color: var(--yellow); border-color: var(--black); }
.year-block { display: flex; flex-direction: column; gap: 12px; }
.year-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.year-label a { font-weight: 600; }
.year-album { font-weight: 600; }

.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
.photo { display: block; overflow: hidden; background: var(--asphalt); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.photo:hover img { transform: scale(1.04); }
.photo-main { grid-column: span 2; grid-row: span 2; }
.photos-1 { grid-template-columns: 1fr; grid-auto-rows: 380px; } .photos-1 .photo-main { grid-column: auto; grid-row: auto; }
.photos-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; } .photos-2 .photo-main { grid-column: auto; grid-row: auto; }

.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.video { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.video figcaption { font-size: 15px; font-weight: 600; }
.video-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; border: 0; padding: 0; background: var(--black); background-image: radial-gradient(#2A2A2A 1.4px, transparent 1.8px); background-size: 10px 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video-frame:hover .video-play { transform: scale(1.1); }
.video-play { width: 0; height: 0; border-left: 34px solid var(--yellow); border-top: 21px solid transparent; border-bottom: 21px solid transparent; margin-left: 8px; transition: transform .2s; }
.video-tag { position: absolute; left: 12px; top: 12px; background: var(--yellow); color: var(--black); font: 600 12px var(--mono); padding: 3px 8px; }
.video-frame iframe, .video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

.lineup { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--black); }
.lineup li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.lineup-n { font-size: 13px; color: var(--muted); padding-top: 3px; }
.lineup-people { font-size: 14px; color: var(--muted); }

.h-regulars .section-head { margin-bottom: 40px; }
.h-regulars-perex { max-width: 34rem; color: var(--asphalt); }
.regulars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.regulars li { background: var(--white); border: 2px solid var(--black); padding: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.regular-name { font-family: var(--display); font-size: 34px; line-height: 1.05; }
.regular-years { align-self: flex-start; background: var(--yellow); padding: 2px 8px; font-size: 14px; font-weight: 600; }
.h-regulars-note { margin-top: 32px; max-width: 48rem; font-size: 16px; color: var(--asphalt); }

.h-cta { background: var(--yellow); }
.h-cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding-top: 72px; padding-bottom: 72px; }
.h-cta-title { font-family: var(--display); font-size: clamp(44px, 6vw, 88px); line-height: 1.02; }
.h-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(17, 17, 17, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 80px); object-fit: contain; }
.lightbox button { position: absolute; background: var(--yellow); color: var(--black); border: 0; width: 52px; height: 52px; font: 400 34px/1 var(--display); cursor: pointer; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 760px) {
  .year { padding-top: 48px; padding-bottom: 48px; gap: 24px; scroll-margin-top: 100px; }
  .year-meta { position: static; max-width: none; }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
  .photo-main { grid-column: span 2; grid-row: span 2; }
  .h-eras { display: none; }
  .lightbox img { max-width: 100vw; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
}


/* Sekce */
.section { padding-top: 96px; padding-bottom: 96px; }
section[id] { scroll-margin-top: 16px; }
.section-title { font-family: var(--display); font-size: clamp(60px, 7.5vw, 108px); line-height: .9; }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > .section-title { flex: 1 1 300px; }
.split > :not(.section-title) { flex: 999 1 560px; min-width: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }

.program { list-style: none; margin: 0; padding: 0; font-size: 19px; line-height: 1.4; border-top: 2px solid var(--black); border-bottom: 2px solid var(--black); }
.program li { display: flex; gap: 32px; padding: 20px 0; }
.program li + li { border-top: 1px solid var(--line); }
.program-time { width: 96px; flex: none; }

.section-white { background: var(--white); border-top: 2px solid var(--black); border-bottom: 2px solid var(--black); }
.musicians { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.musician { border: 2px solid var(--black); background: var(--paper); padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.musician-name { font-family: var(--display); font-size: 30px; line-height: 1.05; }

.section-dark { background: var(--black); color: var(--paper); }
.section-dark .section-title { color: var(--yellow); margin-bottom: 48px; }
.section-dark a { color: var(--paper); }
.section-dark a:hover { color: var(--yellow); }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; font-size: 18px; }
.contact > div { border-top: 2px solid var(--yellow); padding-top: 18px; }
.contact h3 { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--yellow); margin-bottom: 14px; }
.contact address { font-style: normal; }
.section-dark .link-yellow { display: inline-block; margin-top: 12px; color: var(--yellow); font-size: 15px; }

/* Patička */
.site-footer { background: var(--yellow); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.footer-logo { font-family: var(--display); font-size: 56px; line-height: .9; text-decoration: none; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.footer-menu a { text-decoration: none; display: inline-block; padding: 8px 0; }
.footer-menu a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 2px solid var(--black); padding-top: 18px; font-size: 14px; }

/* Chci hrát */
.apply-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 64px; padding-bottom: 104px; }
.apply-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.apply-intro h1 { font-family: var(--display); font-size: clamp(84px, 10vw, 150px); line-height: 1; }
.apply-lead { font-size: 18px; max-width: 28rem; }
.apply-event { display: flex; align-items: center; gap: 16px; font-size: 15px; line-height: 1.5; }
.edition-sm { font-family: var(--display); font-size: 52px; line-height: 1; background: var(--black); color: var(--yellow); padding: 6px 12px 2px; }
.card { flex: 999 1 560px; min-width: 0; background: var(--white); border: 2px solid var(--black); padding: clamp(22px, 4vw, 48px); }
.thanks h2 { font-family: var(--display); font-size: 72px; line-height: 1; margin-bottom: 16px; }
.thanks p + p { margin-top: 24px; }

.form { display: flex; flex-direction: column; gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label:not(.radio), .field > legend { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 0; }
.field > legend { margin-bottom: 12px; }
input[type=text], input[type=email], input[type=tel], input[type=password], textarea {
  width: 100%; border: 2px solid var(--black); border-radius: 0; background: var(--white);
  padding: 14px; font: 16px/1.4 var(--mono); color: var(--black);
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; }
.has-error input, .has-error textarea { border-color: #B3261E; }
.err { color: #B3261E; font-size: 14px; }
.form-error { background: #FBE9E7; border: 2px solid #B3261E; color: #8C1D18; padding: 12px 14px; font-size: 15px; }
.form-ok { background: #EAF4E4; border: 2px solid #2E6B1F; color: #1F4D14; padding: 12px 14px; font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px; border: 2px solid var(--black); background: var(--white); font-weight: 600; font-size: 15px; }
.chip input:checked + span { background: var(--yellow); }
.chip input:checked + span::before { content: "✓"; margin-right: 8px; }
.chip input:focus-visible + span { outline: 3px solid var(--black); outline-offset: 2px; }
.chip:hover span { background: #FAF3B3; }
.chip input:checked:hover + span { background: var(--yellow); }

.radio, .check { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; cursor: pointer; padding: 8px 0; }
.radio input, .check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--black); flex: none; }
.check { font-size: 15px; }
.form-submit { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 404 */
.notfound-main { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

/* Admin */
.admin { padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.admin-login { max-width: 420px; }
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.admin-bar span:last-child { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-security { flex: none; max-width: 640px; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.admin-security summary { cursor: pointer; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; }
.admin-security[open] summary { margin-bottom: 12px; }
.admin-security p { font-size: 15px; line-height: 1.5; margin-bottom: 12px; }
.admin-pw { display: flex; flex-direction: column; gap: 14px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.admin > * { min-width: 0; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 2px solid var(--black); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--black); color: var(--yellow); white-space: nowrap; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .logo { font-size: 26px; }
  .hero { padding-bottom: 56px; }
  .hero-grid { padding-top: 32px; gap: 28px; }
  .hero-side { margin-top: 0; flex-basis: 100%; }
  .edition { align-self: flex-start; padding: 8px 20px 2px; }
  .band { margin: 56px -30px 0; transform: rotate(-3deg); }
  .band-inner { flex-direction: column; padding-left: 46px; padding-right: 46px; }
  .halftone { width: 340px; height: 340px; right: -120px; bottom: -120px; background-size: 11px 11px; }
  .history-link { padding: 22px 20px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .program li { gap: 16px; }
  .program-time { width: 72px; }
  .footer-logo { font-size: 44px; }
  .apply-layout { padding-top: 32px; gap: 32px; }
}

/* Svědectví (citace z knih apod.) */
.witness { margin: 0; background: var(--white); border: 2px solid var(--black); border-left: 10px solid var(--yellow); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; max-width: 46rem; }
.witness-title { font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); line-height: 1; text-transform: uppercase; }
.witness-text { margin: 0; font-size: 17px; line-height: 1.65; }
.witness-text p { font-size: inherit; line-height: inherit; }
.witness-text p + p { margin-top: .9em; }
.witness-text.is-clamped { max-height: 8.25em; overflow: hidden; position: relative; }
.witness-text.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.3em; background: linear-gradient(rgba(255,255,255,0), var(--white)); }
.witness-toggle { align-self: flex-start; background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: inherit; }
.witness-toggle::after { content: " ↓"; }
.witness-toggle[aria-expanded="true"]::after { content: " ↑"; }
.witness-note { font-size: 15px; line-height: 1.5; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.witness-src { font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.h-regulars-witness { margin-top: 32px; }
.h-regulars-witness .witness { max-width: none; }
.year-next .witness { background: var(--paper); }
.year-next .witness-text.is-clamped::after { background: linear-gradient(rgba(244,241,234,0), var(--paper)); }
@media (max-width: 600px) { .witness { border-left-width: 6px; } .witness-text { font-size: 16px; } }
