/* =============================================================
   VINLEX.DK - GLOBAL STYLESHEET
   Tailwind CDN handles utility classes (grid, flex, spacing).
   This file owns all custom component and layout styles.
   ============================================================= */

/* ── 1. TOKENS ─────────────────────────────────────────────── */
:root {
    --c-wine:    #6B1A2E;   /* brand / headings / global links  */
    --c-accent:  #b90d0d;   /* interactive: labels, lex-links   */
    --c-gold:    #B8913A;   /* stars, secondary accents         */
    --c-cream:   #FAF7F2;   /* page background                  */
    --c-border:  #ebe6e0;   /* subtle borders                   */
    --c-muted:   #888;      /* secondary text                   */
    --c-text:    #1a1a1a;   /* body text                        */

    --ff-serif:  Georgia, "Times New Roman", serif;
    --ff-sans:   Arial, Helvetica, sans-serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;
}

/* ── 2. BASE ────────────────────────────────────────────────── */
html { background: #fff; }
body {
    font-family: var(--ff-serif);
    background: #fff;
}
.site-content-bg {
    background: var(--c-cream);
}

a {
    color: var(--c-wine);
}
a:hover {
    text-decoration: none;
    color: #8a2540;
}

h1 { color: var(--c-wine); }

/* ── 3. HEADER ──────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.hdr-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 64px;
}
.hdr-logo {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;            /* lidt mere luft – mindre kompakt, mere eksklusivt */
    line-height: 1;

}
.hdr-logo-icon {
    height: 34px;         /* let nedtonet, så ordmærket er primær identitet */
    width: auto;
    display: block;
    flex-shrink: 0;
    position: relative;
    top: -2px;            /* optisk baseline-justering – ikon + tekst som én enhed */
}
.hdr-logo-text {
    font-family: var(--ff-serif);
    
    font-size: 1.7rem;
    font-weight: bold;
    font-style: italic;
    color: #1a1a1a;
    letter-spacing: -0.02em;

 
  letter-spacing: 0.5px;

}

.hdr-logo-description {
    font-family: var(--ff-sans);
    font-size: 0.65rem;
    font-style: normal;
    font-weight: 400;
    color: #999;
    letter-spacing: 0.04em;
    margin-top: 3px;
    align-items: center;

    color:#6B1A2E;
}
.hdr-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    flex-shrink: 0;
}
.hdr-search-wrap {
    position: relative;
    flex: 1;
    max-width: 330px;
    margin-left: 2rem;     /* mere luft fra logo til søgefelt */
}

/* ── 4. NAV LINKS ───────────────────────────────────────────── */
.site-nav-link {
    font-family: var(--ff-sans);
    font-size: 0.86rem;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    padding: 0.42rem 0.55rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    display: inline-block;
    transition: background 0.12s, color 0.12s;
}
.site-nav-link:hover { background: #f5f2ef; color: #111; text-decoration: none; }
.site-nav-link.nav-active { color: var(--c-accent); font-weight: 700; }

.mob-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #444;
    padding: 7px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
}

.mob-scanner-btn {
    color: var(--c-wine);
    gap: 4px;
}
.mob-scanner-label {
    font-family: var(--ff-sans);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.mob-nav-link {
    font-family: var(--ff-sans);
    font-size: 0.92rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    padding: 0.72rem 0.25rem;
    border-bottom: 1px solid #f0ece6;
    display: block;
}
.mob-nav-link:last-child { border-bottom: none; }
.mob-nav-link:hover { color: #111; text-decoration: none; }
.mob-nav-link.nav-active { color: var(--c-accent); font-weight: 700; }

#mob-search-row { display: none; padding: 0.6rem 0 0.75rem; border-top: 1px solid #f0ece6; }
#mob-menu       { display: none; padding-bottom: 0.5rem; border-top: 1px solid #f0ece6; }
.hdr-desk-only  { display: flex; }
#mob-controls   { display: none; gap: 2px; align-items: center; margin-left: auto; }

/* ── 5. FOOTER ──────────────────────────────────────────────── */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -1px 6px rgba(0,0,0,0.07);
    text-align: center;
}
.site-footer a        { color: #555; text-decoration: none; font-family: var(--ff-sans); font-size: 0.8rem; }
.site-footer a:hover  { color: #111; }
.site-footer-text     { color: #888; font-family: var(--ff-sans); font-size: 0.8rem; }
.site-footer-updated  { display: block; margin-top: 0.4rem; color: #aaa; font-family: var(--ff-sans); font-size: 0.75rem; }

/* ── 6. SEARCH ──────────────────────────────────────────────── */
.search-pill {
    display: flex;
    align-items: center;
    background: #f0eeee;
    border-radius: 40px;
    padding: 4px 4px 4px 18px;
    flex: 1;
    max-width: 420px;
    min-width: 0;
}
.search-pill input {
    flex: 1; min-width: 0;
    background: none; border: none; outline: none; box-shadow: none;
    font-size: 0.88rem; font-family: var(--ff-sans); color: #222;
    padding: 6px 8px 6px 0;
}
.search-pill input:focus { outline: none; box-shadow: none; }
.search-pill input::placeholder { color: #aaa; }
.search-pill button {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--c-accent); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: background 0.15s;
}
.search-pill button:hover { background: #9a0b0b; }

.mob-search-pill {
    display: flex; align-items: center;
    background: #f0eeee; border-radius: 40px;
    padding: 4px 4px 4px 18px;
}
.mob-search-pill input {
    flex: 1; min-width: 0;
    background: none; border: none; outline: none; box-shadow: none;
    font-size: 0.88rem; font-family: var(--ff-sans); color: #222;
    padding: 6px 8px 6px 0;
}
.mob-search-pill input:focus { outline: none; box-shadow: none; }
.mob-search-pill input::placeholder { color: #aaa; }
.mob-search-pill button {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--c-accent); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
#search-input::placeholder { color: #aaa; }
#search-wrap { position: relative; }
#search-drop {
    display: none;
    position: absolute;
    top: calc(100% + 4px); right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #e0d8d0;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 1000;
    overflow: hidden;
    font-family: var(--ff-sans);
}
.mob-search-drop {
    position: absolute;
    top: calc(100% + 4px); left: 0; right: 0;
    background: #fff;
    border: 1px solid #e0d8d0;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 1000;
    overflow: hidden;
    font-family: var(--ff-sans);
    display: none;
}
.sd-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px;
    text-decoration: none; color: #1a1a1a;
    font-size: 0.83rem;
    border-bottom: 1px solid #f5f0eb;
    transition: background 0.1s;
}
.sd-item:last-child { border-bottom: none; }
.sd-item:hover, .sd-item.active { background: #faf5f0; text-decoration: none; }
.sd-dot   { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sd-title { font-weight: 600; flex: 1; }
.sd-sub   { font-size: 0.72rem; color: #999; white-space: nowrap; }

/* ── 7. ARTICLE LAYOUT (two-column) ────────────────────────── */
.article-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 2.5rem;
}
/* Første kolonne: artikel (eller .article-main wrapper i region-sider) */
.article-layout > article,
.article-main {
    flex: 1;
    min-width: min(520px, 100%);
    /* min(520px, 100%) giver wrap ved ~860px viewport uden media query */
}
/* Anden kolonne: sidebar */
.article-aside-col {
    flex: 0 0 268px;
    width: 268px;
    position: sticky;
    top: calc(64px + 1.5rem);
    align-self: start;
}
.article-aside--content { position: static; }
.article-aside--related { position: static; }

/* ── 7b. ARTICLE PAGE HEADER ────────────────────────────────── */
.article-h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-wine);
    margin: 0 0 0.6rem;
    border: none;
    padding: 0;
    line-height: 1.1;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    font-size: 0.75rem;
    font-family: var(--ff-sans);
    color: #999;
    margin-bottom: 1.5rem;
}
.breadcrumb a         { color: var(--c-accent); text-decoration: none; }
.breadcrumb a:hover   { text-decoration: none; color: var(--c-wine); }
.breadcrumb-current   { color: #555; }
.article-subtitle {
    font-family: var(--ff-sans);
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.6rem;
}
/* ── article-meta: category + reading time ─── */
.article-meta {
  font-family: var(--ff-sans, sans-serif);
  font-size: 0.82rem;
  color: #999;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.article-meta__cat {
  color: var(--c-wine, #722F37);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.article-meta__sep { color: #ccc; }
.article-meta__time { color: #aaa; }

/* ── 7c. ARTICLE HERO (Altinget-style header block) ───────────── */
.article-hero {
  position: relative;
  padding: 1rem 1.25rem 0.85rem 1.25rem;
  margin: 0 0 1.75rem;
  border-left: 4px solid var(--c-wine);
  background: #F4EFE5;
  max-width: 660px;
}
.article-hero__eyebrow {
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-wine);
  margin-bottom: 0.5rem;
}
.article-hero__eyebrow a {
  color: inherit;
  text-decoration: none;
}
.article-hero__eyebrow a:hover { text-decoration: underline; }
.article-hero__top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.article-hero__head { flex: 1; min-width: 0; }
.article-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--c-wine);
  line-height: 1.1;
  margin: 0;
  border: none;
  padding: 0;
}
.article-hero__title-sub {
  font-weight: 400;
  color: #999;
  font-size: 0.55em;
  margin-left: 0.3em;
  letter-spacing: 0.02em;
}
.article-hero__divider {
  border: 0;
  border-top: 1px solid #d6cfc2;
  margin: 1rem 0;
}
.article-hero__lead {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.12rem;
  color: #4a4a4a;
  line-height: 1.55;
  margin: 0;
}
.article-hero__meta {
  font-family: var(--ff-sans);
  font-size: 0.82rem;
  color: #999;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.article-hero__meta-cat {
  color: var(--c-wine);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.article-hero__meta-sep { color: #ccc; }
.article-hero__meta-right { margin-left: auto; }
.article-hero__icon {
  flex-shrink: 0;
  width: 3.75rem;
  height: 3.75rem;
  color: var(--c-wine);
  opacity: 0.32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.article-hero__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 640px) {
  .article-hero__title { font-size: 1.7rem; }
  .article-hero__lead  { font-size: 1rem; }
  .article-hero { padding-left: 1rem; border-left-width: 3px; }
  .article-hero__top { gap: 0.75rem; }
  .article-hero__icon { width: 2.5rem; height: 2.5rem; }
}

/* ── subregions anchor offset for sticky header ─── */
#subregions { scroll-margin-top: 80px; }

/* ── article jump bar: sticky bund-pill, split i "tilbage" + "videre" ─── */
.article-jump-bar {
  display: flex;
  align-items: stretch;
  position: sticky;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  width: fit-content;
  max-width: calc(100vw - 24px);
  margin: 2rem auto 0;
  background: var(--c-wine, #6B1A2E);
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.article-jump-bar__back,
.article-jump-bar__forward {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  color: #fff;
  font-family: var(--ff-sans, sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.article-jump-bar__back {
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  max-width: 45%;
}
.article-jump-bar__forward {
  flex: 1 1 auto;
}
.article-jump-bar__back:hover,
.article-jump-bar__back:focus,
.article-jump-bar__forward:hover,
.article-jump-bar__forward:focus {
  text-decoration: none;
  color: #fff;
}
.article-jump-bar__back:hover,
.article-jump-bar__back:focus {
  background: rgba(0, 0, 0, 0.34);
}
.article-jump-bar__forward:hover,
.article-jump-bar__forward:focus {
  background: #8a2540;
}
.article-jump-bar--back-only .article-jump-bar__back {
  max-width: none;
  background: var(--c-wine, #6B1A2E);
  color: #fff;
  font-weight: 600;
  padding: 11px 20px;
}
.article-jump-bar--back-only .article-jump-bar__back:hover,
.article-jump-bar--back-only .article-jump-bar__back:focus {
  background: #8a2540;
}
.article-jump-bar--dual-equal .article-jump-bar__back {
  background: transparent;
  color: #fff;
  font-weight: 600;
  max-width: 50%;
}
.article-jump-bar--dual-equal .article-jump-bar__back:hover,
.article-jump-bar--dual-equal .article-jump-bar__back:focus {
  background: #8a2540;
}
@media (max-width: 768px) {
  .region-map-container {
    width: 110px !important;
    height: auto !important;
    margin: 0.5rem 0 0.75rem 1rem !important;
  }
  .region-map-container.region-map-country {
    width: 150px !important;
  }
  .region-map-container.region-map-index {
    width: 200px !important;
  }
}

.article-note {
    font-family: var(--ff-serif);
    font-size: 1.05rem;
    line-height: 1.65;
    color: #333;
    font-style: italic;
    margin: 0 0 1.25rem;
    padding: 0.7rem 1rem;
    border-left: 4px solid var(--c-wine);
    background: #ede8e1;
}

/* ── 8. PROSE ARTICLE ───────────────────────────────────────── */
.prose-article {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2a2a2a;
    max-width: 660px;
}
.prose-article p          { margin-bottom: 1.2em; }
.prose-article h2         { font-size: 1.25rem; font-weight: bold; margin: 1.8em 0 0.6em; color: var(--c-wine); font-family: var(--ff-serif); }
.prose-article i          { font-style: italic; }
.prose-article b,
.prose-article strong     { font-weight: bold; }
.prose-article table      { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 1em 0; }
.prose-article th         { background: var(--c-accent); color: #fff; padding: 6px 10px; text-align: left; font-family: var(--ff-sans); }
.prose-article td         { padding: 5px 10px; border-bottom: 1px solid #eee; font-family: var(--ff-sans); }
.prose-article tr:nth-child(even) td { background: #fafafa; }

/* ── formula: kemiske reaktioner ─── */
.formula {
  display: block;
  text-align: center;
  font-family: var(--ff-sans, sans-serif);
  font-style: italic;
  font-size: 0.92em;
  color: #555;
  letter-spacing: 0.02em;
  padding: 0.4rem 0;
  margin: 0.8rem 0;
}

/* ── lexTable: scroll-wrapper (added by JS) ─── */
.lex-table-wrap {
    margin: 1.25em 0;
    border-left: 3px solid var(--c-accent);
    position: relative;
}
.lex-table-wrap__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.lex-table-wrap__scroll::-webkit-scrollbar { display: none; }

/* Fade-cue på højre kant når der er mere at scrolle til */
.lex-table-wrap.has-overflow::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 56px;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 1;
}

/* Klikbare scroll-knapper */
.lex-table-wrap__scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(107, 26, 46, 0.18);
    color: var(--c-wine);
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 3;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 0;
    line-height: 1;
    display: none;
    transition: background 0.15s, transform 0.15s;
    font-family: var(--ff-serif);
}
.lex-table-wrap__scroll-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}
.lex-table-wrap__scroll-btn--right { right: 8px; }
.lex-table-wrap__scroll-btn--left { left: 8px; }
.lex-table-wrap.has-overflow .lex-table-wrap__scroll-btn--right { display: block; }
.lex-table-wrap.has-overflow-left .lex-table-wrap__scroll-btn--left { display: block; }

/* ── lexTable: data table (multiple columns) ─── */
table.lexTable { width: 100%; border-collapse: collapse; font-size: 0.84rem; font-family: var(--ff-sans); margin: 0; }
table.lexTable th { background: #ede8e1; color: var(--c-text); padding: 7px 13px; text-align: left; font-size: 0.84rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; font-family: 'Roboto Condensed', sans-serif; white-space: nowrap; border-bottom: none; }
table.lexTable td { padding: 7px 13px; border-bottom: none; vertical-align: top; line-height: 1.55; color: #333; font-family: var(--ff-sans); font-size: 0.84rem; background: #f5f1eb; }
table.lexTable tbody tr:nth-child(even) td { background: #f5f1eb; }

/* ── lexTable: list style (single column, added by JS) ─── */
.lex-list-wrap { border-left: 3px solid var(--c-accent); margin: 1.25em 0; }
table.lexTable.lex-list { border: none; width: 100%; margin: 0; }
table.lexTable.lex-list tr { display: block; }
table.lexTable.lex-list tr:nth-child(even) td { background: #f5f1eb; }
table.lexTable.lex-list th,
table.lexTable.lex-list tr:first-child td { display: block; padding: 7px 13px; background: #ede8e1; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--c-text); font-family: 'Roboto Condensed', sans-serif;  border-bottom: none; }
table.lexTable.lex-list td { display: block; padding: 7px 13px; border-bottom: none; background: #f5f1eb; color: #333; font-family: var(--ff-sans); font-size: 0.88rem; line-height: 1.5; }
table.lexTable.lex-list tr:last-child td { border-bottom: none; }

/* ── lexTable: steps (numbered circles) ─── */
table.lexTable.lex-list.steps { counter-reset: steps; }
table.lexTable.lex-list.steps tr:not(:first-child) td {
    padding: 10px 13px 10px 48px; position: relative; counter-increment: steps;
}
table.lexTable.lex-list.steps tr:not(:first-child) td::before {
    content: counter(steps); position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; background: var(--c-accent); color: #fff;
    border-radius: 50%; font-size: 0.72rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* ── lexTable: bullets ─── */
table.lexTable.lex-list.bullets tr:not(:first-child) td {
    padding: 10px 13px 10px 34px; position: relative;
    line-height: 0.8;
}
table.lexTable.lex-list.bullets tr:not(:first-child) td::before {
    content: ""; position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px; background: var(--c-accent); border-radius: 50%;
}

/* Links inside prose */
.prose-article a,
.lex-link {
    font-variant: small-caps;
    text-transform: lowercase;
    font-size: 1.15em;
    color: var(--c-accent);
    text-decoration: none;
    cursor: pointer;
    outline: none;
}

.prose-article a:hover { text-decoration: none; }
.lex-link:hover        { text-decoration: none; border-bottom-color: #8a0909; }

/* Glossary terms: plain text with dotted underline */
a.lex-glossary.lex-link {
    font-variant: normal !important;
    text-transform: none !important;
    font-size: inherit !important;
    color: inherit !important;
    border-bottom: 1px dotted var(--c-muted);
    cursor: help;
}
a.lex-glossary.lex-link:hover {
    border-bottom: 1px solid var(--c-muted) !important;
    text-decoration: none !important;
}

/* Lists inside prose */
.prose-article ul { list-style: disc; padding-left: 2.0rem; margin-bottom: 1em; }
.prose-article ol { list-style: decimal; padding-left: 1.4rem; margin-bottom: 1em; }
.prose-article li { margin-bottom: 0.4em; line-height: 1.25; line-height: 1.85; }

/* Standalone <ul> - subtle box */

/* infoBox embedded in article body */
.prose-article .infoBox {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 8px rgba(0,0,0,0.09);
    margin: 1.5em 0;
    overflow: hidden;
    font-size: 0.82rem;
    font-family: var(--ff-sans);
}
.prose-article .infoBox .header           { display: flex; flex-direction: column; padding: 12px 16px 8px; border-bottom: 1px solid #f0ece6; }
.prose-article .infoBox .header span:first-child { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-accent); }
.prose-article .infoBox .header span:last-child  { font-size: 0.95rem; font-weight: 600; color: var(--c-text); margin-top: 1px; }
.prose-article .infoBox .single-header    { padding: 12px 16px 10px; border-bottom: 1px solid #f0ece6; }
.prose-article .infoBox .single-header span { font-size: 0.95rem; font-weight: 700; color: var(--c-text); }
.prose-article .infoBox ul                { list-style: none; margin: 0; padding: 0; }
.prose-article .infoBox ul li             { display: flex; justify-content: space-between; gap: 12px; padding: 7px 16px; border-bottom: 1px solid #f5f2ef; }
.prose-article .infoBox ul li:last-child  { border-bottom: none; }
.prose-article .infoBox ul li span:first-child { color: #888; }
.prose-article .infoBox ul li span:last-child  { font-weight: 600; color: var(--c-text); text-align: right; }
.prose-article .infoBox .single-header ~ ul    { counter-reset: steps; padding: 4px 0; }
.prose-article .infoBox .single-header ~ ul li {
    display: block; padding: 9px 16px 9px 44px; position: relative;
    counter-increment: steps; line-height: 1.65; color: #333;
}
.prose-article .infoBox .single-header ~ ul li::before {
    content: counter(steps); position: absolute; left: 14px; top: 10px;
    width: 20px; height: 20px; background: var(--c-accent); color: #fff;
    border-radius: 50%; font-size: 0.7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.prose-article .infoBox .single-header ~ ul li:last-child { border-bottom: none; }

/* ── 9. SIDEBAR (aside) ─────────────────────────────────────── */
.aside-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
    overflow: hidden;
}
.aside-card-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-accent);
    padding: 12px 14px 0;
    font-family: var(--ff-sans);
}
.aside-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 6px 14px;
    font-family: var(--ff-sans);
    font-size: 0.82rem;
    border-bottom: 1px solid #f5f2ef;
}
.aside-row:last-child  { border-bottom: none; padding-bottom: 12px; }
.aside-row-label       { color: var(--c-muted); flex-shrink: 0; }
.aside-row-value       { font-weight: 600; color: var(--c-text); text-align: right; }
.aside-row-value a     { color: var(--c-accent); font-weight: 600; text-decoration: none; }
.aside-row-value a:hover { text-decoration: none; color: var(--c-wine); }

/* infoBox inside sidebar card */
.aside-card .infoBox { background: none; box-shadow: none; border-radius: 0; overflow: visible; font-size: 0.82rem; font-family: var(--ff-sans); }
.aside-card .infoBox .header { display: flex; flex-direction: column; padding: 12px 14px 7px; border-bottom: 1px solid #f0ece6; }
.aside-card .infoBox .header span:first-child { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-accent); }
.aside-card .infoBox .header span:last-child  { font-size: 0.88rem; font-weight: 700; color: var(--c-text); margin-top: 1px; }
.aside-card .infoBox .single-header       { padding: 12px 14px 8px; border-bottom: 1px solid #f0ece6; }
.aside-card .infoBox .single-header span  { font-size: 0.88rem; font-weight: 700; color: var(--c-text); }
.aside-card .infoBox ul      { list-style: none !important; margin: 0 !important; padding: 4px 0 8px !important; background: none !important; border: none !important; border-radius: 0 !important; }
.aside-card .infoBox li      { display: block !important; padding: 5px 14px !important; margin-bottom: 0 !important; font-size: 0.82rem; line-height: 1.5; color: #333; border-bottom: 1px solid #f5f2ef; background: none !important; }
.aside-card .infoBox li::before { content: none !important; }
.aside-card .infoBox li:last-child { border-bottom: none; }

/* Facts card (region sidebar) */
.info-card { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 1px 8px rgba(0,0,0,0.09); overflow: hidden; }
.info-card .infoBox .header             { display: flex; flex-direction: column; padding: 12px 16px 8px; border-bottom: 1px solid #f0ece6; }
.info-card .infoBox .header span:first-child { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-accent); font-family: var(--ff-sans); }
.info-card .infoBox .header span:last-child  { font-size: 0.95rem; font-weight: 600; color: var(--c-text); font-family: var(--ff-sans); margin-top: 1px; }
.info-card .infoBox .single-header      { padding: 12px 16px 10px; border-bottom: 1px solid #f0ece6; }
.info-card .infoBox .single-header span { font-size: 0.95rem; font-weight: 700; color: var(--c-text); font-family: var(--ff-sans); }
.info-card .infoBox ul  { list-style: none; margin: 0; padding: 0; }
.info-card .infoBox li  { display: flex; justify-content: space-between; gap: 12px; padding: 7px 16px; border-bottom: 1px solid #f5f2ef; font-family: var(--ff-sans); font-size: 0.82rem; }
.info-card .infoBox li:last-child { border-bottom: none; }
.info-card .infoBox li span:first-child { color: #888; }
.info-card .infoBox li span:last-child  { font-weight: 600; color: var(--c-text); text-align: right; }
.info-card .infoBox .single-header ~ ul { counter-reset: steps; padding: 4px 0; }
.info-card .infoBox .single-header ~ ul li {
    display: block; padding: 9px 16px 9px 44px; border-bottom: 1px solid #f5f2ef;
    font-size: 0.84rem; line-height: 1.65; color: #333; position: relative; counter-increment: steps;
}
.info-card .infoBox .single-header ~ ul li::before {
    content: counter(steps); position: absolute; left: 14px; top: 10px;
    width: 20px; height: 20px; background: var(--c-accent); color: #fff;
    border-radius: 50%; font-size: 0.7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; font-family: var(--ff-sans);
}
.info-card .infoBox .single-header ~ ul li:last-child { border-bottom: none; }

/* ── 10. READING TOOLBAR ────────────────────────────────────── */
.reading-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 1.25rem;
}
.rt-label {
    font-family: var(--ff-sans);
    font-size: 0.68rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}
.rt-btn {
    font-family: var(--ff-sans);
    font-weight: 700;
    color: var(--c-muted);
    background: #fff;
    border: 1px solid #e0d8d0;
    border-radius: var(--radius-sm);
    padding: 2px 7px;
    cursor: pointer;
    line-height: 1.6;
    transition: color 0.1s, border-color 0.1s;
}
.rt-btn:hover,
.rt-btn.rt-active { color: var(--c-accent); border-color: var(--c-accent); background: #fef5f5; }
.rt-btn[data-size="small"]  { font-size: 0.72rem; }
.rt-btn[data-size="normal"] { font-size: 0.82rem; }
.rt-btn[data-size="large"]  { font-size: 0.95rem; }

/* ── 11. TAG CLOUD ──────────────────────────────────────────── */
.pop-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem 0 1rem;
    max-width: 520px;
    margin: 0 auto;
}
.pop-tag {
    display: inline-block;
    text-decoration: none;
    font-family: var(--ff-sans);
    font-weight: 600;
    line-height: 1.3;
    transition: opacity 0.15s;
    position: relative; /* for JS top offset */
}
.pop-tag:hover { opacity: 0.55 !important; text-decoration: none; }

/* Organic rotations */
.pop-tag:nth-child(6n+1) { transform: rotate(-2.5deg); }
.pop-tag:nth-child(6n+2) { transform: rotate(1.6deg); }
.pop-tag:nth-child(6n+3) { transform: rotate(-1.0deg); }
.pop-tag:nth-child(6n+4) { transform: rotate(2.8deg); }
.pop-tag:nth-child(6n+5) { transform: rotate(-1.8deg); }
.pop-tag:nth-child(6n)   { transform: rotate(0.7deg); }

.pop-s1 { font-size: 0.65rem; opacity: 0.38; font-weight: 400; }
.pop-s2 { font-size: 0.90rem; opacity: 0.55; font-weight: 500; }
.pop-s3 { font-size: 1.20rem; opacity: 0.72; font-weight: 600; }
.pop-s4 { font-size: 1.65rem; opacity: 0.88; font-weight: 700; }
.pop-s5 { font-size: 2.20rem; opacity: 1.00; font-weight: 700; }

/* ── 12. CONCEPT BOX ────────────────────────────────────────── */
.concept-list  { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.concept-item  { display: flex; align-items: baseline; font-family: var(--ff-sans); font-size: 0.88rem; }
.concept-item::before { content: "•"; color: var(--c-accent); margin-right: 6px; font-weight: bold; }
.concept-link  { color: #333; text-decoration: none; }
.concept-link:hover { color: var(--c-accent); text-decoration: none; }

/* ── 13. RELATED ARTICLES ("Se også") ──────────────────────── */
.related-list  { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 6px; }
.related-item  { display: block; padding: 7px 14px; text-decoration: none; border-bottom: 1px solid #f5f2ef; transition: background 0.15s, box-shadow 0.15s; }
.related-item:last-child { border-bottom: none; }
.related-item:hover { background: #fdf8f4; text-decoration: none; box-shadow: inset 3px 0 0 var(--c-accent); }
.related-title { display: block; font-family: var(--ff-sans); font-size: 0.85rem; font-weight: 600; color: var(--c-accent); text-decoration: none; }
.related-teaser { display: block; font-family: var(--ff-sans); font-size: 0.74rem; color: var(--c-muted); margin-top: 2px; line-height: 1.4; }
.related-lex   .related-title::after { content: " · leksikon"; font-size: 0.68rem; color: #bbb; font-weight: normal; }
.related-region .related-title::after { content: " · region";   font-size: 0.68rem; color: #bbb; font-weight: normal; }
.related-grape  .related-title::after { content: " · druesort"; font-size: 0.68rem; color: #bbb; font-weight: normal; }

/* ── 14. REGION: CHILD CARDS (navigation) ────────────────────── */
.nav-children {
    background: #ede8e1;
    border-left: 4px solid var(--c-wine);
    padding: 1rem 1.25rem 1.25rem;
    margin: 2rem 0 1.5rem;
}
.nav-children__header {
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #b90d0d;
    margin: 0 0 0.85rem;
}
.nav-children__header::after {
    content: "›";
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--c-wine);
    margin-left: 0.3em;
    vertical-align: -0.08em;
}
.nav-children__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}
.child-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 12px 36px 12px 14px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.07);
    text-decoration: none;
    display: block;
    position: relative;
    border-left: 3px solid transparent;
    transition: box-shadow 0.15s, transform 0.15s, background 0.15s, border-left-color 0.15s;
}
.child-card::after {
    content: "›";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--c-wine);
    line-height: 1;
    opacity: 0.55;
    transition: transform 0.15s, opacity 0.15s;
}
.child-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.13);
    transform: translateY(-1px);
    background: #faf6f1;
    border-left-color: var(--c-wine);
}
.child-card:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(3px);
}
.child-card__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #b90d0d;
    font-family: Arial, sans-serif;
    display: block;
}
.child-card__status {
    font-weight: 400;
    color: #999;
    font-size: 0.75rem;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    display: block;
}
.child-card--empty {
    background: #f9f7f5;
    border-radius: var(--radius-md);
    padding: 12px 14px;
}
.child-card--empty .child-card__name { color: #bbb; }

/* ── 15. REGION: VINTAGE CHART COLORS ──────────────────────── */
/*.vt-r1 { color: #1a6b1a; }
.vt-r2 { color: #3a8a10; }
.vt-r3 { color: #7a9010; }
.vt-r4 { color: #b07010; }
.vt-r5 { color: #c04020; }
*/

.vt-r1 { color: #6B1A2E; }
.vt-r2 { color: #1a5b1a; }
.vt-r3 { color: #9ab030; }
.vt-r4 { color: #b07010; }
.vt-r5 { color: #aaa; }


/* ── 16. LEKSIKON: RELATED CARDS ───────────────────────────── */
.rel-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.12); color: var(--c-accent); }

/* ── 16b. SIDEBARBOX GRID-MODE ─────────────────────────────── */
.sb-grid-block  { margin-top: 2rem; }
.sb-grid-label  {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--c-accent);
    font-family: var(--ff-sans); margin-bottom: 0.75rem;
}
.sb-grid {
    display: grid; gap: 8px;
}
.sb-grid-card {
    display: block; background: #fff; border-radius: var(--radius-md);
    padding: 10px 12px; box-shadow: 0 1px 5px rgba(0,0,0,0.07);
    text-decoration: none; transition: box-shadow 0.15s;
}
.sb-grid-title  { display: block; font-family: var(--ff-sans); font-size: 0.85rem; font-weight: 600; color: #333; }
.sb-grid-teaser { display: block; font-family: var(--ff-sans); font-size: 0.75rem; color: #999; margin-top: 3px; line-height: 1.4; }

/* ── 17. COMPONENTS ─────────────────────────────────────────── */
.badge-red   { background: var(--c-wine); color: #fff; border-radius: 3px; padding: 2px 7px; font-size: 0.75rem; font-family: var(--ff-sans); }
.badge-white { background: #4a6020;       color: #fff; border-radius: 3px; padding: 2px 7px; font-size: 0.75rem; font-family: var(--ff-sans); }
.badge-rose  { background: #9b3a5a;       color: #fff; border-radius: 3px; padding: 2px 7px; font-size: 0.75rem; font-family: var(--ff-sans); }

/* Grape type badge (pill-style, used on grape article pages) */
.grape-type-badge {
    font-family: var(--ff-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 10px;
    border-radius: 20px;
    color: #fff;
    display: inline-block;
}
.grape-type-red   { background: var(--c-accent); }
.grape-type-white { background: #3a6020; }
.grape-type-rose  { background: #9b3a5a; }

/* Grape pill (region sidebar grape tags) */
.grape-pill {
    font-size: 0.75rem;
    font-family: var(--ff-sans);
    padding: 2px 9px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #faf9f7;
    color: var(--c-accent);
    text-decoration: none;
    display: inline-block;
}
.grape-pill:hover { text-decoration: none; background: #f5e8ea; color: var(--c-wine); }
.grape-pill-white { color: #3a6020; border-color: #c5deb3; background: #f4f9f0; }
.grape-pill-white:hover { background: #e8f2dd; color: #3a6020; }
.grape-pill-gray { color: #bbb; border-color: #e5e5e5; background: #f7f7f7; cursor: default; }
.grape-pill-gray:hover { background: #f7f7f7; color: #bbb; }

/* Category pills for leksikon articles */
.category-pill {
    font-size: 0.75rem;
    font-family: var(--ff-sans);
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    border: 1px solid #ddd;
    display: inline-block;
    white-space: nowrap;
}
.category-pill--tasting   { color: #6B1A2E; border-color: #d4a0ad; background: #fbeaea; }
.category-pill--process   { color: #5a4310; border-color: #d4c5a0; background: #faf3e0; }
.category-pill--climate   { color: #1a5276; border-color: #a9cce3; background: #e8f4f8; }
.category-pill--geology   { color: #5d4e37; border-color: #c9bfb0; background: #f0ebe4; }
.category-pill--history   { color: #6c3483; border-color: #c9a0d4; background: #f4ecf7; }
.category-pill--equipment { color: #566573; border-color: #b0b8c0; background: #eaecee; }
.category-pill--business  { color: #1e8449; border-color: #a0d4b8; background: #e8f8f5; }
.category-pill--science   { color: #2e4053; border-color: #a0b4c9; background: #eaf2f8; }
.category-pill--style     { color: #a04000; border-color: #d4b08a; background: #fef5e7; }
.category-pill--law       { color: #7d6608; border-color: #d4c97a; background: #fef9e7; }

/* Country cards on Vinregioner index */
.country-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8e2da;
    text-decoration: none;
    color: #333;
    transition: box-shadow 0.15s, transform 0.15s;
}
.country-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.country-card__img {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #e8e2da;
}
.country-card__body {
    padding: 12px 14px 14px;
}
.country-card__name {
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-wine);
    margin-bottom: 3px;
}
.country-card__meta {
    font-family: var(--ff-sans);
    font-size: 0.72rem;
    color: #999;
    margin-bottom: 6px;
}
.country-card__grapes {
    font-family: var(--ff-sans);
    font-size: 0.78rem;
    color: #777;
    line-height: 1.4;
}

/* Aroma tag (grape article sidebar) */
.aroma-tag {
    font-family: var(--ff-sans);
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #e8e0d8;
    background: #faf9f7;
    color: #555;
}

/* Vintage table (region sidebar) */
.vintage-table           { width: 100%; border-collapse: collapse; font-family: var(--ff-sans); font-size: 0.75rem; }
.vintage-table th        { text-align: center; padding: 3px 4px; color: #999; font-weight: normal; border-bottom: 1px solid #f0ebe4; }
.vintage-table td        { text-align: center; padding: 5px 4px; font-weight: 700; font-size: 0.8rem; }
.vintage-table .vt-empty { color: #ccc; font-weight: normal; }
.text-wine { color: var(--c-wine); }
.bg-wine   { background-color: var(--c-wine); }
.text-gold { color: var(--c-gold); }
.bg-gold   { background-color: var(--c-gold); }
.stars     { color: var(--c-gold); }

.stat-row   { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.stat-label { font-family: var(--ff-sans); font-size: 0.78rem; color: #888; width: 50px; flex-shrink: 0; }
.stat-bar   { height: 5px; background: #f0ebe4; border-radius: 3px; flex: 1; overflow: hidden; }
.stat-fill  { height: 100%; border-radius: 3px; background: var(--c-accent); }
.stat-value { color: #555; width: 22px; text-align: right; font-weight: 600; font-size: 0.8rem; }

.aging-chart-section  {  margin: 14px 14px 0;  }
.aging-chart-label    { font-family: var(--ff-sans); font-size: 0.72rem; color: #b90d0d; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 8px; }
.aging-chart-wrap     { position: relative; height: 180px; }
.aging-chart-note     { font-family: var(--ff-sans); font-size: 0.78rem; color: #888; margin: 6px 0 0; line-height: 1.4; }

.card-hover { transition: box-shadow 0.15s, border-color 0.15s; }
.card-hover:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); border-color: var(--c-gold) !important; }

/* ── 18. TOOLTIP ────────────────────────────────────────────── */
@media (hover: none) { #lex-tooltip { display: none !important; } }

#lex-tooltip {
    display: none;
    position: fixed;
    z-index: 9999;
    max-width: 320px;
    background: #fff;
    border: 1px solid #e0d8d0;
    border-left: 3px solid var(--c-wine);
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    padding: 12px 14px;
    font-family: var(--ff-sans);
    font-size: 0.82rem;
    line-height: 1.6;
    color: #333;
    pointer-events: none;
}
#lex-tooltip .lex-tt-word {
    font-weight: bold;
    color: var(--c-wine);
    font-size: 0.88rem;
    display: block;
    margin-bottom: 5px;
}
#lex-tooltip .lex-tt-more {
    display: block;
    margin-top: 8px;
    color: var(--c-gold);
    font-size: 0.78rem;
    pointer-events: auto;
}

/* Glossary inline bubble */
.lex-glossary-bubble {
    display: block;
    background: #f5f1eb;
    border-left: 3px solid var(--c-accent, #b90d0d);
    padding: 0.5rem 0.75rem;
    margin: 0.4rem 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--c-text, #1a1a1a);
    border-radius: 0 4px 4px 0;
}

/* ── 19. MAD & VIN ──────────────────────────────────────────── */
.mv-hero {
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.mv-hero-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0) 100%);
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    padding: 2rem 2.25rem 1.75rem;
}
.mv-hero-title {
    font-family: var(--ff-serif);
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
    border: none;
    padding: 0;
    line-height: 1.15;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
.mv-body {
    background: #fff;
    border-radius: 0 0 12px 12px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    font-size: 0.95rem;
}
.mv-body p             { margin-bottom: 1em; }
.mv-body p:last-child  { margin-bottom: 0; }

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 10px;
    margin-bottom: 1.5rem;
}
.food-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    cursor: pointer;
    border: 1px solid transparent;
    transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
    text-align: left;
    width: 100%;
}
.food-card:hover            { box-shadow: 0 3px 14px rgba(0,0,0,0.12); transform: translateY(-1px); border-color: #e8ddd4; }
.food-card-name             { font-family: var(--ff-serif); font-size: 1rem; font-weight: bold; color: var(--c-text); margin-bottom: 3px; line-height: 1.2; }
.food-card-sub              { font-family: var(--ff-sans); font-size: 0.72rem; color: #aaa; }
.food-card.dish-card        { border-left: 3px solid #e8ddd4; }
.food-card.dish-card:hover  { border-left-color: var(--c-accent); }
.cat-desc {
    font-family: var(--ff-sans);
    font-size: 0.88rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: #fdf9f5;
    border-left: 3px solid #e8ddd4;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.wine-panel-inner    { background: #fff; border-radius: 12px; box-shadow: 0 2px 16px rgba(0,0,0,0.09); padding: 1.5rem; margin-bottom: 1.5rem; }
.wine-panel-title    { font-family: var(--ff-serif); font-size: 1.4rem; font-weight: bold; color: var(--c-text); margin: 0 0 0.75rem; }
.wine-panel-desc     { font-family: var(--ff-sans); font-size: 0.88rem; color: #555; line-height: 1.7; margin-bottom: 1.25rem; }
.wine-section-label  { font-family: var(--ff-sans); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.wine-chips          { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.wine-chip           { font-family: var(--ff-sans); font-size: 0.8rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.wine-chip.red       { background: #fbeaea; color: #8B0000; }
.wine-chip.white     { background: #fdf8e8; color: #7a6000; }

/* ── 20. INDEX / LANDING PAGES ──────────────────────────────── */
/* Single-column: hide empty aside */
.article-layout > article:only-child { grid-column: 1 / -1; }

/* A–Z letter buttons */
.az-btn {
    width: 1.9rem; height: 1.9rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 0.75rem; font-weight: 700;
    font-family: Arial, sans-serif; border: 1px solid #e0d8d0;
    background: #fff; color: #b90d0d; text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.az-btn:hover { background: #fbeaea; color: #b90d0d; border-color: #b90d0d; box-shadow: 0 1px 4px rgba(185,13,13,0.15); }
.az-btn.active { background: #b90d0d; color: #fff; border-color: #b90d0d; box-shadow: 0 1px 4px rgba(185,13,13,0.25); }

/* Type filter buttons */
.type-btn {
    padding: 0.35rem 0.9rem; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600; font-family: Arial, sans-serif;
    border: 1px solid #e0d8d0; background: #fff; color: #555;
    cursor: pointer; transition: background 0.15s, color 0.15s;
}
.type-btn.active, .type-btn:hover { background: #b90d0d; color: #fff; border-color: #b90d0d; }

/* Group filter buttons (leksikon kategori) */
.group-btn {
    padding: 0.25rem 0.7rem; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600; font-family: Arial, sans-serif;
    border: 1px solid #e0d8d0; background: #f7f4f1; color: #666;
    cursor: pointer; transition: background 0.15s, color 0.15s;
}
.group-btn.active, .group-btn:hover { background: #7a0d0d; color: #fff; border-color: #7a0d0d; }

/* Country filter buttons */
.country-btn {
    padding: 0.25rem 0.7rem; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600; font-family: Arial, sans-serif;
    border: 1px solid #e0d8d0; background: #fff; color: #555;
    cursor: pointer; transition: background 0.15s, color 0.15s;
}
.country-btn.active, .country-btn:hover { background: #b90d0d; color: #fff; border-color: #b90d0d; }

/* Entry rows in index lists */
.letter-heading {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: #b90d0d; font-family: Arial, sans-serif;
    padding: 1.25rem 0 0.4rem; border-bottom: 1px solid #f0ebe4; margin-bottom: 0.25rem;
}
.entry-row {
    display: flex; align-items: baseline; gap: 0.6rem;
    padding: 0.55rem 0; border-bottom: 1px solid #f5f2ef;
    font-family: Arial, sans-serif;
}
.entry-row a { color: #333; text-decoration: none; font-weight: 600; font-size: 0.88rem; }
.entry-row a:hover { color: #b90d0d; }
.entry-teaser { font-size: 0.78rem; color: #999; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.entry-meta   { font-size: 0.75rem; color: #bbb; white-space: nowrap; }
.page-count   { font-size: 0.82rem; color: #888; font-family: Arial, sans-serif; margin-bottom: 1rem; }

/* Vintage overview table (Årgangstabeller index) */
.vt-filter {
    font-family: Arial, sans-serif; font-size: 0.72rem; font-weight: 600;
    padding: 4px 10px; border-radius: 4px; border: 1px solid #d0c8c0;
    background: #fff; color: #555; cursor: pointer;
    transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.vt-filter:hover, .vt-filter.active { background: #6B1A2E; color: #fff; border-color: #6B1A2E; }
.vt-score-btn {
    font-family: Arial, sans-serif; font-size: 0.72rem; font-weight: 600;
    padding: 4px 10px; border-radius: 4px; border: 1px solid #d0c8c0;
    background: #fff; color: #555; cursor: pointer;
    transition: background 0.1s, color 0.1s;
}
.vt-score-btn.active { outline: 2px solid #333; outline-offset: 1px; }
.vt-table { border-collapse: collapse; min-width: 0; margin-top: 2px; }
/*.vt-name-col { min-width: 150px; max-width: 200px; white-space: normal; padding: 6px 10px; border-right: 2px solid #e8e0d8; vertical-align: top; background: #fff; }
*/
.vt-name-col { min-width: 150px; max-width: 200px; }

thead .vt-name-col { background: #3a0e1a; }
.vt-table thead tr { background: #3a0e1a; }
.vt-table th { color: #fff; padding: 5px 6px;  text-align: center; font-weight: bold; font-size: 0.7rem; font-family: Arial, sans-serif; min-width: 26px; white-space: nowrap; }

.vt-cell { text-align: center; font-size: 0.72rem; font-family: Arial, sans-serif; cursor: pointer; border: 2px solid; padding-top: 4px; padding-bottom: 4px; }
.vt-table tbody tr:first-child .vt-cell { border-top: none; }
.vt-table thead tr { border-bottom: 2px solid #faf7f5 }

.vt-cell:hover { filter: brightness(0.9); }
.vt-table tbody tr:hover .vt-name-col { background: #faf7f5; }
.vt-cell.vt-r1 { background: #aa2222; color: #fff; }
.vt-cell.vt-r2 { background: #88aa22; color: #fff; }
.vt-cell.vt-r3 { background: #dddd66; color: #222; border: 2px solid #fff; }
.vt-cell.vt-r4 { background: #c9c9c9; color: #222; border: 2px solid #fff; }
.vt-cell.vt-r5 { background: #aaa; color: #222; border: 2px solid #fff; }
/*
.vt-r1 { color: #6B1A2E; }
.vt-r2 { color: #1a5b1a; }
.vt-r3 { color: #9ab030; }
.vt-r4 { color: #b07010; }
.vt-r5 { color: #aaa; }
*/

.vt-cell.vt-empty { color: #ccc; cursor: default; border:none; }
.vt-cell.vt-dimmed { opacity: 0.18; }

/* ── 21. FACTBOX (collapsible fact panel, Børsen-style) ──────── */


.factBox {
    background: #fff;
    border: none;
    margin: 1.5em 0;
    clear: right;
    font-family: var(--ff-sans);
}

.factBox__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    background: #ede8e1;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;

    font-family: 'Roboto Condensed', sans-serif;  
}

.factBox__header:hover { background: #ece8e1; }
.factBox__header-left  { display: flex; flex-direction: column; gap: 1px; }
.factBox__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--c-accent);
    line-height: 1;
}

.factBox__header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-text);
    margin: 0;
}

.factBox__toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s;
}
.factBox__header:hover .factBox__toggle { color: var(--c-accent); }
.factBox__arrow {
    display: inline-block;
    font-size: 0.85rem;
    line-height: 1;
    transition: transform 0.3s ease;
}
.factBox--open .factBox__arrow { transform: rotate(180deg); }

/* Body: teaser when collapsed, full height when open */
.factBox__body {
    position: relative;
    max-height: 72px;
    overflow: hidden;
    transition: max-height 0.28s ease;
    background: #f5f1eb; /*boxens baggrund, body */
}
.factBox__body::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #FAF7F2 100%);
    pointer-events: none;
    transition: opacity 0.2s;
}
.factBox--open .factBox__body {
    max-height: 1200px;
    transition: max-height 0.4s ease;
}
.factBox--open .factBox__body::after { opacity: 0; pointer-events: none; }

.factBox__list {
    list-style: disc;
    margin: 0;
    padding: 10px 14px 0px 32px;
}
.factBox__list li {
    font-size: 0.84rem;
    color: var(--c-text);
    line-height: 1.55;
    padding: 2px 0;
}

.factBox__list li::marker {
  color: #b90d0d;
   font-size: 1.2em;
}

/* ── 22. keyTakeawayBox (HUSK DET) ────────────────────── */
.keyTakeawayBox {
    position: relative;
    margin: 1.25em 0;
    font-family: var(--ff-sans);
    
    border-left:none;
    border-right: none;
    border-top: 1px solid #f0ebe4;
    border-bottom: 1px solid #f0ebe4;

    background-color: #f6e3e2;

    padding: 12px 0;
    margin: 28px 0;
}

.keyTakeawayBox::before {
    content: 'KORT & GODT'; /* HUSKEREGEL, INDSGT */
    display: block;
    font-size: 0.9rem;
    
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c-accent);
   
    padding: 7px 14px;
    font-family: 'Roboto Condensed', var(--ff-sans);

    margin-bottom: 6px;  
}

.keyTakeawayBox p {
   
    padding: 0px 14px 11px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #333;
  
    font-style: italic;
    margin: 0;
}

.keyTakeawayBox a 
{
    color:#111;
}

/* ── 22. didYouKnowBox (VIDSTE DU?) ────────────────────── */
.didYouKnowBox {
    position: relative;
    margin: 1.25em 0;
    font-family: var(--ff-sans);
    
    border-left:none;
    border-right: none;
    border-top: 1px solid #f0ebe4;
    border-bottom: 1px solid #f0ebe4;

    background-color: #f6e3e2;

    padding: 12px 0;
    margin: 28px 0;
}

.didYouKnowBox::before {
    content: 'VIDSTE DU?'; /* HUSKEREGEL, INDSGT */
    display: block;
    font-size: 0.9rem;
    
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c-accent);
   
    padding: 7px 14px;
    font-family: 'Roboto Condensed', var(--ff-sans);

    margin-bottom: 6px;  
}

.didYouKnowBox p {
   
    padding: 0px 14px 11px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #333;
  
    font-style: italic;
    margin: 0;
}

.didYouKnowBox a 
{
    color:#111;
}



/* ── 23. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 860px) {
    .article-layout { gap: 1.5rem; flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
    .article-main,
    .article-aside-col { display: contents; }
    .article-main > article { order: 1; }
    .article-aside-col > .article-aside--content { order: 2; }
    .article-main > .nav-children { order: 3; }
    .article-aside-col > .article-aside--related { order: 5; }
    .article-aside--content > .aside-card { margin-bottom: 1.5rem; }
    .article-aside--content > .aside-card:last-child { margin-bottom: 0; }
    .nav-children { margin: 0; }
}
@media (max-width: 720px) {
    .hdr-desk-only { display: none !important; }
    #mob-controls  { display: flex !important; }
}
/* Mobile: kompakt padding */
@media (max-width: 560px) {
    table.lexTable th,
    table.lexTable td { padding: 6px 10px; }
}

/* ── ETIKETSCANNER ─────────────────────────────────────────── */
.scanner-overlay {
    position: fixed; inset: 0;
    z-index: 1000;
    background: #fff;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}
.scanner-overlay--open { display: flex; }

.scanner-overlay__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--c-border);
    background: #fff;
    position: sticky; top: 0; z-index: 1;
}
.scanner-overlay__title {
    font-family: var(--ff-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-wine);
}
.scanner-overlay__close {
    background: none; border: none; cursor: pointer;
    font-size: 1.6rem; color: #666; padding: 4px 8px; line-height: 1;
}

.scanner-overlay__body {
    padding: 1rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.scanner-preview {
    display: none;
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    background: #f5f2ef;
}

.scanner-status {
    font-family: var(--ff-sans);
    font-size: 0.9rem;
    color: var(--c-muted);
    text-align: center;
    padding: 2rem 0;
}

.scanner-label-info {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}
.scanner-label-info__title {
    font-family: var(--ff-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-wine);
    margin-bottom: 0.5rem;
}
.scanner-label-info table {
    width: 100%;
    border-collapse: collapse;
}
.scanner-label-info td {
    font-family: var(--ff-sans);
    font-size: 0.88rem;
    padding: 0.2rem 0;
    vertical-align: top;
    border: none;
}
.scanner-label-info__key {
    color: var(--c-muted);
    width: 95px;
    font-size: 0.82rem;
}
.scanner-label-info a {
    color: var(--c-accent);
    font-weight: 600;
    text-decoration: none;
}
.scanner-label-info a:hover { text-decoration: underline; }

.scanner-match {
    background: #f5f2ef;
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    margin-bottom: 0.75rem;
}
.scanner-match--vintage {
    background: #f0ebe4;
    border-left: 3px solid var(--c-gold);
}
.scanner-match--empty {
    background: #faf7f2;
    border: 1px dashed var(--c-border);
}
.scanner-match__title {
    font-family: var(--ff-sans);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--c-wine);
    margin-bottom: 0.35rem;
}
.scanner-match p {
    font-family: var(--ff-serif);
    font-size: 0.9rem;
    color: var(--c-text);
    line-height: 1.55;
    margin: 0 0 0.4rem;
}
.scanner-match__badge {
    display: inline-block;
    font-family: var(--ff-sans);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-gold);
    background: rgba(184,145,58,0.12);
    padding: 1px 6px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 4px;
}
.scanner-match__link {
    font-family: var(--ff-sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-accent);
    text-decoration: none;
}
.scanner-match__link:hover { text-decoration: underline; }

.scanner-vintage-score {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.5rem 0;
}
.scanner-vintage-score__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    font-family: var(--ff-sans);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}
.scanner-vintage-score__number.vt-r1 { background: #2d7d3a; }
.scanner-vintage-score__number.vt-r2 { background: #5a9e2f; }
.scanner-vintage-score__number.vt-r3 { background: #b8a320; }
.scanner-vintage-score__number.vt-r4 { background: #c47a1a; }
.scanner-vintage-score__number.vt-r5 { background: #b44; }
.scanner-vintage-score__label {
    font-family: var(--ff-sans);
    font-size: 0.88rem;
    color: var(--c-text);
}

.scanner-retry {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.55rem 1.2rem;
    background: var(--c-wine);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--ff-sans);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}
.scanner-retry:hover { background: #551524; }

.scanner-raw {
    margin-top: 1rem;
    font-family: var(--ff-sans);
    font-size: 0.8rem;
    color: var(--c-muted);
}
.scanner-raw summary { cursor: pointer; }
.scanner-raw pre {
    margin-top: 0.5rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.78rem;
    background: #f5f2ef;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    max-height: 200px;
    overflow-y: auto;
}

/* Country grid on /Vinregioner */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.country-tile .tile-img { height: 140px; }
.country-tile .tile-img--placeholder {
    background: linear-gradient(135deg, #6B1A2E 0%, #8a2a45 100%);
}
.country-tile--disabled { opacity: 0.55; cursor: default; }
.country-tile--disabled .tile-img--placeholder {
    background: linear-gradient(135deg, #d8d0c8 0%, #eee7df 100%);
}

@media (max-width: 560px) {
    .country-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .country-tile .tile-img { height: 90px; }
    .country-tile .tile-body { padding: 0.55rem 0.7rem 0.7rem; }
    .country-tile .tile-cat { font-size: 0.58rem; margin-bottom: 0.2rem; }
    .country-tile .tile-title { font-size: 0.92rem; }
    .country-tile .tile-note {
        font-size: 0.7rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ── Leksikon index: opslagsliste og søgeresultater ─────────────────────── */
.lex-letter {
    font-family: Georgia, serif; font-size: 2.5rem; font-weight: bold;
    color: #e8ddd4; margin-bottom: 0.75rem; line-height: 1;
}
.lex-entry {
    margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #f0ebe4;
}
.lex-entry-name {
    font-family: Georgia, serif; font-size: 1rem; font-weight: bold;
    color: #1a1a1a; text-decoration: none; margin-right: 7px;
}
.lex-entry-name--muted { color: #aaa; }
.lex-badge {
    display: inline-block; vertical-align: 0.1em;
    font-family: Arial, sans-serif; font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: #666; background: #f0eff0; padding: 1px 6px; border-radius: 3px;
}
.lex-badge--grape  { color: #3a6020; background: #edf4e8; }
.lex-badge--region { color: #6B1A2E; background: #fbeaea; }
.lex-badge--muted  { color: #ccc;    background: #f5f5f5; }
.lex-entry-teaser {
    font-family: Arial, sans-serif; font-size: 0.83rem; color: #777;
    line-height: 1.6; margin-top: 0.2rem;
}
.lex-search-note { font-family: Arial, sans-serif; font-size: 0.8rem; color: #999; }
