@import url("../mega-menu.css?v=20261022-policy-text");

:root {
  --blue: #123a72;
  --brand: #1756ae;
  --ink: #262626;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-anchor: none; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: #fff; font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif; line-height: 1.6; word-break: keep-all; }
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
.section-inner { width: min(calc(100% - 80px), var(--max)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 999; left: 16px; top: -80px; padding: 10px 16px; background: #fff; color: #111; }
.skip-link:focus { top: 16px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }

.site-header { position: sticky; z-index: 50; top: 0; background: #fff; box-shadow: 0 1px rgba(0,0,0,.12); }
.utility-bar { height: 108px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 64px; }
.brand img { width: 292px; height: 62px; object-fit: contain; }
.search-pill { width: 490px; height: 50px; display: flex; align-items: center; justify-content: flex-end; padding: 0 20px; color: #111; background: #dedede; border: 0; border-radius: 28px; }
.search-divider { width: 1px; height: 31px; margin-right: 17px; background: #c4c4c4; }
.search-pill svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.utility-actions { justify-self: end; display: flex; align-items: center; gap: 42px; color: #111; font-size: 17px; white-space: nowrap; }
.language { display: flex; align-items: center; gap: 7px; padding: 8px 14px; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 24px; font-size: 15px; }
.language-flag { width: 29px; height: 20px; object-fit: cover; }
.language-chevron { color: #777; }
.menu-toggle { width: 42px; height: 42px; padding: 9px 6px; background: transparent; border: 0; }
.menu-toggle span { display: block; height: 1px; margin: 6px 0; background: #777; transition: .25s ease; }
.main-nav { height: 90px; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 58px); padding: 0 30px; overflow: hidden; font-size: 19px; font-weight: 700; transition: height .28s cubic-bezier(.22,.78,.28,1), opacity .18s ease; }
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -13px; height: 2px; background: var(--brand); transition: .25s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a[aria-current="page"]::after { left: 0; right: 0; }

@media (min-width: 801px) {
  .site-header.is-nav-collapsed:not(:hover):not(:focus-within) .main-nav { height: 0; opacity: 0; pointer-events: none; }
}

.disease-hero { position: relative; min-height: 784px; display: grid; place-items: center; overflow: hidden; color: #fff; background-image: var(--hero-image); background-position: var(--hero-position, center); background-size: cover; background-repeat: no-repeat; }
.disease-hero-shade { position: absolute; inset: 0; background: rgba(20, 16, 14, .42); }
.disease-hero-inner { position: relative; z-index: 1; max-width: 900px; margin-top: -28px; text-align: center; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.breadcrumb { margin: 0 0 24px; font-size: 14px; font-weight: 500; }
.breadcrumb span { margin: 0 5px; }
.home-mark { font-size: 17px; }
.disease-hero h1 { margin: 0 0 22px; font-family: "Noto Serif KR", Georgia, serif; font-size: clamp(48px, 3.5vw, 66px); font-weight: 500; letter-spacing: -.055em; line-height: 1.2; }
.disease-hero h2 { margin: 0 0 28px; font-size: clamp(29px, 2.1vw, 38px); font-weight: 500; letter-spacing: -.05em; }
.disease-hero-inner > p:not(.breadcrumb) { margin: 0; font-size: 19px; line-height: 1.55; letter-spacing: -.04em; }
.disease-tabs { position: absolute; z-index: 2; left: 50%; bottom: 78px; width: min(calc(100% - 80px), 1132px); min-height: 96px; display: grid; grid-template-columns: 1fr 1.2fr 1.25fr 1fr 1.55fr; align-items: stretch; transform: translateX(-50%); overflow: hidden; color: #e8e8e8; background: rgba(255,255,255,.28); border: 1px solid rgba(255,255,255,.88); border-radius: 17px; backdrop-filter: blur(6px); font-size: 18px; font-weight: 600; }
.disease-tabs > a { position: relative; display: grid; place-items: center; min-height: 94px; padding: 0 14px; text-align: center; transition: color .2s ease, background-color .2s ease; }
.disease-tabs a:hover, .disease-tabs a:focus-visible { color: #fff; background: rgba(255,255,255,.1); }
.disease-tabs a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.disease-tabs a[aria-current="page"] { color: #fff; }
.disease-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 17%; right: 17%; bottom: 17px; height: 4px; background: #fff; border-radius: 10px; }

.causes { padding: 250px 0 170px; background: #fff; }
.section-heading h2 { margin: 0; font-size: 40px; line-height: 1.3; letter-spacing: -.05em; }
.section-heading > p { margin: 70px 0 0; font-size: 18px; line-height: 1.6; letter-spacing: -.04em; }
.cause-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 118px; }
.cause-card { position: relative; aspect-ratio: 284 / 355; margin: 0; overflow: hidden; color: #fff; border-radius: 26px; outline: none; cursor: pointer; box-shadow: 0 10px 24px rgba(16,35,63,.08); }
.cause-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,15,37,.02) 20%, rgba(8,17,43,.74) 100%); transition: background .35s ease; }
.cause-card.is-expanded::after { background: rgba(14,32,72,.7); }
.cause-card img { height: 100%; object-fit: cover; }
.cause-card:focus-visible { box-shadow: 0 0 0 4px rgba(23,86,174,.35); }
.cause-card-copy { position: absolute; z-index: 1; inset: 0; padding: 28px 18px 17px; text-align: center; }
.cause-card h3 { position: absolute; top: 64%; left: 18px; right: 18px; margin: 0; transform: translateY(-50%); font-size: clamp(22px, 1.45vw, 28px); line-height: 1.28; letter-spacing: -.05em; transition: top .38s ease; }
.cause-card-description { position: absolute; top: 51%; left: 16px; right: 16px; margin: 0; opacity: 0; visibility: hidden; transform: translateY(20px); font-size: 17px; line-height: 1.48; transition: opacity .28s ease, transform .38s ease, visibility 0s linear .38s; }
.cause-card-description-mobile { display: none; }
.cause-card.is-expanded h3 { top: 27%; }
.cause-card.is-expanded .cause-card-description { opacity: 1; visibility: visible; transform: none; transition-delay: .08s, .08s, 0s; }
.plus-mark { position: absolute; left: 50%; bottom: 17px; width: 40px; height: 40px; display: grid; place-items: center; transform: translateX(-50%); color: #1a1a1a; background: #fff; border-radius: 50%; font-family: Arial, sans-serif; font-size: 34px; font-weight: 300; line-height: 1; }

.symptoms { --symptom-height: clamp(640px, 42vw, 806px); position: relative; min-height: var(--symptom-height); overflow: hidden; color: #fff; background: #061630; }
.symptoms::before { content: ""; position: absolute; inset: 0; background: url("../assets/subpages/neck/symptom-cervical.png") center / cover no-repeat; }
.symptoms.is-flipped::before { transform: scaleX(-1); }
.symptoms-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,16,38,.05), rgba(2,16,38,.2)); }
.symptoms-inner { position: relative; z-index: 1; min-height: var(--symptom-height); display: flex; align-items: center; padding: 62px 0; }
.symptoms-copy { width: min(100%, 620px); margin-left: auto; text-shadow: 0 2px 12px rgba(0,0,0,.28); }
.symptoms.is-flipped .symptoms-copy { margin-right: auto; margin-left: 0; }
.symptoms-copy h2 { margin: 0; font-size: clamp(32px, 2.1vw, 40px); line-height: 1.32; letter-spacing: -.05em; }
.symptoms-copy > p { margin: 46px 0 0; font-size: 17px; line-height: 1.55; letter-spacing: -.035em; }
.symptom-checklist { display: grid; gap: 16px; margin: 62px 0 0; padding: 0; list-style: none; }
.symptom-checklist li { min-height: 58px; display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: rgba(220,228,239,.34); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; font-size: 18px; font-weight: 650; backdrop-filter: blur(4px); }
.symptoms-copy.reveal .symptom-checklist li { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.symptoms-copy.reveal.visible .symptom-checklist li { opacity: 1; transform: none; }
.symptoms-copy.reveal.visible .symptom-checklist li:nth-child(1) { transition-delay: .28s; }
.symptoms-copy.reveal.visible .symptom-checklist li:nth-child(2) { transition-delay: .44s; }
.symptoms-copy.reveal.visible .symptom-checklist li:nth-child(3) { transition-delay: .60s; }
.symptoms-copy.reveal.visible .symptom-checklist li:nth-child(4) { transition-delay: .76s; }
.symptom-checklist span { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.92); font-size: 12px; line-height: 1; }

.treatments { padding: 160px 0 174px; background: #f2f2f2; }
.treatments .section-heading > p { margin-top: 54px; }
.treatment-list { margin-top: 84px; }
.treatment-row { min-height: 278px; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.treatment-row + .treatment-row { margin-top: 32px; }
.treatment-row img { height: 100%; min-height: 278px; object-fit: cover; }
.treatment-copy { display: grid; place-items: center; align-content: center; padding: 35px 45px; text-align: center; }
.check-mark { width: 30px; height: 30px; display: grid; place-items: center; color: #124278; border: 2px solid #124278; border-radius: 50%; font-size: 18px; font-weight: 800; line-height: 1; }
.treatment-copy h3 { margin: 20px 0 24px; font-size: 34px; letter-spacing: -.05em; line-height: 1.2; }
.treatment-copy p { margin: 0; font-size: 18px; line-height: 1.6; letter-spacing: -.04em; }

.eyebrow { margin: 0 0 18px; font-size: 20px; font-weight: 500; }
.eyebrow::before { content: "("; margin-right: 8px; }
.eyebrow::after { content: ")"; margin-left: 8px; }
.site-footer { min-height: 296px; background: #123764; }

@media (max-width: 1500px) {
  .utility-bar { height: 76px; padding-inline: 40px; }
  .brand img { width: 220px; height: 49px; }
  .search-pill { width: 360px; height: 38px; }
  .utility-actions { gap: 27px; font-size: 13px; }
  .main-nav { height: 68px; font-size: 16px; }
  .disease-hero { min-height: 730px; }
  .disease-tabs { bottom: 58px; }
  .causes { padding-top: 190px; }
}

@media (max-width: 1100px) {
  .search-pill { width: 260px; }
  .disease-tabs { width: calc(100% - 60px); font-size: 15px; }
  .cause-grid { gap: 16px; }
  .cause-card-description { font-size: 14px; }
  .symptoms-copy { width: min(100%, 520px); }
}

@media (max-width: 800px) {
  .section-inner { width: min(calc(100% - 40px), var(--max)); }
  .utility-bar { height: 64px; display: flex; justify-content: space-between; padding: 0 20px; }
  .brand img { width: 160px; height: auto; }
  .search-pill, .utility-actions > a, .language { display: none; }
  .utility-actions { display: flex; margin-left: auto; }
  .menu-toggle { display: block; margin-left: auto; }
  .menu-toggle span { height: 2px; background: #555; }
  .main-nav { position: fixed; z-index: 60; inset: 64px 0 0; height: auto; display: grid; align-content: center; gap: 34px; color: #fff; background: rgba(16,54,101,.97); transform: translateX(100%); transition: transform .3s ease; }
  body.menu-open .main-nav { transform: translateX(0); }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .disease-hero { min-height: 690px; padding: 70px 20px 150px; }
  .disease-hero-inner { width: 100%; min-width: 0; margin-top: 0; padding-inline: 14px; }
  .breadcrumb { font-size: 12px; }
  .disease-hero h1 { font-size: clamp(36px, 10vw, 50px); }
  .disease-hero h2 { font-size: 23px; }
  .disease-hero-inner > p:not(.breadcrumb) { width: min(100%, 330px); margin-inline: auto; overflow-wrap: normal; font-size: 14px; line-height: 1.7; white-space: normal; word-break: keep-all; }
  .disease-hero-inner br { display: none; }
  .disease-tabs { right: 20px; bottom: 28px; left: 20px; width: auto; min-height: 78px; display: flex; justify-content: flex-start; transform: none; overflow-x: auto; border-radius: 12px; font-size: 14px; scrollbar-width: none; }
  .disease-tabs::-webkit-scrollbar { display: none; }
  .disease-tabs > a { min-width: 145px; min-height: 76px; padding-inline: 15px; }
  .disease-tabs a[aria-current="page"]::after { bottom: 11px; }
  .causes, .treatments { padding: 90px 0; }
  .section-heading h2 { font-size: 31px; }
  .section-heading > p, .treatments .section-heading > p { margin-top: 38px; font-size: 15px; }
  .cause-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
  .cause-card { width: 100%; min-width: 0; min-height: 250px; aspect-ratio: 3 / 4; border-radius: 18px; }
  .cause-card > img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .cause-card.is-expanded::after { background: rgba(14,32,72,.84); }
  .cause-card-copy { padding: 18px 10px 12px; }
  .cause-card h3 { left: 10px; right: 10px; font-size: clamp(18px, 5vw, 24px); }
  .cause-card-description { top: 44%; left: 10px; right: 10px; font-size: 14px; font-weight: 500; line-height: 1.5; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
  .cause-card-description-desktop { display: none; }
  .cause-card-description-mobile { display: inline; }
  .cause-card.is-expanded h3 { top: 24%; }
  .plus-mark { bottom: 12px; width: 31px; height: 31px; font-size: 26px; }
  .symptoms { --symptom-height: 0px; }
  .symptoms::before { background-position: 39% center; opacity: .64; }
  .symptoms.is-flipped::before { background-position: 39% center; }
  .symptoms-shade { background: rgba(2,16,38,.44); }
  .symptoms-inner { min-height: 0; padding: 48px 0; align-items: flex-start; }
  .symptoms-copy, .symptoms.is-flipped .symptoms-copy { width: 100%; margin: 0; }
  .symptoms-copy h2 { font-size: 31px; }
  .symptoms-copy > p { margin-top: 30px; font-size: 15px; }
  .symptom-checklist { gap: 12px; margin-top: 42px; }
  .symptom-checklist li { min-height: 54px; padding: 12px 16px; font-size: 15px; }
  .treatment-list { margin-top: 54px; }
  .treatment-row { grid-template-columns: 1fr; }
  .treatment-row + .treatment-row { margin-top: 22px; }
  .treatment-row img { min-height: 0; aspect-ratio: 604 / 278; }
  .treatment-row-reverse .treatment-copy { order: 2; }
  .treatment-copy { min-height: 230px; padding: 35px 24px; }
  .treatment-copy h3 { margin: 18px 0 20px; font-size: 28px; }
  .treatment-copy p { font-size: 17px; }
}

@media (max-width: 520px) {
  .disease-hero { min-height: 660px; }
  .disease-hero h1 { font-size: 34px; }
  .disease-hero h2 { font-size: 20px; }
  .cause-grid { gap: 10px; }
  .cause-card { border-radius: 15px; }
  .cause-card h3 { font-size: 17px; }
  .plus-mark { bottom: 10px; width: 26px; height: 26px; font-size: 22px; }
  .symptoms-copy h2 { font-size: 27px; }
  .symptom-checklist li { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .main-nav, .reveal, .cause-card::after, .cause-card h3, .cause-card-description { transition: none; }
  .reveal, .symptoms-copy.reveal .symptom-checklist li { opacity: 1; transform: none; transition: none; }
}
