:root {
    --gh-font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --gh-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-500: #22c55e;
    --primary-600: #16a34a;
    --primary-700: #15803d;
    --primary-800: #166534;

    --accent-50: #f0f9ff;
    --accent-100: #e0f2fe;
    --accent-500: #0ea5e9;
    --accent-600: #0284c7;
    --accent-700: #0369a1;
    --accent-800: #075985;

    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-500: #737373;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;

    --success-100: #dcfce7;
    --success-700: #15803d;
    --error-100: #fee2e2;
    --error-700: #b91c1c;

    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06);
    --shadow-md: 0 10px 20px rgb(0 0 0 / 0.08);
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--gh-font-body);
    color: var(--neutral-800);
    background:
        radial-gradient(circle at 10% 0%, var(--primary-50), transparent 40%),
        radial-gradient(circle at 90% 0%, var(--accent-50), transparent 50%),
        var(--neutral-50);
    line-height: 1.6;
}

a {
    color: var(--accent-700);
    text-decoration: none;
}

a:hover {
    color: var(--accent-800);
}

.container {
    width: min(1320px, calc(100% - 2rem));
    margin: 0 auto;
}

.container-narrow {
    width: min(980px, calc(100% - 2rem));
    margin: 0 auto;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--neutral-200);
    background: #fff;
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--neutral-900);
    font-weight: 800;
}

.brand-logo {
    width: clamp(115px, 17vw, 190px);
    height: auto;
    display: block;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(140deg, var(--primary-500), var(--accent-600));
    box-shadow: var(--shadow-sm);
    font-weight: 800;
}

.brand-name {
    display: none;
}

.site-nav .nav {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 0.25rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
}

.site-nav #primary-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-drawer-brand {
    display: none;
}

.nav-drawer-logo {
    display: block;
    width: auto;
    height: 32px;
    max-width: 210px;
}

.site-nav .nav a {
    display: inline-block;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    color: var(--neutral-700);
    font-weight: 600;
    font-size: 0.92rem;
}

.site-nav .nav a:hover,
.site-nav .nav-current a {
    background: var(--accent-100);
    color: var(--accent-800);
}

.site-nav .nav a[href$="/about/"],
.site-nav .nav a[href$="/about"] {
    display: none;
}

.nav-bmi-link {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--primary-600);
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    color: var(--primary-700);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.nav-bmi-link:hover {
    color: #fff;
    background: var(--primary-600);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0.5rem 0.3rem;
    gap: 0.34rem;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
}

.nav-toggle span {
    display: block;
    height: 2.5px;
    border-radius: 999px;
    background: var(--primary-600);
}

.nav-backdrop {
    display: none;
}

body.mobile-nav-open {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--gh-font-heading);
}

.frontpage-main {
    margin-top: 0.55rem;
    margin-bottom: 0.85rem;
}

.top-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr;
    gap: 0.85rem;
}

.top-lead-card {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.top-lead-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
}

.top-lead-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-lead-body {
    padding: 0.9rem 0.95rem 0.95rem;
}

.top-lead-body h2 {
    margin: 0 0 0.4rem;
    line-height: 1.15;
    font-size: clamp(1.35rem, 2.25vw, 1.85rem);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-lead-body p {
    margin: 0;
    color: var(--neutral-700);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-side-list {
    display: grid;
    gap: 0.65rem;
}

.top-side-item {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.top-side-thumb {
    display: flex;
    flex: 0 0 118px;
    width: 118px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
}

.top-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-side-content {
    min-width: 0;
    flex: 1 1 auto;
    padding: 0.55rem 0.65rem 0.55rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.top-side-content h3 {
    margin: 0;
    line-height: 1.22;
    font-size: 0.91rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-side-content h3 a {
    display: block;
}

.top-side-content time {
    display: inline-block;
    margin-top: 0.2rem;
    color: var(--neutral-500);
    font-size: 0.72rem;
}

.breaking-strip {
    margin-top: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid var(--neutral-200);
    border-left: 4px solid var(--error-700);
    border-radius: var(--radius-lg);
    background: #fff;
    padding: 0.62rem 0.8rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.breaking-strip strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--error-700);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
}

.breaking-links {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    white-space: nowrap;
    flex: 1 1 auto;
    scrollbar-width: thin;
}

.breaking-links a {
    display: inline-flex;
    align-items: center;
    font-size: 0.84rem;
    line-height: 1.2;
    color: var(--neutral-700);
    padding-right: 0.55rem;
    border-right: 1px solid var(--neutral-300);
}

.breaking-links a:last-child {
    border-right: 0;
    padding-right: 0;
}

.breaking-links a:hover {
    color: var(--accent-700);
}

.home-columns {
    margin-bottom: 1.75rem;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr;
    gap: 0.85rem;
}

.section-head {
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--neutral-200);
}

.section-head h2 {
    margin: 0;
    padding: 0.25rem 0 0.45rem;
    font-size: 1.08rem;
    color: var(--neutral-900);
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    line-height: 1;
    font-size: 0.75rem;
    border-radius: 999px;
    flex: 0 0 auto;
}

.title-icon-latest {
    color: #fff;
    background: var(--primary-600);
}

.title-icon-youtube {
    color: #fff;
    background: var(--error-700);
    border-radius: 0.25rem;
    font-size: 0.65rem;
    padding-left: 0.08rem;
}

.title-icon-topics {
    color: #fff;
    background: var(--accent-700);
    font-size: 0.7rem;
}

.title-icon-products {
    color: #fff;
    background: var(--primary-700);
    font-size: 0.75rem;
}

.section-head-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.youtube-link {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--error-700);
}

.youtube-link:hover {
    color: #991b1b;
}

.products-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-700);
}

.products-link:hover {
    color: var(--primary-800);
}

.youtube-strip {
    margin-top: 0;
    margin-bottom: 0;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 0.55rem 0.65rem 0.65rem;
}

.shorts-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84px, 98px);
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.category-column .shorts-grid {
    grid-auto-flow: initial;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow-x: visible;
}

.short-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}

.short-card iframe {
    width: 100%;
    aspect-ratio: 9 / 16;
    border: 0;
    display: block;
}

.latest-column {
    min-width: 0;
}

.latest-list {
    display: grid;
    gap: 0.75rem;
}

.latest-item {
    display: grid;
    grid-template-columns: 205px 1fr;
    gap: 0.65rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.latest-thumb {
    display: block;
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
}

.latest-thumb img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}

.latest-content {
    padding: 0.65rem 0.75rem 0.65rem 0;
}

.latest-content h3 {
    margin: 0 0 0.2rem;
    line-height: 1.23;
    font-size: 0.99rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-content p {
    margin: 0 0 0.35rem;
    color: var(--neutral-700);
    font-size: 0.86rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-column {
    display: grid;
    gap: 0.7rem;
    align-content: start;
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 96px);
    overflow: auto;
    padding-right: 0.15rem;
}

.category-block {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    background: #fff;
    padding: 0.55rem 0.7rem;
    box-shadow: var(--shadow-sm);
}

.mobile-trending-block {
    display: none;
}

.category-block .section-head {
    margin-bottom: 0.25rem;
}

.category-block .section-head h2 {
    font-size: 0.95rem;
}

.topics-list {
    display: grid;
    gap: 0.5rem;
}

.trending-articles-list {
    display: grid;
    counter-reset: trend-item;
}

.trending-articles-list .mini-item {
    display: grid;
    grid-template-columns: 1.5rem 1fr;
    column-gap: 0.5rem;
    align-items: center;
}

.trending-articles-list .mini-item::before {
    counter-increment: trend-item;
    content: counter(trend-item);
    color: #fff;
    font-weight: 800;
    font-size: 0.72rem;
    line-height: 1;
    width: 1.3rem;
    height: 1.3rem;
    min-width: 1.3rem;
    border-radius: 999px;
    background: linear-gradient(140deg, var(--primary-600), var(--accent-600));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-row: 1 / span 2;
}

.trending-articles-list .mini-item a,
.trending-articles-list .mini-item time {
    grid-column: 2;
}

.topic-card {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fff 0%, var(--neutral-50) 100%);
    padding: 0.55rem 0.6rem;
}

.trending-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.trend-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--neutral-300);
    border-radius: 999px;
    padding: 0.2rem 0.52rem;
    font-size: 0.77rem;
    color: var(--neutral-700);
    background: #fff;
}

.trend-pill:hover {
    border-color: var(--accent-600);
    color: var(--accent-700);
    background: var(--accent-50);
}

.products-list {
    display: grid;
    gap: 0.55rem;
}

.product-mini-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0.55rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    background: #fff;
    padding: 0.45rem;
    color: inherit;
    text-decoration: none;
}

.product-mini-card:hover {
    border-color: var(--primary-500);
}

.product-mini-thumb {
    width: 52px;
    height: 52px;
    border-radius: 0.35rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-mini-body {
    min-width: 0;
}

.product-mini-title {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--neutral-900);
}

.product-mini-card:hover .product-mini-title {
    color: var(--primary-700);
}

.product-mini-meta {
    margin: 0.2rem 0 0;
    color: var(--neutral-500);
    font-size: 0.75rem;
}

.product-image-placeholder {
    font-size: 1.05rem;
    line-height: 1;
    opacity: 0.72;
}

.is-skeleton {
    pointer-events: none;
}

.skeleton-line {
    margin: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--neutral-200), var(--neutral-100), var(--neutral-200));
    background-size: 220% 100%;
    animation: skel-shimmer 1.1s linear infinite;
    height: 0.72rem;
}

.skeleton-line.short {
    width: 66%;
    margin-top: 0.34rem;
}

.is-skeleton .product-mini-thumb {
    background: linear-gradient(90deg, var(--neutral-200), var(--neutral-100), var(--neutral-200));
    background-size: 220% 100%;
    animation: skel-shimmer 1.1s linear infinite;
}

@keyframes skel-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -20% 0; }
}

.editors-picks {
    margin-top: 0;
    margin-bottom: 0.7rem;
    padding-top: 0;
}

.editors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.editor-card {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
}

.editor-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
}

.editor-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editor-body {
    padding: 0.45rem 0.55rem 0.55rem;
}

.editor-body h3 {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.topic-title {
    display: block;
    font-size: 0.92rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--neutral-900);
}

.topic-title:hover {
    color: var(--primary-700);
}

.topic-meta {
    margin: 0.2rem 0 0;
    color: var(--neutral-500);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.topic-desc {
    margin: 0.35rem 0 0;
    color: var(--neutral-700);
    font-size: 0.8rem;
    line-height: 1.35;
}

.mini-item {
    display: grid;
    gap: 0.22rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--neutral-200);
}

.mini-item:last-child {
    border-bottom: 0;
}

.mini-item a {
    line-height: 1.3;
    color: var(--neutral-800);
    font-size: 0.9rem;
    font-weight: 600;
}

.mini-item a:hover {
    color: var(--accent-700);
}

.mini-item time,
.empty-note {
    color: var(--neutral-500);
    font-size: 0.78rem;
}

.post-grid {
    margin-top: -2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.15rem;
}

.post-card {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-media {
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
    overflow: hidden;
}

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

.card-media-fallback {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-700);
    font-size: 1.2rem;
    font-weight: 700;
}

.card-content {
    padding: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    margin-bottom: 0.65rem;
}

.badge-primary {
    color: var(--primary-800);
    background: var(--primary-100);
}

.post-card h2 {
    margin: 0 0 0.55rem;
    line-height: 1.25;
    font-size: 1.15rem;
}

.post-meta {
    color: var(--neutral-500);
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.82rem;
    margin-bottom: 0.55rem;
}

.post-excerpt {
    margin: 0 0 0.85rem;
    color: var(--neutral-700);
    font-size: 0.95rem;
}

.read-more {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--accent-700);
}

.pagination-wrap {
    margin-bottom: 2.5rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.pagination a {
    border: 1px solid var(--neutral-300);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-md);
}

.infinite-sentinel {
    margin: 0.25rem 0 2rem;
    text-align: center;
    color: var(--neutral-500);
    font-size: 0.88rem;
}

.page-post {
    padding: 1.4rem 0 2.8rem;
}

.page-bmi {
    padding: 1.2rem 0 2rem;
    background:
        radial-gradient(circle at 5% 0%, var(--primary-50), transparent 35%),
        radial-gradient(circle at 95% 0%, var(--accent-50), transparent 40%);
}

.bmi-card {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    overflow: hidden;
}

.bmi-header h1 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.bmi-header p {
    margin: 0.35rem 0 0.8rem;
    color: var(--neutral-700);
}

.health-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.health-quick-nav a {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--neutral-300);
    border-radius: 999px;
    padding: 0.22rem 0.56rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--neutral-700);
    background: #fff;
}

.health-quick-nav a:hover {
    border-color: var(--primary-600);
    color: var(--primary-700);
    background: var(--primary-50);
}

.health-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.tool-card {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    background: linear-gradient(180deg, #fff, var(--neutral-50));
    box-shadow:
        0 12px 26px rgb(2 132 199 / 0.08),
        0 3px 10px rgb(0 0 0 / 0.05),
        inset 0 1px 0 rgb(255 255 255 / 0.92);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    position: relative;
    isolation: isolate;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: rgb(14 165 233 / 0.35);
    box-shadow:
        0 20px 36px rgb(14 165 233 / 0.16),
        0 10px 20px rgb(0 0 0 / 0.08),
        inset 0 1px 0 rgb(255 255 255 / 0.96);
}

.tool-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(160deg, rgb(34 197 94 / 0.14), rgb(14 165 233 / 0.08), transparent 45%);
    opacity: 0;
    transition: opacity 0.24s ease;
    z-index: -1;
}

.tool-card:hover::after {
    opacity: 1;
}

.tool-card h2 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
}

.tool-kicker {
    margin: 0 0 0.32rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent-700);
}

.bmi-form {
    display: grid;
    gap: 0.45rem;
}

.bmi-form label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--neutral-700);
}

.bmi-form input {
    width: 100%;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    padding: 0.58rem 0.68rem;
    font-size: 0.94rem;
}

.bmi-form select {
    width: 100%;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    padding: 0.58rem 0.68rem;
    font-size: 0.94rem;
    background: #fff;
}

.bmi-btn {
    margin-top: 0.45rem;
    border: 0;
    border-radius: var(--radius-md);
    padding: 0.62rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--primary-600);
    color: #fff;
    cursor: pointer;
}

.bmi-btn:hover {
    background: var(--primary-700);
}

.bmi-result {
    margin-top: 0.85rem;
    border: 1px dashed var(--neutral-300);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.85rem;
    background: #fff;
    animation: fade-up 0.25s ease;
}

.bmi-value {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
}

.bmi-status {
    margin: 0.2rem 0 0;
    font-weight: 700;
}

.bmi-status.is-under { color: #1d4ed8; }
.bmi-status.is-normal { color: var(--primary-700); }
.bmi-status.is-over { color: #c2410c; }
.bmi-status.is-obese { color: var(--error-700); }

.bmi-note {
    margin: 0.28rem 0 0;
    color: var(--neutral-500);
    font-size: 0.82rem;
}

.result-bar {
    margin-top: 0.45rem;
    height: 0.42rem;
    background: var(--neutral-200);
    border-radius: 999px;
    overflow: hidden;
}

.result-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-600), var(--primary-600));
    transition: width 0.35s ease;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.article {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.article-header {
    padding: 1.6rem 1.6rem 0.8rem;
}

.article-title {
    margin: 0;
    line-height: 1.16;
    font-size: clamp(1.75rem, 4.4vw, 2.8rem);
    color: var(--neutral-900);
}

.article-subtitle {
    margin: 0.8rem 0 0.2rem;
    color: var(--neutral-700);
    font-size: 1.05rem;
}

.article-hero-image {
    margin: 0;
    border-top: 1px solid var(--neutral-200);
    border-bottom: 1px solid var(--neutral-200);
    max-height: 460px;
    overflow: hidden;
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 1.4rem 1.6rem 1.2rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--neutral-900);
    line-height: 1.25;
}

.gh-content .kg-width-wide {
    width: min(1040px, 100%);
    margin-left: 50%;
    transform: translateX(-50%);
}

.gh-content .kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.article-content a {
    color: var(--accent-700);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.article-footer {
    padding: 0 1.6rem 1.6rem;
}

.comments-wrap {
    margin-top: 0.9rem;
    margin-bottom: 2rem;
}

.next-article-wrap {
    margin-top: 0.85rem;
}

@media (min-width: 901px) {
    .next-article-wrap {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

.next-article-wrap h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--neutral-500);
}

.next-article-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 0.75rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.next-article-card > :only-child {
    grid-column: 1 / -1;
}

.next-article-thumb {
    display: block;
    min-height: 100%;
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
}

.next-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.next-article-body {
    padding: 0.75rem 0.85rem 0.8rem 0;
    display: grid;
    gap: 0.4rem;
    align-content: center;
    min-width: 0;
}

.next-article-card > .next-article-body:only-child {
    padding: 0.75rem 0.85rem 0.8rem;
}

.next-article-body strong {
    display: block;
    color: var(--neutral-900);
    font-size: 1.05rem;
    line-height: 1.25;
}

.next-article-body p {
    margin: 0;
    color: var(--neutral-700);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-info-wrap,
.recommended-info-wrap {
    margin-top: 0.95rem;
}

.related-info-wrap h3,
.recommended-info-wrap h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--neutral-500);
}

.related-info-grid,
.recommended-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.recommended-info-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.related-info-card,
.recommended-info-card {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.related-info-thumb,
.recommended-info-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
}

.related-info-thumb img,
.recommended-info-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info-body,
.recommended-info-body {
    padding: 0.6rem 0.68rem 0.68rem;
}

.related-info-body h4,
.recommended-info-body h4 {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.3;
}

.related-info-body time,
.recommended-info-body time {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--neutral-500);
}

.comments-box {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.1rem;
}

.comments-box h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: var(--neutral-900);
}

.article-footer h3 {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--neutral-500);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-pill {
    border: 1px solid var(--neutral-300);
    border-radius: 999px;
    padding: 0.25rem 0.62rem;
    font-size: 0.82rem;
    color: var(--neutral-700);
}

.tag-pill:hover {
    color: var(--accent-800);
    border-color: var(--accent-500);
    background: var(--accent-50);
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--neutral-200);
    background: #fff;
}

.footer-row {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--neutral-500);
    font-size: 0.92rem;
}

.error-page,
.error-404 {
    width: min(760px, calc(100% - 2rem));
    margin: 2rem auto 3rem;
}

.error-content {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.error-content h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--error-700);
}

.error-content h2 {
    margin: 0.25rem 0 0.6rem;
    font-size: 1.4rem;
}

.error-details {
    margin: 1rem 0;
    background: var(--error-100);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.9rem;
    border: 0;
    border-radius: var(--radius-md);
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--primary-600);
    color: #fff;
}

.btn:hover {
    color: #fff;
    background: var(--primary-700);
}

@media (max-width: 900px) {
    .brand-logo {
        width: auto;
        height: 50px;
        max-width: 260px;
        display: block;
    }

    .brand {
        min-height: 50px;
        align-self: center;
        position: relative;
        top: 0;
    }

    .header-grid {
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 0.55rem;
        min-height: auto;
        padding: 0.52rem 0 0.26rem;
    }

    .site-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: min(86vw, 360px);
        height: 100dvh;
        background: #fff;
        border-right: 1px solid var(--neutral-200);
        box-shadow: 0 16px 40px rgb(0 0 0 / 0.24);
        padding: 0.85rem 0.9rem 1.1rem;
        transform: translateX(-105%);
        opacity: 0;
        overflow-y: auto;
        transition: transform 0.26s ease, opacity 0.22s ease;
        pointer-events: none;
        z-index: 70;
    }

    .nav-bmi-link {
        margin-top: 0.3rem;
        padding: 0.52rem 0.72rem;
        font-size: 0.85rem;
        align-self: stretch;
        justify-content: center;
        border-radius: 0.6rem;
        position: relative;
        top: 0;
    }

    .site-nav .nav {
        gap: 0.3rem;
        flex-direction: column;
        overflow: visible;
        padding-bottom: 0;
        margin-top: 0;
    }

    .site-nav .nav li {
        width: 100%;
        opacity: 0;
        transform: translateX(-10px);
        transition: opacity 0.2s ease, transform 0.24s ease;
    }

    .site-nav .nav li:nth-child(1) { transition-delay: 0.03s; }
    .site-nav .nav li:nth-child(2) { transition-delay: 0.06s; }
    .site-nav .nav li:nth-child(3) { transition-delay: 0.09s; }
    .site-nav .nav li:nth-child(4) { transition-delay: 0.12s; }
    .site-nav .nav li:nth-child(5) { transition-delay: 0.15s; }
    .site-nav .nav li:nth-child(6) { transition-delay: 0.18s; }
    .site-nav .nav li:nth-child(7) { transition-delay: 0.21s; }
    .site-nav .nav li:nth-child(8) { transition-delay: 0.24s; }
    .site-nav .nav li:nth-child(9) { transition-delay: 0.27s; }
    .site-nav .nav li:nth-child(10) { transition-delay: 0.3s; }

    .site-nav .nav a {
        display: block;
        width: 100%;
        border-radius: 0.6rem;
        padding: 0.58rem 0.68rem;
        font-size: 0.95rem;
    }

    .site-nav #primary-nav {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 0.55rem;
    }

    .nav-drawer-brand {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0 0 0.2rem;
        padding: 0 0.1rem 0.55rem;
        border-bottom: 1px solid var(--neutral-200);
    }

    .nav-drawer-logo {
        height: 42px;
        max-width: 280px;
    }

    .nav-toggle {
        display: inline-flex;
        width: 34px;
        height: 34px;
        padding: 0.36rem 0.34rem;
        align-self: center;
        position: relative;
        top: 0;
        z-index: 80;
    }

    .header-grid.nav-open .site-nav {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .header-grid.nav-open .site-nav .nav li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        border: 0;
        margin: 0;
        padding: 0;
        background: rgb(0 0 0 / 0.36);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        z-index: 60;
    }

    .header-grid.nav-open .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .top-grid,
    .home-columns {
        grid-template-columns: 1fr;
    }

    .mobile-trending-block {
        display: block;
        margin-bottom: 0.55rem;
    }

    .top-trending-sidebar {
        display: none;
    }

    .shorts-grid {
        grid-auto-columns: minmax(80px, 92px);
    }

    .category-column .shorts-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .top-side-item {
        display: grid;
        grid-template-columns: 110px 1fr;
    }

    .top-side-thumb {
        width: auto;
        flex: initial;
    }

    .category-column {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

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

@media (max-width: 640px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

    .shorts-grid {
        grid-auto-columns: minmax(76px, 88px);
    }

    .category-column .shorts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .breaking-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .latest-item {
        grid-template-columns: 1fr;
    }

    .latest-thumb {
        aspect-ratio: 16 / 9;
    }

    .latest-content,
    .top-side-content {
        padding: 0.75rem;
    }

    .top-side-item {
        display: grid;
        grid-template-columns: 1fr;
    }

    .top-side-thumb {
        aspect-ratio: 16 / 9;
    }

    .editors-grid {
        grid-template-columns: 1fr;
    }

    .article-header,
    .article-content,
    .article-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

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

    .next-article-thumb {
        aspect-ratio: 16 / 9;
    }

    .next-article-body {
        padding: 0.75rem;
    }

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

    .article-content img,
    .article-content figure img,
    .gh-content img,
    .gh-content figure img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .article-content figure,
    .gh-content figure {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .footer-row {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0.8rem 0;
    }

    .health-tools {
        grid-template-columns: 1fr;
    }

    .health-quick-nav {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 0.2rem;
    }
}
