/* Shared long-form reading layout for article, treatment, About, and guide templates. */
#body main.site-content.container {
  box-sizing: border-box;
  width: min(calc(100% - 32px), var(--fwl-reading-shell-max, 1024px));
  max-width: var(--fwl-reading-shell-max, 1024px);
  margin: 32px auto 56px;
  padding: 0 14px;
}

#body main.site-content > .post-content {
  width: 100%;
  max-width: var(--fwl-reading-content-max, 960px);
  min-width: 0;
  margin: 0 auto;
}

#body .post-header {
  box-sizing: border-box;
  width: min(100%, var(--fwl-reading-card-max, 860px));
  margin: 0 auto 14px;
  padding: 0;
  text-align: left;
}

#body .post-header .post-title {
  margin: 0;
  color: #252d28;
  font-size: clamp(1.8rem, 3.2vw, 2.2rem);
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#body .post-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 10px;
  color: #687268;
  font-size: .95rem;
  line-height: 1.6;
}

#body .post-info a {
  color: #355543;
}

#body .post-info .iconfont {
  color: #687268;
}

#body .post-main {
  box-sizing: border-box;
  width: min(100%, var(--fwl-reading-card-max, 860px));
  max-width: var(--fwl-reading-card-max, 860px);
  min-width: 0;
  margin: 0 auto 56px;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid #dfe1da;
  border-radius: 16px;
  background: #fcfbfa;
  box-shadow: 0 10px 28px rgba(37, 45, 40, .035);
  color: #3e4840;
  font-size: 1.125rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

#body .post-main > * {
  box-sizing: border-box;
  max-width: 100%;
}

#body .post-main p {
  margin: .9em 0;
}

#body .post-main h1,
#body .post-main h2,
#body .post-main h3,
#body .post-main h4,
#body .post-main h5,
#body .post-main h6 {
  color: #252d28;
  line-height: 1.5;
  overflow-wrap: anywhere;
  scroll-margin-top: 120px;
}

#body .post-main h1 {
  margin: 1.15em 0 .55em;
  padding: 0;
  font-size: clamp(1.65rem, 3vw, 2rem);
}

#body .post-main h2 {
  margin: 2em 0 .6em;
  padding: .35em 0 0;
  border-top: 1px solid #dfe1da;
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
}

#body .post-main h3 {
  margin: 1.5em 0 .45em;
  padding: 0;
  font-size: clamp(1.15rem, 2vw, 1.3rem);
}

#body .post-main h4,
#body .post-main h5,
#body .post-main h6 {
  margin: 1.35em 0 .4em;
  padding: 0;
  font-size: 1.05rem;
}

#body .post-main h1::before,
#body .post-main h2::before,
#body .post-main h3::before,
#body .post-main h4::before,
#body .post-main h5::before,
#body .post-main h6::before {
  display: none;
  content: none;
}

#body .post-main a {
  color: #355543;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#body .post-main a:hover {
  color: #203d2b;
}

#body .post-main ul,
#body .post-main ol {
  margin: .8em 0 1.2em;
  padding-left: 1.5em;
}

#body .post-main ul li {
  list-style: disc;
}

#body .post-main ol li {
  list-style: decimal;
}

#body .post-main li {
  margin: .35em 0;
  color: #3e4840;
  line-height: 1.8;
}

#body .post-main figure {
  max-width: 100%;
  margin: 22px auto;
}

#body .post-main img,
#body .post-main video {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: 8px;
}

#body .post-main figcaption,
#body .post-main .wp-caption-text {
  margin-top: 8px;
  color: #687268;
  font-size: .9rem;
  line-height: 1.65;
  text-align: center;
}

#body .post-main blockquote {
  margin: 1.2em 0;
  padding: .35em 1em;
  border-left: 4px solid #78917c;
  border-radius: 0 8px 8px 0;
  background: #e7ece5;
  color: #3e4840;
}

#body .post-main blockquote::before {
  display: none;
  content: none;
}

#body .post-main hr {
  height: 1px;
  margin: 1.6em 0;
  border: 0;
  background: #dfe1da;
}

#body .post-main table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  border-spacing: 0;
  color: #3e4840;
  font-size: .98rem;
  line-height: 1.65;
}

/* Older pages contain unwrapped inline tables, so the table itself must be scrollable. */
#body .post-main div:has(> table) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#body .post-main .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#body .post-main td,
#body .post-main th {
  min-width: 7em;
  padding: 10px 12px;
  border: 1px solid #d4d8d0;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}

#body .post-main th {
  background: #e7ece5;
  color: #252d28;
  font-weight: 650;
}

#body .post-main tr:nth-child(even) {
  background: #f6f5f2;
}

#body .post-main pre {
  max-width: 100%;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#body .post-main code {
  overflow-wrap: anywhere;
}

#body .post-main .patient-topic-image {
  overflow: hidden;
  border-color: #dfe1da;
  border-radius: 12px;
  background: #f3f0ee;
  box-shadow: 0 10px 28px rgba(37, 45, 40, .07);
}

#body .post-main .geo-info-card,
#body .post-main .geo-compare-item,
#body .post-main .geo-feature-list li {
  border-color: #dfe1da;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(37, 45, 40, .045);
}

#body .post-main .geo-info-card h3,
#body .post-main .geo-compare-item h3 {
  padding-left: 0;
  color: #252d28;
}

#body .post-main .geo-info-card h3::before,
#body .post-main .geo-compare-item h3::before {
  display: none;
  content: none;
}

#body .post-main .geo-compare-columns p {
  border: 1px solid #e2e2dc;
  border-radius: 8px;
  background: #f3f0ee;
}

#body .post-main .fwl-reading-return {
  margin: 0 0 18px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #e7ece5;
  color: #252d28;
  font-size: 1rem;
  line-height: 1.6;
}

#body .post-main .fwl-reading-next {
  margin: 2em 0 0;
  padding: 18px;
  border: 1px solid #dfe1da;
  border-radius: 12px;
  background: #f3f0ee;
}

#body .post-main .fwl-reading-next h2 {
  margin: 0 0 .6em;
  padding: 0;
  border: 0;
  font-size: 1.3rem;
}

#body .post-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 auto 32px;
  max-width: 960px;
}

#body .post-navigation .nav-box {
  min-width: 0;
  flex: 1 1 260px;
  overflow: hidden;
  border: 1px solid #dfe1da;
  border-radius: 12px;
  background-color: #fcfbfa;
}

#body .post-navigation .nav-box > a {
  display: block;
  min-height: 100px;
  padding: 16px;
  background-color: #fcfbfa;
  background-blend-mode: luminosity;
  color: #252d28;
}

#body .post-navigation .nav-box .prev_info {
  padding: 10px;
  border-radius: 8px;
  background: rgba(252, 251, 250, .92);
}

#body .related-post {
  max-width: 960px;
  margin: 0 auto;
}

#body .related-post .attach-title {
  display: block;
  margin: 0 0 16px;
  color: #252d28;
  font-size: 1.35rem;
  font-weight: 650;
}

#body .related-post .hasThumb {
  gap: 20px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid #dfe1da;
  border-radius: 12px;
  background: #fcfbfa;
}

#body .related-post .entry-title {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.6;
}

#body .related-post .entry-info {
  color: #687268;
}

#body .related-post .entry-thumb {
  width: 180px;
  padding-left: 0;
}

#body .related-post .entry-thumb img {
  height: 116px;
  border-radius: 8px;
  object-fit: cover;
}

@media (max-width: 766px) {
  #body main.site-content.container {
    width: calc(100% - 24px);
    margin: 24px auto 40px;
    padding: 0 4px;
  }

  #body .post-header {
    width: 100%;
    margin-bottom: 12px;
  }

  #body .post-header .post-title {
    font-size: clamp(1.55rem, 6vw, 1.8rem);
    line-height: 1.45;
  }

  #body .post-info {
    gap: 5px 12px;
    font-size: .9rem;
  }

  #body .post-main {
    width: 100%;
    margin-bottom: 36px;
    padding: 22px 18px;
    border-radius: 12px;
    font-size: 1.0625rem;
    line-height: 1.85;
  }

  #body .post-main h2 {
    font-size: 1.35rem;
  }

  #body .post-main h3 {
    font-size: 1.15rem;
  }

  #body .post-main table {
    font-size: .9rem;
  }

  #body .post-navigation,
  #body .related-post {
    width: 100%;
  }

  #body .related-post .hasThumb {
    gap: 12px;
    padding: 12px;
  }

  #body .related-post .entry-thumb {
    width: 96px;
    padding: 0;
  }

  #body .related-post .entry-thumb img {
    height: 82px;
  }
}

@media (max-width: 360px) {
  #body main.site-content.container {
    width: calc(100% - 16px);
  }

  #body .post-main {
    padding: 18px 14px;
  }

  #body .post-info {
    gap: 4px 8px;
  }
}

/* Pain directory: reading first; appointment information lives in the visit guide. */
.fwl-pain-hub #specialties,.fwl-pain-hub section{scroll-margin-top:100px}.fwl-pain-hub .pain-guide-note{border-top:1px solid #d4d8d0;padding-top:18px;margin-top:32px;font-size:16px}.fwl-pain-clinic-update{padding:20px 24px;background:#e7ece5;border-radius:10px;margin:26px 0}.fwl-pain-clinic-update h2{margin-top:0}@media(max-width:700px){.fwl-pain-clinic-update{padding:18px}}


/* About: keep the portrait beside the introduction, with a compact mobile header.
   Scoped overrides also cover legacy inline styles containing HTML line breaks. */
#body .fl-about-hero {
  --ink: #252d28;
  --muted: #626b64;
  --line: #d4d8d0;
  --action: #355543;
  margin: 0 0 32px;
  color: var(--ink);
}
#body .fl-about-hero * { box-sizing: border-box; }
#body .fl-about-hero .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
#body .fl-about-hero .grid > div { min-width: 0; }
#body .fl-about-hero .name {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}
#body .fl-about-hero .role {
  margin: 0 0 16px;
  color: var(--action);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}
#body .fl-about-hero .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 18px;
}
#body .fl-about-hero .tag {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f5f2;
  color: var(--action);
  font-size: 12.5px;
  line-height: 1.6;
}
#body .fl-about-hero .facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 0;
}
#body .fl-about-hero .fact {
  display: grid;
  grid-template-columns: 2.5em minmax(0, 1fr);
  gap: 8px;
  font-size: 15px;
  line-height: 1.7;
}
#body .fl-about-hero .fact b { display: block; margin: 0; color: var(--ink); font-size: inherit; }
#body .fl-about-hero .fact span { color: var(--muted); }
#body .fl-about-hero .photo {
  grid-column: 2;
  grid-row: 1;
  order: 0;
  justify-self: end;
  width: 220px;
  max-width: 100%;
  margin: 0;
}
#body .fl-about-hero .photo img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0;
  border-radius: 10px;
}
@media (max-width: 640px) {
  #body .fl-about-hero .grid { grid-template-columns: minmax(0, 1fr) 104px; gap: 14px 16px; }
  #body .fl-about-hero .grid > div { display: contents; }
  #body .fl-about-hero .name { grid-column: 1; grid-row: 1; align-self: center; margin: 0; font-size: 26px; }
  #body .fl-about-hero .role { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  #body .fl-about-hero .photo { width: 104px; }
  #body .fl-about-hero .tags { grid-column: 1 / -1; grid-row: 3; margin: 0; }
  #body .fl-about-hero .facts { grid-column: 1 / -1; grid-row: 4; }
}

/* 2026-11-07: patient worksheets, visible treatment trade-offs, author verification. */
#body .post-main .fwl-choice-cards{display:grid;gap:16px;margin:20px 0}#body .post-main .fwl-choice-card,#body .post-main .fwl-patient-tool{min-width:0;padding:20px;border:1px solid #d4d8d0;border-radius:10px;background:#f5f6f2;overflow-wrap:anywhere}#body .post-main .fwl-choice-card h3{margin:0 0 12px;padding-top:0;border-top:0;font-size:20px}#body .post-main .fwl-choice-card p:last-child,#body .post-main .fwl-patient-tool p:last-child{margin-bottom:0}#body .post-main .fwl-patient-tool h2{margin-top:0;padding-top:0;border-top:0}#body .post-main .fwl-author-source{font-size:14px;line-height:1.7}@media(max-width:640px){#body .post-main .fwl-choice-card,#body .post-main .fwl-patient-tool{padding:16px}#body .post-main .fwl-choice-card h3{font-size:18px}}

/* 2026-11-13: readable captions and accessible long-article navigation. */
#body .post-main .mrgfus-hero-photo figcaption{position:static!important;background:#eef1eb!important;color:#35473b!important;padding:12px 16px!important;margin:0!important;font-size:14px;line-height:1.65}
#body .post-main .fwl-content-updated{margin:12px 0;color:#626b64;font-size:14px}
#body .post-main .fwl-article-toc{clear:both;margin:20px 0 26px;padding:0 18px;border:1px solid #d4d8d0;border-radius:8px;background:#f5f6f2}
#body .post-main .fwl-article-toc summary{padding:13px 0;min-height:48px;cursor:pointer;color:#355543;font-size:16px;font-weight:600}
#body .post-main .fwl-article-toc nav{padding-bottom:14px}
#body .post-main .fwl-article-toc ol{margin:0;padding-left:1.5em;columns:2;column-gap:32px}
#body .post-main .fwl-article-toc li{break-inside:avoid;margin:0;padding:4px 0;line-height:1.6;font-size:15px}
#body .post-main .fwl-article-toc a{display:inline-block;padding:4px 0;color:#355543;text-decoration:underline;text-underline-offset:3px}
#body .post-main h2[id]{scroll-margin-top:100px}
#body .post-main .fwl-article-toc summary:focus-visible,#body .post-main .fwl-article-toc a:focus-visible{outline:3px solid #355543;outline-offset:3px}
#body .post-main .fwl-reading-next,#body .post-main .fwl-topic-nav{background:#f5f6f2;border-color:#d4d8d0}
#body .post-main .fwl-reading-next h2,#body .post-main .fwl-topic-nav h2{margin-top:0;border-top:0;padding-top:0}
@media(max-width:640px){#body .post-main .fwl-article-toc ol{columns:1}#body .post-main .fwl-article-toc{padding:0 14px}}
@media print{.fwl-article-toc{display:none}}
