/* ============================================================
   HARCOVNÍK — Informace k táboru (široká přehledová stránka, #95)
   Staví na styles.css + themes.css (sdílené proměnné). Z Claude Designu.
   ============================================================ */

/* širší layout než zbytek webu — víc místa do šířky */
.ti-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* pagehead s akcí vpravo */
.ti-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ti-head__main { max-width: 760px; }
.ti-print { display: inline-flex; align-items: center; gap: 9px; flex: none; padding: 12px 20px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 14.5px; transition: border-color .15s, color .15s, transform .12s; cursor: pointer; }
.ti-print:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.ti-print svg { width: 17px; height: 17px; }

/* —— rychlá fakta (široký pruh) —— */
.ti-facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 4px; }
.ti-fact { background: var(--surface); padding: 18px 20px; }
.ti-fact .l { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.ti-fact .l svg { width: 14px; height: 14px; color: var(--accent); }
.ti-fact .v { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 2vw, 23px); margin-top: 9px; line-height: 1.05; }
.ti-fact .s { font-size: 13px; color: var(--muted); margin-top: 5px; }

/* —— sekční nadpis —— */
.ti-sh { display: flex; align-items: center; gap: 13px; margin: 0 0 22px; }
.ti-sh__ic { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 12%, var(--surface)); color: var(--accent); }
.ti-sh__ic svg { width: 21px; height: 21px; }
.ti-sh h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1; }
.ti-sh p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* —— dvousloupcové uspořádání —— */
.ti-2col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.ti-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* karta */
.ti-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 32px); box-shadow: var(--shadow); }
.ti-card--accent { border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); }

/* —— definiční řádky (cena, platba, info) —— */
.ti-rows { display: flex; flex-direction: column; }
.ti-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.ti-row:last-child { border-bottom: none; }
.ti-row__k { font-size: 15px; color: var(--ink); }
.ti-row__k small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ti-row__v { font-family: var(--mono); font-size: 15px; font-weight: 500; white-space: nowrap; text-align: right; color: var(--ink); }
.ti-row__v.pos { color: var(--zelena); }
.ti-row__v.neg { color: var(--cervena); }
.ti-row--total { border-top: 2px solid var(--ink); border-bottom: none; margin-top: 4px; padding-top: 14px; }
.ti-row--total .ti-row__k { font-family: var(--display); font-weight: 800; font-size: 17px; }
.ti-row--total .ti-row__v { font-family: var(--display); font-weight: 800; font-size: 19px; }

/* zvýrazněný řádek (účet apod.) */
.ti-pay { display: grid; gap: 12px; }
.ti-payrow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.ti-payrow__ic { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.ti-payrow__ic svg { width: 19px; height: 19px; }
.ti-payrow__tx { min-width: 0; }
.ti-payrow__l { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ti-payrow__v { font-family: var(--display); font-weight: 700; font-size: 17px; margin-top: 2px; word-break: break-word; }
.ti-payrow__v small { font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--muted); }

/* —— kroky přihlášení —— */
.ti-steps { display: grid; gap: 12px; counter-reset: s; }
.ti-step { display: flex; gap: 14px; align-items: flex-start; }
.ti-step__n { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 800; font-size: 15px; display: grid; place-items: center; margin-top: 1px; }
.ti-step__t { font-size: 15px; line-height: 1.5; padding-top: 3px; }
.ti-step__t b { font-family: var(--display); }
.ti-window { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-radius: var(--radius); background: color-mix(in oklab, var(--zluta) 14%, var(--surface)); border: 1px solid color-mix(in oklab, var(--zluta) 32%, transparent); margin-bottom: 16px; font-size: 14px; }
.ti-window svg { width: 18px; height: 18px; color: #9a6b08; flex: none; }
.ti-window b { font-family: var(--display); }

/* —— storno —— */
.ti-storno { display: grid; gap: 10px; }
.ti-storno__item { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.ti-storno__pct { font-family: var(--display); font-weight: 800; font-size: 22px; flex: none; width: 64px; }
.ti-storno__item--lo .ti-storno__pct { color: var(--zelena); }
.ti-storno__item--mid .ti-storno__pct { color: var(--zluta); }
.ti-storno__item--hi .ti-storno__pct { color: var(--cervena); }
.ti-storno__tx { font-size: 14px; color: var(--ink); }
.ti-storno__note { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.ti-storno__note b { color: var(--ink); }
/* editovatelný markdown blok (storno/doplňkové z DB) – ať sedí do karty */
.ti-rich { font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.ti-rich ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.ti-rich p { margin: 0 0 10px; }
.ti-rich strong, .ti-rich b { font-family: var(--display); }

/* —— telefony —— */
.ti-phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ti-phone { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .12s, box-shadow .15s; }
.ti-phone:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.ti-phone__av { width: 50px; height: 50px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 18px; }
.ti-phone__tx { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ti-phone__role { font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ti-phone__name { font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1; }
.ti-phone__num { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--accent); margin-top: 1px; letter-spacing: .01em; }
.ti-phone--tel .ti-phone__av { background: var(--ink); }

/* —— pravidla —— */
.ti-rules { columns: 2; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.ti-rules li { break-inside: avoid; display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; margin-bottom: 14px; color: var(--ink); }
.ti-rules .ic { width: 24px; height: 24px; border-radius: 7px; flex: none; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 11%, var(--surface)); color: var(--accent); margin-top: 1px; }
.ti-rules .ic svg { width: 14px; height: 14px; }
.ti-rules .ic--warn { background: color-mix(in oklab, var(--cervena) 11%, var(--surface)); color: var(--cervena); }

/* ============================================================
   SEZNAM VĚCÍ — seskupený checklist s ikonami
   ============================================================ */
.ti-packbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ti-packbar__prog { flex: 1; min-width: 180px; }
.ti-packbar__bar { height: 9px; border-radius: 99px; background: color-mix(in oklab, var(--ink) 8%, transparent); overflow: hidden; }
.ti-packbar__fill { display: block; height: 100%; background: var(--zelena); border-radius: 99px; transition: width .3s var(--ease); }
.ti-packbar__tx { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.ti-packbar__tx b { font-family: var(--display); color: var(--ink); }
.ti-packclear { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--muted); font-family: var(--display); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: color .15s, border-color .15s; }
.ti-packclear:hover { color: var(--cervena); border-color: var(--cervena); }
.ti-packclear svg { width: 15px; height: 15px; }

.ti-packgrid { columns: 3; column-gap: 16px; }
.ti-pack { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); break-inside: avoid; margin: 0 0 16px; display: inline-block; width: 100%; }
.ti-pack__h { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.ti-pack__ic { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; }
.ti-pack__ic svg { width: 19px; height: 19px; }
.ti-pack__t { font-family: var(--display); font-weight: 800; font-size: 16.5px; flex: 1; }
.ti-pack__n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ti-pack__list { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 1px; }
.ti-check { display: flex; align-items: flex-start; gap: 11px; padding: 9px 11px; border-radius: 9px; cursor: pointer; transition: background .12s; user-select: none; }
.ti-check:hover { background: var(--surface-2); }
.ti-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.ti-check__box { width: 20px; height: 20px; border-radius: 6px; border: 1.8px solid var(--line-strong); flex: none; display: grid; place-items: center; margin-top: 1px; transition: background .14s, border-color .14s; background: var(--surface); }
.ti-check__box svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(.5); transition: opacity .14s, transform .14s; }
.ti-check input:checked + .ti-check__box { background: var(--zelena); border-color: var(--zelena); }
.ti-check input:checked + .ti-check__box svg { opacity: 1; transform: scale(1); }
.ti-check input:focus-visible + .ti-check__box { box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent); }
.ti-check__tx { font-size: 14px; line-height: 1.4; padding-top: 1px; }
.ti-check input:checked ~ .ti-check__tx { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }

/* setnina II/III blok — žlutý akcent */
.ti-pack--extra { border-color: color-mix(in oklab, var(--zluta) 34%, var(--line)); background: color-mix(in oklab, var(--zluta) 5%, var(--surface)); }
.ti-pack--extra .ti-pack__h { border-color: color-mix(in oklab, var(--zluta) 28%, var(--line)); }

/* poznámka pod sekcí */
.ti-note { display: flex; gap: 11px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 18px; }
.ti-note svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 1px; }
.ti-note b { color: var(--ink); }

/* placeholder (nezveřejněno) */
.ti-placeholder { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .ti-facts { grid-template-columns: repeat(2, 1fr); }
  .ti-packgrid { columns: 2; }
  .ti-phones, .ti-3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .ti-2col { grid-template-columns: 1fr; }
  .ti-packgrid { columns: 1; }
  .ti-phones, .ti-3col { grid-template-columns: 1fr; }
  .ti-facts { grid-template-columns: 1fr; }
  .ti-rules { columns: 1; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  @page { margin: 14mm; }
  header, .ti-print, .ti-packbar, .ti-packclear { display: none !important; }
  body { background: #fff; }
  .ti-card, .ti-pack, .ti-phone { box-shadow: none; break-inside: avoid; }
  .section--tight { padding: 14px 0; }
  .ti-check__box { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
