/* Warm, compact home with four primary learning areas. */
.compact-home .topbar{display:flex;flex-direction:column;align-items:stretch;gap:14px;max-width:1040px;margin:0 auto 20px}
.compact-home .brand.jeepney-brand{width:100%;max-width:none;margin:0;align-self:stretch}
.compact-home .brand .title-art{width:100%;display:block;max-height:400px;overflow:hidden;border-radius:24px 24px 0 0}
.compact-home .brand .title-art>img{display:block;width:100%;height:auto;max-height:400px;object-fit:cover;object-position:center 43%}
.compact-home .topstats{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;max-width:none;flex-wrap:wrap}
.compact-home #appTourOpen{order:10;flex:0 0 100%;width:100%;max-width:none;min-height:66px;justify-content:center;background:#fff2d8;color:#163e44;margin:4px 0 0}
.compact-home #appTourOpen .tour-launch-art{width:94px;height:64px;object-fit:contain}
.compact-home #homeView{max-width:1040px;margin:auto}.compact-home #homeView>.paper-screen{padding:0;background:none;border:none;box-shadow:none;overflow:visible}
.compact-home #homeView h2{font-size:clamp(22px,3.6vw,30px);color:#fff1d5;margin:22px 0 12px;text-shadow:0 2px 2px #00383a}
.intro-link{width:100%;display:grid;grid-template-columns:110px 1fr 25px;align-items:center;text-align:left;gap:18px;padding:0 16px 0 0;border:2px solid #e5cf9c;border-radius:18px;background:#fff7e8;color:#183f49;overflow:hidden;cursor:pointer}
.intro-link img{width:110px;height:82px;object-fit:cover}.intro-link strong{display:block;font-size:20px}.intro-link small{display:block;font-size:15px;margin-top:5px}
#currentMission{margin-top:12px}#currentMission .mission-choice{width:100%;display:grid;grid-template-columns:40% 1fr;text-align:left;border-radius:20px;overflow:hidden;background:#fffaf0;padding:0;border:2px solid #d9c17f}
#currentMission .mission-choice>img{width:100%;height:100%;min-height:190px;object-fit:cover}#currentMission .mission-choice .mission-card-content{padding:20px}
.all-missions{display:block;margin:10px auto;border:none;background:transparent;color:#ffe2a0;font-weight:800;font-size:17px;padding:10px;cursor:pointer}
.practice-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.compact-home .practice-grid .menu-card{width:100%;min-width:0;min-height:0;display:flex;flex-direction:column;text-align:left;padding:0;border-radius:20px;border:2px solid #dec991;background:#fff7e8;overflow:hidden}
.compact-home .practice-grid .menu-section-art{width:100%;height:155px;object-fit:cover}.compact-home .practice-grid .dialog-hub-art{width:100%}.compact-home .practice-grid .menu-section-copy{padding:12px 15px}.compact-home .practice-grid h3{font-size:23px;color:#123f48;margin:0 0 6px}.compact-home .practice-grid p{font-size:15px;line-height:1.4;color:#35525a;margin:0}.compact-home .practice-grid .tag{display:none}.compact-home .practice-grid #homeDialogs p{display:none}.compact-home .practice-grid #homeDialogs .tag{display:block;background:none;border:0;padding:0;margin:0;font-size:15px;font-weight:400;color:#35525a}
#referenceLinks{display:grid;gap:8px}.compact-home #referenceLinks .reference-link{width:100%;margin:0;min-height:60px;display:flex;align-items:center;justify-content:space-between;padding:14px 22px;background:#fff4df;border:1px solid #d8c49c;border-radius:15px;color:#193f48;font-size:19px;font-weight:800;text-align:left;cursor:pointer}.reference-link:after{content:'›';font-size:28px}.compact-home #referenceLinks .menu-section-art,.compact-home #referenceLinks p,.compact-home #referenceLinks .tag{display:none}.compact-home #referenceLinks .menu-section-copy{padding:0}.compact-home #referenceLinks h3{font-size:19px;margin:0;color:#193f48}
.learning-hub .hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.learning-hub .menu-card{min-width:0;width:100%;background:#fff8e8}.learning-hub .menu-section-art{width:100%;height:180px;object-fit:cover}.learning-hub .menu-section-copy{display:block;padding:18px}.learning-hub #missionPicker{margin:0}
.compact-home button:focus-visible{outline:3px solid #ffc553;outline-offset:4px}
@media(max-width:600px){.compact-home .topbar{gap:8px}.compact-home .brand .title-art,.compact-home .brand .title-art>img{max-height:260px}.compact-home .topstats{gap:5px}.compact-home .topstats .pill{font-size:12px;padding:7px 9px}.compact-home #appTourOpen{font-size:15px;min-height:58px}.compact-home #appTourOpen .tour-launch-art{height:52px;width:76px}.intro-link{grid-template-columns:82px 1fr 16px;gap:10px}.intro-link img{width:82px;height:75px}.intro-link strong{font-size:17px}.intro-link small{font-size:13px}#currentMission .mission-choice{grid-template-columns:34% 1fr}#currentMission .mission-choice>img{min-height:160px}#currentMission .mission-choice .mission-card-content{padding:12px} .compact-home .practice-grid{gap:10px}.compact-home .practice-grid .menu-section-art{height:110px}.compact-home .practice-grid .menu-section-copy{padding:10px}.compact-home .practice-grid h3{font-size:18px}.compact-home .practice-grid p,.compact-home .practice-grid #homeDialogs .tag{font-size:12px}.compact-home .practice-grid .title-ai-badge{font-size:11px;padding:4px 6px}.compact-home #homeView h2{font-size:23px}.learning-hub .hub-grid{grid-template-columns:1fr}}
@media(min-width:1000px){.compact-home .brand .title-art>img{object-fit:cover}.compact-home .practice-grid .menu-section-art{height:200px}}
.compact-home .jeepney-brand .jeepney-title{display:flex;align-items:center;justify-content:center;gap:12px;padding:8px 14px}.compact-home .jeepney-brand .jeepney-title .travel-journal-flag{display:block;width:42px;height:46px;object-fit:contain;filter:none;margin:0}
#currentMission .stage-menu-note,#currentMission .stage-menu-progress,#currentMission .mission-unlock-progress{grid-column:2;margin:0 18px 12px}#currentMission .stage-menu-note{font-size:14px}
/* Explicitly reset the original card/title flex rules for the compact rows. */
.compact-home .jeepney-brand .jeepney-title{flex-direction:row}
.compact-home .jeepney-brand .jeepney-title .travel-journal-flag{flex:0 0 42px;min-height:0;max-height:46px}
.compact-home #referenceLinks .reference-link{flex-direction:row}
.compact-home #referenceLinks .menu-section-copy{display:flex;align-items:center;gap:12px;flex:1;background:transparent}
.compact-home #referenceLinks .menu-section-copy .icon{display:inline;font-size:22px;margin:0}
.compact-home #referenceLinks .reference-link:after{display:block;position:static;content:'›';width:auto;height:auto;transform:none;border:0;background:none;opacity:1}
#currentMission .mission-choice{cursor:pointer;align-items:stretch;grid-template-columns:40% minmax(0,1fr)}
#currentMission .mission-art{display:block;max-height:280px;min-height:220px;object-position:center 43%}
#currentMission .mission-card-content{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;color:#193f48;min-width:0}
#currentMission .mission-card-content small{display:block;font-size:12px;letter-spacing:.06em;font-weight:800;color:#597079}
#currentMission .mission-card-content strong{display:block;font-size:27px;line-height:1.25}
#currentMission .mission-card-content>span{display:block;font-size:15px;line-height:1.45}
#currentMission .mission-card-content b{display:block;font-size:14px;color:#167269}
#currentMission .mission-card-content .mission-start-label{display:inline-block;background:#076872;color:#fff;padding:10px 18px;border-radius:12px;font-weight:800;font-size:16px}
#currentMission .mission-card-content .stage-menu-note{margin:0;font-size:13px}
#currentMission .mission-unlock-track{width:100%;margin-top:12px}#currentMission .stage-menu-progress{width:100%;margin:0}
@media(max-width:600px){#currentMission .mission-choice{grid-template-columns:34% minmax(0,1fr)}#currentMission .mission-card-content{gap:7px}#currentMission .mission-card-content strong{font-size:21px}#currentMission .mission-card-content>span{font-size:13px}#currentMission .mission-card-content .mission-start-label{font-size:14px;padding:9px 12px}}

/* Small illustrated reference rows, with the same treatment in both languages. */
.compact-home #referenceLinks .reference-link{gap:16px;padding:10px 16px;min-height:86px}
.compact-home #referenceLinks .reference-thumbnail{display:block;flex:0 0 80px;width:80px;height:64px;object-fit:cover;border-radius:10px;border:1px solid #d8c49c;margin:0;box-shadow:0 2px 5px #173e4820}
.compact-home #referenceLinks .reference-label,.compact-home #referenceLinks .menu-section-copy{flex:1;min-width:0}
.compact-home #referenceLinks .reference-link:after{flex:0 0 auto}
@media(max-width:600px){.compact-home #referenceLinks .reference-link{gap:12px;padding:9px 12px;min-height:76px}.compact-home #referenceLinks .reference-thumbnail{flex-basis:64px;width:64px;height:56px}.compact-home #referenceLinks h3,.compact-home #referenceLinks .reference-label{font-size:17px}}
