:root {
  --paper: #fffaf3;
  --paper-deep: #fff1df;
  --ink: #263244;
  --muted: #64748b;
  --line: #fed7aa;
  --accent: #ea6a20;
  --green: #3f8f5f;
  --article-gap: 2rem;
}

html { scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / .94);
}
.site-header-inner {
  display: flex;
  max-width: 72rem;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-link { display: flex; align-items: center; gap: .75rem; font-weight: 900; text-decoration: none; }
.brand-link img { width: 44px; height: 44px; border-radius: 50%; }
.desktop-nav { display: flex; gap: 1.5rem; color: #475569; font-size: .875rem; font-weight: 800; }
.desktop-nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.desktop-nav [aria-current="page"] { color: #c2410c; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 900;
}
.mobile-nav nav {
  position: absolute;
  top: calc(100% + .75rem);
  right: 0;
  width: min(18rem, calc(100vw - 2rem));
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
  box-shadow: 0 16px 40px rgb(38 50 68 / .14);
}
.mobile-nav nav a {
  display: flex;
  min-height: 44px;
  padding: 0 .75rem;
  align-items: center;
  border-radius: .75rem;
  text-decoration: none;
  font-weight: 800;
}
.mobile-nav nav a:hover { background: var(--paper-deep); }
.header-cta, .author-cta {
  display: inline-flex;
  min-height: 44px;
  padding: 0 1.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgb(194 65 12 / .2);
}
.clinical-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--paper-deep);
}
.clinical-hero-image, .clinical-hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.clinical-hero-image { object-fit: cover; object-position: center; }
.clinical-hero-overlay {
  background: linear-gradient(90deg, rgb(255 250 243 / .98) 0%, rgb(255 250 243 / .9) 44%, rgb(255 250 243 / .18) 78%);
}
.clinical-hero-content {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 10rem 1rem 4rem;
}
.clinical-hero-content > * { max-width: 42rem; }
.note-kicker, .toc-kicker, .highlight-label, .author-role {
  color: #c2410c;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.clinical-hero h1 {
  max-width: 46rem;
  margin: 1.25rem 0 0;
  color: #0f172a;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -.035em;
  font-weight: 900;
  text-wrap: balance;
}
.hero-accent { color: #c2410c; }
.hero-lede { margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.9; font-weight: 600; }
.article-byline { margin-top: 1rem; color: var(--muted); font-size: .875rem; }
.hero-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.75rem; }
.clinical-card, .section-card, .toc-card {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgb(255 255 255 / .94);
  box-shadow: 0 10px 28px rgb(38 50 68 / .08);
}
.clinical-card { padding: 1rem; }
.link-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.link-card > .text-orange-600 { color: #c2410c; }
.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 22px 48px rgb(234 106 32 / .18);
}
.link-card:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(234 106 32 / .30);
}
.link-card-arrow {
  color: var(--accent);
  transition: transform .2s ease;
}
.link-card:hover .link-card-arrow { transform: translateX(4px); }
.highlight-text { margin: .5rem 0 0; color: #334155; font-size: .875rem; line-height: 1.75; font-weight: 700; }
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  max-width: 70rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}
.article-sidebar { grid-column: 2; }
.article-sidebar-sticky { position: sticky; top: 6rem; display: grid; gap: 1rem; }
.toc-card { padding: 1rem; }
.toc-kicker { margin: 0; padding: .5rem; }
.toc-link {
  display: flex;
  min-height: 44px;
  padding: .5rem;
  align-items: center;
  border-radius: .75rem;
  color: #475569;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}
.toc-link:hover, .toc-link[aria-current="true"] { background: var(--paper-deep); color: #c2410c; }
.author-card img {
  display: block;
  width: 96px;
  height: 96px;
  margin-bottom: .75rem;
  border: 4px solid #ffedd5;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgb(38 50 68 / .12);
}
.author-card .author-role {
  margin: 0;
  color: #ea580c;
  font-size: .75rem;
  line-height: 1.5;
  font-weight: 900;
  letter-spacing: 0;
}
.author-card h2 {
  margin: .25rem 0 .5rem;
  color: #0f172a;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 900;
}
.author-card > p:not(.author-role) {
  margin: 0;
  color: #475569;
  font-size: .875rem;
  line-height: 1.75;
}
.author-cta {
  width: 100%;
  margin-top: 1rem;
  box-sizing: border-box;
  font-size: .875rem;
  line-height: 1.5;
}
.article-content { grid-column: 1; grid-row: 1; min-width: 0; }
.article-content > * + * { margin-top: var(--article-gap); }
.section-card { padding: clamp(1.25rem, 3vw, 2rem); }
.section-card > :first-child { margin-top: 0; }
.section-card > :last-child { margin-bottom: 0; }
.section-card h2 { color: #172033; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.4; font-weight: 900; text-wrap: balance; }
.section-card h3 { margin-top: 1.75rem; color: #263244; font-size: 1.25rem; line-height: 1.5; font-weight: 900; }
.section-card p, .section-card li { line-height: 1.9; }
.section-card > :is(p, ul, ol) + :is(figure, .clinical-card, .callout, .table-scroll, .grid),
.section-card > :is(figure, .clinical-card, .callout, .table-scroll, .grid) + * {
  margin-top: var(--article-gap);
}
.section-card figure { margin-right: 0; margin-left: 0; }
.section-card img { max-width: 100%; height: auto; border-radius: 1rem; }
.section-card figcaption { margin-top: .75rem; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.table-scroll { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; }
.table-scroll table, .section-card table {
  width: 100%;
  min-width: 42rem;
  border: 1px solid var(--line);
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 1rem;
  overflow: hidden;
}
.section-card th, .section-card td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.section-card tr:last-child > * { border-bottom: 0; }
.section-card details { border-top: 1px solid var(--line); padding: 1rem 0; }
.section-card summary { min-height: 44px; cursor: pointer; font-weight: 900; }
.author-footer {
  display: flex;
  padding: clamp(1.5rem, 3vw, 2rem);
  align-items: center;
  gap: 1.5rem;
}
.author-footer img {
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  border: 4px solid #ffedd5;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgb(38 50 68 / .12);
}
.author-footer .author-role {
  margin: 0;
  color: #ea580c;
  font-size: .75rem;
  line-height: 1.5;
  font-weight: 900;
  letter-spacing: 0;
}
.author-footer h2 {
  margin: 0;
  color: #1e293b;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 900;
}
.author-footer > div > p:not(.author-role) {
  margin: .75rem 0 0;
  color: #475569;
  line-height: 1.625;
}
.author-links {
  display: flex;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.author-links a {
  color: #c2410c;
  font-weight: 700;
  text-decoration: none;
}
.author-links a:hover { color: #9a3412; text-decoration: underline; }
.site-footer { margin-top: 2rem; padding: 2rem 1rem; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }

@media (max-width: 767px) {
  .desktop-nav, .header-cta { display: none; }
  .mobile-nav { display: block; }
  .clinical-hero { min-height: 680px; }
  .clinical-hero-overlay { background: linear-gradient(180deg, rgb(255 250 243 / .94) 0%, rgb(255 250 243 / .82) 68%, rgb(255 250 243 / .96) 100%); }
  .clinical-hero-content { padding-top: 8rem; }
  .hero-highlights { grid-template-columns: 1fr; }
  .article-shell { display: block; padding-top: 2rem; }
  .article-sidebar { display: none; }
  .author-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .link-card:hover { transform: none; }
}
