/* A learning studio, with the same reading scale in both desk and phone shells. */
#learnGuidesPanel.guides-studio { display: block; overflow-y: auto; min-height: 0; font-size: calc(16px / var(--ui-scale, 1)); line-height: 1.7; color: var(--ui-text); --guide-paper: var(--ui-surface); --week-paper: var(--ui-surface); --week-accent: #3b82f6; scrollbar-gutter: stable; }
#learnGuidesPanel[hidden], .guides-studio [hidden] { display: none !important; }
.guides-library, .guides-studio .learn-reader { max-width: 1700px; margin: 0 auto; }
.guides-library { padding: 0 24px 32px; }
.guides-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 42px; border-radius: 18px; background: radial-gradient(ellipse at 95% 0, #236266, transparent 65%), #123b3d; color: #f1fffb; }
.guides-hero h1 { margin: 8px 0 18px; font-size: 2.3em; line-height: 1.12; font-weight: 800; letter-spacing: -.045em; }
.guides-hero h1 span { color: #99f6d5; }
.guides-hero p { margin: 0; font-size: .9em; line-height: 1.7; color: #d2f3e9; }
.guides-studio .guides-eyebrow { margin: 0 0 8px; font-size: .65em; line-height: 1.5; letter-spacing: .15em; font-weight: 800; }
.guides-hero .guides-eyebrow { color: #a7e9d6; }
.guides-hero-art { flex: 0 0 31%; --week-accent: #99f6d5; --week-paper: #184c4e; text-align: center; }
.guides-hero-art svg { height: 190px; }
.guides-art-caption { display: block; font-size: .7em; color: #b7ebdf; letter-spacing: .04em; }
.guides-studio .guides-explore { display: inline-flex; align-items: center; gap: 28px; padding: 9px 16px; margin-top: 22px; border: 1px solid #9be6d580; border-radius: 8px; background: #ffffff0b; color: #fff; font-size: .78em; font-weight: 700; text-decoration: none; }
.guides-section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 30px 0 16px; }
.guides-section-head h2 { margin: 0; font-size: 1.45em; line-height: 1.2; letter-spacing: -.03em; }
.guides-section-head .guides-eyebrow { color: var(--text-2, var(--ui-muted)); }
.guides-section-head > span { font-size: .72em; color: var(--text-2, var(--ui-muted)); }
.guides-lesson, .guides-daily-empty { border: 1px solid var(--ui-border); border-radius: 12px; background: var(--guide-paper); }
.guides-lesson > summary { display: flex; align-items: center; gap: 18px; padding: 20px 24px; cursor: pointer; list-style: none; }
.guides-lesson > summary::-webkit-details-marker { display: none; }
.guides-lesson > summary strong { display: block; font-size: 1.1em; line-height: 1.45; }
.guides-lesson small { display: block; margin-top: 5px; font-size: .7em; color: var(--text-2, var(--ui-muted)); }
.guides-lesson-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: color-mix(in srgb, #0d9488 12%, var(--guide-paper)); color: var(--ui-text); font-size: 1.3em; }
.guides-expand { margin-left: auto; font-size: 1.2em; }
.guides-lesson[open] .guides-expand { transform: rotate(45deg); }
.guides-lesson-body { max-width: 78ch; margin: 0 auto; padding: 0 24px 24px; }
.guides-lesson-body h2 { font-size: 1.2em; margin: 26px 0 8px; }
.guides-lesson-body p { margin: 12px 0; }
.guides-daily-empty { display: flex; align-items: center; gap: 20px; padding: 22px 24px; }
.guides-daily-empty > span { font-size: 2em; color: #0d9488; }
.guides-daily-empty strong { font-size: 1em; }
.guides-daily-empty p { margin: 4px 0 0; max-width: 85ch; font-size: .85em; color: var(--text-2, var(--ui-muted)); }
.guides-studio .guides-continue { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 24px; padding: 20px 24px; border: 1px solid color-mix(in srgb, #0d9488 45%, var(--ui-border)); border-radius: 12px; background: color-mix(in srgb, #0d9488 7%, var(--guide-paper)); color: inherit; text-decoration: none; }
.guides-continue small, .guides-continue strong { display: block; }
.guides-continue small { font-size: .6em; letter-spacing: .1em; margin-bottom: 5px; }
.guides-paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.guides-studio button, .guides-studio input { font: inherit; }
.guides-path { padding: 0 16px 18px; min-width: 0; border: 1px solid var(--ui-border); border-radius: 12px; background: var(--guide-paper); color: inherit; text-align: left; cursor: pointer; }
.guides-path-art { display: block; margin: 0 -16px 12px; border-radius: 12px 12px 0 0; background: color-mix(in srgb, var(--week-accent) 8%, var(--guide-paper)); }
.guides-path-art svg { height: 102px; }
.guides-path strong { display: block; font-size: .95em; }
.guides-path > span:not(.guides-path-art) { display: block; min-height: 3.4em; margin: 6px 0 12px; font-size: .75em; color: var(--text-2, var(--ui-muted)); }
.guides-path small { font-size: .67em; }
.guides-path[aria-pressed="true"] { outline: 2px solid var(--accent, #2f6bff); outline-offset: 2px; }
.guides-search-row { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.guides-search-row label { display: flex; flex: 1; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--ui-border); border-radius: 9px; background: var(--guide-paper); }
.guides-search-row svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.guides-search-row input { width: 100%; min-width: 0; min-height: 46px; border: 0; background: transparent; color: inherit; outline: none; font-size: .85em; }
.guides-search-row label:focus-within { outline: 3px solid var(--accent, #2f6bff); outline-offset: 2px; }
.guides-studio .guides-clear, .guides-update button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--ui-border); border-radius: 8px; color: inherit; background: var(--guide-paper); cursor: pointer; font-size: .8em; }
.guides-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 18px; }
.guides-studio .guide-tile { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; gap: 0; border: 1px solid var(--ui-border); border-radius: 14px; background: var(--guide-paper); color: inherit; text-decoration: none; overflow: clip; }
.guide-tile-art { position: relative; background: color-mix(in srgb, var(--week-accent) 9%, var(--guide-paper)); }
.guide-tile-art svg { height: 130px; }
.guide-read-label { position: absolute; top: 12px; right: 12px; padding: 3px 8px; border-radius: 6px; background: var(--guide-paper); font-size: .65em; }
.guide-tile-copy { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px; }
.guide-tile-copy > small { font-size: .67em; color: var(--text-2, var(--ui-muted)); }
.guides-studio .guide-tile-copy > strong { font-size: 1.05em; line-height: 1.4; letter-spacing: -.02em; }
.guide-tile-copy > span { font-size: .8em; color: var(--text-2, var(--ui-muted)); }
.guide-tile-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ui-border); font-size: .65em; color: var(--text-2, var(--ui-muted)); }
.guides-note { margin: 20px 0 0; font-size: .72em; color: var(--text-2, var(--ui-muted)); }
.guides-empty { padding: 30px 20px; border: 1px dashed var(--ui-border); border-radius: 12px; font-size: .9em; }
.guides-update { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 18px; margin: 0 24px 14px; border: 1px solid var(--ui-border); border-radius: 10px; background: var(--guide-paper); font-size: .8em; }
.guides-studio .learn-reader { padding: 0 28px 32px; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.guides-studio .learn-article { max-width: 80ch; padding: 28px 38px; margin: 0 auto; border: 1px solid var(--ui-border); border-radius: 16px; background: var(--guide-paper); color: var(--ui-text); font-size: 1em; line-height: 1.8; overflow-wrap: anywhere; }
.guide-reader-top { position: sticky; top: 3px; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 8px; margin-bottom: 24px; background: var(--guide-paper); font-size: .72em; }
.guides-studio .guides-back { color: inherit; text-decoration: none; font-weight: 700; }
.guides-studio .learn-title { font-size: 2.15em; line-height: 1.2; letter-spacing: -.04em; margin: 12px 0 20px; }
.guides-studio .learn-meta { font-size: .67em; color: var(--text-2, var(--ui-muted)); }
.guide-deck { font-size: 1.05em; color: var(--text-2, var(--ui-muted)); margin: 18px 0 24px; }
.guide-takeaway-box { padding: 20px 24px; margin: 26px 0; border-left: 3px solid #0d9488; border-radius: 0 10px 10px 0; background: color-mix(in srgb, #0d9488 7%, var(--guide-paper)); }
.guide-takeaway-box ul, .guides-takeaways { margin: 8px 0 0; padding-left: 22px; }
.guide-takeaway-box li, .guides-takeaways li { margin: 6px 0; font-size: .9em; }
.guides-studio .guide-body h2 { margin: 32px 0 10px; font-size: 1.35em; line-height: 1.4; color: var(--ui-text); }
.guide-body p { margin: 12px 0; }
.guide-body :is(ul, ol) { padding-left: 24px; margin: 14px 0; }
.guide-body li { margin: 10px 0; }
.guide-body table { display: block; max-width: 100%; overflow-x: auto; }
.guide-reading-progress { position: sticky; top: 0; z-index: 2; height: 3px; margin: -28px -38px 26px; background: var(--ui-border); }
.guide-reading-progress span { display: block; height: 100%; width: 100%; background: #0d9488; transform: scaleX(0); transform-origin: left; }
.guide-contents { margin: 24px 0; padding: 16px 20px; border: 1px solid var(--ui-border); border-radius: 10px; font-size: .8em; }
.guide-contents > div { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; }
.guides-studio .guide-contents a { color: inherit; text-decoration: none; }
.guide-demo { margin: 32px 0; padding: 24px; border: 1px solid var(--ui-border); border-radius: 14px; background: color-mix(in srgb, #6366f1 5%, var(--guide-paper)); }
.guides-studio .guide-demo h2 { margin: 8px 0 12px; font-size: 1.3em; line-height: 1.35; }
.guide-demo p { font-size: .85em; }
.guide-demo-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.guide-demo-controls button, .guide-completion button { min-height: 44px; padding: 9px 16px; border: 1px solid var(--ui-border); border-radius: 8px; color: inherit; background: var(--guide-paper); cursor: pointer; font-size: .8em; font-weight: 700; }
.guide-demo-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 24px 0; list-style: none; counter-reset: stage; }
.guide-demo-stages li { counter-increment: stage; border: 1px solid var(--ui-border); border-radius: 8px; padding: 12px; font-size: .7em; text-align: center; }
.guide-demo-stages li::before { content: counter(stage); display: block; margin-bottom: 5px; font-size: 1.4em; font-weight: 800; }
.guide-demo-stages li[aria-current="step"] { background: #4549a5; color: #fff; }
.guide-results-example details { margin: 8px 0; padding: 12px 16px; border: 1px solid var(--ui-border); border-radius: 8px; background: var(--guide-paper); }
.guide-results-example summary { cursor: pointer; font-size: .85em; }
.guide-results-example summary strong { float: right; margin-left: 10px; }
.guide-split-example { margin: 20px 0; padding: 20px; background: var(--guide-paper); border: 1px solid var(--ui-border); border-radius: 10px; text-align: center; }
.guide-share-tokens { display: flex; justify-content: center; gap: 10px; min-height: 58px; margin-bottom: 14px; }
.guide-share-tokens i { display: block; width: 54px; height: 54px; border-radius: 12px; background: #6366c5; box-shadow: inset 0 0 0 5px #ffffff40; }
.guide-split-example > strong { font-size: .8em; }
.guide-glossary { padding: 18px 22px; margin: 28px 0; border: 1px solid var(--ui-border); border-radius: 10px; }
.guide-glossary summary { cursor: pointer; font-weight: 700; }
.guide-glossary summary span { float: right; font-size: .7em; font-weight: 400; }
.guide-glossary dl { margin-top: 18px; font-size: .85em; }
.guide-glossary dt { font-weight: 750; margin-top: 14px; }
.guide-glossary dd { margin: 4px 0 0; }
.guide-quiz { margin: 30px 0; padding: 24px; border: 1px solid var(--ui-border); border-radius: 14px; }
.guide-quiz h3 { margin: 10px 0 18px; font-size: 1.05em; line-height: 1.5; }
.guide-quiz-choices { display: flex; flex-direction: column; gap: 10px; }
.guide-quiz-choices button { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 14px; border: 1px solid var(--ui-border); border-radius: 9px; background: var(--guide-paper); color: inherit; cursor: pointer; text-align: left; font-size: .85em; }
.guide-quiz-choices button span { font-weight: 800; font-size: .85em; }
.guide-quiz-choices button[aria-pressed="true"] { border-color: #6366c5; background: color-mix(in srgb, #6366f1 10%, var(--guide-paper)); }
.guide-quiz-feedback { margin: 16px 0 6px; font-weight: 700; }
.guide-quiz-explanation { font-size: .88em; }
.guides-studio .guides-text-button { border: 0; background: transparent; padding: 10px 0; color: inherit; cursor: pointer; font-size: .8em; text-decoration: underline; }
.guide-completion { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 0; border-block: 1px solid var(--ui-border); }
.guide-completion > span { font-weight: 750; }
.guide-completion small { width: 100%; font-size: .65em; color: var(--text-2, var(--ui-muted)); }
.guide-completion button[aria-pressed="true"] { background: #0f766e; color: #fff; }
.guide-related, .guide-next { margin-top: 28px; }
.guides-studio :is(.guide-related, .guide-next) h2 { font-size: 1.2em; margin: 10px 0 16px; }
.guide-upcoming button, .guide-next a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 0; border: 0; border-bottom: 1px solid var(--ui-border); background: transparent; color: inherit; text-align: left; text-decoration: none; font-size: .85em; cursor: pointer; }
.guide-upcoming time { flex: 0 0 85px; font-size: .8em; }
.guide-upcoming button > span:last-child, .guide-next a > span:last-child { margin-left: auto; }
.guides-studio .guides-text-link { display: inline-block; margin-top: 16px; color: inherit; font-size: .85em; }
.guides-studio .learn-fine { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--ui-border); font-size: .68em; }
.guides-studio :is(a, button, summary):focus-visible { outline: 3px solid var(--accent, #2f6bff); outline-offset: 3px; }
.guides-studio .guide-tile:focus-visible, .guides-studio .guides-lesson > summary:focus-visible { outline-offset: -3px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .guides-path, .guide-tile { transition: transform 160ms ease, border-color 160ms ease; }
    .guides-path:hover, .guide-tile:hover { transform: translateY(-2px); border-color: var(--accent, #2f6bff); }
}
@media (max-width: 1000px) { .guides-library { padding-inline: 12px; } .guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .guides-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .guides-library { padding: 0 0 24px; }
    .guides-hero { position: relative; padding: 24px 20px; overflow: clip; }
    .guides-hero h1 { font-size: 1.85em; }
    .guides-hero > div:first-child { position: relative; z-index: 1; }
    .guides-hero .guides-eyebrow { font-size: .58em; }
    .guides-hero-art { position: absolute; right: -28px; top: 8px; width: 140px; opacity: .3; }
    .guides-hero-art svg { height: 130px; } .guides-art-caption { display: none; }
    .guides-section-head { align-items: start; flex-direction: column; gap: 7px; margin-top: 24px; }
    .guides-section-head h2 { font-size: 1.3em; }
    .guides-section-head > span { font-size: .65em; }
    .guides-lesson > summary, .guides-daily-empty { padding: 16px; gap: 12px; }
    .guides-lesson-icon { width: 34px; height: 34px; }
    .guides-lesson > summary strong { font-size: 1em; }
    .guides-lesson-body { padding-inline: 16px; }
    .guides-paths { gap: 10px; } .guides-path { padding: 0 12px 14px; } .guides-path-art { margin-inline: -12px; } .guides-path-art svg { height: 82px; }
    .guides-path strong { font-size: .85em; } .guides-path > span:not(.guides-path-art) { font-size: .7em; min-height: 5em; }
    .guides-search-row { align-items: stretch; flex-direction: column; }
    .guides-clear { align-self: start; }
    .guides-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .guide-tile-art svg { height: 108px; }
    .guide-tile-copy { padding: 18px; }
    .guides-studio .learn-reader { padding: 0 0 24px; }
    .guides-studio .learn-article { padding: 22px 18px; }
    .guide-reading-progress { margin: -22px -18px 20px; }
    .guides-studio .learn-title { font-size: 1.65em; }
    .guide-reader-top { align-items: start; flex-direction: column; gap: 6px; }
    .guide-takeaway-box, .guide-demo, .guide-quiz { padding: 18px; }
    .guide-demo-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guides-update { margin-inline: 0; align-items: start; flex-direction: column; }
    .guide-completion { flex-direction: column; align-items: start; }
}
