/*
 * FCT editorial redesign foundation.
 * Tokens now live in brand-tokens.css. This file contains component primitives.
 */

.ffn-ed-body {
    background: var(--ffn-ed-bg);
    color: var(--ffn-ed-text);
    font-family: var(--ffn-ed-font-sans);
}

.ffn-ed-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 46%), var(--ffn-ed-bg);
}

.ffn-ed-bloom {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    mix-blend-mode: multiply;
    animation: ffn-ed-drift 20s infinite alternate ease-in-out;
}

.ffn-ed-bloom[data-bloom="1"] {
    top: -10%;
    left: 12%;
    width: 56vw;
    height: 56vw;
    background: radial-gradient(circle, rgba(41, 98, 255, 0.75) 0%, transparent 70%);
    animation-delay: -5s;
}

.ffn-ed-bloom[data-bloom="2"] {
    bottom: -22%;
    right: 8%;
    width: 66vw;
    height: 66vw;
    background: radial-gradient(circle, rgba(165, 180, 252, 0.8) 0%, transparent 70%);
    opacity: 0.11;
}

.ffn-ed-bloom[data-bloom="3"] {
    top: 38%;
    left: -10%;
    width: 42vw;
    height: 42vw;
    background: radial-gradient(circle, rgba(203, 213, 225, 0.92) 0%, transparent 70%);
    animation-duration: 25s;
}

@keyframes ffn-ed-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 10%) scale(1.1);
    }
}

.ffn-ed-page {
    position: relative;
    z-index: 1;
    max-width: var(--ffn-ed-max-width);
    margin: 0 auto;
    padding: 6rem 5rem 5rem;
}

.ffn-ed-main-offset {
    padding-top: clamp(6.5rem, 10vw, 8rem);
}

.ffn-ed-skip-link {
    position: fixed;
    left: 1rem;
    top: 0;
    transform: translateY(calc(-100% - 1rem));
    z-index: 90;
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    background: var(--ffn-ed-surface-strong);
    color: var(--ffn-ed-text);
    font-weight: 800;
    text-decoration: none;
    opacity: 0;
    box-shadow: var(--ffn-ed-shadow-soft);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ffn-ed-skip-link:focus,
.ffn-ed-skip-link:focus-visible {
    transform: translateY(1rem);
    opacity: 1;
    outline: 3px solid rgba(0, 87, 255, 0.35);
    outline-offset: 3px;
}

.ffn-ed-shell,
.ffn-ed-shell *,
.ffn-ed-shell *::before,
.ffn-ed-shell *::after,
.ffn-ed-footer,
.ffn-ed-footer *,
.ffn-ed-footer *::before,
.ffn-ed-footer *::after {
    box-sizing: border-box;
}

.ffn-ed-shell {
    position: relative;
    z-index: 60;
}

.ffn-ed-header {
    max-width: var(--ffn-ed-max-width);
    margin: 0 auto;
    padding: 1.25rem 2rem 0;
}

.ffn-ed-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.75rem;
}

.ffn-ed-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
}

.ffn-ed-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(6rem, 11vw, 8.5rem);
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ffn-ed-brand-mark img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.ffn-ed-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ffn-ed-brand-kicker {
    color: var(--ffn-ed-text-soft);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ffn-ed-brand-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ffn-ed-nav,
.ffn-ed-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ffn-ed-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.ffn-ed-actions {
    position: relative;
    flex-shrink: 0;
}

.ffn-ed-dropdown {
    position: relative;
}

.ffn-ed-nav-link,
.ffn-ed-button,
.ffn-ed-auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    min-height: var(--ffn-action-height, 2.9rem);
    padding: 0 var(--ffn-action-padding-x, 1rem);
    border-radius: var(--ffn-ed-radius-pill);
    border: 1px solid var(--ffn-ed-border);
    background: #ffffff;
    color: var(--ffn-ed-text-muted);
    font-family: var(--ffn-ed-font-sans, var(--font-body));
    font-size: var(--ffn-action-font-size, 0.78rem);
    font-weight: var(--ffn-action-font-weight, 700);
    letter-spacing: var(--ffn-action-letter-spacing, 0.08em);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ffn-ed-nav-link:hover,
.ffn-ed-button:hover,
.ffn-ed-auth-link:hover,
.ffn-ed-nav-link[aria-current="page"] {
    transform: translateY(-2px);
    color: var(--ffn-ed-text);
    background: #f8fafc;
    border-color: rgba(0, 87, 255, 0.22);
}

.ffn-ed-button.is-primary,
.ffn-ed-auth-link.is-primary {
    color: #ffffff;
    background: var(--ffn-ed-accent);
    border-color: transparent;
    box-shadow: 0 18px 48px rgba(0, 87, 255, 0.22);
}

.ffn-ed-button.is-primary:hover,
.ffn-ed-auth-link.is-primary:hover {
    color: #ffffff;
    background: #0047d5;
}

.ffn-ed-nav-link.is-toggle {
    cursor: pointer;
    font-family: var(--ffn-ed-font-sans, var(--font-body));
    font-size: var(--ffn-action-font-size, 0.78rem);
    font-weight: var(--ffn-action-font-weight, 700);
    letter-spacing: var(--ffn-action-letter-spacing, 0.08em);
    text-transform: uppercase;
    gap: 0.35rem;
}

.ffn-ed-nav-chevron {
    width: 0.9rem;
    height: 0.9rem;
    transition: transform 0.2s ease;
}

.ffn-ed-dropdown.is-open .ffn-ed-nav-chevron {
    transform: rotate(180deg);
}

.ffn-ed-dropdown-panel {
    position: absolute;
    top: calc(100% + 0.9rem);
    left: 0;
    width: min(20rem, 72vw);
    padding: 1rem;
    border-radius: 1.3rem;
    border: 1px solid var(--ffn-ed-border-strong);
    background: #ffffff;
    box-shadow: var(--ffn-ed-shadow-card);
}

.ffn-ed-dropdown-panel[hidden] {
    display: none;
}

.ffn-ed-dropdown-panel.is-tools {
    left: 50%;
    width: min(64rem, calc(100vw - 5rem));
    max-height: calc(100vh - 7rem);
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateX(-50%);
}

.ffn-ed-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.ffn-ed-dropdown-section {
    display: grid;
    gap: 0.6rem;
    align-content: start;
    padding: 0.95rem;
    border: 1px solid var(--ffn-ed-border);
    border-radius: 1.15rem;
    background: var(--ffn-ed-surface);
}

.ffn-ed-dropdown-section.is-featured {
    grid-column: 1 / -1;
}

.ffn-ed-dropdown-section.is-featured .ffn-ed-dropdown-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ffn-ed-dropdown-panel.is-tools .ffn-ed-dropdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ffn-ed-dropdown-panel.is-tools .ffn-ed-dropdown-section {
    gap: 0.45rem;
    padding: 0.8rem;
    border-radius: 1rem;
}

.ffn-ed-dropdown-panel.is-tools .ffn-ed-dropdown-section.is-featured {
    grid-column: auto;
}

.ffn-ed-dropdown-panel.is-tools .ffn-ed-dropdown-section.is-featured .ffn-ed-dropdown-links {
    grid-template-columns: 1fr;
}

.ffn-ed-dropdown-panel.is-tools .ffn-ed-dropdown-heading {
    margin-bottom: 0.25rem;
}

.ffn-ed-dropdown-panel.is-tools .ffn-ed-dropdown-link {
    min-height: 2.35rem;
    padding: 0.25rem 0.7rem;
}

.ffn-ed-dropdown-heading {
    margin-bottom: 0.55rem;
    color: var(--ffn-ed-text-soft);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ffn-ed-dropdown-links,
.ffn-ed-mobile-link-list {
    display: grid;
    gap: 0.5rem;
}

.ffn-ed-dropdown-link {
    display: flex;
    align-items: center;
    min-height: 2.8rem;
    padding: 0.35rem 0.85rem;
    border-radius: 0.95rem;
    color: var(--ffn-ed-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.ffn-ed-dropdown-link:hover,
.ffn-ed-dropdown-link[aria-current="page"] {
    background: rgba(0, 87, 255, 0.06);
    color: var(--ffn-ed-text);
}

.ffn-ed-dropdown-link:focus-visible {
    outline: 2px solid rgba(0, 87, 255, 0.3);
    outline-offset: 2px;
    background: rgba(0, 87, 255, 0.06);
    color: var(--ffn-ed-text);
}

.ffn-ed-dropdown-hint {
    margin-top: 0.9rem;
    color: var(--ffn-ed-text-soft);
    font-size: 0.72rem;
    line-height: 1.6;
}

.ffn-ed-week-search {
    display: grid;
    gap: 0.55rem;
}

.ffn-ed-week-label {
    color: var(--ffn-ed-text-soft);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ffn-ed-week-input {
    width: 100%;
    min-height: 3rem;
    padding: 0 0.95rem;
    border-radius: 1rem;
    border: 1px solid var(--ffn-ed-border);
    background: var(--ffn-ed-surface);
    color: var(--ffn-ed-text);
    font: inherit;
    font-size: 0.92rem;
}

.ffn-ed-week-input:focus {
    outline: none;
    border-color: rgba(0, 87, 255, 0.38);
    box-shadow: 0 0 0 0.24rem rgba(0, 87, 255, 0.1);
}

.ffn-ed-week-feedback {
    min-height: 1rem;
    color: #b42318;
    font-size: 0.74rem;
    font-weight: 600;
}

.ffn-ed-week-feedback:empty {
    display: none;
}

.ffn-ed-week-suggestions {
    display: grid;
    gap: 0.45rem;
}

.ffn-ed-week-suggestions[hidden] {
    display: none;
}

.ffn-ed-week-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    background: var(--ffn-ed-surface);
    color: var(--ffn-ed-text);
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.ffn-ed-week-option:hover {
    border-color: rgba(0, 87, 255, 0.18);
    background: rgba(0, 87, 255, 0.06);
}

.ffn-ed-week-option:focus-visible {
    outline: 2px solid rgba(0, 87, 255, 0.3);
    outline-offset: 2px;
    border-color: rgba(0, 87, 255, 0.18);
    background: rgba(0, 87, 255, 0.06);
}

.ffn-ed-week-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.3rem;
    height: 2rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: rgba(0, 87, 255, 0.1);
    color: var(--ffn-ed-accent);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.7rem;
    font-weight: 800;
}

.ffn-ed-week-option-copy {
    display: grid;
    gap: 0.16rem;
}

.ffn-ed-week-option-copy strong {
    font-size: 0.84rem;
    letter-spacing: -0.01em;
}

.ffn-ed-week-option-copy small {
    color: var(--ffn-ed-text-soft);
    font-size: 0.74rem;
}

.ffn-ed-profile {
    position: relative;
}

.ffn-ed-profile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: var(--ffn-action-height, 2.9rem);
    padding: 0 0.8rem 0 0.35rem;
    border-radius: var(--ffn-ed-radius-pill);
    border: 1px solid var(--ffn-ed-border);
    background: var(--ffn-ed-surface);
    color: var(--ffn-ed-text);
    cursor: pointer;
    font: inherit;
    font-size: var(--ffn-action-font-size, 0.78rem);
    font-weight: var(--ffn-action-font-weight, 700);
    letter-spacing: var(--ffn-action-letter-spacing, 0.08em);
    text-transform: uppercase;
    box-shadow: var(--ffn-ed-shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ffn-ed-profile-toggle:hover,
.ffn-ed-profile.is-open .ffn-ed-profile-toggle {
    transform: translateY(-2px);
    border-color: rgba(0, 87, 255, 0.22);
    background: var(--ffn-ed-surface-strong);
}

.ffn-ed-profile-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0057ff, #3b82f6);
    color: #ffffff;
    font-size: 0.78rem;
    box-shadow: 0 12px 28px rgba(0, 87, 255, 0.2);
}

.ffn-ed-profile-label {
    white-space: nowrap;
}

.ffn-ed-profile-menu {
    position: absolute;
    top: calc(100% + 0.9rem);
    right: 0;
    min-width: 15rem;
    padding: 0.75rem;
    border-radius: 1.25rem;
    border: 1px solid var(--ffn-ed-border-strong);
    background: #ffffff;
    box-shadow: var(--ffn-ed-shadow-card);
}

.ffn-ed-profile-summary {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.3rem 0.75rem;
    border-bottom: 1px solid var(--ffn-ed-border);
}

.ffn-ed-profile-summary-name {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ffn-ed-profile-summary-email {
    margin-top: 0.25rem;
    color: var(--ffn-ed-text-soft);
    font-size: 0.82rem;
}

.ffn-ed-profile-link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    min-height: 2.8rem;
    padding: 0 0.85rem;
    border: 0;
    border-radius: 0.9rem;
    background: transparent;
    color: var(--ffn-ed-text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.ffn-ed-profile-link:hover {
    background: rgba(0, 87, 255, 0.06);
    color: var(--ffn-ed-text);
}

.ffn-ed-profile-link.is-danger {
    color: #b42318;
}

.ffn-ed-profile-link.is-danger:hover {
    background: rgba(180, 35, 24, 0.08);
    color: #8f1f13;
}

.ffn-ed-mobile-toggle {
    display: none;
}

.ffn-ed-mobile-panel {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1.3rem;
    border: 1px solid var(--ffn-ed-border-strong);
    background: #ffffff;
    box-shadow: var(--ffn-ed-shadow-soft);
    max-height: calc(100vh - 8rem);
    overflow: auto;
}

.ffn-ed-mobile-panel.is-open {
    display: grid;
    gap: 0.75rem;
}

.ffn-ed-mobile-panel-head {
    display: none;
}

.ffn-ed-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.2rem 0.15rem 0.85rem;
    color: inherit;
    text-decoration: none;
}

.ffn-ed-mobile-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    flex: 0 0 auto;
}

.ffn-ed-mobile-brand-mark img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.ffn-ed-mobile-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.12rem;
}

.ffn-ed-mobile-brand-copy span {
    color: var(--ffn-ed-text-soft);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ffn-ed-mobile-brand-copy strong {
    color: var(--ffn-ed-text);
    font-size: 0.92rem;
    line-height: 1.15;
}

.ffn-ed-mobile-panel .ffn-ed-nav-link,
.ffn-ed-mobile-panel .ffn-ed-button,
.ffn-ed-mobile-panel .ffn-ed-auth-link {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
}

/* Keep the top mobile CTA trio compact and aligned in a single professional row. */
.ffn-ed-mobile-panel > .ffn-ed-mobile-primary-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    align-items: stretch;
}

.ffn-ed-mobile-panel > .ffn-ed-mobile-primary-actions > .ffn-ed-button,
.ffn-ed-mobile-panel > .ffn-ed-mobile-primary-actions > .ffn-ed-auth-link {
    width: 100%;
    min-height: var(--ffn-action-mobile-height, 44px);
    justify-content: center;
    padding-inline: 0.55rem;
    text-align: center;
    white-space: nowrap;
    font-size: var(--ffn-action-small-font-size, 0.72rem);
    letter-spacing: 0.06em;
    line-height: 1.15;
}

.ffn-ed-mobile-panel .ffn-ed-dropdown-link {
    padding: 0.5rem 1rem;
    min-height: 3rem;
}

.ffn-ed-mobile-section {
    display: grid;
    gap: 0.55rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--ffn-ed-border);
}

.ffn-ed-mobile-section-title {
    color: var(--ffn-ed-text-soft);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ffn-ed-mobile-auth {
    display: grid;
    gap: 0.6rem;
    padding-top: 0.2rem;
    border-top: 1px solid var(--ffn-ed-border);
}

.ffn-ed-mobile-account {
    display: grid;
    gap: 0.75rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--ffn-ed-border);
}

.ffn-ed-mobile-account-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.3rem 0.15rem 0.2rem;
}

.ffn-ed-mobile-account-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0057ff, #3b82f6);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(0, 87, 255, 0.2);
}

.ffn-ed-mobile-account-copy {
    min-width: 0;
}

.ffn-ed-mobile-account-name {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ffn-ed-mobile-account-email {
    color: var(--ffn-ed-text-soft);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.ffn-ed-grid {
    display: grid;
    gap: 1.5rem;
}

.ffn-ed-grid.is-two-column {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 4rem;
}

.ffn-ed-hero {
    position: relative;
    min-height: 26rem;
    padding: 1rem 0 0.5rem;
}

.ffn-ed-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.45rem 0.7rem;
    border-radius: var(--ffn-ed-radius-pill);
    border: 1px solid var(--ffn-ed-border);
    background: var(--ffn-ed-surface);
    color: var(--ffn-ed-text-muted);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ffn-ed-kicker::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--ffn-ed-accent);
    box-shadow: 0 0 0 0.2rem rgba(0, 87, 255, 0.14);
}

.ffn-ed-panel,
.ffn-ed-card {
    border-radius: var(--ffn-ed-radius-card);
    background: var(--ffn-ed-surface);
    border: 1px solid var(--ffn-ed-border-strong);
    box-shadow: var(--ffn-ed-shadow-card);
}

.ffn-ed-panel {
    padding: 1.6rem 1.4rem;
}

.ffn-ed-card {
    padding: 1.25rem;
}

.ffn-ed-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.6rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ffn-ed-border);
    color: var(--ffn-ed-text-muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ffn-ed-story-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ffn-ed-story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    color: var(--ffn-ed-text-soft);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ffn-ed-story-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.45rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(0, 87, 255, 0.24);
    color: var(--ffn-ed-accent);
    font-size: 0.62rem;
    font-weight: 800;
}

.ffn-ed-table {
    width: 100%;
    border-collapse: collapse;
}

.ffn-ed-table th,
.ffn-ed-table td {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(7, 16, 31, 0.05);
    text-align: left;
}

.ffn-ed-table th {
    color: var(--ffn-ed-text-soft);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ffn-ed-table td.is-mono,
.ffn-ed-table th.is-mono {
    font-family: var(--ffn-ed-font-mono);
}

.ffn-ed-article-shell {
    max-width: 56rem;
    margin: 0 auto;
}

.ffn-ed-article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ffn-ed-border);
}

.ffn-ed-article-title {
    margin: 0.6rem 0 1rem;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.ffn-ed-article-content {
    color: var(--ffn-ed-text-muted);
    font-size: 1.06rem;
    line-height: 1.8;
}

.ffn-ed-article-content h2,
.ffn-ed-article-content h3 {
    color: var(--ffn-ed-text);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

#footer {
    position: relative;
    z-index: 2;
}

.ffn-ed-footer {
    max-width: var(--ffn-ed-max-width);
    margin: 0 auto;
    padding: 2rem;
}

.ffn-ed-footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1.5fr 0.7fr;
    gap: 2rem;
    padding: 2rem;
    border-radius: var(--ffn-ed-radius-card);
    border: 1px solid var(--ffn-ed-border-strong);
    background: #ffffff;
    box-shadow: var(--ffn-ed-shadow-soft);
}

.ffn-ed-footer-heading {
    margin-bottom: 0.8rem;
    color: var(--ffn-ed-text-soft);
    font-family: var(--ffn-ed-font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ffn-ed-footer-list {
    display: grid;
    gap: 0.55rem;
}

.ffn-ed-footer-copy {
    margin: 0;
    color: var(--ffn-ed-text-muted);
    line-height: 1.65;
    max-width: 34ch;
}

.ffn-ed-footer-list a {
    color: var(--ffn-ed-text-muted);
    text-decoration: none;
}

.ffn-ed-footer-list a:hover {
    color: var(--ffn-ed-text);
}

.ffn-ed-footer-list a {
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.15s ease;
}

.ffn-ed-footer-legal {
    margin-top: 1.5rem;
    padding-top: 0;
    text-align: center;
    color: var(--ffn-ed-text-soft);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

@media (max-width: 1400px) and (min-width: 1101px) {
    .ffn-ed-header {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .ffn-ed-header-inner {
        gap: 0.65rem;
    }

    .ffn-ed-brand-copy {
        display: none;
    }

    .ffn-ed-brand-mark {
        width: 6rem;
    }

    .ffn-ed-nav,
    .ffn-ed-actions {
        gap: 0.45rem;
    }

    .ffn-ed-nav-link,
    .ffn-ed-button,
    .ffn-ed-auth-link,
    .ffn-ed-profile-toggle {
        min-height: 2.65rem;
        padding-left: 0.55rem;
        padding-right: 0.55rem;
        font-size: 0.68rem;
    }
}

@media (max-width: 1100px) {
    .ffn-ed-header-inner {
        gap: 0.75rem;
    }

    .ffn-ed-nav,
    .ffn-ed-actions {
        gap: 0.5rem;
    }

    .ffn-ed-nav-link,
    .ffn-ed-button,
    .ffn-ed-auth-link,
    .ffn-ed-profile-toggle {
        min-height: 2.7rem;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
        font-size: 0.7rem;
    }

    .ffn-ed-brand-copy {
        display: none;
    }

    .ffn-ed-page {
        padding: 5rem 2.5rem 4rem;
    }

    .ffn-ed-grid.is-two-column,
    .ffn-ed-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .ffn-ed-grid.is-two-column {
        gap: 2.5rem;
    }
}

@media (max-width: 1100px) {
    .ffn-ed-header {
        padding: 1rem 1rem 0;
    }

    .ffn-ed-page {
        padding: 4.5rem 1.25rem 3rem;
    }

    .ffn-ed-nav,
    .ffn-ed-actions {
        display: none;
    }

    .ffn-ed-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 0.5rem;
        border: none;
        background: transparent;
        color: var(--ffn-ed-text);
        box-shadow: none;
        cursor: pointer;
    }

    .ffn-ed-grid.is-two-column,
    .ffn-ed-footer-inner {
        grid-template-columns: 1fr;
    }

    .ffn-ed-hero {
        min-height: auto;
    }

    .ffn-ed-brand-copy {
        display: none;
    }

    .ffn-ed-brand-mark {
        width: clamp(5.5rem, 28vw, 7rem);
    }

    .ffn-ed-mobile-panel {
        max-height: calc(100vh - 6rem);
    }

    .ffn-ed-mobile-panel-head {
        display: flex;
        border-bottom: 1px solid var(--ffn-ed-border);
    }

    html {
        overscroll-behavior-x: none;
    }

    .ffn-ed-bloom {
        animation: none;
        filter: blur(80px);
    }
}

@media (max-width: 640px) {
    .ffn-ed-page {
        padding: 3.5rem 0.75rem 2rem;
    }

    .ffn-ed-header {
        padding: 0.75rem 0.75rem 0;
    }

    .ffn-ed-header-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.5rem;
    }

    .ffn-ed-brand {
        grid-column: 1;
        justify-self: start;
    }

    .ffn-ed-mobile-controls {
        grid-column: 3;
        justify-self: end;
    }

    .ffn-ed-footer-inner {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .ffn-ed-footer {
        padding: 1.15rem 0.75rem 1.35rem;
    }

    .ffn-ed-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 0.8rem;
        padding: 1rem;
        border-radius: 1.15rem;
    }

    .ffn-ed-footer-inner > section:first-child {
        grid-column: 1 / -1;
        padding-bottom: 0.9rem;
        border-bottom: 1px solid var(--ffn-ed-border);
    }

    .ffn-ed-footer-inner > section:nth-child(3) {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .ffn-ed-footer-inner > section:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }

    .ffn-ed-footer-heading {
        margin-bottom: 0.45rem;
        font-size: 0.66rem;
        letter-spacing: 0.08em;
    }

    .ffn-ed-footer-copy {
        max-width: none;
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .ffn-ed-footer-list {
        gap: 0.12rem;
    }

    .ffn-ed-footer-inner > section:nth-child(3) .ffn-ed-footer-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 0.75rem;
    }

    .ffn-ed-footer .ffn-ed-footer-list a {
        min-height: 2.3rem;
        font-size: 0.82rem;
        line-height: 1.15;
    }

    .ffn-ed-footer-legal {
        margin-top: 0.75rem;
        font-size: 0.68rem;
        line-height: 1.35;
    }

    .ffn-ed-panel {
        padding: 1.2rem 1rem;
    }

    .ffn-ed-card {
        padding: 1rem;
    }

    .ffn-ed-brand,
    .ffn-ed-nav-link,
    .ffn-ed-button,
    .ffn-ed-auth-link,
    .ffn-ed-profile-toggle,
    .ffn-ed-profile-link,
    .ffn-ed-mobile-toggle,
    .ffn-ed-mobile-panel .ffn-ed-dropdown-link {
        min-height: 44px;
    }

    .ffn-ed-nav-link,
    .ffn-ed-button,
    .ffn-ed-auth-link,
    .ffn-ed-profile-toggle,
    .ffn-ed-profile-link {
        font-size: 0.76rem;
        line-height: 1.1;
    }

    .ffn-ed-footer a,
    .ffn-article-link-list a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ffn-ed-bloom,
    .ffn-ed-nav-link,
    .ffn-ed-button,
    .ffn-ed-auth-link,
    .ffn-ed-profile-toggle,
    .ffn-ed-profile-link {
        animation: none !important;
        transition: none !important;
    }
}
