/* Plantology plant detail styles */

.pd-page {
  padding-top: calc(var(--site-header-offset, 74px) + 0.5rem);
}

.pd-section {
  padding: 3rem 0;
}

.pd-section + .pd-section {
  border-top: 1px solid rgba(46, 125, 50, 0.08);
}

.pd-container {
  width: min(100%, var(--container-width, 1300px));
  margin: 0 auto;
  padding-inline: clamp(0.8rem, 4.8vw, 1.35rem);
}

.pd-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.78;
  margin-bottom: 0.5rem;
}

.pd-h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.pd-h3 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
  margin: 0;
}

.pd-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #3f4650;
  margin-bottom: 0;
}

.pd-body + .pd-body {
  margin-top: 0.8rem;
}

.pd-bg-soft {
  background: #f9fbf8;
}

.pd-breadcrumb-wrapper {
  background: #fdfcf9;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(46, 125, 50, 0.05);
}

.pd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #7a8a84;
}

.pd-breadcrumb a {
  color: var(--color-primary);
  font-weight: 600;
}

.pd-breadcrumb-sep {
  opacity: 0.35;
}

.pd-subnav {
  position: sticky;
  top: var(--site-header-offset, 74px);
  z-index: 900;
  background: rgba(245, 240, 230, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46, 125, 50, 0.12);
  overflow-x: auto;
  scrollbar-width: none;
}

.pd-subnav::-webkit-scrollbar {
  display: none;
}

.pd-subnav-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0;
  min-width: max-content;
}

.pd-subnav-link {
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5f6b66;
  white-space: nowrap;
  position: relative;
}

.pd-subnav-link:hover,
.pd-subnav-link.active {
  color: var(--color-primary);
}

.pd-subnav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
}

.pd-hero {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.pd-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.pd-hero-image-wrap {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0e4, #d4e8cc);
  box-shadow: 0 18px 44px rgba(46, 125, 50, 0.16);
}

.pd-hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.pd-hero-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
}

.pd-hero-content {
  min-width: 0;
}

.pd-hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.08;
  margin-bottom: 0.25rem;
}

.pd-hero-sci {
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: #5f6b66;
  margin-bottom: 0.55rem;
}

.pd-hero-common {
  font-size: 0.92rem;
  color: #7a8a84;
  margin-bottom: 1.15rem;
}

.pd-hero-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #4a5a54;
  margin-top: 1rem;
}

.pd-hero-answer {
  margin-top: 0.95rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.16);
}

.pd-hero-answer-question {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #2e7d32;
}

.pd-hero-answer-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3f4650;
}

.pd-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.pd-badge-icon {
  line-height: 1;
}

.pd-badge-green {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  border-color: rgba(46, 125, 50, 0.2);
}

.pd-badge-amber {
  background: rgba(255, 193, 7, 0.14);
  color: #8f6500;
  border-color: rgba(255, 193, 7, 0.3);
}

.pd-badge-blue {
  background: rgba(41, 98, 255, 0.1);
  color: #2649c9;
  border-color: rgba(41, 98, 255, 0.18);
}

.pd-badge-red {
  background: rgba(211, 47, 47, 0.09);
  color: #c62828;
  border-color: rgba(211, 47, 47, 0.18);
}

.pd-badge-neutral {
  background: rgba(90, 90, 90, 0.07);
  color: #4a4a4a;
  border-color: rgba(90, 90, 90, 0.14);
}

.pd-facts-groups {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.2rem;
}

.pd-facts-group {
  display: grid;
  gap: 0.8rem;
}

.pd-facts-group-heading {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #4d5f56;
}

.pd-facts-group-icon {
  font-size: 1rem;
  line-height: 1;
}

.pd-facts-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.pd-facts-tile-grid--matrix {
  margin-top: 2.2rem;
  row-gap: 1.45rem;
}

.pd-fact-tile {
  background: white;
  border: 1px solid rgba(46, 125, 50, 0.1);
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.2s;
  position: relative;
}

.pd-fact-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(46, 125, 50, 0.12);
  border-color: rgba(46, 125, 50, 0.28);
}

.pd-fact-tile-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pd-fact-tile-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.pd-fact-tile-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a9a94;
}

.pd-fact-tile-value {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
}

.pd-fact-tile-widget {
  margin-top: 0.35rem;
}

.pd-fact-tile-helper {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5b6862;
  text-align: left;
}

.pd-fact-tile-micro-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #5b6862;
}

.pd-fact-section-label {
  margin: 0;
  display: none;
  align-items: center;
  gap: 0.45rem;
  position: absolute;
  top: -2.15rem;
  left: 0;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: #4d5f56;
  line-height: 1.2;
  white-space: nowrap;
}

.pd-fact-section-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.pd-light-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.pd-light-scale-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.pd-light-scale-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(46, 125, 50, 0.12);
}

.pd-light-scale-bar.is-active {
  background: rgba(255, 193, 7, 0.45);
}

.pd-light-scale-bar.is-preferred {
  background: #ffc107;
}

.pd-light-scale-label {
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #6c7771;
}

.pd-light-legend {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.85rem;
}

.pd-light-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #6c7771;
}

.pd-light-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.pd-light-legend-swatch-active {
  background: rgba(255, 193, 7, 0.45);
}

.pd-light-legend-swatch-preferred {
  background: #ffc107;
}

.pd-range-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #d8ded9;
  overflow: hidden;
}

.pd-range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 6px;
  border-radius: 999px;
  background: #f39c12;
}

.pd-range-widget.temperature .pd-range-fill {
  background: #f39c12;
}

.pd-range-widget.humidity .pd-range-fill {
  background: #29b6f6;
}

.pd-range-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: #6c7771;
}

.pd-range-summary {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: #47524c;
  text-align: left;
}

.pd-tox-summary {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pd-tox-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}

.pd-tox-summary-row.is-safe {
  background: rgba(46, 125, 50, 0.08);
  color: #2e7d32;
}

.pd-tox-summary-row.is-warn {
  background: rgba(211, 47, 47, 0.08);
  color: #b42318;
}
.pd-tox-summary-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pd-tox-summary-value {
  font-size: 0.88rem;
  font-weight: 700;
  text-align: right;
}

.pd-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.pd-overview-item {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 1rem 1.15rem;
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(46, 125, 50, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.pd-overview-item:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 125, 50, 0.24);
  box-shadow: 0 10px 24px rgba(46, 125, 50, 0.12);
}

.pd-overview-text {
  font-weight: 700;
  color: var(--color-primary);
}

.pd-about-section {
  background: linear-gradient(135deg, #f0f5ec 0%, #e8f2e4 100%);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(46, 125, 50, 0.1);
}

.pd-about-body {
  max-width: none;
  width: 100%;
  font-size: 1.05rem;
  line-height: 1.82;
  color: #374040;
  margin: 0;
}

.pd-about-meta {
  margin-top: 0.85rem;
  margin-bottom: 0;
  font-size: 0.92rem;
  color: #5f6b66;
}

.pd-funfact-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
  width: 100%;
}

.pd-funfact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
  padding: 1.2rem 1.35rem;
  background: white;
  border-radius: 18px;
  border: 1px solid rgba(255, 193, 7, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.pd-funfact-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.pd-funfact-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #3f4650;
}

.pd-care-sections {
  display: grid;
  gap: 2.5rem;
}

.pd-inline-cta {
  margin-top: 1.4rem;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(46, 125, 50, 0.14);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pd-inline-cta p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3f4650;
}

.pd-inline-cta-quiz {
  background: rgba(41, 182, 246, 0.08);
  border-color: rgba(41, 182, 246, 0.24);
}

.pd-inline-cta-discovery {
  background: rgba(46, 125, 50, 0.08);
  border-color: rgba(46, 125, 50, 0.22);
}

.pd-inline-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.58rem 1rem;
  border-radius: 999px;
  background: var(--color-secondary);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
}

.pd-inline-cta-link:hover {
  background: #0fa8eb;
}

.pd-care-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pd-care-separator {
  width: 100%;
  max-width: 920px;
  display: block;
  margin: 0 auto 1.35rem;
  border-radius: 24px;
  object-fit: cover;
}

.pd-care-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.1rem;
}

.pd-care-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.pd-subsection-title {
  margin-top: 2rem;
}

.pd-issue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.25rem;
  align-items: start;
}

.pd-issue-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(46, 125, 50, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.pd-issue-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.pd-issue-img-placeholder {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.08), rgba(46, 125, 50, 0.16));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pd-issue-image-wrap {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(46, 125, 50, 0.08);
}

.pd-issue-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-issue-img-placeholder span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4e6355;
}

.pd-issue-title-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pd-issue-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-primary);
}

.pd-issue-toggle {
  font-size: 1.4rem;
  color: #7a8a84;
  transition: transform 0.25s;
}

.pd-issue-card.active .pd-issue-toggle {
  transform: rotate(45deg);
}

.pd-issue-body {
  display: none;
}

.pd-issue-card.active .pd-issue-body {
  display: block;
}

.pd-issue-body-inner {
  padding: 0 1.2rem 1.2rem;
  border-top: 1px solid rgba(46, 125, 50, 0.06);
}

.pd-issue-row + .pd-issue-row {
  margin-top: 0.9rem;
}

.pd-issue-row-label {
  margin-bottom: 0.25rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a9a94;
}

.pd-issue-row-val {
  font-size: 0.96rem;
  line-height: 1.65;
  color: #3f4650;
}

.pd-doctor-cta {
  margin-top: 1.75rem;
  padding: 1.75rem 2rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #1f5e23 0%, #2e7d32 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.pd-doctor-cta-text h3 {
  margin-bottom: 0.35rem;
  color: white;
}

.pd-doctor-cta-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.pd-doctor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--color-secondary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

.pd-doctor-btn:hover {
  background: #0fa8eb;
}

.pd-prop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}

.pd-prop-card {
  background: white;
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.4rem;
  border: 1px solid rgba(46, 125, 50, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.pd-prop-card-full {
  grid-column: 1 / -1;
}

.pd-prop-card-method {
  background: #edf7ee;
}

.pd-prop-card-process {
  background: #f8fbf7;
}

.pd-prop-card-pitfall {
  background: rgba(255, 193, 7, 0.1);
}

.pd-prop-card-tips {
  background: rgba(46, 125, 50, 0.08);
}

.pd-prop-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.pd-prop-card-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
}

.pd-prop-card-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #3f4650;
}

.pd-prop-steps {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
  font-size: 1rem;
  color: #3f4650;
  line-height: 1.7;
}
.pd-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.5rem;
  width: 100%;
}

.pd-faq-title {
  text-align: center;
  margin-bottom: 1.25rem;
}

.pd-related-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

.pd-related-group {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(46, 125, 50, 0.1);
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.pd-related-group .pd-h3 {
  margin-bottom: 0.55rem;
}

.pd-related-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pd-related-link {
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.45;
}

.pd-related-link:hover {
  text-decoration: underline;
}

.pd-app-section {
  background: linear-gradient(160deg, #f0f7ee 0%, #e8f5e9 100%);
  border-radius: 28px;
  padding: 2.4rem 1.4rem;
  border: 1px solid rgba(46, 125, 50, 0.1);
}

.pd-app-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.pd-app-intro-copy {
  max-width: 58ch;
  margin: 0 auto;
  text-align: center;
}

.pd-app-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.pd-app-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: white;
  border-radius: 22px;
  padding: 1rem;
  border: 1px solid rgba(46, 125, 50, 0.08);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
}

.pd-app-card-media {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 5 / 6;
  background: #ffffff;
}

.pd-app-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #ffffff;
}

.pd-app-card-title {
  margin-bottom: 0.2rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-primary);
}

.pd-app-card-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #5f6b66;
}

.pd-app-card-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--color-secondary);
  color: white;
  font-size: 0.86rem;
  font-weight: 700;
}

.pd-app-card-btn:hover {
  background: #0fa8eb;
}

.pd-final-cta {
  background: linear-gradient(135deg, #1f5e23 0%, #2e7d32 60%, #3d9341 100%);
  border-radius: 28px;
  padding: 3.1rem 1.5rem;
  text-align: center;
  color: white;
  box-shadow: 0 22px 50px rgba(31, 94, 35, 0.28);
}

.pd-final-branding {
  margin-bottom: 1.5rem;
}

.pd-final-cta .cta-brand-name {
  color: white;
}

.pd-final-cta-title {
  color: white;
  margin-bottom: 0.75rem;
}

.pd-final-cta-copy {
  margin: 0 auto;
  max-width: 65ch;
  color: rgba(255, 255, 255, 0.9);
}

.pd-final-cta-benefits {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 1.35rem 0 2rem;
}

.pd-final-benefit {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.92);
}

.pd-final-benefit-icon {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.pd-btn-download-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 14px;
  overflow: hidden;
}

.pd-btn-download-white img,
.pd-sticky-cta-btn img {
  height: 70px;
  width: auto;
  display: block;
}

.pd-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 850;
  padding: 0.9rem 1rem;
  background: white;
  border-top: 1px solid rgba(46, 125, 50, 0.14);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.pd-sticky-cta.visible {
  transform: translateY(0);
}

.pd-sticky-cta-label {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #3f4650;
}

.pd-sticky-cta-label strong {
  display: block;
  color: var(--color-primary);
}

.pd-sticky-cta-btn {
  display: inline-flex;
  align-items: center;
}

.pd-back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(31, 94, 35, 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  z-index: 860;
}

.pd-back-to-top-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.pd-back-to-top:hover {
  background: #266c2b;
}

.pd-back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 699px) {
  .pd-subnav {
    overflow-x: hidden;
  }

  .pd-subnav .pd-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .pd-subnav .pd-container::-webkit-scrollbar {
    display: none;
  }

  .pd-subnav-inner {
    gap: 0.35rem;
    padding: 0.55rem 0;
    scroll-snap-type: x proximity;
  }

  .pd-subnav-link {
    padding: 0.62rem 0.82rem;
    font-size: 0.82rem;
    scroll-snap-align: start;
  }

  .pd-subnav-link.active::after {
    display: block;
    left: 0.82rem;
    right: 0.82rem;
    bottom: 0.18rem;
  }

  .pd-overview-grid {
    gap: 0.55rem;
    margin-top: 0.85rem;
  }

  .pd-overview-item {
    min-height: 52px;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
  }

  .pd-overview-text {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .pd-final-cta-benefits {
    width: min(100%, 26rem);
    align-items: stretch;
    gap: 0.6rem;
  }

  .pd-final-benefit {
    justify-content: flex-start;
    text-align: left;
    line-height: 1.35;
  }

  .pd-final-benefit-icon {
    flex-shrink: 0;
    margin-top: 0.05rem;
  }

  .pd-sticky-cta {
    display: none !important;
  }
}

.pd-fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-fade-in.visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 700px) {
  .pd-funfact-grid,
  .pd-prop-grid,
  .pd-app-cards,
  .pd-issue-grid,
  .pd-related-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-doctor-cta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .pd-sticky-cta {
    flex-direction: row;
    justify-content: space-between;
  }

  .pd-sticky-cta-label {
    text-align: left;
  }

  .pd-back-to-top {
    bottom: 5.6rem;
  }
}

@media (min-width: 900px) {
  .pd-hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 3rem;
  }

  .pd-hero-image-wrap {
    margin: 0;
    width: min(100%, 560px);
  }

  .pd-facts-tile-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .pd-facts-tile-grid--matrix {
    column-gap: 1.05rem;
    row-gap: 2.5rem;
  }

  .pd-fact-tile.is-section-start .pd-fact-section-label {
    display: inline-flex;
  }

  .pd-fact-tile.is-section-break {
    margin-left: 0.4rem;
  }

  .pd-app-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pd-prop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-final-cta-benefits {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.5rem;
  }

  .pd-sticky-cta {
    display: none;
  }

  .pd-back-to-top {
    bottom: 1.25rem;
  }
}

/* Standardized heading top spacing */
.pd-page h2 {
  margin-top: var(--heading-h2-top, 1.35rem) !important;
}

.pd-page h3 {
  margin-top: var(--heading-h3-top, 1rem) !important;
}

.pd-page h2:first-child,
.pd-page h3:first-child {
  margin-top: 0 !important;
}
