/* Genbrugelig Finch-widget. Kræver finch-components.css og .finch-kit. */
.fc-newsletter-slot{padding:24px var(--fc-gutter) 48px;min-height:188px;display:flex;justify-content:flex-end}
.fc-newsletter{width:280px;max-width:100%;position:relative;color:var(--fc-ink);background:var(--fc-paper)}
.fc-newsletter.is-floating{position:fixed;right:24px;bottom:24px;z-index:20;max-height:calc(100svh - 48px);overflow:auto;box-shadow:0 8px 32px #30243d18}
.fc-newsletter details{border:1px solid var(--fc-purple)}
.fc-newsletter summary{display:block;list-style:none;cursor:pointer}
.fc-newsletter summary::-webkit-details-marker{display:none}
.fc-newsletter summary:focus-visible{outline:3px solid var(--fc-purple);outline-offset:5px}
.fc-newsletter-board{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:var(--fc-purple)}
.fc-newsletter-tile{display:grid;place-items:center;aspect-ratio:1;color:var(--fc-ink);background:var(--fc-mint);font:28px/1 var(--fc-serif)}
.fc-newsletter-tile:nth-child(5n+1){background:var(--fc-lime)}
.fc-newsletter-tile:nth-child(5n+2){background:var(--fc-orange)}
.fc-newsletter-tile:nth-child(5n+3){background:var(--fc-purple);color:var(--fc-paper)}
.fc-newsletter-tile:nth-child(5n+4){background:var(--fc-paper)}
.fc-newsletter[data-face=subscribe] .fc-newsletter-tile:nth-child(5n+1){background:var(--fc-orange)}
.fc-newsletter[data-face=subscribe] .fc-newsletter-tile:nth-child(5n+2){background:var(--fc-mint)}
.fc-newsletter[data-face=subscribe] .fc-newsletter-tile:nth-child(5n+4){background:var(--fc-lime)}
.fc-newsletter-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;font-size:14px;line-height:1.4}
.fc-newsletter-caption b{font-size:22px;font-weight:400;line-height:1}
.fc-newsletter details[open] .fc-newsletter-caption b{font-size:0}
.fc-newsletter details[open] .fc-newsletter-caption b::after{content:'−';font-size:22px}
.fc-newsletter-dismiss{position:absolute;right:0;top:-44px;width:44px;height:44px;border:0;background:var(--fc-paper);color:var(--fc-ink);font-size:24px!important;padding:0}
.fc-newsletter.is-floating .fc-newsletter-dismiss{position:static;display:block;margin-left:auto;height:32px;min-width:44px;font-size:22px!important}
.fc-newsletter-panel{padding:22px 20px 24px;border-top:1px solid var(--fc-line)}
.fc-newsletter-panel h2{font:30px/1.12 var(--fc-serif);letter-spacing:-.03em;margin-bottom:14px}
.fc-newsletter-panel>p{font-size:16px;line-height:1.5}
.fc-newsletter-form{margin-top:22px}
.fc-newsletter-form fieldset{padding:0;margin:0;border:0;min-width:0}
.fc-newsletter-form .fc-field{font-size:14px;gap:7px}
.fc-newsletter-form input[type=email]{width:100%;min-width:0;background:var(--fc-paper);padding:11px 10px;font-size:16px}
.fc-newsletter-form .fc-check{font-size:14px;line-height:1.45;margin:16px 0;gap:10px;align-items:start}
.fc-newsletter-form .fc-check input{width:18px;height:18px;margin:2px 0;flex-shrink:0;accent-color:var(--fc-purple)}
.fc-newsletter-form .fc-btn{width:100%;justify-content:center;transition:none;font-size:16px}
.fc-newsletter-status{font-size:14px;line-height:1.45;margin-top:16px!important}
.fc-newsletter-status:empty{display:none}
.fc-newsletter fieldset:disabled{opacity:.6}
.fc-newsletter fieldset:disabled button{opacity:1}
@media(min-width:701px){.fc-newsletter:has(details[open]){width:340px}.fc-newsletter:has(details[open]) .fc-newsletter-tile{aspect-ratio:auto;height:38px}}
@media(max-width:700px){.fc-newsletter-slot{padding-block:24px 48px;justify-content:center}.fc-newsletter{width:100%;max-width:380px}.fc-newsletter-tile{font-size:clamp(25px,7vw,36px)}.fc-newsletter-panel{padding:26px 22px}.fc-newsletter-dismiss{top:-40px;height:40px}}
@media print{.fc-newsletter-slot,.fc-newsletter{display:none!important}}

/* Valgt variant A, revision 003: få farver og individuelle vendinger. */
.fc-newsletter--quiet{--newsletter-color:var(--fc-mint);--newsletter-ink:var(--fc-ink)}
.fc-newsletter--quiet[data-newsletter-color=purple],.fc-newsletter--quiet .fc-newsletter-tile[data-newsletter-color=purple]{--newsletter-color:var(--fc-purple);--newsletter-ink:var(--fc-paper)}
.fc-newsletter--quiet[data-newsletter-color=orange],.fc-newsletter--quiet .fc-newsletter-tile[data-newsletter-color=orange]{--newsletter-color:var(--fc-orange);--newsletter-ink:var(--fc-ink)}
.fc-newsletter--quiet[data-newsletter-color=lime],.fc-newsletter--quiet .fc-newsletter-tile[data-newsletter-color=lime]{--newsletter-color:var(--fc-lime);--newsletter-ink:var(--fc-ink)}
.fc-newsletter--quiet .fc-newsletter-tile[data-newsletter-color=mint]{--newsletter-color:var(--fc-mint);--newsletter-ink:var(--fc-ink)}
.fc-newsletter--quiet details{border:0}
.fc-newsletter--quiet.is-floating{box-shadow:none}
.fc-newsletter--quiet .fc-newsletter-board{background:transparent}
.finch-kit .fc-newsletter--quiet[data-newsletter-color] .fc-newsletter-tile{background:color-mix(in srgb,var(--newsletter-color) 18%,var(--fc-paper));color:var(--fc-ink);transform-origin:center}
.finch-kit .fc-newsletter--quiet[data-newsletter-color] .fc-newsletter-tile:nth-child(3n){background:var(--fc-paper)}
.finch-kit .fc-newsletter--quiet[data-newsletter-color] .fc-newsletter-tile:nth-child(7n+2){background:var(--newsletter-color);color:var(--newsletter-ink)}
.fc-newsletter--quiet .fc-newsletter-caption{padding-inline:0}
.fc-newsletter--quiet .fc-newsletter-panel{padding:24px 0}
.fc-newsletter-letter{display:block}
.fc-newsletter-tile[data-flipping=true]{will-change:transform}
.newsletter-pause{padding:9px 0;border:0;background:transparent;color:var(--fc-muted);font-size:12px!important;text-decoration:underline;text-underline-offset:4px;min-height:44px}

/* Revision 004: kun én kompakt fliserække, med samme bundplacering. */
.fc-newsletter-slot:has(>.fc-newsletter--compact){min-height:100px}
.fc-newsletter--compact,.fc-newsletter--compact:has(details[open]){width:338px;max-width:100%}
.fc-newsletter--compact .fc-newsletter-board{grid-template-columns:repeat(13,minmax(0,1fr))}
.fc-newsletter--compact .fc-newsletter-tile,.fc-newsletter--compact:has(details[open]) .fc-newsletter-tile{height:28px;aspect-ratio:auto;font-size:19px}
.fc-newsletter--compact .fc-newsletter-tile:last-child{font:22px/1 var(--fc-sans)}
.fc-newsletter--compact.is-floating{right:0;bottom:0;overflow:visible}
.fc-newsletter--compact.is-floating:has(details[open]){overflow:auto}
@media(max-width:380px){.fc-newsletter--compact .fc-newsletter-tile{font-size:17px}}

/* Revision 006: fast olivenfarve og luft i den åbne formular. */
.fc-newsletter--olive{--newsletter-olive:#62653D}
.finch-kit .fc-newsletter--quiet.fc-newsletter--olive[data-newsletter-color] .fc-newsletter-tile:nth-child(n){background:var(--newsletter-olive);color:var(--fc-paper)}
.fc-newsletter--compact.fc-newsletter--olive .fc-newsletter-panel{padding:24px}

/* Revision 007: en fast mørk boks, hvor kun bogstaverne vender. */
.fc-newsletter-slot:has(>.fc-newsletter--ink){min-height:132px}
.fc-newsletter--compact.fc-newsletter--ink{width:260px}
.fc-newsletter--compact.fc-newsletter--ink:has(details[open]){width:338px}
.fc-newsletter--ink .fc-newsletter-board{display:flex;align-items:center;gap:0;min-height:60px;padding:16px 24px;background:var(--fc-ink)}
.finch-kit .fc-newsletter--quiet.fc-newsletter--ink[data-newsletter-color] .fc-newsletter-tile:nth-child(n){flex:0 0 auto;width:auto;height:28px;aspect-ratio:auto;background:var(--fc-ink);color:var(--fc-paper);font:20px/1.4 var(--fc-sans);letter-spacing:0}
.finch-kit .fc-newsletter--quiet.fc-newsletter--ink[data-newsletter-color] .fc-newsletter-tile:last-child{width:24px;margin-left:auto;font-size:24px}
.fc-newsletter--compact.fc-newsletter--ink .fc-newsletter-panel{padding:24px}

/* Revision 008: fast hjørne på alle skærme og plads direkte over footermenuen. */
.fc-footer-actions{display:flex;flex-direction:column;align-items:flex-end;gap:24px;max-width:100%}
.fc-footer-actions>.fc-newsletter-slot{width:100%;min-height:60px;padding:0;justify-content:flex-end;align-items:flex-start}
.fc-newsletter--compact.is-floating{max-width:100%;max-height:100svh}
@media(max-width:700px){.fc-footer-actions{width:100%}}

/* Ingen ydre fokusramme; tastaturfokus markeres inde i den mørke boks. */
.fc-newsletter--ink summary:focus-visible{outline:none}
.fc-newsletter--ink .fc-newsletter-board{position:relative}
.fc-newsletter--ink summary:focus-visible .fc-newsletter-board::after{content:'';position:absolute;left:24px;right:24px;bottom:10px;height:2px;background:var(--fc-paper)}

/* Formularen åbner opad som overlay uden at ændre sidens højde. */
.fc-newsletter--compact.fc-newsletter--ink:has(details[open]){width:260px;z-index:21}
.fc-newsletter--compact.is-floating:has(details[open]){overflow:visible}
.fc-newsletter--ink .fc-newsletter-panel{position:absolute;bottom:100%;right:0;width:338px;max-width:calc(100vw - 2 * var(--fc-gutter));max-height:min(calc(100svh - 84px),var(--newsletter-panel-height,100svh));overflow:auto;background:var(--fc-paper);border-top:0;border-bottom:1px solid var(--fc-line)}
.fc-newsletter--ink.is-floating .fc-newsletter-panel{max-width:calc(100vw - 24px)}
