/* health.ranklab.kr — 건강 생활정보 */

:root {
    --health-teal: #0d9488;
    --health-line: #e5e7eb;
    --health-muted: #6b7280;
    --health-text: #111827;
    --health-max: 1120px;
}

body.health-body {
    background: #fff;
    color: var(--health-text);
}

.health-main.site-main {
    padding: 0;
    max-width: none;
    width: 100%;
}

.health-home .container,
.health-page .container,
.health-cat-hero .container,
.health-cat-list .container {
    width: min(var(--health-max), calc(100% - 32px));
    margin: 0 auto;
}

.health-footer {
    text-align: center;
    padding: 2rem;
    color: var(--health-muted);
    font-size: .875rem;
    border-top: 1px solid var(--health-line);
    margin-top: 2rem;
}

/* ── Home ── */
.health-home {
    padding: 2rem 0 2.5rem;
}

.health-home__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 2rem;
}

.health-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--health-line);
}

.health-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.health-block__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.health-block__title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0;
}

.health-block__title a {
    color: var(--health-teal);
}

.health-block__more {
    flex-shrink: 0;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--health-muted);
}

.health-block__more:hover {
    color: var(--health-teal);
}

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

.health-card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

/* ── Category list ── */
.health-cat-hero {
    display: flex;
    align-items: center;
    min-height: 300px;
    height: 300px;
    background: url('/assets/health/thumbs/health_hero_bg.png') center / cover no-repeat;
    border-bottom: 1px solid var(--health-line);
    box-sizing: border-box;
}

.health-cat-hero__inner {
    padding: 2rem 0;
}

.health-cat-hero__label {
    margin: 0 0 .5rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .85);
}

.health-cat-hero__title {
    margin: 0 0 .75rem;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}

.health-cat-hero__title .health-cat-hero__accent {
    color: rgba(255, 255, 255, .92);
}

.health-cat-hero__desc {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .78);
}

.health-cat-list {
    padding: 2.5rem 0 3.5rem;
}

.health-card {
    border: 1px solid var(--health-line);
}

.health-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.health-card__thumb {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f3f4f6;
}

.health-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.health-card__thumb--empty {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
}

.health-card__body {
    padding: .75rem .875rem .875rem;
}

.health-card__body h3 {
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.health-card__body p {
    font-size: .8125rem;
    color: var(--health-muted);
    line-height: 1.5;
    margin: 0 0 .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.health-card__body time {
    font-size: .6875rem;
    color: var(--health-muted);
}

.health-home__aside {
    position: sticky;
    top: calc(64px + 1rem);
}

.health-aside-box {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--health-line);
}

.health-aside-box:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.health-aside-box__title {
    font-size: .9375rem;
    font-weight: 700;
    margin: 0 0 .75rem;
    color: var(--health-text);
}

.health-rank-list {
    list-style: none;
}

.health-rank-list li {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    padding: .45rem 0;
    border-bottom: 1px solid var(--health-line);
}

.health-rank-list li:last-child {
    border-bottom: none;
}

.health-rank-list__num {
    flex-shrink: 0;
    width: 1.125rem;
    font-weight: 700;
    color: var(--health-teal);
    font-size: .8125rem;
}

.health-rank-list a {
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.4;
}

.health-aside-list {
    list-style: none;
}

.health-aside-list li {
    border-bottom: 1px solid var(--health-line);
}

.health-aside-list li:last-child {
    border-bottom: none;
}

.health-aside-list a {
    display: block;
    padding: .55rem 0;
}

.health-aside-list__link {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
}

.health-aside-list__thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    overflow: hidden;
    background: #f3f4f6;
}

.health-aside-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.health-aside-list__text {
    min-width: 0;
}

.health-aside-list__cat {
    display: block;
    font-size: .6875rem;
    font-weight: 600;
    color: var(--health-teal);
    margin-bottom: .1rem;
}

.health-aside-list__title {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.4;
}

.health-note {
    margin: 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--health-line);
    font-size: .8125rem;
    color: var(--health-muted);
    line-height: 1.6;
}

.health-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--health-muted);
    border: 1px dashed var(--health-line);
}

.health-empty--sm {
    padding: .75rem;
    font-size: .875rem;
}

.health-page {
    padding: 2rem 0;
}

body.health-body .site-header__logo {
    color: var(--health-teal);
}

body.health-body .site-header__nav-link:hover,
body.health-body .site-header__nav-link.is-active {
    color: var(--health-teal);
}

@media (max-width: 960px) {
    .health-home__layout {
        grid-template-columns: 1fr;
    }

    .health-home__aside {
        position: static;
    }

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

@media (max-width: 640px) {
    .health-card-grid,
    .health-card-grid--3 {
        grid-template-columns: 1fr;
    }

    .health-cat-hero {
        min-height: 280px;
        height: auto;
    }

    .health-cat-hero__inner {
        padding: 2rem 0;
    }

    .health-cat-list {
        padding: 1.75rem 0 2.5rem;
    }
}
