/* KYH editorial skin. Shared by every route; content, grids and behavior stay intact. */
:root,
:root body,
:root body.home-3d {
  --ink: #1e293b;
  --muted: #586575;
  --paper: #fcfcfa;
  --line: rgba(30, 41, 59, .10);
  --gold: #d97706;
  --pale: #eef8f3;
  --emerald: #059669;
  --emerald-deep: #047857;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', Arial, sans-serif;
  --ease: cubic-bezier(.165, .84, .44, 1);
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, .10);
  --card-shadow-hover: 0 22px 44px -12px rgba(15, 55, 45, .18);
  --section-space: 96px;
}

html { scroll-behavior: smooth; scroll-padding-top: 120px; }
:root body { background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); }
:root body :is(h1,h2,h3,h4,h5,h6) {
  font-family: var(--serif);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 400;
  text-wrap: pretty;
}
:root body :is(p,button,input,select,textarea) { font-family: var(--sans); line-height: 1.7; }
:root body p { color: var(--muted); }
:root body em { color: var(--emerald-deep); }
:root body :is(.eyebrow,.dimension-eyebrow) { font-family: var(--sans); }
:root body .eyebrow { color: var(--emerald-deep); font-size: 11px; letter-spacing: .18em; line-height: 1.7; }
:root body :is(.lead,.dimension-lead) { font-size: 17px; line-height: 1.7; }
:root body :is(.prose p,.prose li) { color: #475569; line-height: 1.7; }
:root body .prose { font-size: 17px; line-height: 1.7; }
:root body .prose h2 { margin-top: 48px; }
:root body .prose a { color: var(--emerald-deep); text-decoration-thickness: 1px; text-underline-offset: .22em; }
:root body.home-3d :is(h2,h3) em { color: var(--emerald-deep); }
::selection { background: #059669; color: #fff; }

/* Preserve the existing column definitions and readable article measure. */
:root body .wrap { max-width: 1200px; margin-inline: auto; padding-inline: 32px; }
:root body :is(.section,.page-intro,.article-hero,.youtube-band,.start-next) {
  padding-block: var(--section-space);
}
:root body :is(.dimension-inner) { padding-block: var(--section-space); }
:root body :is(.library,.article-layout,.routine-layout,.watch-layout) { padding-bottom: var(--section-space); }
:root body .section-head { margin-bottom: 48px; gap: 32px; }
:root body .section-head > p { font-size: 15px; line-height: 1.7; }
:root body .info-page { padding-bottom: var(--section-space); }
:root body .planner-spotlight { max-width: 1200px; margin-inline: auto; }
:root body .guide-photo img { border-radius: 18px; }

/* Glass navigation, with the original logo and menu structure. */
:root body .topline {
  background: #eff6f2; color: #52665b;
  padding-inline: max(24px, calc((100% - 1136px) / 2));
  padding-block: 9px;
}
:root body .header {
  background: rgba(252,252,250,.90); color: var(--ink);
  border-bottom: 1px solid rgba(30,41,59,.07);
  box-shadow: 0 4px 24px -16px rgba(30,41,59,.25);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 16px max(24px, calc((100% - 1136px) / 2));
}
:root body .brandwords { color: var(--ink); border-color: var(--line); }
:root body .header nav a[aria-current=page] { color: var(--emerald-deep); }
:root body :is(.header nav a:hover,.header nav a:focus-visible) { color: var(--emerald-deep); }
:root body .header nav { font-size: 12px; }
:root body .original-brand-logo { border-radius: 50%; }

/* Use independent translate for lift so existing 3D transforms keep working.
   Inline editorial links use relative positioning without changing line wrapping. */
:root body :is(a,button,[role=button],summary,.article-card,.path-card,.topic,.world-card,
  .week-preview,.routine-form,.routine-empty,.routine-summary,.routine-day,.watch-art) {
  transition: all .4s var(--ease);
}
:root body :is(.prose a,.footer-note a,.dimension-signature a,.guide-photo figcaption a) {
  position: relative; top: 0;
}
:root body :is(button,.button) {
  border-radius: 50px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.05);
}
:root body .button,
:root body .header .button,
:root body.home-3d .dimension-primary,
:root body.home-3d .youtube-band .button.light {
  background: var(--emerald); color: #fff; border: 1px solid var(--emerald);
  border-radius: 50px; padding: 15px 25px; line-height: 1.7;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 18px -8px rgba(5,150,105,.45);
}
:root body .button.small { padding: 12px 20px; font-size: 11px; }
:root body .button.outline,
:root body .button.light {
  background: rgba(255,255,255,.8); color: var(--emerald-deep);
  border-color: #c1dccf; box-shadow: inset 0 1px 0 #fff, 0 4px 12px -8px #183b3433;
}
:root body :is(.search-open,.menu-toggle,.saved-nav,.save,.close) {
  min-width: 36px; min-height: 36px;
}
:root body .save[aria-pressed=true] { color: var(--emerald-deep); }
:root body .text-link { color: var(--emerald-deep); border-color: #b6d7c7; }
:root body :is(.text-button,.print-button) { color: var(--emerald-deep); }
:root body :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
  outline: 3px solid var(--emerald); outline-offset: 5px;
}
:root body :is(input,select,textarea) { accent-color: var(--emerald); }
:root body :is(.search-field,dialog input,.routine-form input,.routine-form select) {
  border-color: #ccd9d1; background: #fff; border-radius: 12px;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
:root body .search-field:focus-within {
  border-color: var(--emerald); box-shadow: 0 0 0 4px #05966914;
}
:root body .search-field input:focus-visible { outline: none; }
:root body .filters button.active { background: var(--emerald); color: #fff; }

/* Clean editorial cards. Image clipping belongs to the existing media wrapper. */
:root body :is(.article-card,.article-card.text-card,.path-card,.topic,.week-preview,
  .routine-form,.routine-empty,.routine-summary,.routine-day,.watch-art) {
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}
:root body :is(.article-card,.article-card.text-card,.path-card,.topic,.week-preview,
  .routine-form,.routine-empty,.routine-summary) {
  padding: 32px;
  background: #fff;
}
:root body .article-card { transform: none; }
:root body .card-image { border-radius: 12px; overflow: hidden; box-shadow: none; }
:root body :is(.card-image img,.world-card > img,.movement-image img) {
  transition: transform .4s var(--ease);
}
:root body .article-card h3 { font-size: 27px; line-height: 1.2; }
:root body .article-card > p { font-size: 14px; line-height: 1.7; }
:root body .article-card .card-meta > span { color: var(--emerald-deep); }
:root body .card-meta { font-size: 10px; letter-spacing: .08em; margin: 22px 0 12px; }
:root body .card-foot { font-size: 12px; color: var(--emerald-deep); padding-top: 20px; }
:root body .topic-grid { border: 0; gap: 18px; }
:root body .topic { min-width: 0; }
:root body .topic p { font-size: 13px; }
:root body .topic-number { color: var(--gold); }
:root body .path-number { color: var(--gold); }
:root body .world-card {
  border: 1px solid rgba(0,0,0,.05); border-radius: 20px;
  box-shadow: var(--card-shadow); overflow: hidden;
}
:root body .world-card > div { left: 32px; right: 32px; bottom: 32px; }
:root body .world-card:after { background: linear-gradient(transparent,rgba(15,35,30,.92)); }
:root body .world-card h3 { color: #fff; }
:root body .world-card .eyebrow { color: #e8f5ed; }

/* A quiet emerald / paper rhythm, without changing section order or grids. */
:root body .journal-section { background: #f1f6f3; }
:root body .discovery-section { background: linear-gradient(135deg,#f0f7f2,#fafbf8 65%,#fcf7eb); border-color: transparent; }
:root body .planner-spotlight { background: linear-gradient(125deg,#eef8f3,#f6f9f4); border-radius: 24px; }
:root body .planner-spotlight > div > p:not(.eyebrow) { font-size: 15px; }
:root body .week-preview { background: rgba(255,255,255,.9); backdrop-filter: blur(12px); }
:root body .week-preview .week-title { font-family: var(--serif); line-height: 1.2; letter-spacing: -.02em; }
:root body .week-preview .week-title em { color: var(--emerald-deep); }
:root body .week-preview i { color: var(--gold); }
:root body .network-section p:not(.eyebrow) { font-size: 15px; }
:root body .network-section aside { border-color: var(--line); }
:root body .trust-strip { background: #f0f5f1; color: #516254; border-color: transparent; }
:root body .trust-strip span:before { color: var(--gold); }
:root body .start-next { background: #edf7f1; }
:root body .journey-tabs { border-color: #dde8df; background: #ffffffa8; border-radius: 28px; }
:root body .journey-tabs button { color: #52675b; border-radius: 24px; }
:root body .journey-tabs button[aria-selected=true] { background: var(--emerald); color: #fff; box-shadow: 0 5px 16px #05966924; }
:root body .journey-copy .journey-subtitle { color: #98600e; }
:root body .journey-reading a { border-color: var(--line); }
:root body .journey-reading b { font-size: 13px; }
:root body .journey-reading small { color: var(--muted); font-size: 11px; }
:root body :is(.journey-step,.journey-reading a > span:last-child) { color: var(--gold); }
:root body :is(.collection-label,.collection-note,.discovery-footer > span) { color: #647268; }
:root body .discovery-footer a { color: var(--emerald-deep); }
:root body .book-orbit { border-color: #05966924; }

/* Retain a cinematic dark hero with readable light text and emerald CTAs. */
:root body .dimension-hero { background: #152c29; color: #f8faf9; }
:root body .dimension-hero:before {
  background: radial-gradient(ellipse at 78% 38%,#05966924,transparent 55%),
    radial-gradient(ellipse at 6% 100%,#d9770612,transparent 55%);
}
:root body .dimension-copy h1 { color: #f8faf9; line-height: 1.2; letter-spacing: -.02em; font-size: clamp(43px,4.8vw,70px); }
:root body .dimension-copy h1 em { color: #e3bc73; }
:root body .dimension-eyebrow { color: #8edbbe; font-size: 10px; }
:root body .dimension-eyebrow > span { background: var(--gold); }
:root body .dimension-lead { color: #c5d5cd; }
:root body .dimension-watch { color: #e7f3ed; }
:root body .dimension-watch > span { border-color: #a3d5bf55; }
:root body .dimension-signature p { color: #d6e5dd; }
:root body .dimension-signature a { color: #a8c3b5; }
:root body .signature-line { background: linear-gradient(var(--gold),var(--emerald)); }
:root body :is(.dimension-scroll,.dimension-foot,.scene-heading > span,.scene-instruction,.scene-orbit-label) { color: #a9c2b5; }
:root body .dimension-foot { border-color: #a8c5b71a; }
:root body :is(.scene-orbit-label b,.dimension-scroll span,.scene-tools button span) { color: #e3bc73; }
:root body :is(.motion-control,.pillar-button) { background: #ffffff08; color: #d4e5db; border-color: #c0e3d130; }
:root body .pillar-button[aria-pressed=true] { background: #05966930; border-color: #6ee7b766; color: #fff; }
:root body .scene-tools button { color: #bbd3c5; }
:root body .pillar-detail p { color: #bfd4c8; font-size: 12px; }
:root body .pillar-detail a { color: #98e4c4; font-size: 12px; }
:root body :is(.youtube-band,.watch-art) { background: radial-gradient(ellipse at 90% 0%,#1d5745,#172e29 70%); color: #fff; }
:root body .youtube-band .eyebrow { color: #a6dec4; }
:root body .youtube-band h2 em,:root body .watch-art h2 em { color: #e3bc73; }
:root body .youtube-band p,:root body .watch-art p { color: #c5d8cc; }
:root body .youtube-band .play-symbol { color: #e3bc73; border-color: #d9bb7155; }

/* Reading, search and planner surfaces, including generated planner results. */
:root body .takeaways { background: #eef8f2; border-left-color: var(--emerald); border-radius: 0 18px 18px 0; padding: 32px; }
:root body .takeaways .eyebrow { color: var(--emerald-deep); }
:root body .red-flags { background: #fff8ea; border-left-color: var(--gold); border-radius: 0 18px 18px 0; padding: 32px; }
:root body .article-disclaimer { background: #f1f5f2; color: #59675f; border-radius: 14px; }
:root body .initials { background: #e6f5ed; color: var(--emerald-deep); }
:root body .toc a { color: var(--muted); }
:root body .reading-progress { background: linear-gradient(90deg,var(--emerald),var(--gold)); }
:root body dialog { background: #fcfcfa; border: 1px solid #ffffffb3; border-radius: 24px; box-shadow: 0 30px 80px #122e3033; }
:root body dialog::backdrop { background: #152c2970; }
:root body :is(.planner-benefits,.field-help,.routine-profile,.scope-note) { color: var(--muted); }
:root body .routine-form legend { color: var(--ink); letter-spacing: -.02em; }
:root body .routine-form legend span { color: var(--gold); border-color: #ead8ba; }
:root body :is(.routine-summary ul,.exercise-blocks p,.routine-next li) { color: #475569; }
:root body .routine-metrics strong { color: var(--emerald-deep); }
:root body .routine-day summary { background: #f1f8f3; }
:root body .routine-day.rest summary { background: #fafbf8; }
:root body .day-inside { padding: 8px 32px 24px; }
:root body .exercise-blocks .exercise-rest { background: #f0f7f2; border-radius: 10px; }
:root body .routine-safety { background: #fff8ea; border-left-color: var(--gold); border-radius: 0 14px 14px 0; }
:root body .routine-notice:not(.urgent) { border-color: #e6cfaa; background: #fffaef; }

/* Divider gradients replace rules without adding markup or changing flow. */
:root body :is(.card-foot,.filter-bar,.article-byline,.discovery-footer,.footer-bottom) {
  border-top-color: transparent;
  background-image: linear-gradient(90deg,transparent,rgba(5,150,105,.18) 18%,rgba(217,119,6,.13) 80%,transparent);
  background-position: top; background-repeat: no-repeat; background-size: 100% 1px;
}
:root body .filter-bar { border-bottom-color: var(--line); }
:root body .page-intro:after { border-color: #05966916; box-shadow: 0 0 0 40px #05966905,0 0 0 80px #05966904,0 0 0 120px #05966903; }
:root body footer { background: #182d28; color: #d7e2dc; padding: 96px max(24px,calc((100% - 1136px) / 2)) 32px; }
:root body footer .brandwords { color: #f3f7f4; border-color: #cadfd22b; }
:root body footer p { color: #b6c8bc; }
:root body footer .footer-top > div > a:not(.brand) { font-size: 13px; margin-block: 14px; }
:root body footer .footer-top > div > b { color: #9bceaf; font-size: 10px; }
:root body footer .footer-note { font-size: 12px; }
:root body footer .footer-bottom { color: #afc3b6; font-size: 11px; border-color: transparent; }
:root body footer .footer-bottom { background-image: linear-gradient(90deg,transparent,#d1eadb30,transparent); }

@media (hover:hover) {
  :root body a:hover,:root body button:enabled:hover,:root body summary:hover { color: var(--emerald); translate: 0 -2px; }
  :root body :is(.prose a,.footer-note a,.dimension-signature a,.guide-photo figcaption a):hover { top: -2px; translate: none; }
  :root body .button:hover,:root body .header .button:hover,:root body.home-3d .dimension-primary:hover,
  :root body.home-3d .youtube-band .button.light:hover {
    background: var(--emerald-deep); color: #fff; border-color: var(--emerald-deep);
    transform: none; box-shadow: inset 0 1px 0 #ffffff30,0 12px 26px -10px #05966966;
  }
  :root body :is(.article-card,.path-card,.topic,.world-card,.week-preview,.routine-day,.watch-art):hover {
    box-shadow: var(--card-shadow-hover); border-color: #05966926;
  }
  :root body .article-card:hover { transform: none; translate: 0 -2px; }
  :root body .path-card:hover { translate: 0 -2px; }
  :root body .topic:hover { background: #f8fcf9; }
  :root body .article-card:hover .card-image img,:root body .world-card:hover > img,
  :root body .movement-image:hover img { transform: scale(1.03); }
  :root body .journey-tabs button:hover:not([aria-selected=true]) { background: #e7f4ed; }
  :root body .journey-tabs button[aria-selected=true]:hover,:root body .filters button.active:hover { color: #fff; background: var(--emerald-deep); }
  :root body .journey-reading a:hover { padding-left: 0; }
  :root body .save:hover { background: #ecfdf5; }
  :root body footer a:hover,:root body .dimension-hero a:not(.button):hover,
  :root body .dimension-hero button:hover { color: #6ee7b7; }
  :root body .world-card:hover h3 { color: #d1fae5; }
}

@media (min-width:1440px) { :root body { --section-space: 128px; } }
@media (max-width:1100px) {
  :root body .header { padding-inline: 24px; gap: 16px; }
  :root body .header nav { gap: 13px; font-size: 11px; }
  :root body .planner-spotlight { margin-inline: 24px; }
}
@media (max-width:760px) {
  :root body .wrap { padding-inline: 24px; }
  :root body .header { padding: 12px 20px; }
  :root body .header nav { background: #fcfcfaf7; color: var(--ink); border-color: var(--line); font-size: 15px; backdrop-filter: blur(16px); }
  :root body .header .brandwords { font-size: 7px; }
  :root body .dimension-copy h1 { font-size: clamp(40px,9vw,61px); }
  :root body .dimension-eyebrow { font-size: 8px; letter-spacing: .12em; }
  :root body .dimension-inner { gap: 48px; }
  :root body :is(.lead,.dimension-lead) { font-size: 16px; }
  :root body .section-head { margin-bottom: 32px; gap: 20px; }
  :root body .article-card h3 { font-size: 26px; }
  :root body .topic { padding: 26px; gap: 16px; }
  :root body .topic h3 { font-size: 23px; }
  :root body .planner-spotlight { margin-inline: 16px; padding-inline: 24px; }
  :root body :is(.routine-form,.routine-empty,.routine-summary,.week-preview) { padding: 24px; }
  :root body .routine-form :is(input,select) { font-size: 16px; }
  :root body .takeaways,:root body .red-flags { padding: 24px; }
  :root body .prose { font-size: 16px; }
  :root body .pillar-button { padding: 9px 11px; }
  :root body .network-section aside { border-color: var(--line); }
  :root body footer { padding-top: 96px; }
}

@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
  :root body a:hover,:root body button:enabled:hover,:root body summary:hover,
  :root body .article-card:hover,:root body .path-card:hover { translate: none; }
  :root body :is(.prose a,.footer-note a,.dimension-signature a,.guide-photo figcaption a):hover { top: 0; }
  :root body .article-card:hover .card-image img,:root body .world-card:hover > img,:root body .movement-image:hover img { transform: none; }
}
@media print {
  html { scroll-behavior: auto; }
  :root body { --section-space: 24px; background: #fff; color: #222; font-size: 12pt; }
  :root body .wrap { max-width: none; padding-inline: 0; }
  :root body :is(.article-card,.path-card,.topic,.week-preview,.routine-form,.routine-empty,.routine-summary,.routine-day,.watch-art) { box-shadow: none; }
  :root body :is(.article-layout,.routine-layout) { padding-bottom: 0; }
  :root body .dimension-hero,:root body .dimension-copy h1,:root body .dimension-lead,:root body .dimension-signature p { background: #fff; color: #222; }
  :root body .dimension-copy h1 { font-size: 36px; }
  :root body .prose { font-size: 12pt; }
  :root body a { color: inherit; }
}
