/*
Theme Name: Think Heartland Review
Theme URI: https://thinkheartland.com/
Description: Think Heartland 전용 Hello Biz 차일드 테마. 심장 건강 클리니컬 매거진 스킨.
Author: Think Heartland
Template: hello-biz
Version: 1.1.0
Text Domain: thinkheartland-child
*/

:root {
    --hrt-paper: #f6f8fb;
    --hrt-paper-2: #eef2f7;
    --hrt-card: #ffffff;
    --hrt-ink: #15202b;
    --hrt-ink-soft: #46586b;
    --hrt-muted: #7a8a9a;
    --hrt-crimson: #cf3a3a;
    --hrt-crimson-deep: #a82a2a;
    --hrt-navy: #1f2d3d;
    --hrt-navy-2: #27384b;
    --hrt-teal: #2f8f86;
    --hrt-line: #dde5ee;
    --hrt-line-soft: #e9eef4;
    --hrt-on-navy: #eaf1f8;
    --hrt-on-navy-soft: #9fb2c4;
    --hrt-serif: "Spectral", "IBM Plex Sans KR", Georgia, serif;
    --hrt-sans: "Libre Franklin", "IBM Plex Sans KR", "Helvetica Neue", sans-serif;
    --hrt-hangul: "IBM Plex Sans KR", "Libre Franklin", sans-serif;
    --hrt-wide: 1120px;
}

body {
    background-color: var(--hrt-paper) !important;
    color: var(--hrt-ink);
    font-family: var(--hrt-hangul);
    font-size: 1.0625rem;
    line-height: 1.8;
}

.hrt-topbar {
    background: var(--hrt-navy);
    border-bottom: 2px solid var(--hrt-crimson);
}

.hrt-topbar .hrt-inner {
    max-width: var(--hrt-wide);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 44px;
    flex-wrap: wrap;
}

.hrt-topbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.hrt-topbar a {
    color: var(--hrt-on-navy-soft);
    text-decoration: none;
    font-family: var(--hrt-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.16s ease;
}

.hrt-topbar a:hover {
    color: #fff;
}

.hrt-topbar .hrt-pulse {
    color: var(--hrt-crimson);
    font-family: var(--hrt-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 9px;
}

.hrt-topbar .hrt-pulse::before {
    content: "";
    width: 26px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16'%3E%3Cpath d='M0 8h12l3 0 2-6 4 12 3-6h16' fill='none' stroke='%23cf3a3a' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

header#site-header.site-header {
    background: var(--hrt-card) !important;
    border-bottom: 1px solid var(--hrt-line);
    padding: 40px 24px 34px;
    text-align: center;
}

header#site-header .site-branding {
    max-width: var(--hrt-wide);
    margin: 0 auto;
}

header#site-header .site-title {
    margin: 0;
    line-height: 1.05;
}

header#site-header .site-title a {
    font-family: var(--hrt-serif) !important;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.01em;
    color: var(--hrt-navy) !important;
    text-decoration: none;
}

header#site-header .site-title a::first-letter {
    color: var(--hrt-crimson);
}

header#site-header .site-description {
    margin: 16px auto 0;
    display: inline-block;
    position: relative;
    padding-top: 16px;
    font-family: var(--hrt-sans);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hrt-ink-soft);
}

header#site-header .site-description::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 92px;
    height: 13px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16'%3E%3Cpath d='M0 8h40l4 0 3-7 5 14 4-7h60' fill='none' stroke='%23cf3a3a' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.hrt-shell {
    max-width: var(--hrt-wide);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: flex-start;
    gap: 42px;
}

main#content.site-main {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
}

.hrt-sidebar {
    flex: 0 0 290px;
    width: 290px;
    position: sticky;
    top: 22px;
}

main#content .page-header {
    padding: 44px 0 10px;
}

main#content .page-header .entry-title {
    font-family: var(--hrt-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hrt-crimson);
    margin: 0;
}

main#content .page-content {
    display: block;
}

article.post {
    background: var(--hrt-card);
    border: 1px solid var(--hrt-line);
    border-left: 4px solid var(--hrt-crimson);
    border-radius: 3px;
    padding: 30px 34px;
    margin: 0 0 22px;
}

article.post .entry-title {
    font-family: var(--hrt-serif);
    font-size: 1.55rem;
    line-height: 1.32;
    margin: 0 0 14px;
}

article.post .entry-title a {
    color: var(--hrt-navy);
    text-decoration: none;
    background-image: linear-gradient(var(--hrt-crimson), var(--hrt-crimson));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.22s ease, color 0.18s ease;
}

article.post .entry-title a:hover {
    color: var(--hrt-crimson-deep);
    background-size: 100% 2px;
}

article.post p {
    color: var(--hrt-ink-soft);
    margin: 0;
}

.entry-content a,
article.post p a {
    color: var(--hrt-crimson-deep);
    text-underline-offset: 0.16em;
    text-decoration-color: var(--hrt-line);
}

.entry-content a:hover {
    color: var(--hrt-crimson);
}

#site-footer.site-footer:empty {
    display: none;
}

.hrt-footer {
    background: var(--hrt-navy);
    color: var(--hrt-on-navy-soft);
    border-top: 3px solid var(--hrt-crimson);
    margin-top: 50px;
}

.hrt-footer .hrt-inner {
    max-width: var(--hrt-wide);
    margin: 0 auto;
    padding: 50px 24px 26px;
}

.hrt-footer .hrt-cols {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 36px;
}

.hrt-footer .hrt-brand {
    max-width: 340px;
}

.hrt-footer .hrt-brand-name {
    font-family: var(--hrt-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hrt-on-navy);
}

.hrt-footer .hrt-brand-name span {
    color: var(--hrt-crimson);
}

.hrt-footer .hrt-brand p {
    margin: 12px 0 0;
    font-size: 0.92rem;
    line-height: 1.7;
}

.hrt-footer .hrt-col-title {
    font-family: var(--hrt-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hrt-crimson);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(207, 58, 58, 0.28);
}

.hrt-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hrt-footer li {
    margin: 0 0 10px;
}

.hrt-footer a {
    color: var(--hrt-on-navy-soft);
    text-decoration: none;
    font-family: var(--hrt-hangul);
    transition: color 0.16s ease, padding-left 0.16s ease;
}

.hrt-footer a:hover {
    color: #fff;
    padding-left: 5px;
}

.hrt-footer .hrt-base {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(159, 178, 196, 0.18);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-family: var(--hrt-sans);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.hrt-footer .hrt-base .hrt-sig {
    color: var(--hrt-crimson);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (max-width: 781px) {
    article.post {
        padding: 24px 22px;
    }
    .hrt-footer .hrt-cols {
        flex-direction: column;
        gap: 28px;
    }
}

.hrt-single {
    background: var(--hrt-card);
    border: 1px solid var(--hrt-line);
    border-radius: 3px;
    padding: 44px 48px;
}

.hrt-single > .entry-title {
    font-family: var(--hrt-serif);
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    line-height: 1.22;
    color: var(--hrt-navy);
    margin: 0 0 8px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--hrt-crimson);
}

.entry-content {
    color: var(--hrt-ink);
    font-size: 1.05rem;
    line-height: 1.85;
}

.entry-content h2 {
    font-family: var(--hrt-serif);
    font-size: 1.42rem;
    color: var(--hrt-navy);
    margin: 38px 0 14px;
    padding-left: 14px;
    border-left: 4px solid var(--hrt-crimson);
}

.entry-content h3 {
    font-family: var(--hrt-hangul);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--hrt-navy-2);
    margin: 28px 0 10px;
}

.entry-content p {
    margin: 0 0 18px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.entry-content li {
    margin: 0 0 8px;
}

.entry-content dt {
    font-weight: 700;
    color: var(--hrt-navy);
    margin-top: 18px;
}

.entry-content dd {
    margin: 4px 0 0;
    color: var(--hrt-ink-soft);
}

.entry-content a {
    color: var(--hrt-crimson-deep);
    text-underline-offset: 0.16em;
    text-decoration-color: var(--hrt-line);
}

.entry-content a:hover {
    color: var(--hrt-crimson);
}

.hrt-disclaimer {
    background: var(--hrt-paper-2);
    border: 1px solid var(--hrt-line);
    border-left: 4px solid var(--hrt-teal);
    border-radius: 3px;
    padding: 18px 22px;
    margin: 28px 0;
    font-size: 0.95rem;
    color: var(--hrt-ink-soft);
}

.hrt-widget {
    background: var(--hrt-card);
    border: 1px solid var(--hrt-line);
    border-radius: 3px;
    padding: 20px 22px;
    margin: 0 0 18px;
}

.hrt-widget-title {
    font-family: var(--hrt-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hrt-crimson);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hrt-line);
}

.hrt-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hrt-widget li {
    margin: 0 0 10px;
    line-height: 1.45;
}

.hrt-widget li:last-child {
    margin-bottom: 0;
}

.hrt-widget a {
    color: var(--hrt-ink);
    text-decoration: none;
    transition: color 0.16s ease;
}

.hrt-widget a:hover {
    color: var(--hrt-crimson);
}

.hrt-widget-recent a {
    font-family: var(--hrt-serif);
}

.hrt-about-text {
    margin: 0;
    color: var(--hrt-ink-soft);
    font-size: 0.95rem;
    line-height: 1.7;
}

.hrt-search {
    display: flex;
    gap: 8px;
}

.hrt-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid var(--hrt-line);
    border-radius: 3px;
    font-family: var(--hrt-hangul);
    font-size: 0.92rem;
    color: var(--hrt-ink);
    background: var(--hrt-paper);
}

.hrt-search input[type="search"]:focus {
    outline: none;
    border-color: var(--hrt-crimson);
}

.hrt-search button {
    flex: 0 0 auto;
    padding: 9px 16px;
    border: none;
    border-radius: 3px;
    background: var(--hrt-navy);
    color: var(--hrt-on-navy);
    font-family: var(--hrt-sans);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.16s ease;
}

.hrt-search button:hover {
    background: var(--hrt-crimson);
}

.hrt-nav-pages {
    justify-content: flex-end;
}

.wp-block-post-template,
.hrt-shell nav.pagination,
.hrt-shell .nav-links {
    margin-top: 18px;
}

.hrt-shell .pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px 6px 0;
    border: 1px solid var(--hrt-line);
    border-radius: 3px;
    color: var(--hrt-navy);
    text-decoration: none;
    font-family: var(--hrt-sans);
    font-size: 0.85rem;
}

.hrt-shell .pagination .page-numbers.current {
    background: var(--hrt-crimson);
    border-color: var(--hrt-crimson);
    color: #fff;
}

@media (max-width: 900px) {
    .hrt-shell {
        flex-direction: column;
        gap: 30px;
    }
    .hrt-sidebar {
        flex: 1 1 auto;
        width: 100%;
        position: static;
    }
    .hrt-single {
        padding: 28px 22px;
    }
}
