/* The accepted reading design. These selectors never style the wheel or another product area. */
[data-guided-preview], [data-guided-reading] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cg-accent: var(--cw-color, var(--sky-detail-accent, #b79acb));
  --cg-fill: color-mix(in srgb, var(--cg-accent) 5%, transparent);
  --cg-soft: color-mix(in srgb, var(--cg-accent) 14%, transparent);
  --cg-stroke: color-mix(in srgb, var(--cg-accent) 44%, transparent);
}
[data-guided-preview] {
  isolation: isolate;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--cg-accent) 21%, transparent) !important;
  border-radius: 23px;
  padding: 18px !important;
  background: linear-gradient(125deg, var(--cg-fill), transparent 68%), #100c19 !important;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}
[data-guided-preview] h4 {
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: 650 !important;
  font-size: 25px !important;
  line-height: 1.18 !important;
  letter-spacing: -.8px;
  max-width: 270px;
  margin: 12px 0 9px !important;
}
#screen [data-guided-preview]::after {
  content: attr(data-cw-house-hero);
  position: absolute;
  right: -5px;
  top: 10px;
  font-size: 180px;
  line-height: 1;
  font-weight: 700;
  color: var(--cg-accent);
  opacity: .025;
  pointer-events: none;
  z-index: -1;
}
#screen [data-guided-preview] .cw-house-area {
  font-size: 13px;
  line-height: 1.7;
  color: #b7aabd;
  max-width: 280px;
  margin: 0 !important;
}
[data-guided-preview] .cw-hero-top { margin: 0 !important; gap: 7px; }
[data-guided-preview] .cw-hero-emblem { width: 30px; height: 30px; flex-basis: 30px; border: 0; background: none; }
[data-guided-preview] .cw-hero-emblem svg { width: 23px; height: 23px; }
[data-guided-preview] .cw-kicker { font-size: 10px !important; letter-spacing: 1px; }
[data-guided-preview] .cw-static-label { font-size: 9px; line-height: 1.5; }
.cg-preview-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 12px; }
#screen [data-guided-preview] .cg-preview-facts .cw-story-source,
.cg-preview-facts .cc-placement-heading {
  display: flex; align-items: center; gap: 5px;
  flex: 0 1 auto;
  border: 1px solid #ffffff12 !important;
  background: #15101b66 !important;
  border-radius: 25px;
  min-height: 44px;
  padding: 3px 8px !important;
  font-size: 10px;
  color: var(--cw-source, var(--planet-color, #c8b9d4));
}
#screen [data-guided-preview] .cg-preview-facts .cw-story-source b { font-size: 10px !important; line-height: 16px; color: inherit; }
.cg-preview-facts .cc-placement-heading span { flex: 1; text-align: left; }
.cg-preview-facts .cc-placement-heading small,
#screen [data-guided-preview] .cg-preview-facts .cc-placement-copy small { display: none; }
.cg-preview-facts .cc-placement-heading i { font-style: normal; font-size: 20px; }
#screen [data-guided-preview] .cg-preview-facts .cw-story-source > span { font-size: 20px; width: 22px; flex: 0 0 22px; }
.cg-preview-cta {
  display: flex !important; align-items: center; justify-content: space-between;
  width: 100%; min-height: 44px;
  border: 0 !important; border-radius: 0 !important;
  padding: 12px 0 0 !important; margin: 0 !important;
  background: transparent !important; text-align: left;
  font-size: 13px !important; font-weight: 600; color: #f0e6f5 !important; white-space: normal;
  order: 10;
}
[data-guided-reading] { display: flex !important; flex-direction: column; gap: 0 !important; }
#why:has([data-guided-reading]) { background: #100c19; }
#why:has([data-guided-reading]) .modal-top { position: sticky; top: 0; z-index: 12; background: #100c19f5; padding-top: 7px; min-height: 58px; }
[data-guided-reading] > .cc-read-header,
[data-guided-reading] > .ar-hero,
[data-guided-reading] > .cw-read {
  border: 0 !important; border-radius: 0 !important; background: transparent !important;
  padding: 23px 0 0 !important; margin: 0 !important;
}
[data-guided-reading] > header h2,
[data-guided-reading] > header h1,
[data-guided-reading] > .cc-read-header h2,
[data-guided-reading] > .cc-read-header h1 {
  font-family: inherit !important; font-weight: 650 !important;
  font-size: 32px !important; line-height: 1.12 !important;
  letter-spacing: -1.15px; font-style: normal;
  margin: 12px 0 10px !important;
}
[data-guided-reading] > header > p { color: #c8bacf; font-size: 14px; line-height: 1.65; }
[data-guided-reading] .cc-read-emblem,
[data-guided-reading] .cw-read-symbol { border: 0 !important; background: transparent !important; width: 30px; height: 30px; }
.cg-jumps { display: flex; justify-content: space-between; border-bottom: 1px solid #ffffff12; gap: 12px; position: sticky; top: 58px; background: #100c19f5; z-index: 11; }
.cg-jumps button { min-width: 0; min-height: 44px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #8d809b; font: inherit; font-size: 10px; line-height: 1.5; padding: 6px 0 9px; }
.cg-jumps button[aria-current] { border-bottom-color: var(--cg-accent); color: #e8d4ee; }
.cg-chapter { border: 0 !important; padding: 22px 0 0 !important; margin: 0 !important; display: flex; flex-direction: column; gap: 15px; scroll-margin-top: 110px; }
.cg-chapter-title { display: flex; gap: 10px; align-items: baseline; font-size: 21px !important; line-height: 1.3 !important; letter-spacing: -.6px; margin: 0 0 9px !important; }
.cg-chapter-title > span:first-child { font-size: 10px; color: var(--cg-accent); letter-spacing: 0; flex: none; }
.cg-chapter > p { margin: 0 !important; font-size: 14px; line-height: 1.8; color: #b7aabd; }
.cg-chapter .ah-chapter, .cg-chapter .av-editorial, .cg-chapter .cc-read-chapter { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.cg-chapter .ah-everyday, .cg-chapter [data-read-chapter="everyday"] {
  border: 1px solid color-mix(in srgb, var(--cg-accent) 9%, transparent) !important;
  border-radius: 20px; padding: 18px !important;
  background: linear-gradient(130deg, var(--cg-fill), #b79acb04);
}
.cg-chapter .ah-helps, .cg-chapter .ah-watch { padding: 13px 0 !important; }
.cg-figure {
  --cg-accent: var(--cw-color, var(--sky-detail-accent, #b79acb));
  --cg-fill: color-mix(in srgb, var(--cg-accent) 5%, transparent);
  --cg-soft: color-mix(in srgb, var(--cg-accent) 14%, transparent);
  --cg-stroke: color-mix(in srgb, var(--cg-accent) 44%, transparent);
  margin: 18px -9px 3px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; background: radial-gradient(ellipse at 50% 48%, color-mix(in srgb, var(--cg-accent) 16%, transparent), transparent 68%);
}
.cg-story-art { display: block; width: 100%; height: 181px; overflow: visible; }
.cg-figure figcaption { font-size: 9px !important; line-height: 1.6; text-align: center; color: #8d809b; margin: -3px 0 13px; white-space: pre-line; }
.cg-compact { margin: -10px -4px -2px; }
.cg-compact .cg-story-art { height: 124px; }
.cg-thought { padding: 18px !important; display: grid; gap: 9px; background: linear-gradient(145deg, var(--cg-fill), transparent); border: 1px solid var(--cg-soft); border-radius: 20px; margin: 13px 0 18px !important; }
.cg-thought small { color: var(--cg-accent); font-size: 8px !important; font-weight: 600; letter-spacing: 1.7px; line-height: 1.7; }
.cg-thought p { font: inherit; font-size: 17px; font-weight: 500; line-height: 1.5; letter-spacing: -.25px; color: #ecdfef; margin: 0 !important; }
[data-guided-preview] .cg-compact-thought { display: flex; align-items: flex-start; gap: 9px; border: 0; border-top: 1px solid #ffffff12; border-radius: 0; background: transparent; padding: 11px 0 0 !important; margin: 0 !important; }
[data-guided-preview] .cg-thought p { font-size: 12px !important; line-height: 1.6 !important; letter-spacing: 0; }
.cg-thought-mark { color: var(--cg-accent); font-size: 14px; line-height: 21px; }
.cg-disclosure { border-top: 1px solid #ffffff12; padding-top: 4px; }
.cg-disclosure summary { min-height: 46px; display: flex; align-items: center; font-size: 12px; color: #c6b2d5; cursor: pointer; }
.cg-disclosure summary:after { content: '+'; margin-left: auto; font-size: 21px; }
.cg-disclosure[open] summary:after { content: '−'; }
.cg-preview-premium { order: 9; }
.cg-plus-tag { margin-left: 8px; border: 1px solid #d9c08a44; border-radius: 4px; padding: 1px 4px; color: #ddc995; font-size: 8px; letter-spacing: 1px; }
.cg-preview-premium .cw-atlas-native-depth { margin: 0 0 12px; padding: 12px 0 0; }
.cg-preview-premium .cw-atlas-native-depth h4 { font-size: 18px !important; }
[data-guided-reading] .sr-journey-step { border: 0; padding: 0; background: transparent; }
[data-guided-reading] .sr-step-marker, [data-guided-reading] .sr-step-kicker { display: none; }
.cg-figure > .av-contact, .cg-figure > .sky-pair-scene { width: 100%; max-width: 100%; margin: 0; box-sizing: border-box; }
.cg-figure > .av-cluster-orbit { max-width: 100%; margin: 0; }
.cg-figure > .cw-asc-horizon { width: 100%; margin: 0; }
[data-guided-reading] button:focus-visible, [data-guided-preview] button:focus-visible { outline: 2px solid #cbb0ec; outline-offset: 3px; }
@media (max-width: 350px) {
  [data-guided-preview] { padding: 16px !important; }
  [data-guided-preview] h4 { font-size: 24px !important; }
  [data-guided-reading] > header h1, [data-guided-reading] > header h2 { font-size: 29px !important; letter-spacing: -.9px; }
  .cg-jumps { gap: 6px; }
  .cg-story-art { height: 165px; }
  .cg-compact .cg-story-art { height: 124px; }
}
@media (prefers-reduced-motion: reduce) { [data-guided-reading] * { scroll-behavior: auto !important; } }
/* Keep the open reading canvas independent of the host screen's atmosphere. */
#why:has([data-guided-reading]) { isolation: isolate; background: #100c19 !important; background-image: none !important; }
#why:has([data-guided-reading])::before, #why:has([data-guided-reading])::after,
:is(#why,#screen) [data-guided-reading]::before, :is(#why,#screen) [data-guided-reading]::after,
:is(#why,#screen) [data-guided-reading] > header::after, :is(#why,#screen) [data-guided-reading] .cc-read-watermark { display: none !important; }
#why:has([data-guided-reading]) .modal-top { background: #100c19 !important; }
:is(#why,#screen) [data-guided-reading] { padding: 0 23px 24px !important; background: transparent !important; }
:is(#why,#screen) [data-guided-reading] .cg-jumps { background: #100c19 !important; }
:is(#why,#screen) [data-guided-reading] > header { gap: 10px; overflow: visible; }
:is(#why,#screen) [data-guided-reading] .cc-read-identity { gap: 8px; }
:is(#why,#screen) [data-guided-reading] .cc-read-identity::before { content: ''; width: 16px; height: 1px; background: var(--cg-accent); opacity: .7; flex: 0 0 16px; }
:is(#why,#screen) [data-guided-reading] .cc-read-identity > small { font-size: 9px; letter-spacing: 1.6px; font-weight: 600; }
:is(#why,#screen) [data-guided-reading] .cc-read-emblem { order: 2; flex: 0 0 44px; width: 44px; min-height: 44px; margin: -12px 0; }
#screen [data-guided-preview] .cg-preview-facts .cw-story-source,
#screen [data-guided-preview] .cg-preview-facts .cc-placement-heading { width: auto !important; }
.cg-key-insight { font-size: 13px; line-height: 1.6; padding: 12px 0 18px; color: #e0d3e7; border-bottom: 1px solid #ffffff12; }
.cg-key-insight b { color: var(--cg-accent); font-weight: 600; }
:is(#why,#screen) [data-guided-reading] .cg-scene-marker { display: flex; align-items: center; justify-content: space-between; color: var(--cg-accent); margin-bottom: 12px; }
:is(#why,#screen) [data-guided-reading] .cg-scene-marker > small { font-size: 8px; letter-spacing: 1.5px; }
.cg-scene-art { position: relative; width: 42px; height: 38px; opacity: .8; }
.cg-scene-art::before,.cg-scene-art::after { content:''; position:absolute; width:24px; height:18px; border:1px solid var(--cg-stroke); border-radius:8px; right:-2px; bottom:0; }
.cg-scene-art::after { right:13px; bottom:12px; }
:is(#why,#screen) [data-guided-reading] :is(.ah-everyday,[data-read-chapter="everyday"]) :is(.ah-chapter-icon,.cc-read-chapter-icon) { display: none; }
:is(#why,#screen) [data-guided-reading] :is(.ah-everyday,[data-read-chapter="everyday"]) :is(.cw-razem-eyebrow, .cc-read-chapter-heading > small) { font-size: 17px; line-height: 23px; font-weight:600; letter-spacing:-.4px; color:#f0e8f5; }
:is(#why,#screen) [data-guided-reading] :is(.ah-helps,.ah-watch) :is(.ah-chapter-icon,.cc-read-chapter-icon) { width:22px; height:22px; flex-basis:22px; background:none; border:0; }
:is(#why,#screen) [data-guided-reading] :is(.ah-helps,.ah-watch) > p { margin-left:33px !important; }
:is(#why,#screen) [data-guided-reading] :is(.ah-helps,.ah-watch) :is(.cw-razem-eyebrow,.cc-read-chapter-heading > small) { font-size:13px; letter-spacing:0; }
.cg-figure-labels { display:flex; gap:16px; width:100%; padding:0 38px 4px; box-sizing:border-box; margin-top:-15px; }
.cg-figure-labels span { flex:1; min-width:0; text-align:center; color:#b7aabd; font-size:8px; line-height:11px; letter-spacing:.7px; overflow-wrap:anywhere; }
.cg-compact .cg-figure-labels { margin-top:-12px; padding-bottom:0; }
:is(#why,#screen) [data-guided-reading] .cg-role { display:flex; align-items:center; gap:12px; padding:10px 0; margin:0; border-bottom:1px solid #ffffff09; }
:is(#why,#screen) [data-guided-reading] .cg-role>.cw-razem-link { width:44px; height:44px; min-width:44px; min-height:44px; border:1px solid color-mix(in srgb,var(--cg-role-color) 20%,transparent); border-radius:50%; background:color-mix(in srgb,var(--cg-role-color) 8%,transparent); font-size:30px; padding:0; display:flex; align-items:center; justify-content:center; }
:is(#why,#screen) [data-guided-reading] .cg-role>:is(.cw-body-row,.av-evidence-link) { flex:1; min-width:0; min-height:44px; margin:0; padding:0; border:0; border-radius:0; background:none; text-align:left; }
:is(#why,#screen) [data-guided-reading] .cg-role>:is(.cw-body-row,.av-evidence-link)>span:first-child { min-width:0; flex:1; }
:is(#why,#screen) [data-guided-reading] .cg-role :is(strong,b) { color:var(--cg-role-color); font-size:12px; line-height:19px; font-weight:600; }
:is(#why,#screen) [data-guided-reading] .cg-role-summary { display:block; color:#b7aabd; font-size:12px; line-height:20px; margin-top:4px; }
:is(#why,#screen) [data-guided-reading] .cg-role-context { display:block; color:#8d809b; font-size:10px; line-height:17px; margin-top:4px; }
:is(#why,#screen) [data-guided-reading] .cg-role-sign { border-radius:15px; padding:13px; background:#b79acb0b; font-size:12px; line-height:20px; }
[data-guided-reading] .cg-experiment { border:0!important; border-left:2px solid #87bdb94d!important; border-radius:0!important; background:transparent!important; padding:9px 0 9px 14px!important; margin:12px 0!important; }
[data-guided-reading] .cg-experiment>small { display:block; font-size:8px!important; line-height:15px; letter-spacing:1.8px; color:#87bdb9; margin-bottom:10px; }
[data-guided-reading] .cg-experiment>p { font-size:14px!important; line-height:23px!important; color:#cec2d6!important; font-weight:400!important; margin:0!important; }

/* Personal Atlas WHY is a full page; keep its toolbar on the actual screen scroller. */
#screen .sky-screen:has([data-guided-reading]) { overflow: visible; background: #100c19; isolation: isolate; }
#screen .sky-screen:has([data-guided-reading])::before,
#screen .sky-screen:has([data-guided-reading])::after { display: none; }
#screen .sky-screen:has([data-guided-reading]) > .sky-detail-top { position: sticky; top: 0; z-index: 12; min-height: 58px; background: #100c19; }
#screen .sky-detail-body[data-guided-reading] { padding: 0 23px 24px !important; background: #100c19; }
#screen [data-guided-reading] .cc-read-watermark,
#screen [data-guided-reading] > header::after { display: none !important; }
#screen [data-guided-reading] .cg-jumps { background: #100c19; }
/* clip preserves the phone frame without introducing a non-scrolling sticky ancestor. */
.device:has(#screen [data-guided-reading]) { overflow: clip !important; }
#screen:has([data-guided-reading]),
#screen .sky-screen:has([data-guided-reading]) { background: #100c19 !important; }
#screen:has([data-guided-reading])::before,
#screen:has([data-guided-reading])::after { display: none !important; }
