/* CzechChillout návody (FABLE-20261111-01).
   The page frame – tokens, background, header, footer, theme switch, network packets – comes from the main website
   czechchillout.cz: assets/shell/shell.css, generated by tools/sync_main_shell.py and loaded before this file.
   Part 1 keeps only the base rules the content of the guides needs; part 2 "guides" is everything under .cc-guides,
   built only from the tokens of the main website. */

/* ---------- 1. base for the content ---------- */
html { scroll-padding-top: 110px; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; margin-bottom: 14px; }
h3 { font-size: 1.08rem; margin-bottom: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only, .skip { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 99; left: 12px; top: 12px; width: auto; height: auto; clip: auto; padding: 12px; background: #fff; color: #000; }
.ghost-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; font-weight: 700; white-space: nowrap; background: rgba(148, 163, 184, .08); color: var(--text); transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.ghost-btn:hover { transform: translateY(-1px); }
html[data-theme="light"] .ghost-btn { border-color: rgba(15, 23, 42, .13); color: #41546c; background: rgba(255, 255, 255, .72); }
html[data-theme="light"] .ghost-btn:hover { color: #075985; border-color: rgba(14, 165, 233, .38); background: rgba(224, 242, 254, .86); }
.cc-guides .btn { white-space: nowrap; }
.eyebrow { margin: 0 0 12px; color: #67e8f9; font-weight: 800; text-transform: uppercase; font-size: .78rem; }
html[data-theme="light"] .eyebrow { color: #0369a1; }
.page-section { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 58px 0; }
.field { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 7px; outline: none; color: var(--text); background: rgba(15, 23, 42, .84); text-overflow: ellipsis; }
.field:focus { border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(14, 165, 233, .12); }
html[data-theme="light"] .field { border-color: rgba(15, 23, 42, .15); background: rgba(255, 255, 255, .94); }
html[data-theme="light"] .field::placeholder { color: #8292a6; }
.site-footer .site-footer-draft { color: var(--muted-2); font-size: .8rem; }

/* ---------- 2. guides ---------- */
.cc-guides { color: var(--text); }
.cc-guides .g-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.cc-guides .g-h { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500; line-height: 1.05; }
.cc-guides .g-sub { margin: 0; color: var(--muted); }
.cc-guides .g-small { min-height: 34px; padding: 6px 12px; font-size: .86rem; }

.cc-guides .g-search { position: relative; display: block; margin: 0 0 12px; }
.cc-guides .g-search .field { padding-left: 44px; border-radius: var(--radius); }
.cc-guides .g-search-ico { position: absolute; left: 16px; top: 50%; width: 15px; height: 15px; margin-top: -9px; border: 2px solid var(--blue); border-radius: 50%; }
.cc-guides .g-search-ico::after { content: ""; position: absolute; right: -6px; bottom: -5px; width: 7px; height: 2px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }
.cc-guides .g-results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 10px; }

/* two columns: games on the left, the guides of one game on the right */
.cc-guides .g-docs { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 22px; align-items: start; }
.cc-guides .g-docs > * { min-width: 0; }
.cc-guides .g-side { position: sticky; top: 108px; }
.cc-guides .g-side-nav { display: grid; gap: 6px; max-height: calc(100vh - 190px); overflow-y: auto; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); scrollbar-width: thin; }

/* a menu button: the game's artwork fills the button, a veil keeps the name readable */
.cc-guides .g-side-nav a { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 0 12px 0 14px; border-radius: 7px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; font-size: .95rem; font-weight: 700; text-shadow: 0 1px 3px rgba(2, 6, 23, .9); transition: transform .18s ease, box-shadow .18s ease; }
.cc-guides .g-side-nav a > img, .cc-guides .g-banner > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.cc-guides .g-side-nav a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(2, 6, 23, .88) 0%, rgba(2, 6, 23, .66) 48%, rgba(2, 6, 23, .18) 100%); transition: opacity .18s ease; }
.cc-guides .g-side-nav a > span { flex: 1; min-width: 0; }
.cc-guides .g-side-nav a small { flex: none; min-width: 26px; padding: 1px 8px; border-radius: 999px; background: rgba(2, 6, 23, .62); color: #fff; text-align: center; font-size: .76rem; text-shadow: none; }
.cc-guides .g-side-nav a:hover { transform: translateX(3px); }
.cc-guides .g-side-nav a:hover::before { opacity: .82; }
.cc-guides .g-side-nav a[aria-current] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--blue); }
.cc-guides .g-side-nav a[aria-current]::before { opacity: .7; }
.cc-guides .g-side-nav a.g-bg-general { background: linear-gradient(135deg, #0c4a6e, #1e3a8a); }
.cc-guides .g-side-nav a.g-bg-general::before { background: linear-gradient(90deg, rgba(2, 6, 23, .35), rgba(2, 6, 23, 0)); }

/* banner above the list */
.cc-guides .g-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; min-height: 132px; margin-bottom: 14px; padding: 16px 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 14px 34px rgba(15, 23, 42, .14); }
.cc-guides .g-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(2, 6, 23, .84) 0%, rgba(2, 6, 23, .5) 45%, rgba(2, 6, 23, .05) 100%); }
.cc-guides .g-banner.g-bg-general { background: linear-gradient(135deg, #0c4a6e, #1e3a8a); }
.cc-guides .g-banner.g-bg-general::before { background: none; }
.cc-guides .g-banner h1, .cc-guides .g-banner h2 { margin: 0 0 2px; font-size: 1.7rem; font-weight: 500; line-height: 1.2; color: #fff; text-shadow: 0 2px 6px rgba(2, 6, 23, .8); }
.cc-guides .g-banner p { margin: 0; color: rgba(255, 255, 255, .86); font-size: .9rem; }

.cc-guides .g-banner-text { min-width: 0; }
.cc-guides .g-banner .g-order { flex: none; text-shadow: none; }
/* a banner whose only source picture is small is shown as a soft backdrop instead of a blurry enlargement */
.cc-guides .g-banner-soft > img { filter: blur(9px) saturate(1.15); transform: scale(1.14); }

/* light theme: a light veil and dark text */
html[data-theme="light"] .cc-guides .g-side-nav a { color: var(--text); text-shadow: 0 0 6px rgba(255, 255, 255, .95), 0 0 2px rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12); }
html[data-theme="light"] .cc-guides .g-side-nav a::before { background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .86) 42%, rgba(255, 255, 255, .28) 78%, rgba(255, 255, 255, .08) 100%); }
html[data-theme="light"] .cc-guides .g-side-nav a[aria-current] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--blue); color: #075985; }
html[data-theme="light"] .cc-guides .g-side-nav a[aria-current]::before { opacity: 1; }
html[data-theme="light"] .cc-guides .g-side-nav a:hover::before { opacity: .9; }
html[data-theme="light"] .cc-guides .g-side-nav a small { background: rgba(255, 255, 255, .9); color: #41546c; box-shadow: 0 1px 4px rgba(15, 23, 42, .18); }
html[data-theme="light"] .cc-guides .g-side-nav a.g-bg-general { background: linear-gradient(135deg, #e0f2fe, #dbeafe); }
html[data-theme="light"] .cc-guides .g-side-nav a.g-bg-general::before { background: none; }
html[data-theme="light"] .cc-guides .g-banner { color: var(--text); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12), 0 14px 34px rgba(15, 23, 42, .10); }
html[data-theme="light"] .cc-guides .g-banner::before { background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .84) 34%, rgba(255, 255, 255, .22) 70%, rgba(255, 255, 255, 0) 100%); }
html[data-theme="light"] .cc-guides .g-banner.g-bg-general { background: linear-gradient(135deg, #e0f2fe, #dbeafe); }
html[data-theme="light"] .cc-guides .g-banner.g-bg-general::before { background: none; }
html[data-theme="light"] .cc-guides .g-banner h1, html[data-theme="light"] .cc-guides .g-banner h2 { color: var(--text); text-shadow: 0 0 10px rgba(255, 255, 255, .9); }
html[data-theme="light"] .cc-guides .g-banner p { color: var(--muted); }

/* list of guides: the title only */
.cc-guides .g-list { list-style: none; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cc-guides .g-list li + li { border-top: 1px solid var(--border); }
.cc-guides .g-list a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; transition: background .16s ease, color .16s ease; }
.cc-guides .g-list a:hover { background: color-mix(in srgb, var(--blue) 8%, transparent); color: var(--blue); }
.cc-guides .g-t { flex: 1; min-width: 0; font-weight: 600; }
.cc-guides .g-meta { flex: none; color: var(--muted-2); font-size: .82rem; }
.cc-guides .g-ico { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.cc-guides .g-ico-play { background: color-mix(in srgb, var(--blue) 14%, transparent); }
.cc-guides .g-ico-play::before { content: ""; margin-left: 2px; border-left: 8px solid var(--blue); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.cc-guides .g-ico-text { background: var(--surface-2); }
.cc-guides .g-ico-text::before { content: ""; width: 10px; height: 8px; border-top: 2px solid var(--muted-2); border-bottom: 2px solid var(--muted-2); }
.cc-guides .more-languages { margin-top: 14px; font-size: .92rem; }
.cc-guides .more-languages a { color: var(--blue); font-weight: 600; }

/* article */
.cc-guides.g-article { max-width: 1040px; padding-top: 34px; }
.cc-guides .g-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 18px; }
.cc-guides .g-crumb { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; color: var(--muted); font-size: .88rem; }
.cc-guides .g-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.cc-guides .g-order-line { margin: 0; color: var(--muted); font-size: .95rem; }
.cc-guides .g-order-line a { color: var(--blue); font-weight: 700; }
.cc-guides .g-crumb a:hover { color: var(--blue); }
.cc-guides .g-title { margin: 0 0 12px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 500; line-height: 1.1; }
.cc-guides .g-lead { max-width: 760px; margin-bottom: 22px; color: var(--muted); font-size: 1.08rem; }
.cc-guides .g-count { color: var(--muted-2); font-size: .84rem; font-weight: 500; }
.cc-guides .g-steps { margin: 0 0 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cc-guides .g-steps summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.cc-guides .g-steps summary::-webkit-details-marker { display: none; }
.cc-guides .g-steps summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted-2); border-bottom: 2px solid var(--muted-2); transform: rotate(45deg); }
.cc-guides .g-steps[open] summary::after { transform: rotate(-135deg); }
.cc-guides .g-steps h2 { margin: 0; padding: 16px 20px 4px; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.cc-guides .g-steps ol { margin: 0; padding: 4px 22px 16px 44px; }
.cc-guides .g-steps li { padding: 7px 0 7px 4px; scroll-margin-top: 120px; }
.cc-guides .g-steps li::marker { color: var(--blue); font-weight: 700; }
.cc-guides .g-note, .cc-guides .g-done { margin: 0 0 14px; padding: 13px 18px; border: 1px solid; border-left-width: 4px; border-radius: var(--radius); }
.cc-guides .g-note { border-color: color-mix(in srgb, var(--warning) 40%, transparent); background: color-mix(in srgb, var(--warning) 9%, var(--surface)); }
.cc-guides .g-done { border-color: color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 8%, var(--surface)); }
.cc-guides .g-fields { margin: 0 0 14px; }
.cc-guides .g-fields h2, .cc-guides.g-prose h2 { margin: 26px 0 12px; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.cc-guides .g-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 10px; color: var(--muted); font-size: .92rem; }
.cc-guides .g-next a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); }
.cc-guides .g-next a:hover { border-color: var(--border-strong); color: var(--blue); }
.cc-guides .g-help { margin: 0; color: var(--muted); font-size: .92rem; }
.cc-guides .g-help a, .cc-guides.g-prose a:not(.btn) { color: var(--blue); font-weight: 600; }
.cc-guides .table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cc-guides table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cc-guides th, .cc-guides td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.cc-guides th { background: var(--surface-2); }
.cc-guides tr:last-child td { border-bottom: 0; }
.cc-guides code { font: .86em/1.5 Consolas, "Cascadia Mono", monospace; color: var(--blue); overflow-wrap: anywhere; }

/* internal pages (status of verification, about the draft) */
.cc-guides.g-prose { max-width: 1040px; padding-top: 34px; }
.cc-guides.g-prose h1 { margin: 0 0 12px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 500; line-height: 1.1; }
.cc-guides.g-prose li { margin: 8px 0; }
.cc-guides.g-prose .btn { margin-top: 18px; }
.cc-guides.coverage-page { max-width: 1180px; }
.cc-guides.coverage-page td p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.cc-guides .card-visual-status { display: inline-block; padding: 2px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); font-size: .8rem; font-weight: 600; }
.cc-guides .card-visual-status.reviewed-visual { border-color: color-mix(in srgb, var(--green) 45%, transparent); color: var(--green); }
.cc-guides .card-visual-status.deferred-external { border-color: color-mix(in srgb, var(--warning) 45%, transparent); color: var(--warning); }

/* walkthrough player in the colours of the site (behaviour unchanged, see player.css) */
.cc-guides .visual-guide { margin: 0 0 14px; }
.cc-guides .visual-guide .walkthrough { border-color: var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 16px 40px rgba(15, 23, 42, .09); color: var(--text); }
.cc-guides .visual-guide .screen { border-color: var(--border); }
.cc-guides .visual-guide button { border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); color: var(--text); }
.cc-guides .visual-guide button:hover:not(:disabled) { border-color: var(--border-strong); }
.cc-guides .visual-guide .primary { border-color: transparent; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; }
.cc-guides .visual-guide .instruction .eyebrow { display: block; margin: 0; }
.cc-guides .visual-guide .instruction h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 600; line-height: 1.22; color: var(--text); }
.cc-guides .visual-guide #step-text { color: var(--text); }
.cc-guides .visual-guide .caption, .cc-guides .visual-guide #play-time { color: var(--muted); }
.cc-guides .visual-guide .step-list button { border-radius: 50%; border-color: var(--border); background: transparent; color: var(--muted); }
.cc-guides .visual-guide .step-list button.done { border-color: transparent; background: color-mix(in srgb, var(--blue) 24%, transparent); color: var(--text); }
.cc-guides .visual-guide .step-list button[aria-current] { border-color: var(--blue); background: var(--blue); color: #fff; }
.cc-guides .visual-guide .playback #play, .cc-guides .visual-guide #step-result { border: 0; border-radius: 0; background: none; color: var(--muted); }
.cc-guides .visual-guide .playback #play:hover:not(:disabled), .cc-guides .visual-guide #step-result:hover { color: var(--text); }
.cc-guides .visual-guide #timeline-progress { accent-color: var(--blue); }
.cc-guides .visual-guide .instruction.attention { outline-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, transparent); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .page-section { padding: 34px 0 44px; }
    .cc-guides .g-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .cc-guides .g-docs { grid-template-columns: 1fr; }
    .cc-guides .g-side { position: static; }
    .cc-guides .g-side-nav { grid-auto-flow: column; grid-auto-columns: 210px; max-height: none; overflow-x: auto; overflow-y: hidden; }
    .cc-guides .g-meta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cc-guides *, .cc-guides *::before, .cc-guides *::after { transition: none !important; animation: none !important; }
}
@media print {
    body { background: #fff; color: #111; }
    .site-header, .site-footer, .skip, .network-packet-field, .theme-control, .cc-guides .g-side, .cc-guides .g-help, .cc-guides .g-next, .cc-guides .g-top, .cc-guides .g-bottom, .cc-guides .g-order { display: none; }
    .page-section { width: 100%; padding: 0; }
    .cc-guides .g-steps, .cc-guides .g-note, .cc-guides .g-done { break-inside: avoid; }
}

/* 29. 11. 2026: facts under the title of a guide, the note as a list of points */
.cc-guides .g-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 18px; }
.cc-guides .g-facts span { padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .88rem; }
.cc-guides .g-note ul { margin: 6px 0 0; padding-left: 20px; }
.cc-guides .g-note li { padding: 2px 0; }
