/* Finepedia Custom Theme — typography matches finepedia.com (Hueman + Titillium Web) */

@import url("https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap");

:root {
    --fp-font: "Titillium Web", Titillium, Arial, sans-serif;
    --fp-teal: #3dbdbd;
    --fp-teal-dark: #2aa8a8;
    --fp-teal-nav: #33b5b5;
    --fp-yellow: #f5c518;
    --fp-yellow-hover: #e0b310;
    --fp-black: #1a1a1a;
    --fp-dark: #2d2d2d;
    --fp-gray: #666;
    --fp-light-gray: #f5f5f5;
    --fp-border: #e8e8e8;
    --fp-white: #fff;
    --fp-serif: var(--fp-font);
    --fp-sans: var(--fp-font);

    /* Type scale — Hueman / finepedia.com */
    --fp-text-xs: 0.75rem;
    --fp-text-sm: 0.875rem;
    --fp-text-base: 1rem;
    --fp-text-md: 0.9375em;
    --fp-text-lg: 1.125rem;
    --fp-text-xl: 1.375rem;
    --fp-weight-light: 300;
    --fp-weight-normal: 400;
    --fp-weight-semibold: 600;
    --fp-weight-bold: 700;
    --fp-leading: 1.5em;
    --fp-leading-tight: 1.3em;

    /* Sidebars — shared s1 / s2 */
    --fp-sidebar-bg: #e1e1e1;
    --fp-sidebar-pad-x: 20px;
    --fp-sidebar-pad-y: 20px;
}

html {
    font-family: var(--fp-font);
    -webkit-font-smoothing: antialiased;
}

body.finepedia-theme {
    font-family: var(--fp-font);
    font-size: var(--fp-text-base);
    font-weight: var(--fp-weight-light);
    line-height: var(--fp-leading);
    background: var(--fp-light-gray);
    color: var(--fp-gray);
}

.finepedia-theme #page {
    padding-bottom: 0;
    margin-top: 20px;
}

.container-inner {
    max-width: 1620px;
    min-width: 0;
    width: 100%;
    margin: 0 auto;
}

/* Search box width — match main content column (col-3cm) */
.finepedia-theme.col-3cm {
    --fp-sidebar-left: 340px;
    --fp-sidebar-right: 340px;
    --fp-content-gutter: 30px;
    --fp-content-inset-left: calc(
        var(--fp-sidebar-left) + var(--fp-content-gutter)
    );
    --fp-content-inset-right: calc(
        var(--fp-sidebar-right) + var(--fp-content-gutter)
    );
}

.fp-search-align {
    box-sizing: border-box;
    width: calc(
        100% - var(--fp-content-inset-left) - var(--fp-content-inset-right)
    );
    max-width: calc(
        100% - var(--fp-content-inset-left) - var(--fp-content-inset-right)
    );
}

.fp-search-widget.fp-search-align {
    width: 100%;
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.fp-branding-search.fp-search-align {
    width: 100%;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.fp-branding-search .fp-search-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

#fp-branding.fp-branding--inner.is-stuck .fp-branding-search .fp-search-pill {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Inner sticky header: compact search (home hero search unchanged) */
#fp-branding.fp-branding--inner .fp-branding-search .fp-search-pill {
    padding: 2px 2px 2px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

#fp-branding.fp-branding--inner .fp-branding-search .fp-search-input {
    padding: 10px 0;
    font-size: 1rem;
}

#fp-branding.fp-branding--inner .fp-branding-search .fp-search-button {
    padding: 10px 28px;
    font-size: 1rem;
}

@media only screen and (min-width: 961px) and (max-width: 1200px) {
    .finepedia-theme.col-3cm {
        --fp-sidebar-right: 50px;
    }
}

@media only screen and (min-width: 480px) and (max-width: 960px) {
    .finepedia-theme.col-3cm {
        --fp-sidebar-left: 50px;
        --fp-sidebar-right: 50px;
    }
}

@media only screen and (max-width: 719px) {
    .finepedia-theme.col-3cm {
        --fp-sidebar-left: 0px;
        --fp-sidebar-right: 0px;
        --fp-content-gutter: 20px;
    }
}

@media only screen and (max-width: 479px) {
    .finepedia-theme.col-3cm {
        --fp-sidebar-left: 0px;
        --fp-sidebar-right: 0px;
        --fp-content-gutter: 20px;
    }
}

/* Top Bar + Navigation — matches finepedia.com #nav-topbar */
#fp-topbar {
    background: #121d30;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fp-text-base);
    padding: 0;
    position: relative;
    z-index: 300;
    box-shadow:
        0 0 5px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.15);
}
#fp-topbar .container-inner {
    display: block;
    min-height: 50px;
}
.fp-topbar-nav {
    min-width: 0;
    overflow: visible;
}
.fp-topbar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    height: 100%;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
}
.fp-topbar-menu::-webkit-scrollbar {
    display: none;
}
.fp-topbar-menu > li {
    position: relative;
    flex-shrink: 0;
}
.fp-topbar-menu > li.menu-item-has-children {
    position: static;
}
.fp-topbar-menu > li > a {
    display: flex;
    align-items: center;
    height: 50px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0 8px;
    font-weight: var(--fp-weight-normal);
    text-transform: none;
    letter-spacing: 0;
    font-size: var(--fp-text-base);
    white-space: nowrap;
    transition:
        color 0.2s,
        background 0.2s;
}
.fp-topbar-menu > li > a:hover,
.fp-topbar-menu > li:hover > a,
.fp-topbar-menu > li:focus-within > a {
    color: #fff;
    background: rgba(0, 0, 0, 0.1);
}
.fp-topbar-menu > li.menu-item-has-children > a::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 6px;
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Full-width mega menu dropdown */
.fp-mega-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    background: #fff;
    border-top: 3px solid var(--fp-teal, #33b5b5);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    z-index: 400;
    padding: 22px 0 26px;
    min-height: 360px;
    box-sizing: border-box;
}
.fp-topbar-menu > li:hover > .fp-mega-menu,
.fp-topbar-menu > li:focus-within > .fp-mega-menu {
    display: block;
}
.fp-mega-menu__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
    gap: 28px;
    align-items: stretch;
    min-height: 300px;
}
.fp-mega-menu__layout:not(:has(.fp-mega-menu__posts)) {
    grid-template-columns: 1fr;
}

.fp-mega-menu__categories {
    min-height: 100%;
}

.fp-mega-menu__categories .fp-mega-menu__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px 24px;
    height: 100%;
    align-items: stretch;
}

.fp-mega-menu__col {
    height: 100%;
}

.fp-mega-menu__posts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-left: 1px solid var(--fp-border);
    padding-left: 24px;
    min-height: 100%;
    align-items: stretch;
}

.fp-mega-menu__posts-col {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.fp-mega-menu__posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--fp-teal);
}

.fp-mega-menu__posts-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fp-dark);
    letter-spacing: 0.02em;
}

.fp-mega-menu__view-all {
    flex-shrink: 0;
    background: var(--fp-teal);
    color: #fff;
    padding: 3px 10px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 24px;
    white-space: nowrap;
}

.fp-mega-menu__view-all:hover {
    background: var(--fp-teal-dark);
    color: #fff;
}

.fp-mega-menu__post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    min-height: 275px;
}

.fp-mega-menu__post-item {
    border-bottom: 1px solid #f0f0f0;
    min-height: 55px;
}

.fp-mega-menu__post-item:last-child {
    border-bottom: none;
}

.fp-mega-menu__post-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 55px;
    padding: 8px 0;
    color: #444;
    text-decoration: none;
    font-size: 0.82rem;
    line-height: 1.35;
    box-sizing: border-box;
}

.fp-mega-menu__post-link:hover {
    color: var(--fp-teal);
}

.fp-mega-menu__post-thumb {
    flex-shrink: 0;
    width: 70px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 3px;
    background: #eef1f3;
    position: relative;
}

.fp-mega-menu__post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fp-mega-menu__post-text {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.fp-mega-menu__empty {
    padding: 8px 0;
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
}

.fp-mega-menu__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fp-mega-menu__col li a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 6px 0;
    color: #444;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    border-bottom: 0px solid #f0f0f0;
    transition: color 0.15s;
    box-sizing: border-box;
}
.fp-mega-menu__col li:last-child a {
    border-bottom: none;
}
.fp-mega-menu__col li a:hover {
    color: var(--fp-teal, #33b5b5);
}

.fp-topbar-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-self: end;
}
.fp-branding-bar {
    display: flex;
    align-items: center;
    gap: 16px;
}
.fp-branding-actions {
    flex-shrink: 0;
    margin-left: auto;
}
.fp-branding-login {
    display: inline-block;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    background: #efb93f !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
}
.fp-branding-login:hover {
    background: #d9a032 !important;
    color: #fff !important;
}
.fp-topbar-login {
    display: inline-block;
    background: var(--fp-teal, #33b5b5);
    color: #fff;
    padding: 6px 16px;
    font-size: var(--fp-text-xs, 0.75rem);
    line-height: 1.4;
    text-decoration: none;
    font-weight: var(--fp-weight-semibold, 600);
    text-transform: uppercase;
    border-radius: 24px;
    white-space: nowrap;
    transition:
        background 0.2s,
        color 0.2s;
}
.fp-topbar-login:hover {
    background: #f5a623;
    color: #fff;
}
.fp-topbar-search {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    transition:
        color 0.2s,
        background 0.2s;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.fp-topbar-search:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.1);
}

/* Logo Area */
#fp-branding {
    background: var(--fp-border);
    padding: 12px 0 12px;
    border-bottom: 1px solid var(--fp-border);
}
#fp-branding:not(.fp-branding--inner) .fp-branding-bar {
    justify-content: flex-start;
}
#fp-branding:not(.fp-branding--inner) .site-logo {
    flex: 1;
    text-align: center;
}
#fp-branding .site-logo img {
    max-height: 40px;
    width: auto;
    padding: 8px 10px;
    display: block;
}

/* Inner pages: logo left, search right, sticky */
#fp-branding.fp-branding--inner {
    position: sticky;
    top: 0;
    z-index: 200;
    padding: 10px 0;
    text-align: left;
    transition: box-shadow 0.2s;
}
#fp-branding.fp-branding--inner.is-stuck {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.fp-branding-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

#fp-branding.fp-branding--inner .fp-branding-inner {
    display: grid;
    grid-template-columns: 1fr minmax(0, 50%) 1fr;
    align-items: center;
    gap: 16px;
}

#fp-branding.fp-branding--inner .site-logo {
    grid-column: 1;
    justify-self: start;
    flex-shrink: 0;
}
#fp-branding.fp-branding--inner .site-logo img {
    max-height: 42px;
    padding: 4px 0;
    display: block;
}
.fp-branding-search {
    min-width: 0;
}

#fp-branding.fp-branding--inner .fp-branding-search {
    grid-column: 2;
    justify-self: center;
    width: 100%;
    max-width: 100%;
}

#fp-branding.fp-branding--inner .fp-branding-actions {
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
}

/* Hero Search — Songshop-inspired pill + tag carousel */
#fp-hero-search {
    background: linear-gradient(180deg, #f8fbfb 0%, #e1e1e1 100%);
    padding: 40px 20px 50px;
    text-align: center;
    border-bottom: none;
}
#fp-hero-search .hero-tagline {
    font-family: var(--fp-font);
    margin-bottom: 24px;
    line-height: 1.35;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}
.hero-tagline__title {
    font-size: 2rem;
    font-weight: 600;
    font-style: normal;
    color: #121d30;
    letter-spacing: 0.01em;
}
.hero-tagline__subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    font-style: normal;
    color: #121d30;
    opacity: 0.75;
}

.fp-search-widget {
    width: 100%;
    max-width: 60%;
    margin: 0 auto;
}
.fp-search-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}
.fp-search-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 2px 2px 2px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.fp-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 0;
    font-size: 1.2rem;
    outline: none;
    color: var(--fp-dark);
    min-width: 0;
}
.fp-search-input::placeholder {
    color: #999;
}
.fp-search-button {
    border: none;
    border-radius: 999px;
    padding: 16px 40px;
    background: var(--fp-black);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.fp-search-button:hover {
    background: var(--fp-dark);
}

.fp-popular-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 4px 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 18px;
    text-align: left;
}
.fp-tags-label {
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.fp-tags-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.fp-tags-carousel {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.fp-tags-list {
    display: flex;
    gap: 8px;
    transition: transform 0.3s ease;
    white-space: nowrap;
    width: max-content;
    will-change: transform;
}
.fp-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #86f2e0;
    color: var(--fp-dark);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.2s,
        color 0.2s;
}
.fp-tag:hover {
    background: #fff;
    color: var(--fp-teal-dark);
}
.fp-tags-arrow {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--fp-dark);
    font-size: 0.75rem;
    transition:
        opacity 0.2s,
        background 0.2s;
}
.fp-tags-arrow:hover:not(:disabled):not(.disabled) {
    background: var(--fp-light-gray);
}
.fp-tags-arrow:disabled,
.fp-tags-arrow.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Homepage Sections */
.fp-section {
    margin-bottom: 28px;
    background: var(--fp-white);
    padding: 0;
}
.fp-section-header {
    padding: 0;
    border-bottom: none;
    margin-bottom: 15px;
}
.fp-section-header__inner {
    flex: 0 0 100%;
    max-width: 100%;
}
.fp-section-heading,
.fp-category-page .fp-category-title {
    text-align: left;
    margin: 0.6em 0;
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: #121212;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: normal;
}
.fp-section-heading strong,
.fp-category-page .fp-category-title strong {
    font-weight: 700;
}
.fp-section-heading > a,
.fp-category-page .fp-category-title > a {
    text-decoration: none;
    color: inherit;
    font-size: inherit;
}
.btn-view-all {
    background-color: #16cfc1;
    color: #ffffff;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 10px;
    text-transform: none;
    letter-spacing: normal;
    display: inline-block;
    line-height: 1.2;
    transition: background-color 0.2s;
}
.btn-view-all:hover {
    background-color: #efb93f;
    color: #ffffff;
}
@media (max-width: 991.98px) {
    .fp-section-heading,
    .fp-category-page .fp-category-title {
        font-size: 22px;
    }
    .btn-view-all {
        font-size: 14px;
        padding: 6px 14px;
    }
}
@media (max-width: 575.98px) {
    .fp-section-heading,
    .fp-category-page .fp-category-title {
        font-size: 20px;
    }
}
/* Legacy alias */
.fp-section-header .fp-view-all {
    background-color: #16cfc1;
    color: #ffffff;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 15px;
    text-decoration: none;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    display: inline-block;
    line-height: 1.2;
    transition: background-color 0.2s;
}
.fp-section-header .fp-view-all:hover {
    background-color: #efb93f;
    color: #ffffff;
}

/* Two column section layout */
.fp-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

/* List style posts (thumbnail left) */
.fp-list-item {
    display: flex;
    gap: 12px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--fp-border);
    align-items: flex-start;
}
.fp-list-item:last-child {
    border-bottom: none;
}
.fp-list-item .fp-thumb {
    flex-shrink: 0;
    width: 96px;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    border-radius: 3px;
    background: #eef1f3;
    position: relative;
}
.fp-list-item .fp-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}
.fp-list-item .fp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fp-list-item .fp-title {
    font-size: var(--fp-text-sm);
    font-weight: var(--fp-weight-normal);
    line-height: var(--fp-leading);
    margin: 0;
}
.fp-list-item .fp-title a {
    color: var(--fp-dark);
    text-decoration: none;
}
.fp-list-item .fp-title a:hover {
    color: var(--fp-teal);
}

/* Category pages — list with title + excerpt (finepedia.com style) */
.fp-category-page .fp-category-header {
    margin-bottom: 24px;
}

.fp-category-page .fp-category-description {
    margin: 0;
    color: #767676;
    line-height: 1.5em;
    max-width: 100%;
}

/* Category SEO keywords — in HTML for crawlers, hidden from visual UI */
.fp-seo-keywords-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Category post listing — two columns */
.fp-category-list--2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    align-items: start;
}

.fp-category-list--2col > .fp-list-item {
    min-width: 0;
}

.fp-category-list--2col > .fp-category-empty {
    grid-column: 1 / -1;
}

@media (max-width: 767.98px) {
    .fp-category-list--2col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.fp-list-item--rich {
    align-items: flex-start;
}

.fp-list-media {
    flex-shrink: 0;
    width: 120px;
}

.fp-list-item--compact .fp-list-media {
    width: 96px;
}

.fp-list-item--rich .fp-thumb {
    width: 100%;
    position: relative;
}

.fp-list-item--rich .fp-list-body {
    flex: 1;
    min-width: 0;
    align-self: flex-start;
}

.fp-list-item--rich .fp-title {
    font-size: 20px;
    line-height: 1.3em;
    font-weight: 600;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.fp-list-item--rich .fp-title a {
    color: #444;
    font-weight: 600;
}

.fp-list-item--rich .fp-excerpt {
    font-size: 0.875rem;
    line-height: 1.5em;
    color: #767676;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.fp-list-item--compact {
    padding: 8px 0;
    border-bottom: 1px solid var(--fp-border);
}
.fp-list-item--compact .fp-thumb {
    width: 100%;
}
.fp-list-item--compact .fp-title {
    font-size: var(--fp-text-sm);
    font-weight: var(--fp-weight-normal);
    -webkit-line-clamp: 3;
}
.sidebar .fp-list-item--rich.fp-list-item--compact {
    padding: 8px 0;
}

.fp-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 68px;
    background: #eef1f3;
}

.fp-category-empty {
    padding: 20px 15px;
    color: #888;
    margin: 0;
}

.fp-pagination {
    margin: 20px 0 10px;
}

/* Grid style posts */
.fp-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 0px 0px;
}
.fp-grid-item .fp-card-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 8px;
    border-radius: 3px;
    position: relative;
    background: #eef1f3;
}
.fp-grid-item .fp-card-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}
.fp-grid-item .fp-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.fp-grid-item:hover .fp-card-thumb img {
    transform: scale(1.03);
}

/* Post thumbnail light overlay — site-wide */
.fp-card-thumb,
.fp-list-item .fp-thumb,
.finepedia-theme .post-thumbnail,
.fp-mega-menu__post-thumb,
.finepedia-theme .fp-widget-posts-grid .fp-post-thumb,
.fp-featured-card,
.wiki-related-thumb {
    position: relative;
    isolation: isolate;
}

.fp-card-thumb::after,
.fp-list-item .fp-thumb::after,
.finepedia-theme .post-thumbnail::after,
.fp-mega-menu__post-thumb::after,
.finepedia-theme .fp-widget-posts-grid .fp-post-thumb::after,
.fp-featured-card::after,
.wiki-related-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 1;
    transition: background 0.25s ease;
}

.fp-grid-item:hover .fp-card-thumb::after,
.fp-list-item:hover .fp-thumb::after,
.finepedia-theme .grid-item:hover .post-thumbnail::after,
.finepedia-theme .post-hover:hover .post-thumbnail::after,
.fp-mega-menu__post-link:hover .fp-mega-menu__post-thumb::after,
.finepedia-theme .fp-widget-posts-grid a:hover .fp-post-thumb::after,
.fp-featured-card:hover::after,
.wiki-related-card:hover .wiki-related-thumb::after {
    background: rgba(255, 255, 255, 0.08);
}
.fp-grid-item .fp-card-title {
    font-size: 20px;
    line-height: 1.3em;
    font-weight: 600;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.fp-grid-item .fp-card-title a {
    color: #444;
    text-decoration: none;
}
.fp-grid-item .fp-card-title a:hover {
    color: var(--fp-teal);
}
.fp-grid-item .fp-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.5em;
    color: #767676;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.fp-post-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 6px 0 4px;
    font-size: 0.72rem;
    color: #888;
    line-height: 1.2;
}

.fp-post-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.fp-post-stat i {
    font-size: 0.7rem;
    color: #aaa;
}

.fp-grid-item .fp-post-stats {
    padding: 6px 0 2px;
}

.fp-list-item--compact .fp-post-stats {
    font-size: 0.68rem;
    gap: 8px;
    padding: 4px 0 2px;
}

.fp-list-item--rich .fp-thumb .fp-play-icon {
    top: auto;
    left: auto;
    bottom: 8px;
    right: 8px;
    transform: none;
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
}

.fp-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Featured row */
.fp-featured-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 15px;
    margin-bottom: 20px;
}
.fp-featured-card {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 3px;
    background: #eef1f3;
    display: block;
}
.fp-featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fp-featured-card .overlay-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 20px 10px 8px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Sidebars — uniform s1 & s2 */
.finepedia-theme .sidebar.s1,
.finepedia-theme .sidebar.s2,
.finepedia-theme .sidebar.s1 .sidebar-content,
.finepedia-theme .sidebar.s2 .sidebar-content {
    background: var(--fp-sidebar-bg) !important;
}

.finepedia-theme .sidebar .sidebar-content {
    padding: 0;
}

.finepedia-theme.col-3cm .sidebar.s2 {
    width: 340px;
    margin-right: -340px;
}

.finepedia-theme.col-3cm .main-inner {
    padding-right: 340px;
}

.finepedia-theme.col-3cm .container-inner > .main::after {
    padding-right: 340px;
}

@media only screen and (min-width: 961px) and (max-width: 1200px) {
    .finepedia-theme.col-3cm .main-inner {
        padding-right: 50px;
    }

    .finepedia-theme.col-3cm .container-inner > .main::after {
        padding-right: 50px;
    }

    .finepedia-theme.col-3cm .sidebar.s2 {
        width: 50px;
        margin-right: -50px;
    }
}

@media only screen and (min-width: 480px) and (max-width: 960px) {
    .finepedia-theme.col-3cm .main-inner {
        padding-right: 50px;
    }

    .finepedia-theme.col-3cm .container-inner > .main::after {
        padding-right: 50px;
    }

    .finepedia-theme.col-3cm .sidebar.s2 {
        width: 50px;
        margin-right: -50px;
    }
}

/* Sidebar widgets — transparent on shared sidebar bg */
.finepedia-theme .sidebar .widget {
    background: transparent;
    margin-bottom: 0;
    padding: var(--fp-sidebar-pad-y) var(--fp-sidebar-pad-x);
    border-bottom: 1px solid var(--fp-border);
    box-sizing: border-box;
}

.finepedia-theme .sidebar .widget:last-child {
    border-bottom: none;
}

.finepedia-theme .sidebar .widget h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fp-dark);
    border-bottom: 2px solid var(--fp-teal);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.finepedia-theme .sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.finepedia-theme .sidebar .widget ul li {
    border-bottom: 1px solid var(--fp-border);
    padding: 8px 0;
}

.finepedia-theme .sidebar .widget ul li a {
    color: var(--fp-gray);
    text-decoration: none;
    font-size: 0.99rem;
}

.finepedia-theme .sidebar .widget ul li a:hover {
    color: var(--fp-teal);
}

/* Follow widget — teal bar with social icons (left sidebar only) */
.fp-follow-widget {
    background: var(--fp-teal-nav) !important;
    padding: 0 !important;
    border-bottom: none !important;
}
.fp-follow-widget .fp-follow-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
}
.fp-follow-widget .fp-follow-label {
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}
.fp-follow-widget .fp-follow-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}
.fp-follow-widget .fp-follow-icons a {
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s;
}
.fp-follow-widget .fp-follow-icons a:hover {
    color: #efb93f;
}

/* Editor's Choice bar — right sidebar (matches follow layout, gold bg) */
.fp-follow-widget.fp-editors-choice-bar {
    background: #efb93f !important;
    padding: 0 !important;
    border-bottom: none !important;
}

.fp-follow-widget.fp-editors-choice-bar .fp-follow-label {
    color: #fff;
}

.fp-editors-choice-list {
    padding: var(--fp-sidebar-pad-y) var(--fp-sidebar-pad-x) !important;
}

.fp-editors-choice-bar + .fp-editors-choice-list {
    border-top: none;
}

/* Sidebar post list widgets (Trending, Editor's Choice, Recent Posts) */
.fp-trending-widget .fp-list-item {
    padding: 8px 0;
}

/* Left sidebar bottom banner */
.fp-sidebar-bottom-ad__body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 2px;
}

.fp-sidebar-bottom-ad__body a {
    display: block;
    text-align: center;
}

/* Right sidebar native/context ad — matches trending widget shell */
.fp-sidebar-native-ad__body {
    font-family: var(--fp-font);
    font-size: 0.99rem;
    line-height: 1.5;
    color: var(--fp-gray);
}

.fp-sidebar-native-ad__body a {
    color: var(--fp-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.fp-sidebar-native-ad__body a:hover {
    color: var(--fp-teal);
}

.fp-sidebar-native-ad__body img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.fp-sidebar-native-ad__body .fp-sample-ad {
    margin: 0;
}

.fp-sidebar-native-ad__body p {
    margin: 0 0 10px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #767676;
}

.fp-sidebar-native-ad__body p:last-child {
    margin-bottom: 0;
}

.fp-sidebar-native-ad__body strong,
.fp-sidebar-native-ad__body b {
    font-weight: 700;
    color: #2d2d2d;
}

/* Sidebar cards — transparent (founder, Wikipedia, about, etc.) */
.finepedia-theme .sidebar .fp-sidebar-card {
    background: transparent !important;
    border-radius: 0;
    padding: var(--fp-sidebar-pad-y) var(--fp-sidebar-pad-x) !important;
    margin-bottom: 0 !important;
}

.finepedia-theme .sidebar .fp-sidebar-card h3.fp-sidebar-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fp-dark);
    border-bottom: 2px solid var(--fp-teal);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.fp-sidebar-card__title {
    line-height: 1.3;
}

.fp-founder-widget__photo {
    margin-bottom: 12px;
}

.fp-founder-widget__photo img {
    display: block;
    width: 110px;
    height: auto;
    border-radius: 2px;
}

.fp-founder-widget__name {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d2d2d;
    line-height: 1.35;
}

.fp-founder-widget__role {
    margin: 0 0 12px;
    font-size: 0.88rem;
    font-weight: 400;
    color: #666;
    line-height: 1.4;
}

.fp-founder-widget__bio {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #767676;
}

.fp-wikipedia-widget__text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #767676;
}

.fp-about-finepedia-widget__text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #666;
}

.fp-founder-widget__social {
    margin-top: 16px;
}

.fp-founder-widget__social-label {
    margin: 0 0 10px;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.4;
}

.fp-founder-widget__social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fp-founder-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fp-teal-nav);
    background: transparent;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.2s;
}

.fp-founder-social:hover {
    color: var(--fp-teal-dark);
}

.fp-wikipedia-widget {
    margin-bottom: 0;
}

/* Sample ad placeholders */
.fp-ad-widget {
    padding: var(--fp-sidebar-pad-y) var(--fp-sidebar-pad-x) !important;
    overflow: hidden;
    margin-bottom: 0 !important;
}
.finepedia-theme .content .post-nav,
.wiki-article-main .post-nav--header {
    max-width: 100%;
    margin: 0 auto 16px;
    padding: 0 0px;
}
.ad-slot--footer {
    max-width: 728px;
    margin: 0 auto;
}
.finepedia-theme #footer > .fp-ad-widget.ad-slot--footer {
    padding-top: var(--fp-sidebar-pad-y);
    padding-bottom: var(--fp-sidebar-pad-y);
    margin-bottom: 0;
}
.fp-sample-ad {
    background: linear-gradient(135deg, #f8fbfb 0%, #eef6f6 100%);
    border: 2px dashed var(--fp-teal);
    border-radius: 8px;
    padding: 18px 16px;
    text-align: center;
}
.fp-sample-ad__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
}
.fp-sample-ad__size {
    display: block;
    font-size: 1.1rem;
    color: var(--fp-teal-dark);
    margin-bottom: 6px;
}
.fp-sample-ad__hint {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
}

/* About widget */
.finepedia-theme .sidebar .fp-about-widget {
    text-align: center;
}

.finepedia-theme .sidebar .fp-about-widget p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 12px;
}

.finepedia-theme .sidebar .fp-about-widget .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 10px;
    object-fit: cover;
}

/* Footer — finepedia.com layout (Hueman structure + custom skin) */
.finepedia-theme #footer {
    margin-top: 30px;
}

.finepedia-theme #footer-widgets {
    background: #fff;
    padding-top: 0;
    padding-bottom: 8px;
}

.finepedia-theme .fp-footer-category-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0 20px;
}

.finepedia-theme .fp-footer-category-grid::before,
.finepedia-theme .fp-footer-category-grid::after,
.finepedia-theme #footer-widgets .group::before,
.finepedia-theme #footer-widgets .group::after {
    content: none;
    display: none;
}

.finepedia-theme .fp-footer-category-grid .footer-widget-col {
    min-width: 0;
}

.finepedia-theme #footer-widgets .widget-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #767676;
    margin-bottom: 8px;
}

.finepedia-theme #footer-widgets .widget {
    padding: 0 0 20px;
    color: #666;
}

.finepedia-theme #footer-widgets .widget_nav_menu ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.finepedia-theme #footer-widgets .widget_nav_menu ul li a {
    display: block;
    padding: 8px 0;
    border-bottom: 0px solid #f2f2f2;
    color: #666;
    font-size: 0.875rem;
    text-decoration: none;
}

.finepedia-theme #footer-widgets .widget_nav_menu ul li a::before,
.finepedia-theme #footer-widgets .widget_nav_menu ul li a:before {
    content: none !important;
    display: none !important;
}

.finepedia-theme #footer-widgets .widget_nav_menu ul li a:hover {
    color: #444;
}

.finepedia-theme #footer-widgets .fp-footer-follow-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #767676;
    margin: 0;
}

/* Horizontal category bar */
.finepedia-theme #nav-footer.nav-container {
    background: #dbdbdb;
    border-top: 1px solid #bdbdbd;
    border-bottom: 1px solid #bdbdbd;
}

.finepedia-theme #nav-footer .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.finepedia-theme #nav-footer .nav > li > a {
    display: block;
    padding: 12px 16px;
    color: #33363b;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 500;
}

.finepedia-theme #nav-footer .nav > li > a:hover {
    background: #f0f0f0;
    color: #666;
}

/* Bottom bar — light grey like finepedia.com */
.finepedia-theme #footer-bottom {
    background: #f0f0f0;
    position: relative;
}

.finepedia-theme #footer-bottom .hu-pad {
    padding-top: 36px;
    padding-bottom: 28px;
}

.finepedia-theme #footer-bottom a {
    color: #666;
}

.finepedia-theme #footer-bottom a:hover {
    color: #333;
}

.finepedia-theme #footer-bottom #footer-logo {
    display: block;
    max-height: 48px;
    width: auto;
    margin-bottom: 16px;
}

.finepedia-theme #footer-bottom #copyright,
.finepedia-theme #footer-bottom #copyright p {
    color: #767676;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.finepedia-theme #footer-bottom #copyright a {
    margin-right: 10px;
    text-decoration: none;
}

.finepedia-theme #footer-bottom #copyright a:hover {
    text-decoration: underline;
}

.finepedia-theme #back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--fp-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        background-color 0.2s ease;
    pointer-events: none;
}

.finepedia-theme #back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.finepedia-theme #back-to-top i {
    font-size: 1.35rem;
    line-height: 1;
}

.finepedia-theme #back-to-top:hover {
    background: var(--fp-teal-dark);
    color: #fff;
}

.finepedia-theme #footer-bottom .social-links {
    list-style: none;
    margin: 0;
    padding: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.finepedia-theme #footer-bottom .social-links li {
    display: inline-block;
}

.finepedia-theme #footer-bottom .social-links a {
    color: #202020;
    font-size: 1.35rem;
    text-decoration: none;
}

.finepedia-theme #footer-bottom .social-links a:hover {
    color: #000;
    opacity: 0.85;
}

@media only screen and (max-width: 1199px) {
    .finepedia-theme .fp-footer-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 719px) {
    .finepedia-theme .fp-footer-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 16px;
    }

    .finepedia-theme #footer-widgets .footer-widget-1,
    .finepedia-theme #footer-widgets .footer-widget-2,
    .finepedia-theme #footer-widgets .footer-widget-3,
    .finepedia-theme #footer-widgets .footer-widget-4 {
        width: 100%;
        float: none;
    }

    .finepedia-theme #nav-footer .nav {
        flex-direction: column;
        align-items: stretch;
    }

    .finepedia-theme #nav-footer .nav > li > a {
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .finepedia-theme #footer-bottom .grid.one-half,
    .finepedia-theme #footer-bottom .grid.one-half.last {
        width: 100%;
        float: none;
        text-align: center;
    }

    .finepedia-theme #footer-bottom #footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .finepedia-theme #footer-bottom .social-links {
        justify-content: center;
        margin-top: 16px;
    }
}

/* Post images & videos — 16:9 ratio */
.finepedia-theme .image-container,
.finepedia-theme .video-player-wrapper,
.finepedia-theme .post-thumbnail,
.finepedia-theme .featured-item .post-thumbnail,
.fp-ratio-16x9 {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef1f3;
    margin-bottom: 20px;
    border-radius: 4px;
}

.finepedia-theme .post-thumbnail,
.finepedia-theme .featured-item .post-thumbnail {
    margin-bottom: 12px;
}

.finepedia-theme .image-container img,
.finepedia-theme .post-thumbnail img,
.finepedia-theme .featured-item .post-thumbnail img,
.fp-ratio-16x9 > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.finepedia-theme .post-thumbnail a,
.finepedia-theme .featured-item .post-thumbnail a,
.finepedia-theme .image-container a,
.fp-ratio-16x9 > a {
    display: block;
    width: 100%;
    height: 100%;
}

.finepedia-theme .video-player-wrapper iframe,
.finepedia-theme .video-player-wrapper video,
.finepedia-theme .video-player-wrapper #player-container,
.finepedia-theme .video-player-wrapper #html5-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.finepedia-theme .video-player-wrapper #player-container iframe {
    width: 100%;
    height: 100%;
}

.fp-admin .fp-ratio-16x9,
.fp-ratio-16x9 {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef1f3;
}

.fp-admin .fp-ratio-16x9 img,
.fp-ratio-16x9 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.finepedia-theme .fp-post-media-placeholder {
    width: 100%;
    height: 100%;
    background: #eef1f3;
}

.finepedia-theme .fp-widget-posts-grid .fp-post-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef1f3;
}

.finepedia-theme .fp-widget-posts-grid .fp-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fp-related-posts {
    margin-top: 28px;
}

.wiki-page .wiki-article-layout {
    padding-bottom: 0;
}

.wiki-page > .hu-pad.group {
    padding-top: 0;
}

.wiki-page > .hu-pad.group .fp-related-posts {
    margin-top: 28px;
    margin-bottom: 0;
}

.fp-related-posts .fp-section-heading {
    font-size: 24px;
}

.fp-related-posts .fp-section-heading i {
    margin-right: 6px;
    color: var(--fp-teal);
}

@media (max-width: 991.98px) {
    .fp-related-posts .fp-section-heading {
        font-size: 17.6px;
    }
}

@media (max-width: 575.98px) {
    .fp-related-posts .fp-section-heading {
        font-size: 16px;
    }
}

.fp-related-posts .fp-grid-4 {
    padding-bottom: 0;
}

/* Post native ad — between SEO keywords and related posts */
.fp-post-native-ad {
    margin-top: 28px;
}

.fp-post-native-ad .fp-section-heading i {
    margin-right: 6px;
    color: var(--fp-teal);
}

.fp-post-native-ad__body {
    font-family: var(--fp-font);
    font-size: var(--fp-text-base);
    line-height: 1.55;
    color: var(--fp-dark);
}

.fp-post-native-ad__body a {
    color: var(--fp-teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

.fp-post-native-ad__body a:hover {
    color: var(--fp-teal-dark);
    text-decoration: underline;
}

.fp-post-native-ad__body img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.fp-post-native-ad__body .fp-sample-ad {
    margin: 0;
}

.wiki-page > .hu-pad.group .fp-post-native-ad {
    margin-top: 28px;
    margin-bottom: 0;
}

/* Home native ad — under Featured Stories */
.fp-home-featured-native-ad {
    margin-top: 0;
}

.fp-home-featured-native-ad__body .fp-sample-ad {
    margin: 0;
}

/* Post prev/next navigation */
.finepedia-theme .content .post-nav,
.wiki-article-main .post-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    list-style: none;
    margin: 16px 0 24px;
    padding: 0;
    border-top: 2px solid var(--fp-border);
    border-bottom: 2px solid var(--fp-border);
}

.finepedia-theme .content .post-nav li,
.wiki-article-main .post-nav li {
    display: flex;
    flex: 1 1 50%;
    max-width: 50%;
    float: none !important;
    min-height: 4.56em;
}

.finepedia-theme .content .post-nav li.previous,
.wiki-article-main .post-nav li.previous {
    text-align: left;
    box-shadow:
        1px 0 0 var(--fp-border),
        inset -1px 0 0 var(--fp-border);
}

.finepedia-theme .content .post-nav li.next,
.wiki-article-main .post-nav li.next {
    text-align: right;
    box-shadow:
        -1px 0 0 var(--fp-border),
        inset 1px 0 0 var(--fp-border);
}

/* Only a next link — keep it on the right */
.finepedia-theme .content .post-nav li.next:first-child:last-child,
.wiki-article-main .post-nav li.next:first-child:last-child {
    margin-left: auto;
}

.finepedia-theme .content .post-nav .post-nav__link,
.wiki-article-main .post-nav .post-nav__link {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-height: 4.56em;
    padding: 0;
    color: inherit;
    text-decoration: none;
    position: relative;
}

.finepedia-theme .content .post-nav li.next .post-nav__link,
.wiki-article-main .post-nav li.next .post-nav__link {
    flex-direction: row-reverse;
}

.finepedia-theme .content .post-nav li.previous .post-nav__link,
.wiki-article-main .post-nav li.previous .post-nav__link {
    flex-direction: row;
}

.finepedia-theme .content .post-nav .post-nav__icon,
.wiki-article-main .post-nav .post-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    align-self: stretch;
    color: var(--fp-dark);
    background: transparent;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.finepedia-theme .content .post-nav .post-nav__icon i,
.wiki-article-main .post-nav .post-nav__icon i {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    margin-top: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.finepedia-theme .content .post-nav .post-nav__link:hover .post-nav__icon,
.wiki-article-main .post-nav .post-nav__link:hover .post-nav__icon {
    background-color: rgba(0, 0, 0, 0.06);
    color: var(--fp-teal-dark);
}

.finepedia-theme .content .post-nav .post-nav__text,
.wiki-article-main .post-nav .post-nav__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    align-self: baseline;
    min-width: 0;
    min-height: auto;
    padding: 0.65em 16px;
}

.finepedia-theme .content .post-nav li.next .post-nav__text,
.wiki-article-main .post-nav li.next .post-nav__text {
    align-items: flex-end;
    text-align: right;
}

.finepedia-theme .content .post-nav li.previous .post-nav__text,
.wiki-article-main .post-nav li.previous .post-nav__text {
    align-items: flex-start;
    text-align: left;
}

.finepedia-theme .content .post-nav .post-nav__label,
.wiki-article-main .post-nav .post-nav__label {
    display: block;
    font-family: var(--fp-font);
    font-size: var(--fp-text-sm);
    font-weight: var(--fp-weight-normal);
    color: var(--fp-gray);
    letter-spacing: normal;
    text-transform: none;
    margin-bottom: 0.15em;
}

.finepedia-theme .content .post-nav .post-nav__title,
.wiki-article-main .post-nav .post-nav__title {
    display: block;
    font-family: var(--fp-font);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--fp-dark);
    transition: color 0.2s ease;
}

.finepedia-theme .content .post-nav .post-nav__link:hover .post-nav__title,
.wiki-article-main .post-nav .post-nav__link:hover .post-nav__title {
    color: var(--fp-teal-dark);
}

@media (max-width: 719px) {
    .finepedia-theme .content .post-nav li,
    .wiki-article-main .post-nav li {
        flex: 1 1 100%;
        max-width: 100%;
        box-shadow: none !important;
    }
}

/* Contents / Portals index (Wikipedia-style category directory) */
.fp-contents-page {
    padding-top: 20px;
}

.fp-contents-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--fp-teal);
}

.fp-contents-title {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 600;
    color: var(--fp-dark);
    line-height: 1.25;
}

.fp-contents-intro {
    margin: 0;
    max-width: 760px;
    color: #555;
    line-height: 1.6;
}

.fp-contents-nav {
    margin-bottom: 28px;
    background: #f8fafa;
    border: 1px solid var(--fp-border);
    border-radius: 4px;
    padding: 12px 14px;
}

.fp-contents-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.fp-contents-nav a {
    color: var(--fp-teal-dark, #2a9a9a);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.fp-contents-nav a:hover {
    color: var(--fp-teal);
    text-decoration: underline;
}

.fp-contents-portals {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.fp-contents-portal {
    background: var(--fp-white);
    border: 1px solid var(--fp-border);
    border-radius: 4px;
    overflow: hidden;
}

.fp-contents-portal__header {
    padding: 14px 18px;
    background: #f3f8f8;
    border-bottom: 1px solid var(--fp-border);
}

.fp-contents-portal__header h2 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.fp-contents-portal__header h2 a {
    color: var(--fp-dark);
    text-decoration: none;
}

.fp-contents-portal__header h2 a:hover {
    color: var(--fp-teal);
}

.fp-contents-portal__header p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.fp-contents-portal__body {
    padding: 16px 18px 18px;
}

.fp-contents-links {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 3;
    column-gap: 28px;
}

.fp-contents-links li {
    break-inside: avoid;
    margin: 0 0 8px;
    padding-left: 14px;
    position: relative;
}

.fp-contents-links li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fp-teal);
}

.fp-contents-links a {
    color: #333;
    text-decoration: none;
    line-height: 1.45;
}

.fp-contents-links a:hover {
    color: var(--fp-teal);
    text-decoration: underline;
}

.fp-contents-empty {
    margin: 0;
    padding: 14px 18px;
    color: #888;
}

@media (max-width: 900px) {
    .fp-contents-links {
        columns: 2;
    }
}

@media (max-width: 600px) {
    .fp-contents-title {
        font-size: 1.6rem;
    }

    .fp-contents-links {
        columns: 1;
    }
}

/* Hueman grid overrides — keep 16:9 thumbs full width */
.finepedia-theme .grid-item .post-thumbnail,
.finepedia-theme #grid-wrapper .post-thumbnail {
    margin-left: 0;
    max-width: none;
    float: none;
}

.finepedia-theme .post-thumbnail .thumb-icon,
.finepedia-theme .post-thumbnail .post-comments,
.fp-card-thumb .fp-play-icon,
.fp-list-item .fp-thumb .fp-play-icon {
    z-index: 2;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .fp-grid-4,
    .fp-featured-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .fp-row-2col {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    #fp-topbar .container-inner {
        grid-template-columns: 1fr;
    }
    .fp-topbar-nav {
        width: 100%;
    }
    .fp-topbar-menu > li > a {
        height: 44px;
        padding: 0 8px;
    }
    .fp-mega-menu__layout {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: 0;
    }
    .fp-mega-menu__categories .fp-mega-menu__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px 16px;
    }
    .fp-mega-menu__posts {
        grid-template-columns: 1fr;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--fp-border);
        padding-top: 16px;
    }
    .fp-mega-menu {
        min-height: 0;
        padding: 16px 0 18px;
    }
    .fp-mega-menu__post-list {
        min-height: 0;
    }
    .fp-mega-menu__post-item,
    .fp-mega-menu__post-link {
        min-height: 48px;
    }
    #fp-branding.fp-branding--inner {
        padding: 8px 0;
    }
    .fp-branding-inner {
        flex-wrap: wrap;
        gap: 12px;
    }
    .fp-branding-actions {
        margin-left: 0;
    }
    #fp-branding.fp-branding--inner .fp-branding-actions {
        margin-left: auto;
    }
    #fp-branding.fp-branding--inner .fp-branding-inner {
        grid-template-columns: 1fr;
    }
    #fp-branding.fp-branding--inner .site-logo {
        grid-column: 1;
        justify-self: center;
    }
    #fp-branding.fp-branding--inner .fp-branding-search {
        grid-column: 1;
        max-width: 100%;
        width: 100%;
    }
    .fp-branding-search.fp-search-align {
        max-width: 100%;
    }
    .fp-branding-search .fp-search-pill {
        width: 100%;
    }
    .fp-search-pill {
        flex-direction: column;
        border-radius: 24px;
        padding: 12px;
    }
    .fp-search-button {
        width: 100%;
    }
    .fp-popular-tags {
        flex-direction: column;
        align-items: flex-start;
    }
    .fp-tags-carousel-wrapper {
        width: 100%;
    }
    .fp-grid-4,
    .fp-featured-row {
        grid-template-columns: 1fr;
    }
}

/* Admin theme overrides */
.fp-admin {
    --bs-primary: #33b5b5;
    --bs-primary-rgb: 51, 181, 181;
}
.fp-admin .sidebar-admin {
    background: #1e293b !important;
}
.fp-admin .sidebar-admin .nav-link.active,
.fp-admin .sidebar-admin .nav-link:hover {
    background: var(--fp-teal) !important;
    color: #fff !important;
}
.fp-admin .stat-card {
    border-left-color: var(--fp-teal) !important;
}
.fp-admin .btn-primary {
    background: var(--fp-teal);
    border-color: var(--fp-teal);
}
.fp-admin .btn-primary:hover {
    background: var(--fp-teal-dark);
    border-color: var(--fp-teal-dark);
}

/* User dashboard */
.fp-user-dash .dash-card {
    border-top: 3px solid var(--fp-teal);
    border-radius: 4px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.fp-user-dash .dash-card h3 {
    color: var(--fp-dark);
    font-size: 1rem;
    font-weight: 700;
}
.fp-user-dash .dash-stat {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fp-teal);
}

/* Menu builder */
.menu-builder-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: grab;
}
.menu-builder-item .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.menu-builder-children {
    margin-left: 30px;
    margin-top: 5px;
    padding-left: 15px;
    border-left: 2px solid var(--fp-teal);
}
.sortable-ghost {
    opacity: 0.4;
    background: #e8f8f8;
}

/* Typography — Hueman / finepedia.com alignment */
body.finepedia-theme {
    font-family: var(--fp-font) !important;
}

body.finepedia-theme .post-title,
body.finepedia-theme .entry-title {
    font-size: var(--fp-text-xl);
    font-weight: var(--fp-weight-normal);
    line-height: var(--fp-leading);
    color: #444;
}

body.finepedia-theme .entry h1,
body.finepedia-theme .entry .fp-rich-content h1,
body.finepedia-theme .wiki-article-body h1 {
    font-size: 2.375em;
    font-weight: var(--fp-weight-normal);
    letter-spacing: -1px;
    line-height: var(--fp-leading-tight);
}

body.finepedia-theme .entry h2,
body.finepedia-theme .entry .fp-rich-content h2,
body.finepedia-theme .wiki-article-body h2 {
    font-size: 1.95em;
    font-weight: var(--fp-weight-normal);
    letter-spacing: -0.7px;
    line-height: var(--fp-leading-tight);
}

body.finepedia-theme .entry h3,
body.finepedia-theme .entry .fp-rich-content h3,
body.finepedia-theme .wiki-article-body h3 {
    font-size: 1.5em;
    font-weight: var(--fp-weight-normal);
    letter-spacing: -0.5px;
    line-height: var(--fp-leading-tight);
}

body.finepedia-theme .entry h4,
body.finepedia-theme .entry .fp-rich-content h4,
body.finepedia-theme .wiki-article-body h4 {
    font-size: 1.5em;
    font-weight: var(--fp-weight-normal);
    letter-spacing: -0.3px;
}

body.finepedia-theme .entry h5,
body.finepedia-theme .entry h6,
body.finepedia-theme .entry .fp-rich-content h5,
body.finepedia-theme .entry .fp-rich-content h6,
body.finepedia-theme .wiki-article-body h5,
body.finepedia-theme .wiki-article-body h6,
body.finepedia-theme .heading {
    font-size: var(--fp-text-lg);
    font-weight: var(--fp-weight-semibold);
    text-transform: uppercase;
}

body.finepedia-theme .widget > h3 {
    font-size: var(--fp-text-md);
    font-weight: var(--fp-weight-normal);
    text-transform: uppercase;
    color: #444;
}

body.finepedia-theme .widget {
    font-size: var(--fp-text-md);
    color: #777;
}

/* Sidebar widgets use unified rules above — don't inherit main-content widget overrides */
body.finepedia-theme .sidebar .widget {
    font-size: inherit;
    color: inherit;
    background: transparent;
}

body.finepedia-theme .sidebar .widget > h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fp-dark);
}

body.finepedia-theme :where(pre, code, kbd, samp) {
    font-family: Consolas, Monaco, "Courier New", monospace;
}

/* Auth page — CodePen-inspired card, Finepedia theme */
.fp-auth-page #fp-branding.fp-branding--inner {
    position: relative;
    top: auto;
    z-index: auto;
}
.fp-auth-page .content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}
.fp-auth-page .main,
.fp-auth-page .main-inner {
    min-width: 0;
}
/* Login route only — show page background instead of white panels */
.fp-auth-page--login .main,
.fp-auth-page--login .main-inner {
    background: transparent !important;
}
.fp-auth-page--login .fp-auth-form-card {
    background: transparent;
    box-shadow: none;
    border-color: transparent;
}
.fp-auth-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 16px 56px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.fp-auth-form-card {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    background: #fff;
    border-radius: 20px;
    padding: 28px 28px 22px;
    box-shadow: 0 12px 40px rgba(18, 29, 48, 0.1);
    border: 1px solid var(--fp-border);
    box-sizing: border-box;
    overflow: hidden;
}
.fp-auth-card-title {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: var(--fp-weight-bold);
    color: var(--fp-black);
    text-align: center;
}
.fp-auth-card-subtitle {
    margin: 0 0 4px;
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    line-height: 1.5;
}
.fp-auth-tabs-pill {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 22px 0 24px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 15px;
    background: #fafafa;
    gap: 4px;
    box-sizing: border-box;
}
.fp-auth-tab {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #555;
    font-size: 0.95rem;
    font-weight: var(--fp-weight-semibold);
    font-family: inherit;
    cursor: pointer;
    transition:
        background 0.25s,
        color 0.25s,
        box-shadow 0.25s;
}
.fp-auth-tab:hover:not(.is-active) {
    color: var(--fp-teal-dark);
}
.fp-auth-tab.is-active {
    color: #fff;
    background: linear-gradient(
        90deg,
        var(--fp-teal-dark) 0%,
        var(--fp-teal-nav) 100%
    );
    box-shadow: 0 4px 14px rgba(51, 181, 181, 0.35);
}
.fp-auth-panel {
    display: none;
}
.fp-auth-panel.is-active {
    display: block;
    min-width: 0;
    max-width: 100%;
}
.fp-auth-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.fp-auth-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--fp-dark);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    margin-bottom: 14px;
}
.fp-auth-input::placeholder {
    color: #a0a6a3;
}
.fp-auth-input:focus {
    outline: none;
    border-color: var(--fp-teal-nav);
    box-shadow: 0 2px 12px rgba(51, 181, 181, 0.18);
}
.fp-auth-password-field {
    position: relative;
    margin-bottom: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.fp-auth-password-field .fp-auth-input {
    margin-bottom: 0;
    padding-right: 44px;
}
.fp-auth-password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #888;
    border-radius: 8px;
    cursor: pointer;
}
.fp-auth-password-toggle:hover {
    color: #555;
    background: #f5f5f5;
}
.fp-auth-forgot {
    display: block;
    width: 100%;
    margin: 2px 0 14px;
    font-size: 0.85rem;
    color: var(--fp-teal-nav);
    text-decoration: none;
}
.fp-auth-forgot:hover {
    color: var(--fp-teal-dark);
    text-decoration: underline;
}
.fp-form-error {
    display: block;
    color: #c0392b;
    font-size: 0.8rem;
    margin: -8px 0 10px;
}
.fp-auth-remember {
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #666;
}
.fp-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.fp-auth-submit {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: var(--fp-weight-semibold);
    font-family: inherit;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(
        90deg,
        var(--fp-teal-dark) 0%,
        var(--fp-teal-nav) 100%
    );
    box-shadow: 0 4px 16px rgba(51, 181, 181, 0.35);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.fp-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(51, 181, 181, 0.45);
}
.fp-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 14px;
    color: #999;
    font-size: 0.8rem;
}
.fp-auth-divider::before,
.fp-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}
.fp-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.fp-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 11px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-decoration: none;
    color: #444;
    font-size: 0.9rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition:
        background 0.2s,
        border-color 0.2s;
}
.fp-social-btn:hover {
    background: #f8fafa;
    border-color: var(--fp-teal-nav);
}
.fp-social-btn--google i {
    color: #db4437;
}
.fp-social-btn--facebook i {
    color: #1877f2;
}
.fp-auth-form-card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}
.fp-auth-form-card-footer p {
    margin: 0;
}
.fp-auth-switch-tab {
    border: none;
    background: none;
    padding: 0;
    color: var(--fp-teal-nav);
    font-weight: var(--fp-weight-semibold);
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
}
.fp-auth-switch-tab:hover {
    color: var(--fp-teal-dark);
    text-decoration: underline;
}
.fp-auth-alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}
.fp-auth-alert--success {
    background: #e8f5e9;
    color: #2e7d32;
}
.fp-auth-alert--error {
    background: #fdecea;
    color: #c62828;
}
.fp-auth-verify-text {
    margin: 0 0 20px;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: center;
}
.fp-auth-verify-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fp-auth-link-btn {
    border: none;
    background: none;
    padding: 0;
    color: var(--fp-teal-nav);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-align: center;
}

@media (max-width: 480px) {
    .fp-mega-menu__grid {
        grid-template-columns: 1fr;
    }
    .hero-tagline__title {
        font-size: 1.45rem;
    }
    .hero-tagline__subtitle {
        font-size: 0.95rem;
    }
}

/* Article listener (Web Speech API) */
.fp-article-listener {
    margin: 14px 0 12px;
    padding: 0;
    background: linear-gradient(90deg, #f7fbfb 0%, #fff 100%);
    border: 1px solid rgba(61, 189, 189, 0.22);
    border-radius: 999px;
    box-shadow: 0 1px 6px rgba(61, 189, 189, 0.06);
    overflow: hidden;
    transition:
        border-color 0.25s,
        box-shadow 0.25s;
}

.fp-article-listener.is-playing {
    border-color: rgba(61, 189, 189, 0.45);
    box-shadow: 0 2px 10px rgba(61, 189, 189, 0.12);
}

.fp-article-listener.is-paused {
    border-color: rgba(245, 197, 24, 0.4);
}

.fp-article-listener.is-unsupported {
    opacity: 0.75;
}

.fp-article-listener__inner {
    display: flex;
    align-items: center;
    gap: 10px 12px;
    padding: 8px 10px 8px 12px;
    min-height: 44px;
}

.fp-article-listener__icon {
    flex-shrink: 0;
}

.fp-article-listener__icon-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(61, 189, 189, 0.12);
    color: var(--fp-teal-dark);
    font-size: 0.82rem;
    transition:
        background 0.25s,
        color 0.25s,
        transform 0.25s;
}

.fp-article-listener.is-playing .fp-article-listener__icon-ring {
    background: var(--fp-teal);
    color: #fff;
    animation: fp-listen-pulse 1.8s ease-in-out infinite;
}

@keyframes fp-listen-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

.fp-article-listener__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fp-article-listener__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    min-width: 0;
}

.fp-article-listener__title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--fp-dark);
    line-height: 1.2;
    white-space: nowrap;
}

.fp-article-listener__badge {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(61, 189, 189, 0.14);
    color: var(--fp-teal-dark);
    line-height: 1.3;
    flex-shrink: 0;
}

.fp-article-listener__status {
    margin: 0;
    font-size: 0.72rem;
    color: #7a8794;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 120px;
}

.fp-article-listener__status::before {
    content: "·";
    margin-right: 8px;
    color: #c5ccd3;
}

.fp-article-listener.is-playing .fp-article-listener__status {
    color: var(--fp-teal-dark);
}

.fp-article-listener__progress {
    height: 6px;
    background: rgba(61, 189, 189, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.fp-article-listener__progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--fp-teal), var(--fp-teal-nav));
    border-radius: 999px;
    transition: width 0.35s ease;
}

.fp-article-listener__controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.fp-listen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    transition:
        background 0.2s,
        color 0.2s,
        transform 0.15s,
        opacity 0.2s,
        box-shadow 0.2s;
}

.fp-listen-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
}

.fp-listen-btn--play {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    background: var(--fp-teal);
    color: #fff;
    box-shadow: 0 2px 8px rgba(61, 189, 189, 0.3);
}

.fp-listen-btn--play:hover:not(:disabled) {
    background: var(--fp-teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(61, 189, 189, 0.35);
}

.fp-listen-btn--play:active:not(:disabled) {
    transform: translateY(0);
}

.fp-article-listener.is-playing .fp-listen-btn--play {
    background: var(--fp-teal-dark);
}

.fp-article-listener.is-paused .fp-listen-btn--play {
    background: var(--fp-yellow);
    color: var(--fp-dark);
    box-shadow: 0 2px 8px rgba(245, 197, 24, 0.3);
}

.fp-listen-btn--secondary {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--fp-dark);
    border: 1px solid rgba(61, 189, 189, 0.25);
    font-size: 0.68rem;
}

.fp-listen-btn--secondary:hover:not(:disabled) {
    background: rgba(61, 189, 189, 0.1);
    border-color: var(--fp-teal);
    color: var(--fp-teal-dark);
}

.fp-listen-btn--secondary:active:not(:disabled) {
    transform: scale(0.96);
}

@media (max-width: 600px) {
    .fp-article-listener {
        border-radius: 12px;
    }

    .fp-article-listener__inner {
        flex-wrap: wrap;
        padding: 10px 12px;
        min-height: 0;
    }

    .fp-article-listener__meta {
        flex-basis: calc(100% - 44px);
    }

    .fp-article-listener__status {
        flex-basis: 100%;
        white-space: normal;
    }

    .fp-article-listener__status::before {
        display: none;
    }

    .fp-article-listener__controls {
        margin-left: auto;
    }
}

/* Post type badges & affiliate CTA */
.fp-post-badge {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
}
.fp-post-badge--wiki {
    background: #e8f4fd;
    color: #1565c0;
}
.fp-post-badge--video {
    background: #fce4ec;
    color: #c62828;
}
.fp-post-badge--affiliate {
    background: #fff3e0;
    color: #e65100;
}
.fp-affiliate-cta {
    margin: 24px 0;
    text-align: center;
}
.fp-affiliate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #121d30;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
}
.fp-affiliate-btn:hover {
    background: #1a2a45;
}

/* VAST video ad overlay */
.video-player-wrapper,
#finepedia-player {
    position: relative;
}

.fp-video-awaiting-preroll .fp-video-frame,
.fp-video-awaiting-preroll .fp-video-html5,
.fp-video-main-hidden {
    visibility: hidden !important;
    pointer-events: none !important;
}

.fp-video-frame,
.fp-video-frame iframe,
.fp-video-html5 {
    width: 100%;
    height: 100%;
    display: block;
}
.fp-vast-overlay {
    position: absolute;
    inset: 0;
    z-index: 100;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fp-vast-overlay--static {
    display: none;
    flex-direction: column;
}
.fp-vast-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}
.fp-vast-label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    border-radius: 3px;
    z-index: 102;
    pointer-events: none;
}
.fp-vast-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.fp-vast-skip {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 8px 16px;
    background: rgba(18, 29, 48, 0.9);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    z-index: 21;
}
.fp-vast-skip:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.fp-vast-click {
    display: block;
    width: 100%;
    height: 100%;
}

.fp-pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}
.fp-pagination-nav {
    width: 100%;
    display: flex;
    justify-content: center;
}
.fp-pagination-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}
.fp-pagination-list li a,
.fp-pagination-list li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 8px 14px;
    text-align: center;
    border: 1px solid var(--fp-border, #e8e8e8);
    border-radius: 4px;
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
    background: #fff;
    white-space: nowrap;
}
.fp-pagination-list li.active span {
    background: var(--fp-teal, #33b5b5);
    color: #fff;
    border-color: var(--fp-teal, #33b5b5);
}
.fp-pagination-list li.disabled span {
    opacity: 0.45;
    cursor: not-allowed;
}
.fp-pagination-list li a:hover {
    background: #e8f6f6;
    border-color: var(--fp-teal, #33b5b5);
    color: var(--fp-teal-dark, #2aa8a8);
}
@media (max-width: 600px) {
    .fp-search-result {
        flex-direction: column;
        gap: 10px;
    }
    .fp-search-result__thumb {
        width: 100%;
        max-width: 280px;
    }
    .fp-search-result__meta time {
        margin-left: 0;
        width: 100%;
    }
}

/* Post page hero header */
.fp-post-hero {
    margin: 0 0 28px;
}

.fp-post-hero__main {
    min-width: 0;
}

.fp-post-hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    min-height: 1.75rem;
}

.fp-post-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 0;
    color: #8a939c;
}

.fp-post-breadcrumb a {
    color: var(--fp-teal, #33b5b5);
    text-decoration: none;
}

.fp-post-breadcrumb a:hover {
    text-decoration: underline;
}

.fp-post-breadcrumb__sep {
    color: #c5ccd3;
}

.fp-post-hero__title {
    margin: 0.2em 0;
    line-height: 1.2;
}

.fp-post-hero__title strong {
    font-weight: 700;
}

.fp-post-hero__byline {
    margin: 0 0 0;
    font-size: 0.78rem;
    color: #767676;
}

.fp-post-hero__wiki-link {
    color: var(--fp-teal, #33b5b5);
    text-decoration: none;
}

.fp-post-hero__wiki-updated {
    display: inline;
    margin-left: 10px;
    color: #888;
    font-size: 0.85em;
    white-space: nowrap;
}

.fp-post-hero__wiki-link:hover {
    text-decoration: underline;
}

.fp-post-hero .fp-article-listener {
    margin: 12px 0 10px;
}

.fp-post-hero .fp-post-share--compact {
    margin: 0;
}

.post-tags {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid #e8ecef;
}

.post-tags__heading {
    margin: 0 0 16px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fp-dark, #1e293b);
    border-bottom: 2px solid var(--fp-teal, #33b5b5);
    padding-bottom: 8px;
}

.post-tags__group {
    margin-bottom: 12px;
    line-height: 1.85;
}

.post-tags__group:last-child {
    margin-bottom: 0;
}

.post-tags__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
}

/* Override Hueman .post-tags span / .post-tags a */
.post-tags .post-tags__label {
    display: inline;
    margin: 0 8px 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    vertical-align: baseline;
}

.post-tags__list {
    display: contents;
}

.post-tags .post-tags__link {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--fp-teal, #33b5b5);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    white-space: normal;
    margin: 0 8px 8px 0;
    vertical-align: baseline;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.post-tags .post-tags__link:hover,
.post-tags .post-tags__link:focus-visible {
    background: color-mix(in srgb, var(--fp-teal, #33b5b5) 18%, #fff);
    color: var(--fp-teal-dark, #2aa8a8);
}

.fp-post-share--compact .fp-post-share__label {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fp-post-share--compact .fp-post-share__row {
    gap: 10px;
}

.fp-post-stats--hero {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0;
    min-width: 0;
    flex-shrink: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #8a939c;
}

.fp-post-stats--hero .fp-post-stat {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.fp-post-stats--hero .fp-post-stat--link:hover {
    color: var(--fp-teal, #33b5b5);
}

.fp-post-stats--hero .fp-post-stat i {
    font-size: 0.98rem;
    line-height: 1;
    color: #9aa3ad;
    margin-bottom: 0;
}

.fp-post-stats--hero .fp-post-stat--link:hover i {
    color: var(--fp-teal, #33b5b5);
}

.fp-post-stats--hero .fp-post-stat__num {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    color: #6b7680;
}

.fp-post-stats--hero .fp-post-stat__label {
    display: none;
}

.wiki-article-sync {
    margin: -8px 0 18px;
    font-size: 0.82rem;
    color: #888;
}

@media (max-width: 768px) {
    .fp-post-hero__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .fp-post-stats--hero {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }
}

/* Post social share bar */
.fp-post-share {
    margin: 28px 0 20px;
    padding: 0;
}
.fp-post-share__heading {
    font-size: 1.05rem;
    font-weight: 400;
    color: #555;
    margin: 0 0 14px;
    font-style: normal;
}
.fp-post-share__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 20px;
}
.fp-post-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.fp-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: none;
    background: var(--share-color, #64748b);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition:
        transform 0.15s,
        opacity 0.15s;
    flex-shrink: 0;
}
.fp-share-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
}
.fp-share-btn--instagram {
    background: linear-gradient(
        45deg,
        #f09433,
        #e6683c,
        #dc2743,
        #cc2366,
        #bc1888
    );
}
.fp-share-btn--snapchat {
    background: #fffc00;
}
.fp-share-btn--dark-icon {
    color: #111;
}
.fp-share-btn--dark-icon:hover {
    color: #111;
}
.fp-post-share__count {
    text-align: center;
    min-width: 52px;
    flex-shrink: 0;
}
.fp-post-share__count-num {
    display: block;
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 300;
    color: #b0b8c0;
}
.fp-post-share__count-label {
    display: block;
    font-size: 0.72rem;
    color: #b0b8c0;
    text-transform: capitalize;
    margin-top: 2px;
}
.fp-post-share__toast {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: #2e7d32;
}
@media (max-width: 480px) {
    .fp-share-btn {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
}

/* Newsletter sidebar widget */
.fp-newsletter-widget .fp-newsletter-desc {
    font-size: 0.82rem;
    line-height: 1.55;
    color: #666;
    margin: 0 0 12px;
}
.fp-newsletter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fp-newsletter-input {
    width: auto;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}
.fp-newsletter-input:focus {
    border-color: var(--fp-accent, #e74c3c);
}
.fp-newsletter-btn {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--fp-accent, #e74c3c);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.fp-newsletter-btn:hover:not(:disabled) {
    opacity: 0.9;
}
.fp-newsletter-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}
.fp-newsletter-feedback {
    margin-top: 8px;
    font-size: 0.78rem;
    min-height: 1.2em;
}
.fp-newsletter-feedback.is-success {
    color: #2e7d32;
}

/* About page — Listverse-inspired layout */
.fp-about-layout .main-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.fp-about-page {
    padding-bottom: 48px;
}

.fp-about-hero {
    background: linear-gradient(180deg, #f8fbfb 0%, #eef3f3 100%);
    padding: 48px 24px 40px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.fp-about-hero__inner {
    max-width: 820px;
    margin: 0 auto;
}

.fp-about-hero__title {
    font-family: var(--fp-font);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--fp-dark);
    margin: 0 0 24px;
    line-height: 1.2;
}

.fp-about-intro p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #334155;
    margin: 0 0 16px;
}

.fp-about-intro p:last-child {
    margin-bottom: 0;
}

.fp-about-section {
    padding: 48px 24px;
}

.fp-about-section__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.fp-about-section__title {
    font-family: var(--fp-font);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--fp-dark);
    text-align: center;
    margin: 0 0 32px;
}

.fp-about-process {
    background: #fff;
}

.fp-about-process__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.fp-about-process__card {
    background: #f8fafb;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 24px;
}

.fp-about-process__card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fp-dark);
    margin: 0 0 12px;
}

.fp-about-process__card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
    margin: 0;
}

.fp-about-trusted {
    background: #121d30;
    color: #fff;
    text-align: center;
}

.fp-about-trusted .fp-about-section__title {
    color: #fff;
}

.fp-about-trusted__text {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.92;
}

.fp-about-stats {
    background: #f1f5f9;
}

.fp-about-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.fp-about-stats__item {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.fp-about-stats__value {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--fp-teal);
    line-height: 1.2;
    margin-bottom: 8px;
}

.fp-about-stats__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fp-about-team {
    background: #fff;
}

.fp-about-team__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.fp-about-team__card {
    text-align: center;
}

.fp-about-team__photo-wrap {
    margin-bottom: 16px;
}

.fp-about-team__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border: 4px solid #eef3f3;
}

.fp-about-team__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 2rem;
}

.fp-about-team__name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fp-dark);
    margin: 0 0 4px;
}

.fp-about-team__role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fp-teal);
    margin: 0 0 12px;
}

.fp-about-team__bio {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #475569;
    margin: 0;
    text-align: left;
}

.fp-about-callout {
    background: var(--fp-teal);
    color: #fff;
    padding: 28px 24px;
    text-align: center;
}

.fp-about-callout p {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.fp-about-contact {
    text-align: center;
    background: #f8fafb;
}

.fp-about-contact__text {
    font-size: 1.05rem;
    color: #475569;
    margin: 0 0 12px;
}

.fp-about-contact__email {
    font-size: 1.05rem;
    margin: 0;
}

.fp-about-contact__email a {
    color: var(--fp-teal);
    font-weight: 600;
    text-decoration: none;
}

.fp-about-contact__email a:hover {
    text-decoration: underline;
}

.fp-about-disclaimer {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.fp-about-disclaimer p {
    max-width: 820px;
    margin: 0 auto;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #64748b;
    text-align: center;
}

@media (max-width: 900px) {
    .fp-about-process__grid,
    .fp-about-team__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fp-about-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .fp-about-hero {
        padding: 32px 16px 28px;
    }

    .fp-about-section {
        padding: 36px 16px;
    }

    .fp-about-process__grid,
    .fp-about-team__grid,
    .fp-about-stats__grid {
        grid-template-columns: 1fr;
    }
}

/* 404 error page */
.fp-error-page-wrap .fp-related-posts {
    margin-top: 36px;
}

.fp-error-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 100px 0 100px;
    text-align: center;
}

.fp-error-page__code {
    margin: 0 0 8px;
    font-size: clamp(3.5rem, 12vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: color-mix(in srgb, var(--fp-teal, #33b5b5) 28%, #cbd5e1);
}

.fp-error-page__title {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--fp-dark, #1e293b);
}

.fp-error-page__text {
    margin: 0 auto 24px;
    max-width: 540px;
    font-size: 1rem;
    line-height: 1.7;
    color: #64748b;
}

.fp-error-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.fp-error-page__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #dbe3ea;
    background: #fff;
    color: var(--fp-dark, #1e293b);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.fp-error-page__btn:hover,
.fp-error-page__btn:focus-visible {
    border-color: color-mix(in srgb, var(--fp-teal, #33b5b5) 40%, #dbe3ea);
    color: var(--fp-teal-dark, #2aa8a8);
}

.fp-error-page__btn--primary {
    border-color: var(--fp-teal, #33b5b5);
    background: var(--fp-teal, #33b5b5);
    color: #fff;
}

.fp-error-page__btn--primary:hover,
.fp-error-page__btn--primary:focus-visible {
    border-color: var(--fp-teal-dark, #2aa8a8);
    background: var(--fp-teal-dark, #2aa8a8);
    color: #fff;
}

.fp-error-page--admin {
    max-width: 560px;
    margin: 48px auto;
    padding: 24px;
    text-align: center;
}
