/*
 * RFT Signature System V3.1 · 2026-09-20
 * A reversible visual layer for the public homepage and five core utility pages.
 * Loaded last so the existing content, forms, SEO and service logic stay untouched.
 */

body:is(.home-v5, .doctor-page, .licenses-page, .faq-page, .daily-page, .depth-page) {
  --brand-ink: #122e27;
  --brand-green: #173f35;
  --brand-paper: #f7f2e8;
  --brand-paper-deep: #ece3d4;
  --brand-white: #fffdf8;
  --brand-brass: #ad8650;
  --brand-cinnabar: #914139;
  --brand-muted: #617069;
  --brand-line: rgb(18 46 39 / 14%);
  --brand-line-strong: rgb(18 46 39 / 24%);
  --brand-serif: "Songti SC", "STSong", "Noto Serif SC", serif;
  --brand-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --brand-shadow-soft: 0 24px 68px rgb(18 46 39 / 9%);
  --brand-radius-sm: 10px;
  --brand-radius-md: 16px;
  --brand-radius-lg: 24px;
  --brand-ease-out: cubic-bezier(.2, .72, .24, 1);
  color: var(--brand-ink);
  background: var(--brand-white);
  font-family: var(--brand-sans);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

body:is(.home-v5, .doctor-page, .licenses-page, .faq-page, .daily-page, .depth-page) :is(h1, h2, h3) {
  text-wrap: balance;
}

body:is(.home-v5, .doctor-page, .licenses-page, .faq-page, .daily-page, .depth-page) :is(a, button, summary, input, select):focus-visible {
  outline: 3px solid rgb(145 65 57 / 38%);
  outline-offset: 3px;
}

body.home-v5 {
  --home-ink: var(--brand-ink);
  --home-green: var(--brand-green);
  --home-green-deep: var(--brand-ink);
  --home-paper: var(--brand-paper);
  --home-paper-deep: var(--brand-paper-deep);
  --home-white: var(--brand-white);
  --home-brass: var(--brand-brass);
  --home-cinnabar: var(--brand-cinnabar);
  --home-muted: var(--brand-muted);
  --home-line: var(--brand-line);
  --home-serif: var(--brand-serif);
  --home-sans: var(--brand-sans);
}

body.site-page {
  --site-green: var(--brand-green);
  --v3-ink: var(--brand-ink);
  --v3-green: var(--brand-green);
  --v3-paper: var(--brand-paper);
  --v3-gold: var(--brand-brass);
  --v3-red: var(--brand-cinnabar);
  --v3-line: var(--brand-line);
  --v3-serif: var(--brand-serif);
  --v3-sans: var(--brand-sans);
}

body.depth-page {
  --depth-ink: var(--brand-ink);
  --depth-muted: var(--brand-muted);
  --depth-line: var(--brand-line);
  --depth-paper: var(--brand-paper);
  --depth-gold: var(--brand-brass);
}

/* Shared identity and navigation */
body:is(.home-v5, .doctor-page, .licenses-page, .faq-page, .daily-page, .depth-page) :is(.brand img) {
  border: 1px solid rgb(173 134 80 / 38%);
  box-shadow: 0 8px 24px rgb(18 46 39 / 10%);
}

.home-v5 .site-header,
.site-page .topbar {
  border-bottom-color: rgb(18 46 39 / 10%);
  background: rgb(255 253 248 / 94%);
  box-shadow: none;
  backdrop-filter: blur(20px) saturate(125%);
}

.home-v5 .site-header::before,
.site-page .topbar::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--brand-cinnabar) 0 12%, var(--brand-brass) 12% 30%, transparent 30% 100%);
  opacity: .82;
}

.site-page .unified-topbar .nav-wrap {
  min-height: 78px;
}

.site-page .unified-topbar .brand {
  gap: 11px;
  color: var(--brand-ink);
}

.site-page .unified-topbar .brand strong {
  color: var(--brand-ink);
  font: 700 22px/1.12 var(--brand-serif);
  letter-spacing: .12em;
}

.site-page .unified-topbar .brand small {
  margin-top: 5px;
  color: #718078;
  font: 500 9px/1.2 var(--brand-sans);
  letter-spacing: .16em;
}

.site-page .unified-topbar .topnav {
  gap: 21px;
}

.site-page .unified-topbar .topnav > a,
.home-v5 .desktop-nav > a {
  position: relative;
  color: #41524b;
  font-size: 13px;
  font-weight: 650;
}

.site-page .unified-topbar .topnav > a:not(.nav-call)::after,
.home-v5 .desktop-nav > a::after {
  position: absolute;
  right: 100%;
  bottom: -9px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--brand-cinnabar);
  transition: right 220ms ease;
}

.site-page .unified-topbar .topnav > a:is(:hover, .active):not(.nav-call)::after,
.home-v5 .desktop-nav > a:is(:hover, .active)::after {
  right: 0;
}

.site-page .unified-topbar .topnav > a.active {
  color: var(--brand-ink);
}

.site-page .unified-topbar .nav-call {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--brand-green);
  border-radius: var(--brand-radius-sm);
  color: #fff;
  background: var(--brand-green);
}

/* Homepage signature */
.home-v5 .container {
  width: min(1180px, calc(100% - 56px));
}

.home-v5 .rft-home-hero {
  isolation: isolate;
  background:
    radial-gradient(circle at 85% 18%, rgb(173 134 80 / 13%), transparent 29%),
    linear-gradient(118deg, #fbf9f4 0%, var(--brand-paper) 58%, #eee4d5 100%);
}

.home-v5 .rft-home-hero::before {
  left: calc(50% + 350px);
  background: linear-gradient(transparent, rgb(173 134 80 / 38%), transparent);
}

.home-v5 .rft-home-hero::after {
  z-index: -1;
  right: max(-110px, calc(50% - 760px));
  bottom: -205px;
  width: 620px;
  height: 620px;
  background: rgb(18 46 39 / 5%);
  -webkit-mask: url("/assets/rft-window-grid.svg?v=20260920b") center / contain no-repeat;
  mask: url("/assets/rft-window-grid.svg?v=20260920b") center / contain no-repeat;
  opacity: 1;
}

.home-v5 .rft-home-hero-grid {
  min-height: 680px;
  grid-template-columns: minmax(0, 1.12fr) minmax(370px, .78fr);
  gap: 78px;
}

.home-v5 .rft-home-hero-copy h1 {
  font-size: clamp(46px, 4vw, 56px);
  line-height: 1.22;
  letter-spacing: 0;
}

.home-v5 .rft-hero-lead {
  max-width: 640px;
  font-size: 16px;
  line-height: 2;
}

.rft-signature-statement {
  max-width: 540px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 23px 0 0;
  gap: 8px;
  padding: 0;
  border: 0;
  list-style: none;
}

.rft-signature-statement li {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgb(18 46 39 / 10%);
  border-radius: 14px;
  color: #465851;
  background: rgb(255 253 248 / 64%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}

.rft-signature-statement li:first-child {
  padding-left: 13px;
}

.rft-signature-statement li + li {
  border-left-color: rgb(18 46 39 / 10%);
}

.rft-signature-statement span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(173 134 80 / 34%);
  border-radius: 50%;
  color: var(--brand-brass);
  font: 600 9px/1 var(--brand-serif);
}

.home-v5 .rft-hero-facts {
  margin-top: 22px;
  padding: 17px 0;
}

.home-v5 .rft-home-hero-media::before {
  inset: 24px -24px -24px 24px;
  border-radius: 32px 10px 32px 10px;
  border-color: rgb(173 134 80 / 48%);
}

.home-v5 .rft-home-hero-media > img {
  border-radius: 28px 8px 28px 8px;
  box-shadow: var(--brand-shadow-soft);
}

.home-v5 .rft-home-hero-media > figcaption {
  border-radius: 0 0 28px 8px;
  background: rgb(12 43 35 / 92%);
}

.home-v5 .rft-quick-actions {
  padding: 14px 0;
  border: 0;
}

.home-v5 .rft-quick-shell {
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
}

.home-v5 .rft-quick-shell > p {
  border: 0;
}

.home-v5 .rft-quick-grid {
  gap: 10px;
  counter-reset: rft-quick;
}

.home-v5 .rft-quick-grid > a {
  position: relative;
  min-height: 86px;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: var(--brand-radius-md);
  background: rgb(255 255 255 / 2.5%);
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms var(--brand-ease-out);
}

.home-v5 .rft-quick-grid > a::before {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(216 189 145 / 42%);
  border-radius: 50%;
  content: "0" counter(rft-quick);
  counter-increment: rft-quick;
  color: #dcc49e;
  font: 600 9px/1 var(--brand-serif);
}

.home-v5 .rft-quick-grid > a:hover {
  border-color: rgb(216 189 145 / 32%);
  background: rgb(255 255 255 / 7%);
  transform: translateY(-2px);
}

.home-v5 .rft-section {
  position: relative;
  padding-top: 82px;
  padding-bottom: 82px;
}

.home-v5 .rft-section-head {
  margin-bottom: 48px;
}

.home-v5 :is(.rft-section-head h2, .rft-answers h2, .rft-contact h2, .rft-doctor-copy h2) {
  font-size: clamp(34px, 3.15vw, 44px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0;
}

.home-v5 .rft-section[data-section-index]::before,
.home-v5 .rft-contact[data-section-index]::before {
  position: absolute;
  top: 86px;
  left: max(18px, calc((100vw - 1320px) / 2));
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  content: attr(data-section-index);
  color: rgb(18 46 39 / 34%);
  border: 1px solid rgb(173 134 80 / 32%);
  border-radius: 50%;
  background: rgb(255 253 248 / 70%);
  font: 600 10px/1 var(--brand-serif);
  letter-spacing: .13em;
}

.home-v5 .rft-direction-grid article {
  position: relative;
  isolation: isolate;
  padding: 29px 22px 29px 0;
  border-bottom: 0;
  transition: color 260ms ease;
}

.home-v5 .rft-direction-grid {
  border-top: 0;
}

.home-v5 .rft-direction-grid article::before {
  position: absolute;
  top: 0;
  right: 18%;
  left: 52px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--brand-line), transparent);
}

.home-v5 .rft-direction-grid article:nth-child(-n + 2)::before {
  opacity: 0;
}

.home-v5 .rft-direction-grid article::after {
  position: absolute;
  z-index: -1;
  inset: 10px 0;
  content: "";
  border-radius: 18px 6px 18px 6px;
  background: linear-gradient(120deg, rgb(247 242 232 / 74%), rgb(255 253 248 / 18%));
  opacity: 0;
  transform: scale(.985);
  transition: opacity 260ms ease, transform 320ms var(--brand-ease-out);
}

.home-v5 .rft-direction-grid article:hover::after {
  opacity: 1;
  transform: scale(1);
}

.home-v5 .rft-direction-grid article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding-top: 0;
  border: 1px solid rgb(173 134 80 / 44%);
  border-radius: 50%;
  background: var(--brand-white);
}

.home-v5 .rft-direction-grid p,
.home-v5 .rft-answer-list p,
.home-v5 .rft-section-head > p,
.home-v5 .rft-answers header > p {
  font-size: 15px;
  line-height: 1.82;
}

.home-v5 .rft-doctor {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--brand-ink);
}

.home-v5 .rft-doctor::after,
.home-v5 .rft-contact::after {
  position: absolute;
  z-index: -1;
  right: -150px;
  bottom: -260px;
  width: 650px;
  height: 650px;
  content: "";
  background: rgb(255 255 255 / 4.5%);
  -webkit-mask: url("/assets/rft-window-grid.svg?v=20260920b") center / contain no-repeat;
  mask: url("/assets/rft-window-grid.svg?v=20260920b") center / contain no-repeat;
}

.home-v5 .rft-doctor-portrait::before {
  border-radius: 26px 8px 26px 8px;
}

.home-v5 .rft-doctor-portrait img {
  border-radius: 22px 6px 22px 6px;
}

.home-v5 .rft-doctor-principle {
  padding: 24px;
  border: 1px solid rgb(216 189 145 / 18%);
  border-left-color: rgb(216 189 145 / 42%);
  border-radius: 18px 6px 18px 6px;
  background: rgb(255 255 255 / 3.5%);
}

.home-v5 .rft-fee-card {
  border-top-color: var(--brand-cinnabar);
  border-radius: 20px 7px 20px 7px;
  box-shadow: 0 18px 50px rgb(18 46 39 / 10%);
}

.home-v5 .rft-visit-steps {
  border-top: 0;
}

.home-v5 .rft-visit-steps li {
  position: relative;
  border-bottom: 0;
}

.home-v5 .rft-visit-steps li::after {
  position: absolute;
  right: 12%;
  bottom: 0;
  left: 72px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--brand-line), transparent);
}

.home-v5 .rft-visit-steps li:last-child::after {
  display: none;
}

.home-v5 .rft-visit-steps li > span {
  border-color: rgb(173 134 80 / 46%);
  border-radius: 50%;
  background: rgb(255 253 248 / 78%);
  box-shadow: inset 0 0 0 5px rgb(173 134 80 / 5%);
}

.home-v5 .rft-proof-actions a,
.home-v5 .rft-button {
  border-radius: 12px;
}

.home-v5 .rft-proof-gallery figure {
  border-radius: 20px 7px 20px 7px;
}

.home-v5 .rft-proof-gallery .rft-proof-feature {
  border-radius: 26px 8px 26px 8px;
}

.home-v5 .rft-answer-list {
  border-top: 0;
  interpolate-size: allow-keywords;
}

.home-v5 .rft-answer-list details {
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  background: rgb(255 253 248 / 54%);
  transition: border-color 240ms ease, background 240ms ease;
}

.home-v5 .rft-answer-list details[open] {
  border-color: rgb(173 134 80 / 28%);
  background: var(--brand-white);
}

.home-v5 .rft-answer-list summary {
  padding: 20px 54px 20px 18px;
}

.home-v5 .rft-answer-list summary::after {
  top: 19px;
  right: 18px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(173 134 80 / 34%);
  border-radius: 50%;
  content: "+";
  font-size: 19px;
  transition: transform 280ms var(--brand-ease-out), background 220ms ease;
}

.home-v5 .rft-answer-list details[open] summary::after {
  content: "+";
  background: rgb(173 134 80 / 9%);
  transform: rotate(45deg);
}

.home-v5 .rft-answer-list p {
  padding-right: 54px;
  padding-left: 18px;
}

@supports selector(details::details-content) {
  .home-v5 .rft-answer-list details::details-content {
    overflow: hidden;
    block-size: 0;
    opacity: 0;
    transition: block-size 300ms var(--brand-ease-out), opacity 220ms ease, content-visibility 300ms allow-discrete;
  }

  .home-v5 .rft-answer-list details[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

.home-v5 .rft-reading-list a {
  border-radius: 14px 5px 14px 5px;
  transition: border-color 220ms ease, background 220ms ease, transform 300ms var(--brand-ease-out);
}

.home-v5 .rft-reading-list a:hover {
  background: var(--brand-paper);
  transform: translateY(-3px);
}

.home-v5 .rft-reading-list a {
  position: relative;
}

.home-v5 .rft-reading-list a::after {
  position: absolute;
  top: -1px;
  right: 100%;
  left: 0;
  height: 2px;
  content: "";
  background: var(--brand-cinnabar);
  transition: right 240ms ease;
}

.home-v5 .rft-reading-list a:hover::after {
  right: 0;
}

.home-v5 .rft-contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--brand-green);
}

.home-v5 .rft-contact-form {
  border-top: 3px solid var(--brand-brass);
  border-radius: 20px 7px 20px 7px;
  box-shadow: 0 24px 70px rgb(7 28 22 / 18%);
}

.home-v5 .rft-contact-form input[type="tel"],
.home-v5 .rft-contact-form select,
.home-v5 .rft-contact-form button {
  border-radius: 12px;
}

/* Inner-page editorial frame */
.site-page .wrap {
  width: min(1160px, calc(100% - 56px));
}

.site-page :is(.page-hero, .site-hero) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 104px 0 92px;
  border: 0;
  border-bottom: 1px solid var(--brand-line);
  background:
    radial-gradient(circle at 84% 16%, rgb(173 134 80 / 14%), transparent 28%),
    linear-gradient(118deg, #fbf9f4 0%, var(--brand-paper) 62%, #ede3d3 100%);
}

.site-page :is(.page-hero, .site-hero)::after {
  position: absolute;
  z-index: -1;
  right: -135px;
  bottom: -260px;
  width: 650px;
  height: 650px;
  content: "";
  background: rgb(18 46 39 / 5%);
  -webkit-mask: url("/assets/rft-window-grid.svg?v=20260920b") center / contain no-repeat;
  mask: url("/assets/rft-window-grid.svg?v=20260920b") center / contain no-repeat;
}

.site-page .page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .68fr);
  align-items: center;
  gap: 78px;
}

.site-page :is(.page-hero, .site-hero) h1 {
  max-width: 820px;
  margin: 10px 0 22px;
  color: var(--brand-ink);
  font-family: var(--brand-serif);
  font-size: clamp(46px, 4.7vw, 56px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0;
}

.site-page :is(.page-hero, .site-hero) .page-hero-copy > p:not(.eyebrow) {
  max-width: 740px;
  color: #4f625a;
  font-size: 16px;
  line-height: 1.95;
}

:is(.home-v5 .rft-kicker, .site-page .eyebrow, .site-page .section-kicker, .depth-page .depth-kicker) {
  color: var(--brand-cinnabar);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
}

.site-page .page-hero-panel {
  padding: 30px;
  border: 0;
  border-top: 3px solid var(--brand-brass);
  border-bottom: 1px solid var(--brand-line-strong);
  border-radius: 18px 6px 18px 6px;
  background: rgb(255 253 248 / 74%);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.site-page .page-hero-panel > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--brand-line);
}

.site-page .page-hero-panel > div:last-child {
  border-bottom: 0;
}

.site-page .hero-sub-actions a,
.depth-page .depth-actions a {
  min-height: 46px;
  border-radius: 12px;
}

.site-page .section,
.depth-page .depth-section {
  padding-top: 82px;
  padding-bottom: 82px;
}

.site-page .section.muted,
.depth-page .depth-section.muted {
  background: var(--brand-paper);
}

.site-page .section > .wrap > h2,
.site-page .section-head h2,
.depth-page .depth-section h2 {
  color: var(--brand-ink);
  font-family: var(--brand-serif);
  font-size: clamp(33px, 3.7vw, 44px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

/* Doctor profile: information first, without a card wall */
.doctor-page .doctor-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
}

.doctor-page .doctor-status-row > div {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
  border: 0;
  border-right: 1px solid var(--brand-line);
  background: transparent;
  box-shadow: none;
}

.doctor-page .doctor-status-row > div:first-child {
  padding-left: 0;
}

.doctor-page .doctor-status-row > div:last-child {
  border-right: 0;
}

.doctor-page .doctor-identity-panel {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.doctor-page .doctor-identity-panel figure {
  overflow: hidden;
  border-radius: 24px 8px 24px 8px;
  box-shadow: var(--brand-shadow-soft);
}

.doctor-page .doctor-identity-panel figcaption {
  border-radius: 10px;
}

.doctor-page .doctor-profile-chip {
  right: -18px;
  bottom: -20px;
  border: 1px solid rgb(173 134 80 / 20%);
  border-radius: 16px 6px 16px 6px;
  box-shadow: 0 18px 48px rgb(18 46 39 / 15%);
}

.doctor-page .doctor-profile-chip img {
  border-radius: 12px 4px 12px 4px;
}

.doctor-page .doctor-trust-grid {
  gap: 0;
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
}

.doctor-page .doctor-trust-grid > div {
  padding: 28px;
  border: 0;
  border-right: 1px solid var(--brand-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.doctor-page .doctor-trust-grid > div:last-child {
  border-right: 0;
}

.doctor-page .doctor-bio-section {
  background: var(--brand-paper);
}

.doctor-page .doctor-bio-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.doctor-page .doctor-bio-portrait img {
  width: 100%;
  display: block;
  border-radius: 20px 6px 0 0;
}

.doctor-page .doctor-bio-name-card {
  margin-top: 0;
  padding: 18px;
  color: #fff;
  background: var(--brand-green);
  border-radius: 0 0 20px 6px;
  text-align: center;
}

.doctor-page .doctor-bio-name-card strong {
  display: block;
  font: 600 22px/1.4 var(--brand-serif);
  letter-spacing: .12em;
}

.doctor-page .doctor-bio-name-card span {
  display: block;
  margin-top: 5px;
  color: rgb(255 255 255 / 68%);
  font-size: 11px;
  letter-spacing: .08em;
}

.doctor-page .doctor-bio-content h2 {
  margin: 0 0 18px;
  color: var(--brand-ink);
  font: 600 31px/1.35 var(--brand-serif);
}

.doctor-page .doctor-bio-content h3 {
  margin: 34px 0 14px;
  padding-left: 12px;
  border-left: 2px solid var(--brand-brass);
  color: var(--brand-ink);
  font: 600 20px/1.4 var(--brand-serif);
}

.doctor-page .doctor-bio-content p {
  margin: 0 0 15px;
  color: #455951;
  line-height: 1.95;
}

.doctor-page .doctor-specialty-list {
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid var(--brand-line);
  list-style: none;
}

.doctor-page .doctor-specialty-list li {
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid var(--brand-line);
  color: #455951;
  background: transparent;
  font-size: 15px;
  line-height: 1.75;
}

.doctor-page .doctor-specialty-list strong {
  min-width: 92px;
  display: inline-block;
  margin-right: 10px;
  color: var(--brand-green);
}

.doctor-page .doctor-bio-motto {
  margin: 0;
  padding: 20px 24px;
  border-left: 3px solid var(--brand-brass);
  border-radius: 0 14px 14px 0;
  color: var(--brand-green);
  background: var(--brand-white);
  font: 600 16px/1.95 var(--brand-serif);
}

.doctor-page :is(.license-card, .info-card) {
  border-radius: 16px 5px 16px 5px;
  box-shadow: none;
}

/* Public credentials: an archive, not a tile catalogue */
.licenses-page .license-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
}

.licenses-page .license-overview-grid article {
  min-height: 210px;
  padding: 30px;
  border: 0;
  border-right: 1px solid var(--brand-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.licenses-page .license-overview-grid article:first-child {
  padding-left: 0;
}

.licenses-page .license-overview-grid article:last-child {
  border-right: 0;
}

.licenses-page #license-main .license-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.licenses-page #license-main .license-card {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(360px, 1.18fr);
  column-gap: 58px;
  align-items: start;
  padding: 42px;
  border: 1px solid var(--brand-line);
  border-radius: 20px 8px 20px 8px;
  background: #fff;
  box-shadow: none;
}

.licenses-page #license-main .license-card > :not(figure) {
  grid-column: 1;
}

.licenses-page #license-main .license-card > figure {
  grid-column: 2;
  grid-row: 1 / span 8;
  margin: 0;
}

.licenses-page #license-main #license-site {
  grid-template-columns: 1fr;
}

.licenses-page .license-list {
  border-top: 1px solid var(--brand-line);
}

.licenses-page .license-list > div {
  padding-top: 14px;
  padding-bottom: 14px;
}

.licenses-page .credential-preview,
.licenses-page .credential-preview img {
  border-radius: 14px 5px 14px 5px;
}

.licenses-page .license-jump {
  border-bottom-color: var(--brand-line);
  background: rgb(247 242 232 / 94%);
}

.licenses-page .license-jump a {
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
}

.licenses-page .license-jump a:hover {
  border-bottom-color: var(--brand-cinnabar);
}

/* FAQ: scan like an editorial index */
.faq-page .faq-filter-band {
  position: sticky;
  z-index: 30;
  top: 78px;
  padding: 9px 0;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: var(--brand-ink);
}

.faq-page .faq-filters {
  gap: 7px;
}

.faq-page .faq-filters button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgb(255 255 255 / 72%);
  background: transparent;
}

.faq-page .faq-filters button:is(:hover, .active) {
  border-color: rgb(216 189 145 / 32%);
  color: var(--brand-ink);
  background: #d8bd91;
}

.faq-page .faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-top: 0;
}

.faq-page .faq-item {
  min-height: 0;
  padding: 26px 28px 28px;
  border: 1px solid var(--brand-line);
  border-radius: 16px 5px 16px 5px;
  background: rgb(255 253 248 / 64%);
  box-shadow: none;
  transition: border-color 220ms ease, background 220ms ease, transform 300ms var(--brand-ease-out);
}

.faq-page .faq-item:hover {
  border-color: rgb(173 134 80 / 34%);
  background: var(--brand-white);
  transform: translateY(-2px);
}

.faq-page .faq-item h2 {
  margin: 0 0 13px;
  color: var(--brand-ink);
  font: 600 21px/1.5 var(--brand-serif);
}

.faq-page .faq-item p {
  color: var(--brand-muted);
  font-size: 16px;
  line-height: 1.85;
}

/* Daily clinic: a calm, useful evidence archive */
.daily-page .daily-hero,
.depth-page .depth-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgb(173 134 80 / 19%), transparent 29%),
    linear-gradient(128deg, #102d26 0%, #173f35 64%, #254d41 100%);
}

.daily-page .daily-hero::before,
.depth-page .depth-hero::before {
  content: none;
  background: none;
}

.daily-page .daily-hero::after,
.depth-page .depth-hero::after {
  position: absolute;
  z-index: -1;
  right: -130px;
  bottom: -270px;
  width: 680px;
  height: 680px;
  content: "";
  background: rgb(255 255 255 / 6%);
  -webkit-mask: url("/assets/rft-window-grid.svg?v=20260920b") center / contain no-repeat;
  mask: url("/assets/rft-window-grid.svg?v=20260920b") center / contain no-repeat;
}

.daily-page .daily-hero {
  padding: 104px 0 90px;
}

.daily-page .daily-hero h1,
.depth-page .depth-hero h1 {
  max-width: 900px;
  margin: 12px 0 24px;
  color: #fff;
  font-family: var(--brand-serif);
  font-size: clamp(46px, 4.9vw, 58px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0;
}

.daily-page .daily-hero :is(.eyebrow, .lead),
.depth-page .depth-hero :is(.eyebrow, .lead) {
  color: rgb(255 255 255 / 72%);
}

.daily-page .daily-hero .eyebrow,
.depth-page .depth-hero .eyebrow {
  color: #d8bd91;
}

.daily-page .daily-record-tools {
  padding: 22px;
  border: 1px solid var(--brand-line);
  border-radius: 18px 6px 18px 6px;
  background: var(--brand-paper);
  box-shadow: none;
}

.daily-page .daily-record-tools input {
  border-radius: 11px;
  background: #fff;
}

.daily-page .daily-record-filters button {
  border-radius: 999px;
}

.daily-page .daily-record-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.daily-page .daily-record-card {
  border: 1px solid var(--brand-line);
  overflow: hidden;
  border-radius: 18px 6px 18px 6px;
  background: #fff;
  box-shadow: none;
  transition: border-color 220ms ease, transform 220ms ease;
}

.daily-page .daily-record-card:hover {
  border-color: rgb(173 134 80 / 58%);
  transform: translateY(-3px);
}

.daily-page .daily-record-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.daily-page .daily-principles {
  gap: 0;
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
}

.daily-page .daily-principles article {
  min-height: 240px;
  padding: 32px;
  border: 0;
  border-right: 1px solid var(--brand-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.daily-page .daily-principles article:first-child {
  padding-left: 0;
}

.daily-page .daily-principles article:last-child {
  border-right: 0;
}

.daily-page .daily-gallery figure,
.daily-page .deferred-video {
  overflow: hidden;
  border-radius: 18px 6px 18px 6px;
}

/* Depth index */
.depth-page .depth-hero {
  padding: 106px 0 92px;
}

.depth-page .depth-actions a {
  border-color: rgb(255 255 255 / 28%);
}

.depth-page .depth-actions a:first-child {
  border-color: #d8bd91;
  color: var(--brand-ink);
  background: #d8bd91;
}

.depth-page .depth-callout,
.depth-page .depth-footer-card {
  border-radius: 18px 6px 18px 6px;
  box-shadow: none;
}

.depth-page .depth-callout {
  border-top: 3px solid var(--brand-brass);
}

.depth-page .depth-table {
  border-color: var(--brand-line);
}

.depth-page .depth-table th {
  background: #edf0e8;
}

.depth-page .depth-checklist {
  gap: 0;
  border-top: 1px solid var(--brand-line);
  border-left: 1px solid var(--brand-line);
}

.depth-page .depth-checklist li {
  border: 0;
  border-right: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
}

/* Footer and mobile utility */
.site-page > footer,
.home-v5 .site-footer {
  background: #0b211b;
}

.site-page > footer .footer-grid,
.home-v5 .footer-main {
  border-bottom-color: rgb(255 255 255 / 12%);
}

.site-page > footer a,
.site-page > footer span,
.site-page > footer p {
  color: #bdcbc6;
}

/* Hero motion is CSS-first; scroll motion below remains progressive through JS. */
@media (prefers-reduced-motion: no-preference) {
  .home-v5 .rft-home-hero::after {
    transform-origin: center;
    animation: rft-motif-breathe 12s ease-in-out infinite alternate;
  }

  .home-v5 .rft-home-hero-copy,
  .site-page .page-hero-copy,
  .daily-page .daily-hero > .wrap,
  .depth-page .depth-hero > .wrap {
    animation: rft-hero-copy-enter 560ms var(--brand-ease-out) both;
  }

  .home-v5 .rft-home-hero-media,
  .site-page .page-hero-panel,
  .site-page .doctor-identity-panel {
    animation: rft-hero-media-enter 620ms 85ms var(--brand-ease-out) both;
  }
}

@keyframes rft-motif-breathe {
  from {
    opacity: .72;
    transform: scale(.985);
  }

  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

@keyframes rft-hero-copy-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rft-hero-media-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.988);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.rft-motion-ready [data-rft-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 460ms var(--brand-ease-out),
    transform 460ms var(--brand-ease-out);
  transition-delay: var(--rft-reveal-delay, 0ms);
}

.rft-motion-ready [data-rft-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.rft-motion-ready [data-rft-motion="stagger"] {
  opacity: 1;
  transform: none;
  transition: none;
}

.rft-motion-ready [data-rft-motion="stagger"] > * {
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 440ms var(--brand-ease-out),
    transform 440ms var(--brand-ease-out);
}

.rft-motion-ready [data-rft-motion="stagger"].is-visible > * {
  opacity: 1;
  transform: none;
}

.rft-motion-ready [data-rft-motion="stagger"].is-visible > :nth-child(2) { transition-delay: 55ms; }
.rft-motion-ready [data-rft-motion="stagger"].is-visible > :nth-child(3) { transition-delay: 110ms; }
.rft-motion-ready [data-rft-motion="stagger"].is-visible > :nth-child(4) { transition-delay: 165ms; }
.rft-motion-ready [data-rft-motion="stagger"].is-visible > :nth-child(5) { transition-delay: 220ms; }
.rft-motion-ready [data-rft-motion="stagger"].is-visible > :nth-child(6) { transition-delay: 275ms; }
.rft-motion-ready [data-rft-motion="stagger"].is-visible > :nth-child(n + 7) { transition-delay: 330ms; }

@media (max-width: 1320px) {
  .home-v5 .rft-section[data-section-index]::before,
  .home-v5 .rft-contact[data-section-index]::before {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-page .unified-topbar .topnav {
    display: none;
  }

  .site-page .unified-topbar .mobile-menu {
    display: block;
    margin-left: auto;
  }

  .site-page .unified-topbar .mobile-menu summary {
    border-radius: 12px;
  }

  .site-page .unified-topbar .mobile-menu[open] nav {
    top: 64px;
    border-radius: 16px 6px 16px 6px;
  }

  .home-v5 .rft-home-hero-grid,
  .site-page .page-hero-grid {
    gap: 44px;
  }

  .home-v5 .rft-home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(315px, .7fr);
  }

  .site-page .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .site-page .page-hero-panel {
    max-width: 720px;
  }
}

@media (max-width: 800px) {
  .home-v5 .container,
  .site-page .wrap {
    width: min(100% - 36px, 1180px);
  }

  .home-v5 .rft-home-hero::after,
  .site-page :is(.page-hero, .site-hero)::after {
    right: -260px;
    bottom: -330px;
    width: 580px;
    height: 580px;
  }

  .home-v5 .rft-home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-v5 .rft-quick-shell {
    gap: 10px;
  }

  .home-v5 .rft-quick-shell > p {
    padding-bottom: 8px;
    border-bottom: 0;
  }

  .home-v5 .rft-quick-grid {
    gap: 8px;
  }

  .home-v5 .rft-quick-grid > a:nth-child(n) {
    border: 1px solid rgb(255 255 255 / 11%);
    border-radius: 14px;
  }

  .home-v5 .rft-section,
  .site-page .section,
  .depth-page .depth-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .faq-page .faq-filter-band {
    top: 66px;
  }

  .faq-page .faq-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .faq-page .faq-filters button {
    flex: 0 0 auto;
  }

  .faq-page .faq-list {
    grid-template-columns: 1fr;
  }

  .licenses-page #license-main .license-card {
    grid-template-columns: 1fr;
  }

  .licenses-page #license-main .license-card > figure {
    grid-column: 1;
    grid-row: auto;
    margin-top: 22px;
  }

  .daily-page .daily-record-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-page :is(.page-hero, .site-hero),
  .daily-page .daily-hero,
  .depth-page .depth-hero {
    padding-top: 60px;
    padding-bottom: 56px;
  }

  .site-page :is(.page-hero, .site-hero) h1,
  .daily-page .daily-hero h1,
  .depth-page .depth-hero h1 {
    font-size: clamp(34px, 9.7vw, 40px);
    line-height: 1.24;
  }

  .site-page .page-hero-grid {
    gap: 32px;
  }

  .doctor-page .doctor-status-row {
    grid-template-columns: 1fr;
  }

  .doctor-page .doctor-status-row > div,
  .doctor-page .doctor-status-row > div:first-child {
    min-height: 66px;
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--brand-line);
  }

  .doctor-page .doctor-status-row > div:last-child {
    border-bottom: 0;
  }

  .doctor-page .doctor-profile-chip {
    right: 10px;
    bottom: -12px;
  }

  .doctor-page .doctor-trust-grid {
    grid-template-columns: 1fr;
  }

  .doctor-page .doctor-trust-grid > div {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--brand-line);
  }

  .doctor-page .doctor-trust-grid > div:last-child {
    border-bottom: 0;
  }

  .doctor-page .doctor-bio-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .doctor-page .doctor-bio-portrait {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
  }

  .doctor-page .doctor-bio-portrait img {
    width: 120px;
    height: 100%;
    border-radius: 20px 0 0 6px;
    object-fit: cover;
  }

  .doctor-page .doctor-bio-name-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0 6px 20px 0;
    text-align: left;
  }

  .licenses-page .license-overview-grid {
    grid-template-columns: 1fr;
  }

  .licenses-page .license-overview-grid article,
  .licenses-page .license-overview-grid article:first-child {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--brand-line);
  }

  .licenses-page .license-overview-grid article:last-child {
    border-bottom: 0;
  }

  .licenses-page #license-main details.license-card {
    display: block;
    padding: 0;
  }

  .licenses-page #license-main details.license-card > :not(summary) {
    margin-right: 20px;
    margin-left: 20px;
  }

  .licenses-page #license-main details.license-card > figure {
    margin-top: 20px;
  }

  .daily-page .daily-record-grid {
    display: flex;
  }

  .daily-page .daily-principles {
    grid-template-columns: 1fr;
  }

  .daily-page .daily-principles article,
  .daily-page .daily-principles article:first-child {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--brand-line);
  }

  .daily-page .daily-principles article:last-child {
    border-bottom: 0;
  }

  .doctor-page .mobile-call { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .home-v5 .container,
  .site-page .wrap {
    width: min(100% - 32px, 1180px);
  }

  .home-v5 .rft-home-hero-copy h1 {
    font-size: clamp(34px, 9.5vw, 38px);
    line-height: 1.24;
  }

  .rft-signature-statement li {
    min-height: 48px;
    gap: 6px;
    padding: 0 8px;
    font-size: 10px;
    letter-spacing: 0;
  }

  .home-v5 .rft-direction-grid article:nth-child(n)::before {
    right: 12%;
    left: 52px;
    opacity: 1;
  }

  .home-v5 .rft-direction-grid article:first-child::before {
    opacity: 0;
  }

  .home-v5 .rft-home-hero-media {
    height: 390px;
  }

  .home-v5 .rft-home-hero-media::before {
    inset: 11px -11px -11px 11px;
  }

  .home-v5 :is(.rft-section-head h2, .rft-answers h2, .rft-contact h2, .rft-doctor-copy h2),
  .site-page .section > .wrap > h2,
  .site-page .section-head h2,
  .depth-page .depth-section h2 {
    font-size: 30px;
  }

  .site-page .page-hero-panel {
    padding: 22px 20px;
  }

  .faq-page .faq-filter-band {
    top: 66px;
  }

  .faq-page .faq-filters button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rft-motion-ready [data-rft-reveal],
  .rft-motion-ready [data-rft-reveal].is-visible,
  .rft-motion-ready [data-rft-motion="stagger"] > *,
  .rft-motion-ready [data-rft-motion="stagger"].is-visible > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body:is(.home-v5, .doctor-page, .licenses-page, .faq-page, .daily-page, .depth-page) *,
  body:is(.home-v5, .doctor-page, .licenses-page, .faq-page, .daily-page, .depth-page) *::before,
  body:is(.home-v5, .doctor-page, .licenses-page, .faq-page, .daily-page, .depth-page) *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
