/* foe-guide.dk – main stylesheet (built from design preview, on tokens.css) */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--foe-bg);
    color: var(--foe-text);
    font-family: var(--foe-font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.foe-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--foe-brown);
    color: var(--foe-cream);
    text-decoration: none;
    font-weight: 600;
}

.foe-skip:focus {
    left: 12px;
    top: 12px;
    outline: 2px solid var(--foe-gold);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--foe-link);
}

a:hover {
    color: var(--foe-link-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--foe-gold);
    outline-offset: 2px;
}

.sr,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.foe-container {
    max-width: var(--foe-container);
    margin: 0 auto;
    padding-left: var(--foe-gutter);
    padding-right: var(--foe-gutter);
}

/* —— Header —— */
.foe-header {
    background: var(--foe-brown);
    border-bottom: 2px solid var(--foe-gold);
}

.foe-header__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.foe-header__nav {
    border-top: 1px solid rgba(255, 244, 230, 0.12);
    padding-bottom: 2px;
}

.foe-logo {
    display: flex;
    align-items: center;
    flex: none;
    text-decoration: none;
    color: var(--foe-cream);
}

.foe-logo img {
    display: block;
    width: 256px;
    max-width: min(256px, 70vw);
    height: auto;
}

.foe-nav-toggle {
    display: none;
    margin-left: auto;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--foe-brown-line);
    border-radius: var(--foe-radius-sm);
    background: transparent;
    color: var(--foe-cream);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.foe-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 18px;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
}

.foe-nav a {
    color: var(--foe-cream);
    text-decoration: none;
    padding: 10px 0;
    white-space: nowrap;
}

.foe-nav a:hover {
    color: var(--foe-gold-light);
}

.foe-nav__classic {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.foe-nav__icon {
    flex: none;
    opacity: 0.9;
}

.foe-nav__drop {
    position: relative;
}

.foe-nav__drop>summary {
    list-style: none;
    cursor: pointer;
    color: var(--foe-cream);
    padding: 10px 0;
    white-space: nowrap;
}

.foe-nav__drop>summary::-webkit-details-marker {
    display: none;
}

.foe-nav__menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--foe-surface);
    border-radius: var(--foe-radius);
    box-shadow: var(--foe-shadow);
}

.foe-nav__menu a {
    display: block;
    padding: 8px 10px;
    color: var(--foe-text);
    border-radius: var(--foe-radius-xs);
    white-space: normal;
}

.foe-nav__menu a:hover {
    background: var(--foe-tag-bg);
    color: var(--foe-heading);
}

.foe-header__top .foe-search {
    margin-left: auto;
}

.foe-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--foe-surface);
    border-radius: var(--foe-radius-sm);
    padding: 0 12px;
    height: 42px;
    flex: 0 1 280px;
    min-width: 160px;
}

.foe-search svg {
    flex: none;
}

.foe-search input {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--foe-text);
    outline: none;
    width: 100%;
    min-width: 0;
}

.foe-search button {
    display: none;
}

@media (max-width: 900px) {
    .foe-nav-toggle {
        display: inline-flex;
        align-items: center;
        margin-left: 0;
    }

    .foe-header__top .foe-search {
        order: 3;
        flex: 1 1 100%;
        margin-left: 0;
        max-width: none;
    }

    .foe-header__nav {
        display: none;
        padding-bottom: 10px;
    }

    .foe-header.is-nav-open .foe-header__nav {
        display: block;
    }

    .foe-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .foe-nav a,
    .foe-nav__drop>summary {
        padding: 10px 0;
    }

    .foe-nav__classic {
        margin-left: 0;
    }

    .foe-nav__menu {
        position: static;
        box-shadow: none;
        background: transparent;
        padding: 0 0 8px 12px;
    }

    .foe-nav__menu a {
        color: var(--foe-cream);
    }

    .foe-nav__menu a:hover {
        background: rgba(255, 244, 230, 0.08);
        color: var(--foe-gold-light);
    }
}

/* —— Banner / skyline / warning —— */
.foe-banner {
    background: var(--foe-ink);
    color: var(--foe-cream);
}

.foe-banner__inner {
    padding-top: 26px;
    padding-bottom: 0;
}

.foe-banner--slim .foe-banner__inner {
    padding-top: 18px;
}

.foe-banner--hero .foe-banner__inner {
    padding-top: 56px;
    padding-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 44px;
    align-items: flex-start;
}

.foe-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--foe-cream-3);
}

.foe-crumb a {
    color: var(--foe-cream-3);
    text-decoration: none;
}

.foe-crumb a:hover {
    color: var(--foe-cream);
}

.foe-crumb [aria-current="page"] {
    color: var(--foe-cream);
}

.foe-banner h1 {
    margin: 0;
    font-family: var(--foe-font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.875rem);
    line-height: 1.1;
    color: var(--foe-cream);
}

.foe-banner__intro {
    margin: 12px 0 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--foe-cream-2);
    max-width: 640px;
}

.foe-cat-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 8px;
}

.foe-cat-banner__text {
    flex: 999 1 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.foe-cat-banner__text h1 {
    margin: 0;
}

.foe-cat-banner__text .foe-banner__intro {
    margin: 0;
}

.foe-status-box {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border-radius: var(--foe-radius);
    border: 1px solid var(--foe-brown-line);
    font-size: 15px;
}

.foe-status-box__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--foe-cream-3);
}

.foe-status-box__row+.foe-status-box__row {
    padding-top: 8px;
    border-top: 1px solid var(--foe-brown-line);
}

.foe-status-box__row strong {
    color: var(--foe-cream);
    font-weight: 700;
}

.foe-status-box__live {
    color: var(--foe-gold-light) !important;
}

.foe-skyline {
    display: block;
    width: 100%;
    height: 80px;
}

.foe-banner--slim .foe-skyline {
    height: 64px;
}

.foe-banner--hero .foe-skyline {
    height: 110px;
}

.foe-skyline-wrap {
    position: relative;
    /* visible so walking-cow speech bubbles are not clipped */
    overflow: visible;
    z-index: 2;
}

.foe-skyline__cow {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 66px;
    pointer-events: none;
    z-index: 3;
    overflow: visible;
}

.foe-skyline__cow foe-ko {
    pointer-events: auto;
    width: 100%;
    height: 66px;
    display: block;
    overflow: visible;
}

.foe-warning {
    background: var(--foe-brown);
    padding: 12px 24px;
    text-align: center;
    font-size: 15px;
    color: var(--foe-bg);
}

.foe-warning strong {
    font-weight: 700;
}

/* —— Main —— */
.foe-main {
    max-width: var(--foe-container);
    margin: 0 auto;
    padding: 36px var(--foe-gutter) 80px;
}

.foe-main--home {
    max-width: none;
    padding: 0 0 80px;
}

/* —— Home hero —— */
.foe-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 44px;
    align-items: flex-start;
    padding-top: 56px;
    padding-bottom: 12px;
}

.foe-hero__main {
    flex: 999 1 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.foe-hero__eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--foe-gold-light);
}

.foe-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 3.375rem);
    line-height: 1.08;
}

.foe-hero-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 600px;
}

.foe-hero-search input {
    flex: 1 1 300px;
    height: 52px;
    padding: 0 16px;
    border-radius: var(--foe-radius-sm);
    border: 0;
    background: #fff;
    color: var(--foe-text);
    font: inherit;
    font-size: 17px;
}

.foe-hero-search .foe-btn {
    height: 52px;
    padding: 0 26px;
    font-size: 17px;
}

.foe-hero__popular {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: var(--foe-cream-3);
}

.foe-hero__popular a {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--foe-brown-line);
    color: var(--foe-cream);
    text-decoration: none;
}

.foe-hero__popular a:hover {
    color: var(--foe-gold-light);
    border-color: var(--foe-gold);
}

.foe-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    font-size: 15px;
    color: var(--foe-cream-3);
}

.foe-hero__stats strong {
    font-family: var(--foe-font-display);
    font-size: 22px;
    color: var(--foe-cream);
    font-weight: 700;
}

.foe-hero__aside {
    flex: 1 1 340px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.foe-hero-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--foe-radius);
    overflow: hidden;
    background: #fff;
    color: var(--foe-text);
    text-decoration: none;
}

.foe-hero-card:hover {
    color: var(--foe-text);
}

.foe-hero-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--foe-brown-card);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.foe-hero-card__title {
    display: block;
    padding: 16px 16px 6px;
    font-family: var(--foe-font-display);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.25;
    color: var(--foe-heading);
}

.foe-hero-card__more {
    display: block;
    padding: 0 16px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--foe-link);
}

.foe-hero-card--outline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: 1px solid var(--foe-brown-line);
    color: var(--foe-cream);
}

.foe-hero-card--outline:hover {
    color: var(--foe-cream);
    border-color: var(--foe-gold);
}

.foe-hero-card__outline-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.foe-hero-card__outline-title {
    font-weight: 600;
    font-size: 16px;
}

.foe-hero-card__outline-sub {
    font-size: 14px;
    color: var(--foe-cream-3);
}

.foe-hero-card__arrow {
    font-size: 20px;
    color: var(--foe-gold-light);
}

.foe-card__head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    font-family: var(--foe-font-body);
}

.foe-card__head-link {
    font-size: 14px;
    color: #ffe7c7;
    text-decoration: none;
    font-weight: 600;
}

.foe-card__head-link:hover {
    color: #fff;
}

/* —— Home sections —— */
.foe-home-section {
    max-width: var(--foe-container);
    margin: 0 auto;
    padding: 64px var(--foe-gutter) 0;
}

.foe-home-section--last {
    padding-bottom: 0;
}

.foe-home-section--embedded {
    max-width: none;
    margin: 0 0 36px;
    padding: 0;
}

.foe-home-section__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px 16px;
    margin-bottom: 22px;
}

.foe-home-section__title {
    margin: 0;
    font-family: var(--foe-font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: var(--foe-heading);
}

.foe-home-section__lead {
    margin: 6px 0 0;
    font-size: 17px;
    color: var(--foe-muted);
}

.foe-home-section__intro {
    max-width: 680px;
}

.foe-home-section__link {
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 0;
}

.foe-home-note {
    padding: 8px 12px;
    border-radius: var(--foe-radius-sm);
    background: var(--foe-goldlvl-bg);
    color: #5c4300;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.foe-home-note:hover {
    color: #3d2e00;
}

.foe-home-changelog__body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.foe-home-changelog__day {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.foe-home-changelog__day+.foe-home-changelog__day {
    padding-top: 16px;
    border-top: 1px solid var(--foe-divider);
}

.foe-home-changelog__day.is-collapsed {
    display: none;
}

body.show-more-changes .foe-home-changelog__day.is-collapsed,
body.show-all-changes .foe-home-changelog__day.is-collapsed {
    display: flex;
}

.foe-home-changelog__date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--foe-heading);
}

.foe-home-changelog__item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: var(--foe-text);
    font-size: 16px;
    text-decoration: none;
}

.foe-home-changelog__item:hover {
    color: var(--foe-link-hover);
}

.foe-explore {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.foe-explore-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--foe-radius);
    overflow: hidden;
    box-shadow: var(--foe-shadow);
    text-decoration: none;
    color: var(--foe-text);
}

.foe-explore-card:hover {
    color: var(--foe-text);
}

.foe-explore-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--foe-brown-card);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.foe-explore-card--grave .foe-explore-card__head {
    background: var(--foe-grey);
}

.foe-explore-card--grave .foe-pill {
    color: var(--foe-grey);
}

.foe-explore-card__body {
    padding: 14px;
    font-size: 15px;
    line-height: 1.5;
}

.foe-tiers {
    padding: 4px 28px;
}

.foe-tiers__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 20px 0;
}

.foe-tiers__row+.foe-tiers__row {
    border-top: 1px solid var(--foe-divider);
}

.foe-tiers__label {
    flex: 0 0 140px;
}

.foe-tiers__badge {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: var(--foe-radius-xs);
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.foe-tiers__badge--fantastisk {
    background: var(--foe-green);
}

.foe-tiers__badge--god {
    background: var(--foe-blue);
}

.foe-tiers__badge--tjae {
    background: var(--foe-yellow);
    color: #3d2e00;
}

.foe-tiers__badge--nej {
    background: var(--foe-grey);
}

.foe-tiers__chips {
    flex: 999 1 400px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.foe-tier-chip {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.foe-tier-chip--fantastisk {
    background: var(--foe-tier-fantastisk-bg);
    color: var(--foe-tier-fantastisk-fg);
}

.foe-tier-chip--god {
    background: var(--foe-tier-god-bg);
    color: var(--foe-tier-god-fg);
}

.foe-tier-chip--tjae {
    background: var(--foe-tier-tjae-bg);
    color: var(--foe-tier-tjae-fg);
}

.foe-tier-chip--muted {
    padding: 5px 11px;
    border: 1px solid var(--foe-border);
    color: var(--foe-muted);
    font-size: 14px;
}

.foe-footer--home .foe-footer__home {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    padding-top: 44px;
    padding-bottom: 36px;
}

.foe-footer__about {
    flex: 1 1 360px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 440px;
    font-size: 15px;
    line-height: 1.55;
}

.foe-footer__about p {
    margin: 0;
}

.foe-footer__motto {
    font-style: italic;
    color: var(--foe-gold-light);
}

.foe-footer__cow-note {
    font-size: 13px;
    color: var(--foe-cream-3);
}

.foe-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.foe-footer__col {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 15px;
    min-width: 140px;
}

.foe-footer__col strong {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--foe-gold-light);
}

.foe-footer__col a {
    color: var(--foe-cream);
    text-decoration: none;
}

.foe-footer__col a:hover {
    color: var(--foe-gold-light);
}

.foe-main--split {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

.foe-main__primary {
    flex: 999 1 560px;
    min-width: 0;
}

.foe-main__aside {
    flex: 1 1 300px;
    min-width: 0;
    position: sticky;
    top: 16px;
    align-self: flex-start;
    max-height: calc(100vh - 32px);
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
}

.foe-qi-filter__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
}

.foe-qi-filter__list button {
    appearance: none;
    border: 1px solid var(--foe-border);
    background: var(--foe-bg);
    color: var(--foe-text);
    border-radius: var(--foe-radius-sm);
    padding: 8px 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    line-height: 1.3;
}

.foe-qi-filter__list button:hover {
    border-color: var(--foe-brown-line);
    background: var(--foe-tag-bg);
}

.foe-qi-filter__list button.is-active {
    background: var(--foe-brown-card);
    border-color: var(--foe-brown-card);
    color: #fff;
}

.qi-paren {
    opacity: 0.55;
    font-size: 0.85em;
}

@media (max-width: 900px) {
    .foe-main__aside {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

.foe-page-title {
    margin: 0 0 0.6em;
    font-family: var(--foe-font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
    color: var(--foe-heading);
}

.foe-prose {
    font-size: 18px;
    line-height: 1.7;
    color: var(--foe-text);
}

.foe-prose>*:first-child {
    margin-top: 0;
}

.foe-prose>*:last-child {
    margin-bottom: 0;
}

.foe-prose p {
    margin: 0 0 1em;
}

.foe-prose__lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--foe-heading);
}

.foe-prose h2 {
    margin: 1.4em 0 0.5em;
    font-family: var(--foe-font-display);
    font-weight: 700;
    font-size: 24px;
    color: var(--foe-heading);
}

.foe-prose h3 {
    margin: 1.2em 0 0.4em;
    font-size: 1.15rem;
    color: var(--foe-heading);
}

.foe-prose img {
    display: block;
    border-radius: var(--foe-radius-xs);
    margin: 0.5em 0 1em;
}

.foe-prose ul,
.foe-prose ol {
    margin: 0 0 1em;
    padding-left: 1.3em;
}

.foe-prose li+li {
    margin-top: 0.35em;
}

.foe-prose blockquote {
    margin: 1em 0;
    padding: 14px 18px;
    border-left: 3px solid var(--foe-gold);
    background: var(--foe-tag-bg);
    color: var(--foe-heading);
    border-radius: 0 var(--foe-radius-xs) var(--foe-radius-xs) 0;
}

.foe-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 17px;
    margin: 1em 0;
    border: 1px solid var(--foe-border);
    border-radius: var(--foe-radius);
    overflow: hidden;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.foe-prose thead,
.foe-prose tbody,
.foe-prose tr {
    width: 100%;
}

.foe-prose thead th,
.foe-prose tr:first-child th {
    background: var(--foe-brown-card);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    padding: 11px 18px;
}

.foe-prose td,
.foe-prose th {
    padding: 13px 18px;
    border-top: 1px solid var(--foe-border);
    vertical-align: top;
}

.foe-prose tr:first-child th {
    border-top: 0;
}

/* Reusable dark fact box: <div class="foe-fact"><strong>21</strong><span>/ 49</span><p>…</p></div> */
.foe-fact {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin: 1.2em 0;
    padding: 24px 28px;
    border-radius: var(--foe-radius);
    background: var(--foe-ink);
    color: var(--foe-cream);
}

.foe-fact__num,
.foe-fact>strong:first-child {
    font-family: var(--foe-font-display);
    font-weight: 700;
    font-size: 54px;
    line-height: 1;
    color: var(--foe-gold-light);
}

.foe-fact__den {
    font-family: var(--foe-font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--foe-cream-3);
}

.foe-fact p {
    margin: 0;
    flex: 1 1 300px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--foe-cream-2);
}

.foe-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--foe-radius-xs);
    font-weight: 600;
    font-size: 13px;
}

.foe-chip--copper {
    background: var(--foe-copper-bg);
    color: var(--foe-copper-fg);
}

.foe-chip--gold {
    background: var(--foe-goldlvl-bg);
    color: var(--foe-goldlvl-fg);
}

.foe-prose .best,
.foe-article__title .best,
.foe-badge--fantastisk {
    background: var(--foe-green);
    color: #fff;
}

.foe-prose .good,
.foe-article__title .good,
.foe-badge--god {
    background: var(--foe-blue);
    color: #fff;
}

.foe-prose .meh,
.foe-article__title .meh,
.foe-badge--tjae {
    background: var(--foe-yellow);
    color: #3d2e00;
}

.foe-prose .nope,
.foe-article__title .nope,
.foe-badge--nej {
    background: var(--foe-grey);
    color: #fff;
}

.foe-prose .best,
.foe-prose .good,
.foe-prose .meh,
.foe-prose .nope,
.foe-article__title .best,
.foe-article__title .good,
.foe-article__title .meh,
.foe-article__title .nope {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--foe-radius-xs);
    font-family: var(--foe-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* —— Cards / lists (shared foundation) —— */
.foe-card {
    background: var(--foe-surface);
    border-radius: var(--foe-radius);
    box-shadow: var(--foe-shadow);
    overflow: hidden;
}

.foe-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    background: var(--foe-brown-card);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.foe-card__head--grey {
    background: var(--foe-grey);
}

.foe-pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    background: #fff;
    color: var(--foe-brown-card);
    font-size: 12px;
    font-weight: 700;
}

.foe-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: var(--foe-radius-xs);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.foe-badge--added {
    background: var(--foe-purple);
    color: #fff;
}

.foe-badge--changed {
    background: var(--foe-yellow);
    color: #3d2e00;
}

.foe-badge--deleted {
    background: var(--foe-grey);
    color: #fff;
}

.foe-badge--count {
    background: var(--foe-green);
    color: #fff;
}

.btn-green,
.foe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--foe-radius-sm);
    background: var(--foe-green);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn-green:hover,
.foe-btn:hover {
    color: #fff;
    filter: brightness(1.05);
}

.btn-white,
.foe-btn--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid var(--foe-border);
    border-radius: var(--foe-radius-sm);
    background: var(--foe-surface);
    color: var(--foe-text);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

/* —— Legacy content adapters (until page-type phases) —— */
.guide-intro {
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--foe-text);
}

.guide-block,
.guide-box,
.guide-article,
.guide-related {
    background: var(--foe-surface);
    border-radius: var(--foe-radius);
    box-shadow: var(--foe-shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.guide-block>h2,
.guide-box>h2,
.guide-related>h2 {
    margin: 0;
    padding: 12px 20px;
    background: var(--foe-brown-card);
    color: #fff;
    font-family: var(--foe-font-body);
    font-size: 17px;
    font-weight: 600;
}

.guide-box--grave>h2 {
    background: var(--foe-grey);
}

.guide-box--grave .guide-box__count {
    color: var(--foe-grey);
}

.foe-hero-search input:focus-visible {
    outline: 2px solid var(--foe-gold);
    outline-offset: 2px;
}

.foe-muted {
    color: var(--foe-muted);
    font-size: 14px;
}

.guide-box>h2 a,
.guide-related>h2 a {
    color: #fff;
    text-decoration: none;
}

.guide-box__count {
    float: right;
    padding: 1px 8px;
    border-radius: 999px;
    background: #fff;
    color: var(--foe-brown-card);
    font-size: 12px;
    font-weight: 700;
}

.guide-index,
.guide-related ul,
.changelog ul {
    margin: 0;
    padding: 12px 20px 20px;
    list-style: none;
}

.guide-index li,
.guide-related li {
    padding: 8px 0;
    border-top: 1px solid var(--foe-divider);
}

.guide-index li:first-child,
.guide-related li:first-child {
    border-top: 0;
}

.guide-home-index {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* —— Category page —— */
/* —— Breaking news (SB category) —— */
.foe-breaking {
    margin: 0 0 22px;
}

.foe-breaking__card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "label title more"
        "label text more";
    gap: 2px 18px;
    align-items: center;
    padding: 16px 18px;
    background: var(--foe-ink);
    color: var(--foe-cream);
    border-radius: var(--foe-radius);
    border-left: 4px solid var(--foe-gold);
    text-decoration: none;
    box-shadow: var(--foe-shadow);
    transition: background 0.15s ease, transform 0.15s ease;
}

.foe-breaking__card:hover {
    background: #352014;
    color: var(--foe-cream);
    transform: translateY(-1px);
}

.foe-breaking__label {
    grid-area: label;
    align-self: start;
    margin-top: 2px;
    padding: 4px 8px;
    border-radius: var(--foe-radius-xs);
    background: var(--foe-gold);
    color: var(--foe-ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.foe-breaking__title {
    grid-area: title;
    font-family: var(--foe-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--foe-cream);
}

.foe-breaking__text {
    grid-area: text;
    color: var(--foe-cream-2);
    font-size: 0.95rem;
    line-height: 1.4;
}

.foe-breaking__more {
    grid-area: more;
    justify-self: end;
    color: var(--foe-gold-light);
    font-weight: 600;
    white-space: nowrap;
}

.foe-breaking__card:hover .foe-breaking__more {
    color: var(--foe-gold);
}

@media (max-width: 720px) {
    .foe-breaking__card {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "label title"
            "text text"
            "more more";
    }

    .foe-breaking__more {
        justify-self: start;
        margin-top: 4px;
    }
}

.foe-article--solo {
    max-width: 820px;
}

.foe-article--solo .foe-prose {
    font-size: 17px;
}

.foe-cat__heading {
    margin: 8px 0 18px;
    font-family: var(--foe-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--foe-heading);
}

.foe-cat {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 820px;
}

.foe-topics {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 820px;
}

.foe-topics__cat.foe-card {
    overflow: hidden;
}

.foe-topics__cat .foe-card__head h2 a {
    color: inherit;
    text-decoration: none;
}

.foe-topics__cat .foe-card__head h2 a:hover {
    color: #ffe7c7;
}

.foe-topics__head-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.foe-topics__body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--foe-tag-bg);
}

.foe-topics__intro {
    margin: 0;
    color: var(--foe-muted);
    font-size: 15px;
    line-height: 1.45;
}

.foe-topics__cards {
    max-width: none;
    gap: 14px;
}

.foe-topics__cards .foe-cat-card {
    box-shadow: none;
    border: 1px solid var(--foe-border);
}

.foe-topics__cards .foe-cat-card:hover {
    border-color: var(--foe-cream-3);
}

.foe-cat__search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--foe-surface);
    border: 1px solid var(--foe-border);
    border-radius: var(--foe-radius-sm);
    padding: 0 14px;
    height: 46px;
    max-width: 480px;
    width: 100%;
}

.foe-cat__search input {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 16px;
    color: var(--foe-text);
    outline: none;
    width: 100%;
    min-width: 0;
}

.foe-cat-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.foe-cat-group__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--foe-border);
}

.foe-cat-group__head h2 {
    margin: 0;
    font-family: var(--foe-font-display);
    font-weight: 700;
    font-size: clamp(1.35rem, 2.5vw, 1.625rem);
    color: var(--foe-heading);
}

.foe-cat-group__count {
    font-size: 14px;
    color: var(--foe-muted);
    white-space: nowrap;
}

.foe-banner__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.foe-banner__title-row h1 {
    margin: 0;
}

.foe-banner__copy {
    margin-left: 0;
    border-color: rgba(255, 244, 230, 0.28);
    background: rgba(255, 244, 230, 0.08);
    color: var(--foe-cream);
}

.foe-banner__copy:hover {
    border-color: var(--foe-gold);
    color: var(--foe-gold-light);
    background: rgba(255, 244, 230, 0.14);
}

.foe-cat-card {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    background: var(--foe-surface);
    border-radius: var(--foe-radius);
    box-shadow: var(--foe-shadow);
    text-decoration: none;
    color: var(--foe-text);
}

.foe-cat-card:hover {
    color: var(--foe-text);
}

.foe-cat-card:hover .foe-cat-card__title {
    color: var(--foe-link-hover);
}

.foe-cat-card__num {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--foe-brown-card);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foe-cat-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.foe-cat-card__title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: var(--foe-heading);
}

.foe-cat-card__title .best,
.foe-cat-card__title .good,
.foe-cat-card__title .meh,
.foe-cat-card__title .nope {
    margin-left: 6px;
}

.foe-cat-card__excerpt {
    font-size: 16px;
    line-height: 1.5;
    color: var(--foe-muted);
}

.foe-cat-card__more {
    font-size: 15px;
    font-weight: 600;
    color: var(--foe-link);
}

.foe-cat-empty {
    padding: 44px 24px;
    border: 1px dashed var(--foe-cream-3);
    border-radius: var(--foe-radius);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.foe-cat-empty[hidden] {
    display: none !important;
}

.foe-cat-empty__cow {
    width: 180px;
    height: 150px;
}

.foe-cat-empty__title {
    font-weight: 700;
    font-size: 18px;
    color: var(--foe-heading);
}

.foe-cat-empty__hint {
    font-size: 15px;
    color: var(--foe-muted);
}

.guide-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* —— Article page —— */
.foe-article {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--foe-surface);
    border-radius: var(--foe-radius);
    box-shadow: var(--foe-shadow);
    padding: 44px 52px;
}

.foe-article__tag {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: var(--foe-radius-xs);
    background: var(--foe-tag-bg);
    color: var(--foe-brown);
    font-size: 13px;
    font-weight: 600;
}

.foe-article__title {
    margin: 0;
    font-family: var(--foe-font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    line-height: 1.15;
    color: var(--foe-heading);
}

.foe-article__byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    font-size: 15px;
    color: var(--foe-muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--foe-divider);
}

.foe-article__author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.foe-article__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--foe-brown);
    color: var(--foe-gold-light);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.foe-article__author-name {
    color: var(--foe-heading);
    font-weight: 600;
}

.foe-article__copy {
    margin-left: auto;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--foe-radius-sm);
    border: 1px solid var(--foe-border);
    background: var(--foe-surface);
    color: var(--foe-text);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.foe-article__copy:hover {
    border-color: var(--foe-brown-card);
    color: var(--foe-heading);
}

.foe-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--foe-divider);
}

.foe-pager__prev,
.foe-pager__next {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: var(--foe-radius);
    text-decoration: none;
}

.foe-pager__prev {
    border: 1px solid var(--foe-border);
    color: var(--foe-text);
    background: var(--foe-surface);
}

.foe-pager__prev:hover {
    border-color: var(--foe-brown-card);
    color: var(--foe-heading);
}

.foe-pager__next {
    background: var(--foe-green);
    color: #fff;
    text-align: right;
}

.foe-pager__next:hover {
    color: #fff;
    filter: brightness(1.05);
}

.foe-pager__label {
    font-size: 13px;
    color: var(--foe-muted);
}

.foe-pager__next .foe-pager__label {
    color: #e2f2ea;
}

.foe-pager__title {
    font-weight: 600;
    font-size: 16px;
    color: var(--foe-heading);
}

.foe-pager__next .foe-pager__title {
    color: #fff;
}

.foe-pager__spacer {
    flex: 1 1 240px;
}

.foe-related__list {
    padding: 8px;
    display: flex;
    flex-direction: column;
}

.foe-related__item {
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--foe-radius-sm);
    color: var(--foe-text);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.35;
}

.foe-related__item:hover {
    background: var(--foe-divider);
    color: var(--foe-heading);
}

.foe-related__item.is-current {
    background: var(--foe-tag-bg);
    color: var(--foe-heading);
    font-weight: 600;
}

.foe-related__num {
    flex: none;
    width: 20px;
    color: var(--foe-faint);
}

.foe-related__item.is-current .foe-related__num {
    color: var(--foe-link);
}

.foe-related__all {
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

/* Legacy leftovers still used on home/category until later phases */
.guide-article {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 36px 40px;
}

.date-widget {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    margin: 0 0 16px;
    padding: 8px 10px;
    border-radius: var(--foe-radius-sm);
    background: var(--foe-tag-bg);
    color: var(--foe-brown);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.date-widget .day {
    font-family: var(--foe-font-display);
    font-size: 22px;
    color: var(--foe-heading);
}

.guide-search-results {
    background: var(--foe-surface);
    border-radius: var(--foe-radius);
    box-shadow: var(--foe-shadow);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.guide-search-results[hidden] {
    display: none !important;
}

.changelog {
    margin: 0;
}

.changelog dt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    margin: 16px 0 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--foe-heading);
}

.changelog dt:first-of-type {
    margin-top: 16px;
}

.changelog .good,
.changelog .best,
.changelog .meh,
.changelog .nope {
    display: inline-flex;
    padding: 1px 7px;
    border-radius: var(--foe-radius-xs);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.changelog .good {
    background: var(--foe-green);
    color: #fff;
}

.changelog .best {
    background: var(--foe-purple);
    color: #fff;
}

.changelog .meh {
    background: var(--foe-yellow);
    color: #3d2e00;
}

.changelog .nope {
    background: var(--foe-grey);
    color: #fff;
}

.changelog dd {
    margin: 0;
}

.changelog li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 6px 0;
    font-size: 16px;
    border-top: 1px solid var(--foe-divider);
}

.changelog li:first-child {
    border-top: 0;
}

.hideChanges {
    display: none;
}

.changelog.is-expanded .hideChanges,
body.show-more-changes .hideChanges,
body.show-all-changes .hideChanges {
    display: revert;
}

body.show-more-changes .hideChanges:nth-of-type(n + 8),
body.show-more-changes dd.hideChanges:nth-of-type(n + 8) {
    display: none;
}

body.show-all-changes .hideChanges {
    display: revert;
}

.showMoreChanges,
.showAllChanges {
    margin: 0 20px 20px 0;
}

.showMoreChanges+.showAllChanges {
    margin-left: 12px;
}

/* —— Footer —— */
.foe-footer {
    position: relative;
    z-index: 1;
    background: var(--foe-brown);
    color: var(--foe-cream-2);
}

.foe-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    padding-bottom: 28px;
    font-size: 14px;
}

.foe-footer__brand {
    font-family: var(--foe-font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--foe-cream);
    text-decoration: none;
}

.foe-footer__brand span {
    color: var(--foe-gold-light);
}

.foe-footer a {
    color: var(--foe-cream-2);
}

.foe-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 48px;
    width: 100%;
    margin-bottom: 8px;
}

.cow-perch {
    position: relative;
    width: 100%;
    max-width: var(--foe-container);
    margin: 0 auto;
    height: 0;
    z-index: 2;
    overflow: visible;
    pointer-events: none;
}

.cow-perch foe-ko {
    position: absolute;
    top: -70px;
    width: 96px;
    height: 70px;
    z-index: 2;
    pointer-events: auto;
}

.cow-perch--right foe-ko {
    right: max(56px, var(--foe-gutter) + 32px);
}

.cow-perch--left foe-ko {
    left: max(56px, var(--foe-gutter) + 32px);
}

@media (max-width: 720px) {
    .foe-article {
        padding: 28px 18px;
    }

    .foe-article__copy {
        margin-left: 0;
        width: 100%;
    }

    .foe-article__title {
        font-size: 1.7rem;
    }

    .foe-banner--slim .foe-banner__inner {
        padding-top: 14px;
    }
}

@media (max-width: 600px) {
    .guide-article {
        padding: 24px 18px;
    }

    .cow-perch--right foe-ko,
    .cow-perch--left foe-ko {
        right: max(72px, env(safe-area-inset-right, 0px) + 48px);
        left: auto;
    }
}

/* ── Gucca-style vertical timeline (FOE Tidslinie) ── */
.foe-timeline {
    --tl-brand: var(--foe-gold);
    --tl-brand-ink: var(--foe-ink);
    --tl-line: var(--foe-border);
    --tl-card: var(--foe-surface);
    --tl-gap: 48px;
    --tl-cardgap: clamp(12px, 2vh, 28px);
    --tl-marker: 88px;
    --tl-radius: 12px;
    --tl-shadow: 0 6px 24px rgba(42, 26, 14, 0.08);
    margin: 28px 0 8px;
    isolation: isolate;
}

.foe-timeline__banner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px;
    font-family: var(--foe-font-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 2vw + 0.6rem, 2rem);
    letter-spacing: 0.04em;
    color: var(--foe-brown);
}

.foe-timeline__banner--end {
    margin: 20px 0 0;
}

.foe-timeline__section {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    align-items: start;
    min-height: 40vh;
}

.foe-timeline__track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--tl-line);
    pointer-events: none;
    z-index: 0;
    --progress: 0%;
}

.foe-timeline__track::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: var(--progress);
    background: var(--tl-brand);
    transition: height 120ms linear;
}

.foe-timeline__highlight {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: var(--tl-marker);
    background: var(--tl-brand);
    border-radius: 999px;
    filter: drop-shadow(0 0 0.35rem color-mix(in oklab, var(--tl-brand), transparent 45%));
    opacity: 0;
    transition: opacity 160ms ease;
    z-index: 1;
    pointer-events: none;
}

.foe-timeline__list {
    position: relative;
    grid-column: 1 / span 2;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: var(--tl-cardgap);
    margin: 0;
    padding: 28px 0 8px;
    list-style: none;
}

.foe-timeline__item {
    position: relative;
    z-index: 1;
    scroll-margin-top: 72px;
}

.foe-timeline__card {
    width: calc(50% - var(--tl-gap) / 2);
    background: var(--tl-card);
    border: 1px solid var(--tl-line);
    border-radius: var(--tl-radius);
    box-shadow: var(--tl-shadow);
    overflow: hidden;
    opacity: 0.82;
    transform: translateY(0);
    transition:
        opacity 200ms ease,
        transform 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.foe-timeline__item:nth-child(odd) .foe-timeline__card {
    margin-right: auto;
}

.foe-timeline__item:nth-child(even) .foe-timeline__card {
    margin-left: auto;
}

.foe-timeline__item::before {
    content: "";
    position: absolute;
    top: 28px;
    height: 2px;
    background: var(--tl-line);
    transition: background-color 160ms ease;
}

.foe-timeline__item::after {
    content: "";
    position: absolute;
    top: 22px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--tl-line);
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.foe-timeline__item:nth-child(odd)::before {
    left: 50%;
    transform: translateX(-100%);
    width: calc(var(--tl-gap) / 2);
}

.foe-timeline__item:nth-child(odd)::after {
    left: calc(50% - 7px);
}

.foe-timeline__item:nth-child(even)::before {
    left: 50%;
    width: calc(var(--tl-gap) / 2);
}

.foe-timeline__item:nth-child(even)::after {
    left: calc(50% - 7px);
}

.foe-timeline__item[aria-current="step"]::before,
.foe-timeline__item[aria-current="step"]::after {
    background: var(--tl-brand);
}

.foe-timeline__item[aria-current="step"]::after {
    box-shadow: 0 0 0 6px color-mix(in oklab, var(--tl-brand), transparent 75%);
}

.foe-timeline__item[aria-current="step"] .foe-timeline__card {
    opacity: 1;
    border-color: color-mix(in oklab, var(--tl-brand), var(--tl-line) 35%);
    box-shadow: 0 14px 36px color-mix(in oklab, var(--tl-brand), transparent 78%);
    transform: translateY(-2px);
}

.foe-timeline__card-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    padding: 14px 16px 0;
}

.foe-timeline__year {
    font-family: var(--foe-font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: var(--foe-heading);
    transition:
        color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.foe-timeline__item[aria-current="step"] .foe-timeline__year {
    background: var(--tl-brand);
    color: var(--tl-brand-ink);
    padding: 2px 10px;
    border-radius: 999px;
    box-shadow: 0 0 0 6px color-mix(in oklab, var(--tl-brand), transparent 78%);
    transform: translateY(-2px) scale(1.04);
}

.foe-timeline__card-body {
    padding: 8px 16px 16px;
}

.foe-timeline__card-body h3 {
    margin: 0 0 6px;
    font-family: var(--foe-font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--foe-heading);
    line-height: 1.3;
}

.foe-timeline__card-body p {
    margin: 0;
    line-height: 1.55;
    color: var(--foe-text);
    font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {

    .foe-timeline__track::before,
    .foe-timeline__highlight,
    .foe-timeline__card,
    .foe-timeline__year {
        transition: none;
    }
}

@media (max-width: 768px) {
    .foe-timeline {
        --tl-gap: 20px;
        --tl-cardgap: clamp(20px, 6vh, 48px);
        --tl-marker: 72px;
    }

    .foe-timeline__track {
        left: 16px;
        transform: none;
    }

    .foe-timeline__highlight {
        left: 16px;
        transform: none;
    }

    .foe-timeline__card {
        width: calc(100% - 48px);
        margin-left: 40px !important;
        margin-right: 0 !important;
    }

    .foe-timeline__item::before {
        left: 16px;
        width: 24px;
        transform: none;
    }

    .foe-timeline__item::after,
    .foe-timeline__item:nth-child(odd)::after,
    .foe-timeline__item:nth-child(even)::after {
        left: 10px;
    }
}

/* ── Cash Cow landing ── */
.foe-cashcow {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 12px 0 56px;
}

.foe-cashcow__top {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
    align-items: stretch;
}

.foe-cashcow__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 28px 24px 36px;
    background:
        radial-gradient(ellipse 70% 55% at 50% 18%, rgba(201, 150, 63, 0.22), transparent 70%),
        linear-gradient(180deg, #fff 0%, var(--foe-tag-bg) 100%);
    border: 1px solid var(--foe-border);
    border-radius: 16px;
    box-shadow: var(--foe-shadow);
}

.foe-cashcow__cow {
    width: min(320px, 72vw);
    height: min(270px, 60vw);
    margin: 8px 0 4px;
}

.foe-cashcow__title {
    margin: 0;
    font-family: var(--foe-font-display);
    font-size: clamp(1.8rem, 3vw + 0.6rem, 2.6rem);
    color: var(--foe-heading);
    letter-spacing: 0.02em;
}

.foe-cashcow__lead {
    margin: 0;
    max-width: 34ch;
    color: var(--foe-muted);
    line-height: 1.5;
}

.foe-cashcow__play {
    margin-top: 8px;
    min-width: 12rem;
}

.foe-cashcow__scores {
    background: var(--foe-surface);
    border: 1px solid var(--foe-border);
    border-radius: 16px;
    padding: 22px 24px 16px;
    box-shadow: var(--foe-shadow);
}

.foe-cashcow__scores h2 {
    margin: 0 0 4px;
    font-family: var(--foe-font-display);
    font-size: 1.35rem;
    color: var(--foe-heading);
}

.foe-cashcow__scores-meta {
    margin: 0 0 16px;
    font-size: 0.92rem;
    color: var(--foe-faint);
}

.foe-cashcow__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.foe-cashcow__list li {
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    gap: 10px;
    align-items: baseline;
    padding: 10px 0;
    border-top: 1px solid var(--foe-divider);
    font-size: 0.98rem;
}

.foe-cashcow__list li:nth-child(-n+2) {
    border-top: 0;
    padding-top: 0;
}

.foe-cashcow__rank {
    font-weight: 700;
    color: var(--foe-faint);
    font-variant-numeric: tabular-nums;
}

.foe-cashcow__name {
    font-weight: 600;
    color: var(--foe-heading);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.foe-cashcow__score {
    font-weight: 700;
    color: var(--foe-link);
    font-variant-numeric: tabular-nums;
}

.foe-cashcow__empty {
    margin: 8px 0 18px;
    color: var(--foe-muted);
}

/* Lexicon / textbook definition */
.foe-cashcow__lexicon {
    position: relative;
    height: 100%;
    padding: 28px 32px 24px;
    background:
        linear-gradient(180deg, #faf8f4 0%, #f3efe6 100%);
    border: 1px solid #c9b896;
    border-radius: 4px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.65),
        0 1px 0 rgba(80, 60, 20, 0.06),
        var(--foe-shadow);
    color: #2c261c;
}

.foe-cashcow__lexicon::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    background: linear-gradient(180deg, #8b6914, #c9a63a 45%, #8b6914);
    border-radius: 0 2px 2px 0;
}

.foe-cashcow__lexicon-head {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #d4c8a8;
}

.foe-cashcow__lexicon-eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7a6a48;
}

.foe-cashcow__lexicon-term {
    margin: 0 0 4px;
    font-family: var(--foe-font-display);
    font-size: clamp(1.55rem, 2vw + 0.8rem, 2rem);
    font-style: italic;
    font-weight: 700;
    color: #1a1510;
    letter-spacing: 0.01em;
}

.foe-cashcow__lexicon-meta {
    margin: 0;
    font-size: 0.92rem;
    color: #5c5343;
}

.foe-cashcow__phonetic {
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
    font-size: 0.88em;
}

.foe-cashcow__pos {
    font-style: italic;
}

.foe-cashcow__field {
    color: #7a6a48;
}

.foe-cashcow__senses {
    margin: 0 0 20px;
    padding: 0 0 0 1.35rem;
    list-style: decimal;
}

.foe-cashcow__senses li {
    padding-left: 0.35rem;
}

.foe-cashcow__senses li+li {
    margin-top: 0.85em;
}

.foe-cashcow__senses p {
    margin: 0;
    max-width: 68ch;
    line-height: 1.65;
    font-size: 1.02rem;
}

.foe-cashcow__senses em {
    font-style: italic;
    color: #1a1510;
}

.foe-cashcow__example {
    margin: 0 0 18px;
    padding: 16px 18px 14px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid #d4c8a8;
    border-radius: 2px;
}

.foe-cashcow__example figcaption {
    margin: 0 0 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a6a48;
}

.foe-cashcow__example blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.foe-cashcow__example blockquote p {
    margin: 0;
    max-width: 62ch;
    font-family: var(--foe-font-display);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.55;
    color: #1a1510;
}

.foe-cashcow__example cite {
    font-style: italic;
    font-weight: 600;
}

.foe-cashcow__lexicon-foot {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid #d4c8a8;
}

.foe-cashcow__lexicon-foot p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #7a6a48;
}

.foe-cashcow__lexicon-foot em,
.foe-cashcow__lexicon-foot i {
    font-style: italic;
}

@media (max-width: 860px) {
    .foe-cashcow__top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .foe-cashcow__list {
        grid-template-columns: 1fr;
    }

    .foe-cashcow__list li:nth-child(-n+2) {
        border-top: 1px solid var(--foe-divider);
        padding-top: 10px;
    }

    .foe-cashcow__list li:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .foe-cashcow__lexicon {
        padding: 22px 20px 18px 22px;
    }
}