/* РћР±С‰РёРµ СЃС‚РёР»Рё */
:root {
    /* CorAlla design system tokens */
    --color-primary: #0f766e;
    --color-primary-dark: #064e3b;
    --color-primary-light: #e7f5f1;
    --color-accent: #d6a300;
    --color-accent-soft: #fff3c4;
    --color-bg: #fbf7ef;
    --color-surface: #ffffff;
    --color-surface-muted: #f6fbf8;
    --color-text: #0f172a;
    --color-text-muted: #475569;
    --color-text-soft: #64748b;
    --color-border: rgba(15, 118, 110, 0.18);
    --color-border-strong: rgba(15, 118, 110, 0.28);
    --color-focus: rgba(214, 163, 0, 0.32);
    --primary-rgb: 15, 118, 110;
    --accent-rgb: 214, 163, 0;

    --font-main: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-heading: 'IBM Plex Serif', Georgia, serif;
    --text-xs: 13px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-md: 17px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --h1-size: clamp(32px, 3vw, 42px);
    --h2-size: clamp(26px, 2.5vw, 36px);
    --h3-size: 20px;
    --line-body: 1.6;
    --line-article: 1.75;
    --line-heading: 1.2;
    --heading-letter-spacing: 0;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 40px;
    --space-section: 60px;
    --container-padding: 20px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 999px;
    --radius-round: 50%;

    --shadow-sm: 0 2px 10px rgba(2, 6, 23, 0.08);
    --shadow-md: 0 8px 24px rgba(2, 6, 23, 0.1);
    --shadow-lg: 0 18px 50px rgba(2, 6, 23, 0.12);
    --shadow-xl: 0 30px 70px rgba(2, 6, 23, 0.18);
    --shadow-primary: 0 8px 24px rgba(var(--primary-rgb), 0.24);
    --transition-fast: 160ms ease;
    --transition-normal: 220ms ease;
    --transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;

    --card-bg: var(--color-surface);
    --card-muted-bg: var(--color-surface-muted);
    --card-radius: var(--radius-lg);
    --card-shadow: var(--shadow-md);
    --button-radius: var(--radius-md);
    --button-padding-y: 14px;
    --button-padding-x: 28px;
    --menu-bg: rgba(255, 255, 255, 0.94);
    --menu-border: var(--color-border);

    --primary-color: var(--color-primary);
    --primary-dark: var(--color-primary-dark);
    --primary-light: var(--color-primary-light);
    --accent-color: var(--color-accent);
    --secondary-color: var(--color-text-muted);
    --text-color: var(--color-text);
    --text-secondary: var(--color-text-muted);
    --text-dark: var(--color-text);
    --text-medium: var(--color-text-muted);
    --text-light: var(--color-text-soft);
    --bg-light: var(--color-surface-muted);
    --light-bg: var(--color-bg);
    --light-gray: var(--color-surface-muted);
    --white: var(--color-surface);
    --border: var(--color-border);
    --border-color: var(--color-border);
    --shadow: var(--shadow-lg);
    --radius: var(--radius-lg);
    --border-radius-sm: var(--radius-sm);
    --border-radius-md: var(--radius-md);
    --border-radius-lg: var(--radius-lg);
    --border-radius-xl: var(--radius-xl);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-anchor: none; /* отключаем scroll anchoring, чтобы не "прыгал" старт */
}

body {
    font-family: var(--font-main);
    line-height: var(--line-body);
    color: var(--text-color);
    scroll-padding-top: 80px;
    background: var(--color-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* РЁР°РїРєР° */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.logo a:hover,
.logo a:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-cta .phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-cta .phone-link:hover,
.nav-cta .phone-link:focus {
    color: var(--primary-dark);
    background: rgba(var(--primary-rgb), 0.08);
    text-decoration: none;
}

.nav-cta .phone-link i {
    font-size: 16px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0 8px;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus-within{
    color: var(--primary-color);
}

/* Р‘Р»РѕРі */
.blog-container {
    margin: 100px auto 0;
    padding: 60px 20px;
    max-width: 1200px;
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-header h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover,
.blog-card:focus-within{
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-image,
.blog-card:focus-within .blog-image{
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    color: var(--color-text-soft);
    font-size: var(--text-sm);
    margin-bottom: 10px;
}

.blog-title {
    font-size: var(--h3-size);
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 56px;
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 72px;
}

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.blog-link:hover,
.blog-link:focus-within{
    text-decoration: underline;
}

/* РЎС‚Р°С‚СЊСЏ */
.article-container {
    max-width: 800px;
    margin: 120px auto 0;
    padding: 40px 20px;
}

.breadcrumbs {
    margin-bottom: 30px;
    color: var(--color-text-soft);
    font-size: var(--text-sm);
    padding: 0 0 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-within{
    color: var(--primary-dark);
    text-decoration: underline;
}

.fohow-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 26px;
    padding: 0 var(--container-padding) 14px;
    color: var(--color-text-soft);
    font-size: var(--text-sm);
    line-height: 1.5;
    border-bottom: 1px solid var(--border-color);
}

.article-container > .fohow-breadcrumbs,
.container > .fohow-breadcrumbs,
.content-shell > .fohow-breadcrumbs {
    max-width: none;
    margin: 0 0 26px;
    padding: 0 0 14px;
}

.fohow-breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.fohow-breadcrumbs a:hover,
.fohow-breadcrumbs a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

.fohow-breadcrumbs span:last-child {
    color: var(--text-color);
}

.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: var(--h1-size);
    line-height: var(--line-heading);
    margin-bottom: 20px;
}

.article-meta {
    color: var(--color-text-soft);
    font-size: var(--text-sm);
}

.article-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--card-radius);
    margin-bottom: 30px;
    object-fit: contain;
}

.article-text {
    font-size: var(--text-base);
    line-height: var(--line-article);
}

.article-text h2 {
    font-size: var(--text-2xl);
    margin: 40px 0 20px;
}

.article-text p {
    margin-bottom: 20px;
}

/* Юридический дисклеймер для БАД */
.bad-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 28px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid #f5d08a;
    border-left: 4px solid #f59e0b;
    background: #fff7e6;
    color: #6b4e16;
    font-size: 14px;
    line-height: 1.55;
}

.bad-disclaimer i {
    color: #d97706;
    margin-top: 2px;
    font-size: 16px;
    flex: 0 0 auto;
}

.bad-disclaimer span {
    display: block;
}

/* РџРѕС…РѕР¶РёРµ СЃС‚Р°С‚СЊРё */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.related-grid .blog-card {
    margin: 0;
}

.related-grid .blog-image {
    height: 200px;
}

/* Keep full image visible in "read also" cards across article templates */
.article-container .related-grid .blog-image,
.related-grid .blog-card .blog-image,
.related-grid .related-card img {
    object-fit: contain;
    object-position: center;
    background: var(--color-surface-muted);
}

.fohow-static-related {
    margin: 48px 0 28px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.fohow-static-related h2 {
    margin: 0 0 22px;
    color: var(--text-color);
    font-size: var(--text-2xl);
    line-height: 1.25;
}

.fohow-static-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.fohow-static-related__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100%;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    background: var(--card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.fohow-static-related__card:hover,
.fohow-static-related__card:focus {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
    outline: none;
}

.fohow-static-related__label {
    color: var(--primary-color);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
}

.fohow-static-related__title {
    color: var(--text-color);
    font-size: var(--text-md);
    font-weight: 700;
    line-height: 1.35;
}

.fohow-static-related__text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--line-body);
}

@media (max-width: 768px) {
    .fohow-static-related {
        margin: 36px 0 24px;
        padding-top: 24px;
    }

    .fohow-static-related__grid {
        grid-template-columns: 1fr;
    }
}

/* РџРѕРґРІР°Р» */
.footer {
    background: var(--color-surface-muted);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo .logo {
    margin-bottom: 20px;
}

.footer-logo p {
    margin: 0;
    color: var(--text-secondary);
}

.footer-links h3,
.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: var(--text-lg);
}

.footer-links ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.footer-links a::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--primary-color);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--primary-color);
    transform: translateX(2px);
}

.footer-links a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.footer-contact__title-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.footer-contact__title-link:hover,
.footer-contact__title-link:focus {
    text-decoration: underline;
}

.footer-contact__title-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.footer-contact p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.footer-contact p a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-contact p a:hover,
.footer-contact p a:focus {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Улучшенная адаптивность для мобильных */
@media (max-width: 768px) {
    /* Основные настройки */
    body {
        font-size: 16px;
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Мобильное меню */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        cursor: pointer;
        touch-action: manipulation;
        flex-direction: column;
        gap: 4px;
    }

    .menu-toggle span {
        width: 24px;
        height: 3px;
        background-color: var(--text-color);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-sm);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 20px;
        font-size: 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Блог контейнер */
    .blog-container {
        margin: 80px auto 0;
        padding: 40px 16px;
    }

    /* Заголовки */
    .blog-header h1 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .blog-header p {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Грид блога */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    /* Карточки блога */
    .blog-card {
        margin: 0 0 20px 0;
        border-radius: var(--card-radius);
    }

    .blog-content {
        padding: 20px;
    }

    .blog-title {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 12px;
        min-height: auto;
    }

    .blog-excerpt {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 16px;
        min-height: auto;
    }

    .blog-link {
        font-size: 16px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 8px 16px;
        touch-action: manipulation;
    }

    /* Статьи */
    .article-container {
        margin: 80px auto 0;
        padding: 30px 16px;
    }

    .article-header h1 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .article-text {
        font-size: 16px;
        line-height: 1.6;
    }

    .article-text h2 {
        font-size: 24px;
        line-height: 1.3;
        margin: 30px 0 16px;
    }

    .article-text h3 {
        font-size: 20px;
        line-height: 1.3;
        margin: 24px 0 12px;
    }

    .article-text p {
        margin-bottom: 16px;
    }

    .bad-disclaimer {
        margin: 14px 0 22px;
        padding: 12px 14px;
        font-size: 13.5px;
        line-height: 1.5;
    }

    .bad-disclaimer i {
        font-size: 15px;
    }

    /* Хлебные крошки */
    .breadcrumbs {
        font-size: 14px;
        padding: 0 0 12px;
        margin-bottom: 20px;
    }

    /* Якорные ссылки */
    section {
        scroll-margin-top: 60px;
    }
    
    html {
        scroll-padding-top: 60px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Изображения */
    .article-image,
    .blog-image {
        border-radius: 8px;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Теги */
    .tag {
        font-size: 14px;
        padding: 6px 12px;
        margin: 4px 8px 4px 0;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        touch-action: manipulation;
    }

    .tags-cloud {
        gap: 8px;
    }

    /* Связанные статьи */
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Футер */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Исправления для iOS */
    input[type="text"],
    input[type="search"],
    textarea {
        font-size: 16px;
        -webkit-appearance: none;
        border-radius: 8px;
    }

    /* Улучшение доступности */
    a, button, [role="button"] {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .blog-container {
        padding: 30px 12px;
    }

    .article-container {
        padding: 20px 12px;
    }

    .blog-header h1 {
        font-size: 24px;
    }

    .article-header h1 {
        font-size: 24px;
    }

    .article-text h2 {
        font-size: 20px;
    }

    .blog-content {
        padding: 16px;
    }

    .nav-links {
        padding: 16px;
    }

    .nav-links a {
        padding: 10px 16px;
        font-size: 15px;
    }
}

/* РўРµРіРё */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--light-gray);
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag:hover,
.tag:focus-within{
    background: var(--primary-color);
    color: #fff;
}

.tag.active {
    background: var(--primary-color);
    color: #fff;
}

.all-tags {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.all-tags h2 {
    text-align: center;
    margin-bottom: 20px;
}

.no-posts {
    text-align: center;
    padding: 40px;
    background: var(--light-gray);
    border-radius: 10px;
}

.no-posts p {
    margin-bottom: 20px;
    color: #666;
}

/* Стили для якорных ссылок */
section {
    scroll-margin-top: 80px;
    padding-top: 20px;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    section {
        scroll-margin-top: 60px;
    }
    
    html {
        scroll-padding-top: 60px;
        -webkit-overflow-scrolling: touch;
    }
}

/* Дополнительные улучшения мобильной адаптации для блога */
@media (max-width: 768px) {
    /* Улучшенная touch-оптимизация */
    .nav-links a,
    .blog-link,
    .tag,
    .menu-toggle,
    a[href^="tel:"],
    a[href^="mailto:"] {
        -webkit-tap-highlight-color: rgba(0, 123, 255, 0.2);
        tap-highlight-color: rgba(0, 123, 255, 0.2);
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
    }
    
    /* Предотвращение overflow */
    body, html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    /* Улучшенная типографика */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }
    
    /* Теги с минимальным размером touch */
    .tag {
        min-height: 36px;
        min-width: 36px;
        padding: 8px 14px;
        margin: 4px 6px 4px 0;
        font-size: 14px;
    }
    
    /* Карточки блога с touch-оптимизацией */
    .blog-card {
        touch-action: pan-y;
        min-height: 200px;
    }

    .blog-card a,
    .blog-image,
    .article-image,
    .gallery-item,
    .gallery-item img {
        touch-action: pan-y;
    }

    .blog-image,
    .article-image,
    .gallery-item img {
        -webkit-user-drag: none;
        user-drag: none;
    }
    
    /* Ссылки статей */
    .blog-link {
        min-height: 44px;
        padding: 10px 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-radius: 6px;
        background-color: rgba(0, 123, 255, 0.1);
    }
}

/* Улучшения для маленьких экранов */
@media (max-width: 480px) {
    .tag {
        font-size: 13px;
        padding: 6px 12px;
        min-height: 32px;
    }
    
    .blog-title {
        font-size: 17px;
        line-height: 1.3;
    }

    .blog-excerpt {
        font-size: 14px;
    }
    
    .article-text h2 {
        font-size: 20px;
        margin: 30px 0 16px;
    }
    
    .article-text h3 {
        font-size: 17px;
    }

    .article-header h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    .article-text {
        font-size: 15px;
        line-height: 1.8;
    }

    .article-text p {
        margin-bottom: 16px;
        word-spacing: 0.05em;
    }

    .blog-container {
        padding: 40px 16px;
    }

    .article-container {
        padding: 30px 16px;
    }
}

/* Landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .blog-container {
        margin-top: 60px;
        padding: 30px 16px;
    }
    
    .article-container {
        margin-top: 60px;
        padding: 20px 16px;
    }
}

/* Промежуточный breakpoint для планшетов */
@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        min-height: auto;
    }

    .blog-title {
        font-size: 18px;
        min-height: 50px;
    }

    .blog-excerpt {
        min-height: 65px;
    }

    .blog-image {
        height: 180px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 26px;
        line-height: 1.3;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===============================================
   Кнопка "Вернуться наверх" (Scroll to Top)
   =============================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 10px 30px rgba(6, 78, 59, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover,
.scroll-to-top:focus-within{
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(6, 78, 59, 0.34);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-to-top:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Адаптивность кнопки для мобильных */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* Единый мобильный вид меню и подвала для статей блога */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        border: 1px solid rgba(0, 123, 255, 0.18);
        border-radius: var(--radius-sm);
        background: var(--menu-bg);
        cursor: pointer;
        touch-action: manipulation;
    }

    .menu-toggle span {
        width: 24px;
        height: 2px;
        border-radius: var(--radius-sm);
        background-color: var(--text-color);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .menu-toggle.active span:nth-child(1),
    .menu-toggle span.active:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2),
    .menu-toggle span.active:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3),
    .menu-toggle span.active:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .header .nav {
        position: relative;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 88px;
        left: 16px;
        right: 16px;
        width: auto;
        max-height: calc(100vh - 104px);
        max-height: calc(100dvh - 104px);
        margin: 0;
        padding: 8px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        list-style: none;
        border: 1px solid rgba(0, 123, 255, 0.14);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 22px 55px rgba(17, 24, 39, 0.18);
        z-index: 1100;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        padding: 0;
        border: 0;
    }

    .nav-links a,
    html body .nav-links a {
        width: 100%;
        min-height: 46px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 12px 14px !important;
        color: var(--text-color) !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
        text-align: left !important;
        text-decoration: none !important;
        border: 1px solid transparent;
        border-radius: 8px;
        background: transparent;
        white-space: normal;
    }

    .nav-links a:hover,
    .nav-links a:focus,
    .nav-links a:active {
        color: var(--primary-color) !important;
        background: rgba(0, 123, 255, 0.08);
        border-color: rgba(0, 123, 255, 0.12);
    }

    .footer-links a {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        border: 1px solid #e5edf5;
        background: #fff;
    }
}

@media (max-width: 768px) {
    .nav-links {
        top: 72px;
        left: 12px;
        right: 12px;
        max-height: calc(100vh - 84px);
        max-height: calc(100dvh - 84px);
    }

    .footer {
        padding: 44px 0 20px;
        margin-top: 56px;
    }

    .footer-content {
        gap: 24px;
        margin-bottom: 28px;
    }

    .footer-links ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .footer-links ul {
        grid-template-columns: 1fr;
    }
}

/* Единые touch-правила для меню (мобильные и планшеты) */
@media (max-width: 1024px) {
    html body .nav-links a,
    html body .dropdown-toggle,
    html body .dropdown-content a {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }
}

@media (max-width: 768px) {
    html body .nav-links a,
    html body .dropdown-toggle,
    html body .dropdown-content a {
        min-height: 48px !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    html body .dropdown-content a {
        white-space: normal !important;
    }
}

/* Global override for mixed legacy article templates. Keep this at the end. */
html body .footer .footer-links h3,
html body .footer .footer-links h4 {
    margin: 0 0 16px !important;
    color: #1f2937 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

html body .footer .footer-links ul {
    display: grid !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

html body .footer .footer-links li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

html body .footer .footer-links a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 40px !important;
    padding: 0 !important;
    color: #4b5563 !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
}

html body .footer .footer-links a::before {
    content: "" !important;
    width: 6px !important;
    height: 6px !important;
    flex: 0 0 auto !important;
    border-radius: 50% !important;
    background: var(--primary-color) !important;
}

html body .footer .footer-links a:hover,
html body .footer .footer-links a:focus {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

html body .footer .footer-logo .logo,
html body .footer .footer-logo h3 {
    color: var(--primary-color) !important;
}

html body .footer .footer-logo a,
html body .header .logo a,
html body .header a.logo {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

html body .header .nav-cta .phone-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    padding: 8px 12px !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
}

@media (max-width: 1024px) {
    html body .header .menu-toggle,
    html body .menu-toggle {
        display: flex !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 5px !important;
        padding: 8px !important;
        border: 1px solid rgba(0, 123, 255, 0.18) !important;
        border-radius: 8px !important;
        background: #fff !important;
        box-shadow: none !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
    }

    html body .header .menu-toggle span,
    html body .menu-toggle span {
        display: block !important;
        width: 24px !important;
        height: 2px !important;
        min-height: 0 !important;
        padding: 0 !important;
        border-radius: 2px !important;
        background: var(--text-color) !important;
        transition: transform 0.2s ease, opacity 0.2s ease !important;
    }

    html body .header .nav,
    html body .nav {
        position: relative !important;
    }

    html body .header .nav-links,
    html body .nav-links {
        display: none !important;
        position: fixed !important;
        top: 88px !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        height: auto !important;
        max-height: calc(100vh - 104px) !important;
        max-height: calc(100dvh - 104px) !important;
        margin: 0 !important;
        padding: 8px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        list-style: none !important;
        border: 1px solid rgba(0, 123, 255, 0.14) !important;
        border-radius: 8px !important;
        background: #fff !important;
        box-shadow: 0 22px 55px rgba(17, 24, 39, 0.18) !important;
        z-index: 1100 !important;
        text-align: left !important;
    }

    html body .header .nav-links.active,
    html body .nav-links.active {
        display: flex !important;
    }

    html body .header .nav-links li,
    html body .nav-links li {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        border: 0 !important;
        background: transparent !important;
    }

    html body .header .nav-links a,
    html body .nav-links a {
        width: 100% !important;
        min-height: 46px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 12px 14px !important;
        color: var(--text-color) !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        text-align: left !important;
        text-decoration: none !important;
        border: 1px solid transparent !important;
        border-radius: 8px !important;
        background: transparent !important;
        white-space: normal !important;
    }

    html body .header .nav-links a:hover,
    html body .header .nav-links a:focus,
    html body .nav-links a:hover,
    html body .nav-links a:focus {
        color: var(--primary-color) !important;
        background: rgba(0, 123, 255, 0.08) !important;
        border-color: rgba(0, 123, 255, 0.12) !important;
        text-decoration: none !important;
    }

    html body .footer .footer-links a {
        width: 100% !important;
        min-height: 44px !important;
        padding: 10px 12px !important;
        border: 1px solid #e5edf5 !important;
        background: #fff !important;
    }
}

@media (max-width: 768px) {
    html body .header .nav-links,
    html body .nav-links {
        top: 72px !important;
        left: 12px !important;
        right: 12px !important;
        max-height: calc(100vh - 84px) !important;
        max-height: calc(100dvh - 84px) !important;
    }

    html body .footer .footer-links ul {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    html body .footer .footer-links ul {
        grid-template-columns: 1fr !important;
    }
}

/* Step 3: unified card system for blog lists and related article cards. */
html body .blog-grid,
html body .related-grid,
html body .fohow-static-related__grid {
    gap: clamp(18px, 2.4vw, 30px);
}

html body .blog-card,
html body .related-grid .blog-card,
html body .related-card,
html body .fohow-static-related__card {
    min-height: 100%;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

html body .blog-card,
html body .related-card,
html body .fohow-static-related__card {
    display: flex;
    flex-direction: column;
}

html body .blog-card:hover,
html body .blog-card:focus-within,
html body .related-card:hover,
html body .related-card:focus-within,
html body .fohow-static-related__card:hover,
html body .fohow-static-related__card:focus-visible,
html body .blog-card:focus-within,
html body .related-card:focus-within,
html body .fohow-static-related__card:focus-within{
    border-color: var(--color-border-strong);
    box-shadow: var(--card-shadow);
    transform: translateY(-3px);
}

html body .blog-card .blog-image,
html body .related-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    object-position: center;
    padding: 0;
    background:
        radial-gradient(420px 220px at 50% 0%, rgba(var(--accent-rgb), 0.1), transparent 70%),
        linear-gradient(180deg, rgba(var(--primary-rgb), 0.06), rgba(var(--primary-rgb), 0.025));
    transition: transform var(--transition-normal);
}

html body .blog-card:hover .blog-image,
html body .blog-card:focus-within .blog-image,
html body .related-card:hover img,
html body .related-card:focus-within img,
html body .blog-card:focus-within .blog-image,
html body .related-card:focus-within img{
    transform: scale(1.025);
}

html body .blog-content,
html body .related-card .body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: clamp(18px, 2.2vw, 24px);
}

html body .blog-title,
html body .blog-title a,
html body .related-card-title,
html body .related-card-title a,
html body .related-card .body h3,
html body .fohow-static-related__title {
    color: var(--text-color);
    font-size: var(--h3-size);
    line-height: 1.35;
    letter-spacing: 0;
    text-decoration: none;
}

html body .blog-title:hover,
html body .blog-title:focus-visible,
html body .blog-title a:hover,
html body .blog-title a:focus-visible,
html body .related-card-title a:hover,
html body .related-card-title a:focus-visible,
html body .blog-title:focus-within,
html body .blog-title a:focus-within,
html body .related-card-title a:focus-within{
    color: var(--primary-color);
}

html body .blog-date,
html body .blog-meta,
html body .fohow-static-related__label {
    color: var(--primary-dark);
    font-size: var(--text-sm);
    font-weight: 700;
}

html body .blog-excerpt,
html body .related-card p,
html body .related-card .body p,
html body .fohow-static-related__text {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: var(--line-body);
}

html body .blog-link {
    margin-top: auto;
}

html body .blog-link {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

html body .blog-link:hover,
html body .blog-link:focus-visible,
html body .blog-link:focus-within{
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

html body .blog-card a:focus-visible,
html body .related-card a:focus-visible,
html body .fohow-static-related__card:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    html body .blog-card .blog-image,
    html body .related-card img {
        aspect-ratio: 16 / 11;
    }

    html body .blog-content,
    html body .related-card .body,
    html body .fohow-static-related__card {
        padding: 18px;
    }
}

/* Step 4: unified blog list and article typography. */
html body .blog-container {
    width: min(100% - 32px, 1180px);
    margin: 104px auto 0;
    padding: clamp(36px, 5vw, 64px) 0 0;
}

html body .blog-header {
    max-width: 980px;
    margin: 0 auto clamp(32px, 4vw, 48px);
    text-align: center;
}

html body .blog-header h1 {
    margin: 0 0 18px;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: 0;
}

html body .blog-header p,
html body .sorting-summary {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: var(--line-body);
}

html body .bad-disclaimer {
    max-width: 980px;
    margin: 24px auto;
    padding: 16px 18px;
    border: 1px solid rgba(var(--accent-rgb), 0.42);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fffaf0, #fff7df);
    color: #6b4e16;
    box-shadow: var(--shadow-sm);
}

html body .article-count,
html body .catalog-search-submit,
html body .category-btn.active,
html body .sort-btn.active {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-primary);
}

html body .article-count,
html body .category-btn,
html body .sort-btn,
html body .catalog-search-submit {
    border-radius: var(--radius-pill);
    font-weight: 700;
    transition: var(--transition);
}

html body .article-count:hover,
html body .article-count:focus-visible,
html body .catalog-search-submit:hover,
html body .catalog-search-submit:focus-visible,
html body .category-btn:hover,
html body .category-btn:focus-visible,
html body .sort-btn:hover,
html body .sort-btn:focus-visible,
html body .article-count:focus-within,
html body .catalog-search-submit:focus-within,
html body .category-btn:focus-within,
html body .sort-btn:focus-within{
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

html body .catalog-search-field {
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: var(--radius-pill);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

html body .catalog-search-icon {
    color: var(--primary-color);
}

html body .catalog-search-input {
    color: var(--text-color);
    font-size: var(--text-base);
}

html body .catalog-search-input::placeholder {
    color: var(--color-text-soft);
}

html body .category-menu,
html body .sorting-panel {
    gap: 10px;
}

html body .category-btn,
html body .sort-btn {
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    background: var(--card-bg);
    color: var(--primary-dark);
}

html body .category-btn:hover,
html body .sort-btn:hover,
html body .category-btn:focus-within,
html body .sort-btn:focus-within{
    background: rgba(var(--primary-rgb), 0.08);
}

html body #categoryHeading {
    margin: 0 0 30px !important;
    color: var(--text-color) !important;
    font-family: var(--font-heading) !important;
    font-size: clamp(26px, 3vw, 36px) !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
}

html body .article-container {
    width: min(100% - 32px, 820px);
    max-width: 820px;
    margin: 112px auto 0;
    padding: clamp(32px, 5vw, 56px) 0;
    color: var(--text-color);
}

html body .article-header {
    margin-bottom: 28px;
}

html body .article-header h1,
html body .article-container > h1 {
    margin: 0 0 18px;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.14;
    letter-spacing: 0;
    text-wrap: balance;
}

html body .article-container h2 {
    margin: 46px 0 18px;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

html body .article-container h3 {
    margin: 32px 0 14px;
    color: var(--primary-dark);
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.28;
    letter-spacing: 0;
}

html body .article-container h4,
html body .article-container h5,
html body .article-container h6 {
    margin: 26px 0 12px;
    color: var(--text-color);
    font-size: var(--text-xl);
    line-height: 1.3;
    letter-spacing: 0;
}

html body .article-container p,
html body .article-container li,
html body .article-text,
html body .article-text p,
html body .article-text li {
    color: var(--text-secondary);
    font-size: var(--text-md);
    line-height: var(--line-article);
}

html body .article-container p {
    margin: 0 0 20px;
}

html body .article-container ul,
html body .article-container ol {
    margin: 0 0 24px;
    padding-left: 1.35em;
}

html body .article-container li + li {
    margin-top: 8px;
}

html body .article-container a:not(.blog-link):not(.tag):not(.fohow-static-related__card) {
    color: var(--primary-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

html body .article-container a:not(.blog-link):not(.tag):not(.fohow-static-related__card):hover,
html body .article-container a:not(.blog-link):not(.tag):not(.fohow-static-related__card):focus-visible,
html body .article-container a:not(.blog-link):not(.tag):not(.fohow-static-related__card):focus-within{
    color: var(--primary-color);
}

html body .breadcrumbs,
html body .fohow-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 28px;
    padding: 0 0 16px;
    color: var(--color-text-soft);
    font-size: var(--text-sm);
    line-height: 1.5;
    border-bottom: 1px solid var(--color-border);
}

html body .breadcrumbs a,
html body .fohow-breadcrumbs a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

html body .breadcrumbs a:hover,
html body .breadcrumbs a:focus-visible,
html body .fohow-breadcrumbs a:hover,
html body .fohow-breadcrumbs a:focus-visible,
html body .breadcrumbs a:focus-within,
html body .fohow-breadcrumbs a:focus-within{
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

html body .article-meta,
html body .blog-date,
html body .blog-meta {
    color: var(--color-text-soft);
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.5;
}

html body .article-image,
html body .article-container img.article-image,
html body .article-content img.article-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 28px auto;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
    object-fit: contain;
    background: var(--color-surface-muted);
}

html body .article-container figure {
    margin: 32px 0;
}

html body .article-container figcaption {
    margin-top: 10px;
    color: var(--color-text-soft);
    font-size: var(--text-sm);
    line-height: 1.5;
    text-align: center;
}

html body .quote-block,
html body .article-container blockquote {
    margin: 32px 0;
    padding: 22px 24px;
    color: var(--text-color);
    font-style: normal;
    line-height: var(--line-body);
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.08), rgba(var(--primary-rgb), 0.035));
    border: 1px solid rgba(var(--primary-rgb), 0.16);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

html body .table-of-contents {
    margin: 32px 0;
    padding: 22px 24px;
    background: var(--card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
}

html body .table-of-contents ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

html body .table-of-contents li + li {
    margin-top: 10px;
}

html body .article-container table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

html body .comparison-table,
html body .nutrition-table,
html body .article-container table {
    overflow-x: auto;
}

html body .comparison-table,
html body .nutrition-table {
    margin: 28px 0;
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    background: var(--card-bg);
}

html body .comparison-table table,
html body .nutrition-table table {
    margin: 0;
}

html body .article-container th,
html body .article-container td {
    padding: 13px 14px;
    border: 1px solid var(--color-border);
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.55;
    text-align: left;
    vertical-align: top;
}

html body .article-container th {
    color: var(--text-color);
    background: rgba(var(--primary-rgb), 0.08);
    font-weight: 700;
}

html body .article-container tr:nth-child(even) td {
    background: rgba(var(--primary-rgb), 0.025);
}

html body .article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 36px 0;
}

html body .tag,
html body .article-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    color: var(--primary-dark);
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
}

html body .tag:hover,
html body .tag:focus-visible,
html body .article-tags a:hover,
html body .article-tags a:focus-visible,
html body .tag:focus-within,
html body .article-tags a:focus-within{
    color: var(--primary-color);
    background: rgba(var(--accent-rgb), 0.14);
    border-color: rgba(var(--accent-rgb), 0.28);
}

@media (max-width: 768px) {
    html body .blog-container,
    html body .article-container {
        width: min(100% - 24px, 100%);
        margin-top: 84px;
        padding-top: 28px;
    }

    html body .blog-header h1,
    html body .article-header h1,
    html body .article-container > h1 {
        font-size: clamp(28px, 8vw, 34px);
    }

    html body .article-container h2 {
        font-size: clamp(23px, 6vw, 28px);
    }

    html body .article-container p,
    html body .article-container li,
    html body .article-text,
    html body .article-text p,
    html body .article-text li {
        font-size: var(--text-base);
        line-height: 1.7;
    }

    html body .catalog-search-field {
        border-radius: var(--radius-lg);
    }

    html body .article-image,
    html body .article-container img.article-image {
        margin: 22px auto;
        border-radius: var(--radius-md);
    }

    html body .quote-block,
    html body .article-container blockquote,
    html body .table-of-contents {
        padding: 18px;
    }

    html body .article-container th,
    html body .article-container td {
        padding: 11px 12px;
        font-size: 15px;
    }
}

/* Step 5: unified button system for blog lists and article CTAs. */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-ghost,
html body .article-count,
html body .catalog-search-submit,
html body .category-btn,
html body .sort-btn,
html body .blog-link,
html body .article-container .button,
html body .article-container .cta-button,
html body .article-cta .button,
html body .article-cta .cta-button,
html body .product-cta .cta-button,
html body .cta-box .cta-button,
html body .nav-btn,
html body .book-nav__btn,
html body .meridian-guide__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 44px;
    min-height: 44px;
    padding: var(--button-padding-y) var(--button-padding-x);
    border: 1px solid transparent;
    border-radius: var(--button-radius);
    font-family: var(--font-main);
    font-size: var(--text-base);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
    touch-action: manipulation;
}

.btn,
.btn-primary,
html body .article-count,
html body .catalog-search-submit,
html body .category-btn.active,
html body .sort-btn.active,
html body .article-container .button,
html body .article-container .cta-button,
html body .article-cta .button,
html body .article-cta .cta-button,
html body .product-cta .cta-button,
html body .cta-box .cta-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: rgba(var(--primary-rgb), 0.26);
    box-shadow: var(--shadow-primary);
}

.btn-secondary,
.btn-outline,
html body .category-btn,
html body .sort-btn,
html body .blog-link,
html body .nav-btn,
html body .book-nav__btn,
html body .meridian-guide__nav-btn {
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(var(--primary-rgb), 0.22);
    box-shadow: var(--shadow-sm);
}

.btn-ghost,
html body .blog-link {
    color: var(--primary-dark);
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.14);
    box-shadow: none;
}

.btn-sm,
html body .article-count,
html body .category-btn,
html body .sort-btn,
html body .blog-link {
    min-height: 38px;
    padding: 9px 14px;
    font-size: var(--text-sm);
}

.btn-lg,
html body .article-container .button,
html body .article-container .cta-button,
html body .article-cta .button,
html body .article-cta .cta-button,
html body .product-cta .cta-button,
html body .cta-box .cta-button {
    min-height: 52px;
    padding: 16px 30px;
    font-size: var(--text-lg);
}

html body .nav-btn,
html body .book-nav__btn,
html body .meridian-guide__nav-btn {
    flex: 1 1 220px;
    justify-content: space-between;
    color: var(--text-color);
    background: var(--card-bg);
    border-color: var(--color-border);
    border-radius: var(--radius-md);
}

html body .nav-btn-title,
html body .book-nav__title,
html body .meridian-guide__nav-title {
    color: var(--primary-dark);
}

.btn:hover,
.btn:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible,
html body .article-count:hover,
html body .article-count:focus-visible,
html body .catalog-search-submit:hover,
html body .catalog-search-submit:focus-visible,
html body .category-btn.active:hover,
html body .category-btn.active:focus-visible,
html body .sort-btn.active:hover,
html body .sort-btn.active:focus-visible,
html body .article-container .button:hover,
html body .article-container .button:focus-visible,
html body .article-container .cta-button:hover,
html body .article-container .cta-button:focus-visible,
html body .article-cta .button:hover,
html body .article-cta .button:focus-visible,
html body .article-cta .cta-button:hover,
html body .article-cta .cta-button:focus-visible,
html body .product-cta .cta-button:hover,
html body .product-cta .cta-button:focus-visible,
html body .cta-box .cta-button:hover,
html body .cta-box .cta-button:focus-visible,
.btn:focus-within,
.btn-primary:focus-within,
html body .article-count:focus-within,
html body .catalog-search-submit:focus-within,
html body .category-btn.active:focus-within,
html body .sort-btn.active:focus-within,
html body .article-container .button:focus-within,
html body .article-container .cta-button:focus-within,
html body .article-cta .button:focus-within,
html body .article-cta .cta-button:focus-within,
html body .product-cta .cta-button:focus-within,
html body .cta-box .cta-button:focus-within{
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-outline:hover,
.btn-outline:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible,
html body .category-btn:hover,
html body .category-btn:focus-visible,
html body .sort-btn:hover,
html body .sort-btn:focus-visible,
html body .blog-link:hover,
html body .blog-link:focus-visible,
html body .nav-btn:hover,
html body .nav-btn:focus-visible,
html body .book-nav__btn:hover,
html body .book-nav__btn:focus-visible,
html body .meridian-guide__nav-btn:hover,
html body .meridian-guide__nav-btn:focus-visible,
.btn-secondary:focus-within,
.btn-outline:focus-within,
.btn-ghost:focus-within,
html body .category-btn:focus-within,
html body .sort-btn:focus-within,
html body .blog-link:focus-within,
html body .nav-btn:focus-within,
html body .book-nav__btn:focus-within,
html body .meridian-guide__nav-btn:focus-within{
    color: var(--primary-dark);
    background: rgba(var(--primary-rgb), 0.12);
    border-color: rgba(var(--primary-rgb), 0.32);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-outline:active,
.btn-ghost:active,
html body .article-count:active,
html body .catalog-search-submit:active,
html body .category-btn:active,
html body .sort-btn:active,
html body .blog-link:active,
html body .article-container .button:active,
html body .article-container .cta-button:active,
html body .article-cta .button:active,
html body .article-cta .cta-button:active,
html body .product-cta .cta-button:active,
html body .cta-box .cta-button:active,
html body .nav-btn:active,
html body .book-nav__btn:active,
html body .meridian-guide__nav-btn:active {
    transform: translateY(0);
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-outline:focus-visible,
.btn-ghost:focus-visible,
html body .article-count:focus-visible,
html body .catalog-search-submit:focus-visible,
html body .category-btn:focus-visible,
html body .sort-btn:focus-visible,
html body .blog-link:focus-visible,
html body .article-container .button:focus-visible,
html body .article-container .cta-button:focus-visible,
html body .article-cta .button:focus-visible,
html body .article-cta .cta-button:focus-visible,
html body .product-cta .cta-button:focus-visible,
html body .cta-box .cta-button:focus-visible,
html body .nav-btn:focus-visible,
html body .book-nav__btn:focus-visible,
html body .meridian-guide__nav-btn:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

.btn[aria-disabled="true"],
html body .article-count[aria-disabled="true"],
html body .catalog-search-submit:disabled,
html body .category-btn:disabled,
html body .sort-btn:disabled,
html body .article-container .button[aria-disabled="true"],
html body .article-container .cta-button[aria-disabled="true"] {
    opacity: 0.62;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

html body .image-lightbox__prev,
html body .image-lightbox__next,
html body .image-lightbox__close,
html body .scroll-to-top {
    cursor: pointer;
}

html body .image-lightbox__prev:focus-visible,
html body .image-lightbox__next:focus-visible,
html body .image-lightbox__close:focus-visible,
html body .scroll-to-top:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    html body .catalog-search-submit,
    html body .article-container .button,
    html body .article-container .cta-button,
    html body .article-cta .button,
    html body .article-cta .cta-button,
    html body .product-cta .cta-button,
    html body .cta-box .cta-button {
        width: 100%;
    }

    html body .nav-btn,
    html body .book-nav__btn,
    html body .meridian-guide__nav-btn {
        flex-basis: 100%;
    }
}

/* Step 6: unified mobile menu for blog lists and article templates. */
@media (max-width: 1024px) {
    html body .header {
        z-index: 1400 !important;
    }

    html body .header .nav,
    html body .nav {
        position: relative !important;
        min-height: 68px !important;
    }

    html body .header .menu-toggle,
    html body .menu-toggle {
        display: inline-flex !important;
        order: -1 !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 5px !important;
        padding: 8px !important;
        color: var(--primary-dark) !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid rgba(var(--primary-rgb), 0.22) !important;
        border-radius: var(--radius-md) !important;
        box-shadow: var(--shadow-sm) !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent;
        transition: var(--transition) !important;
        z-index: 1450 !important;
        margin-right: 12px !important;
        margin-left: 0 !important;
    }

    html body .header .nav:has(.menu-toggle),
    html body .nav:has(.menu-toggle) {
        justify-content: flex-start !important;
    }

    html body .header .nav:has(.menu-toggle) .logo,
    html body .nav:has(.menu-toggle) .logo {
        order: 1 !important;
    }

    html body .header .nav:has(.menu-toggle) .nav-links,
    html body .nav:has(.menu-toggle) .nav-links {
        order: 2 !important;
    }

    html body .header .nav:has(.menu-toggle) .nav-cta,
    html body .nav:has(.menu-toggle) .nav-cta {
        order: 3 !important;
        margin-left: auto !important;
    }

    html body .header .menu-toggle:hover,
    html body .header .menu-toggle:focus-visible,
    html body .header .menu-toggle.active,
    html body .menu-toggle:hover,
    html body .menu-toggle:focus-visible,
    html body .menu-toggle.active,
    html body .header .menu-toggle:focus-within,
    html body .menu-toggle:focus-within{
        background: rgba(var(--primary-rgb), 0.1) !important;
        border-color: rgba(var(--primary-rgb), 0.34) !important;
        box-shadow: var(--shadow-md) !important;
        outline: none !important;
    }

    html body .header .menu-toggle:focus-visible,
    html body .menu-toggle:focus-visible {
        outline: 3px solid var(--color-focus) !important;
        outline-offset: 3px !important;
    }

    html body .header .menu-toggle span,
    html body .menu-toggle span {
        display: block !important;
        position: static !important;
        inset: auto !important;
        flex: 0 0 auto !important;
        width: 24px !important;
        height: 2px !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: var(--radius-pill) !important;
        background: var(--primary-dark) !important;
        transform: none !important;
        transition: transform var(--transition-normal), opacity var(--transition-fast), background-color var(--transition-fast) !important;
    }

    html body .header .menu-toggle.active span:nth-child(1),
    html body .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }

    html body .header .menu-toggle.active span:nth-child(2),
    html body .menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }

    html body .header .menu-toggle.active span:nth-child(3),
    html body .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }

    html body .header .nav-links,
    html body .nav-links {
        display: flex !important;
        position: fixed !important;
        top: 84px !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        height: auto !important;
        max-height: calc(100vh - 100px) !important;
        max-height: calc(100dvh - 100px) !important;
        margin: 0 !important;
        padding: 10px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        list-style: none !important;
        text-align: left !important;
        background: var(--menu-bg) !important;
        border: 1px solid var(--menu-border) !important;
        border-radius: var(--radius-lg) !important;
        box-shadow: var(--shadow-lg) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(-8px) scale(0.98) !important;
        transform-origin: top center !important;
        transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal) !important;
        z-index: 1420 !important;
    }

    html body .header .nav-links.active,
    html body .nav-links.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) scale(1) !important;
    }

    html body .header .nav-links li,
    html body .nav-links li {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
        list-style: none !important;
        border: 0 !important;
        background: transparent !important;
    }

    html body .header .nav-links a,
    html body .header .dropdown-toggle,
    html body .nav-links a,
    html body .dropdown-toggle {
        width: 100% !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        padding: 12px 14px !important;
        color: var(--text-color) !important;
        background: transparent !important;
        border: 1px solid transparent !important;
        border-radius: var(--radius-md) !important;
        box-shadow: none !important;
        font-size: var(--text-base) !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        text-align: left !important;
        text-decoration: none !important;
        white-space: normal !important;
        transition: var(--transition) !important;
    }

    html body .header .nav-links a:hover,
    html body .header .nav-links a:focus-visible,
    html body .header .nav-links a:focus,
    html body .header .dropdown-toggle:hover,
    html body .header .dropdown-toggle:focus-visible,
    html body .header .dropdown-toggle.active,
    html body .header .dropdown-toggle[aria-expanded="true"],
    html body .nav-links a:hover,
    html body .nav-links a:focus-visible,
    html body .nav-links a:focus,
    html body .dropdown-toggle:hover,
    html body .dropdown-toggle:focus-visible,
    html body .dropdown-toggle.active,
    html body .dropdown-toggle[aria-expanded="true"],
    html body .header .dropdown-toggle:focus-within,
    html body .dropdown-toggle:focus-within{
        color: var(--primary-dark) !important;
        background: rgba(var(--primary-rgb), 0.1) !important;
        border-color: rgba(var(--primary-rgb), 0.18) !important;
        box-shadow: var(--shadow-sm) !important;
        text-decoration: none !important;
        outline: none !important;
        transform: none !important;
    }

    html body .header .nav-links a:focus-visible,
    html body .header .dropdown-toggle:focus-visible,
    html body .nav-links a:focus-visible,
    html body .dropdown-toggle:focus-visible {
        outline: 3px solid var(--color-focus) !important;
        outline-offset: 2px !important;
    }

    html body .header .dropdown-toggle i,
    html body .dropdown-toggle i {
        margin-left: auto !important;
        flex: 0 0 auto !important;
        color: currentColor !important;
        transition: transform var(--transition-normal) !important;
    }

    html body .header .dropdown-toggle.active i,
    html body .header .dropdown-toggle[aria-expanded="true"] i,
    html body .dropdown-toggle.active i,
    html body .dropdown-toggle[aria-expanded="true"] i {
        transform: rotate(180deg) !important;
    }

    html body .header .dropdown-content,
    html body .dropdown-content {
        position: static !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: rgba(var(--primary-rgb), 0.06) !important;
        border: 0 !important;
        border-radius: var(--radius-md) !important;
        box-shadow: none !important;
        transition: max-height var(--transition-normal), padding var(--transition-normal), margin var(--transition-normal), border-color var(--transition-normal) !important;
    }

    html body .header .dropdown-content.active,
    html body .dropdown-content.active {
        max-height: min(55vh, 520px) !important;
        margin: 4px 0 6px !important;
        padding: 4px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border: 1px solid rgba(var(--primary-rgb), 0.14) !important;
    }

    html body .header .dropdown-content a,
    html body .dropdown-content a {
        justify-content: flex-start !important;
        min-height: 44px !important;
        padding: 10px 12px 10px 30px !important;
        color: var(--text-secondary) !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: var(--radius-sm) !important;
        box-shadow: none !important;
        font-size: var(--text-sm) !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        text-align: left !important;
    }

    html body .header .dropdown-content a:hover,
    html body .header .dropdown-content a:focus-visible,
    html body .header .dropdown-content a:active,
    html body .dropdown-content a:hover,
    html body .dropdown-content a:focus-visible,
    html body .dropdown-content a:active,
    html body .header .dropdown-content a:focus-within,
    html body .dropdown-content a:focus-within{
        color: var(--primary-dark) !important;
        background: rgba(var(--primary-rgb), 0.1) !important;
        outline: none !important;
    }

    html body .header:not(:has(.menu-toggle)) .nav-links {
        display: none !important;
    }

    html body .header:not(:has(.menu-toggle)) .nav {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    html body .header .nav,
    html body .nav {
        min-height: 60px !important;
    }

    html body .header .nav-links,
    html body .nav-links {
        top: 72px !important;
        left: 12px !important;
        right: 12px !important;
        max-height: calc(100vh - 84px) !important;
        max-height: calc(100dvh - 84px) !important;
        padding: 10px !important;
    }

    /* Mobile safety for simple article headers without a burger button. */
    html body .header:not(:has(.menu-toggle)) .nav {
        min-height: 56px !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    html body .header:not(:has(.menu-toggle)) .nav-links,
    html body .header:not(:has(.menu-toggle)) .nav > div[style*="display:flex"],
    html body .header:not(:has(.menu-toggle)) .nav > div[style*="display: flex"] {
        display: none !important;
    }

    html body .header:not(:has(.menu-toggle)) .logo {
        max-width: min(100%, 260px) !important;
        margin: 0 auto !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 420px) {
    html body .header .nav-links,
    html body .nav-links {
        left: 10px !important;
        right: 10px !important;
    }
}

/* Desktop header parity with the home page. */
@media (min-width: 1025px) {
    html[data-effective-theme] body .header,
    html[data-effective-theme] body header.header {
        height: 70px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border-bottom: 1px solid rgba(var(--primary-rgb), 0.12) !important;
        box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        z-index: 1000 !important;
    }

    html[data-effective-theme="dark"] body .header,
    html[data-effective-theme="dark"] body header.header {
        background: rgba(6, 31, 25, 0.92) !important;
        border-bottom-color: rgba(230, 244, 241, 0.14) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24) !important;
    }

    html[data-effective-theme] body .header .nav,
    html[data-effective-theme] body header.header .nav {
        width: 100% !important;
        max-width: 1340px !important;
        height: 76px !important;
        min-height: 76px !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
        gap: 18px !important;
        justify-content: space-between !important;
        align-items: center !important;
        overflow: visible !important;
    }

    html[data-effective-theme] body .header .menu-toggle,
    html[data-effective-theme] body header.header .menu-toggle {
        display: none !important;
    }

    html[data-effective-theme] body .header .nav-links,
    html[data-effective-theme] body header.header .nav-links {
        position: static !important;
        display: flex !important;
        width: auto !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        overflow: visible !important;
        list-style: none !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        font-family: var(--font-main, "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif) !important;
    }

    html[data-effective-theme] body .header .nav-links > li,
    html[data-effective-theme] body header.header .nav-links > li {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
        border: 0 !important;
        background: transparent !important;
    }

    html[data-effective-theme] body .header .nav-links > li > a,
    html[data-effective-theme] body .header .dropdown-toggle,
    html[data-effective-theme] body .header .menu-search-link,
    html[data-effective-theme] body header.header .nav-links > li > a,
    html[data-effective-theme] body header.header .dropdown-toggle,
    html[data-effective-theme] body header.header .menu-search-link {
        width: auto !important;
        min-width: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 10px 14px !important;
        color: var(--primary-color) !important;
        background: transparent !important;
        border: 1px solid transparent !important;
        border-radius: var(--radius-pill) !important;
        box-shadow: none !important;
        font-family: var(--font-main, "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif) !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        transition: var(--transition) !important;
    }

    html[data-effective-theme] body .header .nav-links > li > a:hover,
    html[data-effective-theme] body .header .nav-links > li > a:focus-visible,
    html[data-effective-theme] body .header .dropdown-toggle:hover,
    html[data-effective-theme] body .header .dropdown-toggle:focus-visible,
    html[data-effective-theme] body .header .menu-search-link:hover,
    html[data-effective-theme] body .header .menu-search-link:focus-visible,
    html[data-effective-theme] body .header .nav-links > li > a:focus-within,
    html[data-effective-theme] body .header .dropdown-toggle:focus-within,
    html[data-effective-theme] body .header .menu-search-link:focus-within{
        color: var(--primary-dark) !important;
        background: rgba(var(--primary-rgb), 0.09) !important;
        border-color: rgba(var(--primary-rgb), 0.14) !important;
        text-decoration: none !important;
        outline: none !important;
    }

    html[data-effective-theme] body .header .nav-links > li > a.brand-name,
    html[data-effective-theme] body header.header .nav-links > li > a.brand-name {
        color: var(--primary-color) !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
    }

    html[data-effective-theme] body .header .dropdown-toggle i,
    html[data-effective-theme] body header.header .dropdown-toggle i {
        margin-left: 2px !important;
        font-size: 12px !important;
        color: currentColor !important;
        transition: transform var(--transition-normal) !important;
    }

    html[data-effective-theme] body .header .dropdown:hover .dropdown-toggle i,
    html[data-effective-theme] body .header .dropdown.hover .dropdown-toggle i,
    html[data-effective-theme] body header.header .dropdown:hover .dropdown-toggle i,
    html[data-effective-theme] body header.header .dropdown.hover .dropdown-toggle i,
    html[data-effective-theme] body .header .dropdown:focus-within .dropdown-toggle i,
    html[data-effective-theme] body header.header .dropdown:focus-within .dropdown-toggle i{
        transform: rotate(180deg) !important;
    }

    html[data-effective-theme] body .header .dropdown-content,
    html[data-effective-theme] body header.header .dropdown-content {
        top: 100% !important;
        left: 0 !important;
        min-width: 220px !important;
        padding: 8px !important;
        background: var(--menu-bg) !important;
        border: 1px solid var(--menu-border) !important;
        border-radius: var(--radius-md) !important;
        box-shadow: var(--shadow-lg) !important;
    }

    html[data-effective-theme] body .header .dropdown-content a,
    html[data-effective-theme] body header.header .dropdown-content a {
        min-height: 40px !important;
        justify-content: flex-start !important;
        padding: 10px 12px !important;
        border-radius: var(--radius-sm) !important;
        color: var(--text-color) !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-align: left !important;
        white-space: nowrap !important;
    }

    html[data-effective-theme] body .header .nav-cta,
    html[data-effective-theme] body header.header .nav-cta {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
    }

    html[data-effective-theme] body .header .nav-cta .phone-link,
    html[data-effective-theme] body header.header .nav-cta .phone-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        min-height: 40px !important;
        padding: 10px 14px !important;
        color: var(--primary-color) !important;
        background: rgba(var(--primary-rgb), 0.08) !important;
        border: 1px solid rgba(var(--primary-rgb), 0.18) !important;
        border-radius: var(--radius-md) !important;
        box-shadow: none !important;
        font-family: var(--font-main, "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif) !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }
}

/* Step 7: unified image system for blog lists and article templates. */
:root {
    --image-bg: var(--color-surface-muted);
    --image-radius: var(--radius-md);
    --image-radius-lg: var(--card-radius);
    --image-shadow: var(--shadow-md);
}

html body img,
html body picture,
html body svg {
    max-width: 100%;
}

html body img {
    height: auto;
    display: block;
}

html body picture {
    display: block;
}

html body .feature-icon svg,
html body .training-icon svg,
html body .contact-icon svg,
html body .nav svg,
html body .footer svg,
html body .btn svg,
html body .article-container svg,
html body .article-content svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    stroke: currentColor;
}

html body .blog-card .blog-image,
html body .related-grid .blog-card .blog-image,
html body .related-card img,
html body .fohow-static-related__card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: contain !important;
    object-position: center;
    padding: 0 !important;
    border-radius: var(--image-radius-lg) var(--image-radius-lg) 0 0;
    background:
        radial-gradient(420px 220px at 50% 0%, rgba(var(--accent-rgb), 0.1), transparent 70%),
        linear-gradient(180deg, rgba(var(--primary-rgb), 0.06), rgba(var(--primary-rgb), 0.025));
    transition: transform var(--transition-normal);
}

html body .blog-card:hover .blog-image,
html body .blog-card:focus-within .blog-image,
html body .related-card:hover img,
html body .related-card:focus-within img,
html body .blog-card:focus-within .blog-image,
html body .related-card:focus-within img{
    transform: none !important;
}

html body .article-image,
html body .article-container img.article-image,
html body .article-content img.article-image,
html body .article-container > img,
html body .article-content > img,
html body .figure-card img,
html body .meridian-guide__figure-card img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 28px auto;
    object-fit: contain !important;
    object-position: center;
    border-radius: var(--image-radius-lg);
    box-shadow: var(--image-shadow);
    background: var(--image-bg);
}

html body .article-container figure,
html body .article-content figure,
html body .figure-card,
html body .meridian-guide__figure-card {
    margin: 32px 0;
}

html body .article-container figure img,
html body .article-content figure img,
html body .figure-card img,
html body .meridian-guide__figure-card img {
    margin: 0 auto;
}

html body .article-container figcaption,
html body .article-content figcaption,
html body .figure-card figcaption,
html body .meridian-guide__figure-card figcaption {
    margin-top: 10px;
    color: var(--color-text-soft);
    font-size: var(--text-sm);
    line-height: 1.5;
    text-align: center;
}

html body .image-grid,
html body .gallery-grid {
    gap: clamp(14px, 2vw, 22px);
}

html body .image-grid .slide,
html body .gallery-grid .gallery-item,
html body .article-gallery .gallery-item {
    overflow: hidden;
    border-radius: var(--image-radius-lg);
    background: var(--image-bg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

html body .image-grid .slide img,
html body .gallery-grid .gallery-item img,
html body .article-gallery .gallery-item img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: contain !important;
    object-position: center;
    margin: 0 auto;
    border-radius: var(--image-radius);
    background: var(--image-bg);
}

html body .product-grid img,
html body .products-grid img,
html body .product-card img,
html body .product-card .blog-image {
    object-fit: contain !important;
    object-position: center;
    background: var(--image-bg);
}

html body .image-lightbox__img,
html body .slide-window-image,
html body .modal-image {
    width: auto !important;
    max-width: min(100%, 96vw) !important;
    max-height: 90vh !important;
    object-fit: contain !important;
    border-radius: var(--image-radius);
    background: #000;
    box-shadow: none;
}

/* Universal article image zoom: desktop hover preview + tap/click lightbox. */
html body .article-zoomable-image {
    cursor: zoom-in;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), filter var(--transition-normal);
}

@media (hover: none), (pointer: coarse) {
    html body .article-zoomable-image {
        touch-action: pan-y pinch-zoom !important;
        -webkit-tap-highlight-color: rgba(var(--primary-rgb), 0.2);
    }
}

@media (hover: hover) and (pointer: fine) {
    html body .article-zoomable-image:hover,
    html body .article-zoomable-image:focus-visible,
    html body .article-zoomable-image:focus-within{
        filter: saturate(1.04) contrast(1.02);
        outline: 3px solid rgba(var(--accent-rgb), 0.34);
        outline-offset: 4px;
    }
}

html body.article-zoom-open {
    overflow: hidden;
}

html body .article-zoom-indicator {
    position: fixed;
    z-index: 10020;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
    transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
}

html body .article-zoom-indicator.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-2px);
}

html body .article-zoom-indicator[hidden] {
    display: none;
}

html body .article-zoom-indicator__icon {
    position: relative;
    width: 22px;
    height: 22px;
    color: #ffffff;
}

html body .article-zoom-indicator__icon::before,
html body .article-zoom-indicator__icon::after {
    content: "";
    position: absolute;
    display: block;
}

html body .article-zoom-indicator__icon::before {
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background:
        linear-gradient(currentColor, currentColor) center / 7px 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 7px no-repeat;
}

html body .article-zoom-indicator__icon::after {
    top: 15px;
    left: 15px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left center;
}

html body .article-zoom-persistent-badge {
    position: absolute;
    z-index: 900;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
    pointer-events: none;
}

html body .article-zoom-persistent-badge[hidden] {
    display: none;
}

html body .article-zoom-touch-hint {
    position: fixed;
    z-index: 10020;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(7px);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
    font-size: clamp(0.78rem, 3.6vw, 0.92rem);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

html body .article-zoom-touch-hint.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

html body .article-zoom-touch-hint[hidden] {
    display: none;
}

html body .article-zoom-mobile-badge {
    position: fixed;
    z-index: 10020;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

html body .article-zoom-mobile-badge.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
    html body .article-zoom-mobile-badge {
        display: none;
    }
}

html body .health-tech-zoom-hint,
html body .oxy-zoom-hint {
    display: none !important;
}

html body .article-zoom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10030;
    display: flex;
    padding: clamp(10px, 2vw, 24px);
    background: rgba(2, 6, 23, 0.9);
    opacity: 0;
    visibility: hidden;
    overscroll-behavior: none;
    touch-action: none;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

html body .article-zoom-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

html body .article-zoom-lightbox[hidden] {
    display: none;
}

html body .article-zoom-lightbox__dialog {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

html body .article-zoom-lightbox__scroller {
    min-width: 0;
    min-height: 0;
    display: flex;
    overflow: auto;
    padding: clamp(54px, 6vw, 72px) clamp(16px, 3vw, 32px) clamp(18px, 3vw, 32px);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: none;
}

html body .article-zoom-lightbox__scroller:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: -6px;
}

html body .article-zoom-lightbox__image {
    display: block;
    flex: 0 0 auto;
    width: auto;
    max-width: none !important;
    max-height: none !important;
    height: auto !important;
    margin: auto !important;
    object-fit: contain !important;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
    user-select: none;
    -webkit-user-drag: none;
}

html body .article-zoom-lightbox__caption {
    margin: 0;
    padding: 12px 18px 16px;
    color: rgba(255, 255, 255, 0.88);
    font-size: var(--text-sm);
    line-height: 1.45;
    text-align: center;
}

html body .article-zoom-lightbox__close {
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    z-index: 10040;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
    cursor: pointer;
    font-size: 42px;
    line-height: 1;
    transition: var(--transition);
}

html body .article-zoom-lightbox__close:hover,
html body .article-zoom-lightbox__close:focus-visible,
html body .article-zoom-lightbox__close:focus-within{
    background: rgba(var(--primary-rgb), 0.94);
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    html body .article-zoom-indicator {
        display: none;
    }

    html body .article-zoom-lightbox {
        padding: 8px;
    }

    html body .article-zoom-lightbox__dialog {
        border-radius: var(--radius-md);
    }

    html body .article-zoom-lightbox__scroller {
        padding: 60px 12px 18px;
    }

    html body .article-zoom-lightbox__image {
        margin: auto !important;
    }

    html body .article-zoom-lightbox__close {
        top: max(12px, env(safe-area-inset-top));
        right: max(12px, env(safe-area-inset-right));
        width: 54px;
        height: 54px;
        font-size: 38px;
    }
}

html body noscript img[src*="mc.yandex"],
html body img[src*="mc.yandex"] {
    max-width: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

@media (max-width: 768px) {
    html body .blog-card .blog-image,
    html body .related-grid .blog-card .blog-image,
    html body .related-card img,
    html body .fohow-static-related__card img,
    html body .image-grid .slide img,
    html body .gallery-grid .gallery-item img,
    html body .article-gallery .gallery-item img {
        aspect-ratio: 16 / 11;
    }

    html body .article-image,
    html body .article-container img.article-image,
    html body .article-content img.article-image,
    html body .article-container > img,
    html body .article-content > img,
    html body .figure-card img,
    html body .meridian-guide__figure-card img {
        margin: 22px auto;
        border-radius: var(--image-radius);
    }
}

/* Step 8: final visual consistency polish for blog lists and articles. */
:root {
    --space-section: clamp(56px, 6vw, 80px);
    --article-measure: 74ch;
    --section-band-soft: linear-gradient(180deg, rgba(var(--primary-rgb), 0.045), rgba(var(--accent-rgb), 0.035));
}

html,
body {
    overflow-x: clip;
}

html body .blog-container {
    padding-bottom: var(--space-section);
}

html body .article-container {
    padding-bottom: var(--space-section);
}

html body .blog-header,
html body .article-header {
    margin-bottom: clamp(28px, 4vw, 44px);
}

html body .blog-header h1,
html body .article-header h1,
html body .article-container > h1 {
    color: var(--text-color);
    font-family: var(--font-heading);
    line-height: 1.14;
    letter-spacing: 0;
    text-wrap: balance;
}

html body .article-container h2 {
    margin-top: clamp(38px, 5vw, 52px);
    color: var(--text-color);
    font-family: var(--font-heading);
    line-height: 1.2;
    text-wrap: balance;
}

html body .article-container h3 {
    color: var(--primary-dark);
}

html body .article-container p,
html body .article-container li,
html body .article-text,
html body .article-text p,
html body .article-text li {
    color: var(--text-secondary);
}

html body .article-meta,
html body .blog-date,
html body .blog-meta,
html body .sorting-summary {
    color: var(--text-secondary);
}

html body .bad-disclaimer,
html body .table-of-contents,
html body .toc,
html body .quote-block,
html body .article-container blockquote {
    border-radius: var(--radius-md);
}

html body .table-of-contents,
html body .toc {
    background: var(--section-band-soft);
    border: 1px solid rgba(var(--primary-rgb), 0.16);
}

html body .comparison-table,
html body .nutrition-table,
html body .article-container table {
    max-width: 100%;
}

html body .footer {
    margin-top: 0;
}

@media (max-width: 768px) {
    :root {
        --space-section: clamp(46px, 11vw, 64px);
    }

    html body .blog-header h1,
    html body .article-header h1,
    html body .article-container > h1 {
        font-size: clamp(29px, 8vw, 36px);
    }

    html body .article-container h2 {
        font-size: clamp(24px, 6vw, 30px);
    }
}

/* Contrast safety patch: CTA panel copy must stay readable over saturated backgrounds. */
html body .cta-box,
html body .article-cta,
html body .product-cta {
    color: #ffffff !important;
}

html body .cta-box h2,
html body .cta-box h3,
html body .cta-box h4,
html body .cta-box p,
html body .cta-box li,
html body .article-cta h2,
html body .article-cta h3,
html body .article-cta h4,
html body .article-cta p,
html body .article-cta li,
html body .product-cta h2,
html body .product-cta h3,
html body .product-cta h4,
html body .product-cta p,
html body .product-cta li {
    color: #ffffff !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.24);
}

/* Contrast safety patch: article CTA links must stay readable over green buttons. */
html body .article-container a.button,
html body .article-container a.cta-button,
html body .article-cta a.button,
html body .article-cta a.cta-button,
html body .product-cta a.cta-button,
html body .cta-box a.cta-button {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    text-decoration: none !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.24);
}

html body .article-container a.button:hover,
html body .article-container a.button:focus-visible,
html body .article-container a.cta-button:hover,
html body .article-container a.cta-button:focus-visible,
html body .article-cta a.button:hover,
html body .article-cta a.button:focus-visible,
html body .article-cta a.cta-button:hover,
html body .article-cta a.cta-button:focus-visible,
html body .product-cta a.cta-button:hover,
html body .product-cta a.cta-button:focus-visible,
html body .cta-box a.cta-button:hover,
html body .cta-box a.cta-button:focus-visible,
html body .article-container a.button:focus-within,
html body .article-container a.cta-button:focus-within,
html body .article-cta a.button:focus-within,
html body .article-cta a.cta-button:focus-within,
html body .product-cta a.cta-button:focus-within,
html body .cta-box a.cta-button:focus-within{
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
}

/* Mobile article readability patch: breadcrumbs, tags, and zoom gestures. */
html body .article-tags {
    align-items: center;
    gap: 10px;
}

html body .article-tags > h2,
html body .article-tags > h3,
html body .article-tags > p,
html body .article-tags > span {
    flex: 0 0 auto;
    margin: 0 6px 0 0;
    color: var(--primary-dark);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    line-height: 1.2;
}

html body .article-tags > .tag,
html body .article-tags > a {
    margin: 0 !important;
    line-height: 1.2;
    text-align: center;
}

/* Portrait safety: keep the president's face visible in blog card crops. */
html body .blog-card img.blog-image[src$="foh1.webp"],
html body .related-grid .blog-card img.blog-image[src$="foh1.webp"],
html body .related-card img[src$="foh1.webp"],
html body .fohow-static-related__card img[src$="foh1.webp"] {
    object-position: center top !important;
}

/* Site-wide card image safety: cards often use images with embedded text. */
html body .blog-card .blog-image,
html body .blog-card img.blog-image,
html body .related-grid .blog-card .blog-image,
html body .related-grid .blog-card img.blog-image,
html body .related-card img,
html body .fohow-static-related__card img {
    object-fit: contain !important;
    object-position: center !important;
}

html body .blog-card:hover .blog-image,
html body .blog-card:focus-within .blog-image,
html body .blog-card:hover img.blog-image,
html body .blog-card:focus-within img.blog-image,
html body .related-card:hover img,
html body .related-card:focus-within img,
html body .fohow-static-related__card:hover img,
html body .fohow-static-related__card:focus-visible img,
html body .blog-card:focus-within .blog-image,
html body .blog-card:focus-within img.blog-image,
html body .related-card:focus-within img,
html body .fohow-static-related__card:focus-within img{
    transform: none !important;
}

@media (max-width: 768px) {
    html body .breadcrumbs,
    html body .fohow-breadcrumbs {
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 100%;
        padding-bottom: 12px;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    html body .breadcrumbs::-webkit-scrollbar,
    html body .fohow-breadcrumbs::-webkit-scrollbar {
        display: none;
    }

    html body .breadcrumbs a,
    html body .breadcrumbs span,
    html body .fohow-breadcrumbs a,
    html body .fohow-breadcrumbs span {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        line-height: 1.2;
    }

    html body .breadcrumbs span:last-child,
    html body .fohow-breadcrumbs span:last-child {
        max-width: min(68vw, 360px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    html body .article-tags {
        align-items: flex-start;
        gap: 8px;
        margin: 28px 0;
    }

    html body .article-tags > h2,
    html body .article-tags > h3,
    html body .article-tags > p,
    html body .article-tags > span {
        flex: 0 0 100%;
        margin: 0 0 2px;
        font-size: 18px;
    }

    html body .tag,
    html body .article-tags a {
        max-width: 100%;
        margin: 0 !important;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (hover: hover) and (pointer: fine) {
    html body .article-zoom-touch-hint {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .article-zoom-touch-hint,
    html body .article-zoom-mobile-badge {
        transition: none;
    }
}

/* Mobile fixed-header compactness for legacy article templates. */
@media (max-width: 768px) {
    html body .header,
    html body header.header {
        min-height: 48px !important;
        padding: 0 14px !important;
    }

    html body .header .nav,
    html body header.header .nav {
        height: 48px !important;
        min-height: 48px !important;
        padding: 0 !important;
    }

    html body .header .nav:has(.menu-toggle),
    html body header.header .nav:has(.menu-toggle) {
        justify-content: flex-start !important;
    }

    html body .header .nav:has(.menu-toggle) .menu-toggle,
    html body header.header .nav:has(.menu-toggle) .menu-toggle {
        order: -1 !important;
        margin-right: 12px !important;
        margin-left: 0 !important;
    }

    html body .header .logo,
    html body .header a.logo,
    html body header.header .logo,
    html body header.header a.logo {
        display: inline-flex !important;
        align-items: center !important;
        max-width: min(100%, 260px) !important;
        min-height: 0 !important;
        font-size: 20px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    html body .header .nav:has(.menu-toggle) .logo,
    html body header.header .nav:has(.menu-toggle) .logo {
        order: 1 !important;
    }

    html body .header .nav-links,
    html body .nav-links {
        top: 56px !important;
        max-height: calc(100vh - 68px) !important;
        max-height: calc(100dvh - 68px) !important;
    }

    html body .blog-container,
    html body .article-container {
        margin-top: 58px !important;
        padding-top: 20px !important;
    }

    html body > .hero:first-of-type,
    html body main > .hero:first-child {
        margin-top: 48px !important;
    }

    html body article.article,
    html body main article.article {
        margin-top: 60px !important;
    }
}

/* iOS Safari can spend the first tap on simulated hover when cards move.
   Keep touch cards static so article links navigate on the first tap. */
@media (hover: none), (pointer: coarse) {
    html body .blog-card,
    html body .related-grid .blog-card,
    html body .related-card,
    html body .fohow-static-related__card {
        height: auto !important;
        min-height: 0 !important;
        transform: none !important;
    }

    html body .blog-content,
    html body .related-card .body {
        flex: 0 0 auto !important;
    }

    html body .blog-excerpt {
        flex: 0 0 auto !important;
        min-height: 0 !important;
        margin-bottom: 16px !important;
    }

    html body .blog-card:hover,
    html body .blog-card:focus-within,
    html body .related-grid .blog-card:hover,
    html body .related-grid .blog-card:focus-within,
    html body .related-card:hover,
    html body .related-card:focus-within,
    html body .fohow-static-related__card:hover,
    html body .fohow-static-related__card:focus-visible,
    html body .blog-card:focus-within,
    html body .related-grid .blog-card:focus-within,
    html body .related-card:focus-within,
    html body .fohow-static-related__card:focus-within{
        transform: none !important;
    }

    html body .blog-card .blog-image,
    html body .blog-card img.blog-image,
    html body .related-grid .blog-card .blog-image,
    html body .related-grid .blog-card img.blog-image,
    html body .related-card img {
        transform: none !important;
    }

    html body .blog-card:hover .blog-image,
    html body .blog-card:focus-within .blog-image,
    html body .blog-card:hover img.blog-image,
    html body .blog-card:focus-within img.blog-image,
    html body .related-grid .blog-card:hover .blog-image,
    html body .related-grid .blog-card:focus-within .blog-image,
    html body .related-grid .blog-card:hover img.blog-image,
    html body .related-grid .blog-card:focus-within img.blog-image,
    html body .related-card:hover img,
    html body .related-card:focus-within img,
    html body .blog-card:focus-within .blog-image,
    html body .blog-card:focus-within img.blog-image,
    html body .related-grid .blog-card:focus-within .blog-image,
    html body .related-grid .blog-card:focus-within img.blog-image,
    html body .related-card:focus-within img{
        transform: none !important;
    }

    html body .blog-card a:hover,
    html body .blog-card a:focus,
    html body .blog-link,
    html body .blog-link:hover,
    html body .blog-link:focus,
    html body .blog-link:active,
    html body .blog-link:hover i,
    html body .blog-link:focus i,
    html body .blog-link:active i {
        transform: none !important;
    }

    html body .blog-link,
    html body .blog-link:hover,
    html body .blog-link:focus,
    html body .blog-link:focus-visible,
    html body .blog-link:active {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        min-width: 44px !important;
        min-height: 48px !important;
        padding: 12px 18px !important;
        border: 1px solid rgba(var(--primary-rgb), 0.18) !important;
        border-radius: var(--button-radius) !important;
        color: var(--primary-dark) !important;
        background: rgba(var(--primary-rgb), 0.08) !important;
        box-shadow: none !important;
        margin-top: 0 !important;
        outline-offset: 2px !important;
        text-decoration: none !important;
        user-select: auto !important;
        -webkit-user-select: auto !important;
        -webkit-touch-callout: default !important;
    }

    html body .blog-card a,
    html body .blog-title,
    html body .blog-title a,
    html body .blog-link {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(var(--primary-rgb), 0.18);
    }
}

/* End of file */ 
.blog-card {
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}
