:root {
  --herbal-950: #173525;
  --herbal-900: #214a33;
  --herbal-800: #2d6042;
  --herbal-700: #3d7450;
  --herbal-600: #568760;
  --herbal-100: #e8efe5;
  --herbal-050: #f3f6ee;
  --paper: #fbf8ee;
  --paper-deep: #f1ead8;
  --paper-line: #d9cfb5;
  --ink: #28342c;
  --ink-soft: #5f685f;
  --bronze: #a67c3c;
  --bronze-light: #d7bd83;
  --cinnabar: #8a3d32;
}

body.article-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(85, 128, 85, .08), transparent 24rem),
    linear-gradient(90deg, rgba(137, 112, 62, .025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 28px 28px, auto;
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  margin: 0;
  text-align: left !important;
}

.article-page main { min-height: 60vh; }

/* The shared header is restrained and resembles a traditional medicine signboard. */
.article-page .header {
  background: rgba(251, 248, 238, .97);
  border-bottom: 3px double var(--herbal-700);
  box-shadow: 0 5px 18px rgba(23, 53, 37, .10);
  padding: 8px 0;
}

.article-page .header .logo { gap: 11px; }
.article-page .brand-seal {
  align-items: center;
  background: var(--herbal-800);
  border: 1px solid var(--bronze-light);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--herbal-700);
  color: #fffaf0;
  display: inline-flex;
  flex: 0 0 38px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  height: 38px;
  justify-content: center;
}
.article-page .brand-copy { display: flex; flex-direction: column; line-height: 1.08; }
.article-page .header .logo .sitename {
  color: var(--herbal-800) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 16px !important;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.article-page .brand-tagline {
  color: var(--bronze);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  margin-top: 5px;
  text-transform: uppercase;
}
.article-page .navmenu a { font-size: 14px; font-weight: 650; }
.article-page .navmenu a:hover,
.article-page .navmenu .active { color: var(--herbal-700); }

/* Hero uses a book-page frame instead of a generic white banner. */
.article-page .article-hero {
  background:
    linear-gradient(rgba(31, 74, 49, .94), rgba(31, 74, 49, .96)),
    radial-gradient(circle at 20% 30%, #7ca074, transparent 42%);
  border-bottom: 5px solid var(--paper-deep);
  color: #fff;
  padding: 28px 20px 34px;
  position: relative;
}
.article-page .article-hero::after {
  border-bottom: 1px solid rgba(215, 189, 131, .75);
  border-top: 1px solid rgba(215, 189, 131, .75);
  bottom: 5px;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
}
.article-page .article-hero-inner { margin: 0 auto; max-width: 1080px; text-align: center; }
.article-page .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 9px;
  justify-content: center;
  letter-spacing: .04em;
  list-style: none;
  margin: 0 0 13px;
  padding: 0;
  text-transform: uppercase;
}
.article-page .breadcrumb-list li { color: rgba(255,255,255,.78); }
.article-page .breadcrumb-list li + li::before { color: var(--bronze-light); content: "◆"; font-size: 8px; margin-right: 9px; }
.article-page .breadcrumb-list a { color: #fff; text-decoration: none; }
.article-page .article-kicker {
  color: var(--bronze-light);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.article-page .article-hero h1 {
  color: #fffdf7;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
  margin: 0 auto;
  max-width: 970px;
  text-shadow: 0 2px 2px rgba(0,0,0,.18);
}
.article-page .article-hero h1::after {
  background: var(--bronze-light);
  content: "";
  display: block;
  height: 2px;
  margin: 18px auto 0;
  width: 76px;
}

.article-page .article-shell { margin: 0 auto; max-width: 1120px; padding: 38px 20px 64px; }
.article-page .article-card {
  background: rgba(255, 253, 247, .96);
  border: 1px solid var(--paper-line);
  border-radius: 3px;
  box-shadow: 0 16px 45px rgba(47, 60, 48, .09);
  padding: clamp(24px, 5vw, 60px);
  position: relative;
}
.article-page .article-card::before,
.article-page .article-card::after {
  border-color: var(--bronze);
  border-style: solid;
  content: "";
  height: 22px;
  pointer-events: none;
  position: absolute;
  width: 22px;
}
.article-page .article-card::before { border-width: 2px 0 0 2px; left: 12px; top: 12px; }
.article-page .article-card::after { border-width: 0 2px 2px 0; bottom: 12px; right: 12px; }

.article-page .article-index {
  background: var(--herbal-050);
  border: 1px solid #cbd9c6;
  border-left: 5px solid var(--herbal-700);
  margin: 0 0 36px;
  padding: 21px 24px 18px;
}
.article-page .article-index-title {
  color: var(--herbal-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0 0 10px;
}
.article-page .article-index ol { columns: 2; gap: 42px; margin: 0; padding-left: 22px; }
.article-page .article-index li { break-inside: avoid; color: var(--bronze); margin: 4px 0; padding-left: 3px; }
.article-page .article-index a { color: var(--herbal-800); text-decoration: none; }
.article-page .article-index a:hover { color: var(--cinnabar); text-decoration: underline; }

.article-page .article-content { overflow-wrap: anywhere; }
.article-page .article-content > h1:first-child { display: none; }
.article-page .article-content h2,
.article-page .article-content h3,
.article-page .article-content h4 {
  clear: both;
  font-family: Georgia, "Times New Roman", serif !important;
  line-height: 1.35;
}
.article-page .article-content h2 {
  align-items: center;
  background: linear-gradient(90deg, var(--herbal-900), var(--herbal-700));
  border-left: 6px solid var(--bronze-light);
  color: #fffdf4;
  display: flex;
  font-size: clamp(21px, 2.8vw, 27px);
  margin: 2.15em 0 .9em;
  min-height: 52px;
  padding: 10px 18px;
}
.article-page .article-content h2:first-child { margin-top: 0; }
.article-page .article-content h2::after {
  border-bottom: 1px solid rgba(255,255,255,.35);
  content: "";
  flex: 1;
  margin-left: 18px;
}
.article-page .article-content h3 {
  border-bottom: 1px solid var(--paper-line);
  color: var(--herbal-900);
  font-size: clamp(20px, 2.4vw, 24px);
  margin: 1.8em 0 .7em;
  padding: 0 0 8px 20px;
  position: relative;
}
.article-page .article-content h3::before { color: var(--bronze); content: "❧"; left: 0; position: absolute; top: 0; }
.article-page .article-content h4 { color: var(--cinnabar); font-size: 19px; margin: 1.55em 0 .6em; }
.article-page .article-content h2 b,
.article-page .article-content h2 strong { color: inherit; }
.article-page .article-content p { margin: 0 0 1.05em; }
.article-page .article-content a { color: var(--herbal-700); text-decoration: underline; text-decoration-color: #a8bda4; text-underline-offset: 3px; }
.article-page .article-content strong,
.article-page .article-content b { color: #263d2e; }
.article-page .article-content img {
  background: #fff;
  border: 1px solid var(--paper-line);
  box-shadow: 0 7px 22px rgba(38, 58, 43, .10);
  display: block;
  height: auto;
  margin: 24px auto;
  max-width: 100%;
  padding: 5px;
}
.article-page .article-content ul,
.article-page .article-content ol { margin: 0 0 1.3em; padding-left: 1.6rem; }
.article-page .article-content li { margin-bottom: .38em; }
.article-page .article-content li::marker { color: var(--herbal-700); font-weight: 700; }
.article-page .article-content blockquote {
  background: var(--herbal-050);
  border: 1px solid #d5dfd0;
  border-left: 5px solid var(--herbal-700);
  color: #35463a;
  font-family: Georgia, "Times New Roman", serif;
  margin: 26px 0;
  padding: 20px 24px;
}

/* Full grid treatment for old pharmacopoeia tables. */
.article-page .table-scroll { margin: 26px 0; max-width: 100%; overflow-x: auto; }
.article-page .article-content table {
  background: #fffdf8;
  border: 2px solid var(--herbal-700) !important;
  border-collapse: collapse !important;
  display: table;
  margin: 26px 0;
  max-width: 100%;
  width: 100% !important;
}
.article-page .article-content th,
.article-page .article-content td {
  border: 1px solid #9faf9e !important;
  height: auto !important;
  min-width: 110px;
  padding: 11px 13px !important;
  text-align: left;
  vertical-align: top;
  width: auto !important;
}
.article-page .article-content th {
  background: var(--herbal-800) !important;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}
.article-page .article-content tr:nth-child(even) td { background: #f1f5ed; }
.article-page .article-content tr:hover td { background: #e7efe3; }
.article-page .article-content table img {
  border: 0;
  box-shadow: none;
  display: inline-block;
  margin: 5px;
  max-height: 80px;
  padding: 0;
  width: auto;
}

.article-page .article-notice {
  background: #f7f0dd;
  border: 1px solid #d9c28c;
  border-left: 5px solid var(--cinnabar);
  color: #5d4a2d;
  font-size: 14px;
  margin-top: 38px;
  padding: 16px 18px;
}
.article-page .article-notice strong { color: var(--cinnabar); }

.article-page .footer {
  background: var(--herbal-950) !important;
  border-top: 5px solid var(--bronze);
  color: rgba(255,255,255,.76) !important;
}
.article-page .footer h4,
.article-page .footer .sitename { color: #fff8e7 !important; font-family: Georgia, "Times New Roman", serif !important; }
.article-page .footer a { color: rgba(255,255,255,.78) !important; }
.article-page .footer a:hover { color: var(--bronze-light) !important; }
.article-page .footer .copyright { border-top-color: rgba(255,255,255,.14); }

@media (max-width: 991px) {
  .article-page .article-shell { padding: 26px 14px 48px; }
  .article-page .article-card { padding: 34px 25px; }
  .article-page .article-index ol { columns: 1; }
}

@media (max-width: 575px) {
  body.article-page { font-size: 16px; line-height: 1.7; }
  .article-page .header .logo .sitename { font-size: 13px !important; letter-spacing: .03em; }
  .article-page .brand-seal { flex-basis: 32px; font-size: 17px; height: 32px; }
  .article-page .brand-tagline { font-size: 8px; letter-spacing: .10em; }
  .article-page .article-hero { padding: 23px 14px 29px; }
  .article-page .article-hero h1 { font-size: 27px; }
  .article-page .article-shell { padding: 18px 8px 42px; }
  .article-page .article-card { padding: 28px 16px; }
  .article-page .article-card::before,
  .article-page .article-card::after { display: none; }
  .article-page .article-index { padding: 17px 16px 14px; }
  .article-page .article-content h2 { font-size: 21px; margin-left: -16px; margin-right: -16px; padding: 10px 15px; }
  .article-page .article-content h2::after { display: none; }
  .article-page .article-content h3 { font-size: 20px; }
  .article-page .table-scroll { margin-left: -16px; margin-right: -16px; }
  .article-page .article-content th,
  .article-page .article-content td { font-size: 14px; min-width: 105px; padding: 9px !important; }
}

@media print {
  .article-page .header,
  .article-page .footer,
  .article-page .site-contact-buttons,
  .article-page .article-index { display: none !important; }
  body.article-page { background: #fff; color: #000; }
  .article-page .article-hero { background: #fff; border: 0; color: #000; }
  .article-page .article-hero h1 { color: #000; text-shadow: none; }
  .article-page .article-card { border: 0; box-shadow: none; padding: 0; }
}
