/* ===== Studovna perspektiv — vizuální systém Agory ===== */

:root {
    --ink: #2a2724;
    --ink-2: #5c5650;
    --ink-3: #8f8780;
    --stone: #e8e4dc;
    --stone-deep: #ddd8cf;
    --desk: #f5f2ec;
    --paper: #fdfbf7;
    --wood: #5c4f42;
    --wood-soft: #ebe6de;
    --ochre: #9a8468;
    --ochre-light: #f3ede3;

    /* regionální paleta — optiky */
    --reg-cn: #EF9F27;
    --reg-eu: #534AB7;
    --reg-me: #D85A30;
    --reg-us: #3B8BD4;

    /* remap legacy tokens */
    --navy: var(--wood);
    --navy-dark: var(--paper);
    --accent: var(--wood);
    --accent-light: var(--wood-soft);
    --gold: var(--ochre);
    --text: var(--ink);
    --text-2: var(--ink-2);
    --text-3: var(--ink-3);
    --border: var(--stone-deep);
    --bg: #e6f1fb;
    --white: var(--paper);
    --chart-bg: #f0ebe4;
    --shadow: 0 12px 40px rgba(42, 39, 36, 0.06);
    --shadow-lift: 0 16px 48px rgba(42, 39, 36, 0.09);
}

html {
    background: var(--bg);
}

body {
    background: var(--bg);
    color: var(--ink);
}

/* —— Header: světlá studovna, ne redakce —— */
.topbar {
    height: 56px;
    background: var(--paper);
    border-bottom: 1px solid var(--stone-deep);
}

.brand-name,
header .logo {
    color: var(--ink);
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-claim {
    color: var(--ink-3);
    font-size: 10px;
    letter-spacing: 0.14em;
}

.topbar-date {
    color: var(--ink-3);
}

.lang-btn {
    border-color: var(--stone-deep);
    color: var(--ink-3);
}

.lang-btn.active,
.lang-btn:hover:not(:disabled) {
    border-color: var(--wood);
    background: var(--wood-soft);
    color: var(--ink);
}

.main-nav {
    background: var(--desk);
    border-bottom: 1px solid var(--stone-deep);
    padding: 0 32px;
}

.main-nav a {
    color: var(--ink-3);
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: none;
    border-bottom-color: transparent;
    padding: 11px 16px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--ink);
    border-bottom-color: var(--wood);
}

.main-nav a.active {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.45);
}

#user-nav a,
#user-nav button {
    border-color: var(--stone-deep);
    color: var(--ink-2);
}

#user-nav a:hover,
#user-nav button:hover {
    color: var(--ink);
    border-color: var(--wood);
    background: var(--wood-soft);
}

#user-nav .user-email {
    color: var(--ink-3);
}

.tier-chip {
    background: var(--wood-soft);
    color: var(--wood);
}

/* —— Layout —— */
.main-layout,
.digest-layout {
    padding: 28px 32px 48px;
    gap: 28px;
}

.article,
.topic-detail,
.week-article.study-week {
    border: 1px solid var(--stone-deep);
    border-radius: 6px;
    background: var(--paper);
    box-shadow: var(--shadow-lift);
}

.study-sheet {
    overflow: hidden;
}

.study-article-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
}

.study-sheet--voices .study-article-grid {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
    .study-sheet--voices .study-article-grid {
        grid-template-columns: minmax(0, 1fr) 248px;
    }
}

.study-sheet--voices .region-picker {
    border: 0;
    border-left: 1px solid var(--stone-deep);
    border-radius: 0;
    background: linear-gradient(180deg, #faf8f4 0%, #f5f1ea 100%);
    min-height: 100%;
}

@media (min-width: 960px) {
    .study-sheet--voices .region-picker {
        position: sticky;
        top: 0;
        max-height: 100vh;
        overflow-y: auto;
    }
}

@media (max-width: 959px) {
    .study-sheet--voices .region-picker {
        border-left: 0;
        border-top: 1px solid var(--stone-deep);
    }
}

/* —— Topic header —— */
.study-header,
.art-hero {
    position: relative;
    padding: 36px 36px 28px;
    background: linear-gradient(128deg, var(--desk) 0%, var(--paper) 52%, var(--ochre-light) 100%);
    border-bottom: 1px solid var(--stone-deep);
    overflow: hidden;
}

.study-header::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -20px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(154, 132, 104, 0.14) 0%, transparent 68%);
    pointer-events: none;
}

.study-kicker,
.art-topic-num,
.topic-kicker {
    color: var(--ochre);
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.study-title,
.art-headline,
.topic-title {
    color: var(--ink);
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.32;
    letter-spacing: -0.025em;
    max-width: none;
}

/* průběh vrstev v hero */
.study-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 22px;
    max-width: 42rem;
}

.study-flow-step {
    padding: 7px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--stone-deep);
    border-bottom-width: 2px;
    color: var(--ink-3);
    font: inherit;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.study-flow-step:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-2);
    box-shadow: 0 2px 8px rgba(42, 39, 36, 0.06);
}

.study-flow-step:focus-visible {
    outline: 2px solid var(--wood);
    outline-offset: 2px;
}

.study-facts-col,
.study-persp-col,
.study-maps-row,
.study-synthesis-sec {
    scroll-margin-top: 88px;
}

.study-flow-step em {
    display: block;
    margin-bottom: 2px;
    color: var(--ink-2);
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
}

.study-flow-step--facts { border-bottom-color: var(--ochre); }
.study-flow-step--persp { border-bottom-color: var(--reg-eu); }
.study-flow-step--chart { border-bottom-color: var(--wood); }
.study-flow-step--narrative { border-bottom-color: #9a8570; }
.study-flow-step--synth { border-bottom-color: #7a6550; }
.study-flow-step--spike em {
    color: #b8860b;
    font-size: 11px;
}

.study-flow-btn--spike {
    border-bottom-color: #b8860b;
    color: var(--ink);
    font-weight: 500;
}

.study-chips,
.art-meta {
    color: var(--ink-3);
    margin-top: 14px;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.study-chips span::after,
.art-meta span::after {
    content: "·";
    margin: 0 10px;
    color: var(--stone-deep);
}

.study-chips span:last-child::after,
.art-meta span:last-child::after {
    content: none;
}

/* —— Split: fakta | optiky —— */
.study-layers {
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--stone-deep);
}

.study-facts-col {
    border-bottom: 1px solid var(--stone-deep);
    background: linear-gradient(180deg, #f8f6f1 0%, #f3efe8 100%);
}

.study-facts-col .sec-num {
    background: var(--ochre);
    color: var(--paper);
}

.study-persp-col .sec-num {
    background: linear-gradient(135deg, var(--reg-cn), var(--reg-eu));
    color: var(--paper);
}

.study-map-col .sec-num {
    background: var(--wood);
    color: var(--paper);
}

.sec-num--sub {
    min-width: 22px;
    font-size: 8px;
    letter-spacing: -0.02em;
}

.study-synthesis-sec {
    background: linear-gradient(180deg, #fdf9f0 0%, #faf4e6 48%, #f7efe3 100%);
    border-top: 3px solid #c9a227;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.study-synthesis-sec--spike .section-title {
    color: var(--ink);
}

.study-synthesis-sec .sec-num {
    background: #7a6550;
    color: var(--paper);
}

.sec-num--spike {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #fffef8;
    font-size: 10px;
    min-width: 20px;
    box-shadow: 0 1px 2px rgba(120, 90, 20, 0.25);
}

.study-facts-text {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    line-height: 1.85;
    color: var(--ink-2);
    max-width: none;
}

.study-maps-row {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--stone-deep);
}

.study-map-col {
    border-bottom: 1px solid var(--stone-deep);
}

.study-map-col:last-child {
    border-bottom: 0;
}

.study-map-col .sec-body {
    padding: 20px 28px 28px;
}

.study-synthesis-sec .sec-body {
    max-width: none;
}

/* —— Sekce —— */
.sec-num {
    border-radius: 3px;
    background: var(--wood-soft);
    color: var(--wood);
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    width: auto;
    min-width: 18px;
    padding: 0 4px;
}

.section-title {
    padding: 16px 28px 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.sec-hint {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

/* —— Perspektivy: paralelní optiky —— */
/* —— Výběr regionálních optik (pravý panel) —— */
.study-persp-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

@media (min-width: 900px) {
    .study-persp-layout {
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 20px;
    }
}

.study-persp-main {
    min-width: 0;
}

.region-picker {
    border: 1px solid var(--stone-deep);
    border-radius: 4px;
    background: linear-gradient(180deg, #f8f6f1 0%, #f3efe8 100%);
    padding: 14px 12px 16px;
}

@media (min-width: 900px) {
    .region-picker {
        position: sticky;
        top: 12px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

.region-picker-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
}

.region-picker-hint {
    margin: 6px 0 0;
    font-size: 10px;
    line-height: 1.55;
    color: var(--ink-3, #8a8278);
}

.region-picker-group {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--stone-deep);
}

.region-picker-group:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 12px;
}

.region-picker-item--region {
    padding: 6px 2px;
}

.region-picker-item--region .region-picker-label {
    font-weight: 500;
    color: var(--ink);
}

.region-picker-group-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.region-picker-tag {
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--ochre-light, #f5e6d3);
    color: var(--ochre);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.region-picker-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 5px 2px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--ink-2);
    cursor: pointer;
}

.region-picker-item:hover {
    color: var(--ink);
}

.region-picker-check {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--wood);
}

.region-picker-dot {
    width: 8px;
    height: 8px;
    margin-top: 4px;
    border-radius: 50%;
    flex-shrink: 0;
}

.region-picker-label {
    flex: 1;
}

.region-picker-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--stone-deep);
}

.region-picker-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.region-picker-section-title {
    margin-bottom: 8px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3, #8a8278);
}

.region-picker-empty {
    margin: 0;
    font-size: 10px;
    color: var(--ink-3, #8a8278);
}

.region-picker-slot {
    margin-bottom: 10px;
}

.region-picker-slot:last-child {
    margin-bottom: 0;
}

.region-picker-slot--empty {
    padding: 8px 10px;
    border: 1px dashed var(--stone-deep);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.45);
}

.region-picker-slot--filled {
    padding: 8px 0 0;
}

.region-picker-slot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.region-picker-slot-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-3, #8a8278);
}

.region-picker-slot-select {
    width: 100%;
    margin-top: 6px;
    padding: 6px 8px;
    border: 1px solid var(--stone-deep);
    border-radius: 4px;
    background: var(--white, #fff);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 11px;
    color: var(--ink-2);
}

.region-picker-slot-clear {
    padding: 0 6px;
    border: none;
    background: none;
    font-size: 16px;
    line-height: 1;
    color: var(--ink-3, #8a8278);
    cursor: pointer;
}

.region-picker-slot-clear:hover {
    color: var(--ink);
}

.region-picker-slot--filled .region-picker-group {
    margin-top: 0;
    padding-top: 8px;
    border-top: 1px dashed var(--stone-deep);
}

.section-title--dated {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.section-title--dated .section-title-text {
    flex: 1;
    min-width: 0;
}

.section-title--dated .sec-date {
    margin-left: auto;
}

.sec-date {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-3, #8a8278);
    flex-shrink: 0;
}

/* —— Perspektivy: jeden panel, záložky v řádku —— */
.persp-tabs-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.persp-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 5px 10px;
    border: 1px solid var(--stone-deep);
    border-radius: 999px;
    background: var(--desk, #f5f2ec);
    cursor: pointer;
    text-align: left;
    font: inherit;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.persp-tab .reg-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

.persp-tab .reg-name {
    font-size: 10px;
    font-weight: 500;
    color: var(--ink-2);
}

.persp-tab.active {
    border-color: var(--lane-color, var(--wood));
    background: color-mix(in srgb, var(--lane-color, var(--wood)) 12%, var(--paper));
}

.persp-tab.active .reg-name {
    color: var(--ink);
    font-weight: 600;
}

.persp-panel {
    padding: 14px 16px 16px;
    border: 1px solid var(--stone-deep);
    border-radius: 4px;
    background: var(--paper);
}

.persp-voice-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--stone-deep) 70%, transparent);
}

.persp-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    flex: 1;
    min-width: 0;
    font-size: 11px;
    line-height: 1.45;
}

.persp-meta-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.persp-meta-row .pname {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
}

.persp-meta-row .prole {
    font-size: 10px;
    color: var(--ink-3, #8a8278);
}

.persp-meta-row .ptag {
    display: inline;
    margin: 0;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 9px;
    white-space: nowrap;
}

.persp-meta-row .layer-badge--inline {
    display: inline;
    margin: 0;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 500;
    white-space: nowrap;
}

.persp-voice-date {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-3, #8a8278);
    flex-shrink: 0;
    line-height: 1.45;
}

.persp-region-name {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.persp-voice-top--region {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--stone-deep) 70%, transparent);
}

.persp-stream {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.persp-stream-block {
    padding-top: 2px;
}

.persp-stream-label {
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.persp-stream-kind {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 3px;
    line-height: 1.35;
}

.persp-stream-block--mainstream .persp-stream-kind {
    color: #3d5248;
    background: #e8efe9;
    border: 1px solid #b8cfc0;
}

.persp-stream-block--alt .persp-stream-kind {
    color: #8a4a1f;
    background: #f6e8d8;
    border: 1px solid #ddb892;
}

.persp-stream-meta {
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1.45;
}

.persp-stream-meta .pname {
    font-weight: 600;
    color: var(--ink);
}

.persp-stream-meta .prole {
    color: var(--ink-3, #8a8278);
    font-size: 10px;
}

.persp-stream-text {
    font-size: 13px;
    line-height: 1.75;
    color: var(--ink-2);
}

/* —— Syntéza: literární pásmo —— */
.synthesis-article {
    font-family: "Literata", Georgia, serif;
    max-width: 42em;
}

.synthesis-p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink);
}

.synthesis-summary {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px dashed var(--stone-deep);
}

.synthesis-summary .stitle {
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.sico {
    border-radius: 3px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
}

.btn-synthesis-dl {
    border: 1px solid var(--stone-deep);
    background: var(--desk);
    color: var(--ink-2);
    border-radius: 3px;
}

.btn-synthesis-dl:hover {
    background: var(--wood-soft);
    color: var(--ink);
}

.synthesis-copy-row {
    justify-content: flex-start;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--stone-deep);
}

.btn-synthesis-copy {
    border: 1px solid var(--stone-deep);
    background: var(--desk);
    color: var(--ink-2);
    border-radius: 3px;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.btn-synthesis-copy:hover {
    background: var(--wood-soft);
    color: var(--ink);
}

.btn-synthesis-copy.is-copied {
    color: var(--sage, #3d5a40);
    border-color: currentColor;
}

/* —— Téma týdne: ještě tišší —— */
.study-week {
    border: none;
    box-shadow: none;
    background: transparent;
}

.study-header--week {
    background: transparent;
    border-bottom: none;
    padding: 8px 8px 32px;
}

.study-header--week .study-title {
    font-family: "Literata", Georgia, serif;
    font-size: 1.85rem;
    font-weight: 500;
    max-width: 32rem;
}

.study-week-essay .sec-body,
.week-body {
    max-width: 36rem;
    padding-left: 8px;
    padding-right: 8px;
}

.study-week-essay .week-p,
.week-body .week-p {
    font-family: "Literata", Georgia, serif;
    font-size: 16px;
    line-height: 1.95;
    color: var(--ink);
}

.study-week .section-title {
    padding-left: 8px;
}

.week-back {
    padding-left: 8px;
}

.week-index-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 8px 24px;
    max-width: 36rem;
}

.week-index-item {
    display: block;
    padding: 18px 20px;
    border: 1px solid var(--stone-deep);
    border-radius: 3px;
    background: var(--paper);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.week-index-item:hover {
    border-color: var(--wood);
    background: var(--wood-soft);
    text-decoration: none;
}

.week-index-kicker {
    margin-bottom: 6px;
    color: var(--ochre);
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.week-index-title {
    color: var(--ink);
    font-family: "Literata", Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.45;
}

.week-p-draft {
    color: var(--ink-3);
    font-style: italic;
    border-left: 2px dashed var(--stone-deep);
    padding-left: 14px;
}

/* —— Navigace digestu —— */
.topic-tab.active,
.topic-tab:hover,
.date-pill.active,
.date-pill:hover {
    background: var(--wood);
    border-color: var(--wood);
    color: var(--paper);
}

.sb-card {
    border-radius: 4px;
    background: var(--paper);
}

.sb-item.cur {
    background: var(--wood-soft);
    border-left-color: var(--wood);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.sb-regs {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.sb-reg-dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    opacity: 0.85;
}

.sb-item.cur .sb-reg-dot {
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.sb-hl {
    line-height: 1.45;
}

.sb-item.cur .sb-hl {
    color: var(--ink);
    font-weight: 500;
}

/* —— Portfoliový graf —— */
.portfolio-frame {
    padding: 18px 20px 20px;
    border: 1px solid var(--stone-deep);
    border-radius: 6px;
    background: var(--chart-bg);
}

.study-maps-row .portfolio-svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 480px;
    aspect-ratio: 760 / 420;
}

.study-maps-row .portfolio-frame {
    margin: 0;
}

.study-maps-row .chart-leg {
    margin-top: 14px;
    gap: 16px;
}

.study-maps-row .cl-item {
    font-size: 12px;
}

.study-maps-row .chart-insight {
    margin-top: 16px;
    font-size: 13px;
}

/* —— Narrative map (studovna) —— */
.study-maps-row .nar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .study-maps-row .nar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

.study-maps-row .nar-card {
    padding: 16px 18px;
    border-width: 1px;
}

.study-maps-row .nar-region {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.study-maps-row .nar-frame {
    font-size: 14px;
    line-height: 1.65;
}

.portfolio-svg {
    display: block;
    border-radius: 4px;
}

.sb-item-week .sb-tag {
    color: var(--ochre);
}

.topic-card {
    border-radius: 4px;
}

.topic-card-hero {
    background: var(--desk);
    border-bottom: 1px solid var(--stone-deep);
}

.topic-card-hero .topic-title {
    color: var(--ink);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.15rem;
}

.topic-card-hero .topic-kicker {
    color: var(--ochre);
}

/* —— Debata: klidná lišta —— */
.deb-bar {
    background: var(--desk);
    border-top: 1px solid var(--stone-deep);
}

.deb-btns .btn-primary {
    background: var(--wood);
    border-color: var(--wood);
    border-radius: 3px;
}

.deb-btns .btn-primary:hover {
    background: var(--ink-2);
    border-color: var(--ink-2);
}

/* —— Narrative map —— */
.nar-card {
    border-radius: 5px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nar-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(42, 39, 36, 0.07);
}

.nar-frame {
    font-size: 13px;
    line-height: 1.55;
}

.chart-insight {
    margin-top: 12px;
    padding: 10px 12px;
    border-left: 3px solid var(--ochre);
    border-radius: 0 4px 4px 0;
    background: rgba(255, 255, 255, 0.5);
    color: var(--ink-3);
    font-size: 12px;
    font-style: italic;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .study-flow {
        grid-template-columns: repeat(2, 1fr);
    }

    .study-title,
    .art-headline {
        font-size: 1.45rem;
    }
}
