/* ==========================================================================
   Moodle Kalenderfilter - samlet stylesheet
   Erstatter global-style.css og filter-style.css.
   ========================================================================== */

:root {
    /* Flader */
    --canvas: #f4f6fb;
    --surface: #ffffff;
    --surface-sunken: #f8fafc;

    /* Tekst */
    --ink: #101828;
    --body: #475467;
    --muted: #778299;

    /* Streger */
    --line: #e4e8f0;
    --line-strong: #d0d7e4;

    /* Brand */
    --brand: #22508f;
    --brand-strong: #183c6e;
    --brand-soft: #eef3fb;
    --brand-ring: rgba(34, 80, 143, 0.18);

    /* Status */
    --keep: #0e9f6e;
    --keep-soft: #e7f7f1;
    --hide: #d03b3b;
    --hide-soft: #fdeeee;
    --warn: #b7791f;
    --warn-soft: #fdf6e7;

    /* Form */
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 8px 24px -12px rgba(16, 24, 40, 0.16);
    --shadow-lg: 0 4px 6px -2px rgba(16, 24, 40, 0.04), 0 24px 48px -12px rgba(16, 24, 40, 0.18);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--body);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    /* Baggrunden er ren CSS - ingen billedfil at hente.
       Nederste lag er tre bløde farveskær, øverste lag et fint prikmønster
       der giver lidt tekstur uden at stjæle opmærksomhed fra indholdet. */
    background-color: var(--canvas);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='1.5' cy='1.5' r='1.5' fill='%2322508f' fill-opacity='.07'/%3E%3C/svg%3E"),
        radial-gradient(820px 560px at 0% 0%,    rgba(34, 80, 143, 0.30), transparent 64%),
        radial-gradient(760px 520px at 100% 4%,  rgba(13, 148, 136, 0.22), transparent 62%),
        radial-gradient(900px 620px at 88% 96%,  rgba(79, 70, 187, 0.20), transparent 64%),
        radial-gradient(760px 520px at 4% 100%,  rgba(14, 159, 110, 0.16), transparent 62%);
    background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-attachment: fixed;
}

h1, h2, h3 { color: var(--ink); font-weight: 640; line-height: 1.25; margin: 0; }
h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.15rem); letter-spacing: -0.021em; }
h2 { font-size: 1.15rem; letter-spacing: -0.011em; }
h3 { font-size: 1rem; }

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

a { color: var(--brand); text-decoration: none; font-weight: 550; }
a:hover { text-decoration: underline; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --------------------------------------------------------------- Skelet - */

/* Halvgennemsigtig, saa farveskaeret bagved lige anes gennem baandet */
.site-header {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 640;
    color: var(--ink);
    font-size: 0.975rem;
    letter-spacing: -0.011em;
}
.wordmark:hover { text-decoration: none; }
.wordmark__mark {
    width: 28px; height: 28px;
    border-radius: 7px;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.site-nav {
    margin-left: auto;
    display: flex;
    gap: 1.25rem;
    font-size: 0.9rem;
}
.site-nav a { color: var(--body); font-weight: 500; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }

main { flex: 1; width: 100%; }

.wrap {
    max-width: 46rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}
.wrap--wide { max-width: 78rem; }

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.875rem;
}
.site-footer__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: center;
}
.site-footer__inner > :last-child { margin-left: auto; }

/* ----------------------------------------------------------------- Kort - */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 1.25rem; }
.card__title { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.35rem; }
.card__hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.15rem; }

.lede { font-size: 1.075rem; color: var(--body); }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.075em;
    font-size: 0.72rem;
    font-weight: 680;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------- Trin 1-3 - */

.steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;      /* det er en <ol>, men tallene tegner vi selv */
    padding: 0;
    margin: 0 0 2rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}
.steps__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
}
.steps__num {
    width: 22px; height: 22px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 0.75rem; font-weight: 650;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    color: var(--muted);
    flex-shrink: 0;
}
.steps__item[data-state="done"] { color: var(--body); }
.steps__item[data-state="done"] .steps__num {
    background: var(--keep); border-color: var(--keep); color: #fff;
}
.steps__item[data-state="now"] { color: var(--ink); font-weight: 600; }
.steps__item[data-state="now"] .steps__num {
    background: var(--brand); border-color: var(--brand); color: #fff;
}
.steps__bar { flex: 1; height: 1px; background: var(--line-strong); min-width: 12px; }

/* Paa smalle skaerme fylder de tre trin for meget - skjul stregerne og lad
   dem staa som en kompakt raekke. */
@media (max-width: 30rem) {
    .steps { gap: 0.35rem 0.75rem; font-size: 0.8rem; }
    .steps__bar { display: none; }
}

/* ---------------------------------------------------------------- Knapper - */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.62rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font: inherit;
    font-size: 0.925rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { background: var(--brand-strong); }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-sunken); border-color: var(--muted); }

.btn-ghost { background: transparent; color: var(--body); padding-inline: 0.6rem; }
.btn-ghost:hover:not(:disabled) { background: var(--surface-sunken); color: var(--ink); }

.btn-lg { padding: 0.8rem 1.4rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 0.7rem; font-size: 0.85rem; }

.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.btn-row--split { justify-content: space-between; }
.btn-row--end { justify-content: flex-end; }

/* ------------------------------------------------------------ Formularer - */

label { display: block; font-weight: 600; font-size: 0.875rem; color: var(--ink); margin-bottom: 0.35rem; }
.field { margin-bottom: 1rem; }
.field__help { font-size: 0.83rem; color: var(--muted); margin-top: 0.3rem; }

input[type="text"], input[type="number"], select, textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    font: inherit;
    font-size: 0.925rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23778299' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    padding-right: 2rem;
    cursor: pointer;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-ring);
}
input:disabled, select:disabled { background: var(--surface-sunken); color: var(--muted); cursor: not-allowed; }
textarea { resize: vertical; min-height: 5rem; font-family: var(--mono); font-size: 0.82rem; line-height: 1.5; }

.input-group { display: flex; gap: 0.6rem; align-items: stretch; }
.input-group > input { flex: 1; min-width: 0; }

/* ------------------------------------------------------------------ Bokse - */

.note {
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    background: var(--brand-soft);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
}
.note--ok { border-left-color: var(--keep); background: var(--keep-soft); }
.note--warn { border-left-color: var(--warn); background: var(--warn-soft); }
.note--bad { border-left-color: var(--hide); background: var(--hide-soft); color: #7f1d1d; }
.note strong { color: inherit; }
.note + .note { margin-top: 0.75rem; }

/* --------------------------------------------------------------- Lister - */

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.75rem;
    line-height: 1.55;
}
.checklist li::before {
    content: "";
    position: absolute;
    left: 0.25rem; top: 0.82em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

.steplist { margin: 0; padding-left: 1.25rem; }
.steplist li { margin-bottom: 0.6rem; padding-left: 0.25rem; }

/* =========================================================== Filtersiden = */

.filter-layout {
    display: grid;
    grid-template-columns: minmax(0, 27rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 68rem) {
    .filter-layout { grid-template-columns: minmax(0, 1fr); }
}

.panel-stack > * + * { margin-top: 1.25rem; }

.preview-card { position: sticky; top: 1.5rem; }
@media (max-width: 68rem) { .preview-card { position: static; } }

/* Faneblade: Presets / Vaelg selv / Avanceret */
.tabs {
    display: flex;
    gap: 0.25rem;
    background: var(--surface-sunken);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
    margin-bottom: 1.25rem;
}
.tab {
    flex: 1;
    padding: 0.5rem 0.5rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 550;
    color: var(--body);
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] {
    background: var(--surface);
    color: var(--brand);
    font-weight: 650;
    box-shadow: var(--shadow-sm);
}

/* Begivenhedsgrupper man kan slaa fra */
.group-list {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    max-height: 26rem;
    overflow-y: auto;
}
.group-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background-color .12s;
}
.group-row:last-child { border-bottom: none; }
.group-row:hover { background: var(--surface-sunken); }
.group-row input[type="checkbox"] {
    width: 17px; height: 17px;
    accent-color: var(--brand);
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}
.group-row__text { flex: 1; min-width: 0; }
.group-row__name {
    display: block;
    font-size: 0.9rem;
    color: var(--ink);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.group-row__meta { font-size: 0.79rem; color: var(--muted); }
.group-row.is-hidden .group-row__name { color: var(--muted); text-decoration: line-through; }
.group-row__count {
    font-size: 0.75rem;
    font-weight: 620;
    color: var(--muted);
    background: var(--surface-sunken);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 0.05rem 0.5rem;
    flex-shrink: 0;
}
.group-row.is-hidden .group-row__count {
    background: var(--hide-soft); border-color: #f5c9c9; color: #9b2c2c;
}

.list-toolbar {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.list-toolbar input[type="text"] { flex: 1; min-width: 9rem; }

/* Avancerede regler */
.rule {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    background: var(--surface);
}
.rule.is-off { background: var(--surface-sunken); opacity: 0.68; }
.rule__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}
.rule__name { font-weight: 640; font-size: 0.875rem; color: var(--ink); flex: 1; }
.rule__body > * + * { margin-top: 0.7rem; }

.switch {
    width: 36px; height: 21px;
    border: none; border-radius: 11px;
    background: var(--line-strong);
    position: relative; cursor: pointer;
    flex-shrink: 0;
    transition: background-color .2s;
    padding: 0;
}
.switch::after {
    content: "";
    position: absolute; top: 2px; left: 2px;
    width: 17px; height: 17px;
    background: #fff; border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: left .2s;
}
.switch[aria-checked="true"] { background: var(--keep); }
.switch[aria-checked="true"]::after { left: 17px; }

/* Baggrundsinfo nederst i en fane. Bevidst lettere end .note, saa den ikke
   konkurrerer med den advarsel der kan staa lige ovenover. */
.pane-footnote {
    margin: 1.35rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.83rem;
    line-height: 1.55;
    color: var(--muted);
}
.pane-footnote strong { color: var(--body); }

/* Til/fra-raekke med forklarende tekst (fx "Fjern ogsaa studierum") */
.toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.toggle-row .switch { margin-top: 0.15rem; }
.toggle-row__title {
    display: block;
    font-weight: 600;
    font-size: 0.925rem;
    color: var(--ink);
}
.toggle-row__hint {
    display: block;
    font-size: 0.83rem;
    color: var(--muted);
    margin-top: 0.1rem;
}

/* "Husk mit link" paa forsiden */
.remember-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-sunken);
    font-weight: 400;
    cursor: pointer;
}
.remember-row input[type="checkbox"] {
    width: 17px; height: 17px;
    accent-color: var(--brand);
    flex-shrink: 0;
    margin: 0.15rem 0 0;
    cursor: pointer;
}
.remember-row strong { font-size: 0.9rem; color: var(--ink); }
.remember-row__hint {
    display: block;
    font-size: 0.83rem;
    color: var(--muted);
    margin-top: 0.15rem;
    line-height: 1.5;
}

.tag {
    display: inline-flex; align-items: center;
    font-size: 0.78rem; font-weight: 620;
    padding: 0.1rem 0.45rem;
    border-radius: 5px;
    white-space: nowrap;
}
.tag--hide { background: var(--hide-soft); color: #9b2c2c; }
.tag--keep { background: var(--keep-soft); color: #056f4c; }

/* Forhaandsvisning */
.summary-bar {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 0.8rem 1rem;
    background: var(--surface-sunken);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}
.stat__value { font-size: 1.35rem; font-weight: 660; color: var(--ink); line-height: 1.15; }
.stat__label { font-size: 0.78rem; color: var(--muted); }
.stat--hide .stat__value { color: var(--hide); }
.stat--keep .stat__value { color: var(--keep); }

.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--body); margin-bottom: 0.9rem; }
.legend-item { display: flex; align-items: center; gap: 0.4rem; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.swatch--keep { background: #64748b; }
.swatch--hide { background: var(--hide); }
.swatch--exempt { background: var(--keep); }

.calendar-shell {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    background: var(--surface);
    min-height: 24rem;
    /* Ugeskemaet kan ikke blive smallere end sine fem dage. Lad det rulle
       inde i kassen, i stedet for at skubbe hele siden sidelaens. */
    overflow-x: auto;
}

/* Giv dagene en mindstebredde, saa de ikke bliver mast sammen paa mobil */
.calendar-shell .fc-view-harness,
.calendar-shell .fc-scrollgrid { min-width: 32rem; }

.overlay {
    position: absolute; inset: 0;
    background: rgba(255, 255, 255, 0.92);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.75rem;
    border-radius: var(--radius-sm);
    z-index: 5;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 1.5rem;
}
.spinner {
    width: 26px; height: 26px;
    border: 2.5px solid var(--brand-ring);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .spinner { animation-duration: 2s; }
    * { transition-duration: 0.01ms !important; }
}

/* FullCalendar-tilpasning */
.fc { font-size: 0.85rem; }
.fc .fc-toolbar.fc-header-toolbar { margin-bottom: 0.75rem; gap: 0.5rem; flex-wrap: wrap; }
.fc .fc-toolbar-title { font-size: 1rem !important; font-weight: 640; color: var(--ink); }
.fc .fc-button {
    background: var(--surface) !important;
    border-color: var(--line-strong) !important;
    color: var(--body) !important;
    font-size: 0.8rem !important;
    font-weight: 550 !important;
    padding: 0.3rem 0.6rem !important;
    box-shadow: none !important;
    text-transform: none !important;
}
.fc .fc-button:hover { background: var(--surface-sunken) !important; }
.fc .fc-button-active,
.fc .fc-button:not(:disabled):active {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
}
.fc .fc-button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.fc-theme-standard td, .fc-theme-standard th, .fc-theme-standard .fc-scrollgrid { border-color: var(--line); }
.fc .fc-col-header-cell-cushion { font-weight: 600; color: var(--body); font-size: 0.78rem; padding: 0.4rem; }
.fc .fc-timegrid-slot-label-cushion { font-size: 0.72rem; color: var(--muted); }
.fc .fc-day-today { background: var(--brand-soft) !important; }
.fc-event { border: none !important; border-radius: 4px !important; padding: 1px 3px !important; }
.fc-event-title { font-size: 0.7rem !important; line-height: 1.25 !important; font-weight: 550; }
.fc-event-time { display: none !important; }
.fc-event.is-hidden { opacity: 0.9; text-decoration: line-through; }

/* ============================================================== Presets = */

.info-grid { display: grid; gap: 0.75rem; }

.info-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    background: var(--surface);
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}
.info-card__body { flex: 1; min-width: 0; }
.info-card__title { font-weight: 640; color: var(--ink); font-size: 0.95rem; }
.info-card__meta { font-size: 0.82rem; color: var(--muted); margin-top: 0.1rem; }
.info-card__desc { font-size: 0.875rem; margin-top: 0.4rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.chip {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    border-radius: 6px;
    padding: 0.3rem 0.65rem;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 550;
    color: var(--body);
    cursor: pointer;
    transition: all .12s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] {
    background: var(--brand); border-color: var(--brand); color: #fff;
}

/* "Hent dit link i Moodle": trin til venstre, skaermbillede til hoejre */
.howto {
    display: grid;
    /* Billedet faar lidt mere plads end teksten - skaermbilledet er 617 px
       bredt, og bliver det for smalt, kan man ikke laese knapperne paa det. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.25rem;
}
@media (max-width: 44rem) {
    /* Paa mobil kommer billedet foerst - det forklarer hurtigere end teksten */
    .howto { grid-template-columns: minmax(0, 1fr); }
    .howto__figure { order: -1; }
}

.howto__figure { margin: 0; }
.howto__shot {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
}
.howto__figure a:hover .howto__shot { border-color: var(--brand); }
.howto__caption {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    margin-top: 0.4rem;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--muted);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-sunken);
}

/* ============================================================== Resultat = */

.link-out {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
}
.link-out input {
    font-family: var(--mono);
    font-size: 0.78rem;
    background: var(--surface-sunken);
}

details.accordion {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
}
details.accordion + details.accordion { margin-top: 0.6rem; }
details.accordion > summary {
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.925rem;
    color: var(--ink);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
details.accordion > summary::-webkit-details-marker { display: none; }
details.accordion > summary::before {
    content: "";
    width: 0; height: 0;
    border-left: 5px solid var(--muted);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform .2s;
    flex-shrink: 0;
}
details.accordion[open] > summary::before { transform: rotate(90deg); }
details.accordion > summary:hover { background: var(--surface-sunken); }
.accordion__body { padding: 0 1rem 1rem; font-size: 0.9rem; }
.accordion__body ol { padding-left: 1.25rem; margin: 0.5rem 0; }
.accordion__body li { margin-bottom: 0.4rem; }

/* ------------------------------------------------------------- Dialoger - */

dialog {
    border: none;
    border-radius: var(--radius);
    padding: 0;
    max-width: 34rem;
    width: calc(100% - 2rem);
    box-shadow: var(--shadow-lg);
    color: var(--body);
}
dialog::backdrop { background: rgba(16, 24, 40, 0.45); }
.dialog__head {
    padding: 1.25rem 1.5rem 0;
}
.dialog__body { padding: 1rem 1.5rem; }
.dialog__foot {
    padding: 1rem 1.5rem 1.25rem;
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.qr { width: 100%; max-width: 17rem; border-radius: var(--radius-sm); display: block; margin: 0.75rem auto; }
