/* Stil for de statiske, crawlbare sidene (genereres av scripts/build-seo.js).
   Holdt liten og selvstendig: disse sidene laster verken data.js eller app.js,
   slik at innholdet vises umiddelbart (god LCP). */

:root {
    --primary: #2c5282;
    --primary-dark: #1a365d;
    --tekst: #2d3748;
    --tekst-svak: #5a6b80;
    --bg: #f7f9fc;
    --flate: #ffffff;
    --kant: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Gjør innholdskolonnen immun mot at et enkelt bredt element (lang URL, tabell,
   bilde uten maks-bredde) sprenger sidebredden og forskyver sentreringen. */
html { overflow-x: hidden; }

body { max-width: 100%; overflow-x: hidden; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--tekst);
    line-height: 1.7;
    font-size: 17px;
}

/* ---------- Topp (samme uttrykk som hovedsiden) ---------- */
.topp {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--kant);
    padding: 0.75rem 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topp-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 2.5rem;
}

.logo-lenke {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    white-space: nowrap;
}

.logo-lenke .logo { width: 32px; height: 30px; }

.sidetittel {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #4a90a4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary-dark);
}

.hovedmeny { display: flex; flex-wrap: wrap; gap: 1.5rem; }

.hovedmeny a {
    color: var(--tekst-svak);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hovedmeny a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ---------- Brødsmuler ---------- */
.brodsmuler {
    max-width: 820px;
    margin: 1.2rem auto 0;
    padding: 0 1.5rem;
    font-size: 0.85rem;
    color: var(--tekst-svak);
}

.brodsmuler a { color: var(--primary); text-decoration: none; }
.brodsmuler a:hover { text-decoration: underline; }
.brodsmuler .skille { opacity: 0.5; margin: 0 0.15rem; }

/* ---------- Innhold ---------- */
main {
    max-width: 820px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 4rem;
}

h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.4rem;
    line-height: 1.2;
    color: var(--primary-dark);
    margin: 0.6rem 0 0.8rem;
}

h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin: 2.5rem 0 0.8rem;
}

.stikkord {
    display: inline-block;
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    padding: 3px 12px;
    border-radius: 999px;
}

.stikkord a { color: #fff; text-decoration: none; }

.dato { color: var(--tekst-svak); font-size: 0.9rem; margin: 0.6rem 0 1rem; }

.hovedbilde,
.brodtekst img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
}

.portrett {
    width: 260px;
    max-width: 60%;
    height: auto;
    border-radius: 12px;
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.kreditt, .brodtekst em {
    display: block;
    font-size: 0.85rem;
    color: var(--tekst-svak);
    margin-top: -0.5rem;
    margin-bottom: 1.2rem;
}

.ingress { font-size: 1.15rem; font-weight: 500; color: var(--tekst); margin-bottom: 1.5rem; }

.brodtekst { overflow-wrap: break-word; }
.brodtekst p { margin-bottom: 1.1rem; }
.brodtekst h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; color: var(--primary-dark); margin: 2rem 0 0.6rem; }
.brodtekst a { color: var(--primary); }
.brodtekst ul { margin: 0 0 1.1rem 1.4rem; }

/* Bildekaruseller fra reisereportasjene vises som enkel rutenett-galleri */
.image-carousel { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.image-carousel figure { margin: 0; }
.image-carousel figcaption { font-size: 0.82rem; color: var(--tekst-svak); margin-top: 0.3rem; }

/* ---------- Faktaliste ---------- */
.fakta {
    background: var(--flate);
    border: 1px solid var(--kant);
    border-radius: 12px;
    padding: 1rem 1.3rem;
    margin: 1.2rem 0 1.8rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1.2rem;
}

.fakta dt { font-weight: 600; color: var(--primary-dark); }
.fakta dd { color: var(--tekst); }
.fakta a { color: var(--primary); }

/* ---------- Lister og kort ---------- */
.lenkeliste, .personliste, .kalenderliste { list-style: none; }

.lenkeliste li, .personliste li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--kant);
}

.lenkeliste a { color: var(--primary); text-decoration: none; font-weight: 500; }
.lenkeliste a:hover { text-decoration: underline; }

.kalenderliste li {
    background: var(--flate);
    border: 1px solid var(--kant);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.8rem;
    align-items: baseline;
}

.kalenderliste time { font-weight: 600; color: var(--primary-dark); }
.kalenderliste .beskrivelse { flex-basis: 100%; color: var(--tekst-svak); font-size: 0.92rem; }

.liten { color: var(--tekst-svak); font-size: 0.85rem; }

.siste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0 2.5rem;
}

.kort {
    background: var(--flate);
    border: 1px solid var(--kant);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.kort:hover { box-shadow: 0 6px 18px rgba(26, 54, 93, 0.12); }
.kort img { width: 100%; height: 150px; object-fit: cover; object-position: center 20%; }
.kort-tekst { padding: 0.8rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.kort strong { color: var(--primary-dark); font-size: 0.98rem; line-height: 1.35; }

/* ---------- Naboartikler ---------- */
.naboer { display: flex; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 1rem; flex-wrap: wrap; }
.naboer a { color: var(--primary); text-decoration: none; font-size: 0.92rem; max-width: 48%; }
.naboer a:hover { text-decoration: underline; }
.naboer .neste { text-align: right; margin-left: auto; }

.knapp {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
}

/* ---------- Bunn (samme uttrykk som hovedsiden) ---------- */
.bunn {
    background: var(--primary-dark);
    color: #cbd8e8;
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
    font-size: 0.9rem;
}

.bunn-inner {
    max-width: 1400px;
    margin: 0 auto 0.8rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem 1.5rem;
}

.bunn-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.bunn-logo .logo-liten { width: 26px; height: 24px; }
.bunn-lenker { margin: 0; }
.bunn a { color: #fff; }
.bunn .liten { color: #9fb3d1; display: block; max-width: 820px; margin: 0 auto; }

@media (max-width: 640px) {
    body { font-size: 16px; }
    h1 { font-size: 1.85rem; }
    .portrett { float: none; margin: 0 0 1rem; max-width: 100%; width: 100%; }
    .naboer a { max-width: 100%; }
    .topp { padding: 0.7rem 1rem; }
    .topp-inner { gap: 0.5rem 1rem; }
    .sidetittel { font-size: 1.4rem; }
    .hovedmeny { gap: 0.9rem; }
    .hovedmeny a { font-size: 0.88rem; }
    .bunn-inner { justify-content: center; text-align: center; }
}
