:root {
    --fb-bg: #ffffff;
    --fb-surface: #ffffff;
    --fb-soft: #f6f5fb;
    --fb-soft-2: #f2efff;
    --fb-text: #0a0a0c;
    --fb-muted: #66666f;
    --fb-line: #e8e8ed;
    --fb-accent: #635bff;
    --fb-accent-hover: #4f46e5;
    --fb-dark: #0b0b0f;
    --fb-shell: 1300px;
    --fb-reading: 900px;
    --fb-radius: 18px;
    --fb-shadow: 0 18px 50px rgba(28, 24, 65, 0.08);
    --fb-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
    color-scheme: light;
}

html[data-fb-theme="dark"] {
    --fb-bg: #0c0c0f;
    --fb-surface: #141419;
    --fb-soft: #18181f;
    --fb-soft-2: #1e1930;
    --fb-text: #f5f5f7;
    --fb-muted: #aaaab4;
    --fb-line: #292930;
    --fb-dark: #050506;
    --fb-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--fb-bg);
    color: var(--fb-text);
    font-family: var(--fb-font);
    font-size: 17px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select,
h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.main-navigation,
.widget-title {
    font-family: var(--fb-font) !important;
}

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

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

a {
    color: inherit;
}

.fb-shell {
    width: min(calc(100% - 48px), var(--fb-shell));
    margin-inline: auto;
}

.fb-site-main {
    min-height: 55vh;
}

.fb-kicker {
    margin: 0 0 13px;
    color: var(--fb-accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 23px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.fb-button:hover {
    transform: translateY(-2px);
}

.fb-button--primary {
    background: #0a0a0c;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(10, 10, 12, 0.18);
}

.fb-button--primary:hover {
    background: #25252a;
    color: #ffffff;
}

.fb-text-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding-inline: 4px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

html[data-fb-theme="dark"] .fb-button--primary,
html[data-fb-theme="dark"] .fb-search-panel .search-submit,
html[data-fb-theme="dark"] .fb-load-more,
html[data-fb-theme="dark"] .fb-next-step-button,
html[data-fb-theme="dark"] .fb-back-to-top {
    border-color: #303036;
    background: #050506;
    color: #ffffff;
}

html[data-fb-theme="dark"] .fb-button--primary:hover,
html[data-fb-theme="dark"] .fb-search-panel .search-submit:hover,
html[data-fb-theme="dark"] .fb-load-more:hover,
html[data-fb-theme="dark"] .fb-next-step-button:hover {
    background: #242429;
    color: #ffffff;
}

/* Header */
.fb-site-header {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid var(--fb-line);
    background: color-mix(in srgb, var(--fb-bg) 96%, transparent);
}

.fb-header-inner {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 76px;
    gap: 20px;
}

.fb-header-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.fb-header-brand .custom-logo-link,
.fb-footer-brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.fb-header-brand .custom-logo {
    width: auto;
    max-width: 210px;
    max-height: 46px;
}

.fb-footer-brand .custom-logo {
    width: auto;
    max-width: 190px;
    max-height: 48px;
}

.fb-wordmark {
    display: inline-flex;
    align-items: baseline;
    color: var(--fb-text);
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.065em;
    text-decoration: none;
    font-style: italic;
}

.fb-wordmark strong {
    color: var(--fb-accent);
    font-weight: 900;
}

.fb-icon-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--fb-text);
    cursor: pointer;
}

.fb-icon-button:hover {
    background: var(--fb-soft);
}

.fb-menu-toggle {
    align-content: center;
    gap: 4px;
}

.fb-menu-toggle span {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.fb-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.fb-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.fb-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.fb-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fb-icon-button svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fb-theme-icon--sun {
    display: none;
}

html[data-fb-theme="dark"] .fb-theme-icon--moon {
    display: none;
}

html[data-fb-theme="dark"] .fb-theme-icon--sun {
    display: block;
}

.fb-menu-panel,
.fb-search-panel {
    border-top: 1px solid var(--fb-line);
    background: var(--fb-bg);
}

.fb-menu-panel-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 70px;
    padding-block: 46px 54px;
}

.fb-nav-list,
.fb-nav-list ul,
.fb-footer-list,
.fb-footer-legal-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fb-nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 40px;
}

.fb-nav-list a {
    display: inline-block;
    padding-block: 5px;
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.fb-nav-list a:hover,
.fb-menu-categories a:hover {
    color: var(--fb-accent);
}

.fb-menu-categories {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 24px;
    border-radius: var(--fb-radius);
    background: var(--fb-soft);
}

.fb-menu-categories p {
    margin: 0 0 8px;
    color: var(--fb-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fb-menu-categories a {
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.fb-search-panel-inner {
    padding-block: 24px;
}

.fb-search-panel .search-form {
    display: flex;
    gap: 10px;
}

.fb-search-panel .search-field {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid var(--fb-line);
    border-radius: 12px;
    background: var(--fb-surface);
    color: var(--fb-text);
    font-size: 17px;
}

.fb-search-panel .search-submit {
    min-width: 110px;
    border: 0;
    border-radius: 12px;
    background: #0a0a0c;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.fb-search-panel .search-submit:hover {
    background: #25252a;
}

/* Homepage hero */
.fb-home-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background-color: #f3f0ec;
    background-image: var(--fb-hero-image);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.fb-home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0.05) 48%, transparent 72%);
}

html[data-fb-theme="dark"] .fb-home-hero::after {
    background: linear-gradient(90deg, rgba(8,8,10,0.78) 0%, rgba(8,8,10,0.38) 48%, rgba(8,8,10,0.08) 78%);
}

.fb-home-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 430px;
}

.fb-home-hero-copy {
    width: min(600px, 52%);
    padding-block: 58px;
}

.fb-home-hero h1 {
    margin: 0;
    max-width: 700px;
    color: #08080a;
    font-size: clamp(48px, 5.1vw, 74px);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.065em;
}

html[data-fb-theme="dark"] .fb-home-hero h1,
html[data-fb-theme="dark"] .fb-home-hero-subtitle {
    color: #ffffff;
}

.fb-home-hero-subtitle {
    margin: 24px 0 0;
    color: #18181c;
    font-size: 20px;
    font-style: italic;
    line-height: 1.4;
}

.fb-home-hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
}

.fb-category-bar {
    border-bottom: 1px solid var(--fb-line);
    background: var(--fb-bg);
}

.fb-category-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 72px;
}

.fb-category-bar-inner > span {
    color: var(--fb-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fb-category-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 30px;
}

.fb-category-links a {
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.fb-category-links a:hover {
    color: var(--fb-accent);
}

.fb-latest-section {
    padding-block: 78px 100px;
}

.fb-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 30px;
}

.fb-section-heading h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.055em;
}

.fb-section-heading h2 span {
    color: var(--fb-accent);
}

.fb-home-content--with-sponsor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
    gap: 48px;
}

.fb-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
}

.fb-home-content--with-sponsor .fb-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fb-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--fb-line);
    border-radius: 16px;
    background: var(--fb-surface);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.fb-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--fb-accent) 35%, var(--fb-line));
    box-shadow: var(--fb-shadow);
}

.fb-card-media {
    display: block;
    height: 205px;
    overflow: hidden;
    background: var(--fb-soft);
}

.fb-card-media img,
.fb-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.fb-card:hover .fb-card-media img {
    transform: scale(1.025);
}

.fb-image-placeholder {
    background: linear-gradient(135deg, var(--fb-soft-2), var(--fb-soft));
}

.fb-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 22px 20px;
}

.fb-pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    margin-bottom: 13px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--fb-soft-2);
    color: var(--fb-accent);
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.075em;
    text-decoration: none;
    text-transform: uppercase;
}

.fb-card h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.fb-card h3 a {
    text-decoration: none;
}

.fb-card h3 a:hover {
    color: var(--fb-accent);
}

.fb-card-content > p {
    margin: 13px 0 22px;
    color: var(--fb-muted);
    font-size: 15px;
    line-height: 1.55;
}

.fb-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid var(--fb-line);
}

.fb-card-footer time {
    color: var(--fb-muted);
    font-size: 12px;
}

.fb-card-link {
    color: var(--fb-text);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.fb-card-link:hover {
    color: var(--fb-accent);
}

.fb-sponsor-card {
    position: sticky;
    top: 24px;
}

.fb-sponsor-card > span {
    display: block;
    margin-bottom: 12px;
    color: var(--fb-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fb-sponsor-card img {
    display: block;
    width: 100%;
    border-radius: 12px;
}

.fb-empty-state {
    max-width: 720px;
    padding: 52px;
    border: 1px solid var(--fb-line);
    border-radius: 22px;
    background: var(--fb-soft);
}

.fb-empty-state h2,
.fb-empty-state h3 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.fb-empty-state p:not(.fb-kicker) {
    margin: 0 0 24px;
    color: var(--fb-muted);
}

/* Archive */
.fb-archive-header {
    padding-block: 78px 40px;
    border-bottom: 1px solid var(--fb-line);
}

.fb-archive-header h1 {
    margin: 0;
    font-size: clamp(50px, 7vw, 94px);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.fb-archive-description {
    max-width: 680px;
    margin-top: 22px;
    color: var(--fb-muted);
    font-size: 18px;
}

.fb-archive-feed {
    padding-block: 54px 100px;
}

.fb-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.fb-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 160px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--fb-line);
    border-radius: 999px;
    background: var(--fb-surface);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.fb-load-more {
    border-color: #0a0a0c;
    background: #0a0a0c;
    color: #ffffff;
}

.fb-load-more:hover,
.fb-load-more.is-loading {
    border-color: #25252a;
    background: #25252a;
    color: #ffffff;
}

/* Single discovery */
.fb-discovery-page {
    width: min(calc(100% - 48px), var(--fb-reading));
    margin-inline: auto;
    padding-block: 68px 110px;
}

.fb-single-discovery {
    width: 100%;
}

.fb-discovery-header {
    margin-bottom: 28px;
}

.fb-discovery-header h1 {
    margin: 0 0 14px;
    font-size: clamp(46px, 6vw, 72px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.fb-discovery-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--fb-muted);
    font-size: 14px;
}

.fb-editorial-intro {
    max-width: 760px;
    margin-top: 24px;
    color: var(--fb-muted);
    font-size: 22px;
    font-weight: 550;
    line-height: 1.45;
    letter-spacing: -0.015em;
}

.fb-editorial-intro p {
    margin: 0;
}

.fb-discovery-image {
    margin: 0 0 34px;
}

.fb-discovery-image img {
    display: block;
    width: 100%;
    border-radius: 18px;
}

.fb-panel {
    margin: 30px 0;
    padding: 28px;
    border: 1px solid var(--fb-line);
    border-radius: 18px;
    background: var(--fb-soft);
}

.fb-panel-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fb-panel-heading > span {
    color: #f2b800;
    font-size: 20px;
}

.fb-panel h2 {
    margin: 0 0 10px;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.fb-panel p {
    margin: 0 0 12px;
}

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

.fb-tldr {
    border-color: #ded8ff;
    background: #f4f1ff;
}

html[data-fb-theme="dark"] .fb-tldr {
    border-color: #3b315f;
    background: #1d1930;
}

.fb-disclosures {
    display: grid;
    gap: 10px;
    margin: 22px 0 36px;
}

.fb-disclosure-box {
    padding: 14px 17px;
    border: 1px solid #e8dfb4;
    border-radius: 13px;
    background: #fffbea;
    color: #27230f;
    font-size: 13px;
    line-height: 1.55;
}

html[data-fb-theme="dark"] .fb-disclosure-box {
    border-color: #4b4320;
    background: #201d10;
    color: #e9dfb2;
}

.fb-discovery-content {
    margin-top: 38px;
    color: var(--fb-text);
    font-size: 19px;
    line-height: 1.75;
}

.fb-discovery-content > * {
    max-width: 100%;
}

.fb-discovery-content p,
.fb-discovery-content ul,
.fb-discovery-content ol {
    margin-top: 0;
    margin-bottom: 25px;
}

.fb-discovery-content h2 {
    margin: 52px 0 17px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.fb-discovery-content h3 {
    margin: 38px 0 13px;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.fb-discovery-content blockquote {
    margin: 38px 0;
    padding: 28px 32px;
    border-left: 5px solid var(--fb-text);
    background: var(--fb-soft);
    font-size: 24px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.fb-discovery-content a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.fb-our-take {
    background: var(--fb-surface);
}

.fb-next-step-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 42px 0 24px;
    padding: 28px 30px;
    border: 1px solid var(--fb-line);
    border-radius: 18px;
    background: var(--fb-soft);
}

.fb-next-step-content {
    flex: 1;
}

.fb-next-step-label {
    margin: 0 0 9px;
    color: var(--fb-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fb-next-step-card h2 {
    margin: 0 0 7px;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.fb-next-step-card p:not(.fb-next-step-label) {
    max-width: 560px;
    margin: 0 0 5px;
    color: var(--fb-muted);
    font-size: 15px;
}

.fb-next-step-content > span {
    color: var(--fb-muted);
    font-size: 12px;
}

.fb-next-step-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 45px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--fb-text);
    color: var(--fb-bg);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.fb-next-step-button:hover {
    background: #25252a;
    color: #fff;
}

.fb-share-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--fb-line);
}

.fb-share-row > span {
    margin-right: 5px;
    color: var(--fb-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fb-share-row a {
    padding: 7px 12px;
    border: 1px solid var(--fb-line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.fb-share-row a:hover {
    border-color: var(--fb-accent);
    color: var(--fb-accent);
}

/* Pages */
.fb-page-article {
    width: min(calc(100% - 48px), 980px);
    padding-block: 72px 100px;
}

.fb-page-header h1 {
    margin: 0 0 38px;
    font-size: clamp(48px, 7vw, 84px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.fb-page-content {
    font-size: 18px;
    line-height: 1.72;
}

.fb-page-content h2 {
    margin: 48px 0 16px;
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.fb-get-featured-page {
    overflow: hidden;
}

.fb-get-featured-content {
    width: 100%;
}

.fb-get-featured-content > * {
    width: min(calc(100% - 48px), var(--fb-shell));
    margin-left: auto;
    margin-right: auto;
}

.fb-get-featured-content > .alignfull,
.fb-get-featured-content > .gb-container.alignfull,
.fb-get-featured-content > .wp-block-group.alignfull {
    width: 100%;
    max-width: none;
}

.fb-get-featured-content .wp-block-group,
.fb-get-featured-content .gb-container {
    border-radius: 0;
}

.fb-get-featured-content h1,
.fb-get-featured-content h2,
.fb-get-featured-content h3 {
    color: var(--fb-text);
    font-weight: 900;
    letter-spacing: -0.045em;
}

.fb-get-featured-content h1 {
    font-size: clamp(48px, 6vw, 76px);
    line-height: 0.98;
}

.fb-get-featured-content h2 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
}

.fb-get-featured-content .wp-block-columns,
.fb-get-featured-content .gb-grid-wrapper {
    gap: 24px;
}

.fb-get-featured-content .wp-block-column,
.fb-get-featured-content .gb-grid-column {
    min-width: 0;
}

/* Footer */
.fb-site-footer {
    border-top: 1px solid var(--fb-line);
    background: var(--fb-bg);
}

.fb-footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    gap: 80px;
    padding-block: 62px 54px;
}

.fb-footer-brand p {
    max-width: 360px;
    margin: 20px 0 0;
    color: var(--fb-muted);
    font-size: 14px;
    line-height: 1.55;
}

.fb-footer-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.fb-footer-column h2 {
    margin: 0 0 13px;
    color: var(--fb-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fb-footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fb-footer-column li + li {
    margin-top: 7px;
}

.fb-footer-column a {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.fb-footer-column a:hover {
    color: var(--fb-accent);
}

.fb-footer-bottom {
    background: #050506;
    color: #ffffff;
}

.fb-footer-bottom-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-height: 42px;
    font-size: 10px;
}

.fb-footer-bottom p {
    margin: 0;
    white-space: nowrap;
}

.fb-network-links,
.fb-legal-links,
.fb-footer-legal-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 12px;
}

.fb-network-links {
    justify-content: center;
}

.fb-legal-links,
.fb-footer-legal-list {
    justify-content: flex-end;
}

.fb-footer-bottom a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fb-back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0a0a0c;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(10, 10, 12, 0.22);
}

/* 404 */
.fb-not-found-inner {
    padding-block: 110px 140px;
}

.fb-not-found-number {
    margin: 0;
    color: var(--fb-soft-2);
    font-size: clamp(130px, 23vw, 330px);
    font-weight: 900;
    line-height: 0.68;
    letter-spacing: -0.09em;
}

.fb-not-found h1 {
    max-width: 750px;
    margin: 0 0 18px;
    font-size: clamp(48px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.fb-not-found-inner > p:not(.fb-not-found-number):not(.fb-kicker) {
    margin: 0 0 28px;
    color: var(--fb-muted);
    font-size: 18px;
}

/* Accessibility */
.fb-skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    display: block;
    padding: 10px 14px;
    background: #000;
    color: #fff;
}

@media (max-width: 1180px) {
    .fb-home-content--with-sponsor {
        grid-template-columns: 1fr;
    }

    .fb-sponsor-card {
        position: static;
        width: min(280px, 100%);
    }

    .fb-footer-bottom-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 8px;
        padding-block: 12px;
        text-align: center;
    }

    .fb-legal-links,
    .fb-footer-legal-list {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .fb-shell,
    .fb-page-article {
        width: min(calc(100% - 36px), var(--fb-shell));
    }

    .fb-menu-panel-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .fb-card-grid,
    .fb-home-content--with-sponsor .fb-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fb-home-hero {
        min-height: 470px;
        background-position: 62% center;
    }

    .fb-home-hero-inner {
        min-height: 470px;
    }

    .fb-home-hero-copy {
        width: 68%;
    }

    .fb-category-bar-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 18px;
    }

    .fb-footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .fb-header-inner {
        min-height: 66px;
        gap: 10px;
    }

    .fb-header-brand .custom-logo {
        max-width: 160px;
        max-height: 38px;
    }

    .fb-wordmark {
        font-size: 31px;
    }

    .fb-icon-button {
        width: 38px;
        height: 38px;
    }

    .fb-nav-list {
        grid-template-columns: 1fr;
    }

    .fb-nav-list a {
        font-size: 30px;
    }

    .fb-search-panel .search-form {
        flex-direction: column;
    }

    .fb-search-panel .search-submit {
        min-height: 48px;
    }

    .fb-home-hero {
        min-height: 590px;
        background-position: 68% center;
    }

    .fb-home-hero::after {
        background: linear-gradient(90deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.72) 65%, rgba(255,255,255,0.2) 100%);
    }

    html[data-fb-theme="dark"] .fb-home-hero::after {
        background: rgba(8,8,10,0.66);
    }

    .fb-home-hero-inner {
        align-items: flex-end;
        min-height: 590px;
    }

    .fb-home-hero-copy {
        width: 100%;
        padding-block: 52px;
    }

    .fb-home-hero h1 {
        font-size: 50px;
    }

    .fb-home-hero-subtitle {
        font-size: 18px;
    }

    .fb-home-hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .fb-category-links {
        gap: 9px 18px;
    }

    .fb-latest-section,
    .fb-archive-feed {
        padding-block: 52px 72px;
    }

    .fb-card-grid,
    .fb-home-content--with-sponsor .fb-card-grid {
        grid-template-columns: 1fr;
    }

    .fb-card-media {
        height: 220px;
    }

    .fb-empty-state {
        padding: 32px 24px;
    }

    .fb-archive-header {
        padding-block: 55px 32px;
    }

    .fb-discovery-page {
        width: calc(100% - 36px);
        padding-block: 44px 78px;
    }

    .fb-discovery-header h1 {
        font-size: 44px;
    }

    .fb-editorial-intro {
        font-size: 19px;
    }

    .fb-discovery-image img {
        border-radius: 13px;
    }

    .fb-panel {
        padding: 22px;
    }

    .fb-discovery-content {
        font-size: 18px;
        line-height: 1.7;
    }

    .fb-discovery-content h2 {
        font-size: 30px;
    }

    .fb-discovery-content h3 {
        font-size: 25px;
    }

    .fb-next-step-card {
        align-items: stretch;
        flex-direction: column;
        padding: 24px;
    }

    .fb-next-step-button {
        width: 100%;
    }

    .fb-share-row {
        align-items: flex-start;
    }

    .fb-footer-main {
        padding-block: 48px 42px;
    }

    .fb-footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .fb-footer-bottom p {
        white-space: normal;
    }

    .fb-back-to-top {
        right: 14px;
        bottom: 14px;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   Get Featured landing page — native Featureby layout
   ========================================================= */
.fb-feature-wrap {
    width: min(calc(100% - 48px), var(--fb-shell));
    margin-inline: auto;
}

.fb-feature-section {
    padding-block: 78px;
}

.fb-feature-hero {
    padding-block: 76px 82px;
    background:
        radial-gradient(circle at 15% 25%, rgba(99, 91, 255, 0.10), transparent 34%),
        linear-gradient(135deg, #f8f7ff 0%, #ffffff 55%, #f5f3ff 100%);
}

.fb-feature-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.92fr);
    align-items: center;
    gap: 72px;
}

.fb-feature-hero__copy h1 {
    max-width: 650px;
    margin: 0;
    color: var(--fb-text);
    font-size: clamp(46px, 5.2vw, 68px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.062em;
}

.fb-feature-eyebrow {
    margin: 0 0 15px;
    color: var(--fb-accent);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fb-feature-intro {
    max-width: 620px;
    margin: 24px 0 28px;
    color: var(--fb-muted);
    font-size: 17px;
    line-height: 1.68;
}

.fb-feature-hero__media {
    margin: 0;
}

.fb-feature-hero__media img {
    display: block;
    width: 100%;
    aspect-ratio: 1.26 / 1;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(39, 31, 92, 0.14);
}

.fb-feature-heading {
    max-width: 800px;
}

.fb-feature-heading--center {
    margin-inline: auto;
    text-align: center;
}

.fb-feature-heading h2,
.fb-feature-about h2,
.fb-feature-request h2 {
    margin: 0;
    color: var(--fb-text);
    font-size: clamp(34px, 4.4vw, 52px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.052em;
}

.fb-feature-heading > p:not(.fb-feature-eyebrow) {
    margin: 20px auto 0;
    color: var(--fb-muted);
    font-size: 16px;
    line-height: 1.72;
}

.fb-feature-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.fb-feature-card {
    overflow: hidden;
    border: 1px solid var(--fb-line);
    border-radius: 20px;
    background: var(--fb-surface);
    box-shadow: 0 14px 38px rgba(30, 27, 65, 0.06);
}

.fb-feature-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 1.55 / 1;
    object-fit: cover;
}

.fb-feature-card__body {
    padding: 24px 24px 26px;
}

.fb-feature-card h3,
.fb-feature-steps h3,
.fb-feature-offer-grid h3,
.fb-feature-request__notice h3 {
    margin: 0;
    color: var(--fb-text);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.fb-feature-card p {
    margin: 10px 0 0;
    color: var(--fb-muted);
    font-size: 14px;
    line-height: 1.6;
}

.fb-feature-process-section {
    padding-top: 10px;
}

.fb-feature-process {
    padding: 60px 58px 54px;
    border-radius: 28px;
    background: #0b0b0f;
    color: #ffffff;
    box-shadow: 0 32px 76px rgba(10, 10, 16, 0.16);
}

.fb-feature-heading--light h2,
.fb-feature-heading--light p {
    color: #ffffff;
}

.fb-feature-heading--light .fb-feature-eyebrow {
    color: #8d86ff;
}

.fb-feature-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 46px;
}

.fb-feature-steps article {
    padding: 4px 34px 4px 0;
}

.fb-feature-steps article + article {
    padding-left: 34px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.fb-feature-steps span {
    display: block;
    margin-bottom: 18px;
    color: #8d86ff;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.fb-feature-steps h3 {
    color: #ffffff;
}

.fb-feature-steps p {
    margin: 12px 0 0;
    color: #b8b8c1;
    font-size: 14px;
    line-height: 1.62;
}

.fb-feature-submissions {
    padding-top: 68px;
    padding-bottom: 96px;
}

.fb-feature-offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.fb-feature-offer-grid article {
    padding: 30px;
    border: 1px solid var(--fb-line);
    border-radius: 20px;
    background: color-mix(in srgb, var(--fb-soft) 64%, var(--fb-bg));
}

.fb-feature-offer-grid p {
    margin: 12px 0 18px;
    color: var(--fb-muted);
    font-size: 14px;
    line-height: 1.58;
}

.fb-feature-offer-grid ul {
    margin: 0;
    padding-left: 20px;
    color: var(--fb-text);
    font-size: 14px;
    line-height: 1.75;
}

.fb-feature-about,
.fb-feature-request {
    margin-top: 54px;
    padding: 46px 48px;
    border-radius: 24px;
    background: var(--fb-soft-2);
}

.fb-feature-about {
    border-left: 6px solid var(--fb-accent);
}

.fb-feature-about h2,
.fb-feature-request h2 {
    font-size: clamp(31px, 3.6vw, 43px);
}

.fb-feature-about p,
.fb-feature-request > p:not(.fb-feature-eyebrow) {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--fb-muted);
    font-size: 15px;
    line-height: 1.68;
}

.fb-feature-request__notice {
    margin-top: 28px;
    padding: 28px 30px;
    border: 1px solid var(--fb-line);
    border-radius: 17px;
    background: var(--fb-surface);
}

.fb-feature-request__notice p {
    margin: 12px 0 0;
    color: var(--fb-muted);
    font-size: 14px;
    line-height: 1.65;
}

html[data-fb-theme="dark"] .fb-feature-hero {
    background:
        radial-gradient(circle at 15% 25%, rgba(99, 91, 255, 0.20), transparent 36%),
        linear-gradient(135deg, #111117 0%, #0c0c0f 55%, #171226 100%);
}

html[data-fb-theme="dark"] .fb-feature-card,
html[data-fb-theme="dark"] .fb-feature-request__notice {
    box-shadow: none;
}

@media (max-width: 900px) {
    .fb-feature-hero__grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .fb-feature-hero__copy {
        max-width: 700px;
    }

    .fb-feature-card-grid,
    .fb-feature-offer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fb-feature-card-grid article:last-child,
    .fb-feature-offer-grid article:last-child {
        grid-column: 1 / -1;
    }

    .fb-feature-process {
        padding: 48px 36px;
    }
}

@media (max-width: 680px) {
    .fb-feature-wrap {
        width: min(calc(100% - 34px), var(--fb-shell));
    }

    .fb-feature-section,
    .fb-feature-hero {
        padding-block: 58px;
    }

    .fb-feature-hero__copy h1 {
        font-size: 43px;
        line-height: 0.99;
    }

    .fb-feature-hero__media img {
        min-height: 310px;
        aspect-ratio: auto;
    }

    .fb-feature-card-grid,
    .fb-feature-offer-grid,
    .fb-feature-steps {
        grid-template-columns: 1fr;
    }

    .fb-feature-card-grid article:last-child,
    .fb-feature-offer-grid article:last-child {
        grid-column: auto;
    }

    .fb-feature-process {
        padding: 42px 24px;
        border-radius: 22px;
    }

    .fb-feature-steps article,
    .fb-feature-steps article + article {
        padding: 0;
        border-left: 0;
    }

    .fb-feature-steps article + article {
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .fb-feature-about,
    .fb-feature-request {
        margin-top: 38px;
        padding: 32px 26px;
        border-radius: 20px;
    }

    .fb-feature-request__notice {
        padding: 24px 22px;
    }
}


/* =========================================================
   Featureby Editorial v0.1.2 — clean editorial card treatment
   ========================================================= */

/* Featureby uses square-cornered editorial imagery throughout. */
.fb-site img,
.fb-site-main img,
.fb-site-footer img {
    border-radius: 0 !important;
}

/* Discovery cards are intentionally unboxed, like magazine story tiles. */
.fb-card {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
}

.fb-card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.fb-card-media {
    border-radius: 0;
}

.fb-card:hover .fb-card-media img {
    transform: none;
}

.fb-card-content {
    padding: 16px 0 0;
}

/* Plain uppercase section label rather than a rounded category pill. */
.fb-card .fb-pill {
    min-height: 0;
    margin-bottom: 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--fb-text);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: 0.14em;
}

.fb-card h3 {
    font-size: 23px;
    line-height: 1.12;
}

.fb-card-content > p {
    margin: 12px 0 18px;
}

.fb-card-footer {
    justify-content: flex-start;
    margin-top: auto;
    padding-top: 0;
    border-top: 0;
}

.fb-card-footer time {
    color: var(--fb-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (max-width: 680px) {
    .fb-card-content {
        padding-top: 14px;
    }

    .fb-card h3 {
        font-size: 22px;
    }
}

/* =========================================================
   Featureby Editorial v0.1.3 — larger editorial copy and footer
   ========================================================= */

/* Quick Take/TL;DR excerpt shown on discovery cards. */
.fb-card-content > p {
    font-size: 17px;
    line-height: 1.58;
}

/* Make the footer navigation easier to read. */
.fb-footer-column h2 {
    font-size: 12px;
    line-height: 1.3;
}

.fb-footer-column a {
    font-size: 16px;
    line-height: 1.45;
}

.fb-footer-column li + li {
    margin-top: 9px;
}

/* Increase copyright, network and legal text in the black footer bar. */
.fb-footer-bottom-inner {
    min-height: 48px;
    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 680px) {
    .fb-card-content > p {
        font-size: 16px;
    }

    .fb-footer-column a {
        font-size: 15px;
    }

    .fb-footer-bottom-inner {
        font-size: 11px;
    }
}


/* =========================================================
   Featureby Editorial v0.1.7 — balanced discovery imagery
   ========================================================= */

/* Use a classic 4:3 editorial crop: less panoramic than before,
   but not as tall and rigid as a square thumbnail. */
.fb-card-media {
    height: auto;
    aspect-ratio: 4 / 3;
}

.fb-card-media img,
.fb-card-media .fb-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 680px) {
    .fb-card-media {
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

/* =========================================================
   Featureby Editorial v0.1.8 — aligned card copy
   ========================================================= */

/* Reserve a consistent two-line title area so Quick Take copy
   begins on the same horizontal line across each card row. */
.fb-card h3 {
    min-height: calc(2em * 1.12);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Quick Take is always present, so give it a consistent three-line
   editorial block and keep card dates aligned beneath it. */
.fb-card-content > p {
    min-height: calc(3em * 1.58);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@media (max-width: 680px) {
    .fb-card h3,
    .fb-card-content > p {
        min-height: 0;
        display: block;
        overflow: visible;
        -webkit-line-clamp: initial;
    }
}


/* =========================================================
   Featureby Editorial v0.1.9 — fixed date alignment
   ========================================================= */

/* CSS calc() cannot reliably multiply lengths in all browsers.
   Use direct em values so one-line and two-line titles reserve
   exactly the same space, keeping every card date aligned. */
.fb-card h3 {
    min-height: 2.24em;
}

.fb-card-content > p {
    min-height: 4.74em;
}

@media (max-width: 680px) {
    .fb-card h3,
    .fb-card-content > p {
        min-height: 0;
    }
}


/* =========================================================
   Featureby Editorial v0.1.10 — deterministic card alignment
   ========================================================= */

/* Stretch every card to the full height of its grid row. */
.fb-card-grid {
    align-items: stretch;
}

.fb-card {
    height: 100%;
}

/* On tablet and desktop, use fixed title and Quick Take rows rather
   than relying on min-height inside a line-clamped flex layout. */
@media (min-width: 681px) {
    .fb-card-content {
        display: grid;
        grid-template-rows: auto 52px 81px auto;
        align-content: start;
        flex: 1;
    }

    .fb-card .fb-pill {
        margin-bottom: 10px;
    }

    .fb-card h3 {
        height: 52px;
        min-height: 52px;
        margin: 0;
    }

    .fb-card-content > p {
        height: 81px;
        min-height: 81px;
        margin: 12px 0 18px;
    }

    .fb-card-footer {
        align-self: end;
        margin-top: 0;
    }
}

/* =========================================================
   Featureby Editorial v0.1.11 — aligned date spacing
   ========================================================= */

/* Keep the three-line Quick Take inside its own reserved row.
   Padding replaces outer margins so the date cannot overlap it. */
@media (min-width: 681px) {
    .fb-card-content {
        grid-template-rows: auto 52px 111px auto;
    }

    .fb-card-content > p {
        box-sizing: border-box;
        height: 111px;
        min-height: 111px;
        margin: 0;
        padding: 12px 0 18px;
    }

    .fb-card-footer {
        align-self: start;
    }
}

/* =========================================================
   Featureby Editorial v0.1.12 — subtle card outline
   ========================================================= */

/* Add a quiet light-grey editorial frame without restoring
   rounded corners, shadows or hover movement. */
.fb-card {
    border: 1px solid var(--fb-line);
    background: var(--fb-surface);
}

.fb-card-content {
    padding: 18px 18px 20px;
}

@media (max-width: 680px) {
    .fb-card-content {
        padding: 16px 16px 18px;
    }
}


/* =========================================================
   Featureby Editorial v0.1.13 — automatic next Discovery
   ========================================================= */

.fb-up-next {
    margin-top: 48px;
    padding-top: 42px;
    border-top: 1px solid var(--fb-line);
}

.fb-up-next-label {
    margin: 0 0 14px;
    color: var(--fb-muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fb-up-next-card {
    display: grid;
    grid-template-columns: minmax(260px, 42%) 1fr;
    overflow: hidden;
    border: 1px solid var(--fb-line);
    background: var(--fb-surface);
    color: var(--fb-text);
    text-decoration: none;
}

.fb-up-next-card:hover {
    border-color: #bdbdc5;
    color: var(--fb-text);
}

.fb-up-next-media {
    display: block;
    min-width: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--fb-soft);
}

.fb-up-next-media img,
.fb-up-next-media .fb-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-up-next-copy {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 30px 32px;
}

.fb-up-next-category {
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fb-up-next-copy h2 {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.fb-up-next-copy > p {
    margin: 0 0 22px;
    color: var(--fb-muted);
    font-size: 17px;
    line-height: 1.58;
}

.fb-up-next-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    margin-top: auto;
    padding: 11px 18px;
    background: var(--fb-text);
    color: var(--fb-bg);
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
}

.fb-up-next-card:hover .fb-up-next-action {
    background: #25252a;
    color: #fff;
}

@media (max-width: 760px) {
    .fb-up-next {
        margin-top: 40px;
        padding-top: 36px;
    }

    .fb-up-next-card {
        grid-template-columns: 1fr;
    }

    .fb-up-next-copy {
        padding: 24px 22px 26px;
    }

    .fb-up-next-copy h2 {
        font-size: 28px;
    }

    .fb-up-next-copy > p {
        font-size: 16px;
    }
}


/* =========================================================
   Featureby Editorial v0.1.14 — stacked Up Next-style cards
   ========================================================= */

/* Homepage and archive cards now use the stronger stacked treatment
   from the mobile Up Next panel: image first, generous copy, then action. */
.fb-card-grid {
    gap: 30px 24px;
}

.fb-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--fb-line);
    background: var(--fb-surface);
    transition: border-color 180ms ease;
}

.fb-card:hover {
    border-color: #bdbdc5;
}

.fb-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 22px 26px;
}

.fb-card .fb-pill {
    margin-bottom: 10px;
}

.fb-card h3 {
    height: auto;
    min-height: 2.1em;
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.fb-card-content > p {
    height: auto;
    min-height: 4.74em;
    margin: 12px 0 22px;
    padding: 0;
    color: var(--fb-muted);
    font-size: 17px;
    line-height: 1.58;
}

.fb-card-footer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    padding-top: 0;
    border-top: 0;
}

.fb-card-footer time {
    color: var(--fb-muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.fb-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 11px 18px;
    background: var(--fb-text);
    color: var(--fb-bg);
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
}

.fb-card-action:hover {
    background: #25252a;
    color: #ffffff;
}

@media (max-width: 680px) {
    .fb-card-content {
        padding: 24px 22px 26px;
    }

    .fb-card h3 {
        min-height: 0;
        font-size: 28px;
    }

    .fb-card-content > p {
        min-height: 0;
        font-size: 16px;
    }
}

/* =========================================================
   Featureby Editorial v0.1.15 — pinned card footer alignment
   ========================================================= */

/* Keep the date and Explore Discovery action on the same baseline
   across every desktop card, regardless of title length. */
@media (min-width: 681px) {
    .fb-card-content {
        display: flex !important;
        height: 100%;
        min-height: 0;
        flex: 1 1 auto;
        flex-direction: column;
    }

    .fb-card h3 {
        height: 60px;
        min-height: 60px;
        flex: 0 0 60px;
    }

    .fb-card-content > p {
        box-sizing: border-box;
        height: 115px;
        min-height: 115px;
        flex: 0 0 115px;
        margin: 0;
        padding: 12px 0 22px;
    }

    .fb-card-footer {
        width: 100%;
        align-self: stretch !important;
        margin-top: auto !important;
    }
}


/* =========================================================
   Featureby Editorial v0.1.16 — compact aligned card footers
   ========================================================= */

/* Reserve only the title and TL;DR space required for alignment.
   Do not push the date and button to the bottom of an artificially
   stretched card, which created a large empty gap. */
@media (min-width: 681px) {
    .fb-card-grid {
        align-items: start;
    }

    .fb-card {
        height: auto;
    }

    .fb-card-content {
        display: grid !important;
        height: auto;
        min-height: 0;
        flex: none;
        grid-template-rows: auto 60px 115px auto;
    }

    .fb-card h3 {
        height: auto;
        min-height: 0;
        flex: none;
        overflow: hidden;
    }

    .fb-card-content > p {
        height: auto;
        min-height: 0;
        flex: none;
        margin: 0;
        overflow: hidden;
        padding: 12px 0 22px;
    }

    .fb-card-footer {
        align-self: auto !important;
        margin-top: 0 !important;
    }
}

/* =========================================================
   Featureby Editorial v0.1.17 — equal card frames
   ========================================================= */

/* Let the light-grey card outline stretch to the tallest card in each
   desktop row, while leaving the content, date and button in their
   compact aligned positions from v0.1.16. */
@media (min-width: 681px) {
    .fb-card-grid {
        align-items: stretch;
    }

    .fb-card {
        box-sizing: border-box;
        height: 100%;
    }
}

/* =========================================================
   Featureby Editorial v0.1.18 — tighter card base spacing
   ========================================================= */

/* Keep the equal card frames, but reduce the unused space beneath
   the Explore Discovery button on desktop. */
@media (min-width: 681px) {
    .fb-card-content {
        padding-bottom: 14px;
    }
}

/* =========================================================
   Featureby Editorial v0.1.19 — GeneratePress archive spacing
   ========================================================= */

/* GeneratePress adds 40px below archive/blog posts in one-container
   layouts. Reduce it so the Discovery card border ends closer to the
   Explore Discovery button. */
.one-container.archive .post:not(:last-child):not(.is-loop-template-item),
.one-container.blog .post:not(:last-child):not(.is-loop-template-item) {
    padding-bottom: 10px;
}


/* =========================================================
   Featureby Editorial v0.1.22 — accessible footer targets
   ========================================================= */

/* Lighthouse requires footer links to be large enough to tap reliably.
   Padding is placed on the anchors themselves so the visible footer remains
   clean while each link gets a dependable 48px interaction area. */
.fb-footer-bottom a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding-inline: 7px;
    line-height: 1.2;
}

.fb-network-links,
.fb-legal-links,
.fb-footer-legal-list {
    column-gap: 2px;
    row-gap: 2px;
}

.fb-back-to-top {
    width: 48px;
    height: 48px;
}

@media (max-width: 1180px) {
    .fb-footer-bottom-inner {
        gap: 2px;
        padding-block: 8px;
    }
}

/* =========================================================
   Featureby Editorial v0.1.23 — lighter card titles
   ========================================================= */

/* Keep Discovery card titles strong without the overly heavy 900 weight. */
.fb-card h3,
.fb-card h3 a {
    font-weight: 700;
}


/* =========================================================
   Featureby Editorial v0.1.25 — refined H1 typography
   ========================================================= */

/* Use a cleaner 700 weight for primary page headings and post titles. */
.fb-home-hero h1,
.fb-archive-header h1,
.fb-discovery-header h1,
.fb-page-header h1,
.fb-get-featured-content h1,
.fb-feature-hero__copy h1,
.fb-not-found h1 {
    font-weight: 700;
}

/* Give multi-line Discovery titles a little more breathing room. */
.fb-discovery-header h1 {
    line-height: 1.08;
}

/* =========================================================
   Featureby Editorial v0.1.26 — unified 700 heading weights
   ========================================================= */

/* Keep every heading on the native Get Featured landing page at a
   confident but less heavy 700 weight. */
.fb-get-featured-page h1,
.fb-get-featured-page h2,
.fb-get-featured-page h3 {
    font-weight: 700;
}

/* Match the homepage section title to the rest of Featureby's refined
   editorial typography. */
.fb-section-heading h2 {
    font-weight: 700;
}


/* =========================================================
   Featureby Editorial v0.1.27 — homepage dark-mode repair
   ========================================================= */

/*
 * Keep the Featureby wordmark colour stable on hover.
 * GeneratePress link-hover colours must not turn the dark-mode
 * wordmark into the light-page version.
 */
.fb-header-brand .fb-wordmark,
.fb-header-brand .fb-wordmark:visited,
.fb-footer-brand .fb-wordmark,
.fb-footer-brand .fb-wordmark:visited {
    color: var(--fb-text);
}

.fb-header-brand .fb-wordmark:hover,
.fb-header-brand .fb-wordmark:focus-visible,
.fb-footer-brand .fb-wordmark:hover,
.fb-footer-brand .fb-wordmark:focus-visible {
    color: var(--fb-text) !important;
}

.fb-header-brand .custom-logo-link:hover .custom-logo,
.fb-header-brand .custom-logo-link:focus-visible .custom-logo,
.fb-footer-brand .custom-logo-link:hover .custom-logo,
.fb-footer-brand .custom-logo-link:focus-visible .custom-logo {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

/*
 * The custom homepage template must provide its own dark surface.
 * This prevents inherited GeneratePress page backgrounds from
 * leaving the Latest Discoveries area white.
 */
html[data-fb-theme="dark"] .fb-home {
    background: var(--fb-bg) !important;
    color: var(--fb-text) !important;
}

html[data-fb-theme="dark"] .fb-home .fb-latest-section {
    background: var(--fb-bg) !important;
    color: var(--fb-text) !important;
}

html[data-fb-theme="dark"] .fb-home .fb-section-heading h2 {
    color: var(--fb-text) !important;
}

/* Homepage hero secondary action. */
html[data-fb-theme="dark"] .fb-home .fb-home-hero .fb-text-link,
html[data-fb-theme="dark"] .fb-home .fb-home-hero .fb-text-link:visited {
    color: #ffffff !important;
}

html[data-fb-theme="dark"] .fb-home .fb-home-hero .fb-text-link:hover,
html[data-fb-theme="dark"] .fb-home .fb-home-hero .fb-text-link:focus-visible {
    color: #c9c6ff !important;
}

/* Homepage category strip. */
html[data-fb-theme="dark"] .fb-home .fb-category-bar {
    border-color: var(--fb-line) !important;
    background: var(--fb-dark) !important;
}

html[data-fb-theme="dark"] .fb-home .fb-category-bar-inner > span {
    color: #d4d4dc !important;
}

html[data-fb-theme="dark"] .fb-home .fb-category-links a,
html[data-fb-theme="dark"] .fb-home .fb-category-links a:visited {
    color: #f5f5f7 !important;
}

html[data-fb-theme="dark"] .fb-home .fb-category-links a:hover,
html[data-fb-theme="dark"] .fb-home .fb-category-links a:focus-visible {
    color: var(--fb-accent) !important;
}

/* Empty homepage archive card. */
html[data-fb-theme="dark"] .fb-home .fb-empty-state {
    border-color: var(--fb-line) !important;
    background: var(--fb-surface) !important;
    color: var(--fb-text) !important;
}

html[data-fb-theme="dark"] .fb-home .fb-empty-state h2,
html[data-fb-theme="dark"] .fb-home .fb-empty-state h3 {
    color: var(--fb-text) !important;
}

html[data-fb-theme="dark"] .fb-home .fb-empty-state p:not(.fb-kicker) {
    color: #b9b9c3 !important;
}

/*
 * Scope the footer contrast correction to a footer immediately
 * following the homepage. Inner-page dark-mode styling is unchanged.
 */
html[data-fb-theme="dark"] .fb-home ~ .fb-site-footer {
    border-color: var(--fb-line) !important;
    background: var(--fb-dark) !important;
    color: var(--fb-text) !important;
}

html[data-fb-theme="dark"] .fb-home ~ .fb-site-footer .fb-footer-brand p {
    color: #b9b9c3 !important;
}

html[data-fb-theme="dark"] .fb-home ~ .fb-site-footer .fb-footer-column h2 {
    color: #f5f5f7 !important;
}

html[data-fb-theme="dark"] .fb-home ~ .fb-site-footer .fb-footer-column a,
html[data-fb-theme="dark"] .fb-home ~ .fb-site-footer .fb-footer-column a:visited {
    color: #c8c8d1 !important;
}

html[data-fb-theme="dark"] .fb-home ~ .fb-site-footer .fb-footer-column a:hover,
html[data-fb-theme="dark"] .fb-home ~ .fb-site-footer .fb-footer-column a:focus-visible {
    color: var(--fb-accent) !important;
}

/* =========================================================
   Featureby Editorial v0.1.30 — cinematic homepage hero
   ========================================================= */

body.home .fb-site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 100;
    padding-block: 18px;
    border-bottom-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(5, 5, 7, 0.58), rgba(5, 5, 7, 0));
    color: #ffffff;
}

body.home .fb-header-inner {
    min-height: 64px;
    padding-block: 0;
}

body.home .fb-site-header .fb-wordmark,
body.home .fb-site-header .fb-wordmark:visited,
body.home .fb-site-header .fb-wordmark:hover,
body.home .fb-site-header .fb-wordmark:focus-visible,
body.home .fb-site-header .fb-icon-button {
    color: #ffffff !important;
}

body.home .fb-site-header .fb-icon-button:hover {
    background: rgba(255, 255, 255, 0.12);
}

body.home .fb-site-header .custom-logo {
    filter: brightness(0) invert(1);
}

body.home .fb-menu-panel,
body.home .fb-search-panel {
    color: var(--fb-text);
}

body.home .fb-menu-panel .fb-wordmark,
body.home .fb-search-panel .fb-wordmark {
    color: var(--fb-text) !important;
}

.fb-home-hero {
    min-height: min(900px, 92vh);
    background-position: center 42%;
    background-color: #151515;
}

.fb-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(4, 4, 6, 0.88) 0%, rgba(4, 4, 6, 0.62) 32%, rgba(4, 4, 6, 0.12) 65%, rgba(4, 4, 6, 0.08) 100%),
        linear-gradient(180deg, rgba(4, 4, 6, 0.18) 0%, rgba(4, 4, 6, 0.02) 52%, rgba(4, 4, 6, 0.58) 100%);
}

.fb-home-hero::after {
    display: none;
}

.fb-home-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: min(900px, 92vh);
    padding-top: 88px;
    padding-bottom: 76px;
}

.fb-home-hero-copy {
    width: min(700px, 52%);
    padding-block: 64px;
}

.fb-home-hero .fb-kicker {
    margin: 0 0 25px;
    color: #8c84ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.fb-home-hero h1,
html[data-fb-theme="dark"] .fb-home-hero h1 {
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(58px, 6.25vw, 102px);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.07em;
    text-wrap: balance;
}

.fb-home-hero-subtitle,
html[data-fb-theme="dark"] .fb-home-hero-subtitle {
    max-width: 620px;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(18px, 1.35vw, 22px);
    font-style: normal;
    line-height: 1.55;
}

.fb-home-hero-actions {
    margin-top: 34px;
}

.fb-home-hero .fb-button--primary {
    min-height: 58px;
    padding-inline: 26px;
    border: 0;
    border-radius: 999px;
    background: var(--fb-accent);
    color: #ffffff;
    box-shadow: 0 16px 38px rgba(99, 91, 255, 0.28);
}

.fb-home-hero .fb-button--primary:hover,
.fb-home-hero .fb-button--primary:focus-visible {
    background: #5148ef;
    color: #ffffff;
    transform: translateY(-1px);
}

.fb-home-hero .fb-text-link,
.fb-home-hero .fb-text-link:visited {
    color: #ffffff;
}

.fb-home-hero-categories {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 31px;
    padding: 24px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.fb-home-hero-categories a,
.fb-home-hero-categories a:visited {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-decoration: none;
    text-transform: uppercase;
}

.fb-home-hero-categories a:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -18px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--fb-accent);
    transform: translateY(-50%);
}

.fb-home-hero-categories a:hover,
.fb-home-hero-categories a:focus-visible {
    color: #ffffff;
}

@media (max-width: 900px) {
    body.home .fb-site-header {
        padding-block: 15px;
    }

    body.home .fb-header-inner {
        min-height: 60px;
        padding-block: 0;
    }

    .fb-home-hero,
    .fb-home-hero-inner {
        min-height: 820px;
    }

    .fb-home-hero {
        background-position: 62% center;
    }

    .fb-home-hero-copy {
        width: 67%;
    }

    .fb-home-hero h1 {
        font-size: clamp(56px, 9vw, 78px);
    }
}

@media (max-width: 640px) {
    body.home .fb-site-header {
        background: linear-gradient(180deg, rgba(5, 5, 7, 0.7), rgba(5, 5, 7, 0));
    }

    body.home .fb-site-header {
        padding-block: 13px;
    }

    body.home .fb-header-inner {
        min-height: 54px;
        padding-block: 0;
    }

    .fb-home-hero,
    .fb-home-hero-inner {
        min-height: 760px;
    }

    .fb-home-hero {
        background-position: 66% center;
    }

    .fb-home-hero::before {
        background:
            linear-gradient(180deg, rgba(4, 4, 6, 0.24) 0%, rgba(4, 4, 6, 0.18) 34%, rgba(4, 4, 6, 0.86) 78%, rgba(4, 4, 6, 0.96) 100%);
    }

    .fb-home-hero-inner {
        align-items: flex-end;
        padding-top: 68px;
        padding-bottom: 98px;
    }

    .fb-home-hero-copy {
        width: 100%;
        padding-block: 38px;
    }

    .fb-home-hero .fb-kicker {
        margin-bottom: 18px;
        font-size: 10px;
    }

    .fb-home-hero h1 {
        font-size: clamp(49px, 15vw, 66px);
        line-height: 0.94;
    }

    .fb-home-hero-subtitle {
        margin-top: 22px;
        font-size: 17px;
        line-height: 1.48;
    }

    .fb-home-hero-actions {
        align-items: stretch;
        margin-top: 26px;
    }

    .fb-home-hero .fb-button--primary {
        justify-content: center;
        width: 100%;
    }

    .fb-home-hero .fb-text-link {
        align-self: center;
        padding: 10px;
    }

    .fb-home-hero-categories {
        gap: 10px 22px;
        padding-block: 18px 22px;
    }

    .fb-home-hero-categories a {
        font-size: 10px;
    }

    .fb-home-hero-categories a:not(:last-child)::after {
        right: -13px;
    }
}

/* v0.1.31: definitive homepage header spacing. */
body.home .fb-site-header {
    padding-block: 0;
}

body.home .fb-site-header > .fb-header-inner {
    min-height: 96px;
    padding-block: 18px;
}

@media (max-width: 900px) {
    body.home .fb-site-header > .fb-header-inner {
        min-height: 86px;
        padding-block: 15px;
    }
}

@media (max-width: 640px) {
    body.home .fb-site-header > .fb-header-inner {
        min-height: 78px;
        padding-block: 12px;
    }
}

/* v0.1.32: homepage header spacing is applied to a dedicated class and inline markup. */
.fb-site-header--home {
    padding-top: 22px !important;
    padding-bottom: 18px !important;
}

.fb-site-header--home > .fb-header-inner {
    min-height: 62px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 900px) {
    .fb-site-header--home {
        padding-top: 18px !important;
        padding-bottom: 15px !important;
    }
}

@media (max-width: 640px) {
    .fb-site-header--home {
        padding-top: 16px !important;
        padding-bottom: 13px !important;
    }
}


/* v0.1.33: substantially taller cinematic homepage header. */
.fb-site-header--home {
    padding-top: 30px !important;
    padding-bottom: 26px !important;
}

.fb-site-header--home > .fb-header-inner {
    min-height: 78px !important;
}

@media (max-width: 900px) {
    .fb-site-header--home {
        padding-top: 24px !important;
        padding-bottom: 21px !important;
    }

    .fb-site-header--home > .fb-header-inner {
        min-height: 68px !important;
    }
}

@media (max-width: 640px) {
    .fb-site-header--home {
        padding-top: 21px !important;
        padding-bottom: 18px !important;
    }

    .fb-site-header--home > .fb-header-inner {
        min-height: 62px !important;
    }
}

/* v0.1.34: remove the divider beneath the cinematic homepage header. */
body.home .fb-site-header,
.fb-site-header--home {
    border-bottom: 0 !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}
