/* Homepage companion v1.2.0 — scoped to the shared home tab. */
html body.learn-home-page #tab-home .mobile-content {
    display: flex; flex-direction: column; gap: 18px;
}
#tab-home #mobile-colearn-card { order: 0; margin: 0; }
html body.learn-home-page #tab-home .home-companion { order: 1; }
html body.learn-home-page #tab-home #mobile-development-status-card {
    order: 2; margin: 0; padding: 14px 18px; gap: 12px;
    background: #fff; border-color: #e9e6e2; border-radius: 16px; box-shadow: none;
}
html body.learn-home-page #tab-home #mobile-development-status-card .development-status-card-icon { display: none; }
html body.learn-home-page #tab-home #mobile-development-status-card .development-status-card-copy {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; width: 100%;
}
html body.learn-home-page #tab-home #mobile-development-status-card .development-status-card-eyebrow { font-size: 11px; margin: 0; color: #71776f; }
html body.learn-home-page #tab-home #mobile-development-status-card h2 { font-size: 13px; margin: 0; font-weight: 600; }
html body.learn-home-page #tab-home #mobile-development-status-card a { margin: 0 0 0 auto; font-size: 12px; min-height: 32px; }
.home-companion {
    overflow: visible; border: 1px solid #ebe2dc; border-radius: 24px;
    background: #fffdf9; box-shadow: 0 6px 24px #45382d06;
}
.companion-hero {
    display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 18px;
    align-items: center; padding: 32px 32px 24px;
    background: linear-gradient(115deg,#fffaf3,#f8f8f0); border-radius: 24px 24px 0 0;
}
.companion-copy { min-width: 0; }
.companion-eyebrow { display: flex; align-items: center; gap: 7px; color: #77675a; font-size: 12px; font-weight: 600; }
.companion-eyebrow time { margin-left: 8px; color: #8a8177; font-size: 11px; font-weight: 400; }
.companion-sun { color: #b57e56; font-size: 19px; }
.companion-copy h2 { margin: 18px 0 12px; font-size: clamp(24px,2.4vw,30px); line-height: 1.55; font-weight: 650; letter-spacing: .025em; color: #383d34; text-wrap: balance; }
.companion-note { margin: 0; max-width: 32em; font-size: 14px; color: #737267; line-height: 1.9; }
.companion-art { width: 100%; height: auto; display: block; }
.companion-tools { display: flex; align-items: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.companion-play-slot { display: flex; justify-content: flex-start; align-items: center; flex: 0 0 112px; width: 112px; height: 44px; }
.companion-tools button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-size: 13px; cursor: pointer; min-height: 44px; border-radius: 99px;
}
.companion-listen { width: 112px; height: 44px; padding: 10px 14px; white-space: nowrap; border: 1px solid #d2ddd0; background: #edf2e9; color: #445940; font-weight: 600; }
.companion-listen.companion-listen--icon { width: 44px; padding: 0; border-radius: 50%; gap: 0; }
.companion-listen--icon span { display: none; }
.companion-listen:hover { background: #e2ebdc; }
.companion-audio-meta { min-height: 16px; line-height: 16px; margin: 4px 0 0; color: #7d796f; font-size: 10px; font-variant-numeric: tabular-nums; }
.companion-audio-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.companion-transcript { margin-top: 2px; font-size: 12px; color: #767164; }
.companion-transcript summary { cursor: pointer; width: fit-content; padding: 10px 0; min-height: 40px; }
.companion-transcript p { margin: 0; line-height: 1.9; color: #626759; }
html body.learn-home-page #tab-home .home-companion .learning-dashboard {
    padding: 24px 32px 28px; margin: 0; background: #fff; border: 0;
    border-top: 1px solid #eee7df; border-radius: 0 0 24px 24px; box-shadow: none;
}
html body.learn-home-page #tab-home .home-companion .learning-dashboard-header h2 { font-size: 17px; line-height: 1.5; margin: 0 0 5px; color: #3d4039; }
html body.learn-home-page #tab-home .home-companion .learning-dashboard-eyebrow { font-size: 10px; color: #887a70; font-weight: 500; }
html body.learn-home-page #tab-home .home-companion .learning-dashboard-header p { font-size: 12px; }
html body.learn-home-page #tab-home .home-companion .learning-dashboard-list { gap: 6px; margin-bottom: 12px; }
html body.learn-home-page #tab-home .home-companion .learning-dashboard-row { border: 0; padding: 4px 0; min-height: 30px; font-size: 13px; background: transparent; }
html body.learn-home-page #tab-home .home-companion .learning-dashboard-check { width: 20px; height: 20px; flex-basis: 20px; background: #edf3e8; color: #58734b; }
html body.learn-home-page #tab-home .home-companion .learning-dashboard-empty { background: transparent; padding: 5px 0; margin-bottom: 12px; font-size: 13px; align-items: flex-start; }
html body.learn-home-page #tab-home .home-companion .learning-dashboard-empty-dot { margin: 6px 4px 0; background: #dab99c; box-shadow: 0 0 0 4px #f6eee4; }
html body.learn-home-page #tab-home .home-companion .learning-dashboard-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
html body.learn-home-page #tab-home .home-companion .learning-dashboard-stat { display: inline-flex; align-items: baseline; gap: 5px; padding: 0; border: 0; border-radius: 0; background: transparent; }
html body.learn-home-page #tab-home .home-companion .learning-dashboard-stat strong { font-size: 13px; color: #5d6257; font-weight: 600; }
html body.learn-home-page #tab-home .home-companion .learning-dashboard-stat span { font-size: 11px; margin: 0; color: #85867d; }
html body.learn-home-page #tab-home .home-companion .learning-dashboard-encouragement { padding: 0; margin: 0 0 14px; color: #746d63; background: transparent; font-weight: 400; font-size: 12px; }
.companion-continue {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 11px 18px; min-height: 44px; border-radius: 12px; background: #ed5889;
    color: #fff !important; font-size: 13px; font-weight: 600; text-decoration: none;
}
.companion-continue:hover { background: #d94879; }
html body.learn-home-page #tab-home .home-companion .learning-dashboard-recent { margin: 10px 0 0; padding: 0; background: transparent; justify-content: flex-start; gap: 8px; font-size: 12px; color: #777b71; }
html body.learn-home-page #tab-home .home-companion .learning-dashboard-source { display: block; font-size: 10px; margin-top: 12px; color: #93928a; }
.companion-retry { display: inline-block; min-height: 44px; padding: 10px 12px; margin: 0 8px 10px 0; border: 1px solid #ddd6cb; background: #fffdf8; border-radius: 10px; color: #645d50; cursor: pointer; font: inherit; font-size: 12px; }
.companion-version { order: 3; margin: 0; text-align: center; font-size: 10px; color: #98958d; }
.home-companion :focus-visible { outline: 3px solid #8b9e7e; outline-offset: 4px; }
html body.learn-home-page #colearn-toast { opacity: 0; visibility: hidden; }
html body.learn-home-page #colearn-toast.show { opacity: 1; visibility: visible; }
@media (max-width: 800px) {
    .companion-hero { grid-template-columns: minmax(0,1fr) 190px; padding: 26px 24px 18px; gap: 12px; }
    .companion-copy h2 { font-size: 25px; }
    html body.learn-home-page #tab-home .home-companion .learning-dashboard { padding: 22px 24px; }
}
@media (max-width: 599px) {
    html body.learn-home-page #tab-home .mobile-content { padding: 18px 16px 12px; gap: 14px; }
    .home-companion { border-radius: 20px; }
    .companion-hero { display: block; position: relative; padding: 24px 22px 16px; border-radius: 20px 20px 0 0; }
    .companion-copy { position: relative; z-index: 1; }
    .companion-copy h2 { max-width: 10em; font-size: 25px; margin-top: 20px; }
    .companion-note { font-size: 13px; }
    .companion-art { position: absolute; right: 8px; top: 8px; width: 90px; opacity: .32; pointer-events: none; }
    .companion-eyebrow { padding-right: 45px; }
    .companion-tools { margin-top: 14px; gap: 6px; }
    .companion-transcript summary { padding: 8px 0; }
    html body.learn-home-page #tab-home .home-companion .learning-dashboard { padding: 20px 22px 22px; border-radius: 0 0 20px 20px; }
    html body.learn-home-page #tab-home #mobile-development-status-card { padding: 12px 16px; }
    html body.learn-home-page #tab-home #mobile-development-status-card .development-status-card-copy { gap: 4px 10px; }
    html body.learn-home-page #tab-home #mobile-development-status-card a { margin-left: 0; min-height: 44px; }
}
