/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Base ────────────────────────────────────────────── */
body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    background-color: #E8EDF5;
    color: #1A2B42;
    line-height: 1.7;
    font-size: 16px;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 28px;
}

a {
    color: #1E9E9E;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #136E6E;
}

/* ── Header ──────────────────────────────────────────── */
header {
    background-color: #071320;
    background-image: url('pics/bg_map.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(5,12,24,0.93) 0%, rgba(10,22,42,0.88) 60%, rgba(15,40,60,0.82) 100%);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #2BBFBF, #7FE0E0, #2BBFBF, transparent);
}

header .container {
    position: relative;
    z-index: 1;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header-text {
    width: 100%;
    max-width: 780px;
}

header .programme {
    font-size: 10px;
    color: #2BBFBF;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
    font-weight: 700;
}

header h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

header .subtitle {
    font-size: 11px;
    color: #2BBFBF;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 16px;
}

header .author-name {
    font-size: 22px;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    margin-bottom: 0;
    display: block;
}

.header-supervisors {
    display: block;
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(43,191,191,0.2);
}

.header-supervisors p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}

.sup-role {
    color: #2BBFBF;
    font-weight: 700;
}

header p {
    text-align: center;
}

.scroll-hint {
    display: none;
}

/* ── Navigation ──────────────────────────────────────── */
nav {
    background-color: #0E1D2F;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

nav .container {
    padding: 0 28px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li a {
    display: block;
    padding: 15px 20px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s, background-color 0.2s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: #2BBFBF;
    transition: left 0.2s, right 0.2s;
}

nav ul li a:hover {
    color: #ffffff;
    background-color: rgba(43,191,191,0.06);
}

nav ul li a:hover::after {
    left: 0;
    right: 0;
}

nav .nav-resources {
    border-top: 1px solid rgba(255,255,255,0.06);
    background-color: rgba(0,0,0,0.2);
    padding: 10px 0;
    gap: 10px;
    align-items: center;
}

nav .nav-resources li a {
    padding: 7px 18px;
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(43,191,191,0.3);
    letter-spacing: 1px;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

nav .nav-resources li a::after {
    display: none;
}

nav .nav-resources li a:hover {
    color: #2BBFBF;
    border-color: #2BBFBF;
    background-color: rgba(43,191,191,0.08);
}

/* ── Main ────────────────────────────────────────────── */
main {
    padding: 44px 0 72px;
}

section {
    background-color: #ffffff;
    padding: 36px 40px;
    margin-bottom: 20px;
    border-top: 3px solid #2BBFBF;
    box-shadow: 0 2px 12px rgba(10,22,42,0.07), 0 1px 3px rgba(10,22,42,0.05);
    transition: box-shadow 0.2s;
}

section:hover {
    box-shadow: 0 6px 24px rgba(10,22,42,0.10), 0 2px 6px rgba(10,22,42,0.06);
}

h2 {
    font-size: 13px;
    font-weight: 800;
    color: #0A1628;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

p {
    color: #354F6E;
    margin-bottom: 14px;
    font-size: 15px;
    text-align: justify;
}

p:last-child {
    margin-bottom: 0;
}

/* ── Methods list ────────────────────────────────────── */
.method-list {
    margin-left: 22px;
    margin-top: 12px;
}

.method-list li {
    padding: 6px 0;
    color: #354F6E;
    font-size: 15px;
    border-bottom: 1px solid #EEF2F7;
    line-height: 1.65;
}

.method-list li:last-child {
    border-bottom: none;
}

/* ── Subsection titles ───────────────────────────────── */
.subsection-title {
    font-size: 11px;
    font-weight: 800;
    color: #0A1628;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 32px 0 14px;
    padding-top: 24px;
    border-top: 1px solid #E0E8F2;
}

/* ── Data source table ───────────────────────────────── */
.data-table-wrap {
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid #DCE6F2;
    box-shadow: 0 1px 4px rgba(10,22,42,0.06);
}

.data-source-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-source-table thead th {
    background-color: #0E1D2F;
    color: rgba(255,255,255,0.8);
    padding: 11px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.data-source-table tbody td {
    padding: 9px 14px;
    border-bottom: 1px solid #E8EDF5;
    color: #354F6E;
    font-size: 13px;
}

.data-source-table tbody tr:nth-child(even) td {
    background-color: #F4F8FC;
}

.data-source-table tbody tr:hover td {
    background-color: #EBF5F5;
}

/* ── Results table ───────────────────────────────────── */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

thead th {
    background-color: #0A1628;
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

thead th:first-child {
    border-left: 3px solid #2BBFBF;
}

tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid #E8EDF5;
    color: #354F6E;
}

tbody tr:nth-child(even) td {
    background-color: #F4F8FC;
}

tbody tr:hover td {
    background-color: #EBF5F5;
}

.r-value {
    font-weight: 800;
    color: #0A1628;
    font-variant-numeric: tabular-nums;
    font-size: 15px;
}

.dir-pos {
    font-size: 12px;
    font-weight: 700;
    color: #157A4A;
}

.dir-neg {
    font-size: 12px;
    font-weight: 700;
    color: #A02518;
}

.r-neutral {
    color: #5A7A9A;
    font-size: 13px;
}

/* ── Table note ──────────────────────────────────────── */
.table-note {
    font-size: 11px;
    color: #7A9AB8;
    margin-top: -6px;
    font-style: italic;
}

/* ── Maps intro ──────────────────────────────────────── */
.maps-intro {
    font-size: 14px;
    color: #4A6A8A;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #F0F6FA;
    border-left: 3px solid #2BBFBF;
}

/* ── Framework image ─────────────────────────────────── */
.section-figure {
    margin-top: 28px;
    text-align: center;
}

.section-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid #DCE6F2;
    box-shadow: 0 2px 12px rgba(10,22,42,0.08);
}

.section-figure figcaption {
    font-size: 12px;
    color: #7A9AB8;
    margin-top: 8px;
    font-style: italic;
}

/* ── Map gallery ─────────────────────────────────────── */
.map-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.map-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #F4F8FC;
    border: 1px solid #DCE6F2;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(10,22,42,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
}

.map-card:hover {
    box-shadow: 0 6px 20px rgba(10,22,42,0.14);
    transform: translateY(-2px);
}

.map-card img {
    width: 100%;
    height: auto;
    display: block;
}

.map-card figcaption {
    font-size: 11px;
    color: #5A7A9A;
    padding: 8px 10px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: #ffffff;
    border-top: 1px solid #E0EAF2;
}

/* ── Objectives list ─────────────────────────────────── */
.topic-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.topic-list li {
    background-color: #F0F6FA;
    border: 1px solid #C8D8EC;
    border-left: 3px solid #2BBFBF;
    padding: 10px 16px;
    font-size: 14px;
    color: #354F6E;
}

.topic-list li strong {
    color: #0A1628;
}

/* ── Supervisor cards ────────────────────────────────── */
.supervisor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.supervisor-card {
    background-color: #F0F6FA;
    border: 1px solid #C8D8EC;
    border-top: 3px solid #2BBFBF;
    padding: 16px 20px;
}

.supervisor-card .role {
    font-size: 10px;
    font-weight: 700;
    color: #2BBFBF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.supervisor-card .name {
    font-size: 14px;
    font-weight: 700;
    color: #0A1628;
}

.supervisor-card .uni {
    font-size: 12px;
    color: #7A9AB8;
    margin-top: 3px;
}

/* ── Download list ───────────────────────────────────── */
.download-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.download-list li a {
    display: inline-block;
    background-color: #0A1628;
    color: #ffffff;
    padding: 12px 26px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background-color 0.2s;
}

.download-list li a:hover {
    background-color: #2BBFBF;
    color: #ffffff;
}

/* ── Study area ──────────────────────────────────────── */
.study-area-diagram {
    margin-top: 20px;
    border: 1px solid #DCE6F2;
}

/* ── Dashboard embed ─────────────────────────────────── */
.dashboard-section p {
    margin-bottom: 12px;
}

.dashboard-embed {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 16px;
    margin-bottom: 10px;
    border-top: 1px solid #DCE6F2;
    border-bottom: 1px solid #DCE6F2;
    background: #f0f4f8;
    min-height: 720px;
    overflow: hidden;
}

/* ── Footer ──────────────────────────────────────────── */
footer {
    background-color: #F0F4FA;
    border-top: 3px solid #2BBFBF;
    padding: 36px 0 28px;
    text-align: center;
    font-size: 12px;
    color: #7A9AB8;
    letter-spacing: 0.3px;
}

footer p {
    text-align: center;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #DCE6F2;
}

.footer-logos img {
    height: 44px;
    width: auto;
    display: block;
}

.footer-logos img[alt="Palacky University Olomouc logo"] {
    height: 72px;
}

.footer-logos img[alt="Co-funded by the European Union"] {
    height: 34px;
}

/* ── Fig caption ─────────────────────────────────────── */
.fig-caption {
    font-size: 12px;
    color: #7A9AB8;
    margin-top: 8px;
    font-style: italic;
    text-align: center;
}

/* ── Section rule ────────────────────────────────────── */
.section-rule {
    border: none;
    height: 3px;
    background: #2BBFBF;
    margin-top: 36px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 680px) {
    header h1 { font-size: 26px; }
    .map-grid { grid-template-columns: 1fr 1fr; }
    .topic-list { grid-template-columns: 1fr; }
    .supervisor-grid { grid-template-columns: 1fr; }
    section { padding: 24px 20px; }
}

@media (max-width: 420px) {
    .map-grid { grid-template-columns: 1fr; }
}
