/* ITFIT Atlas mobility – doplňky nad převzatým základem (zaklad.css).
   Tady se ladí vzhled: písmo, logo, červené akcenty, čitelnost, patička Svět ITFIT. */

@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext.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: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin.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; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1 { font-weight: 750; letter-spacing: -.035em; }
h2 { letter-spacing: -.02em; }

:is(button, a, summary, select, input):focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.search:focus-within, .select-wrap:focus-within { outline: 3px solid var(--coral); }
.search input:focus-visible, .select-wrap select:focus-visible, .sort-select select:focus-visible { outline: 0; }

/* ---- logo ---- */
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 12px 40px; }
.brand img { display: block; width: 96px; height: 28px; }
.brand small { margin: 0; letter-spacing: 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.topbar-logo { display: none; }

/* ---- červené akcenty ---- */
.page-intro h1 em { color: var(--coral); }
.button.primary { background: var(--red); border-color: var(--red); color: var(--on-red); font-weight: 650; }
.button.primary:hover:not(:disabled) { background: var(--red-hover); border-color: var(--red-hover); }
.chip.active { background: var(--red); border-color: var(--red); color: var(--on-red); font-weight: 600; }
.chip span { opacity: .85; }
.nav-item.active { background: #2e292b; color: #fff; }
.nav-item.active svg { color: var(--coral); }
.number-choices button.active, .plan-rounds button.active, .plan-days button.selected { color: var(--on-red); font-weight: 650; }
.plan-days button.complete:not(.selected) { color: #fff; background: #3a2224; border-color: #a04a4c; }
.plan-days button.complete svg { color: var(--coral); }
.plan-days button.selected svg { color: var(--on-red); }
.add-routine:hover, .add-routine.added { color: var(--coral); background: #3a2224; border-color: var(--coral); }
.favorite-button.selected { color: var(--red); }
.type-badge > span { background: var(--coral); }
.type-badge.pending { color: var(--muted); }
.type-badge.pending > span { background: var(--muted); }
.saved-state svg { color: var(--coral); }
.shuffle-icon { background: #3a2224; color: var(--coral); }
.avatar { background: #3a2224; color: #fff; font-weight: 600; }
.toast { background: #fff; color: var(--on-red); font-weight: 550; }
.toast svg { color: #c8181b; }
.circuit-clock, .practice .timer { color: #fff; }
.circuit-clock.rest { color: var(--coral); }
.video-link { color: var(--coral); }
.error-banner { color: #ffd9da; }

/* ---- obrázky cviků ---- */
.crop-image > img.photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.search button[hidden] { display: none; }
.search input[type="search"]::-webkit-search-cancel-button { display: none; }

/* ---- čitelnost: nic pod 12 px, hlavní texty větší ---- */
.search input, .select-wrap select, .sort-select, .sort-select select { font-size: 14px; }
.sort-select select { max-width: 130px; }
.chip { font-size: 13px; }
.breadcrumb { font-size: 14px; }
.sidebar-label { letter-spacing: .08em; font-size: 12px; color: var(--muted); }
.sidebar-note p, .sidebar-bottom small, .count-label, .library-foot, .routine-number, .source-link, .saved-state { color: var(--muted); }
.card-regions { letter-spacing: .06em; font-weight: 600; }
.english-title { color: var(--muted); }
.eyebrow { color: var(--muted); letter-spacing: .14em; }
.tip b { letter-spacing: .08em; }
.generator-invite strong { font-size: 14px; }
.modal-head h2 { font-size: 16px; font-weight: 600; }
.detail-note { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.detail-note b { color: #fff; font-weight: 600; }
.view-switch button { width: 36px; height: 34px; }
.plan-days button { min-height: 40px; font-size: 14px; }
.plan-paging button, .templates-back { display: inline-flex; align-items: center; gap: 6px; }

/* ---- patička Svět ITFIT ---- */
.page-footer { display: block; margin-top: 56px; padding: 34px 0 30px; letter-spacing: 0; font-size: 14px; color: var(--muted); }
.world-title { margin: 0 0 18px; font-size: 12px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.world-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); gap: 28px 48px; }
.world-group { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.world ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.world a { display: inline-flex; align-items: baseline; gap: 8px; min-height: 36px; padding: 6px 0; font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; }
.world a:hover { color: var(--coral); }
.world a small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.world a[aria-current="page"] { color: var(--coral); }
.footer-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
.footer-brand img { display: block; width: 62px; height: 18px; }
.footer-brand span { padding-left: 12px; border-left: 1px solid var(--line); line-height: 18px; }
.page-footer .footer-line small { font-size: 13px; letter-spacing: 0; color: var(--muted); }
.page-footer .version { margin-left: auto; font-size: 12px; color: #a1989c; letter-spacing: 0; }

/* ---- mobil ---- */
@media (max-width: 1050px) {
  .brand img { width: 82px; height: 24px; }
  .brand small { font-size: 14px; }
  .nav-item { font-size: 13px; }
  .sidebar-label { font-size: 12px; letter-spacing: .04em; }
}
@media (max-width: 760px) {
  .topbar-logo { display: block; width: 72px; height: 21px; }
  .breadcrumb { gap: 12px; }
  .breadcrumb > .topbar-logo + span { padding-left: 12px; border-left: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--muted); line-height: 21px; }
  .brand img { width: 96px; height: 28px; }
  .brand small { font-size: 15px; }
  .nav-item { font-size: 15px; padding: 14px 12px; }
  .world-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .page-footer .version { margin-left: 0; }
  .toast { left: 50%; }
}
@media (max-width: 420px) {
  .world-cols { grid-template-columns: 1fr; }
}
@media (pointer: coarse) {
  .world a { min-height: 44px; }
  .nav-item { min-height: 48px; }
  .plan-days button { min-height: 44px; }
  .plan-rounds button, .number-choices button, .plan-paging button, .select-wrap, .search { min-height: 44px; }
  .view-switch button { width: 44px; height: 44px; }
  .card-title { min-height: 44px; display: flex; align-items: center; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .exercise-card, .phase-frame { transition: none; }
}

/* číslované kroky návodu */
.steps { list-style: decimal; }
.steps li::marker { font-size: 13px; font-weight: 700; }

/* dotykové plochy: celé pole je klikací */
.search input { align-self: stretch; }
.select-wrap select { align-self: stretch; height: auto; }
@media (pointer: coarse) {
  .favorite-button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
  .plan-preparation .button, .routine-row-title, .templates-back, .templates-entry { min-height: 44px; }
  .source-link { min-height: 44px; align-items: center; }
  .sort-select select { min-height: 44px; }
  .phase-controls .button, .detail-visual > .button, .exports summary { min-height: 44px; }
}

/* levé menu: ikony se nesmí zmenšovat, na užších oknech o něco širší panel */
.nav-item svg { flex-shrink: 0; }
.nav-item span { min-width: 0; }
@media (max-width: 1050px) and (min-width: 761px) {
  .sidebar { width: 212px; padding-left: 16px; padding-right: 16px; }
  .main-shell { margin-left: 212px; }
  .nav-item { gap: 8px; }
  .nav-item em { padding: 1px 5px; }
  .toast { left: calc(50% + 106px); }
}
