/*
 * FaPremium Blog 2.3
 * Clean editorial WordPress theme.
 */

:root {
    --fp-font: 'Vazirmatn', 'IRANSansX', 'Yekan Bakh', Tahoma, Arial, sans-serif;
    --fp-base-size: 16px;
    --fp-article-size: 18px;
    --fp-article-leading: 1.82;
    --fp-paragraph-gap: .9em;
    --fp-heading-weight: 800;
    --fp-accent: #eb5600;
    --fp-accent-dark: #c84400;
    --fp-accent-soft: #fff4ed;
    --fp-ink: #171a21;
    --fp-heading: #111318;
    --fp-muted: #6b7280;
    --fp-subtle: #8b919c;
    --fp-line: #e8eaee;
    --fp-line-strong: #d9dde4;
    --fp-surface: #ffffff;
    --fp-surface-soft: #f7f8fa;
    --fp-surface-warm: #fcfaf8;
    --fp-success: #15803d;
    --fp-radius-sm: 10px;
    --fp-radius-md: 16px;
    --fp-radius-lg: 24px;
    --fp-radius-xl: 30px;
    --fp-shadow-sm: 0 8px 24px rgba(17, 24, 39, 0.055);
    --fp-shadow-md: 0 20px 55px rgba(17, 24, 39, 0.08);
    --fp-container: 1160px;
    --fp-media-container: 1120px;
    --fp-head-container: 900px;
    --fp-article-container: 790px;
    --fp-transition: 180ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.fp-blog-theme {
    margin: 0;
    min-width: 320px;
    color: var(--fp-ink);
    background: var(--fp-surface);
    font-family: var(--fp-font);
    font-size: var(--fp-base-size);
    font-weight: 400;
    line-height: 1.75;
    direction: rtl;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.fp-blog-theme.fp-menu-open {
    overflow: hidden;
}

.fp-blog-theme img,
.fp-blog-theme svg {
    display: block;
}

.fp-blog-theme img {
    max-width: 100%;
    height: auto;
}

.fp-blog-theme a {
    color: inherit;
    text-decoration: none;
}

.fp-blog-theme button,
.fp-blog-theme input,
.fp-blog-theme textarea,
.fp-blog-theme select {
    font: inherit;
}

.fp-blog-theme button,
.fp-blog-theme input[type='submit'] {
    cursor: pointer;
}

.fp-blog-theme h1,
.fp-blog-theme h2,
.fp-blog-theme h3,
.fp-blog-theme h4,
.fp-blog-theme h5,
.fp-blog-theme h6,
.fp-blog-theme p,
.fp-blog-theme figure,
.fp-blog-theme blockquote {
    margin-top: 0;
}

.fp-blog-theme h1,
.fp-blog-theme h2,
.fp-blog-theme h3,
.fp-blog-theme h4,
.fp-blog-theme h5,
.fp-blog-theme h6 {
    color: var(--fp-heading);
    font-weight: var(--fp-heading-weight);
    letter-spacing: -0.025em;
}

.fp-container,
.fp-media-container,
.fp-article-head-container,
.fp-article-container {
    width: calc(100% - 40px);
    margin-inline: auto;
}

.fp-container {
    max-width: var(--fp-container);
}

.fp-media-container {
    max-width: var(--fp-media-container);
}

.fp-article-head-container {
    max-width: var(--fp-head-container);
}

.fp-article-container {
    max-width: var(--fp-article-container);
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: fixed !important;
    z-index: 999999;
    top: 12px;
    right: 12px;
    width: auto;
    height: auto;
    padding: 12px 18px;
    clip: auto;
    color: var(--fp-heading);
    background: #fff;
    border: 1px solid var(--fp-line-strong);
    border-radius: 10px;
    box-shadow: var(--fp-shadow-sm);
}

.fp-site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.fp-main {
    flex: 1 0 auto;
}

/* Header: intentionally static, full-width and integrated with the page. */
.fp-site-header {
    position: relative;
    z-index: 20;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--fp-line);
}

.fp-header-inner {
    min-height: 84px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    align-items: center;
    gap: 28px;
}

.fp-header-brand {
    justify-self: start;
    min-width: 0;
}

.fp-brand,
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.custom-logo-link img {
    width: auto;
    max-width: 210px;
    max-height: 70px;
}

.fp-brand__mark {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--fp-accent);
    border-radius: 14px;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--fp-accent) 25%, transparent);
}

.fp-brand__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.fp-brand__copy strong {
    overflow: hidden;
    color: var(--fp-heading);
    font-size: 17px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-brand__copy small {
    overflow: hidden;
    color: var(--fp-subtle);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-desktop-nav {
    justify-self: center;
}

.fp-nav-menu,
.fp-nav-menu ul,
.fp-mobile-menu,
.fp-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fp-nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fp-nav-menu > li {
    position: relative;
}

.fp-nav-menu > li > a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 8px 14px;
    color: #4f5561;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: color var(--fp-transition), background var(--fp-transition);
}

.fp-nav-menu > li > a:hover,
.fp-nav-menu > li.current-menu-item > a,
.fp-nav-menu > li.current-menu-ancestor > a {
    color: var(--fp-accent);
    background: var(--fp-accent-soft);
}

.fp-nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    padding: 8px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(5px);
    background: #fff;
    border: 1px solid var(--fp-line);
    border-radius: 14px;
    box-shadow: var(--fp-shadow-md);
    transition: opacity var(--fp-transition), transform var(--fp-transition), visibility var(--fp-transition);
}

.fp-nav-menu li:hover > .sub-menu,
.fp-nav-menu li:focus-within > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.fp-nav-menu .sub-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #4f5561;
    font-size: 13px;
}

.fp-nav-menu .sub-menu a:hover {
    color: var(--fp-accent);
    background: var(--fp-accent-soft);
}

.fp-header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-header-support {
    padding: 9px 10px;
    color: #555b66;
    font-size: 14px;
    font-weight: 650;
    transition: color var(--fp-transition);
}

.fp-header-support:hover {
    color: var(--fp-accent);
}

.fp-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 19px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 750;
    transition: transform var(--fp-transition), background var(--fp-transition), border-color var(--fp-transition), box-shadow var(--fp-transition);
}

.fp-button:hover {
    transform: translateY(-1px);
}

.fp-button--primary {
    color: #fff;
    background: var(--fp-accent);
    border-color: var(--fp-accent);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--fp-accent) 20%, transparent);
}

.fp-button--primary:hover {
    background: color-mix(in srgb, var(--fp-accent) 88%, #000);
    border-color: color-mix(in srgb, var(--fp-accent) 88%, #000);
}

.fp-menu-toggle {
    width: 44px;
    height: 44px;
    display: none;
    place-items: center;
    padding: 0;
    color: var(--fp-heading);
    background: #fff;
    border: 1px solid var(--fp-line-strong);
    border-radius: 11px;
}

.fp-menu-toggle svg {
    width: 22px;
    height: 22px;
}

.fp-menu-toggle__close {
    display: none;
}

.fp-menu-toggle[aria-expanded='true'] .fp-menu-toggle__open {
    display: none;
}

.fp-menu-toggle[aria-expanded='true'] .fp-menu-toggle__close {
    display: block;
}

.fp-mobile-panel {
    border-top: 1px solid var(--fp-line);
    background: #fff;
}

.fp-mobile-panel[hidden] {
    display: none;
}

.fp-mobile-panel__inner {
    padding-top: 14px;
    padding-bottom: 18px;
}

.fp-mobile-menu li + li {
    border-top: 1px solid var(--fp-line);
}

.fp-mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: #3f444d;
    font-size: 15px;
    font-weight: 650;
}

.fp-mobile-menu .sub-menu {
    padding-right: 16px;
}

.fp-mobile-panel__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 14px;
}

.fp-mobile-panel__actions a {
    min-height: 44px;
    display: grid;
    place-items: center;
    color: var(--fp-heading);
    background: var(--fp-surface-soft);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.fp-mobile-panel__actions a:last-child {
    color: #fff;
    background: var(--fp-accent);
}

/* Shared labels and search. */
.fp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--fp-accent);
    font-size: 13px;
    font-weight: 800;
}

.fp-kicker::before {
    content: '';
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.fp-search-form {
    width: 100%;
    max-width: 380px;
    min-height: 52px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 5px 6px 5px 14px;
    background: #fff;
    border: 1px solid var(--fp-line-strong);
    border-radius: 14px;
    transition: border-color var(--fp-transition), box-shadow var(--fp-transition);
}

.fp-search-form:focus-within {
    border-color: color-mix(in srgb, var(--fp-accent) 55%, #fff);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--fp-accent) 10%, transparent);
}

.fp-search-form__icon {
    color: var(--fp-subtle);
}

.fp-search-form__icon svg {
    width: 20px;
    height: 20px;
}

.fp-search-form input {
    min-width: 0;
    width: 100%;
    height: 40px;
    padding: 0;
    color: var(--fp-heading);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 14px;
}

.fp-search-form input::placeholder {
    color: #9aa0aa;
}

.fp-search-form button {
    min-width: 72px;
    height: 40px;
    padding: 0 14px;
    color: #fff;
    background: var(--fp-heading);
    border: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 750;
    transition: background var(--fp-transition);
}

.fp-search-form button:hover {
    background: var(--fp-accent);
}

/* Blog and archive heading. */
.fp-blog-heading,
.fp-archive-header {
    padding: 62px 0 50px;
    background: linear-gradient(180deg, #fff 0%, var(--fp-surface-warm) 100%);
    border-bottom: 1px solid var(--fp-line);
}

.fp-blog-heading__inner,
.fp-archive-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    align-items: end;
    gap: 54px;
}

.fp-blog-heading__copy,
.fp-archive-header__inner > div {
    max-width: 720px;
}

.fp-blog-heading h1,
.fp-archive-header h1 {
    margin-bottom: 12px;
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.3;
}

.fp-blog-heading p,
.fp-archive-description {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--fp-muted);
    font-size: 17px;
    line-height: 1.9;
}

.fp-archive-description p:last-child {
    margin-bottom: 0;
}

.fp-blog-heading__search {
    justify-self: end;
    width: 100%;
}

/* Editorial vertical feed. */
.fp-post-feed {
    padding: 26px 0 84px;
}

.fp-feed-container {
    max-width: 1080px;
}

.fp-post-list {
    display: flex;
    flex-direction: column;
}

.fp-post-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(250px, 34%) minmax(0, 1fr);
    direction: rtl;
    gap: clamp(24px, 4vw, 52px);
    align-items: center;
    padding: 38px 0;
    border-bottom: 1px solid var(--fp-line);
}

.fp-post-card--featured {
    grid-template-columns: minmax(340px, 43%) minmax(0, 1fr);
    min-height: 390px;
    padding-top: 44px;
    padding-bottom: 48px;
}

.fp-post-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1.54 / 1;
    background: var(--fp-surface-soft);
    border-radius: 18px;
    isolation: isolate;
}

.fp-post-card--featured .fp-post-card__media {
    aspect-ratio: 1.58 / 1;
    border-radius: 22px;
}

.fp-post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}

.fp-post-card:hover .fp-post-card__image {
    transform: scale(1.025);
}

.fp-media-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 10%, rgba(34, 158, 217, .14), transparent 40%),
        linear-gradient(135deg, #f3f8fb 0%, #fff7f1 100%);
}

.fp-media-placeholder__plane {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    color: #229ed9;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--fp-shadow-sm);
}

.fp-media-placeholder__plane svg {
    width: 38px;
    height: 38px;
}

.fp-post-card__content {
    min-width: 0;
    direction: rtl;
}

.fp-post-card__topline,
.fp-related-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--fp-subtle);
    font-size: 12px;
    line-height: 1.4;
}

.fp-post-card__topline time::before,
.fp-related-card__meta time::before {
    content: '•';
    margin-left: 12px;
    color: #c4c8cf;
}

.fp-category-link {
    color: var(--fp-accent);
    font-size: 12px;
    font-weight: 800;
    transition: color var(--fp-transition);
}

.fp-category-link:hover {
    color: var(--fp-accent-dark);
}

.fp-post-card__title {
    margin: 13px 0 12px;
    font-size: clamp(23px, 2.5vw, 31px);
    line-height: 1.55;
}

.fp-post-card--featured .fp-post-card__title {
    font-size: clamp(28px, 3vw, 39px);
    line-height: 1.45;
}

.fp-post-card__title a {
    transition: color var(--fp-transition);
}

.fp-post-card__title a:hover {
    color: var(--fp-accent);
}

.fp-post-card__excerpt {
    color: var(--fp-muted);
    font-size: 15px;
    line-height: 1.95;
}

.fp-post-card--featured .fp-post-card__excerpt {
    font-size: 16px;
}

.fp-post-card__excerpt p {
    margin-bottom: 0;
}

.fp-post-card__footer {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
}

.fp-post-card__reading {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--fp-subtle);
    font-size: 12px;
}

.fp-post-card__reading svg,
.fp-read-more svg {
    width: 17px;
    height: 17px;
}

.fp-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fp-heading);
    font-size: 13px;
    font-weight: 800;
    transition: color var(--fp-transition), gap var(--fp-transition);
}

.fp-read-more:hover {
    gap: 9px;
    color: var(--fp-accent);
}

/* Pagination. */
.navigation.pagination {
    margin-top: 46px;
}

.nav-links {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.navigation.pagination .page-numbers {
    min-width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 0 12px;
    color: #565c67;
    background: #fff;
    border: 1px solid var(--fp-line-strong);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: color var(--fp-transition), border-color var(--fp-transition), background var(--fp-transition);
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
    color: #fff;
    background: var(--fp-accent);
    border-color: var(--fp-accent);
}

/* Single article header. */
.fp-single-header {
    padding: 66px 0 38px;
}

.fp-breadcrumbs {
    margin-bottom: 28px;
    color: var(--fp-subtle);
    font-size: 12px;
    line-height: 1.8;
}

.fp-breadcrumbs a {
    transition: color var(--fp-transition);
}

.fp-breadcrumbs a:hover {
    color: var(--fp-accent);
}

.fp-single-header__category {
    margin-bottom: 14px;
}

.fp-single-header h1 {
    max-width: 900px;
    margin-bottom: 18px;
    font-size: clamp(36px, 5.2vw, 64px);
    line-height: 1.35;
    letter-spacing: -0.035em;
}

.fp-single-lead {
    max-width: 810px;
    margin-bottom: 24px;
    color: var(--fp-muted);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.9;
}

.fp-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    color: var(--fp-subtle);
    font-size: 12px;
}

.fp-post-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.fp-post-meta__item svg {
    width: 17px;
    height: 17px;
}

.fp-post-meta a:hover {
    color: var(--fp-accent);
}

.fp-single-hero,
.fp-page-image {
    margin-top: 0;
    margin-bottom: 58px;
}

.fp-single-hero__image,
.fp-page-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--fp-surface-soft);
    border-radius: 14px;
}

.fp-single-hero figcaption,
.fp-page-image figcaption {
    max-width: 820px;
    margin: 10px auto 0;
    color: var(--fp-subtle);
    font-size: 12px;
    text-align: center;
}

/* Article typography and block editor content. */
.fp-entry-content {
    color: #252932;
    font-size: var(--fp-article-size);
    line-height: var(--fp-article-leading);
    overflow-wrap: break-word;
}

.fp-entry-content > :first-child {
    margin-top: 0 !important;
}

.fp-entry-content > :last-child {
    margin-bottom: 0 !important;
}

.fp-entry-content > * + * {
    margin-block-start: 0;
}

.fp-entry-content p {
    margin-top: 0;
    margin-bottom: var(--fp-paragraph-gap, .9em);
}

.fp-entry-content p:empty,
.fp-entry-content p:has(> br:only-child) {
    display: none;
}

.fp-entry-content h2,
.fp-entry-content h3,
.fp-entry-content h4,
.fp-entry-content h5,
.fp-entry-content h6 {
    scroll-margin-top: 28px;
}

.fp-entry-content h2 {
    margin: 1.85em 0 .55em;
    font-size: clamp(27px, 3.2vw, 36px);
    line-height: 1.45;
}

.fp-entry-content h3 {
    margin: 1.55em 0 .5em;
    font-size: clamp(23px, 2.8vw, 29px);
    line-height: 1.5;
}

.fp-entry-content h4 {
    margin: 1.35em 0 .45em;
    font-size: 21px;
    line-height: 1.55;
}

.fp-entry-content h5,
.fp-entry-content h6 {
    margin: 1.2em 0 .4em;
    font-size: 18px;
    line-height: 1.6;
}

.fp-entry-content a:not(.wp-block-button__link) {
    color: #cf4b00;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: color-mix(in srgb, var(--fp-accent) 38%, transparent);
    transition: color var(--fp-transition), text-decoration-color var(--fp-transition);
}

.fp-entry-content a:not(.wp-block-button__link):hover {
    color: var(--fp-accent-dark);
    text-decoration-color: currentColor;
}

.fp-entry-content strong,
.fp-entry-content b {
    color: #1a1d24;
    font-weight: 800;
}

.fp-entry-content ul,
.fp-entry-content ol {
    margin: .65em 0 1.05em;
    padding-right: 1.45em;
}

.fp-entry-content li {
    margin-bottom: .32em;
    padding-right: .15em;
}

.fp-entry-content li::marker {
    color: var(--fp-accent);
    font-weight: 800;
}

.fp-entry-content blockquote,
.fp-entry-content .wp-block-quote {
    position: relative;
    margin: 1.5em 0;
    padding: 1.15em 1.35em 1.15em 1.3em;
    color: #30343d;
    background: var(--fp-surface-warm);
    border: 0;
    border-right: 4px solid var(--fp-accent);
    border-radius: 0 16px 16px 0;
}

.fp-entry-content blockquote p {
    margin-bottom: .8em;
}

.fp-entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.fp-entry-content cite {
    color: var(--fp-muted);
    font-size: .84em;
    font-style: normal;
}

.fp-entry-content hr,
.fp-entry-content .wp-block-separator {
    width: 100%;
    height: 1px;
    margin: 2.2em 0;
    background: var(--fp-line);
    border: 0;
}

.fp-entry-content code,
.fp-entry-content kbd {
    padding: .15em .4em;
    direction: ltr;
    color: #b33c00;
    background: #fff1e8;
    border-radius: 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .86em;
}

.fp-entry-content pre,
.fp-entry-content .wp-block-code {
    max-width: 100%;
    margin: 2em 0;
    padding: 20px 22px;
    overflow: auto;
    direction: ltr;
    color: #e8edf5;
    background: #151922;
    border: 1px solid #252a35;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.85;
    text-align: left;
    tab-size: 4;
}

.fp-entry-content pre code {
    padding: 0;
    color: inherit;
    background: transparent;
}

.fp-entry-content table,
.fp-entry-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    color: #343943;
    font-size: .91em;
}

.fp-entry-content .wp-block-table {
    margin: 2em 0;
    overflow-x: auto;
    border: 1px solid var(--fp-line-strong);
    border-radius: 14px;
}

.fp-entry-content th,
.fp-entry-content td {
    min-width: 110px;
    padding: 13px 15px;
    border: 1px solid var(--fp-line);
    text-align: right;
    vertical-align: middle;
}

.fp-entry-content th {
    color: var(--fp-heading);
    background: var(--fp-surface-soft);
    font-weight: 800;
}

.fp-entry-content figure,
.fp-entry-content .wp-block-image,
.fp-entry-content .wp-block-gallery,
.fp-entry-content .wp-block-embed,
.fp-entry-content .wp-block-video,
.fp-entry-content .wp-block-audio {
    margin-top: 1.55em;
    margin-bottom: 1.55em;
}

.fp-entry-content figure img,
.fp-entry-content .wp-block-image img,
.fp-entry-content > img {
    width: auto;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    border-radius: 12px;
}

.fp-entry-content > img {
    display: block;
    margin-top: 1.55em;
    margin-bottom: 1.55em;
}

.fp-entry-content figcaption,
.fp-entry-content .wp-element-caption,
.fp-entry-content .wp-caption-text {
    margin-top: 10px;
    color: var(--fp-subtle);
    font-size: 12px;
    line-height: 1.75;
    text-align: center;
}

.fp-entry-content .wp-caption {
    max-width: 100%;
}

.fp-entry-content .aligncenter {
    margin-inline: auto;
    text-align: center;
}

.fp-entry-content .alignleft {
    float: left;
    margin: .5em 1.6em 1em 0;
}

.fp-entry-content .alignright {
    float: right;
    margin: .5em 0 1em 1.6em;
}

.fp-entry-content .alignwide,
.fp-entry-content .wp-block-image.alignwide,
.fp-entry-content .wp-block-gallery.alignwide,
.fp-entry-content .wp-block-embed.alignwide {
    position: relative;
    left: 50%;
    width: min(var(--fp-media-container), calc(100vw - 40px));
    max-width: none;
    transform: translateX(-50%);
}

.fp-entry-content .alignfull {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    transform: translateX(-50%);
}

.fp-entry-content .wp-block-gallery {
    gap: 12px;
}

.fp-entry-content .wp-block-gallery img {
    border-radius: 13px;
}

.fp-entry-content iframe,
.fp-entry-content video {
    max-width: 100%;
    border: 0;
    border-radius: 16px;
}

.fp-entry-content .wp-block-embed__wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.fp-entry-content .wp-block-button {
    margin: 1.25em 0;
}

.fp-entry-content .wp-block-button__link {
    padding: 12px 22px;
    color: #fff;
    background: var(--fp-accent);
    border-radius: 11px;
    font-size: 14px;
    font-weight: 750;
}

.fp-entry-content .wp-block-pullquote {
    margin: 1.8em 0;
    padding: 1.8em 1em;
    border-top: 2px solid var(--fp-accent);
    border-bottom: 2px solid var(--fp-accent);
}

.fp-entry-content .wp-block-pullquote blockquote {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.fp-entry-content .has-background {
    padding: 1.4em 1.55em;
    border-radius: 16px;
}

.fp-entry-content::after {
    content: '';
    display: table;
    clear: both;
}

.fp-page-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

.fp-page-links > * {
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0 8px;
    border: 1px solid var(--fp-line-strong);
    border-radius: 8px;
}

.fp-post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 52px;
    padding-top: 24px;
    border-top: 1px solid var(--fp-line);
}

.fp-post-tags > span {
    margin-left: 4px;
    color: var(--fp-muted);
    font-size: 13px;
    font-weight: 750;
}

.fp-post-tags a {
    padding: 7px 11px;
    color: #5f6570;
    background: var(--fp-surface-soft);
    border-radius: 8px;
    font-size: 12px;
    transition: color var(--fp-transition), background var(--fp-transition);
}

.fp-post-tags a:hover {
    color: var(--fp-accent);
    background: var(--fp-accent-soft);
}

/* Previous/next article. */
.fp-single-main .post-navigation {
    margin-top: 58px;
    padding-top: 30px;
    border-top: 1px solid var(--fp-line);
}

.fp-single-main .post-navigation .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.fp-single-main .post-navigation .nav-previous,
.fp-single-main .post-navigation .nav-next {
    min-width: 0;
}

.fp-single-main .post-navigation a {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 17px 18px;
    border: 1px solid var(--fp-line);
    border-radius: 14px;
    transition: border-color var(--fp-transition), transform var(--fp-transition), box-shadow var(--fp-transition);
}

.fp-single-main .post-navigation a:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--fp-accent) 32%, var(--fp-line));
    box-shadow: var(--fp-shadow-sm);
}

.fp-single-main .post-navigation .nav-subtitle {
    color: var(--fp-subtle);
    font-size: 11px;
}

.fp-single-main .post-navigation .nav-title {
    overflow: hidden;
    color: var(--fp-heading);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Related posts. */
.fp-related-section {
    margin-top: 76px;
    padding: 66px 0 72px;
    background: var(--fp-surface-soft);
    border-top: 1px solid var(--fp-line);
    border-bottom: 1px solid var(--fp-line);
}

.fp-related-container {
    max-width: 1080px;
}

.fp-section-heading {
    margin-bottom: 28px;
}

.fp-section-heading--row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.fp-section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(26px, 3.2vw, 36px);
    line-height: 1.45;
}

.fp-section-heading--row > a {
    color: var(--fp-muted);
    font-size: 13px;
    font-weight: 750;
    transition: color var(--fp-transition);
}

.fp-section-heading--row > a:hover {
    color: var(--fp-accent);
}

.fp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.fp-related-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--fp-line);
    border-radius: 18px;
    transition: transform var(--fp-transition), border-color var(--fp-transition), box-shadow var(--fp-transition);
}

.fp-related-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--fp-accent) 25%, var(--fp-line));
    box-shadow: var(--fp-shadow-sm);
}

.fp-related-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 1.6 / 1;
    background: #eef1f5;
}

.fp-related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms cubic-bezier(.2,.7,.2,1);
}

.fp-related-card:hover .fp-related-card__media img {
    transform: scale(1.03);
}

.fp-related-card__media .fp-media-placeholder__plane {
    width: 58px;
    height: 58px;
    border-radius: 18px;
}

.fp-related-card__media .fp-media-placeholder__plane svg {
    width: 30px;
    height: 30px;
}

.fp-related-card__content {
    padding: 17px 18px 20px;
}

.fp-related-card__meta {
    margin-bottom: 10px;
}

.fp-related-card h3 {
    margin-bottom: 0;
    font-size: 17px;
    line-height: 1.75;
}

.fp-related-card h3 a {
    transition: color var(--fp-transition);
}

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

/* Comments. */
.fp-comments-wrap {
    margin-top: 76px;
    margin-bottom: 92px;
}

.fp-comments-area {
    padding-top: 4px;
}

.fp-comments-heading {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--fp-line);
}

.fp-comment-list,
.fp-comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fp-comment-list {
    margin-bottom: 44px;
}

.fp-comment-list .children {
    margin-right: 34px;
}

.fp-comment-list .comment,
.fp-comment-list .pingback,
.fp-comment-list .trackback {
    padding: 24px 0;
    border-bottom: 1px solid var(--fp-line);
}

.fp-comment-list .comment-body {
    position: relative;
}

.fp-comment-list .comment-meta {
    margin-bottom: 13px;
}

.fp-comment-list .comment-author {
    display: flex;
    align-items: center;
    gap: 11px;
}

.fp-comment-list .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--fp-surface-soft);
}

.fp-comment-list .fn {
    color: var(--fp-heading);
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
}

.fp-comment-list .says {
    display: none;
}

.fp-comment-list .comment-metadata {
    margin-top: -16px;
    margin-right: 59px;
    color: var(--fp-subtle);
    font-size: 11px;
}

.fp-comment-list .comment-metadata .edit-link {
    margin-right: 8px;
}

.fp-comment-list .comment-content {
    padding-right: 59px;
    color: #454b56;
    font-size: 14px;
    line-height: 1.95;
}

.fp-comment-list .comment-content p:last-child {
    margin-bottom: 0;
}

.fp-comment-list .reply {
    margin-top: 10px;
    padding-right: 59px;
}

.fp-comment-list .reply a {
    color: var(--fp-accent);
    font-size: 12px;
    font-weight: 750;
}

.fp-comment-list .bypostauthor > .comment-body {
    padding: 18px;
    background: var(--fp-accent-soft);
    border-radius: 14px;
}

.comment-respond {
    margin-top: 42px;
    padding: 28px;
    background: var(--fp-surface-soft);
    border: 1px solid var(--fp-line);
    border-radius: 20px;
}

.comment-reply-title {
    margin-bottom: 8px;
    font-size: 24px;
    line-height: 1.5;
}

.comment-reply-title small {
    margin-right: 10px;
    font-size: 12px;
}

.comment-reply-title small a {
    color: var(--fp-accent);
}

.comment-notes,
.logged-in-as {
    margin-bottom: 20px;
    color: var(--fp-muted);
    font-size: 12px;
}

.comment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.comment-form > p {
    margin: 0;
}

.comment-form-comment,
.comment-form-cookies-consent,
.form-submit,
.logged-in-as,
.comment-notes {
    grid-column: 1 / -1;
}

.comment-form label:not(.comment-form-cookies-consent label) {
    display: block;
    margin-bottom: 7px;
    color: #484e58;
    font-size: 12px;
    font-weight: 750;
}

.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'],
.comment-form textarea {
    width: 100%;
    color: var(--fp-heading);
    background: #fff;
    border: 1px solid var(--fp-line-strong);
    border-radius: 11px;
    outline: none;
    transition: border-color var(--fp-transition), box-shadow var(--fp-transition);
}

.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'] {
    height: 48px;
    padding: 0 13px;
}

.comment-form textarea {
    min-height: 160px;
    padding: 13px;
    resize: vertical;
    line-height: 1.85;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: color-mix(in srgb, var(--fp-accent) 55%, #fff);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--fp-accent) 9%, transparent);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--fp-muted);
    font-size: 12px;
}

.comment-form-cookies-consent input {
    margin-top: 6px;
}

.fp-comment-submit {
    min-width: 132px;
    border: 0;
}

.fp-comments-closed {
    padding: 14px 16px;
    color: var(--fp-muted);
    background: var(--fp-surface-soft);
    border-radius: 10px;
}

/* Pages, empty states and errors. */
.fp-page-main {
    padding-top: 60px;
}

.fp-page-header {
    margin-bottom: 36px;
}

.fp-page-header h1 {
    margin-bottom: 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.35;
}

.fp-empty-state,
.fp-error-page {
    max-width: 700px;
    padding-top: 90px;
    padding-bottom: 110px;
    text-align: center;
}

.fp-empty-state h2,
.fp-error-page h1 {
    margin-bottom: 12px;
    font-size: clamp(30px, 4vw, 44px);
}

.fp-empty-state p,
.fp-error-page p {
    margin-bottom: 24px;
    color: var(--fp-muted);
}

.fp-empty-state .fp-search-form,
.fp-error-page .fp-search-form {
    margin: 0 auto 20px;
}

.fp-error-code {
    display: block;
    margin-bottom: 5px;
    color: var(--fp-accent);
    font-size: clamp(72px, 14vw, 150px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
}

/* Minimal footer. */
.fp-site-footer {
    flex: 0 0 auto;
    background: #fff;
    border-top: 1px solid var(--fp-line);
}

.fp-footer-main {
    min-height: 180px;
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) minmax(220px, .9fr) minmax(180px, .65fr);
    align-items: center;
    gap: 48px;
    padding-top: 38px;
    padding-bottom: 38px;
}

.fp-footer-brand .fp-brand__copy small {
    display: none;
}

.fp-footer-brand > p {
    max-width: 430px;
    margin: 15px 0 0;
    color: var(--fp-muted);
    font-size: 13px;
    line-height: 1.9;
}

.fp-footer-menu,
.fp-footer-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.fp-footer-menu a,
.fp-footer-inline-links a {
    color: #5d636e;
    font-size: 13px;
    font-weight: 600;
    transition: color var(--fp-transition);
}

.fp-footer-menu a:hover,
.fp-footer-inline-links a:hover {
    color: var(--fp-accent);
}

.fp-footer-inline-links {
    margin-top: 10px;
}

.fp-footer-support {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.fp-footer-support span {
    color: var(--fp-subtle);
    font-size: 11px;
}

.fp-footer-support a {
    color: var(--fp-heading);
    font-size: 19px;
    font-weight: 850;
}

.fp-footer-bottom {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--fp-subtle);
    border-top: 1px solid var(--fp-line);
    font-size: 11px;
}

.fp-footer-bottom p {
    margin-bottom: 0;
}

.fp-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666c76;
    font-weight: 700;
}

.fp-back-to-top svg {
    width: 16px;
    height: 16px;
}

/* WordPress utility classes. */
.sticky {
    display: block;
}

.gallery-caption,
.wp-caption-text {
    color: var(--fp-subtle);
}

.bypostauthor {
    display: block;
}

/* Tablet. */
@media (max-width: 1020px) {
    .fp-header-inner {
        grid-template-columns: minmax(190px, 1fr) auto minmax(170px, 1fr);
        gap: 16px;
    }

    .fp-nav-menu > li > a {
        padding-inline: 10px;
        font-size: 13px;
    }

    .fp-post-card,
    .fp-post-card--featured {
        grid-template-columns: minmax(280px, 39%) minmax(0, 1fr);
        gap: 32px;
    }

    .fp-related-grid {
        gap: 14px;
    }

    .fp-footer-main {
        grid-template-columns: minmax(230px, 1.2fr) minmax(200px, 1fr) auto;
        gap: 28px;
    }
}

/* Mobile navigation and layout. */
@media (max-width: 900px) {
    .fp-header-inner {
        min-height: 72px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .fp-desktop-nav,
    .fp-header-support,
    .fp-header-store {
        display: none;
    }

    .fp-menu-toggle {
        display: grid;
    }

    .custom-logo-link img {
        max-width: 176px;
        max-height: 58px;
    }

    .fp-blog-heading,
    .fp-archive-header {
        padding: 46px 0 40px;
    }

    .fp-blog-heading__inner,
    .fp-archive-header__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .fp-blog-heading__search,
    .fp-archive-header__inner .fp-search-form {
        justify-self: start;
        max-width: 520px;
    }

    .fp-post-card,
    .fp-post-card--featured {
        grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
        min-height: 0;
        gap: 24px;
        padding: 30px 0;
    }

    .fp-post-card--featured .fp-post-card__title {
        font-size: clamp(25px, 4vw, 32px);
    }

    .fp-single-header {
        padding-top: 50px;
    }

    .fp-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fp-related-card:last-child:nth-child(odd) {
        display: none;
    }

    .fp-footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .fp-footer-brand {
        grid-column: 1 / -1;
    }

    .fp-footer-support {
        justify-self: end;
    }
}

@media (max-width: 720px) {
    .fp-container,
    .fp-media-container,
    .fp-article-head-container,
    .fp-article-container {
        width: calc(100% - 32px);
    }

    .fp-blog-heading h1,
    .fp-archive-header h1 {
        font-size: clamp(31px, 9vw, 43px);
    }

    .fp-blog-heading p,
    .fp-archive-description {
        font-size: 15px;
    }

    .fp-post-feed {
        padding-top: 8px;
        padding-bottom: 64px;
    }

    .fp-post-card,
    .fp-post-card--featured {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 19px;
        padding: 28px 0;
    }

    .fp-post-card__media,
    .fp-post-card--featured .fp-post-card__media {
        width: 100%;
        aspect-ratio: 1.65 / 1;
        border-radius: 16px;
    }

    .fp-post-card__title,
    .fp-post-card--featured .fp-post-card__title {
        margin-top: 10px;
        font-size: clamp(23px, 7vw, 31px);
        line-height: 1.55;
    }

    .fp-post-card__excerpt,
    .fp-post-card--featured .fp-post-card__excerpt {
        font-size: 14px;
        line-height: 1.9;
    }

    .fp-post-card__footer {
        margin-top: 17px;
    }

    .fp-single-header {
        padding: 40px 0 28px;
    }

    .fp-breadcrumbs {
        margin-bottom: 20px;
    }

    .fp-single-header h1 {
        margin-bottom: 14px;
        font-size: clamp(32px, 10vw, 45px);
        line-height: 1.42;
    }

    .fp-single-lead {
        font-size: 16px;
        line-height: 1.9;
    }

    .fp-post-meta {
        gap: 9px 15px;
    }

    .fp-single-hero,
    .fp-page-image {
        margin-bottom: 38px;
    }

    .fp-single-hero__image,
    .fp-page-image img {
        border-radius: 17px;
    }

    .fp-entry-content {
        font-size: clamp(16px, var(--fp-article-size), 20px);
        line-height: calc(var(--fp-article-leading) - .05);
    }

    .fp-entry-content p {
        margin-bottom: max(.72em, calc(var(--fp-paragraph-gap, .9em) - .08em));
    }

    .fp-entry-content h2 {
        margin-top: 1.55em;
        margin-bottom: .48em;
        font-size: clamp(25px, 7vw, 31px);
        line-height: 1.42;
    }

    .fp-entry-content h3 {
        margin-top: 1.35em;
        margin-bottom: .44em;
        font-size: clamp(21px, 6vw, 26px);
        line-height: 1.48;
    }

    .fp-entry-content h4,
    .fp-entry-content h5,
    .fp-entry-content h6 {
        margin-top: 1.15em;
    }

    .fp-entry-content figure,
    .fp-entry-content .wp-block-image,
    .fp-entry-content .wp-block-gallery,
    .fp-entry-content .wp-block-embed {
        margin-top: 1.25em;
        margin-bottom: 1.25em;
    }

    .fp-entry-content figure img,
    .fp-entry-content .wp-block-image img,
    .fp-entry-content > img {
        border-radius: 13px;
    }

    .fp-entry-content .alignwide,
    .fp-entry-content .wp-block-image.alignwide,
    .fp-entry-content .wp-block-gallery.alignwide,
    .fp-entry-content .wp-block-embed.alignwide {
        width: calc(100vw - 20px);
    }

    .fp-entry-content blockquote,
    .fp-entry-content .wp-block-quote {
        padding: 1.15em 1.2em;
    }

    .fp-single-main .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .fp-related-section {
        margin-top: 58px;
        padding: 48px 0 52px;
    }

    .fp-section-heading--row {
        align-items: start;
    }

    .fp-related-grid {
        grid-template-columns: 1fr;
    }

    .fp-related-card,
    .fp-related-card:last-child:nth-child(odd) {
        display: grid;
        grid-template-columns: 128px minmax(0, 1fr);
        direction: rtl;
    }

    .fp-related-card__media {
        aspect-ratio: auto;
        min-height: 128px;
    }

    .fp-related-card__content {
        align-self: center;
        padding: 14px;
    }

    .fp-related-card h3 {
        font-size: 15px;
    }

    .fp-comments-wrap {
        margin-top: 58px;
        margin-bottom: 68px;
    }

    .fp-comment-list .children {
        margin-right: 16px;
    }

    .comment-respond {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .comment-form {
        grid-template-columns: 1fr;
    }

    .comment-form > p {
        grid-column: 1;
    }

    .fp-footer-main {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .fp-footer-brand {
        grid-column: auto;
    }

    .fp-footer-support {
        justify-self: start;
        align-items: flex-start;
    }

    .fp-footer-bottom {
        min-height: 76px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding-top: 14px;
        padding-bottom: 14px;
    }
}

@media (max-width: 480px) {
    .fp-header-inner {
        min-height: 66px;
    }

    .fp-brand__mark {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
        border-radius: 12px;
        font-size: 18px;
    }

    .fp-brand__copy strong {
        font-size: 15px;
    }

    .fp-brand__copy small {
        font-size: 10px;
    }

    .fp-menu-toggle {
        width: 41px;
        height: 41px;
    }

    .fp-blog-heading,
    .fp-archive-header {
        padding: 38px 0 34px;
    }

    .fp-search-form {
        min-height: 49px;
        grid-template-columns: auto 1fr;
        padding-left: 12px;
    }

    .fp-search-form button {
        display: none;
    }

    .fp-post-card__topline,
    .fp-post-card__footer {
        align-items: flex-start;
    }

    .fp-post-card__footer {
        flex-direction: column;
        gap: 10px;
    }

    .fp-single-header h1 {
        font-size: clamp(29px, 9.5vw, 39px);
    }

    .fp-single-hero__image,
    .fp-page-image img {
        aspect-ratio: 1.55 / 1;
    }

    .fp-post-meta__item:nth-child(3) {
        width: 100%;
    }

    .fp-related-card,
    .fp-related-card:last-child:nth-child(odd) {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .fp-related-card__media {
        min-height: 116px;
    }

    .fp-related-card__meta time {
        display: none;
    }

    .fp-comment-list .comment-content,
    .fp-comment-list .reply {
        padding-right: 0;
    }

    .fp-comment-list .comment-metadata {
        margin-top: 5px;
        margin-right: 0;
    }
}


/* Version 2.1 refinements: logo, comments, media blocks and mobile rendering. */
.fp-brand--text {
    gap: 0;
}

.fp-footer-brand .custom-logo-link img {
    max-width: 230px;
    max-height: 78px;
}

.fp-comment-form-panel {
    margin-bottom: 46px;
}

.fp-comment-form-panel .comment-respond {
    margin-top: 0;
}

.fp-comment-stream {
    padding-top: 4px;
}

.fp-comment-list {
    margin-top: 8px;
    margin-bottom: 34px;
}

.fp-no-comments {
    margin: 22px 0 0;
    padding: 18px 20px;
    color: var(--fp-muted);
    background: var(--fp-surface-soft);
    border: 1px solid var(--fp-line);
    border-radius: 13px;
    font-size: 13px;
}

.fp-comment-list .bypostauthor > .comment-body {
    border: 1px solid color-mix(in srgb, var(--fp-accent) 18%, var(--fp-line));
}

.fp-comment-list .bypostauthor .comment-author::after {
    content: 'مدیر سایت';
    margin-right: auto;
    padding: 4px 8px;
    color: var(--fp-accent-dark);
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--fp-accent) 22%, var(--fp-line));
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
}

.fp-comment-list .fp-admin-avatar,
.fp-comment-list .bypostauthor .avatar {
    padding: 2px;
    object-fit: cover;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--fp-accent) 24%, var(--fp-line));
    box-shadow: 0 5px 16px rgba(20, 25, 35, .08);
}

.fp-related-card__excerpt {
    display: -webkit-box;
    margin: 9px 0 0;
    overflow: hidden;
    color: var(--fp-muted);
    font-size: 12.5px;
    line-height: 1.85;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Images stay natural, subtly rounded and consistent with the feature image. */
.fp-single-hero__image,
.fp-page-image img {
    border-radius: 14px;
}

.fp-entry-content figure img,
.fp-entry-content .wp-block-image img,
.fp-entry-content > img,
.fp-entry-content .wp-block-cover,
.fp-entry-content .wp-block-cover__image-background {
    border-radius: 12px;
}

.fp-entry-content .wp-block-image,
.fp-entry-content .wp-caption {
    overflow: visible;
}

/* Tables: clear hierarchy, horizontal touch scrolling and restrained decoration. */
.fp-entry-content .wp-block-table {
    position: relative;
    margin-block: 1.55em;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    background: #fff;
    border: 1px solid var(--fp-line-strong);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(20, 25, 35, .045);
    scrollbar-width: thin;
    scrollbar-color: #c8ccd3 transparent;
    -webkit-overflow-scrolling: touch;
}

.fp-entry-content .wp-block-table::-webkit-scrollbar {
    height: 8px;
}

.fp-entry-content .wp-block-table::-webkit-scrollbar-thumb {
    background: #c8ccd3;
    border: 2px solid #fff;
    border-radius: 999px;
}

.fp-entry-content .wp-block-table table {
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.fp-entry-content .wp-block-table th,
.fp-entry-content .wp-block-table td {
    min-width: 128px;
    padding: 14px 16px;
    border-width: 0 0 1px 1px;
    border-color: var(--fp-line);
    white-space: normal;
}

.fp-entry-content .wp-block-table tr:last-child td {
    border-bottom: 0;
}

.fp-entry-content .wp-block-table th:last-child,
.fp-entry-content .wp-block-table td:last-child {
    border-left: 0;
}

.fp-entry-content .wp-block-table thead th {
    color: #20242c;
    background: #f2f4f7;
    border-bottom-color: var(--fp-line-strong);
}

.fp-entry-content .wp-block-table tbody tr:nth-child(even) td {
    background: #fafbfc;
}

.fp-entry-content .wp-block-table tbody tr:hover td {
    background: #fff8f3;
}

.fp-entry-content .wp-block-table figcaption {
    margin: 0;
    padding: 11px 15px;
    background: #fafbfc;
    border-top: 1px solid var(--fp-line);
    text-align: right;
}

/* Video, embeds and audio share one visual language. */
.fp-entry-content .wp-block-video,
.fp-entry-content .wp-block-embed,
.fp-entry-content .wp-block-audio {
    max-width: 100%;
}

.fp-entry-content .wp-block-video video,
.fp-entry-content video {
    display: block;
    width: 100%;
    height: auto;
    background: #111318;
    border: 1px solid #252a33;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(15, 18, 25, .09);
}

.fp-entry-content .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111318;
    border: 1px solid #252a33;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(15, 18, 25, .09);
}

.fp-entry-content .wp-block-embed__wrapper iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: 0;
}

.fp-entry-content .wp-block-audio {
    padding: 13px 14px;
    background: #f5f6f8;
    border: 1px solid var(--fp-line-strong);
    border-radius: 14px;
}

.fp-entry-content .wp-block-audio audio,
.fp-entry-content audio {
    display: block;
    width: 100%;
    min-height: 44px;
}

.fp-entry-content .wp-block-audio figcaption {
    margin: 8px 4px 0;
    text-align: right;
}

/* Galleries and compound Gutenberg blocks. */
.fp-entry-content .wp-block-gallery {
    gap: 10px;
}

.fp-entry-content .wp-block-gallery .wp-block-image,
.fp-entry-content .wp-block-gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: 11px;
}

.fp-entry-content .wp-block-gallery img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.fp-entry-content .wp-block-media-text {
    margin-block: 1.55em;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--fp-line-strong);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(20, 25, 35, .04);
}

.fp-entry-content .wp-block-media-text__media img,
.fp-entry-content .wp-block-media-text__media video {
    width: 100%;
    height: 100%;
    min-height: 240px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
}

.fp-entry-content .wp-block-media-text__content {
    padding: clamp(22px, 4vw, 42px);
}

.fp-entry-content .wp-block-columns {
    align-items: stretch;
    gap: 18px;
    margin-block: 1.55em;
}

.fp-entry-content .wp-block-column > :first-child {
    margin-top: 0;
}

.fp-entry-content .wp-block-column > :last-child {
    margin-bottom: 0;
}

.fp-entry-content .wp-block-group.has-background,
.fp-entry-content .wp-block-cover {
    margin-block: 1.55em;
    padding: clamp(22px, 4vw, 38px);
    overflow: hidden;
    border-radius: 14px;
}

.fp-entry-content .wp-block-details {
    margin-block: 1.05em;
    padding: 15px 17px;
    background: #fff;
    border: 1px solid var(--fp-line-strong);
    border-radius: 12px;
}

.fp-entry-content .wp-block-details summary {
    cursor: pointer;
    color: var(--fp-heading);
    font-weight: 800;
}

.fp-entry-content .wp-block-details[open] summary {
    margin-bottom: 12px;
    color: var(--fp-accent-dark);
}

.fp-entry-content .wp-block-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-block: 1.1em;
    padding: 13px 15px;
    background: #f7f8fa;
    border: 1px solid var(--fp-line);
    border-radius: 12px;
}

.fp-entry-content .wp-block-file__button {
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 13px;
    color: #fff;
    background: var(--fp-accent);
    border-radius: 9px;
    text-decoration: none;
}

@media (max-width: 720px) {
    .custom-logo-link img {
        max-width: 176px;
        max-height: 59px;
    }

    .fp-footer-brand .custom-logo-link img {
        max-width: 205px;
        max-height: 69px;
    }

    .fp-single-hero__image,
    .fp-page-image img,
    .fp-entry-content figure img,
    .fp-entry-content .wp-block-image img,
    .fp-entry-content > img {
        border-radius: 10px;
    }

    .fp-comment-form-panel {
        margin-bottom: 38px;
    }

    .fp-comment-list .bypostauthor .comment-author::after {
        margin-right: 6px;
    }

    .fp-related-card {
        align-items: stretch;
    }

    .fp-related-card__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .fp-related-card__excerpt {
        margin-top: 5px;
        font-size: 11.5px;
        line-height: 1.7;
        -webkit-line-clamp: 2;
    }

    .fp-entry-content .wp-block-table {
        width: calc(100vw - 24px);
        margin-right: calc(50% - 50vw + 12px);
        border-radius: 11px;
    }

    .fp-entry-content .wp-block-table th,
    .fp-entry-content .wp-block-table td {
        min-width: 116px;
        padding: 12px 13px;
        font-size: 13px;
        line-height: 1.75;
    }

    .fp-entry-content .wp-block-audio {
        padding: 10px;
        border-radius: 11px;
    }

    .fp-entry-content .wp-block-video video,
    .fp-entry-content video,
    .fp-entry-content .wp-block-embed__wrapper {
        border-radius: 10px;
    }

    .fp-entry-content .wp-block-media-text,
    .fp-entry-content .wp-block-media-text.is-stacked-on-mobile {
        display: block;
        border-radius: 11px;
    }

    .fp-entry-content .wp-block-media-text__media img,
    .fp-entry-content .wp-block-media-text__media video {
        min-height: 0;
        max-height: 360px;
        aspect-ratio: 16 / 10;
    }

    .fp-entry-content .wp-block-media-text__content {
        padding: 20px 17px;
    }

    .fp-entry-content .wp-block-columns {
        gap: 14px;
    }

    .fp-entry-content .wp-block-file {
        align-items: stretch;
        flex-direction: column;
    }

    .fp-entry-content .wp-block-file__button {
        text-align: center;
    }
}


/* Editorial reading rhythm: prevent Gutenberg blocks and empty spacers from stretching articles. */
.fp-entry-content .wp-block-spacer {
    height: clamp(18px, 3.5vw, 42px) !important;
}

.fp-entry-content .wp-block-column > p,
.fp-entry-content .wp-block-group p,
.fp-entry-content .wp-block-media-text__content p {
    margin-bottom: .78em;
}

.fp-entry-content .wp-block-column > h2,
.fp-entry-content .wp-block-column > h3,
.fp-entry-content .wp-block-column > h4,
.fp-entry-content .wp-block-media-text__content h2,
.fp-entry-content .wp-block-media-text__content h3,
.fp-entry-content .wp-block-media-text__content h4 {
    margin-top: 1.15em;
}

@media (max-width: 720px) {
    .fp-entry-content .wp-block-spacer {
        height: clamp(14px, 5vw, 28px) !important;
    }

    .fp-entry-content .wp-block-columns,
    .fp-entry-content .wp-block-media-text,
    .fp-entry-content .wp-block-group.has-background,
    .fp-entry-content .wp-block-cover,
    .fp-entry-content .wp-block-table {
        margin-block: 1.25em;
    }
}

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

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

@media print {
    .fp-site-header,
    .fp-site-footer,
    .fp-related-section,
    .fp-comments-wrap,
    .post-navigation {
        display: none !important;
    }

    body.fp-blog-theme {
        color: #000;
        background: #fff;
        font-size: 12pt;
    }

    .fp-single-header {
        padding-top: 0;
    }

    .fp-single-hero__image {
        max-height: 15cm;
        object-fit: contain;
    }

    .fp-entry-content a {
        color: #000;
        text-decoration: underline;
    }
}
