/* Theme pages share one centred reading column; access and progress stay in JS. */
.free-home-modern #discoveryTheme{
  --theme-paper:#fffdf8;
  --theme-wash:#edf2e9;
  --theme-line:#dce3d7;
  --theme-ink:#193f36;
  --theme-muted:#5c7062;
  --theme-gold:#80622c;
  box-sizing:border-box;
  width:100%;
  max-width:560px;
  min-width:0;
  margin:0 auto;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  color:var(--theme-ink);
}
.free-home-modern #discoveryTheme>*,
.free-home-modern #discoveryTheme .journey-step>*{min-width:0;max-width:100%}
.free-home-modern #discoveryTheme>.journey-back{
  margin:0 0 12px;
  min-height:44px;
  padding:7px 2px;
  font:500 .8125rem/1.5 system-ui,sans-serif;
  color:var(--theme-muted);
}
.free-home-modern #discoveryTheme>.journey-theme-heading{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  column-gap:13px;
  row-gap:5px;
  padding:21px;
  margin:0;
  border:1px solid var(--theme-line);
  border-radius:21px;
  background:var(--theme-paper);
  color:var(--theme-ink);
  box-shadow:none;
}
.free-home-modern #discoveryTheme .theme-heading-top{display:contents}
.free-home-modern #discoveryTheme .theme-heading-top>.journey-theme-picture{
  grid-column:1;
  grid-row:1/3;
  align-self:center;
  width:42px;
  height:46px;
  margin:0;
  background:var(--theme-wash);
  border:0;
  border-radius:14px;
  color:var(--theme-ink);
}
.free-home-modern #discoveryTheme .journey-theme-picture svg{width:26px;height:26px}
.free-home-modern #discoveryTheme .theme-heading-top>.discovery-kicker{
  grid-column:2;
  grid-row:1;
  align-self:end;
  margin:0;
  font:650 .6875rem/1.5 system-ui,sans-serif;
  letter-spacing:.075em;
  color:var(--theme-muted);
}
.free-home-modern #discoveryTheme .journey-theme-heading>h2{
  grid-column:2;
  grid-row:2;
  margin:0;
  font:600 clamp(1.625rem,5.7vw,2rem)/1.15 Georgia,serif!important;
  letter-spacing:-.035em;
  text-wrap:balance;
  overflow-wrap:break-word;
  color:var(--theme-ink);
}
.free-home-modern #discoveryTheme .journey-theme-heading>p{
  grid-column:1/-1;
  max-width:none;
  margin:11px 0 0;
  font:.875rem/1.6 system-ui,sans-serif;
  color:var(--theme-muted);
}
.free-home-modern #discoveryTheme .theme-facts{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px 11px;
  margin:13px 0 0;
  padding:12px 0 0;
  border-top:1px solid var(--theme-line);
  font:500 .75rem/1.5 system-ui,sans-serif;
  color:var(--theme-muted);
}
.free-home-modern #discoveryTheme .theme-facts>span+span:before{margin-right:11px}
.free-home-modern #discoveryTheme .theme-progress{
  grid-column:1/-1;
  flex-wrap:wrap;
  gap:8px 12px;
  margin:12px 0 0;
}
.free-home-modern #discoveryTheme .theme-progress>small{font-size:.75rem;color:var(--theme-muted)}
.free-home-modern #discoveryTheme .theme-path-heading{
  gap:7px 12px;
  margin:24px 2px 12px;
}
.free-home-modern #discoveryTheme .theme-path-heading>h3{
  margin:0;
  font:600 1.375rem/1.3 Georgia,serif;
  letter-spacing:-.025em;
  color:var(--theme-ink);
}
.free-home-modern #discoveryTheme .theme-path-heading>span{font:.75rem/1.5 system-ui,sans-serif;color:var(--theme-muted)}
.free-home-modern #discoveryTheme .theme-course-list{
  display:grid;
  gap:11px;
  margin:0;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  overflow:visible;
}
.free-home-modern #discoveryTheme .theme-course-list>.journey-step{
  display:grid;
  grid-template-columns:28px minmax(0,1fr) auto;
  align-items:center;
  gap:10px 12px;
  width:100%;
  height:auto;
  min-height:88px;
  padding:17px 16px;
  margin:0;
  border:1px solid var(--theme-line);
  border-radius:18px;
  background:var(--theme-paper);
  color:var(--theme-ink);
  text-align:left;
  box-shadow:none;
}
.free-home-modern #discoveryTheme .theme-course-list>.theme-lesson-included{border-color:#b9cbb5}
.free-home-modern #discoveryTheme .journey-step>.journey-step-copy{display:block;min-width:0}
.free-home-modern #discoveryTheme .journey-step strong{
  display:block;
  font:600 1.1875rem/1.3 Georgia,serif;
  letter-spacing:-.02em;
  color:var(--theme-ink);
}
.free-home-modern #discoveryTheme .journey-step small{font:.75rem/1.5 system-ui,sans-serif;color:var(--theme-muted);margin-top:5px}
.free-home-modern #discoveryTheme .journey-step>.journey-step-number{
  align-self:start;
  margin-top:1px;
  width:28px;
  height:28px;
  border-color:var(--theme-line);
  background:var(--theme-wash);
  color:var(--theme-muted);
  font:.75rem/1 system-ui,sans-serif;
}
.free-home-modern #discoveryTheme .journey-step.is-complete>.journey-step-number{background:#193f36;border-color:#193f36;color:#fffdf8}
.free-home-modern #discoveryTheme .journey-step>.journey-step-state{
  align-self:center;
  max-width:96px;
  font:500 .75rem/1.4 system-ui,sans-serif;
  white-space:normal;
  color:var(--theme-muted);
}
.free-home-modern #discoveryTheme .theme-lesson-included:not(.is-complete)>.journey-step-state{
  align-self:start;
  margin-top:0;
  padding:8px 10px;
  background:#193f36;
  color:#fffdf8;
  border-radius:12px;
}
.free-home-modern #discoveryTheme .journey-step-state .access-tag{font:500 .6875rem/1.5 system-ui,sans-serif;color:var(--theme-gold)}
.free-home-modern #discoveryTheme .theme-lesson-example{
  margin-top:11px;
  padding-top:10px;
  border-color:var(--theme-line);
  font:.75rem/1.55 system-ui,sans-serif;
  color:var(--theme-muted);
}
.free-home-modern #discoveryTheme .theme-lesson-example>span:first-child{font:italic 1rem/1.45 Georgia,serif;color:var(--theme-ink)}
.free-home-modern #discoveryTheme :is(.theme-continuation,.journey-audio-note){
  max-width:none;
  margin:17px 3px 0;
  font:.75rem/1.6 system-ui,sans-serif;
  color:var(--theme-muted)!important;
}
.free-home-modern #discoveryTheme :is(.journey-back,.journey-step):focus-visible{outline:3px solid #a58443;outline-offset:4px}
@media(max-width:380px){
  .free-home-modern #discoveryTheme>.journey-theme-heading{padding:18px 16px;column-gap:11px}
  .free-home-modern #discoveryTheme .theme-course-list>.journey-step{grid-template-columns:27px minmax(0,1fr);gap:8px 11px;padding:16px 14px}
  .free-home-modern #discoveryTheme .journey-step>.journey-step-state{grid-column:2;justify-self:start;max-width:none;text-align:left}
  .free-home-modern #discoveryTheme .theme-lesson-included:not(.is-complete)>.journey-step-state{margin-top:3px}
}
@media(prefers-reduced-motion:reduce){
  .free-home-modern #discoveryTheme :is(.journey-back,.journey-step){animation:none!important;transition:none!important;transform:none!important}
}
:root[data-theme=dark] .free-home-modern #discoveryTheme{
  --theme-paper:#223a30;
  --theme-wash:#2c4839;
  --theme-line:#4b6253;
  --theme-ink:#f0f3e9;
  --theme-muted:#c2d0c3;
  --theme-gold:#e0c78d;
}
:root[data-theme=dark] .free-home-modern #discoveryTheme .theme-course-list>.theme-lesson-included{border-color:#789477}
:root[data-theme=dark] .free-home-modern #discoveryTheme .journey-step-state .access-tag{color:var(--theme-gold)}

/* Expressions are a reference list; practice is an explicit, separate choice. */
#discoveryTheme .expression-training{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;margin:18px 0;padding:17px;border:1px solid var(--theme-line,#d8e0d5);border-radius:18px;background:var(--theme-wash,#edf2e9);color:var(--theme-ink,#193f36)}
#discoveryTheme .expression-training-icon svg{width:30px;height:30px}
#discoveryTheme .expression-training h3,#discoveryTheme .expression-continuation h3{font:600 21px/1.25 Georgia,serif;margin:0 0 6px;color:inherit}
#discoveryTheme .expression-training p,#discoveryTheme .expression-continuation p{font:14px/1.55 system-ui,sans-serif;margin:0;color:var(--theme-muted,#596c61)}
#discoveryTheme .expression-training button{grid-column:2;width:fit-content;min-height:44px;padding:10px 17px;border:0;border-radius:12px;background:var(--theme-ink,#193f36);color:var(--theme-paper,#fffdf7);font:600 14px/1.4 system-ui,sans-serif}
#discoveryTheme .expression-reference-list{display:block;list-style:none;padding:0 18px;margin:0;border:1px solid var(--theme-line,#d8e0d5);border-radius:18px;background:var(--theme-paper,#fffdf7);color:var(--theme-ink,#193f36)}
#discoveryTheme .expression-reference-list>li{padding:17px 0;border-bottom:1px solid var(--theme-line,#d8e0d5);overflow-wrap:anywhere}
#discoveryTheme .expression-reference-list>li:last-child{border-bottom:0}
#discoveryTheme .expression-reference-list h4{font:600 19px/1.4 system-ui,sans-serif;margin:0 0 5px;color:inherit}
#discoveryTheme .expression-reference-list p{font:15px/1.55 system-ui,sans-serif;margin:0;color:var(--theme-muted,#596c61)}
#discoveryTheme .expression-continuation{padding:18px;margin-top:18px;border:1px solid var(--theme-line,#d8e0d5);border-radius:18px;background:var(--theme-paper,#fffdf7);color:var(--theme-ink,#193f36)}
#discoveryTheme .expression-continuation>.access-tag{display:inline-block;margin-bottom:10px;color:var(--theme-gold,#8b743e);font:600 11px/1.4 system-ui,sans-serif}
#discoveryTheme .expression-continuation button{margin-top:14px;min-height:44px}
#discoveryTheme :is(.expression-training,.expression-continuation) button:focus-visible{outline:3px solid var(--theme-gold,#b89c54);outline-offset:3px}
@media(max-width:350px){#discoveryTheme .expression-training{grid-template-columns:minmax(0,1fr)}#discoveryTheme .expression-training-icon{display:none}#discoveryTheme .expression-training button{grid-column:1}}
