/* ═════════════════════════════════════════════════════════
   Paralelné evanjeliá — fixed-content page
   ═════════════════════════════════════════════════════════ */
.paralelne-page-main {
    background: var(--paper);
    padding: 28px clamp(20px, 5vw, 60px) 36px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    max-width: 1100px;
    margin-inline: auto;
}
[data-theme="dark"] .paralelne-page-main {
    box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.page-title {
    font-family: "Cormorant Garamond", serif;
    font-size: calc(38px * var(--fz, 1.1));
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 6px;
    letter-spacing: 0.3px;
}
.page-lead {
    color: var(--ink-muted);
    font-size: calc(15px * var(--fz, 1.1));
    line-height: 1.6;
    max-width: 780px;
    margin: 0 0 22px;
}
[data-theme="dark"] .page-title { color: var(--gold-bright); }

/* TOC */
.toc {
    background: var(--cream-card);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 28px;
}
.toc-title {
    font-family: "Cormorant Garamond", serif;
    font-size: calc(18px * var(--fz, 1.1));
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 8px;
}
[data-theme="dark"] .toc-title { color: var(--gold-bright); }
.toc ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 4px 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc a {
    display: block;
    padding: 4px 0;
    color: var(--ink-muted);
    font-size: calc(13.5px * var(--fz, 1.1));
    line-height: 1.4;
    transition: color 0.15s;
    text-decoration: none;
}
.toc a:hover {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}
[data-theme="dark"] .toc a:hover { color: var(--gold-bright); }
.toc .num { color: var(--gold-soft); font-weight: 600; margin-right: 4px; }

/* Sections */
.pericope-section { margin-bottom: 32px; scroll-margin-top: 12px; }
.section-title {
    font-family: "Cormorant Garamond", serif;
    font-size: calc(26px * var(--fz, 1.1));
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: baseline;
    gap: 10px;
}
[data-theme="dark"] .section-title { color: var(--gold-bright); }
.section-num { color: var(--gold-soft); font-size: calc(22px * var(--fz, 1.1)); font-weight: 600; }

/* Gospel comparison tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gospel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: calc(14px * var(--fz, 1.1));
    min-width: 640px;
}
.gospel-table thead th {
    background: var(--cream-col);
    color: var(--navy);
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: calc(16px * var(--fz, 1.1));
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--rule);
    white-space: nowrap;
}
[data-theme="dark"] .gospel-table thead th { color: var(--gold-bright); }
.gospel-table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--rule-soft);
    vertical-align: top;
}
.gospel-table tbody tr:nth-child(even) { background: var(--cream-row); }
.gospel-table tbody tr:hover { background: var(--cream-card); }
.gospel-table td.pericope {
    color: var(--navy);
    font-weight: 500;
    width: 36%;
}
.gospel-table td.pericope a { color: var(--navy); }
.gospel-table td.pericope a:hover { color: var(--gold-soft); }
[data-theme="dark"] .gospel-table td.pericope,
[data-theme="dark"] .gospel-table td.pericope a { color: var(--gold-bright); }
[data-theme="dark"] .gospel-table td.pericope a:hover { color: var(--gold); }
.gospel-table td a {
    color: var(--ink-muted);
    border-bottom: 1px dotted transparent;
    transition: color 0.15s, border-bottom-color 0.15s;
    white-space: nowrap;
    text-decoration: none;
}
.gospel-table td a:hover {
    color: var(--navy);
    border-bottom-color: var(--gold);
}
[data-theme="dark"] .gospel-table td a:hover {
    color: var(--gold-bright);
    border-bottom-color: var(--gold);
}

/* Back-to-top */
.back-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--navy);
    color: var(--paper);
    border: 1px solid var(--gold-soft);
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 27, 54, 0.35);
    z-index: 70;
    transition: background 0.15s, transform 0.15s;
}
.back-top:hover { background: #2F3548; transform: translateY(-2px); }
.back-top.visible { display: inline-flex; }
.back-top svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
    .paralelne-page-main { padding: 18px 14px 24px; }
    .page-title { font-size: calc(28px * var(--fz, 1.1)); }
    .page-lead { font-size: calc(14px * var(--fz, 1.1)); }
    .toc { padding: 12px 14px; }
    .toc ul { grid-template-columns: 1fr; }
    .section-title { font-size: calc(20px * var(--fz, 1.1)); }
    .section-num { font-size: calc(17px * var(--fz, 1.1)); }
    .gospel-table { font-size: calc(13px * var(--fz, 1.1)); }
    .gospel-table thead th { font-size: calc(14px * var(--fz, 1.1)); padding: 8px 10px; }
    .gospel-table tbody td { padding: 7px 10px; }
}
