/* Wiith 2026 palette, type and screen rules from the supplied design system. Fonts come from /fonts.css, shared by every page. */
:root {
  color-scheme: light;
  --surface: #ffffff;
  --surface-alt: #faf6f5;
  --ink: #332926;
  --ink-muted: #663d29;
  --accent: #bf5b39;
  --on-accent: #faf6f5;
  --accent-strong: #663d29;
  --on-accent-strong: #faf6f5;
  --accent-soft: #f2d7ce;
  --link: #46698c;
  --line: #e5b2a1;
  --line-strong: #663d29;
  --focus-ring: #46698c;
  --emphasis: #bf5b39;
  --serif: var(--font-display);
  --sans: var(--font-sans);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font: var(--weight-regular) 17px/1.3 var(--sans); }
a { color: var(--link); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; }
button, a, summary, select { touch-action: manipulation; }
a:focus-visible, button:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
button, a { transition: color 120ms, background-color 120ms, border-color 120ms; }
.skip-link { position: absolute; top: 12px; left: 16px; z-index: 20; padding: 12px 16px; background: var(--surface); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header { max-width: 1200px; margin: auto; min-height: 112px; padding: 32px 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.brand-lockup { display: flex; align-items: center; gap: 40px; min-width: 0; }
.brand { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 144px; height: auto; display: block; }
.brand-product { font: italic var(--weight-regular) 24px/.95 var(--serif); color: var(--ink-muted); }
nav { display: flex; gap: 24px; align-items: center; font-size: 15px; }
nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.chat-layout { max-width: 1200px; margin: auto; padding: 24px 32px 64px; }
.hero { position: relative; margin-bottom: 32px; padding: 32px 40px 64px; border-radius: 20px; background: var(--surface-alt); overflow: hidden; }
.eyebrow { margin: 0 0 16px; font-size: 15px; font-weight: var(--weight-strong); color: var(--ink-muted); }
h1 { font: var(--weight-strong) 56px/.95 var(--serif); margin: 0 0 24px; overflow-wrap: anywhere; }
h1 em { color: var(--emphasis); font-weight: var(--weight-regular); }
.lede { max-width: 65ch; margin: 0; font-size: 15px; line-height: 1.3; }
.people-hills { position: absolute; inset: auto 0 0; height: 40px; background: url("brand/people-hills-mountain-red.svg") repeat-x left bottom / auto 40px; pointer-events: none; }
.chat-page .site-header { max-width: 1360px; min-height: 64px; padding-block: 8px; }
.chat-page .chat-layout { max-width: 1360px; padding-top: 8px; }
.chat-page .hero { padding: 12px 32px 48px; margin-bottom: 16px; }
.chat-page h1 { font-size: 36px; margin-bottom: 12px; }
.chat-page .people-hills { height: 24px; background-size: auto 24px; }
.search-panel, .results { max-width: 960px; margin-inline: auto; }
.conversation { max-width: 960px; margin-inline: auto; display: flex; flex-direction: column; overflow-anchor: none; }
.chat-page .conversation, .chat-page .search-panel, .chat-page .results { max-width: 1200px; }
.conversation > .results { width: 100%; height: auto; flex: none; overflow: visible; padding: 0 8px; }
.conversation:has(.welcome) > .loading-status { min-height: 0; }
.conversation > .search-panel { width: 100%; flex: none; }
.loading-status { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 15px; color: var(--ink-muted); }
.spinner { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 800ms linear infinite; }
.spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.search-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 24px; }
textarea { display: block; border: 1.5px solid var(--line-strong); background: var(--surface-alt); resize: vertical; min-height: 160px; max-height: 260px; min-width: 0; width: 100%; padding: 16px; border-radius: 8px; color: var(--ink); line-height: 1.3; }
textarea::placeholder { color: var(--ink-muted); opacity: 1; }
button { min-height: 44px; border: 2px solid var(--line-strong); color: var(--ink); background: transparent; padding: 10px 16px; border-radius: 999px; font-size: 15px; cursor: pointer; white-space: normal; }
button:hover { background: var(--accent-soft); }
#search-button { min-height: 56px; padding: 16px 28px; background: var(--accent); color: var(--on-accent); border-color: transparent; font-size: 19px; font-weight: var(--weight-strong); white-space: nowrap; }
#search-button:hover { background: var(--accent-strong); color: var(--on-accent-strong); }
button > [aria-hidden="true"] { margin-left: 12px; }
button:disabled, #search-button:disabled { cursor: wait; background: var(--surface-alt); color: var(--ink-muted); border-color: var(--line); }
.conversation-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }
#clear-conversation { padding: 8px 12px; color: var(--link); border-color: transparent; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.filters { margin-top: 8px; font-size: 15px; }
.filters summary, .source-details summary { min-height: 44px; padding-block: 12px; cursor: pointer; color: var(--ink-muted); }
.filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.filter-grid label { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
select { min-height: 48px; width: 100%; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); }
.privacy-note { font-size: 13px; line-height: 1.3; color: var(--ink-muted); margin: 4px 0 0; }
.results { padding-top: 32px; }
.welcome { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 24px; text-align: center; padding: 8px 0; color: var(--ink-muted); }
.welcome p { margin: 0 0 8px; }
.welcome > p { margin: 0; }
.evidence-note[open] { flex-basis: 100%; }
.evidence-note summary { min-height: 44px; padding-block: 12px; cursor: pointer; font-size: inherit; }
.evidence-note p { max-width: 85ch; margin-inline: auto; }
.small { font-size: 15px; }
.mode { font-size: 13px; color: var(--ink); background: var(--accent-soft); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.research-discussion { margin: 0 0 32px; overflow-wrap: anywhere; }
.research-discussion h2, .excerpts-heading { font: var(--weight-strong) 24px/.95 var(--serif); margin: 0 0 16px; }
.discussion-label { font-size: 13px; color: var(--ink-muted); margin: 0 0 16px; }
.ai-summary-label { display: inline-block; font-size: 14px; font-weight: var(--weight-semibold); color: var(--ink); border: 1px solid var(--ink-muted); border-radius: 4px; padding: 2px 8px; }
.discussion-paragraph { max-width: 65ch; font-size: 17px; line-height: 1.5; margin: 24px 0; }
.discussion-citation { white-space: nowrap; font-size: 15px; font-weight: var(--weight-strong); }
.discussion-unavailable { font-size: 15px; color: var(--ink-muted); background: var(--surface-alt); padding: 16px; border: 1px solid var(--line); border-radius: 15px; margin: 0 0 24px; }
.evidence-card { background: var(--surface-alt); border: 1px solid var(--line); border-radius: 15px; padding: 24px; margin-bottom: 24px; scroll-margin-top: 24px; }
.evidence-card h2 { font: italic var(--weight-regular) 32px/.95 var(--serif); margin: 0 0 12px; overflow-wrap: anywhere; }
.source-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-muted); }
.source-meta span { background: var(--surface); border-radius: 6px; padding: 4px 8px; }
.citation { font-size: 13px; color: var(--ink-muted); overflow-wrap: anywhere; }
.evidence-card .citation { margin: 8px 0 12px; }
.section-heading { font-size: 15px; font-weight: var(--weight-strong); margin: 16px 0 8px; }
.relevance-reason { font-size: 13px; color: var(--ink-muted); margin: 0 0 16px; overflow-wrap: anywhere; }
.passage-notice { font-size: 13px; color: var(--ink-muted); margin: 16px 0 8px; }
blockquote { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 65ch; margin: 24px 0; font: var(--weight-regular) 17px/1.5 var(--sans); border-left: 2px solid var(--line-strong); padding-left: 16px; }
.evidence-card blockquote { margin: 0 0 16px; }
.passage-preview { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; line-clamp: 4; overflow: hidden; }
.passage-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 15px; }
.passage-actions a, .source-links a { display: inline-flex; align-items: center; min-height: 44px; }
.passage-toggle { background: var(--surface); }
.source-details { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 8px; font-size: 15px; }
.source-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 15px; }
.source-links .source-meta { font-size: inherit; }
.attribution { font-size: 13px; color: var(--ink-muted); margin-top: 16px; overflow-wrap: anywhere; }
.empty-state { background: var(--surface-alt); border: 1px solid var(--line); border-radius: 15px; padding: 24px; font-size: 17px; }
.document-layout { max-width: 1120px; margin: auto; padding: 64px 24px; overflow-wrap: anywhere; }
/* Same hero as the website's pages: orange Crimson heading, 20px muted intro at 2/3 width. */
.document-layout h1 { font-size: 40px; color: var(--orange, #bf5b39); }
.document-index-layout h1 { font-size: 56px; margin-bottom: 0; }
.document-index-layout h1 + .lede { max-width: 66.667%; margin-top: 14px; font-size: 20px; line-height: 1.3; color: #2b2b2b; }  /* as the Forside's hero paragraph */
.article-rights { font-size: 13px; line-height: 1.5; color: var(--ink-muted); margin: 12px 0 16px; }
.article-artwork { position: relative; margin: 20px 0 28px; overflow: hidden; border-radius: 14px; }
/* Small, quiet AI disclosure in the picture's bottom-right corner. */
.artwork-label { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(43, 43, 43, .25); color: rgba(255, 255, 255, .9); font-size: 11px; line-height: 1.5; letter-spacing: .02em; pointer-events: none; }
.article-artwork img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
/* The paper cards (.document-list, .document-card) are styled once for every page in the website's /paper-cards.css. */
/* Live count of papers or search results, between the search form and the cards. */
.document-count { display: flex; align-items: center; gap: 10px; min-height: 24px; margin: 16px 0 0; font-size: 15px; color: var(--ink-muted); text-wrap: balance; }
#document-results[aria-busy="true"] { opacity: .5; }
#document-results .empty-state a { white-space: nowrap; }
.document-search { display: block; margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-alt); }
.document-search[hidden] { display: none; }
.document-search > label { color: var(--ink-muted); font-weight: var(--weight-semibold); }
#document-search-help { margin: 8px 0 12px; font-size: 14px; color: var(--ink-muted); }
.document-search-controls { display: flex; gap: 12px; align-items: center; }
.document-search-controls input { flex: 1; min-width: 0; width: 100%; min-height: 48px; border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; background: var(--surface); color: var(--ink); }
.document-search-controls input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
#document-search-status { margin: 12px 0 0; font-size: 15px; color: var(--ink-muted); }
.document-pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 24px 0; }
.document-pagination a, .document-pagination [aria-current] { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-size: 14px; }
.document-pagination [aria-current] { background: var(--ink); color: var(--surface); }
.document-pagination a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.availability { color: var(--ink-muted); }
/* About 75 characters per line, close to the website's articles; the title above stays full width. */
.document-prose { max-width: 680px; margin-top: 32px; font-size: 17px; line-height: 1.6; }
.document-prose .article-body { max-width: none; white-space: normal; border-left: 0; padding-left: 0; }
/* One actions panel precedes the original text on small screens and follows it as a sidebar on desktop. */
.document-reading { margin-top: 32px; }
.document-reading .document-prose { min-width: 0; margin-top: 0; }
.document-aside { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; min-width: 0; margin-bottom: 24px; }
@media (min-width: 1024px) {
  .document-reading { display: grid; grid-template-columns: minmax(0, 680px) 280px; gap: 48px; align-items: start; }
  .document-reading .document-prose { grid-column: 1; grid-row: 1; }
  .document-aside { grid-column: 2; grid-row: 1; position: sticky; top: 24px; margin-bottom: 0; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
  .document-aside .share-label { flex-basis: 100%; margin-right: 0; }
}
.article-paragraph { margin: 0 0 1.25em; }
/* "Til din tryghed" at the foot of a paper page: the website's .note card from the Forside (Crimson Pro 20/1.2, bold lead-in). */
.safety-note { max-width: 680px; margin: 48px 0 0; padding: 24px; border: 1px solid var(--border, #e4dbcd); border-radius: 15px; background: var(--surface-alt); color: #2b2b2b; font: var(--weight-regular) 20px/1.2 var(--serif); }
.safety-note a { text-decoration: underline; text-underline-offset: 3px; }
/* The paper's own section titles (Abstract, Introduction, Methods …). */
.article-section { margin: 1.8em 0 .5em; font-family: var(--font-display); font-weight: var(--weight-bold); line-height: 1.2; color: var(--orange-dark, #663d29); }
h3.article-section { font-size: 26px; }
h4.article-section { font-size: 21px; }
:is(h5, h6).article-section { font-size: 18px; }
.article-references { margin-top: 40px; }
.article-references ul { list-style: none; padding-left: 0; font-size: 15px; line-height: 1.4; color: var(--ink-muted); }
.article-references li { margin-bottom: 8px; overflow-wrap: anywhere; }
footer { max-width: 1136px; margin: auto; border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 15px; color: var(--ink-muted); }
@media (max-width: 900px) {
  .brand-product { display: none; }
  .hero { padding: 32px 32px 64px; }
  h1 { font-size: 40px; }
  footer { margin-inline: 32px; }
}
@media (max-width: 600px) {
  .site-header { min-height: 96px; padding: 24px 32px; gap: 16px; }
  .brand img { width: 120px; }
  nav { gap: 16px; font-size: 13px; }
  nav a { gap: 4px; }
  .chat-layout { padding: 16px 16px 48px; }
  .document-layout { padding: 16px 18px 48px; }
  .document-index-layout h1 + .lede { max-width: none; font-size: 18px; }
  .hero { padding: 24px 24px 48px; margin-bottom: 24px; }
  .chat-page .site-header { padding: 8px 20px; }
  .chat-page .hero { padding: 12px 20px 40px; margin-bottom: 12px; }
  .chat-page h1 { font-size: 30px; }
  h1 { font-size: 40px; margin-bottom: 16px; }
  .people-hills { height: 24px; background-size: auto 24px; }
  .search-panel { padding: 16px; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-card { padding: 16px; }
  .evidence-card h2 { font-size: 28px; }
  .document-layout h1 { font-size: 32px; }
  /* "Forskningsbibliotek" is one long word: shrink it to fit a phone instead of breaking it. */
  .document-index-layout h1 { font-size: clamp(30px, 8.5vw, 40px); }
  footer { margin-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  button, a { transition: none; }
  .spinner { animation: none; }
}

.document-language { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.document-language label { color: var(--ink-muted); font-weight: var(--weight-semibold); }
.document-language select { flex: 0 1 auto; width: auto; min-width: 0; max-width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.document-language select:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Public search: the words, their button and the language dropdown are one GET form. */
.document-find { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; }
.document-find label[for="document-q"] { grid-column: 1 / -1; }
.document-find input[type="search"] { grid-column: 1 / -1; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); }
.document-find input[type="search"]::placeholder { color: var(--ink-muted); opacity: 1; }
.document-find input[type="search"]:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.document-find button[type="submit"] { min-height: 48px; padding-inline: 24px; border-color: transparent; background: var(--accent-strong); color: var(--on-accent-strong); font-weight: var(--weight-bold); }
.document-find button[type="submit"]:hover { background: var(--ink); }
.document-find select { justify-self: start; }
/* From 720px the words, button and language share one row. */
@media (min-width: 720px) {
  .document-find { grid-template-columns: minmax(0, 1fr) auto auto; }
  .document-find input[type="search"] { grid-column: auto; }
}

/* Danish summary, its AI note and the original title above the original text. */
.article-summary { max-width: none; margin: 0 0 8px; font-size: 19px; line-height: 1.4; }
.article-translation-note { margin: 0 0 16px; font-size: 13px; color: var(--ink-muted); }
/* On Danish pages the paper's own title heads the original text; "Original dokumenttekst" becomes a small label under it. */
.original-title { margin: 0 0 6px; font: var(--weight-bold) 30px/1.15 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.original-title + h2 { margin: 0 0 24px; font: var(--weight-semibold) 14px/1.4 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
@media (max-width: 600px) { .original-title { font-size: 24px; } }

/* Share row ("Del publikationen"): plain links; the website's share-row.js reveals the Del and Kopiér link buttons. */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.share-label { margin-right: 4px; font-size: 15px; font-weight: var(--weight-strong); color: var(--ink-muted); }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0; border: 2px solid var(--line); border-radius: 999px; background: transparent; color: var(--accent-strong); font-weight: var(--weight-bold); text-decoration: none; }
button.share-btn { padding-inline: 16px; }
.share-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.share-btn[hidden] { display: none; }
.share-btn svg { flex: none; margin: 0; }
/* "Kopiér link" is a round icon like the share links; "Link kopieret" shows as a small pop-up above the row. */
button.share-btn[data-share-copy] { padding-inline: 0; }
.share-row { position: relative; }
.share-status:empty { display: none; }
.share-status { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 3; max-width: min(280px, 90vw); padding: 8px 12px; border-radius: 8px; background: var(--ink); color: var(--surface); font-size: 14px; font-weight: var(--weight-bold); line-height: 1.3; box-shadow: 0 4px 12px rgba(51, 41, 38, .18); }
@media (max-width: 600px) { .share-row { gap: 8px; } .share-label { margin-right: 0; } }
/* "Oversæt" next to "Hent PDF": a link, or an on-device button once translate.js finds the browser can translate; the ⓘ opens a native popover (Esc and a click outside close it). */
.translate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.translate-row[hidden] { display: none; }
.translate-btn { padding-inline: 16px; }
/* The ⓘ is a small, quiet icon: 24px is the WCAG 2.2 minimum target. */
button.share-btn.translate-info { min-width: 24px; min-height: 24px; padding: 0; border: 0; color: var(--muted, #4f5e42); }
.translate-info svg { width: 16px; height: 16px; }
button.share-btn.translate-info { position: relative; }
button.share-btn.translate-info::after { content: ""; position: absolute; inset: -10px; }  /* 44px to tap */
.translate-pop { position: fixed; inset: auto; margin: 0; box-sizing: border-box; width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 24px); overflow: auto; overflow-wrap: anywhere; padding: 16px 20px; border: 2px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--ink); font-size: 15px; line-height: 1.4; }
.translate-pop p { margin: 4px 0 0; }

/* Emner and sort, above the cards. "Emner: <theme>" opens a native dialog that lists the six themes with their paper counts; the
   sort links choose the order. All of it is plain links that keep the search words, language, theme and order. Until
   document-index.js has wired the picker (.is-ready) the dialog is an ordinary list in the page, so it works without JavaScript. */
.document-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 24px 0 0; }
.document-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* The pills themselves (.topic) are in /topic-pills.css, shared with Artikler and Videoer. */
.dlg { width: min(560px, calc(100% - 32px)); max-width: none; max-height: min(760px, calc(100dvh - 32px)); padding: 0; border: 0; border-radius: 20px; background: var(--surface); color: var(--ink); overflow: hidden; box-shadow: 0 12px 24px rgba(51, 41, 38, .12), 0 32px 64px rgba(51, 41, 38, .14); }
.dlg::backdrop { background: rgba(51, 41, 38, .55); }
.dlg-in { display: flex; flex-direction: column; gap: 18px; max-height: min(760px, calc(100dvh - 32px)); padding: 22px 28px 26px; overflow: auto; }
.dlg-hd { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dlg h2 { margin: 0; font: var(--weight-semibold) clamp(26px, 3.4vw, 32px)/1.05 var(--serif); }
.xbtn { flex: none; align-self: flex-start; width: 44px; min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 30px; line-height: 1; }
.xbtn:hover { background: var(--accent-soft); }
.topic-dlg nav { display: block; }
.topic-all { margin: 0 0 18px; }
.topic-dlg ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.topic-picker:not(.is-ready) .topic-dlg:not([open]) { display: block; position: static; width: auto; max-height: none; background: none; box-shadow: none; overflow: visible; }
.topic-picker:not(.is-ready) .topic-dlg .dlg-in { padding: 0; overflow: visible; }
.topic-picker:not(.is-ready) .topic-dlg .dlg-hd { display: none; }
@media (max-width: 640px) {
  .dlg { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .dlg-in { max-height: 92dvh; padding: 18px 18px 22px; }
  /* "Emner" and the two sort links share one line on a phone. */
  .document-controls { gap: 8px; }
}
