/* /static/css/base.css */
/*
 * Sitets farver. Værdierne her er standarddesignet «Himmel»; et andet design (site/designs/*.json) overskriver dem
 * med en :root-regel, så stilarkene kun bruger variablerne og aldrig selv har faste farver til flader, tekst og kanter.
 * Navnene skal passe til Temarejse\Design\DesignColors::NAMES.
 */
:root {
    --sky-top: #1e6fd9;
    --sky-top-strong: #0b57c9;
    --sky-bottom: #8fd3ff;
    --sand: #fff4d6;
    --ink: #1c2b3a;
    --accent: #ff7a3d;
    --accent-soft: #fbf3ea;
    --paper: #ffffff;
    --on-accent: #ffffff;
    --line: #b8c4d0;
    --line-soft: #d5dde5;
    --muted: #556070;
    --tint: #e8eef4;
    --tint-strong: #dcebf7;
    --link: #2c6e9b;
    --link-strong: #1f5378;
    --danger: #b71c1c;
    --danger-soft: #fdecea;
    --success: #2e7d32;
    --success-soft: #e8f5e9;
    --success-ink: #1b4d1f;
    --warn: #b58900;
    --warn-soft: #fff8e1;
    --warn-ink: #5c4400;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.5;
    color: var(--ink);
    background: var(--sand);
}

/* /static/css/home.css */
/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem 6rem;
    color: var(--on-accent);
    background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
}

/* Toppen bliver lavere for hver forsidetekst (overskrift, underskrift, knap, "Vi var her"), Admin har skjult. */
.hero-hidden-1 { min-height: 58vh; }
.hero-hidden-2 { min-height: 46vh; }
.hero-hidden-3 { min-height: 34vh; }
.hero-hidden-4 { min-height: 22vh; }

.hero-content { position: relative; z-index: 2; max-width: 40rem; }
.hero h1 { margin: 0.5rem 0; font-size: clamp(2.5rem, 9vw, 5.5rem); letter-spacing: 0.03em; text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25); }
.tagline { font-size: clamp(1.1rem, 3vw, 1.6rem); margin: 0 0 1.5rem; }

.button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s;
}
.button:hover, .button:focus-visible { transform: translateY(-3px) scale(1.04); }

.sun {
    position: absolute;
    top: 8%;
    right: 12%;
    width: clamp(4rem, 12vw, 8rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #ffe066;
    box-shadow: 0 0 60px 20px rgba(255, 224, 102, 0.6);
}

.cloud {
    position: absolute;
    width: 9rem;
    height: 2.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    animation: drift 40s linear infinite;
}
.cloud::before { content: ""; position: absolute; top: -1.2rem; left: 1.5rem; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: inherit; }
.cloud-1 { top: 15%; left: -10rem; }
.cloud-2 { top: 40%; left: -10rem; animation-duration: 65s; animation-delay: -20s; transform: scale(0.7); }

@keyframes drift { to { transform: translateX(calc(100vw + 20rem)); } }

/* ---------- Kompas ---------- */
.compass { width: clamp(5rem, 14vw, 7.5rem); }
.compass-ring { fill: rgba(255, 255, 255, 0.2); stroke: #fff; stroke-width: 4; }
.needle-north { fill: #ff4d4d; }
.needle-south { fill: #fff; }
.compass-pin { fill: var(--ink); }
.compass g, .compass polygon { transform-origin: 50px 50px; animation: wobble 6s ease-in-out infinite; }

@keyframes wobble {
    0%, 100% { transform: rotate(-25deg); }
    50% { transform: rotate(35deg); }
}

.waves { position: absolute; bottom: -1px; left: 0; width: 100%; height: 5rem; fill: var(--sand); z-index: 1; }

/* ---------- Temaer ---------- */
main { max-width: 64rem; margin: 0 auto; padding: 1rem 1rem 2rem; }
h2 { text-align: center; font-size: clamp(1.6rem, 4vw, 2.4rem); }

.visited {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.visited-place {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 1.2rem;
    background: var(--ink);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}
.visited-place:hover, .visited-place:focus-within { transform: translateY(-6px) rotate(-1deg); }
.visited-place a { display: block; height: 100%; border-radius: inherit; }
.visited-place a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.visited-place img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

.visited-popup {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.8rem;
    background: rgba(20, 30, 45, 0.92);
    color: var(--on-accent);
    z-index: 2;
    pointer-events: none;
}
.visited-popup[hidden] { display: none; }
.visited-popup span { display: block; font-size: 0.9rem; opacity: 0.8; }

/* Uden mus (telefon, tablet) kan man ikke holde over billedet, så teksten står fast nederst på billedet. */
@media (hover: none) {
    .visited-popup[hidden] { display: block; }
    .visited-place:hover { transform: none; }
}

.note { text-align: center; opacity: 0.7; margin-top: 2rem; }
footer { text-align: center; padding: 1.5rem 1rem; background: var(--ink); color: var(--line); font-size: 0.9rem; }

/* ---------- Mobil og TV ---------- */
@media (max-width: 40rem) {
    .hero { min-height: 60vh; padding-bottom: 5rem; }
    .hero-hidden-1 { min-height: 50vh; }
    .hero-hidden-2 { min-height: 40vh; }
    .hero-hidden-3 { min-height: 30vh; }
    .hero-hidden-4 { min-height: 20vh; }
    .sun { right: 6%; }
}

@media (min-width: 1600px) {
    body { font-size: 1.4rem; }
    main { max-width: 90rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cloud, .compass polygon { animation: none; }
}

/* Kort over rejsernes steder */
.overview-map { margin: 1rem auto 2rem; max-width: 70rem; padding: 0 1rem; }
.trip-overview-map { height: 26rem; max-height: 70vh; border: 1px solid var(--line-soft); border-radius: 0.6rem; z-index: 0; }
.trip-overview-map[hidden] { display: none; }
.overview-pin { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--link-strong); color: var(--on-accent); font-weight: 700; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.overview-trips { margin: 0.4rem 0 0; padding-left: 1.1rem; }
@media (max-width: 700px) {
    .trip-overview-map { height: 20rem; }
}

/* /static/css/timeline.css */
/* ---------- Kalenderbjælken under forsidens blå top ---------- */
.trip-timeline { position: relative; width: 100%; padding: 0.5rem 0 0.25rem; }

/* På smalle skærme er bjælken bredere end skærmen og kan rulles sidelæns. */
.timeline-scroll { overflow-x: auto; padding: 0.75rem 0 0.25rem; -webkit-overflow-scrolling: touch; }
.timeline-inner { position: relative; min-width: 48rem; }

.timeline-bar { display: flex; height: 0.7rem; border-radius: 999px; overflow: hidden; background: rgba(28, 43, 58, 0.14); }
.timeline-bar > * { flex: 1 1 0; min-width: 5px; display: block; }
.timeline-gap { background: transparent; }
.timeline-trip { background: var(--accent); border-left: 1px solid var(--sand); transition: filter 0.15s; }
.timeline-trip:first-child { border-left: 0; }
.timeline-trip:hover, .timeline-trip:focus-visible { filter: brightness(1.15); }
.timeline-trip:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

.timeline-years { position: relative; height: 1.4rem; margin-top: 0.15rem; font-size: 0.75rem; color: var(--ink); opacity: 0.75; }
.timeline-year { position: absolute; top: 0; transform: translateX(-50%); padding-top: 0.35rem; white-space: nowrap; }
.timeline-year::before { content: ""; position: absolute; top: 0; left: 50%; height: 0.3rem; border-left: 1px solid currentColor; }
.timeline-year:first-child { transform: none; }
.timeline-year:first-child::before { left: 0; }

.timeline-tip {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.5rem 0.8rem;
    border-radius: 0.8rem;
    background: rgba(20, 30, 45, 0.92);
    color: var(--on-accent);
    font-size: 0.9rem;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    z-index: 3;
}
.timeline-tip[hidden] { display: none; }
.timeline-tip strong, .timeline-tip span { display: block; }
.timeline-tip span { opacity: 0.8; font-size: 0.85rem; }

/* /static/css/articles.css */
/* ---------- Artikelsider ---------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(90deg, var(--sky-top), var(--sky-bottom));
}
.site-header a { color: var(--on-accent); text-decoration: none; font-weight: 700; }
.site-header .brand { font-size: 1.3rem; }
.site-header nav a { padding: 0.4rem 0.8rem; border-radius: 999px; }
.site-header nav a:hover, .site-header nav a:focus-visible { background: rgba(255, 255, 255, 0.25); }

.content { max-width: 48rem; padding: 1.5rem 1rem 3rem; line-height: 1.7; }
.content h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.2; }
.content a { color: var(--sky-top-strong); }
.content img { max-width: 100%; height: auto; border-radius: 0.6rem; }

/* Billeder i artikler: justering med tekstomløb og faste visningsbredder (se ImagePlacement) */
.article::after { content: ""; display: block; clear: both; }
.article .img-left { float: left; margin: 0.3rem 1.2rem 0.8rem 0; }
.article .img-right { float: right; margin: 0.3rem 0 0.8rem 1.2rem; }
.article .img-center { display: block; margin: 1rem auto; }
.article .img-w25 { width: 25%; }
.article .img-w33 { width: 33%; }
.article .img-w50 { width: 50%; }
.article .img-w66 { width: 66%; }
.article .img-w75 { width: 75%; }
.article .img-w100 { width: 100%; }
/* Billede med tekst: spannet bærer justering og bredde, billedet fylder det, og teksten står under */
.article .img-figure { display: inline-block; max-width: 100%; text-align: center; vertical-align: top; }
.article .img-figure img { display: block; width: 100%; }
.article .img-figure .img-caption { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
/* På smalle skærme er der ikke plads til tekst ved siden af: billedet står alene i fuld bredde */
@media (max-width: 40rem) {
    .article .img-left, .article .img-right { float: none; display: block; margin: 0.8rem auto; }
    .article [class*="img-w"] { width: auto; max-width: 100%; }
}
.content blockquote { margin: 1rem 0; padding: 0.2rem 1rem; border-left: 0.3rem solid var(--accent); background: rgba(255, 122, 61, 0.1); }
.content .elaboration { box-sizing: border-box; font-style: italic; font-size: 0.8em; clear: both; margin: 1.2rem 0; padding: 0.8rem 1.2rem; border: 2px solid var(--accent); border-radius: 0.8rem; background: rgba(255, 122, 61, 0.06); overflow-wrap: anywhere; }
.article .elaboration.img-left, .article .elaboration.img-right { clear: none; margin-top: 0.3rem; }
.article .elaboration.img-left { margin-right: 1.2rem; }
.article .elaboration.img-right { margin-left: 1.2rem; }
.article .elaboration.img-center { margin: 1.2rem auto; }
@media (max-width: 40rem) {
    .article .elaboration.img-left, .article .elaboration.img-right { margin: 1.2rem 0; }
}
.content .elaboration > :first-child { margin-top: 0; }
.content .elaboration > :last-child { margin-bottom: 0; }
.elaboration-note { margin-top: 1rem; font-style: italic; font-size: 0.95rem; color: var(--muted); }
.elaboration-note > * { margin: 0.3rem 0; }
.content pre { overflow-x: auto; padding: 1rem; border-radius: 0.6rem; background: var(--ink); color: var(--tint); }
.content code { font-family: ui-monospace, "Cascadia Code", Menlo, monospace; }
.content :not(pre) > code { padding: 0.1rem 0.35rem; border-radius: 0.3rem; background: rgba(28, 43, 58, 0.1); }

.breadcrumbs { margin-bottom: 1rem; font-size: 0.95rem; }

.tree, .tree ul { list-style: none; margin: 0; padding-left: 1.2rem; }
.tree > li { margin: 0.5rem 0; }
.tree li li { margin: 0.4rem 0; }
/* Artikeloversigten: hver artikel er et kort som artikelkortene på rejsesiden; børnene rykkes ind under deres forælder */
.tree-item {
    position: relative; padding: 0.5rem 3.4rem 0.5rem 0.9rem; line-height: 1.3; overflow-wrap: anywhere; border-radius: 0.8rem; border-left: 0.35rem solid var(--link);
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 80'%3E%3Cg fill='none' stroke='%233b82c4' stroke-width='2' opacity='.35'%3E%3Cpath d='M8 4h36l14 14v58H8z'/%3E%3Cpath d='M44 4v14h14'/%3E%3Cpath d='M16 32h34M16 42h34M16 52h34M16 62h22'/%3E%3C/g%3E%3C/svg%3E") no-repeat right 0.6rem center / 2rem auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); transition: transform 0.15s, box-shadow 0.15s;
}
.tree li li > .tree-item { background-color: var(--accent-soft); border-left-color: #8fb4d9; }
.tree-item a { font-size: 1rem; font-weight: 700; text-decoration: none; letter-spacing: 0.01em; }
.tree-item a::after { content: ""; position: absolute; inset: 0; border-radius: 0.8rem; }
.tree-item a:focus-visible { outline: none; }
.tree-item a:focus-visible::after { outline: 3px solid var(--ink); outline-offset: 2px; }
.tree-item:hover, .tree-item:focus-within { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18); }
@media (prefers-reduced-motion: reduce) {
    .tree-item { transition: none; }
    .tree-item:hover, .tree-item:focus-within { transform: none; }
}

@media (min-width: 1600px) {
    .content { max-width: 70rem; }
}

/* Kategorier og artikellister */
.category-list, .article-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.category-list li, .article-list li { padding: 0.7rem 1rem; border-radius: 0.8rem; background: var(--paper); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); overflow-wrap: anywhere; }
.category-list .count { float: right; padding: 0 0.6rem; border-radius: 999px; background: var(--tint-strong); font-size: 0.85rem; }
.article-list { grid-template-columns: 1fr; }
/* Artikelkortene: et lille "avisark" som baggrundsillustration til højre, fed og lidt mindre titel og en farvet kant til venstre */
.article-list li {
    position: relative; padding: 0.4rem 3.4rem 0.4rem 0.8rem; line-height: 1.3; border-left: 0.35rem solid var(--link);
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 80'%3E%3Cg fill='none' stroke='%233b82c4' stroke-width='2' opacity='.35'%3E%3Cpath d='M8 4h36l14 14v58H8z'/%3E%3Cpath d='M44 4v14h14'/%3E%3Cpath d='M16 32h34M16 42h34M16 52h34M16 62h22'/%3E%3C/g%3E%3C/svg%3E") no-repeat right 0.6rem center / 2rem auto;
    transition: transform 0.15s, box-shadow 0.15s;
}
.article-list { gap: 0.4rem; }
.article-list .details { margin-top: 0; font-size: 0.78rem; }
.article-list li > a { font-size: 0.95rem; font-weight: 700; text-decoration: none; letter-spacing: 0.01em; }
.article-list li:hover, .article-list li:focus-within { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18); }
@media (min-width: 1600px) {
    .article-list .details { font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
    .article-list li { transition: none; }
    .article-list li:hover, .article-list li:focus-within { transform: none; }
}

/* Rejsekortene i oversigten: samme udtryk som artikelkortene, men med orange kant og et kompas som baggrundsillustration; hele kortet kan klikkes */
.category-list li {
    position: relative; padding: 0.7rem 4.6rem 0.7rem 1rem; line-height: 1.3; border-left: 0.35rem solid var(--accent);
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ff7a3d' stroke-width='2.5' opacity='.4'%3E%3Ccircle cx='32' cy='32' r='27'/%3E%3Cpath d='M32 5v6M32 53v6M5 32h6M53 32h6'/%3E%3Cpath d='M42 22 36 36 22 42 28 28z' fill='%23ff7a3d' fill-opacity='.35'/%3E%3C/g%3E%3C/svg%3E") no-repeat right 0.8rem center / 2.8rem auto;
    transition: transform 0.15s, box-shadow 0.15s;
}
.category-list li > a { font-size: 1.1rem; font-weight: 700; text-decoration: none; letter-spacing: 0.01em; }
.category-list li > a::after { content: ""; position: absolute; inset: 0; border-radius: 0.8rem; }
.category-list li > a:focus-visible { outline: none; }
.category-list li > a:focus-visible::after { outline: 3px solid var(--ink); outline-offset: 2px; }
.category-list .count { position: static; float: none; display: inline-block; margin-left: 0.4rem; padding: 0 0.6rem; background: var(--paper); border: 1px solid rgba(255, 122, 61, 0.5); color: #8a3d12; font-weight: 700; vertical-align: 0.1rem; }
.category-list li:hover, .category-list li:focus-within { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18); }
@media (prefers-reduced-motion: reduce) {
    .category-list li { transition: none; }
    .category-list li:hover, .category-list li:focus-within { transform: none; }
}

/* Kategorisiden: tekst og billeder til venstre, artiklerne i en kolonne til højre (under teksten på smalle skærme) */
.category-columns { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 52rem) {
    .content:has(.category-columns) { max-width: 70rem; }
    .category-columns { grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); }
}
.details, .byline { display: block; margin-top: 0.2rem; font-size: 0.9rem; color: var(--muted); }
.byline { margin: -0.5rem 0 1.2rem; }
.reads { font-size: 0.9rem; color: var(--muted); }
p.reads { margin: -0.5rem 0 1.2rem; }
.category-list .reads { display: block; margin-top: 0.2rem; }
.tree .reads { margin-left: 0.4rem; }
.badge { display: inline-block; margin-left: 0.3rem; padding: 0 0.6rem; border-radius: 999px; background: var(--warn-soft); color: var(--warn-ink); font-size: 0.8rem; white-space: nowrap; }
@media (min-width: 1600px) {
    .category-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); }
    .details, .byline, .reads { font-size: 1.05rem; }
}

/* Markdown-tabeller: scroller vandret i stedet for at sprænge siden på smalle skærme */
.table-scroll { overflow-x: auto; margin: 1rem 0; }
.article table { border-collapse: collapse; width: 100%; }
.article th, .article td { padding: 0.4rem 0.7rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.article th { background: rgba(0, 0, 0, 0.05); }
.article .align-center { text-align: center; }
.article .align-left { text-align: left; }
.article .align-right { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 40rem) {
    .article th, .article td { padding: 0.35rem 0.5rem; font-size: 0.95rem; }
}

/* Lyd, video og PDF i artikler (se Markdown\MediaEmbed): fylder tekstbredden, medmindre en bredde er valgt */
.article .media-embed { display: block; max-width: 100%; margin: 1rem 0; }
.article .media-embed audio, .article .media-embed video { display: block; width: 100%; }
.article .media-embed video { height: auto; background: #000; }
.article .media-embed iframe { display: block; width: 100%; height: 75vh; min-height: 20rem; border: 1px solid rgba(28, 43, 58, 0.2); border-radius: 0.4rem; }
.article .media-embed .media-caption { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.article .media-embed.img-left, .article .media-embed.img-right { margin-top: 0.3rem; }
@media (max-width: 40rem) {
    .article .media-embed iframe { height: 60vh; min-height: 16rem; }
}

/* Video fra YouTube/Vimeo (se Markdown\VideoEmbed): afspilleren holder 16:9 i alle bredder */
.article .media-frame { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 0.4rem; overflow: hidden; }
.article .media-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; }

/* Uploadede filer (lyd, video, PDF) står sidst i artiklen og kategorien, efter tekst og billeder */
.article-files { clear: both; margin-top: 2rem; padding-top: 0.5rem; border-top: 1px solid rgba(28, 43, 58, 0.2); }
.article-files h2 { font-size: 1.2rem; }

/* På en computer er der plads: siden med filer bliver bredere, mens brødteksten holder en læsevenlig linjelængde */
@media (min-width: 52rem) {
    .content:has(> .article > .article-files) { max-width: 70rem; }
    .content:has(> .article > .article-files) .article > :where(p, ul, ol, blockquote, pre, h1, h2, h3, h4, h5, h6) { max-width: 48rem; }
    .article-files .media-embed { max-width: none; }
    .article-files .media-video, .article-files .media-online-video { max-width: 60rem; }
    .article-files .media-pdf iframe { height: 85vh; }
}

/* Billeder samlet under artiklerne i højre kolonne: kompakte kort, så sidens bredde ikke ændres */
.category-articles { min-width: 0; }
.category-images { margin-top: 1.2rem; min-width: 0; }
.category-images h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.category-images .gallery-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 0.4rem; margin-bottom: 0.8rem; }
.category-images .gallery-cards a { border-radius: 0.5rem; }
.category-images .gallery-cards .title { padding: 0.3rem 0.5rem 0; font-size: 0.85rem; overflow-wrap: anywhere; }
.category-images .gallery-cards .count { padding: 0 0.5rem 0.4rem; font-size: 0.75rem; }
.category-images p { margin: 0 0 0.5rem; }
.category-images .button { max-width: 100%; box-sizing: border-box; padding: 0.35rem 0.9rem; font-size: 0.85rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }

/* Redigeringsknappen ved en artikel eller rejse i oversigterne: ligger over kortets udstrakte link, så den kan klikkes */
.edit-link { position: relative; z-index: 1; margin-left: 0.4rem; padding: 0.1rem 0.7rem; font-size: 0.85rem; font-weight: 600; vertical-align: 0.05rem; }
.category-list li > .edit-link, .tree-item .edit-link { display: inline-block; }

/* Billede i fuld opløsning i modalt vindue (static/viewer/image-zoom.js) */
.article img, .elaboration-note img { cursor: zoom-in; }
.image-zoom { max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, 0.88); color: #fff; }
.image-zoom figure { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; margin: 0; padding: 2.5rem 1rem 1rem; box-sizing: border-box; }
.image-zoom figure img { max-width: 100%; max-height: calc(100% - 2.5rem); width: auto; height: auto; object-fit: contain; border-radius: 0; }
.image-zoom figcaption { margin-top: 0.5rem; font-size: 0.95rem; text-align: center; }
.image-zoom figcaption:empty { display: none; }
.image-zoom::backdrop { background: rgba(0, 0, 0, 0.88); }
.image-zoom-close { position: absolute; top: 0.5rem; right: 0.8rem; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.2); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.image-zoom-close:hover, .image-zoom-close:focus-visible { background: rgba(255, 255, 255, 0.4); }

/* /static/css/galleries.css */
/* Gallerier */
.gallery-image { margin: 1rem 0; text-align: center; }
.gallery-image img { max-width: 100%; max-height: 80vh; width: auto; height: auto; }
.image-viewer { display: grid; grid-template-columns: 1fr; grid-template-areas: "image" "before" "after"; gap: 0.6rem; }
.image-viewer .gallery-image { grid-area: image; }
.image-viewer-before { grid-area: before; }
.image-viewer-after { grid-area: after; }
.image-pager { display: flex; flex-direction: row; gap: 0.5rem; justify-content: center; }
.image-pager a, .image-pager .pager-disabled { padding: 0.7rem 1.1rem; min-height: 3rem; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-radius: 0.6rem; border: 2px solid var(--sky-top); font-weight: 700; text-decoration: none; white-space: nowrap; }
.content .image-pager a { background: var(--sky-top); color: var(--on-accent); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25); }
.content .image-pager a:hover, .content .image-pager a:focus-visible { background: var(--sky-top-strong); border-color: var(--sky-top-strong); }
.image-pager { align-items: center; }
.image-pager .pager-thumb { width: 8rem; min-height: 0; padding: 0; border-radius: 0.5rem; overflow: hidden; display: block; }
.image-pager .pager-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.image-pager .pager-thumb-empty { aspect-ratio: 4 / 3; border: 2px dashed var(--line); background: transparent; box-shadow: none; }
.content .image-pager a.pager-thumb { padding: 0; background: var(--paper); }
.image-pager .pager-disabled { color: var(--muted); border-color: var(--line); background: var(--tint); }
.gallery-image figcaption { color: var(--muted); margin-top: 0.3rem; }
@media (max-width: 40rem) {
    /* Små skærme bladrer ikke: galleriets liste bruges i stedet, og billedet står alene. */
    .image-viewer { grid-template-areas: "image"; }
    .image-pager { display: none; }
}
@media (min-width: 40.01rem) {
    .image-viewer { grid-template-columns: auto 1fr auto; grid-template-areas: "before image after"; align-items: center; }
}
.image-cover, .image-trash { margin: 1.5rem 0; }
.image-reference input { display: block; width: 100%; box-sizing: border-box; padding: 0.6rem; font-family: monospace; }

.gallery-cards, .gallery-grid { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.6rem; }
.gallery-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); gap: 0.4rem; }
.gallery-cards a { display: block; border-radius: 0.8rem; overflow: hidden; background: var(--paper); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); text-decoration: none; }
.gallery-cards img, .gallery-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.gallery-grid img { border-radius: 0.4rem; }
.gallery-day { grid-column: 1 / -1; margin-top: 0.6rem; }
.gallery-day:first-child { margin-top: 0; }
.gallery-day h2, .gallery-day h3 { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.gallery-cards .title { display: block; padding: 0.5rem 0.8rem 0; font-weight: 700; }
.gallery-cards .count { display: block; padding: 0 0.8rem 0.6rem; font-size: 0.9rem; color: var(--muted); }
@media (min-width: 1600px) {
    .gallery-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
}

/* /static/css/account.css */
/* Bruger og login */
.user-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; color: var(--on-accent); }
.user-menu .user-name { font-weight: 700; }
.logout-form, .menu-form { margin: 0; }
.user-link, .site-header a.user-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    color: var(--on-accent);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.user-link:hover, .user-link:focus-visible { background: rgba(255, 255, 255, 0.45); }
.user-dropdown { position: relative; }
.user-dropdown summary { list-style: none; }
.user-dropdown summary::-webkit-details-marker { display: none; }
.user-dropdown summary::after { content: " ▾"; }
.user-dropdown[open] summary { background: rgba(255, 255, 255, 0.45); }
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    z-index: 5;
    display: grid;
    min-width: 12rem;
    padding: 0.3rem;
    border-radius: 0.8rem;
    background: var(--paper);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-shadow: none;
}
.user-dropdown-start .user-dropdown-menu { left: 0; right: auto; }
.user-dropdown-menu a, .user-dropdown-menu button, .site-header .user-dropdown-menu a {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 0.5rem;
    background: none;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.user-dropdown-menu a:hover, .user-dropdown-menu a:focus-visible,
.user-dropdown-menu button:hover, .user-dropdown-menu button:focus-visible { background: var(--tint); }

/* Smalle skærme: menuen forankres i hele menulinjen i stedet for i sin knap, så den fylder linjens bredde og aldrig stikker ud over skærmkanten. */
@media (max-width: 40rem) {
    .site-header { position: relative; }
    .user-dropdown { position: static; }
    .user-dropdown-menu, .user-dropdown-start .user-dropdown-menu { left: 0; right: 0; min-width: 0; }
    .user-dropdown-menu a, .user-dropdown-menu button { text-align: center; }
}
.home-topbar {
    position: absolute;
    top: 0.8rem;
    left: 1rem;
    right: 1rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.home-topbar .main-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.home-topbar .main-nav a {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    color: var(--on-accent);
    font-weight: 700;
    text-decoration: none;
}
.home-topbar .main-nav a:hover, .home-topbar .main-nav a:focus-visible { background: rgba(255, 255, 255, 0.45); }
.home-topbar .user-menu { margin-left: auto; }
/* Mobil: knapperne over forsidens baggrund er næsten uigennemsigtige, så sol og skyer ikke skinner igennem. */
@media (max-width: 40rem) {
    .home-topbar .main-nav a, .home-topbar .user-link { background: rgba(70, 95, 125, 0.85); }
    .home-topbar .main-nav a:hover, .home-topbar .main-nav a:focus-visible,
    .home-topbar .user-link:hover, .home-topbar .user-link:focus-visible,
    .home-topbar .user-dropdown[open] summary { background: rgba(70, 95, 125, 1); }
}
.user-menu-floating { position: absolute; top: 0.8rem; right: 1rem; z-index: 3; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }

.login-form { display: grid; gap: 0.5rem; max-width: 24rem; }
.login-form label { font-weight: 700; margin-top: 0.5rem; }
.login-form input {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 2px solid var(--line);
    border-radius: 0.6rem;
    font: inherit;
    font-size: max(1rem, 16px);
    background: var(--paper);
}
.login-form input:focus-visible { outline: 3px solid var(--sky-top); border-color: var(--sky-top); }
.login-form .button { margin-top: 1rem; border: 0; font: inherit; font-weight: 700; cursor: pointer; justify-self: start; }
.form-error { max-width: 24rem; padding: 0.7rem 1rem; border-radius: 0.6rem; background: var(--danger-soft); border-left: 0.3rem solid var(--danger); color: var(--danger); }

@media (max-width: 40rem) {
    .site-header nav { order: 3; width: 100%; }
    .login-form, .form-error { max-width: none; }
    .login-form .button { justify-self: stretch; text-align: center; }
}
@media (min-width: 1600px) {
    .login-form, .form-error { max-width: 36rem; }
}

/* Søgefeltet: øverst på forsiden (mellem menuen og brugermenuen) og over søgeresultaterne. */
.search-form { display: flex; gap: 0.4rem; flex: 1 1 14rem; max-width: 26rem; }
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.4rem 0.8rem;
    border: 2px solid var(--line);
    border-radius: 999px;
    font: inherit;
}
.search-form button {
    padding: 0.4rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--link);
    color: var(--on-accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.search-form button:hover, .search-form button:focus-visible { background: var(--link-strong); }
.home-topbar .search-form { text-shadow: none; }
@media (max-width: 40rem) {
    .home-topbar .search-form { order: 3; flex-basis: 100%; max-width: none; }
}
.search-results { list-style: none; padding: 0; }
.search-results li { margin: 0 0 1rem; }
.search-results p { margin: 0.2rem 0 0; color: var(--muted); }
.search-kind { font-size: 0.8em; font-weight: 700; text-transform: uppercase; color: var(--link); }

/* /static/css/admin.css */
/* Brugeradministration (Admin) */
.login-form select {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 2px solid var(--line);
    border-radius: 0.6rem;
    font: inherit;
    font-size: max(1rem, 16px);
    background: var(--paper);
}
.login-form select:focus-visible { outline: 3px solid var(--sky-top); border-color: var(--sky-top); }
.login-form .check { display: flex; align-items: center; gap: 0.6rem; font-weight: 400; }
.login-form .check input { width: 1.4rem; height: 1.4rem; flex: none; }
.form-success { max-width: 24rem; padding: 0.7rem 1rem; border-radius: 0.6rem; background: var(--success-soft); border-left: 0.3rem solid var(--success); color: var(--success-ink); }
.button-danger { background: var(--danger); color: var(--on-accent); }
.admin-section { margin: 1.5rem 0; padding-top: 0.5rem; border-top: 1px solid var(--line-soft); }
.admin-section h2 { margin-bottom: 0.3rem; }

.user-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.user-table th, .user-table td { padding: 0.5rem 0.6rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.user-table th { background: rgba(0, 0, 0, 0.05); }
.user-table th a { color: inherit; text-decoration: none; white-space: nowrap; }
.user-table input { font: inherit; padding: 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: 0.4rem; width: 100%; box-sizing: border-box; }
.user-table .section-position { max-width: 6rem; }
.user-table th a:hover, .user-table th a:focus-visible { text-decoration: underline; }
.article-actions { margin: 0.5rem 0 1rem; text-align: right; }
.gallery-grid .image-delete { display: block; color: var(--on-accent); margin-top: 0.3rem; padding: 0.5rem 0.4rem; min-height: 2.75rem; box-sizing: border-box; text-align: center; text-decoration: none; font-size: 0.9rem; }
.delete-preview { display: block; max-width: min(100%, 24rem); height: auto; border-radius: 0.6rem; }
.image-upload-form { max-width: 32rem; margin-bottom: 1.5rem; }
.image-upload-form input[type="file"] { max-width: 100%; }
.user-actions { text-align: right; }
.badge-off { background: var(--danger-soft); color: var(--danger); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35rem; margin: 1rem 0; }
.pagination a, .pagination .disabled, .pagination .current { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; min-height: 2.4rem; padding: 0 0.8rem; box-sizing: border-box; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 0.95rem; text-decoration: none; text-align: center; }
.pagination a { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); transition: transform 0.15s, border-color 0.15s, background 0.15s; }
.pagination a:hover, .pagination a:focus-visible { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.pagination .disabled { opacity: 0.4; background: transparent; }
.pagination .current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.pagination .gap { padding: 0 0.2rem; color: var(--muted); }
.pagination-status { flex-basis: 100%; margin-top: 0.2rem; text-align: center; color: var(--muted); font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) { .pagination a { transition: none; } .pagination a:hover, .pagination a:focus-visible { transform: none; } }
.user-count { color: var(--muted); }

/* Lokaliteter: lister, afkrydsningsfelter og koordinater */
.locality-list { padding-left: 1.2rem; }
.locality-list li { margin: 0.3rem 0; }
.locality-choices { list-style: none; margin: 0.5rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.2rem 1rem; }
.locality-choices .check { padding: 0.4rem 0; }
.locality-filter input[type=search] { display: block; width: 100%; max-width: 24rem; box-sizing: border-box; font: inherit; margin: 0.3rem 0 0.8rem; }
.locality-group h3 { margin: 1rem 0 0.2rem; font-size: 1.05rem; }
.locality-links { margin: 1rem 0; padding: 0.5rem 1rem 0.5rem; border: 1px solid var(--line-soft); border-radius: 0.6rem; }
.locality-form { max-width: 40rem; }
.locality-form textarea { width: 100%; box-sizing: border-box; font: inherit; }
.locality-coordinates .field-label { font-weight: 700; }
.trip-localities { margin: 1.5rem 0; }

@media (max-width: 40rem) {
    .form-success { max-width: none; }
    .user-table { font-size: 1rem; }
    .user-table thead { position: absolute; left: -9999px; }
    .user-table, .user-table tbody, .user-table tr, .user-table td { display: block; width: 100%; }
    .user-table tr { margin-bottom: 1rem; padding: 0.4rem 0; border: 1px solid var(--line-soft); border-radius: 0.6rem; background: var(--paper); }
    .user-table td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: 0.35rem 0.8rem; }
    .user-table td[data-label]::before { content: attr(data-label); font-weight: 700; }
    .user-actions { justify-content: flex-end; }
    .user-actions a { padding: 0.6rem 1rem; }
}
@media (min-width: 1600px) {
    .form-success { max-width: 36rem; }
    .user-table { font-size: 1.15rem; }
}

/* Oprydning: lange filstier må brydes, så siden ikke får sidescroll på små skærme. */
.cleanup-task { margin: 1.5rem 0; padding-bottom: 1rem; border-bottom: 1px solid var(--line-soft); }
.cleanup-task code { overflow-wrap: anywhere; }
.cleanup-task ul { padding-left: 1.2rem; max-height: 20rem; overflow-y: auto; }
.cleanup-task .button[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Administrationssiden: faner som piller og værktøjer som kort i rejsekortenes stil */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 1.4rem; padding: 0.4rem; border-radius: 999px; background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12); width: fit-content; max-width: 100%; }
.admin-tabs a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 1.1rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; transition: background 0.15s, color 0.15s; }
.admin-tabs a:hover, .admin-tabs a:focus-visible { background: var(--accent-soft); }
.admin-tabs a[aria-current] { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }
.admin-icon { font-size: 1.15em; line-height: 1; }
.admin-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.admin-tool { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 0.9rem; row-gap: 0.2rem; align-items: start; padding: 1rem 1rem 1rem 1.1rem; border-left: 0.35rem solid var(--accent); border-radius: 0.8rem; background: var(--paper); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); transition: transform 0.15s, box-shadow 0.15s; }
.admin-tool:hover, .admin-tool:focus-within { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18); }
.admin-tool-icon { grid-row: 1 / span 3; display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent-soft); font-size: 1.5rem; line-height: 1; }
.admin-tool > :not(.admin-tool-icon) { grid-column: 2; }
.admin-tool form { margin: 0; }
.admin-tool-name { font: inherit; font-weight: 700; font-size: 1.15rem; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.admin-tool-name::after { content: ""; position: absolute; inset: 0; border-radius: 0.8rem; }
.admin-tool-name:hover, .admin-tool-name:focus-visible { color: var(--accent); }
.admin-tool-name:focus-visible { outline: none; }
.admin-tool:focus-within { outline: 3px solid var(--sky-top); outline-offset: 2px; }
.admin-tool-text { color: var(--muted); font-size: 0.95rem; }
.admin-tool-locked { border-left-color: var(--line); background: rgba(255, 255, 255, 0.55); color: var(--muted); box-shadow: none; }
.admin-tool-locked:hover { transform: none; box-shadow: none; }
.admin-tool-locked .admin-tool-icon { background: var(--line-soft); filter: grayscale(1); opacity: 0.7; }
.admin-tool-locked .admin-tool-name { color: var(--muted); cursor: default; }
.admin-tool-locked .admin-tool-name::after { content: none; }
.admin-tool-note { justify-self: start; margin-top: 0.2rem; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--line-soft); font-size: 0.8rem; font-style: normal; font-weight: 700; }
@media (max-width: 40rem) {
    .admin-tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 1.2rem; width: auto; }
    .admin-tabs a { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .admin-tool, .admin-tabs a { transition: none; } .admin-tool:hover, .admin-tool:focus-within { transform: none; } }

/* Aktivitetsloggen: filteret ligger på én række på brede skærme og under hinanden på smalle. */
.activity-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.8rem; margin: 1rem 0; }
.activity-filter label { display: flex; flex-direction: column; gap: 0.2rem; font-weight: 700; }
.activity-filter input, .activity-filter select { font: inherit; padding: 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: 0.4rem; }
.activity-table code { overflow-wrap: anywhere; }
/* Slet fra loggen og loggens størrelse */
.activity-admin { margin-top: 2rem; }
.activity-form { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line-soft); border-radius: 0.6rem; background: var(--paper); max-width: 40rem; }
.activity-fields { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0.6rem 0; }
.activity-fields label { display: flex; flex-direction: column; gap: 0.2rem; font-weight: 700; flex: 1 1 10rem; }
.activity-fields input { font: inherit; padding: 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: 0.4rem; }
@media (max-width: 700px) {
    .activity-filter { flex-direction: column; align-items: stretch; }
}
.coordinates-map { height: 22rem; max-height: 60vh; margin: 0.4rem 0; border: 1px solid var(--line-soft); border-radius: 0.6rem; }
.coordinates-map[hidden] { display: none; }
.trip-map-popup .trip-map-description { margin: 0.4rem 0; }
.trip-map-popup .trip-map-description > :first-child { margin-top: 0; }
.trip-map-popup .trip-map-description > :last-child { margin-bottom: 0; }
.trip-map-popup .trip-map-coordinates { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--muted); }
.kind-pin { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: var(--on-accent); font-size: 14px; line-height: 1; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.trip-map { height: 14rem; margin: 1rem 0; border: 1px solid var(--line-soft); border-radius: 0.6rem; z-index: 0; }
.locality-table .number { text-align: right; }
.locality-table .actions { white-space: nowrap; }
.place-search-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.place-search-row input { flex: 1 1 14rem; min-width: 0; }
.place-search-status { margin: 0.3rem 0; font-size: 0.9rem; color: var(--muted); }
.place-search-results { list-style: none; margin: 0 0 0.6rem; padding: 0; }
.place-search-choice { display: block; width: 100%; text-align: left; padding: 0.5rem 0.7rem; margin-bottom: 0.25rem; font: inherit; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 0.4rem; cursor: pointer; }
.place-search-choice:hover, .place-search-choice:focus { background: var(--tint); }

/* ---------- Valg af design ---------- */
.design-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.design-option { display: grid; gap: 0.35rem; align-content: start; padding: 0.8rem; border: 2px solid var(--line); border-radius: 0.8rem; background: var(--paper); cursor: pointer; }
.design-option:hover, .design-option:focus-within { border-color: var(--accent); }
.design-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
.design-option input { justify-self: start; width: 1.2rem; height: 1.2rem; }
.design-swatch { display: grid; grid-template-rows: 1.6rem 3rem; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 0.5rem; background: var(--sw-sand); }
.design-swatch > span:first-child { background: linear-gradient(90deg, var(--sw-sky-top), var(--sw-sky-bottom)); }
.design-swatch > span:last-child { margin: 0.5rem; border-left: 0.35rem solid var(--sw-accent); border-radius: 0.3rem; background: var(--sw-paper); box-shadow: inset 0 -0.9rem 0 -0.6rem var(--sw-ink); }
.design-name { font-weight: 700; }
.design-description { font-size: 0.9rem; color: var(--muted); }

/* /static/css/editor.css */
/* Redigering af artikler (Forfatter, Redaktør, Admin) */
.article-form { max-width: 72rem; }
.article-form textarea {
    width: 100%;
    min-height: 16rem;
    padding: 0.7rem 0.8rem;
    border: 2px solid var(--line);
    border-radius: 0.6rem;
    font: inherit;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: max(1rem, 16px);
    line-height: 1.5;
    background: var(--paper);
    resize: vertical;
}
.article-form textarea:focus-visible { outline: 3px solid var(--sky-top); border-color: var(--sky-top); }
.article-form .form-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem 1.5rem; }
.article-form .form-row > div { min-width: 0; max-width: 100%; }
.article-form .form-row select, .article-form .form-row input { width: auto; max-width: 100%; }
.article-form .form-row label { display: block; }
.article-form .form-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.article-form .field-label { font-weight: 700; margin-top: 0.5rem; }
.form-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.8rem; }
.slug-fixed { font-size: 0.9rem; text-transform: lowercase; color: var(--muted); }
.button-secondary, .login-form .button.button-secondary { background: var(--paper); color: var(--ink); border: 2px solid var(--line); }
.login-form a.button { text-align: center; text-decoration: none; }
.preview { max-width: 48rem; }
.article-form .article-fields { min-width: 0; display: grid; gap: 0.5rem; align-content: start; }
/* Smalle felter tilpasset indholdet: titel, forfatter, varighed og nummer behøver ikke hele bredden (titlen vokser med teksten, hvor browseren kender field-sizing) */
.article-form #author { justify-self: start; width: auto; min-width: 12rem; max-width: 100%; }
.article-form input:is([type="text"], [type="number"], [type="date"]), .article-form select { box-sizing: border-box; height: 3rem; }
.article-form .author-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem 1.5rem; }
.article-form .author-row:empty { display: none; }
.article-form .field-group { display: grid; gap: 0; min-width: 0; max-width: 100%; }
.article-form .title-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem 1.5rem; }
.article-form .title-field, .article-form .slug-field { display: grid; gap: 0; min-width: 0; max-width: 100%; }
.article-form .system-date p { margin: 0; line-height: 3rem; white-space: nowrap; }
.article-form #title { width: 24rem; min-width: 12rem; max-width: 100%; field-sizing: content; }
.article-form #duration { justify-self: start; width: 7rem; max-width: 100%; }
.article-form .article-top { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
.article-form .form-buttons { margin: 1rem 0; gap: 0.5rem; }
/* Formularens knapper og indsætknapperne over teksten er små og lige store; Gem og Gem og luk er grønne, Luk uden at gemme har den almindelige orange farve */
.article-form .form-buttons .button, .editor-toolbar .button { margin-top: 0; padding: 0.35rem 0.9rem; font-size: 0.9rem; min-height: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.button-success, .login-form .button.button-success { background: var(--success); color: var(--on-accent); }

/* Formularens hoved: felter og knapper til venstre, lokalitetsområdet til højre (under hinanden på smalle skærme) */
.article-form .article-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 2rem; align-items: start; }
.article-form .article-main { min-width: 0; }
.article-form .locality-panel { min-width: 0; }
.article-form .locality-new { margin: 0.5rem 0 0; }
.article-form .locality-new .button { margin-top: 0; padding: 0.35rem 0.9rem; font-size: 0.9rem; min-height: 0; }
.locality-picker-map { height: 18rem; margin: 0.8rem 0 0; border: 1px solid var(--line-soft); border-radius: 0.6rem; z-index: 0; }
@media (min-width: 62rem) { .article-form .article-head:has(.locality-panel) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* Feltet Rejse tilpasset indholdet */
.article-form #parent { justify-self: start; width: auto; max-width: 100%; field-sizing: content; }

/* Rullegardinlisten med rejsens lokaliteter (static/editor/trip-localities.js) */
.locality-dropdown { position: relative; margin-top: 0.3rem; width: 100%; min-width: 12rem; max-width: 100%; }
.locality-dropdown > summary { display: block; padding: 0.55rem 2.2rem 0.55rem 0.8rem; border: 2px solid var(--line); border-radius: 0.6rem; background: var(--paper); cursor: pointer; list-style: none; overflow-wrap: anywhere; position: relative; }
.locality-dropdown > summary::-webkit-details-marker { display: none; }
.locality-dropdown > summary::after { content: "\25BE"; position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); }
.locality-dropdown[open] > summary { border-color: var(--sky-top); }
.locality-dropdown > summary:focus-visible { outline: 3px solid var(--sky-top); }
.locality-dropdown-list { list-style: none; margin: 0.2rem 0 0; padding: 0.4rem 0.6rem; position: absolute; z-index: 5; left: 0; min-width: 100%; width: max-content; max-width: min(34rem, 90vw); max-height: 20rem; overflow-y: auto; border: 2px solid var(--sky-top); border-radius: 0.6rem; background: var(--paper); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.locality-dropdown-list .check { display: flex; gap: 0.5rem; align-items: center; padding: 0.45rem 0 0.45rem 0.5rem; font-size: 1.05rem; cursor: pointer; }
.locality-dropdown-list [data-locality-group] ul { list-style: none; margin: 0; padding: 0; }
.locality-dropdown-list [data-locality-group] h3 { margin: 0.8rem -0.6rem 0.2rem; padding: 0.35rem 0.6rem; font-size: 1.1rem; font-weight: 700; color: var(--ink); background: var(--tint-strong); border-left: 4px solid var(--sky-top); }
.locality-dropdown-list [data-locality-group]:first-of-type h3 { margin-top: 0.4rem; }
.locality-dropdown-list input[type=search] { display: block; width: 100%; box-sizing: border-box; font: inherit; margin: 0.2rem 0; }
.locality-dropdown-list [hidden] { display: none; }
.locality-save-status { min-height: 1.4rem; margin: 0.3rem 0 0; font-size: 0.9rem; color: var(--muted); }

/* De tilknyttede artikler: hver med sin egen Ret-knap */
.article-form .category-articles { margin: 0; padding-top: 0; border-top: 0; }
/* Knappen Ny artikel: lille og i højde med overkanten af titlens overskrift (labels har 0.5rem margen foroven) */
.article-form .category-articles > p:first-child { margin: 0; }
.article-form .category-articles > p:first-child .button { margin-top: 0.5rem; padding: 0.3rem 0.9rem; font-size: 0.9rem; min-height: 0; }
.article-form .category-articles h2 { margin-top: 0; font-size: 1.2rem; }
.category-article-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.25rem; }
.category-article-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.1rem 0.3rem 0.1rem 0.4rem; border: 1px solid var(--line-soft); border-left: 3px solid var(--sky-top); border-radius: 0.4rem; background: var(--paper); font-size: 0.95rem; line-height: 1.25; }
.category-article-hint { margin: 0.3rem 0 0; font-size: 0.85rem; color: var(--muted); }
.category-article-list li.dragging { opacity: 0.6; border-color: var(--sky-top); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.category-article-list .drag-handle { flex: none; min-width: 1.6rem; min-height: 1.6rem; padding: 0; border: 0; background: none; font-size: 1.2rem; line-height: 1; color: var(--muted); cursor: grab; touch-action: none; }
.category-article-list .drag-handle:hover, .category-article-list .drag-handle:focus-visible { color: var(--ink); }
.category-article-list li.dragging .drag-handle { cursor: grabbing; }
.category-article-list .category-article-title { flex: 1 1 auto; }
.category-article-status { margin: 0.4rem 0 0; color: var(--danger); font-size: 0.9rem; }
.category-article-title { font-weight: 700; overflow-wrap: anywhere; min-width: 0; color: var(--ink); text-decoration: none; }
.category-article-title:hover, .category-article-title:focus-visible { text-decoration: underline; }
.article-form .category-article-list .button { flex: none; margin: 0; min-height: 0; padding: 0.1rem 0.7rem; font-size: 0.85rem; line-height: 1.4; }
@media (min-width: 64rem) {
    .article-form .article-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
}

@media (max-width: 40rem) {
    .article-form { max-width: none; }
    .article-form .form-buttons .button { flex: 1 1 100%; }
}
@media (min-width: 1600px) {
    .article-form, .preview { max-width: 64rem; }
}

/* Visuel redigering: live-forhåndsvisning, billedvælger og panel til det valgte billede (static/editor/*.js) */
.editor-hint { margin: 0.2rem 0 0.6rem; font-size: 0.95rem; color: var(--muted); }
.editor-toolbar { margin-bottom: 0.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.editor-source textarea { display: block; margin: 0; }
.editor-panes { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.editor-preview-pane { min-width: 0; }
.live-preview {
    min-height: 8rem;
    padding: 0.8rem 1rem;
    border: 2px dashed var(--line);
    border-radius: 0.6rem;
    background: var(--paper);
    overflow-wrap: anywhere;
    overflow-y: auto;
}
.live-preview::after { content: ""; display: block; clear: both; }
.live-preview img { cursor: pointer; outline-offset: 3px; }
.live-preview img:hover { outline: 3px solid rgba(0, 120, 200, 0.45); }
.live-preview img.selected { outline: 3px solid var(--sky-top); }
/* Filer og videoer vælges på samme måde som billeder; afspillerne selv tager ikke imod klik, så klikket rammer elementet */
.live-preview .media-embed { cursor: pointer; outline-offset: 3px; }
.live-preview .media-embed audio, .live-preview .media-embed video, .live-preview .media-embed iframe { pointer-events: none; }
.live-preview .media-embed:hover { outline: 3px solid rgba(0, 120, 200, 0.45); }
.live-preview .media-embed.selected { outline: 3px solid var(--sky-top); }
.article-form.with-live-preview .form-buttons button[name="preview"] { display: none; }

.image-inspector {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 0.6rem;
    background: var(--paper);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.image-inspector[hidden] { display: none; }
.image-inspector-title { margin: 0; font-weight: 700; }
.image-inspector label { display: grid; gap: 0.2rem; }
.image-inspector-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.image-inspector-group button, .image-inspector > .button { min-height: 2.75rem; padding: 0.4rem 0.9rem; border: 2px solid var(--line); border-radius: 0.5rem; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.image-inspector-group button[aria-pressed="true"] { background: var(--sky-top); border-color: var(--sky-top); color: var(--on-accent); }

.image-picker { width: min(64rem, 96vw); max-height: 92vh; padding: 1rem; border: 0; border-radius: 0.8rem; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4); }
.image-picker::backdrop { background: rgba(0, 0, 0, 0.55); }
.image-picker-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.image-picker-bar input[type="search"] { flex: 1 1 14rem; min-width: 0; }
.image-picker-bar select { flex: 1 1 10rem; min-width: 0; }
.image-picker-upload { margin: 0; display: inline-flex; align-items: center; cursor: pointer; }
.image-picker-upload.is-disabled { opacity: 0.5; cursor: not-allowed; }
.image-picker-notice { margin: 0.6rem 0 0; padding: 0.5rem 0.7rem; border-left: 4px solid var(--warn); background: var(--warn-soft); }
.image-picker-count { margin: 0.6rem 0; color: var(--muted); }
.image-picker-grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); }
.image-picker-cell { position: relative; }
.image-picker-day { grid-column: 1 / -1; margin: 0.4rem 0 0; font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.image-picker-delete { position: absolute; top: 0.4rem; right: 0.4rem; min-width: 2.75rem; min-height: 2.75rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); font-size: 1.2rem; cursor: pointer; }
.image-picker-delete:hover, .image-picker-delete:focus-visible { background: var(--danger-soft); outline: 3px solid var(--danger); }
.image-picker-confirm { margin: 0 0 0.8rem; padding: 0.8rem 1rem; border: 2px solid var(--danger); border-radius: 0.6rem; background: var(--danger-soft); }
.image-picker-confirm[hidden] { display: none; }
.image-picker-confirm-text { margin: 0 0 0.4rem; font-weight: 700; }
.image-picker-confirm-yes { background: var(--danger); color: var(--on-accent); border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.image-picker-item { display: grid; gap: 0.3rem; padding: 0.3rem; border: 2px solid transparent; border-radius: 0.5rem; background: var(--tint); font: inherit; font-size: 0.8rem; text-align: center; cursor: pointer; }
.image-picker-item:hover, .image-picker-item:focus-visible { border-color: var(--sky-top); }
.image-picker-item[aria-pressed="true"] { border-color: var(--sky-top); background: var(--tint-strong); box-shadow: inset 0 0 0 2px var(--sky-top); }
.image-picker-item[aria-pressed="true"] span::before { content: "✓ "; font-weight: 700; }
.image-picker-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.3rem; }
.image-picker-item span { overflow-wrap: anywhere; }
.image-picker-more { display: block; margin: 1rem auto 0; }

@media (min-width: 64rem) {
    /* Redigeringssiden får plads til tekstfelt og forhåndsvisning side om side */
    main:has(.with-live-preview) { max-width: 90rem; }
    .content:has(.with-live-preview) { max-width: none; }
    .article-form.with-live-preview { max-width: none; }
        .editor-panes { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; --editor-height: clamp(20rem, 70vh, 48rem); }
    /* Tekstfelt og forhåndsvisning har samme højde; en lang tekst ruller i sin egen boks */
    .editor-source textarea { height: var(--editor-height); resize: none; }
    .editor-preview-pane .live-preview { height: var(--editor-height); box-sizing: border-box; }
    .editor-preview-pane { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
}

.editor-media-status { margin-left: 0.5rem; font-size: 0.9rem; color: var(--muted); overflow-wrap: anywhere; }

/* Knapperne over oversigterne Artikler og Rejser (Ny artikel / Ny rejse). */
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0.8rem 0; }
.list-toolbar .button { padding: 0.5rem 1.2rem; font-size: 0.95rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }

/* /static/css/language.css */
/* Sprogvalg: rullemenu i menulinjen og valgsiden */
.language-dropdown .user-dropdown-menu { min-width: 10rem; }
.language-dropdown a[aria-current] { background: var(--tint); }
.language-choices { display: grid; gap: 0.8rem; max-width: 24rem; padding: 0; list-style: none; }
.language-choice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border: 2px solid var(--line);
    border-radius: 0.8rem;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}
.language-choice:hover, .language-choice:focus-visible { background: var(--tint); }
.language-choice[aria-current] { border-color: var(--ink); }
.language-choice-flag { font-size: 2rem; line-height: 1; }
.language-choice-name { flex: 1; }
.language-choice-current { font-size: 0.85rem; opacity: 0.7; }

/* Oversættelse af sider: knapper øverst og besked om maskinoversættelse */
.translation-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 1rem; }
.translation-label { font-size: 0.9rem; color: var(--muted); }
.translation-link { padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 0.9rem; }
.translation-link:hover, .translation-link:focus-visible, .translation-link[aria-current] { background: var(--tint); }
.translation-notice { margin: 0 0 1rem; font-size: 0.85rem; font-style: italic; color: var(--muted); }
.translation-failed { color: var(--danger); font-style: normal; }

/* /static/css/comments.css */
/* Kommentarer under en artikel */
.comments { margin-top: 2.5rem; padding-top: 1rem; border-top: 2px solid rgba(0, 0, 0, 0.1); max-width: 48rem; }
.comment-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.7rem; }
.comment { padding: 0.7rem 1rem; border-radius: 1rem; background: var(--paper); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); overflow-wrap: anywhere; }
.comment-meta { margin: 0 0 0.3rem; color: var(--muted); font-size: 0.9rem; }
.comment-author { color: var(--ink); margin-right: 0.5rem; }
.comment-body { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.comments-empty { color: var(--muted); }
.comment-form { display: grid; gap: 0.5rem; }
.comment-form label { font-weight: 700; }
.comment-form textarea { width: 100%; padding: 0.6rem 0.8rem; font: inherit; border: 2px solid var(--line); border-radius: 0.6rem; resize: vertical; }
.comment-form textarea:focus-visible { outline: 3px solid var(--sky-top); border-color: var(--sky-top); }
.comment-form .form-error { max-width: none; margin: 0; }
.comment-form .button { justify-self: start; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.emoji-picker summary { display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px; background: rgba(0, 0, 0, 0.06); cursor: pointer; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr)); gap: 0.2rem; margin-top: 0.5rem; padding: 0.5rem; border-radius: 0.8rem; background: var(--paper); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.emoji-option { min-height: 2.75rem; border: 0; border-radius: 0.5rem; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.emoji-option:hover, .emoji-option:focus-visible { background: rgba(30, 111, 217, 0.15); }
@media (max-width: 40rem) {
    .comment-form .button { justify-self: stretch; text-align: center; }
}

/* Reaktioner (emoji) på artiklen, samlet over kommentarerne */
.reactions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.4rem; margin: 0 0 1rem; }
.reaction-chip { position: relative; }
.reaction-chip summary { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 2.25rem; padding: 0.2rem 0.7rem; border-radius: 999px; background: rgba(0, 0, 0, 0.06); cursor: pointer; list-style: none; }
.reaction-chip summary::-webkit-details-marker { display: none; }
.reaction-chip.reaction-mine summary { background: rgba(30, 111, 217, 0.2); font-weight: 700; }
.reaction-emoji { font-size: 1.2rem; line-height: 1; }
.reaction-givers { position: absolute; z-index: 5; left: 0; top: 100%; margin: 0.25rem 0 0; padding: 0.5rem 0.9rem; list-style: none; min-width: 8rem; max-width: min(80vw, 18rem); max-height: 14rem; overflow-y: auto; border-radius: 0.7rem; background: var(--paper); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.reaction-givers li { padding: 0.2rem 0; overflow-wrap: anywhere; }
.reaction-form { display: flex; flex-wrap: wrap; gap: 0.15rem; margin-left: auto; }
.reaction-button { min-width: 2.25rem; min-height: 2.25rem; border: 0; border-radius: 999px; background: transparent; font-size: 1.2rem; line-height: 1; cursor: pointer; opacity: 0.55; }
.reaction-button:hover, .reaction-button:focus-visible, .reaction-button.reaction-given { opacity: 1; background: rgba(30, 111, 217, 0.15); }
@media (max-width: 40rem) {
    .reaction-form { margin-left: 0; }
}

/* Ret og slet en kommentar */
.comment-edit { display: inline-block; padding: 0.4rem 0.2rem; }
.comment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.comment-cancel { padding: 0.5rem 0.2rem; }
.comment-delete-form { max-width: 48rem; margin-top: 1.5rem; }
.comment-delete-form .button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 40rem) {
    .comment-actions { flex-direction: column; align-items: stretch; text-align: center; }
    .comment-delete-form .button { width: 100%; }
}

/* Delingslinks: kun for dem, der må rette artiklen */
.share-panel { margin-top: 2.5rem; padding-top: 1rem; border-top: 2px solid rgba(0, 0, 0, 0.1); max-width: 48rem; }
.share-new { display: grid; gap: 0.4rem; margin: 0 0 1rem; padding: 0.8rem 1rem; border-radius: 1rem; background: var(--paper); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.share-new label { font-weight: 700; }
.share-url { width: 100%; padding: 0.6rem 0.8rem; font: inherit; border: 2px solid var(--line); border-radius: 0.6rem; }
.share-hint { margin: 0; color: var(--muted); font-size: 0.9rem; }
.share-panel .button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.share-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.share-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 1rem; background: var(--paper); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
@media (max-width: 40rem) {
    .share-panel .button { width: 100%; text-align: center; }
}
.article-actions .button { margin-left: 0.4rem; }
@media (max-width: 40rem) {
    .article-actions { display: flex; gap: 0.5rem; }
    .article-actions .button { flex: 1; margin-left: 0; text-align: center; }
}

/* /static/css/image-sources.css */
/* Hent billeder fra Google Fotos */
.google-photos { margin-bottom: 1.5rem; }
.google-photos-status { margin: 0.5rem 0 0; color: var(--muted); }
.image-picker-google[hidden] { display: none; }

/* Billedsiderne: computeren, Google Fotos og serveren side om side på store skærme, under hinanden på små */
.image-sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.image-source { padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 0.6rem; min-width: 0; }
.image-source h2 { margin-top: 0; font-size: 1.1rem; }
.image-source .image-upload-form, .image-source .google-photos { margin-bottom: 0; }
.server-images { list-style: none; margin: 0 0 0.8rem; padding: 0; max-height: 14rem; overflow-y: auto; }
.server-images label { display: block; padding: 0.35rem 0; word-break: break-all; }
.image-upload-form.is-dragging { outline: 2px dashed var(--link); outline-offset: 0.3rem; }
.batch-upload-status { margin: 0.5rem 0 0; color: var(--muted); }

/* /static/css/print.css */
/* ---------- Udskrift (artikel og rejse) ---------- */
.print-backdrop {
    position: fixed; /* gentages på hver side, når der udskrives */
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, var(--sky-top) 0, var(--sky-bottom) 8rem, #fff 20rem);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.print-backdrop .sun { top: 1.2rem; right: 8%; width: 5rem; box-shadow: 0 0 30px 10px rgba(255, 224, 102, 0.6); }
.print-backdrop .cloud { animation: none; }
.print-backdrop .cloud-1 { top: 2.5rem; left: 8%; }
.print-backdrop .cloud-2 { top: 1rem; left: 48%; }

.print-content { margin: 5rem auto 2rem; background: rgba(255, 255, 255, 0.92); border-radius: 0.8rem; }
.print-toolbar { margin-bottom: 1.5rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 0.6rem; background: var(--paper); line-height: 1.4; }
.print-choice { display: inline-block; margin-right: 1rem; }
.print-hint { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--muted); }
.print-form { margin: 1rem 0; }
.print-article h1, .print-article h2, .print-article h3 { break-after: avoid; }
.print-article img, .print-article figure, .print-article blockquote { break-inside: avoid; }
.print-article + .print-article { break-before: page; margin-top: 2rem; }

@page { margin: 1.5cm; }
@media print {
    .print-toolbar { display: none; }
    .print-content { margin: 0 auto; border-radius: 0; max-width: none; padding: 0; background: rgba(255, 255, 255, 0.92); }
    .print-content a { color: inherit; text-decoration: none; }
}

