/* Ferulas de Descarga production design system
   Clean component CSS for indexable SEO pages. Home is the visual master. */

:root {
  --fd-blue: #0056A7;
  --fd-ink: #073A66;
  --fd-text: #46515C;
  --fd-muted: #65717C;
  --fd-teal: #35B995;
  --fd-soft: #F4F8FB;
  --fd-soft-blue: #EEF6FF;
  --fd-line: #D9E3EC;
  --fd-white: #FFFFFF;
  --fd-shadow: 0 24px 70px rgba(6, 47, 87, .13);
  --fd-card-shadow: 0 16px 42px rgba(6, 47, 87, .08);
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body { overflow-x: hidden; background: #fff; }
.pejoan-page-main { min-height: 58vh; }
.pejoan-entry-content { color: var(--fd-text); }
.pejoan-entry-content :where(h1,h2,h3,h4,h5,h6) {
  color: var(--fd-ink);
  letter-spacing: 0;
  text-wrap: balance;
}
.pejoan-entry-content :where(p,li) {
  color: var(--fd-text);
  line-height: 1.78;
}
.pejoan-entry-content :where(a) { color: var(--fd-blue); }
.pejoan-entry-content :where(figure img) {
  max-width: 100%;
  height: auto;
}
.pejoan-entry-content :where(p, h2, h3, h4, ul, ol, blockquote, figure.wp-block-pullquote) {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.pejoan-entry-content h2 {
  margin-top: 88px;
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 3.2vw, 3.2rem);
  line-height: 1.12;
  font-weight: 850;
}
.pejoan-entry-content h3,
.pejoan-entry-content h3.wp-block-heading {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 1.7vw, 1.55rem);
  line-height: 1.22;
  font-weight: 850;
}
.pejoan-entry-content p {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.08rem;
}
.has-lead-font-size,
.pejoan-entry-content .fd-premium-lead,
.pejoan-entry-content .fd-apnea-lead,
.fd-dental-hero-copy p:not(.fd-dental-eyebrow),
.fd-michigan-hero-copy p:not(.fd-michigan-eyebrow) {
  font-size: clamp(1.15rem, 1.45vw, 1.3rem);
  line-height: 1.62;
}

.pejoan-header {
  border-bottom: 1px solid rgba(217, 227, 236, .9);
  background: rgba(255, 255, 255, .96);
}
.pejoan-header .wp-block-site-title a {
  color: var(--fd-blue);
  font-weight: 850;
  text-decoration: none;
}
.pejoan-header .wp-block-navigation a {
  color: var(--fd-ink);
  font-weight: 750;
  text-decoration: none;
}
.pejoan-footer {
  margin-top: 80px;
  border-top: 1px solid var(--fd-line);
  background: var(--fd-soft);
}
.pejoan-footer a {
  color: var(--fd-blue);
  text-decoration: none;
}

/* Premium blog articles */
body.single-post .pejoan-page-main {
  padding-top: 0;
}
body.single-post .pejoan-page-title {
  padding-top: clamp(24px, 3vw, 42px) !important;
  padding-bottom: clamp(30px, 4vw, 52px) !important;
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F8FB 62%, #EEF6FF 100%);
  border-bottom: 1px solid rgba(217, 227, 236, .92);
}
body.single-post .pejoan-entry-content {
  max-width: none;
}
body.single-post .wp-block-post-title {
  max-width: 1020px;
  margin: 0 auto 12px !important;
  padding: 0 24px;
  color: var(--fd-ink);
  font-size: clamp(2.45rem, 4.1vw, 4.15rem) !important;
  line-height: 1.07 !important;
  font-weight: 880 !important;
  text-align: left;
}
body.single-post .wp-block-post-date {
  max-width: 1020px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  padding: 0 24px;
  color: var(--fd-muted);
  font-size: .96rem;
  text-align: left;
}
body.single-post .fd-blog-main-image {
  width: min(100% - 48px, 900px);
  margin-top: 28px;
  margin-bottom: 32px;
}
body.single-post .fd-blog-main-image img {
  max-height: 390px;
  object-position: center 48%;
}
.fd-blog-premium {
  --fd-blog-width: min(100% - 48px, 1180px);
  --fd-blog-text: min(100% - 48px, 820px);
}
.fd-blog-hero {
  width: min(100%, 1440px);
  margin: 0 auto 42px;
  padding: clamp(52px, 6vw, 76px) clamp(24px, calc((100vw - 1180px) / 2), 130px);
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F8FB 54%, #EEF6FF 100%);
  border-bottom: 1px solid rgba(217, 227, 236, .92);
}
.fd-blog-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  align-items: center;
  gap: clamp(32px, 5vw, 70px);
  max-width: 1180px;
  margin: 0 auto;
}
.fd-blog-eyebrow {
  display: block;
  margin: 0 0 16px;
  color: var(--fd-blue);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .1em;
  line-height: 1.25;
  text-transform: uppercase;
}
.fd-blog-hero h1,
.fd-blog-title {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--fd-ink);
  font-size: clamp(2rem, 3.1vw, 3.05rem);
  line-height: 1.12;
  font-weight: 880;
}
.fd-blog-hero__lead {
  max-width: 760px;
  margin: 0;
  color: var(--fd-text);
  font-size: clamp(1.17rem, 1.45vw, 1.34rem);
  line-height: 1.62;
}
.fd-blog-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.fd-blog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--fd-line);
  border-radius: 999px;
  background: #fff;
  color: var(--fd-blue);
  font-size: .94rem;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
}
.fd-blog-button--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--fd-blue), var(--fd-teal));
  color: #fff;
}
.fd-blog-hero__media {
  overflow: hidden;
  border: 1px solid rgba(217, 227, 236, .95);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--fd-shadow);
}
.fd-blog-hero__media img,
.fd-blog-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.fd-blog-hero__caption,
.fd-blog-figure figcaption {
  padding: 12px 16px 14px;
  color: var(--fd-muted);
  font-size: .9rem;
  line-height: 1.45;
  background: #fff;
}
.fd-blog-section,
.fd-blog-direct,
.fd-blog-short-answer,
.fd-blog-table-wrap,
.fd-blog-card-grid,
.fd-blog-main-image,
.fd-blog-figure,
.fd-blog-faq,
.fd-blog-sources {
  width: var(--fd-blog-width);
  margin-left: auto;
  margin-right: auto;
}
.fd-blog-premium--editorial {
  padding-top: 6px;
}
.fd-blog-main-image {
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 42px;
  border: 1px solid var(--fd-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--fd-card-shadow);
}
.fd-blog-main-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}
.fd-blog-main-image figcaption {
  padding: 12px 16px 14px;
  color: var(--fd-muted);
  font-size: .9rem;
  line-height: 1.45;
}
.fd-blog-short-answer {
  max-width: 900px;
  margin-top: 0;
  margin-bottom: 34px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--fd-line);
  border-radius: 12px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F8FB 100%);
  box-shadow: var(--fd-card-shadow);
}
.fd-blog-short-answer p {
  max-width: none;
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.66;
}
.fd-blog-short-answer p + p {
  margin-top: 12px;
}
.fd-blog-short-answer p:first-of-type {
  color: var(--fd-ink);
  font-size: clamp(1.18rem, 1.6vw, 1.38rem);
  font-weight: 780;
  line-height: 1.42;
}
.fd-blog-table-wrap--compact {
  max-width: 900px;
  margin-bottom: 54px;
}
.fd-blog-table-wrap--compact table {
  min-width: 560px;
}
.fd-blog-reading {
  width: var(--fd-blog-text);
  margin-left: auto;
  margin-right: auto;
}
.fd-blog-direct {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr);
  gap: 18px;
  margin-top: 46px;
  margin-bottom: 64px;
}
.fd-blog-answer,
.fd-blog-note,
.fd-blog-card,
.fd-blog-faq details {
  border: 1px solid var(--fd-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--fd-card-shadow);
}
.fd-blog-answer,
.fd-blog-note,
.fd-blog-card {
  padding: clamp(24px, 3vw, 34px);
}
.fd-blog-answer {
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F8FB 100%);
}
.fd-blog-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--fd-blue);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fd-blog-answer strong,
.fd-blog-note strong,
.fd-blog-card strong {
  color: var(--fd-ink);
}
.fd-blog-answer p,
.fd-blog-note p,
.fd-blog-card p {
  max-width: none;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.64;
}
.fd-blog-answer p:first-of-type {
  color: var(--fd-ink);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  font-weight: 780;
  line-height: 1.42;
}
.fd-blog-note {
  background: var(--fd-soft-blue);
}
.fd-blog-note ul {
  max-width: none;
  margin: 14px 0 0;
  padding-left: 1.1rem;
}
.fd-blog-note li {
  margin: 7px 0;
  font-size: 1rem;
  line-height: 1.55;
}
.fd-blog-table-wrap {
  overflow-x: auto;
  margin-top: 34px;
  margin-bottom: 64px;
  border: 1px solid var(--fd-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--fd-card-shadow);
}
.fd-blog-table-wrap table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}
.fd-blog-table-wrap th,
.fd-blog-table-wrap td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--fd-line);
  color: var(--fd-text);
  font-size: .98rem;
  line-height: 1.52;
  text-align: left;
  vertical-align: top;
}
.fd-blog-table-wrap th {
  background: var(--fd-soft-blue);
  color: var(--fd-ink);
  font-weight: 820;
}
.fd-blog-table-wrap tr:last-child td {
  border-bottom: 0;
}
.fd-blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
  margin-bottom: 60px;
}
.fd-blog-card h3 {
  max-width: none;
  margin: 0 0 10px;
  color: var(--fd-ink);
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 820;
}
.fd-blog-figure {
  overflow: hidden;
  margin-top: 38px;
  margin-bottom: 62px;
  border: 1px solid var(--fd-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--fd-card-shadow);
}
.fd-blog-premium .wp-block-separator {
  width: min(100% - 48px, 820px);
  margin: 72px auto;
  border-color: rgba(217, 227, 236, .8);
}
.fd-blog-premium .wp-block-table {
  width: var(--fd-blog-width);
  max-width: var(--fd-blog-width);
  overflow-x: auto;
  margin: 34px auto 58px;
  border: 1px solid var(--fd-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--fd-card-shadow);
}
.fd-blog-premium .wp-block-table table {
  min-width: 680px;
  margin: 0;
  border-collapse: collapse;
}
.fd-blog-premium .wp-block-table th,
.fd-blog-premium .wp-block-table td {
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--fd-line);
  color: var(--fd-text);
  font-size: .98rem;
  line-height: 1.52;
  text-align: left;
}
.fd-blog-premium .wp-block-table th {
  background: var(--fd-soft-blue);
  color: var(--fd-ink);
  font-weight: 820;
}
.fd-blog-faq {
  margin-top: 34px;
}
.fd-blog-faq h2 {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.fd-blog-faq details {
  max-width: 920px;
  margin: 0 auto 12px;
  padding: 0;
  box-shadow: 0 10px 28px rgba(6, 47, 87, .06);
}
.fd-blog-faq summary {
  cursor: pointer;
  padding: 18px 22px;
  color: var(--fd-ink);
  font-size: 1.04rem;
  font-weight: 760;
  line-height: 1.36;
}
.fd-blog-faq details p {
  max-width: none;
  margin: 0;
  padding: 0 22px 20px;
  font-size: 1rem;
  line-height: 1.65;
}
.fd-blog-sources {
  margin-top: 70px;
  padding: 26px;
  border: 1px solid var(--fd-line);
  border-radius: 12px;
  background: var(--fd-soft);
}
.fd-blog-sources h2 {
  max-width: none;
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
}
.fd-blog-sources ul,
.fd-blog-sources li {
  max-width: none;
}
.fd-blog-sources ul {
  margin: 0;
  padding-left: 1.15rem;
}
.fd-blog-sources li {
  margin: 8px 0;
  font-size: .98rem;
}

/* Home */
body.home .pejoan-page-main,
body.page-id-314 .pejoan-page-main,
body.page-id-344 .pejoan-page-main,
body.page-id-347 .pejoan-page-main,
body.page-id-360 .pejoan-page-main,
body.page-id-362 .pejoan-page-main {
  padding-top: 0;
}
body.home .pejoan-entry-content,
body.page-id-314 .pejoan-entry-content,
body.page-id-344 .pejoan-entry-content,
body.page-id-347 .pejoan-entry-content,
body.page-id-360 .pejoan-entry-content,
body.page-id-362 .pejoan-entry-content {
  max-width: none;
}
.fd-hero-v2 {
  width: min(100%, 1440px);
  min-height: clamp(560px, 58vh, 660px);
  margin: 0 auto 34px;
  padding: clamp(52px, 6vw, 76px) max(24px, calc((100vw - 1180px) / 2));
  color: #fff;
  background:
    radial-gradient(circle at 84% 24%, rgba(53,185,149,.28), transparent 34%),
    linear-gradient(115deg, rgba(6,47,87,.98) 0%, rgba(0,86,167,.92) 56%, rgba(20,143,166,.86) 100%);
  box-shadow: var(--fd-shadow);
  overflow: hidden;
}
.fd-hero-v2__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .85fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  max-width: 1180px;
  margin: 0 auto;
}
.fd-hero-v2__eyebrow,
.fd-dental-eyebrow,
.fd-michigan-eyebrow,
.fd-premium-eyebrow,
.fd-apnea-eyebrow {
  display: block;
  margin: 0 0 18px;
  color: var(--fd-teal);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .1em;
  line-height: 1.25;
  text-transform: uppercase;
}
.fd-hero-v2__eyebrow { color: rgba(255,255,255,.82); }
.fd-hero-v2 h1 {
  max-width: 780px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(3.4rem, 5.6vw, 5.8rem);
  line-height: 1.02;
  font-weight: 900;
}
.fd-hero-v2 p {
  max-width: 800px;
  color: rgba(255,255,255,.92);
  font-size: clamp(1.2rem, 1.5vw, 1.35rem);
  line-height: 1.55;
}
.fd-hero-v2__actions,
.fd-dental-actions,
.fd-michigan-actions,
.fd-premium-actions,
.fd-apnea-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.fd-hero-v2__actions a,
.fd-dental-actions .wp-block-button__link,
.fd-michigan-actions .wp-block-button__link,
.fd-premium-actions .wp-block-button__link,
.fd-apnea-actions .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--fd-line);
  border-radius: 999px;
  background: #fff;
  color: var(--fd-blue);
  font-size: .94rem;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
}
.fd-hero-v2__actions a {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  color: #fff;
}
.fd-hero-v2__actions .fd-hero-v2__primary,
.fd-dental-actions .wp-block-button:first-child .wp-block-button__link,
.fd-michigan-actions .wp-block-button:first-child .wp-block-button__link,
.fd-premium-actions .wp-block-button:first-child .wp-block-button__link,
.fd-apnea-actions .wp-block-button:first-child .wp-block-button__link {
  border-color: transparent;
  background: linear-gradient(135deg, var(--fd-blue), var(--fd-teal));
  color: #fff;
}
.fd-hero-v2__actions .fd-hero-v2__primary {
  background: #fff;
  color: var(--fd-ink);
}
.fd-hero-v2__visual {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 24px 60px rgba(0,0,0,.12);
}
.fd-hero-v2__visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* Shared secondary SEO pages */
.fd-dental-page,
.fd-michigan-page,
.fd-premium-page,
.fd-apnea-page {
  max-width: 1180px;
  margin: 64px auto 0;
  padding: 0 30px;
}
.fd-dental-hero,
.fd-michigan-hero,
.fd-premium-hero,
.fd-apnea-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr);
  align-items: center;
  gap: clamp(34px, 5vw, 64px);
  margin: 0 auto 72px;
  padding: clamp(52px, 6vw, 72px);
  border: 1px solid rgba(217,227,236,.9);
  border-radius: 10px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F8FB 52%, #EEF6FF 100%);
  box-shadow: var(--fd-shadow);
}
.fd-dental-hero h1,
.fd-michigan-hero h1,
.fd-premium-hero h1,
.fd-apnea-hero h1 {
  margin: 0 0 22px;
  color: var(--fd-ink);
  font-size: clamp(3.4rem, 5.2vw, 5.25rem);
  line-height: 1.05;
  font-weight: 900;
}
.fd-dental-hero p,
.fd-michigan-hero p,
.fd-premium-hero p,
.fd-apnea-hero p {
  color: var(--fd-text);
}
.fd-dental-hero-card,
.fd-michigan-hero-card,
.fd-premium-hero__card,
.fd-apnea-hero__card {
  overflow: hidden;
  border: 1px solid var(--fd-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--fd-card-shadow);
}
.fd-dental-hero-card p,
.fd-michigan-hero-card p,
.fd-premium-hero__card p,
.fd-apnea-hero__card p {
  margin: 0;
  padding: 0 22px 18px;
  font-size: 1rem;
  line-height: 1.65;
}
.fd-dental-hero-card p:first-of-type,
.fd-michigan-hero-card p:first-of-type,
.fd-premium-hero__card p:first-of-type,
.fd-apnea-hero__card p:first-of-type {
  padding-top: 22px;
  color: var(--fd-ink);
  font-weight: 850;
}
.fd-dental-hero-card figure,
.fd-michigan-hero-card figure,
.fd-premium-hero__card figure,
.fd-apnea-hero__card figure {
  margin: 0 0 18px;
}
.fd-dental-hero-card img,
.fd-michigan-hero-card img,
.fd-premium-hero__card img,
.fd-apnea-hero__card img,
.fd-premium-image img,
.fd-image-slot img {
  display: block;
  width: 100%;
  height: auto;
}
.fd-apnea-hero__card ul {
  margin: 0 22px 22px;
  padding: 16px 18px 16px 34px;
  border: 1px solid var(--fd-line);
  border-radius: 8px;
  background: #fff;
}

.fd-direct-answer,
.fd-dental-answer,
.fd-michigan-answer,
.fd-premium-answer,
.fd-apnea-answer,
.fd-premium-section,
.fd-dental-section,
.fd-authority-snippet,
.fd-plain-sources {
  max-width: 920px;
  margin: 72px auto;
  padding: 30px 36px;
  border: 1px solid var(--fd-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--fd-card-shadow);
}
.fd-direct-answer__label,
.fd-dental-answer-label {
  display: block;
  margin-bottom: 12px;
  color: var(--fd-teal);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.fd-direct-answer p,
.fd-dental-answer p,
.fd-michigan-answer p,
.fd-premium-answer p {
  font-size: clamp(1.12rem, 1.4vw, 1.28rem);
  line-height: 1.62;
}
.fd-direct-answer__grid,
.fd-dental-answer-grid,
.fd-michigan-answer-grid,
.fd-premium-card-grid,
.fd-premium-steps,
.fd-snippet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.fd-dental-answer-grid.wp-block-columns,
.fd-michigan-answer-grid.wp-block-columns,
.fd-premium-card-grid.wp-block-columns,
.fd-premium-steps.wp-block-columns {
  display: grid;
}
.fd-direct-answer__grid div,
.fd-dental-answer-grid .wp-block-column,
.fd-michigan-answer-grid .wp-block-column,
.fd-premium-card-grid .wp-block-column,
.fd-premium-steps .wp-block-column,
.fd-snippet-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--fd-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(6,47,87,.05);
}
.fd-direct-answer__grid strong,
.fd-direct-answer__grid span {
  display: block;
}
.fd-direct-answer__grid strong,
.fd-snippet-card h3,
.fd-premium-card-grid h3 {
  margin: 0 0 8px;
  color: var(--fd-ink);
  font-weight: 850;
}

.fd-snippet-hub-clean {
  max-width: 1080px;
  margin: 72px auto;
  padding: 36px;
  border: 1px solid var(--fd-line);
  border-radius: 10px;
  background: var(--fd-soft);
  box-shadow: var(--fd-card-shadow);
}
.fd-snippet-inner h2 {
  margin-top: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}
.fd-snippet-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wp-block-table,
.fd-premium-table,
.fd-apnea-table {
  max-width: 1080px;
  margin: 46px auto;
  overflow-x: auto;
  border: 1px solid var(--fd-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--fd-card-shadow);
}
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.wp-block-table th,
.wp-block-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--fd-line);
  color: var(--fd-text);
  text-align: left;
  vertical-align: top;
}
.wp-block-table th {
  background: var(--fd-soft-blue);
  color: var(--fd-ink);
  font-weight: 850;
}
.wp-block-table tr:last-child td { border-bottom: 0; }

.fd-premium-highlight,
.pejoan-entry-content blockquote,
.pejoan-entry-content .wp-block-pullquote {
  max-width: 860px;
  margin: 42px auto;
  padding: 24px 28px;
  border-left: 5px solid var(--fd-teal);
  border-radius: 0 10px 10px 0;
  background: #EEFBF7;
  color: var(--fd-ink);
}
.fd-premium-image,
.fd-image-slot {
  max-width: 920px;
  margin: 46px auto;
  overflow: hidden;
  border: 1px solid var(--fd-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--fd-card-shadow);
}
.fd-premium-image figcaption,
.fd-image-slot figcaption,
.wp-block-image figcaption {
  margin: 0;
  padding: 12px 18px 16px;
  color: var(--fd-muted);
  font-size: .94rem;
  line-height: 1.45;
}

.fd-premium-faq,
.fd-dental-faq,
.fd-michigan-faq {
  max-width: 920px;
  margin: 80px auto;
  padding: 32px;
  border: 1px solid var(--fd-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--fd-card-shadow);
}
.pejoan-entry-content details {
  border-top: 1px solid var(--fd-line);
  padding: 18px 0;
}
.pejoan-entry-content details:first-of-type { border-top: 0; }
.pejoan-entry-content summary {
  color: var(--fd-ink);
  font-weight: 850;
  cursor: pointer;
}
.pejoan-entry-content details p {
  margin: 12px 0 0;
}

/* Home FAQ hierarchy lock */
body.home .pejoan-entry-content details {
  padding: 16px 0;
}
body.home .pejoan-entry-content details summary {
  color: #073A66;
  font-size: clamp(1rem, 1.05vw, 1.08rem);
  font-weight: 760;
  line-height: 1.35;
}
@media (max-width: 640px) {
  body.home .pejoan-entry-content details {
    padding: 14px 0;
  }
  body.home .pejoan-entry-content details summary {
    font-size: .98rem;
    line-height: 1.36;
  }
}

/* Educational diagrams */
.fd-clinical-diagram {
  margin: 0 0 18px;
  padding: 18px;
  background: linear-gradient(135deg, #fff, #F4F8FB);
  border-bottom: 1px solid var(--fd-line);
}
.fd-clinical-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}
.fd-diagram-label {
  fill: var(--fd-ink);
  font: 700 13px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.fd-diagram-muted {
  fill: var(--fd-muted);
  font: 600 11px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Legal and contact pages */
body.page-id-9 .pejoan-entry-content,
body.page-id-12 .pejoan-entry-content,
body.page-id-14 .pejoan-entry-content,
body.page-id-16 .pejoan-entry-content {
  max-width: 920px;
  margin: 64px auto;
  padding: 0 24px;
}
body.page-id-9 .pejoan-entry-content h1,
body.page-id-12 .pejoan-entry-content h1,
body.page-id-14 .pejoan-entry-content h1,
body.page-id-16 .pejoan-entry-content h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.08;
}

@media (max-width: 960px) {
  .fd-hero-v2__inner,
  .fd-dental-hero,
  .fd-michigan-hero,
  .fd-premium-hero,
  .fd-apnea-hero {
    grid-template-columns: 1fr;
  }
  .fd-direct-answer__grid,
  .fd-dental-answer-grid,
  .fd-michigan-answer-grid,
  .fd-premium-card-grid,
  .fd-premium-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pejoan-entry-content :where(p, h2, h3, h4, ul, ol, blockquote, figure.wp-block-pullquote) {
    max-width: calc(100vw - 40px);
  }
  .pejoan-entry-content h2 {
    margin-top: 58px;
    font-size: clamp(1.65rem, 7vw, 2.15rem);
  }
  .pejoan-entry-content p,
  .pejoan-entry-content li {
    font-size: 1.02rem;
    line-height: 1.72;
  }
  .fd-hero-v2 {
    min-height: 0;
    padding: 56px 24px;
  }
  .fd-hero-v2 h1 {
    font-size: clamp(2.05rem, 9vw, 2.8rem);
    line-height: 1.08;
  }
  .fd-hero-v2 p {
    font-size: 1.08rem;
  }
  .fd-dental-page,
  .fd-michigan-page,
  .fd-premium-page,
  .fd-apnea-page {
    width: 100%;
    max-width: 100vw;
    margin-top: 28px;
    padding: 0 20px;
    box-sizing: border-box;
  }
  .fd-dental-hero,
  .fd-michigan-hero,
  .fd-premium-hero,
  .fd-apnea-hero {
    width: 100%;
    margin-bottom: 48px;
    padding: 32px 20px;
    gap: 28px;
    box-sizing: border-box;
  }
  .fd-dental-hero h1,
  .fd-michigan-hero h1,
  .fd-premium-hero h1,
  .fd-apnea-hero h1 {
    width: 100%;
    font-size: clamp(2.05rem, 9vw, 2.8rem);
    line-height: 1.1;
    overflow-wrap: break-word;
  }
  .fd-apnea-hero h1 {
    font-size: clamp(1.95rem, 8.2vw, 2.45rem);
  }
  .fd-hero-v2__actions,
  .fd-dental-actions,
  .fd-michigan-actions,
  .fd-premium-actions,
  .fd-apnea-actions {
    gap: 10px;
  }
  .fd-hero-v2__actions a,
  .fd-dental-actions .wp-block-button__link,
  .fd-michigan-actions .wp-block-button__link,
  .fd-premium-actions .wp-block-button__link,
  .fd-apnea-actions .wp-block-button__link {
    min-height: 40px;
    padding: 10px 15px;
    white-space: normal;
  }
  .fd-direct-answer,
  .fd-dental-answer,
  .fd-michigan-answer,
  .fd-premium-answer,
  .fd-apnea-answer,
  .fd-premium-section,
  .fd-dental-section,
  .fd-snippet-hub-clean,
  .fd-premium-faq,
  .fd-dental-faq,
  .fd-michigan-faq,
  .fd-plain-sources {
    width: calc(100vw - 40px);
    margin: 46px auto;
    padding: 22px;
    box-sizing: border-box;
  }
  .fd-direct-answer__grid,
  .fd-dental-answer-grid,
  .fd-michigan-answer-grid,
  .fd-premium-card-grid,
  .fd-premium-steps,
  .fd-snippet-grid {
    grid-template-columns: 1fr;
  }
  .wp-block-table,
  .fd-premium-image,
  .fd-image-slot {
    width: calc(100vw - 40px);
    box-sizing: border-box;
  }
}

/* Detail QA v36: separate editorial quotes from clinical note boxes */
body .pejoan-entry-content figure.wp-block-pullquote {
  max-width: 760px;
  margin: 34px auto 40px;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--fd-line);
  border-bottom: 1px solid var(--fd-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--fd-ink);
  text-align: left;
}

body .pejoan-entry-content figure.wp-block-pullquote blockquote {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body .pejoan-entry-content figure.wp-block-pullquote p {
  margin: 0;
  color: var(--fd-ink);
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  font-weight: 850;
  line-height: 1.55;
}

body .pejoan-entry-content blockquote.wp-block-quote,
body .pejoan-entry-content .wp-block-quote {
  max-width: 860px;
  margin: 34px auto;
  padding: 20px 24px;
  border: 1px solid var(--fd-line);
  border-left: 4px solid var(--fd-blue);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(6, 47, 87, .07);
  color: var(--fd-ink);
}

body .pejoan-entry-content blockquote.wp-block-quote p,
body .pejoan-entry-content .wp-block-quote p {
  margin: 0;
  color: var(--fd-ink);
}

body .pejoan-entry-content figure.wp-block-pullquote + .fd-note-box,
body .pejoan-entry-content .fd-note-box + figure.wp-block-pullquote {
  margin-top: 46px;
}

@media (max-width: 640px) {
  body .pejoan-entry-content figure.wp-block-pullquote {
    width: min(100%, calc(100vw - 40px));
    margin: 28px auto 34px;
    padding: 16px 0;
  }

  body .pejoan-entry-content figure.wp-block-pullquote p {
    font-size: 1.04rem;
    line-height: 1.5;
  }

  body .pejoan-entry-content blockquote.wp-block-quote,
  body .pejoan-entry-content .wp-block-quote {
    width: min(100%, calc(100vw - 40px));
    margin: 28px auto;
    padding: 18px 19px;
  }
}

/* Typography hierarchy v37: keep section titles below hero scale */
body .pejoan-entry-content h2.wp-block-heading,
body .pejoan-entry-content .fd-snippet-inner h2,
body .pejoan-entry-content .fd-authority-snippet h2,
body .pejoan-entry-content .fd-local-snippet h2 {
  color: var(--fd-ink);
  font-size: clamp(1.62rem, 2.15vw, 2.05rem) !important;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: 0;
}

body .pejoan-entry-content h3.wp-block-heading,
body .pejoan-entry-content .fd-snippet-card h3 {
  color: var(--fd-ink);
  font-size: clamp(1.12rem, 1.35vw, 1.32rem) !important;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0;
}

@media (max-width: 640px) {
  body .pejoan-entry-content h2.wp-block-heading,
  body .pejoan-entry-content .fd-snippet-inner h2,
  body .pejoan-entry-content .fd-authority-snippet h2,
  body .pejoan-entry-content .fd-local-snippet h2 {
    font-size: 1.5rem !important;
    line-height: 1.18;
  }

  body .pejoan-entry-content h3.wp-block-heading,
  body .pejoan-entry-content .fd-snippet-card h3 {
    font-size: 1.12rem !important;
    line-height: 1.26;
  }
}

/* Editorial rhythm v41: final mobile compaction without page overflow */
@media (max-width: 640px) {
  body.page-id-314 .pejoan-entry-content .fd-dental-actions .wp-block-button:nth-child(n+5),
  body.page-id-344 .pejoan-entry-content .fd-michigan-actions .wp-block-button:nth-child(n+5),
  body.page-id-347 .pejoan-entry-content .fd-apnea-actions .wp-block-button:nth-child(n+5),
  body.page-id-362 .pejoan-entry-content .fd-premium-actions .wp-block-button:nth-child(n+5) {
    display: none;
  }

  body.page-id-347 .pejoan-entry-content .fd-apnea-actions .wp-block-button:nth-child(n+4) {
    display: none;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-answer-grid.wp-block-columns,
  body.page-id-344 .pejoan-entry-content .fd-michigan-answer-grid.wp-block-columns,
  body.page-id-347 .pejoan-entry-content .fd-local-answer-grid,
  body.page-id-362 .pejoan-entry-content .fd-local-answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-answer-grid .wp-block-column,
  body.page-id-344 .pejoan-entry-content .fd-michigan-answer-grid .wp-block-column,
  body.page-id-347 .pejoan-entry-content .fd-local-answer-grid > div,
  body.page-id-362 .pejoan-entry-content .fd-local-answer-grid > div {
    min-width: 0;
    padding: 12px;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-answer-grid p,
  body.page-id-344 .pejoan-entry-content .fd-michigan-answer-grid p,
  body.page-id-347 .pejoan-entry-content .fd-local-answer-grid strong,
  body.page-id-347 .pejoan-entry-content .fd-local-answer-grid span,
  body.page-id-362 .pejoan-entry-content .fd-local-answer-grid strong,
  body.page-id-362 .pejoan-entry-content .fd-local-answer-grid span {
    font-size: .9rem;
    line-height: 1.32;
  }

  body.page-id-347 .pejoan-entry-content .fd-apnea-hero h1 {
    font-size: clamp(1.82rem, 7vw, 2.2rem);
  }

  body.page-id-347 .pejoan-entry-content .fd-apnea-hero p {
    font-size: .98rem;
    line-height: 1.55;
  }

  body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card p {
    display: none;
  }

  body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card .fd-diagram-canvas {
    min-height: 130px;
  }
}

/* Clinical hero illustrations v42 */
.fd-hero-illustration {
  display: block;
  width: 100%;
  margin: 0;
}

.fd-hero-illustration img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.fd-hero-illustration figcaption {
  margin: 0;
  padding: 12px 18px 16px;
  color: var(--fd-muted);
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .fd-hero-illustration img {
    max-height: 210px;
  }

  body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card .fd-hero-illustration img,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero__card .fd-hero-illustration img,
  body.page-id-360 .pejoan-entry-content .fd-premium-hero__card .fd-hero-illustration img {
    max-height: 190px;
  }
}

/* Editorial rhythm v40: home-like reading flow for indexed secondary pages */
body.page-id-314 .pejoan-entry-content .fd-dental-answer,
body.page-id-344 .pejoan-entry-content .fd-michigan-answer,
body.page-id-347 .pejoan-entry-content .fd-local-direct-answer,
body.page-id-362 .pejoan-entry-content .fd-local-direct-answer {
  width: min(920px, calc(100% - 48px));
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

body.page-id-344 .pejoan-entry-content .fd-local-michigan-snippet,
body.page-id-347 .pejoan-entry-content .fd-local-apnea-snippet {
  width: min(920px, calc(100% - 48px));
  max-width: 920px;
  margin-top: 34px;
  margin-bottom: 66px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--fd-line);
  border-bottom: 1px solid var(--fd-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-id-344 .pejoan-entry-content .fd-local-michigan-snippet .fd-local-snippet-label,
body.page-id-347 .pejoan-entry-content .fd-local-apnea-snippet .fd-local-snippet-label {
  margin-top: 18px;
}

body.page-id-344 .pejoan-entry-content .fd-local-michigan-snippet .fd-local-snippet-grid,
body.page-id-347 .pejoan-entry-content .fd-local-apnea-snippet .fd-local-snippet-grid {
  margin-bottom: 20px;
}

body.page-id-344 .pejoan-entry-content .fd-local-michigan-snippet .fd-local-snippet-card,
body.page-id-347 .pejoan-entry-content .fd-local-apnea-snippet .fd-local-snippet-card {
  padding: 0 18px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-id-362 .pejoan-entry-content .fd-local-atm-visual {
  display: none;
}

body.page-id-362 .pejoan-entry-content .fd-local-direct-answer + p {
  margin-top: 54px;
}

@media (max-width: 640px) {
  body.page-id-314 .pejoan-entry-content .fd-dental-answer,
  body.page-id-344 .pejoan-entry-content .fd-michigan-answer,
  body.page-id-347 .pejoan-entry-content .fd-local-direct-answer,
  body.page-id-362 .pejoan-entry-content .fd-local-direct-answer {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    padding: 20px;
  }

  body.page-id-344 .pejoan-entry-content .fd-local-michigan-snippet,
  body.page-id-347 .pejoan-entry-content .fd-local-apnea-snippet {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    margin-top: 30px;
    margin-bottom: 48px;
    padding: 0;
  }

  body.page-id-344 .pejoan-entry-content .fd-local-michigan-snippet .fd-local-snippet-grid,
  body.page-id-347 .pejoan-entry-content .fd-local-apnea-snippet .fd-local-snippet-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.page-id-347 .pejoan-entry-content .fd-local-answer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.page-id-347 .pejoan-entry-content .fd-local-answer-grid > div {
    padding: 12px;
  }

  body.page-id-347 .pejoan-entry-content .fd-local-answer-grid strong,
  body.page-id-347 .pejoan-entry-content .fd-local-answer-grid span {
    font-size: .9rem;
    line-height: 1.3;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-hero,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero,
  body.page-id-347 .pejoan-entry-content .fd-apnea-hero,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero {
    gap: 20px;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-hero-card img,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero-card img {
    max-height: 190px;
  }

  body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card .fd-diagram-canvas,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero__card .fd-diagram-canvas {
    min-height: 146px;
  }
}

/* Hero top alignment v38: remove WordPress template gap before first hero */
body.home main.pejoan-page-main,
body.home .pejoan-page-main,
body.page-id-314 main.pejoan-page-main,
body.page-id-314 .pejoan-page-main,
body.page-id-344 main.pejoan-page-main,
body.page-id-344 .pejoan-page-main,
body.page-id-347 main.pejoan-page-main,
body.page-id-347 .pejoan-page-main,
body.page-id-360 main.pejoan-page-main,
body.page-id-360 .pejoan-page-main,
body.page-id-362 main.pejoan-page-main,
body.page-id-362 .pejoan-page-main {
  padding-top: 0 !important;
}

body.home .pejoan-entry-content > .wp-block-html:first-child,
body.home .pejoan-entry-content > .wp-block-html:first-child .fd-hero-v2,
body.home .pejoan-entry-content > .wp-block-html:first-child section.fd-hero-v2,
body.page-id-314 .pejoan-entry-content .fd-dental-page,
body.page-id-344 .pejoan-entry-content .fd-michigan-page,
body.page-id-347 .pejoan-entry-content .fd-apnea-page,
body.page-id-360 .pejoan-entry-content .fd-premium-page,
body.page-id-362 .pejoan-entry-content .fd-atm-page,
body.page-id-314 .pejoan-entry-content .fd-dental-hero,
body.page-id-344 .pejoan-entry-content .fd-michigan-hero,
body.page-id-347 .pejoan-entry-content .fd-apnea-hero,
body.page-id-360 .pejoan-entry-content .fd-premium-hero,
body.page-id-362 .pejoan-entry-content .fd-premium-hero,
body.page-id-448 .pejoan-entry-content .fd-premium-hero {
  margin-top: 0 !important;
}

/* Indexed secondary alignment v39: same page grammar as home, without touching editable copy */
body.page-id-314 .pejoan-entry-content .fd-dental-page,
body.page-id-344 .pejoan-entry-content .fd-michigan-page,
body.page-id-347 .pejoan-entry-content .fd-apnea-page,
body.page-id-362 .pejoan-entry-content .fd-atm-page {
  display: flex;
  flex-direction: column;
}

body.page-id-314 .pejoan-entry-content .fd-dental-page > *,
body.page-id-344 .pejoan-entry-content .fd-michigan-page > *,
body.page-id-347 .pejoan-entry-content .fd-apnea-page > *,
body.page-id-362 .pejoan-entry-content .fd-atm-page > * {
  order: 40;
  min-width: 0;
  max-width: 100%;
}

body.page-id-314 .pejoan-entry-content .fd-dental-hero,
body.page-id-344 .pejoan-entry-content .fd-michigan-hero,
body.page-id-347 .pejoan-entry-content .fd-apnea-hero,
body.page-id-362 .pejoan-entry-content .fd-premium-hero {
  order: 10;
}

body.page-id-314 .pejoan-entry-content .fd-dental-answer,
body.page-id-344 .pejoan-entry-content .fd-michigan-answer,
body.page-id-347 .pejoan-entry-content .fd-local-direct-answer,
body.page-id-362 .pejoan-entry-content .fd-local-direct-answer {
  order: 20;
}

body.page-id-344 .pejoan-entry-content .fd-local-michigan-snippet,
body.page-id-347 .pejoan-entry-content .fd-local-apnea-snippet {
  order: 30;
}

body.page-id-314 .pejoan-entry-content .fd-dental-hero,
body.page-id-344 .pejoan-entry-content .fd-michigan-hero,
body.page-id-347 .pejoan-entry-content .fd-apnea-hero,
body.page-id-362 .pejoan-entry-content .fd-premium-hero {
  margin-bottom: 48px;
}

body.page-id-314 .pejoan-entry-content .fd-dental-answer,
body.page-id-344 .pejoan-entry-content .fd-michigan-answer,
body.page-id-347 .pejoan-entry-content .fd-local-direct-answer,
body.page-id-362 .pejoan-entry-content .fd-local-direct-answer {
  margin-top: 0;
}

body.page-id-362 .pejoan-entry-content .fd-premium-lead {
  max-width: 720px;
}

@media (max-width: 640px) {
  body.page-id-314 .pejoan-entry-content .fd-dental-hero,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero,
  body.page-id-347 .pejoan-entry-content .fd-apnea-hero,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero {
    margin-bottom: 36px;
    padding: 26px 20px;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-hero-card p,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero-card p,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero__card p {
    font-size: .92rem;
    line-height: 1.48;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-hero-image img,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero-image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}

/* Local mirror utility: keep the testing nav from creating false overflow */
.fd-local-nav {
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow-x: auto;
}

/* Home heading alignment v34 */
body.home .pejoan-entry-content .fd-snippet-inner h2 {
  font-size: var(--fd-type-h2);
}

@media (max-width: 640px) {
  body.home .pejoan-entry-content .fd-snippet-inner h2 {
    font-size: var(--fd-type-h2-mobile);
  }
}

/* Apnea hero v33: keep the hero visual, move explanation below */
body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card ul {
  display: none;
}

body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card p:not(:first-of-type) {
  display: none;
}

body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card {
  padding-bottom: 0;
}

body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card p:first-of-type {
  padding-bottom: 18px;
}

/* Final local typography lock v35 */
body.home .pejoan-entry-content h2,
body.home .pejoan-entry-content .fd-snippet-inner h2 {
  font-size: var(--fd-type-h2);
}

@media (max-width: 640px) {
  body.home .pejoan-entry-content h2,
  body.home .pejoan-entry-content .fd-snippet-inner h2 {
    font-size: var(--fd-type-h2-mobile);
  }
}

/* Landing art direction v32: compact above-the-fold and SEO modules */
body.home .pejoan-entry-content h2 {
  font-size: var(--fd-type-h2);
}

body.home .pejoan-entry-content .fd-direct-answer,
body.page-id-314 .pejoan-entry-content .fd-dental-answer,
body.page-id-344 .pejoan-entry-content .fd-michigan-answer,
body.page-id-347 .pejoan-entry-content .fd-apnea-answer,
body.page-id-360 .pejoan-entry-content .fd-premium-answer,
body.page-id-362 .pejoan-entry-content .fd-premium-answer,
.fd-local-direct-answer {
  padding: 24px 28px;
}

body.home .pejoan-entry-content .fd-direct-answer__grid,
body.page-id-314 .pejoan-entry-content .fd-dental-answer-grid,
body.page-id-344 .pejoan-entry-content .fd-michigan-answer-grid,
.fd-local-answer-grid {
  gap: 12px;
}

body.home .pejoan-entry-content .fd-direct-answer__grid div,
body.page-id-314 .pejoan-entry-content .fd-dental-answer-grid .wp-block-column,
body.page-id-344 .pejoan-entry-content .fd-michigan-answer-grid .wp-block-column,
.fd-local-answer-grid > div {
  padding: 16px;
}

body.page-id-314 .pejoan-entry-content .fd-dental-hero,
body.page-id-344 .pejoan-entry-content .fd-michigan-hero,
body.page-id-347 .pejoan-entry-content .fd-apnea-hero,
body.page-id-360 .pejoan-entry-content .fd-premium-hero,
body.page-id-362 .pejoan-entry-content .fd-premium-hero,
body.page-id-448 .pejoan-entry-content .fd-premium-hero {
  align-items: start;
}

body.page-id-314 .pejoan-entry-content .fd-dental-hero-card,
body.page-id-344 .pejoan-entry-content .fd-michigan-hero-card,
body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card,
body.page-id-360 .pejoan-entry-content .fd-premium-hero__card,
body.page-id-362 .pejoan-entry-content .fd-premium-hero__card,
body.page-id-448 .pejoan-entry-content .fd-premium-hero__card {
  align-self: start;
}

body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card p,
body.page-id-362 .pejoan-entry-content .fd-premium-hero__card p {
  padding-bottom: 14px;
}

.fd-local-direct-answer,
.fd-local-snippet {
  max-width: 920px;
  margin: 56px auto;
  padding: 24px 28px;
  border: 1px solid var(--fd-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--fd-card-shadow);
}

.fd-local-answer-label,
.fd-local-snippet-label {
  display: block;
  margin: 0 0 10px;
  color: var(--fd-teal);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.fd-local-direct-answer p,
.fd-local-snippet p {
  font-size: var(--fd-type-lead);
  line-height: 1.6;
}

.fd-local-answer-grid,
.fd-local-snippet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.fd-local-snippet-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fd-local-answer-grid > div,
.fd-local-snippet-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--fd-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(6, 47, 87, .05);
}

.fd-local-answer-grid strong,
.fd-local-answer-grid span {
  display: block;
}

.fd-local-snippet-card h3 {
  margin: 0 0 8px;
  color: var(--fd-ink);
  font-size: var(--fd-type-h3);
}

.fd-local-snippet-card p {
  margin: 0;
  font-size: .98rem;
  line-height: 1.58;
}

.fd-local-visual {
  max-width: 920px;
  margin: 42px auto;
  overflow: hidden;
  border: 1px solid var(--fd-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--fd-card-shadow);
}

.fd-local-visual .fd-clinical-diagram {
  margin: 0;
  border-bottom: 1px solid var(--fd-line);
}

.fd-local-visual figcaption {
  margin: 0;
  padding: 12px 18px 16px;
  color: var(--fd-muted);
  font-size: .92rem;
}

.fd-local-faq {
  max-width: 920px;
  margin: 64px auto;
  padding: 28px;
  border: 1px solid var(--fd-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--fd-card-shadow);
}

.fd-local-faq h2 {
  margin-top: 0;
}

@media (max-width: 960px) {
  .fd-local-answer-grid,
  .fd-local-snippet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.home .pejoan-entry-content h2 {
    font-size: var(--fd-type-h2-mobile);
  }

  body.home .pejoan-entry-content .fd-direct-answer,
  body.page-id-314 .pejoan-entry-content .fd-dental-answer,
  body.page-id-344 .pejoan-entry-content .fd-michigan-answer,
  body.page-id-347 .pejoan-entry-content .fd-apnea-answer,
  body.page-id-360 .pejoan-entry-content .fd-premium-answer,
  body.page-id-362 .pejoan-entry-content .fd-premium-answer,
  .fd-local-direct-answer,
  .fd-local-snippet,
  .fd-local-faq {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    margin: 40px auto;
    padding: 20px;
    box-sizing: border-box;
  }

  .fd-local-answer-grid,
  .fd-local-snippet-grid {
    grid-template-columns: 1fr;
  }
}
/* Ferulas production system refinements */
body.home .pejoan-entry-content .wp-block-html:has(.fd-hero-v2),
body.home .pejoan-entry-content .wp-block-html:has(.fd-snippet-hub-clean),
body.page-id-347 .pejoan-entry-content .wp-block-html:has(.fd-clinical-diagram),
body.page-id-360 .pejoan-entry-content .wp-block-html:has(.fd-clinical-diagram),
body.page-id-362 .pejoan-entry-content .wp-block-html:has(.fd-clinical-diagram) {
  max-width: none;
  width: 100%;
}

body.home .pejoan-entry-content .fd-hero-v2 {
  width: min(100vw, 1440px);
  max-width: none;
}

body.home .pejoan-entry-content .fd-hero-v2__content {
  min-width: 0;
}

body.home .pejoan-entry-content .fd-hero-v2 h1 {
  max-width: 820px;
}

.fd-clinical-diagram {
  display: block;
}

.fd-diagram-canvas {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 30%, rgba(53,185,149,.18), transparent 28%),
    linear-gradient(135deg, #fff, #F4F8FB);
}

.fd-diagram-canvas::before,
.fd-diagram-canvas::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.fd-diagram-title {
  position: absolute;
  left: 18px;
  top: 16px;
  color: var(--fd-ink);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fd-diagram-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: var(--fd-muted);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
}

.fd-diagram-airway .fd-diagram-canvas::before {
  right: 42px;
  top: 40px;
  width: 92px;
  height: 118px;
  border: 16px solid #D9E3EC;
  border-left-color: transparent;
  transform: rotate(-8deg);
}

.fd-diagram-airway .fd-diagram-canvas::after {
  left: 42px;
  top: 102px;
  width: 176px;
  height: 52px;
  border-top: 12px solid var(--fd-ink);
  border-bottom: 9px solid var(--fd-blue);
  transform: rotate(4deg);
}

.fd-diagram-airway .fd-diagram-accent {
  position: absolute;
  left: 112px;
  top: 132px;
  width: 92px;
  height: 8px;
  border-radius: 999px;
  background: var(--fd-teal);
}

.fd-diagram-atm .fd-diagram-canvas::before {
  left: 44px;
  top: 82px;
  width: 178px;
  height: 62px;
  border-top: 13px solid var(--fd-ink);
  border-bottom: 13px solid var(--fd-ink);
  transform: rotate(2deg);
}

.fd-diagram-atm .fd-diagram-canvas::after {
  right: 58px;
  top: 56px;
  width: 52px;
  height: 52px;
  border: 8px solid var(--fd-blue);
  background: var(--fd-soft-blue);
}

.fd-diagram-atm .fd-diagram-accent {
  position: absolute;
  left: 78px;
  top: 112px;
  width: 138px;
  height: 8px;
  border-radius: 999px;
  background: var(--fd-teal);
}

.fd-diagram-soft .fd-diagram-canvas::before {
  left: 40px;
  top: 82px;
  width: 122px;
  height: 58px;
  border-top: 16px solid var(--fd-teal);
  border-bottom: 16px solid var(--fd-teal);
}

.fd-diagram-soft .fd-diagram-canvas::after {
  right: 40px;
  top: 88px;
  width: 112px;
  height: 48px;
  border-top: 12px solid var(--fd-ink);
  border-bottom: 12px solid var(--fd-ink);
}

.fd-diagram-soft .fd-diagram-accent {
  position: absolute;
  left: 171px;
  top: 100px;
  width: 18px;
  height: 42px;
  border-left: 2px solid var(--fd-line);
}

@media (max-width: 640px) {
  body.home .pejoan-entry-content .fd-hero-v2 {
    width: 100vw;
  }
  body.home .pejoan-entry-content .fd-hero-v2__inner {
    grid-template-columns: 1fr;
  }
  .fd-diagram-canvas {
    min-height: 156px;
  }
}
/* Ferulas production system layout containment */
body.page-id-314 .pejoan-entry-content .fd-dental-page,
body.page-id-344 .pejoan-entry-content .fd-michigan-page,
body.page-id-347 .pejoan-entry-content .fd-apnea-page,
body.page-id-360 .pejoan-entry-content .fd-premium-page,
body.page-id-362 .pejoan-entry-content .fd-premium-page,
body.page-id-448 .pejoan-entry-content .fd-premium-page {
  width: min(1180px, calc(100vw - 60px));
  max-width: min(1180px, calc(100vw - 60px));
  box-sizing: border-box;
}

body.page-id-314 .pejoan-entry-content .fd-dental-hero,
body.page-id-344 .pejoan-entry-content .fd-michigan-hero,
body.page-id-347 .pejoan-entry-content .fd-apnea-hero,
body.page-id-360 .pejoan-entry-content .fd-premium-hero,
body.page-id-362 .pejoan-entry-content .fd-premium-hero,
body.page-id-448 .pejoan-entry-content .fd-premium-hero {
  width: 100%;
  max-width: 100%;
}

body.home .pejoan-entry-content .fd-hero-v2__visual {
  width: min(100%, 360px);
  justify-self: end;
}

body.home .pejoan-entry-content .fd-hero-v2__inner {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .7fr);
}

.fd-diagram-note {
  display: none;
}

.fd-diagram-title {
  max-width: calc(100% - 36px);
}

@media (max-width: 960px) {
  body.page-id-314 .pejoan-entry-content .fd-dental-page,
  body.page-id-344 .pejoan-entry-content .fd-michigan-page,
  body.page-id-347 .pejoan-entry-content .fd-apnea-page,
  body.page-id-360 .pejoan-entry-content .fd-premium-page,
  body.page-id-362 .pejoan-entry-content .fd-premium-page {
    width: min(100%, calc(100vw - 40px));
    max-width: min(100%, calc(100vw - 40px));
  }
}

@media (max-width: 640px) {
  body.page-id-314 .pejoan-entry-content .fd-dental-page,
  body.page-id-344 .pejoan-entry-content .fd-michigan-page,
  body.page-id-347 .pejoan-entry-content .fd-apnea-page,
  body.page-id-360 .pejoan-entry-content .fd-premium-page,
  body.page-id-362 .pejoan-entry-content .fd-premium-page {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    padding-left: 0;
    padding-right: 0;
  }
}
/* Ferulas production system polish */
body.home .pejoan-entry-content .fd-hero-v2__inner {
  max-width: 1120px;
  grid-template-columns: minmax(0, 760px) 300px;
  justify-content: center;
  gap: 56px;
}

body.home .pejoan-entry-content .fd-hero-v2__visual {
  width: 300px;
  justify-self: start;
}

body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card ul {
  margin: 0 22px 22px;
  padding: 14px 18px 14px 32px;
}

body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card li {
  margin: 0 0 10px;
  color: var(--fd-text);
  font-size: .96rem;
  line-height: 1.5;
}

body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card li:last-child {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  body.home .pejoan-entry-content .fd-hero-v2__inner {
    grid-template-columns: 1fr;
  }
  body.home .pejoan-entry-content .fd-hero-v2__visual {
    width: min(100%, 360px);
    justify-self: start;
  }
}
/* Ferulas production system home overflow fix */
body.home .pejoan-entry-content .fd-hero-v2 {
  width: min(1440px, calc(100vw - 48px));
  box-sizing: border-box;
}

body.home .pejoan-entry-content .fd-hero-v2 * {
  box-sizing: border-box;
}

@media (max-width: 640px) {
  body.home .pejoan-entry-content .fd-hero-v2 {
    width: 100vw;
  }
}
/* Home system v26: deterministic art direction pass */
body.home .pejoan-entry-content p,
body.home .pejoan-entry-content li {
  font-size: 1.05rem;
  line-height: 1.76;
}

body.home .pejoan-entry-content h2 {
  margin-top: 80px;
  margin-bottom: 20px;
  font-size: clamp(1.9rem, 2.6vw, 2.7rem);
  line-height: 1.13;
}

body.home .pejoan-entry-content h3,
body.home .pejoan-entry-content h3.wp-block-heading {
  font-size: clamp(1.28rem, 1.55vw, 1.45rem);
}

body.home .pejoan-entry-content .fd-hero-v2 {
  min-height: clamp(520px, 52vh, 640px);
  margin: 0 auto 34px;
  padding: clamp(46px, 5vw, 64px) clamp(24px, calc((100vw - 1180px) / 2), 130px);
}

body.home .pejoan-entry-content .fd-hero-v2__inner {
  max-width: 1180px;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 420px);
  justify-content: center;
  gap: clamp(36px, 5vw, 64px);
}

body.home .pejoan-entry-content .fd-hero-v2 h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 4.4vw, 4.6rem);
  line-height: 1.05;
}

body.home .pejoan-entry-content .fd-hero-v2 p {
  max-width: 720px;
  font-size: clamp(1.12rem, 1.35vw, 1.22rem);
  line-height: 1.6;
}

body.home .pejoan-entry-content .fd-hero-v2__visual {
  width: 100%;
  max-width: 420px;
  justify-self: start;
}

body.home .pejoan-entry-content .fd-hero-v2__actions {
  gap: 10px;
  margin-top: 24px;
}

body.home .pejoan-entry-content .fd-hero-v2__actions a {
  min-height: 40px;
  padding: 9px 15px;
  font-size: .9rem;
}

body.home .pejoan-entry-content .fd-direct-answer {
  max-width: 920px;
  margin: 56px auto;
  padding: 28px 32px;
}

body.home .pejoan-entry-content .fd-direct-answer p {
  font-size: clamp(1.08rem, 1.25vw, 1.18rem);
  line-height: 1.64;
}

body.home .pejoan-entry-content .fd-direct-answer__grid div,
body.home .pejoan-entry-content .fd-snippet-card {
  padding: 20px;
}

body.home .pejoan-entry-content .fd-snippet-hub-clean {
  width: min(1080px, calc(100vw - 48px));
  max-width: min(1080px, calc(100vw - 48px));
  margin: 72px auto;
  padding: 32px;
  box-sizing: border-box;
}

body.home .pejoan-entry-content .fd-snippet-inner h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.7rem);
}

body.home .pejoan-entry-content .fd-snippet-card p {
  font-size: 1.02rem;
  line-height: 1.7;
}

body.home .pejoan-entry-content .fd-note-box {
  max-width: 860px;
  margin: 34px auto;
  padding: 20px 24px;
  border-left: 5px solid var(--fd-blue);
  border-radius: 0 10px 10px 0;
  background: var(--fd-soft-blue);
  color: var(--fd-ink);
  box-sizing: border-box;
}

body.home .pejoan-entry-content .fd-note-box--warning {
  border-left-color: #B42318;
  background: #FFF4F2;
}

body.home .pejoan-entry-content .fd-note-box strong {
  color: var(--fd-ink);
}

@media (max-width: 960px) {
  body.home .pejoan-entry-content .fd-hero-v2__inner {
    grid-template-columns: 1fr;
  }

  body.home .pejoan-entry-content .fd-hero-v2__visual {
    width: min(100%, 420px);
  }
}

@media (max-width: 640px) {
  body.home .pejoan-entry-content p,
  body.home .pejoan-entry-content li {
    font-size: 1.01rem;
    line-height: 1.72;
  }

  body.home .pejoan-entry-content h2 {
    margin-top: 56px;
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  body.home .pejoan-entry-content .fd-hero-v2 {
    width: 100vw;
    min-height: 0;
    padding: 42px 24px 46px;
  }

  body.home .pejoan-entry-content .fd-hero-v2 h1 {
    font-size: clamp(2rem, 8vw, 2.55rem);
    line-height: 1.08;
  }

  body.home .pejoan-entry-content .fd-hero-v2 p {
    font-size: 1.06rem;
  }

  body.home .pejoan-entry-content .fd-hero-v2__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home .pejoan-entry-content .fd-hero-v2__actions a {
    width: 100%;
    min-height: 38px;
    padding: 9px 10px;
    font-size: .86rem;
  }

  body.home .pejoan-entry-content .fd-direct-answer,
  body.home .pejoan-entry-content .fd-snippet-hub-clean {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    margin: 44px auto;
    padding: 22px;
  }

  body.home .pejoan-entry-content .fd-note-box {
    width: calc(100vw - 40px);
    margin: 28px auto;
    padding: 18px 20px;
  }
}
/* Home mobile v27: compact hero navigation */
@media (max-width: 640px) {
  body.home .pejoan-entry-content .fd-hero-v2 {
    padding-top: 36px;
    padding-bottom: 40px;
  }

  body.home .pejoan-entry-content .fd-hero-v2__inner {
    gap: 24px;
  }

  body.home .pejoan-entry-content .fd-hero-v2__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  body.home .pejoan-entry-content .fd-hero-v2__actions::-webkit-scrollbar {
    display: none;
  }

  body.home .pejoan-entry-content .fd-hero-v2__actions a {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }

  body.home .pejoan-entry-content .fd-hero-v2__visual {
    width: min(100%, 310px);
  }
}
/* Home snippet v28: full-width parent containment */
body.home .pejoan-entry-content > .wp-block-group:has(.fd-snippet-hub-clean) {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* Indexed pages v29: unified secondary page scale */
body.page-id-314 .pejoan-entry-content h2,
body.page-id-344 .pejoan-entry-content h2,
body.page-id-347 .pejoan-entry-content h2,
body.page-id-360 .pejoan-entry-content h2,
body.page-id-362 .pejoan-entry-content h2,
body.page-id-426 .pejoan-entry-content h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.7rem);
  line-height: 1.13;
}

body.page-id-314 .pejoan-entry-content p,
body.page-id-314 .pejoan-entry-content li,
body.page-id-344 .pejoan-entry-content p,
body.page-id-344 .pejoan-entry-content li,
body.page-id-347 .pejoan-entry-content p,
body.page-id-347 .pejoan-entry-content li,
body.page-id-360 .pejoan-entry-content p,
body.page-id-360 .pejoan-entry-content li,
body.page-id-362 .pejoan-entry-content p,
body.page-id-362 .pejoan-entry-content li {
  font-size: 1.04rem;
  line-height: 1.74;
}

/* Style guide v30: same art direction, not an exception */
body.page-id-426 .pejoan-entry-content {
  max-width: none;
}

body.page-id-426 .pejoan-entry-content p,
body.page-id-426 .pejoan-entry-content li {
  font-size: 1.04rem;
  line-height: 1.74;
}

body.page-id-426 .pejoan-entry-content .fd-hero-v2 {
  width: min(1440px, calc(100vw - 48px));
  max-width: none;
  min-height: clamp(520px, 52vh, 640px);
  margin: 0 auto 34px;
  padding: clamp(46px, 5vw, 64px) max(24px, calc((100vw - 1180px) / 2));
  box-sizing: border-box;
}

body.page-id-426 .pejoan-entry-content .fd-hero-v2__inner {
  max-width: 1180px;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 420px);
  gap: clamp(36px, 5vw, 64px);
}

body.page-id-426 .pejoan-entry-content .fd-hero-v2 h1 {
  font-size: clamp(3rem, 4.4vw, 4.6rem);
  line-height: 1.05;
}

body.page-id-426 .pejoan-entry-content .fd-hero-v2 p {
  font-size: clamp(1.12rem, 1.35vw, 1.22rem);
}

body.page-id-426 .pejoan-entry-content .fd-hero-v2__visual {
  width: 100%;
  max-width: 420px;
}

@media (max-width: 960px) {
  body.page-id-426 .pejoan-entry-content .fd-hero-v2__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.page-id-426 .pejoan-entry-content h2 {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  body.page-id-426 .pejoan-entry-content .fd-hero-v2 {
    width: 100vw;
    padding: 36px 24px 40px;
  }

  body.page-id-426 .pejoan-entry-content .fd-hero-v2 h1 {
    font-size: clamp(2rem, 8vw, 2.55rem);
  }

  body.page-id-426 .pejoan-entry-content .fd-hero-v2__visual {
    width: min(100%, 310px);
  }
}

body.page-id-314 .pejoan-entry-content .fd-dental-hero,
body.page-id-344 .pejoan-entry-content .fd-michigan-hero,
body.page-id-347 .pejoan-entry-content .fd-apnea-hero,
body.page-id-360 .pejoan-entry-content .fd-premium-hero,
body.page-id-362 .pejoan-entry-content .fd-premium-hero,
body.page-id-448 .pejoan-entry-content .fd-premium-hero {
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 420px);
  gap: clamp(34px, 4.5vw, 58px);
  margin-bottom: 60px;
  padding: clamp(42px, 4.8vw, 58px);
}

body.page-id-314 .pejoan-entry-content .fd-dental-hero h1,
body.page-id-344 .pejoan-entry-content .fd-michigan-hero h1,
body.page-id-347 .pejoan-entry-content .fd-apnea-hero h1,
body.page-id-360 .pejoan-entry-content .fd-premium-hero h1,
body.page-id-362 .pejoan-entry-content .fd-premium-hero h1,
body.page-id-448 .pejoan-entry-content .fd-premium-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 4.4vw, 4.6rem);
  line-height: 1.05;
}

body.page-id-314 .pejoan-entry-content .fd-dental-hero p,
body.page-id-344 .pejoan-entry-content .fd-michigan-hero p,
body.page-id-347 .pejoan-entry-content .fd-apnea-hero p,
body.page-id-360 .pejoan-entry-content .fd-premium-hero p,
body.page-id-362 .pejoan-entry-content .fd-premium-hero p,
body.page-id-448 .pejoan-entry-content .fd-premium-hero p {
  font-size: clamp(1.08rem, 1.25vw, 1.18rem);
  line-height: 1.6;
}

body.page-id-314 .pejoan-entry-content .fd-dental-hero-card,
body.page-id-344 .pejoan-entry-content .fd-michigan-hero-card,
body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card,
body.page-id-360 .pejoan-entry-content .fd-premium-hero__card,
body.page-id-362 .pejoan-entry-content .fd-premium-hero__card,
body.page-id-448 .pejoan-entry-content .fd-premium-hero__card {
  max-width: 420px;
  justify-self: start;
}

body.page-id-314 .pejoan-entry-content .fd-dental-hero-card p,
body.page-id-344 .pejoan-entry-content .fd-michigan-hero-card p,
body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card p,
body.page-id-360 .pejoan-entry-content .fd-premium-hero__card p,
body.page-id-362 .pejoan-entry-content .fd-premium-hero__card p,
body.page-id-448 .pejoan-entry-content .fd-premium-hero__card p {
  padding-right: 20px;
  padding-left: 20px;
  font-size: .96rem;
  line-height: 1.55;
}

body.page-id-314 .pejoan-entry-content .fd-dental-actions,
body.page-id-344 .pejoan-entry-content .fd-michigan-actions,
body.page-id-347 .pejoan-entry-content .fd-apnea-actions,
body.page-id-360 .pejoan-entry-content .fd-premium-actions,
body.page-id-362 .pejoan-entry-content .fd-premium-actions {
  gap: 10px;
  margin-top: 22px;
}

body.page-id-314 .pejoan-entry-content .fd-dental-actions .wp-block-button__link,
body.page-id-344 .pejoan-entry-content .fd-michigan-actions .wp-block-button__link,
body.page-id-347 .pejoan-entry-content .fd-apnea-actions .wp-block-button__link,
body.page-id-360 .pejoan-entry-content .fd-premium-actions .wp-block-button__link,
body.page-id-362 .pejoan-entry-content .fd-premium-actions .wp-block-button__link {
  min-height: 40px;
  padding: 9px 15px;
  font-size: .9rem;
}

@media (max-width: 960px) {
  body.page-id-314 .pejoan-entry-content .fd-dental-hero,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero,
  body.page-id-347 .pejoan-entry-content .fd-apnea-hero,
  body.page-id-360 .pejoan-entry-content .fd-premium-hero,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero {
    grid-template-columns: 1fr;
    padding: 38px 30px;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-hero h1,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero h1,
  body.page-id-347 .pejoan-entry-content .fd-apnea-hero h1,
  body.page-id-360 .pejoan-entry-content .fd-premium-hero h1,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero h1 {
    font-size: clamp(2.45rem, 5vw, 3.4rem);
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-hero {
    gap: 24px;
    padding: 30px 26px;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-hero-card {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  body.page-id-314 .pejoan-entry-content p,
  body.page-id-314 .pejoan-entry-content li,
  body.page-id-344 .pejoan-entry-content p,
  body.page-id-344 .pejoan-entry-content li,
  body.page-id-347 .pejoan-entry-content p,
  body.page-id-347 .pejoan-entry-content li,
  body.page-id-360 .pejoan-entry-content p,
  body.page-id-360 .pejoan-entry-content li,
  body.page-id-362 .pejoan-entry-content p,
  body.page-id-362 .pejoan-entry-content li {
    font-size: 1.01rem;
    line-height: 1.72;
  }

  body.page-id-314 .pejoan-entry-content h2,
  body.page-id-344 .pejoan-entry-content h2,
  body.page-id-347 .pejoan-entry-content h2,
  body.page-id-360 .pejoan-entry-content h2,
  body.page-id-362 .pejoan-entry-content h2 {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-hero,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero,
  body.page-id-347 .pejoan-entry-content .fd-apnea-hero,
  body.page-id-360 .pejoan-entry-content .fd-premium-hero,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero {
    padding: 30px 20px;
    gap: 24px;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-hero h1,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero h1,
  body.page-id-347 .pejoan-entry-content .fd-apnea-hero h1,
  body.page-id-360 .pejoan-entry-content .fd-premium-hero h1,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero h1 {
    font-size: clamp(2rem, 8vw, 2.55rem);
    line-height: 1.08;
  }

  body.page-id-347 .pejoan-entry-content .fd-apnea-hero h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.35rem);
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-actions,
  body.page-id-344 .pejoan-entry-content .fd-michigan-actions,
  body.page-id-347 .pejoan-entry-content .fd-apnea-actions,
  body.page-id-360 .pejoan-entry-content .fd-premium-actions,
  body.page-id-362 .pejoan-entry-content .fd-premium-actions {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    scrollbar-width: none;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-actions::-webkit-scrollbar,
  body.page-id-344 .pejoan-entry-content .fd-michigan-actions::-webkit-scrollbar,
  body.page-id-347 .pejoan-entry-content .fd-apnea-actions::-webkit-scrollbar,
  body.page-id-360 .pejoan-entry-content .fd-premium-actions::-webkit-scrollbar,
  body.page-id-362 .pejoan-entry-content .fd-premium-actions::-webkit-scrollbar {
    display: none;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-actions .wp-block-button,
  body.page-id-344 .pejoan-entry-content .fd-michigan-actions .wp-block-button,
  body.page-id-347 .pejoan-entry-content .fd-apnea-actions .wp-block-button,
  body.page-id-360 .pejoan-entry-content .fd-premium-actions .wp-block-button,
  body.page-id-362 .pejoan-entry-content .fd-premium-actions .wp-block-button {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-actions .wp-block-button__link,
  body.page-id-344 .pejoan-entry-content .fd-michigan-actions .wp-block-button__link,
  body.page-id-347 .pejoan-entry-content .fd-apnea-actions .wp-block-button__link,
  body.page-id-360 .pejoan-entry-content .fd-premium-actions .wp-block-button__link,
  body.page-id-362 .pejoan-entry-content .fd-premium-actions .wp-block-button__link {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-hero-card p:not(:first-of-type),
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero-card p:not(:first-of-type),
  body.page-id-362 .pejoan-entry-content .fd-premium-hero__card p:not(:first-of-type) {
    display: none;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-hero-card p:first-of-type,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero-card p:first-of-type,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero__card p:first-of-type {
    margin-bottom: 0;
    padding-bottom: 14px;
  }
}

/* Typography and tables v31: deterministic editorial scale */
:root {
  --fd-type-body: 1.01rem;
  --fd-type-body-mobile: .99rem;
  --fd-type-lead: clamp(1.08rem, 1.2vw, 1.18rem);
  --fd-type-h1: clamp(2.75rem, 4vw, 4.25rem);
  --fd-type-h1-mobile: clamp(1.95rem, 7.6vw, 2.42rem);
  --fd-type-h2: clamp(1.72rem, 2.35vw, 2.42rem);
  --fd-type-h2-mobile: clamp(1.42rem, 5.4vw, 1.86rem);
  --fd-type-h3: clamp(1.16rem, 1.35vw, 1.34rem);
  --fd-table-font: .96rem;
  --fd-table-font-mobile: .91rem;
}

.pejoan-entry-content p,
.pejoan-entry-content li,
body.home .pejoan-entry-content p,
body.home .pejoan-entry-content li,
body.page-id-314 .pejoan-entry-content p,
body.page-id-314 .pejoan-entry-content li,
body.page-id-344 .pejoan-entry-content p,
body.page-id-344 .pejoan-entry-content li,
body.page-id-347 .pejoan-entry-content p,
body.page-id-347 .pejoan-entry-content li,
body.page-id-360 .pejoan-entry-content p,
body.page-id-360 .pejoan-entry-content li,
body.page-id-362 .pejoan-entry-content p,
body.page-id-362 .pejoan-entry-content li,
body.page-id-426 .pejoan-entry-content p,
body.page-id-426 .pejoan-entry-content li {
  font-size: var(--fd-type-body);
  line-height: 1.72;
}

.has-lead-font-size,
.pejoan-entry-content .fd-premium-lead,
.pejoan-entry-content .fd-apnea-lead,
.fd-dental-hero-copy p:not(.fd-dental-eyebrow),
.fd-michigan-hero-copy p:not(.fd-michigan-eyebrow),
.fd-direct-answer p,
.fd-dental-answer p,
.fd-michigan-answer p,
.fd-premium-answer p {
  font-size: var(--fd-type-lead);
  line-height: 1.6;
}

body.home .pejoan-entry-content .fd-hero-v2 h1,
body.page-id-426 .pejoan-entry-content .fd-hero-v2 h1,
body.page-id-314 .pejoan-entry-content .fd-dental-hero h1,
body.page-id-344 .pejoan-entry-content .fd-michigan-hero h1,
body.page-id-347 .pejoan-entry-content .fd-apnea-hero h1,
body.page-id-360 .pejoan-entry-content .fd-premium-hero h1,
body.page-id-362 .pejoan-entry-content .fd-premium-hero h1,
body.page-id-448 .pejoan-entry-content .fd-premium-hero h1 {
  font-size: var(--fd-type-h1);
  line-height: 1.06;
}

.pejoan-entry-content h2,
body.home .pejoan-entry-content h2,
body.page-id-314 .pejoan-entry-content h2,
body.page-id-344 .pejoan-entry-content h2,
body.page-id-347 .pejoan-entry-content h2,
body.page-id-360 .pejoan-entry-content h2,
body.page-id-362 .pejoan-entry-content h2,
body.page-id-426 .pejoan-entry-content h2,
.fd-snippet-inner h2 {
  font-size: var(--fd-type-h2);
  line-height: 1.14;
}

.pejoan-entry-content h3,
.pejoan-entry-content h3.wp-block-heading,
.fd-snippet-card h3,
.fd-premium-card-grid h3 {
  font-size: var(--fd-type-h3);
  line-height: 1.24;
}

/* Table policy:
   - one premium table style for every page
   - no raw WordPress table look
   - internal horizontal scroll on narrow screens
   - compact clinical typography, not article-sized paragraphs
   - no page-level overflow */
.wp-block-table,
.fd-premium-table,
.fd-apnea-table {
  width: min(1040px, 100%, calc(100vw - 48px));
  max-width: min(1040px, 100%, calc(100vw - 48px));
  margin: 40px auto;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--fd-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(6, 47, 87, .07);
  -webkit-overflow-scrolling: touch;
}

.pejoan-header,
.pejoan-header .wp-block-group,
.pejoan-header .wp-block-navigation,
.pejoan-header .wp-block-navigation__container {
  max-width: 100%;
  box-sizing: border-box;
}

.pejoan-header .wp-block-navigation__container {
  flex-wrap: wrap;
}

.wp-block-table table,
.fd-premium-table table,
.fd-apnea-table table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  table-layout: fixed;
}

.wp-block-table th,
.wp-block-table td,
.fd-premium-table th,
.fd-premium-table td,
.fd-apnea-table th,
.fd-apnea-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--fd-line);
  color: var(--fd-text);
  font-size: var(--fd-table-font);
  line-height: 1.48;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.wp-block-table th,
.fd-premium-table th,
.fd-apnea-table th {
  background: var(--fd-soft-blue);
  color: var(--fd-ink);
  font-size: .88rem;
  font-weight: 850;
  line-height: 1.3;
}

.wp-block-table td strong,
.fd-premium-table td strong,
.fd-apnea-table td strong {
  color: var(--fd-ink);
  font-weight: 850;
}

.wp-block-table tr:last-child td,
.fd-premium-table tr:last-child td,
.fd-apnea-table tr:last-child td {
  border-bottom: 0;
}

/* Component typography hierarchy lock */
body.page-id-314 .pejoan-entry-content details,
body.page-id-344 .pejoan-entry-content details,
body.page-id-347 .pejoan-entry-content details,
body.page-id-360 .pejoan-entry-content details,
body.page-id-362 .pejoan-entry-content details {
  padding: 16px 0;
}

body.page-id-314 .pejoan-entry-content details summary,
body.page-id-344 .pejoan-entry-content details summary,
body.page-id-347 .pejoan-entry-content details summary,
body.page-id-360 .pejoan-entry-content details summary,
body.page-id-362 .pejoan-entry-content details summary {
  color: var(--fd-ink);
  font-size: clamp(1rem, 1.05vw, 1.08rem);
  font-weight: 760;
  line-height: 1.35;
}

body.page-id-314 .pejoan-entry-content .fd-dental-mini-grid h3,
body.page-id-314 .pejoan-entry-content .fd-dental-type-grid h3,
body.page-id-344 .pejoan-entry-content .fd-michigan-mini-grid h3,
body.page-id-347 .pejoan-entry-content .fd-apnea-card-grid h3,
body.page-id-360 .pejoan-entry-content .fd-premium-card-grid h3,
body.page-id-362 .pejoan-entry-content .fd-premium-card-grid h3,
body.page-id-448 .pejoan-entry-content .fd-premium-card-grid h3 {
  font-weight: 800;
}

@media (max-width: 640px) {
  .pejoan-entry-content p,
  .pejoan-entry-content li,
  body.home .pejoan-entry-content p,
  body.home .pejoan-entry-content li,
  body.page-id-314 .pejoan-entry-content p,
  body.page-id-314 .pejoan-entry-content li,
  body.page-id-344 .pejoan-entry-content p,
  body.page-id-344 .pejoan-entry-content li,
  body.page-id-347 .pejoan-entry-content p,
  body.page-id-347 .pejoan-entry-content li,
  body.page-id-360 .pejoan-entry-content p,
  body.page-id-360 .pejoan-entry-content li,
  body.page-id-362 .pejoan-entry-content p,
  body.page-id-362 .pejoan-entry-content li,
  body.page-id-426 .pejoan-entry-content p,
  body.page-id-426 .pejoan-entry-content li {
    font-size: var(--fd-type-body-mobile);
    line-height: 1.68;
  }

  body.home .pejoan-entry-content .fd-hero-v2 h1,
  body.page-id-426 .pejoan-entry-content .fd-hero-v2 h1,
  body.page-id-314 .pejoan-entry-content .fd-dental-hero h1,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero h1,
  body.page-id-347 .pejoan-entry-content .fd-apnea-hero h1,
  body.page-id-360 .pejoan-entry-content .fd-premium-hero h1,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero h1 {
    font-size: var(--fd-type-h1-mobile);
    line-height: 1.08;
  }

  .pejoan-entry-content h2,
  body.home .pejoan-entry-content h2,
  body.page-id-314 .pejoan-entry-content h2,
  body.page-id-344 .pejoan-entry-content h2,
  body.page-id-347 .pejoan-entry-content h2,
  body.page-id-360 .pejoan-entry-content h2,
  body.page-id-362 .pejoan-entry-content h2,
  body.page-id-426 .pejoan-entry-content h2,
  .fd-snippet-inner h2 {
    font-size: var(--fd-type-h2-mobile);
  }

  .wp-block-table,
  .fd-premium-table,
  .fd-apnea-table {
    width: min(100%, calc(100vw - 40px));
    max-width: min(100%, calc(100vw - 40px));
    margin: 32px auto;
    border-radius: 9px;
  }

  .wp-block-table table,
  .fd-premium-table table,
  .fd-apnea-table table {
    min-width: 620px;
  }

  .wp-block-table th,
  .wp-block-table td,
  .fd-premium-table th,
  .fd-premium-table td,
  .fd-apnea-table th,
  .fd-apnea-table td {
    padding: 12px 13px;
    font-size: var(--fd-table-font-mobile);
    line-height: 1.42;
  }

  .wp-block-table th,
  .fd-premium-table th,
  .fd-apnea-table th {
    font-size: .84rem;
  }

  body.page-id-314 .pejoan-entry-content details,
  body.page-id-344 .pejoan-entry-content details,
  body.page-id-347 .pejoan-entry-content details,
  body.page-id-360 .pejoan-entry-content details,
  body.page-id-362 .pejoan-entry-content details {
    padding: 14px 0;
  }

  body.page-id-314 .pejoan-entry-content details summary,
  body.page-id-344 .pejoan-entry-content details summary,
  body.page-id-347 .pejoan-entry-content details summary,
  body.page-id-360 .pejoan-entry-content details summary,
  body.page-id-362 .pejoan-entry-content details summary {
    font-size: .98rem;
    line-height: 1.36;
  }
}

/* Clinical hero illustrations final lock v44 */
body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card .fd-hero-illustration img,
body.page-id-360 .pejoan-entry-content .fd-premium-hero__card .fd-hero-illustration img,
body.page-id-362 .pejoan-entry-content .fd-premium-hero__card .fd-hero-illustration img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 960px) {
  body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card .fd-hero-illustration img,
  body.page-id-360 .pejoan-entry-content .fd-premium-hero__card .fd-hero-illustration img,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero__card .fd-hero-illustration img {
    max-height: 250px;
    object-fit: cover;
  }
}

@media (max-width: 640px) {
  body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card .fd-hero-illustration img,
  body.page-id-360 .pejoan-entry-content .fd-premium-hero__card .fd-hero-illustration img,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero__card .fd-hero-illustration img {
    height: 142px;
    max-height: 142px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card .fd-hero-illustration figcaption,
  body.page-id-360 .pejoan-entry-content .fd-premium-hero__card .fd-hero-illustration figcaption,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero__card .fd-hero-illustration figcaption {
    padding: 8px 12px 10px;
    font-size: .76rem;
    line-height: 1.28;
  }

  body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card p,
  body.page-id-360 .pejoan-entry-content .fd-premium-hero__card p,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero__card p {
    display: none;
  }

  body.page-id-347 .pejoan-entry-content .fd-apnea-hero {
    gap: 18px;
    padding: 24px 18px;
  }

  body.page-id-347 .pejoan-entry-content .fd-apnea-hero h1 {
    font-size: clamp(1.86rem, 7.2vw, 2.28rem);
  }
}

/* Landing system polish v45: secondary page top-flow and component consistency */
@media (max-width: 960px) {
  body.page-id-314 .pejoan-entry-content .fd-dental-hero,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero,
  body.page-id-347 .pejoan-entry-content .fd-apnea-hero,
  body.page-id-360 .pejoan-entry-content .fd-premium-hero,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero,
  body.page-id-448 .pejoan-entry-content .fd-premium-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 22px;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-hero-card img,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero-card img,
  body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card .fd-hero-illustration img,
  body.page-id-360 .pejoan-entry-content .fd-premium-hero__card .fd-hero-illustration img,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero__card .fd-hero-illustration img,
  body.page-id-448 .pejoan-entry-content .fd-premium-hero__card .fd-hero-illustration img {
    max-height: 250px;
    object-fit: cover;
    object-position: center;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-hero-card p,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero-card p,
  body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card p,
  body.page-id-360 .pejoan-entry-content .fd-premium-hero__card p,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero__card p,
  body.page-id-448 .pejoan-entry-content .fd-premium-hero__card p {
    display: none;
  }
}

@media (max-width: 640px) {
  body.page-id-314 .pejoan-entry-content .fd-dental-hero,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero,
  body.page-id-347 .pejoan-entry-content .fd-apnea-hero,
  body.page-id-360 .pejoan-entry-content .fd-premium-hero,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero,
  body.page-id-448 .pejoan-entry-content .fd-premium-hero {
    gap: 18px;
    padding: 24px 18px;
    margin-bottom: 42px;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-hero h1,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero h1,
  body.page-id-360 .pejoan-entry-content .fd-premium-hero h1,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero h1,
  body.page-id-448 .pejoan-entry-content .fd-premium-hero h1 {
    font-size: clamp(1.9rem, 7.7vw, 2.35rem);
    line-height: 1.08;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-actions,
  body.page-id-344 .pejoan-entry-content .fd-michigan-actions,
  body.page-id-347 .pejoan-entry-content .fd-apnea-actions,
  body.page-id-360 .pejoan-entry-content .fd-premium-actions,
  body.page-id-362 .pejoan-entry-content .fd-premium-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-actions .wp-block-button,
  body.page-id-344 .pejoan-entry-content .fd-michigan-actions .wp-block-button,
  body.page-id-347 .pejoan-entry-content .fd-apnea-actions .wp-block-button,
  body.page-id-360 .pejoan-entry-content .fd-premium-actions .wp-block-button,
  body.page-id-362 .pejoan-entry-content .fd-premium-actions .wp-block-button {
    width: 100%;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-actions .wp-block-button__link,
  body.page-id-344 .pejoan-entry-content .fd-michigan-actions .wp-block-button__link,
  body.page-id-347 .pejoan-entry-content .fd-apnea-actions .wp-block-button__link,
  body.page-id-360 .pejoan-entry-content .fd-premium-actions .wp-block-button__link,
  body.page-id-362 .pejoan-entry-content .fd-premium-actions .wp-block-button__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    padding: 9px 10px;
    font-size: .86rem;
    line-height: 1.14;
    text-align: center;
    white-space: normal;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-hero-card p,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero-card p,
  body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card p,
  body.page-id-360 .pejoan-entry-content .fd-premium-hero__card p,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero__card p,
  body.page-id-448 .pejoan-entry-content .fd-premium-hero__card p {
    display: none;
  }

  body.page-id-314 .pejoan-entry-content .fd-dental-hero-card img,
  body.page-id-344 .pejoan-entry-content .fd-michigan-hero-card img,
  body.page-id-347 .pejoan-entry-content .fd-apnea-hero__card .fd-hero-illustration img,
  body.page-id-360 .pejoan-entry-content .fd-premium-hero__card .fd-hero-illustration img,
  body.page-id-362 .pejoan-entry-content .fd-premium-hero__card .fd-hero-illustration img {
    height: 142px;
    max-height: 142px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
  }
}

/* Cookie notice: keep mobile first viewport usable */
@media (max-width: 640px) {
  #cookie-law-info-bar {
    padding: 14px 18px !important;
    box-shadow: 0 -12px 34px rgba(6,47,87,.12);
  }

  #cookie-law-info-bar .cli-bar-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    align-items: center;
  }

  #cookie-law-info-bar .cli-bar-message {
    max-height: 4.8em;
    overflow: hidden;
    font-size: .86rem;
    line-height: 1.32;
  }

  #cookie-law-info-bar .cli-bar-btn_container {
    display: grid;
    gap: 8px;
    justify-items: end;
  }

  #cookie-law-info-bar .cli-plugin-main-link {
    margin: 0 !important;
    font-size: .82rem;
  }

  #cookie-law-info-bar .cli-plugin-button {
    min-height: 34px;
    padding: 8px 12px !important;
    font-size: .78rem;
    line-height: 1;
  }
}

@media (max-width: 960px) {
  .fd-blog-hero__inner,
  .fd-blog-direct {
    grid-template-columns: 1fr;
  }

  .fd-blog-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fd-blog-premium {
    --fd-blog-width: min(100% - 32px, 1180px);
    --fd-blog-text: min(100% - 32px, 820px);
  }

  .fd-blog-hero {
    margin-bottom: 34px;
    padding: 34px 16px 40px;
  }

  .fd-blog-hero__inner {
    gap: 24px;
  }

  .fd-blog-hero h1,
  .fd-blog-title {
    font-size: clamp(2.05rem, 9vw, 2.8rem);
    line-height: 1.08;
  }

  .fd-blog-hero__lead {
    font-size: 1.08rem;
    line-height: 1.58;
  }

  .fd-blog-hero__actions {
    flex-direction: column;
  }

  .fd-blog-button {
    width: 100%;
  }

  .fd-blog-direct {
    margin-top: 32px;
    margin-bottom: 46px;
  }

  .fd-blog-main-image {
    margin-bottom: 30px;
  }

  .fd-blog-main-image img {
    max-height: 270px;
  }

  body.single-post .wp-block-post-title {
    margin-top: 0 !important;
    font-size: clamp(2.05rem, 8.5vw, 2.75rem) !important;
    line-height: 1.1 !important;
  }

  body.single-post .wp-block-post-date {
    margin-bottom: 28px;
  }

  body.single-post .fd-blog-main-image {
    width: min(100% - 32px, 900px);
    margin-top: 22px;
    margin-bottom: 24px;
  }

  body.single-post .fd-blog-main-image img {
    max-height: 240px;
  }

  .fd-blog-short-answer {
    padding: 22px;
    margin-bottom: 28px;
  }

  .fd-blog-answer,
  .fd-blog-note,
  .fd-blog-card {
    padding: 22px;
  }

  .fd-blog-answer p:first-of-type {
    font-size: 1.16rem;
  }

  .fd-blog-card-grid {
    margin-bottom: 44px;
  }

  .fd-blog-premium .wp-block-separator {
    width: min(100% - 32px, 820px);
    margin: 48px auto;
  }

  .fd-blog-premium .wp-block-table,
  .fd-blog-table-wrap {
    margin-bottom: 44px;
  }

  .fd-blog-premium .wp-block-table th,
  .fd-blog-premium .wp-block-table td,
  .fd-blog-table-wrap th,
  .fd-blog-table-wrap td {
    padding: 14px 15px;
    font-size: .95rem;
  }

  .fd-blog-faq summary {
    padding: 16px 18px;
    font-size: .98rem;
  }

  .fd-blog-faq details p {
    padding: 0 18px 18px;
    font-size: .98rem;
  }

  .fd-blog-sources {
    margin-top: 48px;
    padding: 22px;
  }
}
