:root {
    --bg: #f5f4f0;
    --surface: #ffffff;
    --surface2: #eeecea;
    --border: #ddd9d3;
    --text: #1a1815;
    --text-mid: #4a4540;
    --text-muted: #8a837a;
    --red: #d63b2f;
    --red-bg: #fdf1f0;
    --red-border: #f5c5c0;
    --green: #1e7e4a;
    --green-bg: #edf7f2;
    --green-border: #b8e5cc;
    --amber: #b45309;
    --amber-bg: #fef8ee;
    --amber-border: #fcd89a;
    --blue: #1d4ed8;
    --blue-bg: #eff6ff;
    --blue-border: #bfdbfe;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Sora', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
p { color: var(--text-mid); }

/* ─── Font Awesome duotone helpers ─── */
.fa-duotone { display: inline-block; }

/* ─── TOP BAR ─── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245,244,240,0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.topbar-brand {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--red);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ═══════════════════════════════════════════
   BACK TO TOP — light verze
   ═══════════════════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    transition: all 0.15s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top.show:hover {
    color: var(--text);
    border-color: #999;
}

.fb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #1877F2;
    transition: color 0.2s ease, transform 0.2s ease;
}

.fb-btn:hover {
    color: #0a5dc2;
    transform: scale(1.1);
}

.lang-btn {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    transition: all 0.15s;
}
.lang-btn.active, .lang-btn:hover {
    color: var(--text);
    border-color: #999;
}

/* ─── HERO ─── */
.hero {
    padding: 16px 16px 32px;
    max-width: 680px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--red);
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    border-radius: 20px;
    padding: 5px 12px;
    margin-bottom: 20px;
    letter-spacing: 0.04em;
}

.hero-eyebrow::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--red);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero h1 {
    font-size: clamp(26px, 6vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 16px;
}

.hero h1 mark {
    background: none;
    color: var(--red);
}

.hero-sub {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 28px;
}

/* STATUS CHIPS */
.status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid;
    line-height: 1;
}

.chip-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chip.red   { background: var(--red-bg);   border-color: var(--red-border);   color: var(--red); }
.chip.green { background: var(--green-bg);  border-color: var(--green-border); color: var(--green); }
.chip.amber { background: var(--amber-bg);  border-color: var(--amber-border); color: var(--amber); }
.chip.blue  { background: var(--blue-bg);   border-color: var(--blue-border);  color: var(--blue); }

.chip.red   .chip-dot { background: var(--red); }
.chip.green .chip-dot { background: var(--green); }
.chip.amber .chip-dot { background: var(--amber); }
.chip.blue  .chip-dot { background: var(--blue); }

/* CTA */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}
.btn-primary:hover { background: #333; }

.btn-outline {
    background: var(--surface);
    color: var(--text-mid);
    border-color: var(--border);
}
.btn-outline:hover { border-color: #999; color: var(--text); }


.hero-status {
    margin-bottom: 28px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(26, 24, 21, 0.05);
}

.hero-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.hero-status-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
}

.hero-status-kicker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 5px rgba(214, 59, 47, 0.12);
    animation: blink 2s ease-in-out infinite;
}

.hero-status-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-mid);
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.2;
}

.hero-status-updated strong {
    color: var(--text);
    font-weight: 700;
}

.hero-status-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-status-card {
    border-radius: 14px;
    padding: 16px;
    border: 1px solid var(--border);
}

.hero-status-card-main {
    background: linear-gradient(180deg, #fff8ef 0%, var(--amber-bg) 100%);
    border-color: var(--amber-border);
}

.hero-status-card-next {
    background: linear-gradient(180deg, #f8fbff 0%, var(--blue-bg) 100%);
    border-color: var(--blue-border);
}

.hero-status-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.hero-status-value {
    font-size: clamp(18px, 2.4vw, 24px);
    line-height: 1.28;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.hero-status-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-mid);
    margin-bottom: 14px;
}

.hero-status-chips {
    margin-bottom: 0;
}


@media (max-width: 800px) {
    .hero-status-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-status {
        padding: 14px;
    }

    .hero-status-updated {
        width: 100%;
        justify-content: center;
    }

    .hero-status-value {
        font-size: 18px;
    }
}

/* ─── WRAPPER ─── */
.wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ─── DIVIDER ─── */
hr.divider {
    border: none;
    border-top: 1px solid var(--border);
    /*max-width: 648px;*/
    margin: 0 auto;
}

/* ─── SECTION ─── */
.section { padding: 40px 0; }

.section-tag {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    line-height: 1.25;
}

/* ─── TLDR ─── */
.tldr-box {
    background: var(--text);
    color: #f0ede8;
    border-radius: 14px;
    padding: 24px 20px;
    margin-bottom: 20px;
}

.tldr-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 16px;
}

.tldr-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    align-items: flex-start;
}
.tldr-item:first-of-type { padding-top: 0; }
.tldr-item:last-child { border-bottom: none; padding-bottom: 0; }

.tldr-arrow {
    font-family: var(--mono);
    font-size: 13px;
    color: rgba(255,255,255,0.2);
    flex-shrink: 0;
    margin-top: 1px;
}

.tldr-text {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,0.8);
}

/* ─── STATS GRID ─── */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 16px;
}

.stat-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stat-val {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-val.red { color: var(--red); }
.stat-val.green { color: var(--green); }
.stat-val.amber { color: var(--amber); font-size: 12px; font-family: var(--mono); letter-spacing: 0; margin-top: 3px; }

.stat-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.4;
}

/* ─── INFO BLOCKS ─── */
.info-blocks { display: flex; flex-direction: column; gap: 10px; }

.info-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.info-block-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.info-block p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

.info-block.highlight {
    background: var(--red-bg);
    border-color: var(--red-border);
}

/* ─── ASKS ─── */
.asks-list { display: flex; flex-direction: column; gap: 10px; }

.ask {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ask-num {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    flex-shrink: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
}

.ask-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.ask-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ─── TIMELINE ─── */
.phase-block { margin-bottom: 24px; }

.phase-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.phase-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.phase-badge {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid;
}

.phase-badge.done   { background: var(--green-bg); border-color: var(--green-border); color: var(--green); }
.phase-badge.active { background: var(--amber-bg); border-color: var(--amber-border); color: var(--amber); }
.phase-badge.open   { background: var(--red-bg);   border-color: var(--red-border);   color: var(--red); }

.timeline-list {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.tentry {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.tentry:last-child { border-bottom: none; }

.tentry.is-key {
    background: var(--amber-bg);
    border-left: 3px solid var(--amber);
}

.tentry-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.tentry-date {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.tentry-badge {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid;
    white-space: nowrap;
    flex-shrink: 0;
}

.tentry-badge.ok      { background: var(--green-bg); border-color: var(--green-border); color: var(--green); }
.tentry-badge.pending { background: var(--amber-bg); border-color: var(--amber-border); color: var(--amber); }

.tentry-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 8px;
}

.tentry.is-key .tentry-title { color: #92400e; }

.tentry-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

.tentry-source {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ─── EVIDENCE ─── */
.evidence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.evidence-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.evidence-icon {
    font-size: 20px;
    margin-bottom: 10px;
    display: block;
    color: var(--text-muted);
}
.evidence-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.evidence-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

.redact-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.redact-icon {
    font-size: 18px;
    flex-shrink: 0;
    color: var(--text-muted);
    margin-top: 2px;
}
.redact-body { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.redact-body strong { color: var(--text); font-weight: 600; }

/* ─── FAQ ─── */
.faq-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    user-select: none;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px; height: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    transition: transform 0.2s;
    margin-top: 1px;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.2s;
    padding: 0 20px;
}

.faq-item.open .faq-a {
    max-height: 500px;
    padding: 0 20px 20px;
}

/* ─── SHARE ─── */
.share-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
}

.share-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.share-sub {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 420px;
    margin: 0 auto 24px;
}

.share-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    transition: all 0.15s;
    cursor: pointer;
}

.share-btn:hover { background: var(--bg); border-color: #aaa; }


.copy-row {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
}

.copy-url {
    flex: 1;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
    padding: 13px 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    padding: 13px 16px;
    background: var(--text);
    color: var(--bg);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    font-family: var(--sans);
}
.copy-btn:hover { background: #333; }



/* ─── FOOTER ─── */
footer {
    background: var(--text);
    padding: 32px 16px;
}

.footer-inner {
    max-width: 680px;
    margin: 0 auto;
}

.footer-brand {
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.footer-note {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-contact {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.footer-contact a { color: rgba(255,255,255,0.7); }

.footer-meta {
    font-family: var(--mono);
    font-size: 10px;
    color: rgba(255,255,255,0.25);
}

/* ─── DESKTOP ─── */
@media (min-width: 540px) {
    .share-btns { flex-direction: row; justify-content: center; }
    .share-btn { flex: 1; }
}

@media (min-width: 720px) {
    .topbar { padding: 0 24px; }
    .wrap { padding: 0 24px; }
    .hero { padding: 16px 24px 52px; }
    /*hr.divider { margin: 0 24px; max-width: calc(680px - 48px); }*/
}

/* ─── Copy button – copied state ─── */
.copy-btn.copied {
    background: var(--green);
    color: #fff;
}

.copy-btn.copied i {
    /* swap icon feel – FA duotone swap-opacity trick */
    --fa-primary-opacity: 0.4;
    --fa-secondary-opacity: 1;
}


