/* v42 human factors / accessibility / reading comfort layer */
:root{
  --hf-focus:#6547a8;
  --hf-focus-soft:rgba(101,71,168,.18);
  --hf-text:#5f5668;
  --hf-muted:#736b7a;
  --hf-purple:#7659a7;
}
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  scroll-padding-top:96px;
}
body{
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
[id]{scroll-margin-top:104px}
:where(a,button,input,textarea,select,summary,[tabindex]):focus-visible{
  outline:3px solid var(--hf-focus)!important;
  outline-offset:3px!important;
  box-shadow:0 0 0 5px rgba(255,255,255,.92),0 0 0 8px var(--hf-focus-soft)!important;
}
:where(button,input,textarea,select,summary){font:inherit}
:where(button,[role="button"],summary,input[type="button"],input[type="submit"],input[type="reset"]){touch-action:manipulation}
.hf-skip{
  position:fixed;left:12px;top:10px;z-index:9999;
  transform:translateY(-140%);opacity:0;
  padding:11px 16px;border-radius:10px;background:#fff;color:#4f3d75;
  border:2px solid #7456ad;text-decoration:none;font-size:15px;
  box-shadow:0 8px 28px rgba(70,51,105,.18);
}
.hf-skip:focus{transform:none;opacity:1}
p,li{overflow-wrap:anywhere}

/* Muted text must remain readable; keep the soft palette without making it faint. */
.seo-page{--seo-muted:#756c7d}
.seo-kicker,.seo-guide-card small{color:#725695!important}
.seo-guide-card span,.seo-mini p,.seo-ref,.seo-byline,.seo-inline-author,.seo-updated,.seo-footer,.seo-hub-guides>p,.knowledge-seo-guides>p{color:#716878!important}
.seo-guide-card em,.seo-mini a{color:#68449f!important}
.seo-breadcrumbs{color:#716878!important}

/* Guide cards: make the whole target feel interactive and scannable. */
.seo-guide-card{transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.seo-guide-card:hover{transform:translateY(-2px);border-color:#cbbbe2;box-shadow:0 15px 34px rgba(91,68,134,.10)}
.seo-guide-card strong{text-wrap:pretty}

/* Homepage: main reading text should never be micro-copy on phones. */
.home-brand small{font-size:11px!important;color:#746681!important}
.service-item p,.path-card p,.support-card-copy p,.home-check-copy>p:not(.home-check-eyebrow),.guidance-copy p{color:#6f6776!important}
.hero-eyebrow,.home-check-eyebrow{color:#765b9d!important}
.hero-check-note,.home-check-action small{color:#756d7d!important}
.footer-row small{font-size:11px!important;color:#746b7b!important}

/* Knowledge landing: reduce decorative height and increase actual reading size. */
.choice p{color:#6d6477!important}
.bottom-note{color:#756c7e!important}

/* Public knowledge lists */
.section-title p,.hint{color:#746b7b!important}
.section-count{font-size:13px;color:#756b82;letter-spacing:.02em}
.article-card p{color:#6d6574!important}
.article-card .read{color:#67469d!important}

/* Public article pages */
.back{min-height:42px;display:inline-flex;align-items:center}
.lead{color:#6e6677!important}
.content p,.article-body p{color:#5d5663!important}
.article-links a{min-height:42px;display:flex;align-items:center}

/* Relationship check: stronger readability and clearer selected/focus states */
.screen-eyebrow,.question-number{color:#73589a!important}
.intro-copy,.question-help,.consultation-brief p,.consultation-reason-body p,.result-intro,.result-guidance>p{color:#6f6875!important}
.intro-benefit span,.intro-note,.processing-inner small,.result-guidance small{color:#756e7b!important}
.choice-prompt{font-size:14px!important;color:#564d60!important}
.choice-grid span{font-size:15px!important}
.choice-grid input:focus-visible+span{outline:3px solid var(--hf-focus)!important;outline-offset:2px!important;box-shadow:0 0 0 4px var(--hf-focus-soft)!important}
.text-field label,.other-field label{font-size:15px!important}
.text-field em{font-size:13px!important;color:#766f7a!important}
.text-field textarea,.other-field textarea,.answer-textarea,.answer-input{font-size:16px!important}
.example-box p{font-size:14px!important;color:#6f6876!important}
.example-box strong{color:#71589b!important}
.form-error{font-size:14px!important}
.result-row span{color:#725896!important;font-size:13px!important}
.result-row strong,.result-row p{font-size:15px!important}
.restart-button{min-height:44px;padding:0 12px;font-size:14px!important}
.check-footer{font-size:13px!important;color:#716879!important}
.consultation-reason summary{min-height:44px;font-size:14px!important;color:#6d519c!important}
.consultation-reason-body p{font-size:14px!important}

/* VIP/login: enough size and keyboard clarity */
.login-panel input[type="password"]{font-size:16px!important;min-height:48px}
.login-panel button{min-height:48px}

/* Interactive summaries and controls */
summary{scroll-margin-top:100px}
.music-toggle{min-width:44px;min-height:44px}

@media(max-width:780px){
  html{scroll-padding-top:78px}
  [id]{scroll-margin-top:84px}
  .home-hero .hero-text{font-size:16px!important;line-height:1.88!important}
  .home-hero .hero-eyebrow{font-size:12px!important;letter-spacing:.14em!important}
  .service-item p{font-size:14px!important;line-height:1.7!important}
  .path-card p,.support-card-copy p,.home-check-copy>p:not(.home-check-eyebrow),.guidance-copy p{font-size:15px!important;line-height:1.82!important}
  .home-check-points span{font-size:13px!important;line-height:1.5!important}
  .hero-check-note,.home-check-action small{font-size:13px!important}
  .support-link,.card-link,.guidance-btn{font-size:14px!important;min-height:44px!important;display:inline-flex!important;align-items:center!important}
  .home-brand small{font-size:11px!important}

  .seo-back,.seo-breadcrumbs{font-size:14px!important}
  .seo-back{min-height:44px;display:inline-flex;align-items:center}
  .seo-kicker{font-size:13px!important}
  .seo-card p,.seo-card li{font-size:16px!important;line-height:1.9!important}
  .seo-guide-card{padding:20px 18px!important}
  .seo-guide-card small,.seo-guide-card span,.seo-guide-card em{font-size:14px!important}
  .seo-guide-card strong{font-size:19px!important;line-height:1.5!important}
  .seo-btn{min-height:48px!important;font-size:15px!important}
  .seo-faq summary{min-height:48px;display:flex;align-items:center;font-size:16px!important;line-height:1.55}

  .chooser{padding-top:46px!important}
  .choice{min-height:210px!important;padding:24px 20px 21px!important}
  .choice p{font-size:15px!important;line-height:1.75!important;min-height:0!important}
  .choice h2{font-size:22px!important;margin-bottom:10px!important}
  .choice .arrow{width:42px!important;height:42px!important;margin-top:15px!important}
  .hint{font-size:15px!important;line-height:1.75!important}

  .article-card p{font-size:15px!important;line-height:1.78!important}
  .section-title p{font-size:14px!important;line-height:1.65!important}
  .hint{font-size:14px!important}
  .quick a{min-height:48px!important;font-size:14px!important;display:flex;align-items:center;justify-content:center}
  .mobile-more-btn{font-size:14px!important}

  .intro-copy{font-size:15px!important;line-height:1.85!important}
  .intro-benefit span,.intro-note{font-size:14px!important}
  .question-help{font-size:14px!important}
  .choice-grid span{font-size:16px!important;line-height:1.6!important}
  .consultation-brief p,.consultation-reason-body p{font-size:14px!important;line-height:1.82!important}
  .result-intro{font-size:15px!important}
  .result-guidance>p{font-size:15px!important}
  .music-label{font-size:13px!important}
}

@media(max-width:390px){
  .home-hero .hero-copy h1{font-size:30px!important}
  .seo-hero h1{font-size:31px!important;line-height:1.34!important}
  .article-title{font-size:30px!important}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    transition-delay:0ms!important;
  }
  .title,.question,.hint,.choices,.bottom-note{opacity:1!important;transform:none!important}
}

@media(prefers-contrast:more){
  body{color:#40394b}
  .seo-card,.seo-guide-card,.article-card,.question-card{border-color:#a99ab8!important}
  a{ text-decoration-thickness:2px }
}

/* Learning dashboards: status text is secondary, not disposable. */
.learning-local-note,.learning-progress-meta,.learning-mini span,.update-release-head time,
.knowledge-learning-copy small,.knowledge-local-note,.knowledge-progress-meta,.knowledge-update-release-head time,.knowledge-reader-status button{
  font-size:12px!important;color:#746b7b!important;line-height:1.6!important;
}
.update-summary-copy p,.knowledge-update-copy p{font-size:14px!important;color:#706777!important}
.update-new-dot,.learning-read-badge,.learning-new-badge,.knowledge-read-badge,.knowledge-new-badge{font-size:11px!important}

/* Healing / privacy / fortune support text */
.side-phase-nav a,.healing-page .nav-line{font-size:13px!important}
.fortune-disclaimer,.step-head small,.breath-orb small,.result-kicker,.sample-badge{font-size:12px!important;color:#74697d!important}
.legal-footer span,.contact-card span{font-size:12px!important;color:#716779!important}

@media(max-width:780px){
  .learning-progress-meta,.knowledge-progress-meta,.learning-local-note,.knowledge-local-note{font-size:13px!important}
  .side-phase-nav a{min-height:44px;display:flex;align-items:center;font-size:14px!important}
  .fortune-disclaimer{font-size:13px!important;line-height:1.7!important}
}
