/* Vulkanen shared stylesheet — cached across all content pages for fast repeat loads */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --accent-red: #d32f2f;
    --accent-orange: #ff6f00;
    --text-light: #e0e0e0;
    --text-muted: #9e9e9e;
    --border-color: #333;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --maxw: 1200px;
    --readw: 760px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.65;
    font-size: 17px;
}

a { color: var(--accent-orange); }

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
nav {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}
.nav-center { display: flex; gap: 32px; align-items: center; }
.nav-center a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}
.nav-center a:hover { color: var(--accent-orange); border-bottom-color: var(--accent-orange); }
.nav-center a.lang-toggle { border: 1px solid var(--border-color); border-radius: 4px; padding: 6px 10px; font-weight: 600; }
.nav-center a.lang-toggle:hover { border-color: var(--accent-orange); color: var(--accent-orange); }

/* Article layout */
.wrap { max-width: var(--readw); margin: 0 auto; padding: 0 20px; }

.breadcrumb {
    max-width: var(--readw);
    margin: 24px auto 0;
    padding: 0 20px;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-orange); }
.breadcrumb span { color: var(--accent-orange); }

article { max-width: var(--readw); margin: 0 auto; padding: 0 20px 40px; }

.article-header { padding: 24px 0 8px; border-bottom: 1px solid var(--border-color); margin-bottom: 32px; }
h1 {
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.article-meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }

.lead { font-size: 19px; color: var(--text-light); margin-bottom: 24px; }

article h2 {
    font-size: 27px;
    font-weight: 700;
    margin: 48px 0 16px;
    padding-top: 8px;
    letter-spacing: -0.3px;
    line-height: 1.25;
}
article h3 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; color: #f0f0f0; }
article p { margin-bottom: 18px; }
article ul, article ol { margin: 0 0 20px 22px; }
article li { margin-bottom: 9px; }
article strong { color: #fff; font-weight: 600; }
article a { color: var(--accent-orange); text-decoration: none; border-bottom: 1px solid rgba(255,111,0,0.35); transition: border-color var(--transition); }
article a:hover { border-bottom-color: var(--accent-orange); }

/* Table of contents */
.toc {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-orange);
    border-radius: 4px;
    padding: 20px 24px;
    margin: 0 0 32px;
}
.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 12px; color: var(--text-muted); padding: 0; }
.toc ul { list-style: none; margin: 0; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 8px; }
.toc a { font-size: 14px; }

/* Callout / key takeaways box */
.callout {
    background: rgba(255, 111, 0, 0.05);
    border: 1px solid rgba(255, 111, 0, 0.25);
    border-radius: 4px;
    padding: 24px 28px;
    margin: 32px 0;
}
.callout h2, .callout h3 { margin-top: 0; }
.callout ul { margin-bottom: 0; }

.note {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-red);
    border-radius: 4px;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 15px;
    color: var(--text-muted);
}

/* Data table */
.table-wrap { overflow-x: auto; margin: 0 0 24px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border-color); }
th { color: var(--accent-orange); font-weight: 600; border-bottom: 2px solid var(--border-color); }
tbody tr:hover { background: rgba(255,111,0,0.03); }

/* Stat strip */
.statbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 16px; margin: 0 0 32px; }
.statbar .s { border: 1px solid var(--border-color); border-radius: 4px; padding: 16px; text-align: center; background: rgba(255,111,0,0.02); }
.statbar .n { font-size: 24px; font-weight: 700; color: var(--accent-orange); }
.statbar .l { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 4px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border-color); padding: 8px 0; }
.faq-item summary { cursor: pointer; font-size: 18px; font-weight: 600; padding: 14px 0; list-style: none; color: #f0f0f0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; color: var(--accent-orange); font-weight: 700; margin-right: 12px; }
.faq-item[open] summary::before { content: "–"; }
.faq-item summary:hover { color: var(--accent-orange); }
.faq-item .faq-body { padding: 0 0 16px 26px; color: var(--text-light); }

/* Related reading */
.related { max-width: var(--readw); margin: 48px auto 0; padding: 0 20px; }
.related h2 { font-size: 22px; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; }
.related-grid a {
    display: block;
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text-light);
    transition: all var(--transition);
}
.related-grid a:hover { border-color: var(--accent-orange); transform: translateY(-3px); }
.related-grid .rt { font-weight: 600; font-size: 15px; margin-bottom: 6px; display: block; }
.related-grid .rd { font-size: 13px; color: var(--text-muted); }

/* Footer */
footer { background: var(--secondary-dark); border-top: 1px solid var(--border-color); padding: 60px 20px 40px; margin-top: 80px; }
.footer-content { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; color: var(--text-light); }
.footer-section a { display: block; color: var(--text-muted); text-decoration: none; font-size: 13px; margin-bottom: 12px; transition: color var(--transition); }
.footer-section a:hover { color: var(--accent-orange); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; border-top: 1px solid var(--border-color); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; gap: 16px; }
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-orange); }

/* Volcano map */
.map-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.map-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cat-btn {
    background: var(--secondary-dark); border: 1px solid var(--border-color); color: var(--text-muted);
    padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all var(--transition);
}
.cat-btn:hover { border-color: var(--accent-orange); color: var(--text-light); }
.cat-btn.active { background: rgba(255,111,0,0.12); border-color: var(--accent-orange); color: var(--accent-orange); }
.cat-btn .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
#map {
    width: 100%; height: 560px; border: 1px solid var(--border-color); border-radius: 6px;
    background: #11161c; z-index: 1;
}
.map-fallback { padding: 40px; text-align: center; color: var(--text-muted); background: var(--secondary-dark); border-radius: 6px; }
.leaflet-popup-content-wrapper { border-radius: 6px; }
.leaflet-popup-content { margin: 12px 14px; color: #1a1a1a; }
.leaflet-popup-content h4 { color: #1a1a1a; }

/* POI list */
.poi-list { max-width: 1200px; margin: 40px auto 0; padding: 0 20px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; }
.poi-card { background: var(--secondary-dark); border: 1px solid var(--border-color); border-radius: 6px; padding: 20px; }
.poi-card h3 { font-size: 17px; margin-bottom: 8px; color: #f0f0f0; }
.poi-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.poi-meta .tag { color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 3px; margin-right: 6px; }
.poi-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.poi-card .poi-status { font-size: 12px; color: var(--text-light); }
.poi-card a { color: var(--accent-orange); font-size: 13px; font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.poi-card a:hover { border-bottom-color: var(--accent-orange); }

/* Homepage map teaser */
.map-teaser { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.map-teaser #map { height: 420px; }

@media (max-width: 768px) {
    nav { padding: 0 16px; }
    .nav-center { gap: 16px; }
    .nav-center a { display: none; }
    .toc ul { columns: 1; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    #map { height: 440px; }
}
@media (max-width: 480px) {
    .footer-content { grid-template-columns: 1fr; }
}
