/* =========================================================================
   433.no VURDERER — editorial verdict ("Signaturkolonne")
   Rendered by class-red-display.php (in-article) and class-red-feed.php (feed).

   The verdict is set apart from the reported story by TYPOGRAPHY, not a filled
   callout box: a single hairline rule, an uppercase editorial kicker, a serif
   column and a signed byline. Brand red appears once — the short tick before
   the kicker — so a vurdering never reads as an AI/notice box.

   Colours come from the theme tokens, which flip under [data-theme="dark"].
   The red accent is local so it can shift to a legible tone in dark mode.
   ========================================================================= */

.red433 {
    --red433-accent: #c2213b;
    --red433-link: #a81a30;

    box-sizing: border-box;
    margin: 2.5rem 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--border-medium, #ddd);
}

[data-theme="dark"] .red433 {
    --red433-accent: #ff5d6c;
    --red433-link: #ff7a86;
}

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

/* --- Kicker: uppercase label + single red tick + info --- */

.red433__kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary, #333);
}

.red433__kicker::before {
    content: "";
    flex-shrink: 0;
    width: 26px;
    height: 2px;
    background: var(--red433-accent);
}

/* --- Info tooltip (E-E-A-T explainer) --- */

.red433__info {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    outline: none;
}

.red433__info-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid var(--text-muted, #6c757d);
    color: var(--text-muted, #6c757d);
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
}

.red433__tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    width: min(280px, 78vw);
    padding: 9px 11px;
    border-radius: 7px;
    background: var(--text-main, #0a0a0a);
    color: var(--bg-card, #fff);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-3px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.red433__info:hover .red433__tooltip,
.red433__info:focus .red433__tooltip,
.red433__info:focus-visible .red433__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Verdict body: serif column, distinct from the sans/serif article body --- */

.red433__body {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-main, #0a0a0a);
}

.red433 .red433__body {
    font-size: 1.24rem;
    line-height: 1.62;
    letter-spacing: -0.003em;
    max-width: 40ch;
}

.red433__body p {
    margin: 0 0 0.6em;
}

.red433__body p:last-child {
    margin-bottom: 0;
}

.red433__body a {
    color: var(--red433-link);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --- Signed byline --- */

.red433__by {
    margin: 14px 0 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
}

/* --- "Andre vurderinger om {entity}" internal-linking block --- */

.red433-related {
    margin-top: 24px;
}

.red433-related__title {
    margin: 0 0 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted, #6c757d);
}

.red433-related__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.red433-related__item {
    position: relative;
    padding: 5px 0 5px 16px;
    line-height: 1.4;
}

.red433-related__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red433-accent);
}

.red433-related__item a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main, #0a0a0a);
    text-decoration: none;
}

.red433-related__item a:hover {
    color: var(--red433-link);
    text-decoration: underline;
}

.red433-related__all {
    display: inline-block;
    margin-top: 11px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--red433-link);
    text-decoration: none;
}

.red433-related__all:hover {
    text-decoration: underline;
}

/* =========================================================================
   FEED / SAMLESIDE — [433_vurderinger]
   ========================================================================= */

.red433-feed {
    --red433-accent: #c2213b;
    --red433-link: #a81a30;
    max-width: 720px;
    margin: 0 auto;
}

[data-theme="dark"] .red433-feed {
    --red433-accent: #ff5d6c;
    --red433-link: #ff7a86;
}

/* Kicker used both above the feed heading and above each verdict. */
.red433__eyebrow,
.red433-feed__label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary, #333);
}

.red433__eyebrow::before,
.red433-feed__label::before {
    content: "";
    flex-shrink: 0;
    width: 26px;
    height: 2px;
    background: var(--red433-accent);
}

.red433-feed__intro {
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light, #e9e9e9);
}

.red433-feed__intro .red433__eyebrow {
    margin-bottom: 10px;
}

.red433-feed__heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    color: var(--text-main, #0a0a0a);
}

.red433-feed__lead {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-muted, #6c757d);
    margin: 0;
}

.red433-feed__reset {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--red433-link);
    text-decoration: none;
}

.red433-feed__reset:hover {
    text-decoration: underline;
}

.red433-feed__list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.red433-feed__item {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border-light, #e9e9e9);
}

.red433-feed__item:last-child {
    border-bottom: none;
}

.red433-feed__meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 6px;
}

.red433-feed__cat {
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-muted, #6c757d);
    text-decoration: none;
}

.red433-feed__cat:hover {
    color: var(--red433-link);
    text-decoration: underline;
}

.red433-feed__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 14px;
}

.red433-feed__title a {
    color: var(--text-main, #0a0a0a);
    text-decoration: none;
}

.red433-feed__title a:hover {
    text-decoration: underline;
}

.red433-feed__verdict {
    padding-top: 14px;
    border-top: 1px solid var(--border-light, #e9e9e9);
}

.red433-feed__label {
    margin-bottom: 10px;
}

.red433-feed__verdict .red433__body {
    font-size: 1.08rem;
    line-height: 1.58;
    max-width: 46ch;
}

.red433-feed__read {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--red433-link);
    text-decoration: none;
}

.red433-feed__read:hover {
    text-decoration: underline;
}

.red433-feed__empty {
    color: var(--text-muted, #6c757d);
}

/* --- Feed pager --- */

.red433-feed__pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light, #e9e9e9);
    font-size: 0.9rem;
}

.red433-feed__pager-link {
    font-weight: 700;
    color: var(--red433-link);
    text-decoration: none;
}

.red433-feed__pager-link:hover {
    text-decoration: underline;
}

.red433-feed__pager-status {
    color: var(--text-muted, #6c757d);
}

/* --- Mobile --- */

@media (max-width: 600px) {
    .red433 .red433__body {
        font-size: 1.15rem;
    }

    .red433-feed__heading {
        font-size: 1.6rem;
    }

    .red433-feed__title {
        font-size: 1.24rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .red433__tooltip {
        transition: none;
    }
}
