/* ===========================
   Hudpleje.dk — Artikler
   Bygger på tokens og knapper fra /style.css
   =========================== */

body.artikler { padding-top: 0; }

/* ---------- Egen menubar ---------- */

.anav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 245, 240, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.anav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 64px;
}

.anav-brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
}
.anav-brand .logo { font-size: 1.125rem; }
.anav-brand-sub {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    padding-left: 10px;
    border-left: 1px solid var(--color-border);
}

.anav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}
.anav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition);
}
.anav-links a:hover,
.anav-links a[aria-current="page"] { color: var(--color-text); }
.anav-links a[aria-current="page"] { font-weight: 600; }

.anav-back {
    font-size: 0.875rem;
    color: var(--color-primary) !important;
    font-weight: 500;
}

.anav .mobile-toggle { display: none; }

@media (max-width: 860px) {
    .anav-links { display: none; }
    .anav-links.active {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
    }
    .anav .mobile-toggle { display: flex; }
    .anav-brand-sub { display: none; }
}

/* ---------- Oversigt ---------- */

.aindex-header {
    padding: 72px 0 40px;
    text-align: center;
}
.aindex-header h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.aindex-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 1.0625rem;
}

.atopics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}
.atopic {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--color-border);
    background: transparent;
    color: var(--color-text-muted);
    font: 500 0.875rem var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
}
.atopic:hover { border-color: var(--color-primary); color: var(--color-primary); }
.atopic[aria-pressed="true"] {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.agrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding-bottom: 96px;
}

.acard {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.acard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.acard img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 30%;
}
.acard-body { padding: 22px 24px 26px; }
.acard-topic {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
}
.acard h2 {
    font-size: 1.1875rem;
    line-height: 1.35;
    margin: 8px 0 10px;
    letter-spacing: -0.01em;
}
.acard p { color: var(--color-text-muted); font-size: 0.9375rem; }
.acard-meta { margin-top: 14px; font-size: 0.8125rem; color: var(--color-text-muted); }

.aempty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: var(--color-text-muted);
}

/* ---------- Artikel ---------- */

.acrumbs {
    padding-top: 32px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}
.acrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.acrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--color-border); }
.acrumbs a { color: inherit; text-decoration: none; }
.acrumbs a:hover { color: var(--color-primary); }

.ahead {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 0 32px;
    text-align: center;
}
.ahead h1 {
    font-size: clamp(1.875rem, 4.5vw, 2.875rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 4px 0 18px;
}
.ahead-lead {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto;
}
.ahead-meta {
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.ahero {
    max-width: 1000px;
    margin: 0 auto 56px;
}
.ahero img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center 35%;
    border-radius: var(--radius);
}

.abody {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.75;
    padding-bottom: 64px;
}
.abody > * + * { margin-top: 1.1em; }
.abody h2 {
    font-size: clamp(1.375rem, 2.6vw, 1.75rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-top: 2.2em;
    scroll-margin-top: 88px;
}
.abody ul { padding-left: 1.3em; }
.abody li + li { margin-top: 0.45em; }
.abody a { color: var(--color-primary); text-underline-offset: 3px; }
.abody a:hover { color: var(--color-primary-light); }
.abody figure { margin: 2em 0; }
.abody figure img { width: 100%; height: auto; border-radius: var(--radius-sm); }
.abody figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--color-text-muted); }

.akort {
    padding: 20px 24px;
    background: var(--color-primary-bg);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-sm);
}

.afacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 1.8em 0;
}
.afact {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 22px 24px;
    font-size: 0.9875rem;
    line-height: 1.6;
}
.afact-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 10px;
}
.afact ul { padding-left: 18px; }
.afact-help { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-border); }

.atoc {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px 24px;
    font-size: 0.9375rem;
}
.atoc summary { cursor: pointer; font-weight: 600; }
.atoc ol { margin-top: 12px; padding-left: 1.3em; }
.atoc a { text-decoration: none; }

.asources {
    margin-top: 3em !important;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}
.asources a { color: inherit; }

/* Kløe-cirklen */
.kloee-cirkel { margin: 2em 0; }
.kloee-cirkel__ring {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
    margin: 0 auto;
}
.kloee-cirkel__ring svg { width: 100%; height: 100%; display: block; }
.kloee-cirkel__ring svg path[stroke] { stroke: var(--color-primary); }
.kloee-cirkel__ring svg path[fill]:not([stroke]) { fill: var(--color-primary); }
.kloee-cirkel__midte {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.35;
    color: var(--color-text-muted);
    margin: 0 !important;
}
.kloee-cirkel__trin { margin: 0 !important; }
.kloee-cirkel__trin summary {
    position: absolute;
    transform: translate(-50%, -50%);
    list-style: none;
    cursor: pointer;
    padding: 8px 14px;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    z-index: 1;
    transition: all var(--transition);
}
.kloee-cirkel__trin summary::-webkit-details-marker { display: none; }
.kloee-cirkel__trin summary:hover { border-color: var(--color-primary); color: var(--color-primary); }
.kloee-cirkel__trin[open] summary { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.kloee-cirkel__trin--1 summary { left: 50%; top: 19.5%; }
.kloee-cirkel__trin--2 summary { left: 80.5%; top: 50%; }
.kloee-cirkel__trin--3 summary { left: 50%; top: 80.5%; }
.kloee-cirkel__trin--4 summary { left: 19.5%; top: 50%; }
.kloee-cirkel__trin > p {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 14px 18px;
    background: var(--color-primary-bg);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    line-height: 1.55;
    text-align: center;
}
.kloee-cirkel__hint {
    min-height: 7.5em;
    padding-top: 16px;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 0 !important;
}
.kloee-cirkel__ring:has(details[open]) + .kloee-cirkel__hint { visibility: hidden; }
@media (max-width: 420px) {
    .kloee-cirkel__trin summary { font-size: 0.75rem; padding: 6px 10px; }
    .kloee-cirkel__hint { min-height: 9em; }
}

/* Produktboks (slutter) */
.aprodukt {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    max-width: 880px;
    margin: 0 auto 96px;
    background: var(--color-dark);
    color: #fff;
    border-radius: var(--radius);
    overflow: hidden;
}
.aprodukt img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: center 30%;
}
.aprodukt-tekst {
    padding: 40px 40px 44px;
    align-self: center;
}
.aprodukt .section-tag { color: var(--color-accent); }
.aprodukt h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.aprodukt p { color: rgba(255,255,255,0.78); }
.aprodukt ul {
    list-style: none;
    margin: 18px 0 28px;
    color: rgba(255,255,255,0.78);
    font-size: 0.9375rem;
}
.aprodukt li { padding-left: 24px; position: relative; }
.aprodukt li + li { margin-top: 6px; }
.aprodukt li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

@media (max-width: 720px) {
    .aprodukt { grid-template-columns: 1fr; }
    .aprodukt img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
    .aprodukt-tekst { padding: 28px 24px 32px; }
    .aprodukt .btn { width: 100%; }
}
