/* Bandolero workshopy – vzhled podle letáku (navy + zlatá na krémovém papíře).
   Barvy a fonty doladíš tady v :root. */
:root {
  --navy: #13234a;
  --navy-2: #1f3366;
  --gold: #b48a3c;
  --gold-2: #d6b36c;
  --gold-soft: #f3e6c8;
  --cream: #faf5ea;
  --paper: #fffdf8;
  --ink: #1c2233;
  --muted: #6d6656;
  --line: #e7dcc4;
  --ok: #2e6a4c;
  --ok-bg: #e5f1e9;
  --warn: #9a5f0c;
  --warn-bg: #fbefd9;
  --bad: #962f2f;
  --bad-bg: #f8e3e1;
  --info-bg: #e7ecf6;

  --f-display: "Playfair Display", Georgia, serif;
  --f-caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-script: "Allura", "Brush Script MT", cursive;
  --f-body: "Source Serif 4", Georgia, serif;
  --f-ui: "Source Sans 3", system-ui, sans-serif;
}
/* Pico overrides – stejná specificita jako Pico v2, proto i [data-theme] */
:root:not([data-theme=dark]), [data-theme=light] {
  --pico-font-family: var(--f-body);
  --pico-background-color: var(--cream);
  --pico-color: var(--ink);
  --pico-primary: var(--navy);
  --pico-primary-background: var(--navy);
  --pico-primary-border: var(--navy);
  --pico-primary-hover: var(--navy-2);
  --pico-primary-hover-background: var(--navy-2);
  --pico-primary-hover-border: var(--navy-2);
  --pico-primary-focus: rgba(180, 138, 60, .35);
  --pico-primary-inverse: #fff;
  --pico-secondary: var(--gold);
  --pico-secondary-background: var(--gold);
  --pico-secondary-border: var(--gold);
  --pico-secondary-hover-background: #9c7531;
  --pico-secondary-inverse: #fff;
  --pico-muted-color: var(--muted);
  --pico-muted-border-color: var(--line);
  --pico-card-background-color: var(--paper);
  --pico-card-sectioning-background-color: #fbf7ee;
  --pico-form-element-background-color: #fff;
  --pico-form-element-border-color: #d9ccb0;
  --pico-form-element-focus-color: var(--gold);
  --pico-border-radius: .5rem;
  --pico-h1-color: var(--navy);
  --pico-h2-color: var(--navy);
  --pico-h3-color: var(--navy);
  --pico-h4-color: var(--navy);
  --pico-typography-spacing-vertical: 1rem;
}

html { scroll-behavior: smooth; }
body { background: var(--cream); font-size: 17px; }
h1, h2, h3, h4 { font-family: var(--f-display); letter-spacing: -.01em; }
h1 { font-weight: 800; }
button, [role="button"], input, select, textarea, label, table, .ui { font-family: var(--f-ui); }
small, .muted { color: var(--muted); }
a { color: var(--navy-2); text-underline-offset: 3px; }
.container { max-width: 1080px; }

/* ---------- hlavička / patička ---------- */
.site-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(180, 138, 60, .25);
}
.site-head .container { display: flex; align-items: center; gap: 1rem; padding-block: .5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand img { height: 68px; width: auto; }
.brand .label { font-family: var(--f-caps); letter-spacing: .14em; font-size: .95rem; text-transform: uppercase; }
.brand .orn { color: var(--gold); font-size: 1.3rem; }
.site-head nav { margin-left: auto; display: flex; gap: .75rem; align-items: center; font-family: var(--f-ui); font-size: .95rem; }
.site-head nav form { margin: 0; }
.site-head nav button { padding: .3rem .8rem; font-size: .85rem; margin: 0; }
.site-foot { margin-top: 4rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); font-family: var(--f-ui); font-size: .9rem; color: var(--muted); }
.site-foot .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.rule { height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); border: 0; margin: 1.5rem auto; max-width: 420px; }

/* ---------- typografie z letáku ---------- */
.script { font-family: var(--f-script); color: var(--navy); font-size: 2.6rem; line-height: 1; font-weight: 400; }
.script.gold { color: var(--gold); }
.caps { font-family: var(--f-caps); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--navy); }
.eyebrow { font-family: var(--f-caps); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--gold); margin-bottom: .25rem; }

/* ---------- pozvánka ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 2.5rem; align-items: start; margin-top: 2rem; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; margin: .25rem 0 .75rem; text-transform: uppercase; }
.hero h1 em { display: block; font-family: var(--f-script); font-style: normal; text-transform: none; color: var(--gold); font-weight: 400; font-size: 1.25em; line-height: .95; }
.invitation { font-family: var(--f-script); font-size: 1.9rem; line-height: 1.2; color: var(--navy-2); margin: 1rem 0 1.5rem; }
.poster { border-radius: .6rem; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(19, 35, 74, .45); border: 1px solid var(--line); background: #fff; }
.poster img { display: block; width: 100%; height: auto; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--gold-2); border-bottom: 1px solid var(--gold-2); margin: 1.5rem 0; }
.facts > div { padding: .9rem .6rem; text-align: center; }
.facts > div:nth-child(even) { border-left: 1px solid var(--gold-2); }
.facts > div:nth-child(n+3) { border-top: 1px solid var(--gold-2); }
.facts strong a { word-break: break-word; }
.facts .caps { display: block; margin-bottom: .25rem; }
.facts strong { font-family: var(--f-display); color: var(--navy); font-size: 1.2rem; line-height: 1.2; display: block; }
.facts span.sub { font-size: .9rem; color: var(--muted); }

.prose h3 { font-family: var(--f-caps); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; margin: 1.5rem 0 .5rem; }
.prose ul { padding-left: 1.1rem; }
.prose ul li { list-style: none; position: relative; padding-left: .3rem; }
.prose ul li::before { content: ""; position: absolute; left: -1rem; top: .62em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--gold); }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.tier { position: relative; display: block; width: 100%; height: 100%; margin: 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--paper); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tier:hover { border-color: var(--gold-2); }
.tier input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.tier:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); background: #fffaf0; }
.tier .name { font-family: var(--f-display); font-weight: 700; color: var(--navy); font-size: 1.1rem; display: block; }
.tier .price { font-family: var(--f-display); font-weight: 800; color: var(--navy); font-size: 1.6rem; display: block; margin: .25rem 0; }
.tier .note { font-size: .9rem; color: var(--muted); display: block; }
.tier .seats { margin-top: .5rem; display: inline-block; }
.tier.full .price { color: var(--muted); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: .75rem; padding: 1.5rem; box-shadow: 0 10px 30px -22px rgba(19, 35, 74, .5); }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.contact-bar { background: var(--navy); color: #fff; border-radius: .75rem; padding: 1.1rem 1.4rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; font-family: var(--f-ui); }
.contact-bar .script { color: #fff; font-size: 2.2rem; }
.contact-bar a { color: var(--gold-2); }

/* ---------- štítky / stavy ---------- */
.badge { display: inline-block; font-family: var(--f-ui); font-size: .78rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: var(--info-bg); color: var(--navy); white-space: nowrap; }
.badge.ok, .badge.confirmed { background: var(--ok-bg); color: var(--ok); }
.badge.reserved, .badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.waitlist { background: var(--info-bg); color: var(--navy-2); }
.badge.cancelled, .badge.expired, .badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.gold { background: var(--gold-soft); color: #7a5a1d; }

.flash { padding: .75rem 1rem; border-radius: .5rem; background: var(--info-bg); color: var(--navy); font-family: var(--f-ui); margin: 1rem 0; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.err, .errors { background: var(--bad-bg); color: var(--bad); }
.flash.warn { background: var(--warn-bg); color: var(--warn); }
.errors { padding: .75rem 1rem .75rem 2rem; border-radius: .5rem; font-family: var(--f-ui); }
.errors li { margin: 0; }

/* ---------- platba ---------- */
.pay { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: center; }
.qr { background: #fff; padding: .5rem; border-radius: .5rem; border: 1px solid var(--line); }
.qr svg { display: block; width: 100%; height: auto; }
.paytable { margin: 0; font-family: var(--f-ui); }
.paytable th { font-weight: 400; color: var(--muted); width: 40%; }
.paytable td { font-weight: 600; }
.big { font-size: 1.35rem; font-family: var(--f-display); font-weight: 800; color: var(--navy); }

.credentials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.credentials div { background: #fff; border: 1px dashed var(--gold); border-radius: .5rem; padding: .75rem 1rem; text-align: center; }
.credentials code { font-size: 1.5rem; background: none; color: var(--navy); font-weight: 700; letter-spacing: .06em; }

/* ---------- portál / podklady ---------- */
.files { list-style: none; padding: 0; margin: 0; }
.files li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.files li:last-child { border-bottom: 0; }
.files .ico { width: 2.3rem; height: 2.3rem; border-radius: .4rem; background: var(--gold-soft); color: #7a5a1d; display: grid; place-items: center; font-family: var(--f-ui); font-size: .65rem; font-weight: 700; text-transform: uppercase; flex: none; }
.files .meta { flex: 1; min-width: 0; }
.files .meta a { font-weight: 600; }
.files .meta small { display: block; }
.files form { margin: 0; }
.files button { margin: 0; padding: .25rem .6rem; font-size: .8rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: .4rem; background: var(--gold-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }
.empty { color: var(--muted); font-style: italic; }

/* ---------- admin ---------- */
.admin-top { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.admin-top h1 { margin: 0; font-size: 1.9rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem; margin: 1.25rem 0; font-family: var(--f-ui); }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: .6rem; padding: .75rem 1rem; }
.stat b { display: block; font-family: var(--f-display); font-size: 1.7rem; color: var(--navy); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }
.stat.alert { border-color: #e8c27e; background: var(--warn-bg); }
.stat.alert b { color: var(--warn); }
.copy { display: flex; gap: .5rem; align-items: center; }
.copy input { margin: 0; font-family: ui-monospace, monospace; font-size: .85rem; }
.copy button { margin: 0; white-space: nowrap; width: auto; }
.table-wrap { overflow-x: auto; }
table.regs { font-family: var(--f-ui); font-size: .92rem; }
table.regs td, table.regs th { vertical-align: top; padding: .6rem .5rem; }
table.regs tr.overdue td { background: #fff6e6; }
table.regs .actions { display: flex; flex-wrap: wrap; gap: .3rem; }
table.regs .actions button { margin: 0; padding: .2rem .55rem; font-size: .78rem; width: auto; }
table.regs .creds { white-space: nowrap; font-family: ui-monospace, monospace; font-size: .8rem; background: var(--gold-soft); padding: .1rem .35rem; border-radius: .25rem; }
.row-flash { display: block; font-size: .78rem; color: var(--ok); margin-top: .3rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tier-row { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr auto; gap: .5rem; align-items: end; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.tier-row label { font-size: .8rem; margin: 0; }
.tier-row input { margin: 0; }
details.section { background: var(--paper); border: 1px solid var(--line); border-radius: .6rem; padding: .25rem 1rem; margin: 1rem 0; }
details.section > summary { font-family: var(--f-display); font-weight: 700; color: var(--navy); padding: .6rem 0; }
details.section[open] > summary { margin-bottom: .5rem; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }
.section-title h2 { margin: 0; }
.ws-list { display: grid; gap: 1rem; }
.ws-card { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.ws-card h3 { margin: 0 0 .25rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .pay { grid-template-columns: 1fr; }
  .qr { max-width: 240px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .tier-row { grid-template-columns: 1fr 1fr; }
  .ws-card { grid-template-columns: 1fr; }
  .brand img { height: 46px; }
  .brand { gap: .5rem; }
  .brand .label { font-size: .85rem; letter-spacing: .1em; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .credentials { grid-template-columns: 1fr; }
  .site-head nav a.hide-sm { display: none; }
}

/* ---------- úvodní stránka ---------- */
.welcome { text-align: center; margin: 2.5rem auto 1rem; max-width: 720px; }
.welcome .script { font-size: 3.4rem; color: var(--gold); margin-bottom: 0; }
.welcome h1 { font-size: clamp(2rem, 4vw, 2.8rem); text-transform: uppercase; margin: .25rem 0 .75rem; }
.welcome .lead { font-size: 1.1rem; color: var(--muted); }
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 1.25rem; margin-top: 1rem; }
.ws-tile { display: grid; grid-template-columns: 210px minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; box-shadow: 0 10px 30px -22px rgba(19, 35, 74, .5); margin: 0; padding: 0; }
.ws-tile:not(:has(.ws-thumb)) { grid-template-columns: 1fr; }
.ws-thumb { display: block; background: #f3ecdc; border-right: 1px solid var(--line); padding: .75rem; }
.ws-thumb img { width: 100%; height: auto; display: block; border-radius: .3rem; box-shadow: 0 6px 16px -10px rgba(19, 35, 74, .6); }
.ws-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; }
.ws-date { display: flex; align-items: baseline; gap: .6rem; border-bottom: 1px solid var(--gold-2); padding-bottom: .4rem; margin-bottom: .6rem; }
.ws-date b { font-family: var(--f-display); font-size: 1.6rem; color: var(--navy); line-height: 1; }
.ws-date span { font-family: var(--f-caps); letter-spacing: .1em; font-size: .78rem; color: var(--gold); }
.ws-body h3 { margin: 0 0 .15rem; font-size: 1.3rem; line-height: 1.2; }
.ws-body h3 a { color: var(--navy); text-decoration: none; }
.ws-place { margin: 0 0 .4rem; font-size: .95rem; }
.ws-quote { font-family: var(--f-script); font-size: 1.45rem; line-height: 1.15; color: var(--navy-2); margin: .2rem 0 .6rem; }
.ws-prices { list-style: none; padding: 0; margin: 0 0 .6rem; font-family: var(--f-ui); font-size: .95rem; }
.ws-prices li { display: flex; align-items: baseline; gap: .4rem; list-style: none; margin: .15rem 0; }
.ws-prices .dots { flex: 1; border-bottom: 1px dotted #cdbf9f; transform: translateY(-.25em); }
.ws-prices strong { color: var(--navy); white-space: nowrap; }
.ws-status { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 .9rem; }
.ws-body [role=button] { margin-top: auto; align-self: flex-start; }
.past-list .ico { width: auto; min-width: 2.6rem; padding: 0 .35rem; }
@media (max-width: 560px) {
  .past-list li { flex-wrap: wrap; }
  .past-list li > a.ui { flex-basis: 100%; padding-left: 3.4rem; }
  .section-title small { display: none; }
  .ws-tile { grid-template-columns: 1fr; }
  .ws-thumb { border-right: 0; border-bottom: 1px solid var(--line); display: flex; justify-content: center; }
  .ws-thumb img { max-width: 220px; }
  .welcome .script { font-size: 2.8rem; }
}

/* seznamy v kartách: vnitřní odsazení (pravidlo .files { padding: 0 } jinak přebije .panel) */
ul.files.panel { padding: .35rem 1.4rem; }
ul.files.panel > li { padding: .85rem 0; gap: 1rem; }
.section-title + .panel, .section-title + ul.panel, .section-title + .ws-grid { margin-top: .9rem; }
.section-title + .empty { margin-top: .5rem; }
@media (max-width: 560px) {
  ul.files.panel { padding: .25rem 1rem; }
}

/* detail: blok Cena jako poslední informace (jako na letáku) */
.price-block .ws-prices { font-family: var(--f-body); font-size: 1.05rem; max-width: 460px; padding-left: 0; margin-top: .4rem; }
.price-block .ws-prices .dots { border-bottom-color: var(--gold-2); }
.price-block .ws-prices li { list-style: none; padding-left: 0; margin: .35rem 0; }
.price-block .ws-prices li::before { display: none; }
.price-block .ws-prices strong { font-family: var(--f-display); font-size: 1.2rem; }

/* výběr varianty: cena až na konci a menší */
.tier { display: flex; flex-direction: column; }
.tier .seats { align-self: flex-start; }
.tier .price { font-size: 1.1rem; font-weight: 700; margin: 0; margin-top: auto; padding-top: .6rem; border-top: 1px dotted var(--gold-2); color: var(--navy); }
.tier > :nth-last-child(2) { margin-bottom: .8rem; }   /* mezera nad cenou */

/* dotazník */
fieldset.survey { border: 1px dashed var(--gold-2); border-radius: .6rem; padding: .9rem 1.1rem .2rem; margin: .5rem 0 1rem; background: #fffaf0; }
fieldset.survey legend { padding: 0 .4rem; }
fieldset.survey legend small { text-transform: none; letter-spacing: 0; font-family: var(--f-ui); }
fieldset.survey textarea { font-family: var(--f-ui); }
.survey-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 1rem; margin-top: .9rem; }
.survey-card { margin: 0; padding: 1.1rem 1.25rem; }
.survey-card header { display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; margin-bottom: .6rem; }
.survey-card header .badge { margin-left: auto; }
.survey-card p { margin: 0 0 .6rem; white-space: pre-line; font-size: .95rem; }
.survey-card .caps { font-size: .7rem; color: var(--gold); }

.hero-cta { margin: -.25rem 0 1.5rem; }
.hero-cta [role=button] { margin: 0; }
#registrace { scroll-margin-top: 1rem; }
