@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..600&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #0b4c50;
  --ink-deep: #073f49;
  --muted: #5e746f;
  --paper: #ffffff;
  --white: #fffdf8;
  --cream: #f7f5ed;
  --gold: #e1c162;
  --gold-deep: #b8932f;
  --teal: #016c7c;
  --line: #d7cda7;
  --display-font:"Jiho", "Public Sans", system-ui, sans-serif;
  --sans: "Public Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.blog-detail {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.blog-detail a { color: inherit; }

/* ---------- Reading progress ---------- */
.reading-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transition: width 80ms linear;
}

/* ---------- Hero ---------- */
.article-hero {
  position: relative;
  width: min(calc(100% - 48px), 1040px);
  margin: 0 auto;
  padding: 88px 0 64px;
}
.article-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 30px;
  right: -90px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(1, 108, 124, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(1, 108, 124, .035), 0 0 0 76px rgba(225, 193, 98, .07);
  pointer-events: none;
}
.article-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  color: var(--teal);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.article-eyebrow span {
  display: block;
  width: 38px;
  height: 2px;
  border-radius: 0;
  background: var(--gold);
}
.article-hero h1 {
  max-width: 880px;
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.2rem, 4.2vw, 4.1rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
}
.article-intro {
  max-width: 720px;
  margin: 34px 0 0;
  padding-left: 24px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.2vw, 1.38rem);
  line-height: 1.6;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid #d9ded7;
}
.author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-size: .82rem;
  font-weight: 600;
}
.author strong, .author small { display: block; }
.author strong { font-size: .94rem; }
.author small { color: var(--muted); font-size: .79rem; }
.article-meta__details { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .82rem; }

/* ---------- Featured image ---------- */
.featured-image {
  width: 100%;
  margin: 0;
  padding: 8px 24px 0;
  overflow: hidden;
  background: var(--paper);
}
.featured-image img {
  display: block;
  width: 100%;
  max-width: 1120px;
  height: auto;
  aspect-ratio: 2 / 1;
  margin: 0 auto;
  border-radius: 28px;
  background: var(--cream);
  object-fit: cover;
  box-shadow: 0 24px 60px -24px rgba(7, 63, 73, .35), 14px 14px 0 -2px var(--cream);
}
.featured-image figcaption {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 4px;
  color: var(--muted);
  background: var(--paper);
  font-size: .82rem;
  text-align: left;
}

/* ---------- Summary block (kept) ---------- */
.article-summary {
  width: min(calc(100% - 48px), 920px);
  margin: 0 auto;
  padding: 88px 0 110px;
}
.article-summary__lead {
  margin: 0 0 24px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.55;
}
.article-summary p:last-child {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.9;
}

/* ---------- Article layout ---------- */
.article-layout {
  width: min(calc(100% - 48px), 860px);
  margin: 0 auto;
  padding: 64px 0 100px;
}
.article-content { min-width: 0; counter-reset: sec; }
.article-section {
  margin: 0 0 72px;
  scroll-margin-top: 28px;
}
.article-section h2 {
  margin: 0 0 26px;
  color: var(--ink);
  font-family: var(--display-font);
  font-variation-settings: "opsz" 96;
  font-size: clamp(1.7rem, 3.6vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.16;
  text-wrap: balance;
}
.article-section h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 18px;
  background: var(--gold);
}
.article-section h3 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}
.article-section > p:not(.section-eyebrow),
.article-section li,
.article-section address p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.88;
}
.article-section > p:not(.section-eyebrow) { margin: 0 0 20px; max-width: 70ch; }
.article-section strong { color: var(--ink); }
.article-section a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--gold-deep);
}
.article-section a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* Eyebrow with auto section number */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--teal);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.article-content > .article-section:not(.urgent-callout):not(.booking-section):not(.faq-section) > .section-eyebrow {
  counter-increment: sec;
}
.article-content > .article-section:not(.urgent-callout):not(.booking-section):not(.faq-section) > .section-eyebrow::before {
  content: counter(sec, decimal-leading-zero);
  color: var(--gold-deep);
  font-family: var(--display-font);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}
.article-content > .article-section:not(.urgent-callout):not(.booking-section):not(.faq-section) > .section-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line);
  order: -1;
}

/* ---------- Introduction with drop cap ---------- */
.article-introduction {
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.article-introduction > p:first-of-type {
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.8;
}
.article-introduction > p:first-of-type::first-letter {
  float: left;
  margin: .06em .12em 0 0;
  color: var(--teal);
  font-family: var(--display-font);
  font-size: 4.6em;
  font-weight: 600;
  line-height: .8;
}

/* ---------- Lists ---------- */
.article-section ul,
.article-section ol {
  display: block;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}
.article-section li {
  position: relative;
  display: block;
  margin: 0 0 12px;
  padding-left: 28px;
}
.article-section li:last-child { margin-bottom: 0; }
.article-section ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .82em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.article-section ol { counter-reset: ol; }
.article-section ol > li {
  counter-increment: ol;
  padding-left: 46px;
}
.article-section ol > li::before {
  content: counter(ol);
  position: absolute;
  left: 0;
  top: .2em;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1;
}

/* Two-column hairline lists (symptoms, signs, factors) */
#what-is-ms ul,
#signs ul,
#duration ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  border-top: 1px solid var(--line);
}
#what-is-ms ul > li,
#signs ul > li,
#duration ul > li {
  margin: 0;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
}
#what-is-ms ul > li::before,
#signs ul > li::before,
#duration ul > li::before { left: 4px; top: 1.2em; }

/* Pill tags (exercise targets) */
#exercise ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#exercise ul > li {
  margin: 0;
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--cream);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.5;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
#exercise ul > li::before { display: none; }
#exercise ul > li:hover { color: var(--white); background: var(--teal); border-color: var(--teal); }

/* ---------- Treatment list (numbered steps) ---------- */
.treatment-list {
  counter-reset: tx;
  display: grid;
  gap: 0;
  margin: 28px 0;
}
.treatment-list > div {
  counter-increment: tx;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.treatment-list > div:first-child { border-top: 1px solid var(--line); }
.treatment-list > div::before {
  content: counter(tx, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  color: var(--gold);
  font-family: var(--display-font);
  font-variation-settings: "opsz" 144;
  font-size: 3rem;
  font-weight: 500;
  line-height: .95;
}
.treatment-list dt {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}
.treatment-list dd {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- Callouts ---------- */
.story-section {
  padding: 30px 32px 34px;
  border-left: 3px solid var(--gold);
  background: var(--cream);
}
.urgent-callout {
  padding: 28px 32px;
  border-left: 3px solid #c44b3f;
  border-radius: 0 8px 8px 0;
  background: #fbf2ef;
}
.urgent-callout .section-eyebrow { color: #9f342c; }
.urgent-callout h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 18px; }
.urgent-callout h2::after { background: #c44b3f; width: 40px; }
.urgent-callout > p:not(.section-eyebrow) { margin-bottom: 0; color: #5a3a36; }
.urgent-callout ul > li::before { background: #c44b3f; }

/* ---------- Booking card ---------- */
.booking-section.article-section {
  position: relative;
  padding: 44px 40px;
  overflow: hidden;
  border-radius: 20px;
  color: var(--white);
  background: var(--ink-deep);
}
.booking-section.article-section::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(225, 193, 98, .3);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(225, 193, 98, .06);
  pointer-events: none;
}
.booking-section .section-eyebrow { color: var(--gold); }
.booking-section h2 { color: var(--white); }
.booking-section.article-section > p:not(.section-eyebrow) { color: rgba(255, 253, 248, .8); }
.booking-section strong { color: var(--gold); }
.booking-section a { color: var(--white); text-decoration-color: var(--gold); }
.booking-section a:hover { color: var(--gold); }
.booking-section address {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 253, 248, .18);
  font-style: normal;
}
.booking-section address p {
  margin: 0;
  color: rgba(255, 253, 248, .88);
  font-size: .96rem;
  line-height: 1.6;
}
.booking-section address p strong {
  display: block;
  margin-bottom: 2px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.booking-section address p:nth-child(4) { grid-column: 1 / -1; }

/* ---------- FAQ ---------- */
.faq-section details {
  border-bottom: 1px solid var(--line);
}
.faq-section details:first-of-type { border-top: 1px solid var(--line); }
.faq-section summary {
  position: relative;
  display: block;
  padding: 20px 52px 20px 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal);
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.faq-section details[open] summary::after {
  content: "\2212";
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}
.faq-section summary:hover { color: var(--teal); }
.faq-section summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.faq-section details p {
  margin: 0;
  padding: 0 52px 22px 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.85;
}

/* ---------- Related ---------- */
.related-section {
  margin: 0 -28px;
  padding: 44px 28px 48px;
  border-radius: 20px;
  background: var(--cream);
  scroll-margin-top: 28px;
}
.related-section .section-eyebrow { margin-bottom: 12px; }
.related-section h2 {
  margin: 0 0 28px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  line-height: 1.2;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.related-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: 24px 22px 54px;
  border: 1px solid #e4dfcf;
  border-radius: 12px;
  background: var(--paper);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.related-card::after {
  content: "\2192";
  position: absolute;
  left: 22px;
  bottom: 20px;
  color: var(--gold-deep);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 180ms ease;
}
.related-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -14px rgba(7, 63, 73, .3);
}
.related-card:hover::after { transform: translateX(6px); }
.related-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.15rem;
  line-height: 1.3;
}
.related-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  #what-is-ms ul,
  #signs ul,
  #duration ul { grid-template-columns: 1fr; }
  .booking-section address { grid-template-columns: 1fr; }
  .booking-section address p:nth-child(4) { grid-column: auto; }
}
.article-hero h1
@media (max-width: 640px) {
  .article-hero { width: min(calc(100% - 36px), 1040px); padding: 60px 0 44px; }
  .article-hero::after { display: none; }
  .article-intro { padding-left: 18px; }
  .article-meta { align-items: flex-start; flex-direction: column; }
  .featured-image { padding: 4px 12px 0; }
  .featured-image img { border-radius: 20px; box-shadow: 0 16px 40px -20px rgba(7, 63, 73, .35); }
  .featured-image figcaption { padding: 18px 8px; }
  .article-layout { width: min(calc(100% - 36px), 760px); padding: 40px 0 70px; }
  .article-section { margin-bottom: 52px; }
  .article-introduction > p:first-of-type::first-letter { font-size: 3.8em; }
  .treatment-list > div { grid-template-columns: 1fr; padding: 24px 0; }
  .treatment-list > div::before { grid-row: auto; margin-bottom: 8px; font-size: 2.3rem; }
  .treatment-list dt,
  .treatment-list dd { grid-column: 1; grid-row: auto; }
  .story-section, .urgent-callout { padding: 22px 18px; }
  .booking-section.article-section { padding: 30px 22px; border-radius: 16px; }
  .faq-section summary { font-size: 1.05rem; }
  .faq-section details p { padding-right: 0; }
  .related-section { margin: 0 -10px; padding: 30px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}