:root {
  --health-ink: #172321;
  --health-muted: #53625f;
  --health-green: #087f72;
  --health-green-dark: #05645b;
  --health-green-soft: #e7f5f1;
  --health-coral: #d9544d;
  --health-coral-soft: #fff0ed;
  --health-gold: #a56a08;
  --health-paper: #ffffff;
  --health-canvas: #f5f8f7;
  --health-line: #d8e2df;
  --health-shadow: 0 12px 32px rgba(20, 48, 43, 0.1);
}

[data-theme="dark"] {
  --health-ink: #eef7f4;
  --health-muted: #afc2bd;
  --health-green: #54c7b5;
  --health-green-dark: #75d9c9;
  --health-green-soft: #153a35;
  --health-coral: #ff8981;
  --health-coral-soft: #3f2525;
  --health-gold: #f2bd64;
  --health-paper: #14201e;
  --health-canvas: #0d1715;
  --health-line: #2c403c;
  --health-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

html { scroll-padding-top: 88px; }

body.health-site {
  background: var(--health-canvas);
  color: var(--health-ink);
  font-family: "Noto Sans KR", "Inter", sans-serif;
  font-size: 18px;
  line-height: 1.75;
}

.health-site h1,
.health-site h2,
.health-site h3,
.health-site h4 {
  color: var(--health-ink);
  letter-spacing: 0;
  word-break: keep-all;
}

.health-site p { color: var(--health-muted); }

.health-site a { color: var(--health-green-dark); }
.health-site a:hover { color: var(--health-coral); }

.health-site .site-header {
  background: color-mix(in srgb, var(--health-paper) 94%, transparent);
  border-bottom: 1px solid var(--health-line);
}

.health-site .header-inner { max-width: 1180px; }

.health-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--health-ink) !important;
  white-space: nowrap;
}

.health-brand span {
  color: var(--health-green-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.health-site .header-nav a {
  color: var(--health-muted);
  font-size: 0.88rem;
}

.health-site .header-nav a[aria-current="page"] { color: var(--health-green-dark); }

.health-icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--health-line);
  border-radius: 8px;
  color: var(--health-ink);
}

.health-icon-button:hover { background: var(--health-green-soft); }

.health-site .menu-toggle {
  color: var(--health-ink);
  border: 1px solid var(--health-line);
}

.health-site .menu-toggle span,
.health-site .menu-toggle span::before,
.health-site .menu-toggle span::after {
  background: currentColor;
  font-size: 0;
}

.health-hero {
  min-height: min(720px, 78vh);
  margin-top: var(--header-height);
  display: flex;
  align-items: flex-end;
  position: relative;
  isolation: isolate;
  background: #122c28 url("img/senior-checkup-hero.webp") center 36% / cover no-repeat;
}

.health-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 29, 26, 0.91) 0%, rgba(10, 29, 26, 0.7) 44%, rgba(10, 29, 26, 0.12) 76%);
}

.health-hero__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 24px 76px;
}

.health-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #a9eadf;
  font-size: 0.82rem;
  font-weight: 700;
}

.health-kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: #ff8a7f;
}

.health-hero h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1.16;
}

.health-hero p {
  max-width: 620px;
  margin-top: 22px;
  color: #e0ece9;
  font-size: 1.08rem;
}

.health-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.health-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.health-button--primary { background: #fff; color: #113a34 !important; }
.health-button--secondary { border: 1px solid rgba(255, 255, 255, 0.62); color: #fff !important; }

.health-main { padding: 72px 0 96px; }
.health-container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.health-container--article { width: min(760px, calc(100% - 40px)); }

.health-section { margin-top: 76px; }
.health-section:first-child { margin-top: 0; }

.health-section__head {
  max-width: 700px;
  margin-bottom: 28px;
}

.health-section__head h2,
.article-body h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.35;
}

.health-section__head p { margin-top: 10px; }

.quick-check {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--health-paper);
  border: 1px solid var(--health-line);
  border-radius: 8px;
  box-shadow: var(--health-shadow);
}

.quick-check__item { padding: 28px; }
.quick-check__item + .quick-check__item { border-left: 1px solid var(--health-line); }
.quick-check__label { color: var(--health-coral); font-size: 0.78rem; font-weight: 800; }
.quick-check__item strong { display: block; margin: 7px 0 4px; color: var(--health-ink); font-size: 1.08rem; }
.quick-check__item p { font-size: 0.9rem; }

.post-list { border-top: 2px solid var(--health-ink); }

.post-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 28px;
  gap: 28px;
  align-items: center;
  min-height: 170px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--health-line);
  color: inherit !important;
}

.post-card:hover { background: color-mix(in srgb, var(--health-green-soft) 42%, transparent); }
.post-card__number { color: var(--health-green-dark); font-size: 2.2rem; font-weight: 800; }
.post-card__eyebrow { color: var(--health-coral); font-size: 0.78rem; font-weight: 800; }
.post-card h3 { margin: 5px 0 8px; font-size: 1.35rem; }
.post-card p { font-size: 0.92rem; }
.post-card__arrow { color: var(--health-green-dark); font-size: 1.5rem; }

.source-band {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 30px;
  border-left: 5px solid var(--health-gold);
  background: var(--health-paper);
}

.source-band strong { color: var(--health-ink); }
.source-band p { font-size: 0.9rem; }
.source-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.source-links a { text-decoration: underline; text-underline-offset: 3px; }

.article-header {
  padding: 140px 0 54px;
  background: var(--health-paper);
  border-bottom: 1px solid var(--health-line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--health-muted);
  font-size: 0.8rem;
}

.breadcrumb a { color: var(--health-muted); }

.article-header h1 {
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.28;
}

.article-deck { max-width: 700px; margin-top: 20px; font-size: 1.08rem; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: var(--health-muted);
  font-size: 0.78rem;
}

.article-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--health-coral);
  font-size: 0.8rem;
  font-weight: 800;
}

.article-body { padding: 58px 0 96px; }
.article-body h2 { margin: 58px 0 18px; scroll-margin-top: 100px; }
.article-body h2:first-of-type { margin-top: 0; }
.article-body h3 { margin: 34px 0 10px; font-size: 1.18rem; }
.article-body p + p { margin-top: 16px; }
.article-body ul,
.article-body ol { margin: 16px 0 24px 1.2em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin: 9px 0; color: var(--health-muted); padding-left: 4px; }
.article-body strong { color: var(--health-ink); }

.article-summary,
.medical-notice,
.commerce-disclosure {
  margin: 0 0 42px;
  padding: 24px;
  border-radius: 8px;
}

.article-summary { background: var(--health-green-soft); border-left: 5px solid var(--health-green); }
.medical-notice { margin-top: 50px; background: var(--health-coral-soft); border-left: 5px solid var(--health-coral); }
.commerce-disclosure { background: var(--health-paper); border: 1px solid var(--health-gold); }
.article-summary h2,
.medical-notice h2,
.commerce-disclosure h2 { margin: 0 0 10px; font-size: 1.08rem; }
.article-summary p,
.medical-notice p,
.commerce-disclosure p { font-size: 0.9rem; }

.verdict-list { border-top: 2px solid var(--health-ink); }
.verdict-item { padding: 26px 0; border-bottom: 1px solid var(--health-line); }
.verdict-item h3 { margin-top: 8px; }

.verdict-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
}

.verdict-tag--supported { color: var(--health-green-dark); background: var(--health-green-soft); }
.verdict-tag--context { color: var(--health-gold); background: color-mix(in srgb, var(--health-gold) 12%, var(--health-paper)); }
.verdict-tag--weak { color: var(--health-coral); background: var(--health-coral-soft); }

.shopping-notice {
  padding: 20px;
  background: var(--health-paper);
  border-left: 5px solid var(--health-gold);
}

.shopping-notice p { margin-top: 6px; font-size: 0.9rem; }

.seller-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.seller-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 14px 16px;
  color: var(--health-ink);
  background: var(--health-paper);
  border: 1px solid var(--health-line);
  border-radius: 8px;
}

.seller-links a:hover { border-color: var(--health-green); }
.seller-links span { color: var(--health-muted); font-size: 0.76rem; white-space: nowrap; }
.fine-print,
.source-date { font-size: 0.82rem; }

.article-toc {
  margin: 34px 0 44px;
  padding: 22px 24px;
  border: 1px solid var(--health-line);
  border-radius: 8px;
  background: var(--health-paper);
}
.article-toc strong { display: block; margin-bottom: 9px; }
.article-toc ol { margin: 0 0 0 1.1em; }
.article-toc li { margin: 5px 0; }

.data-table-wrap { margin: 22px 0 32px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: var(--health-paper); font-size: 0.88rem; }
.data-table th,
.data-table td { padding: 14px 12px; border: 1px solid var(--health-line); text-align: left; vertical-align: top; }
.data-table th { background: var(--health-green-soft); color: var(--health-ink); white-space: nowrap; }

.step-list { counter-reset: health-step; margin-left: 0 !important; list-style: none !important; }
.step-list li { position: relative; min-height: 52px; padding-left: 62px; margin: 22px 0; }
.step-list li::before {
  counter-increment: health-step;
  content: counter(health-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--health-green);
  color: #fff;
  font-weight: 800;
}

.fact-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--health-line);
}
.fact-row > strong { color: var(--health-ink); font-weight: 800; }
.fact-row > p { color: var(--health-muted); }

.article-sources {
  margin-top: 58px;
  padding-top: 28px;
  border-top: 2px solid var(--health-ink);
}
.article-sources h2 { margin: 0 0 14px; font-size: 1.15rem; }
.article-sources li { font-size: 0.86rem; word-break: break-word; }

.related-posts { padding: 58px 0 78px; background: var(--health-paper); border-top: 1px solid var(--health-line); }
.related-posts h2 { margin-bottom: 20px; font-size: 1.45rem; }
.related-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.related-links a { padding: 18px; border: 1px solid var(--health-line); border-radius: 8px; color: var(--health-ink); font-weight: 700; }
.related-links a:hover { border-color: var(--health-green); background: var(--health-green-soft); }

.health-footer { background: #132320; color: #dce9e6; }
.health-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
.health-footer .header-logo,
.health-footer h4 { color: #fff; }
.health-footer p,
.health-footer a { color: #aec2bd; }
.health-footer a:hover { color: #fff; }

.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 760px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--health-line);
  border-radius: 8px;
  background: var(--health-paper);
  box-shadow: var(--health-shadow);
}
.cookie-consent p { font-size: 0.76rem; }
.cookie-consent button { min-height: 40px; padding: 8px 12px; border-radius: 6px; font-weight: 700; }
.cookie-consent .accept { background: var(--health-green); color: #fff; }
.cookie-consent .decline { border: 1px solid var(--health-line); color: var(--health-ink); }
.cookie-consent[hidden] { display: none; }

@media (max-width: 780px) {
  body.health-site { font-size: 17px; }
  .health-site .header-nav { background: var(--health-paper); border-bottom: 1px solid var(--health-line); }
  .health-brand span { display: none; }
  .health-hero { min-height: 680px; background-position: 58% center; }
  .health-hero::after { background: linear-gradient(0deg, rgba(10, 29, 26, 0.94) 0%, rgba(10, 29, 26, 0.7) 62%, rgba(10, 29, 26, 0.18) 100%); }
  .health-hero__inner { padding-bottom: 50px; }
  .quick-check { grid-template-columns: 1fr; }
  .quick-check__item + .quick-check__item { border-left: 0; border-top: 1px solid var(--health-line); }
  .post-card { grid-template-columns: 56px minmax(0, 1fr) 20px; gap: 14px; }
  .post-card__number { font-size: 1.45rem; }
  .source-band { grid-template-columns: 1fr; }
  .article-header { padding-top: 118px; }
  .seller-links { grid-template-columns: 1fr; }
  .related-links { grid-template-columns: 1fr; }
  .health-footer .footer-grid { grid-template-columns: 1fr; }
  .cookie-consent { grid-template-columns: 1fr 1fr; }
  .cookie-consent p { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .health-container { width: min(100% - 32px, 1120px); }
  .health-main { padding-top: 54px; }
  .health-hero h1 { font-size: 2.25rem; }
  .post-card { grid-template-columns: 1fr 20px; }
  .post-card__number { display: none; }
  .fact-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
