/* Home follows document order: agenda, map, preparation, records, community. */
.dashboard-home.fd-home-focused{gap:22px}
.dashboard-home.fd-home-focused>*{order:0!important;min-width:0}
.fd-home-focused>.fd-tool-intro{padding:4px 0;align-items:center;gap:20px;margin:0}
.fd-home-focused .fd-tool-intro h1{font-size:clamp(1.4rem,2.2vw,1.85rem);letter-spacing:-.035em;line-height:1.2}
.fd-home-focused .fd-tool-intro p{margin-top:6px;font-size:.87rem;font-weight:600;line-height:1.5}
.fd-weather-call{display:inline-flex;align-items:center;gap:10px;flex-shrink:0;min-height:44px;padding:7px 10px;color:#17539d;text-decoration:none;border-radius:10px;font-size:.78rem;font-weight:800}
.fd-weather-call svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.fd-weather-call small{display:block;margin-top:2px;color:#63768d;font-size:.74rem;font-weight:600}
.fd-weather-call:hover{background:#e7f0fa}

/* The next personal booking is a compact strip, fetched independently of weather. */
.fd-home-focused .fla-home{margin:0}
.fd-home-focused .fla-next{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 18px;border-radius:13px;background:#fff;box-shadow:none}
.fd-home-focused .fla-next .fla-date-tile{box-sizing:border-box;width:54px;min-height:65px;padding:5px 3px;border-radius:10px}
.fd-home-focused .fla-date-tile strong{font-size:1.65rem;line-height:1.1}
.fd-home-focused .fla-date-weekday{font-size:.65rem}
.fd-home-focused .fla-date-month-year{font-size:.58rem;line-height:1.25}
.fd-home-focused .fla-next-kicker{font-size:.72rem}
.fd-home-focused .fla-next-title{font-size:1rem;line-height:1.3;margin-top:2px}
.fd-home-focused .fla-next-time{font-size:.8rem;margin-top:3px}
.fd-home-focused .fla-next-tail{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;flex-wrap:wrap;max-width:340px;gap:8px}
.fd-home-focused .fla-next .fla-badges{gap:6px;margin:0}
.fd-home-focused .fla-next .fla-badge{min-height:28px;padding:5px 9px;font-size:.72rem}
.fd-home-focused .fla-next-arrow{font-size:1.3rem}

/* All preparation, recording and study entries have the same footprint. */
.fd-home-section{min-width:0;margin:4px 0 0}
.fd-home-section-title{margin:0 0 12px;color:#174f88;font-size:1.16rem;font-weight:800;line-height:1.3;letter-spacing:-.02em}
.fd-home-section>.dashboard-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;align-items:stretch}
.fd-home-focused .dashboard-actions .dash-card{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;gap:16px;min-height:116px;padding:20px;border:1px solid #d0e1f2;border-radius:14px;background:#fff;box-shadow:none;text-decoration:none;color:#17539d;transition:background .15s ease,border-color .15s ease}
.fd-home-focused .dashboard-actions .dash-card:hover{background:#edf5fe;border-color:#93b8df}
.fd-home-focused .dashboard-actions .dash-card>svg,.fd-home-tool-icon{width:36px!important;height:36px!important;flex:0 0 36px}
.fd-home-tool-icon{display:grid;place-items:center;color:#1963ac}
.fd-home-tool-icon svg{display:block;width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fd-logbook-card .fd-home-tool-icon svg{fill:currentColor;stroke:none}
.fd-home-focused .dash-card-copy{display:block;min-width:0}
.fd-home-focused .dashboard-actions .dash-card-copy strong{display:block;color:#17539d;font-size:1.05rem;font-weight:800;line-height:1.3}
.fd-home-focused .dashboard-actions .dash-card-copy small{display:block;margin-top:5px;color:#5c7da1;font-size:.85rem;line-height:1.4}
.fd-home-focused .dashboard-actions .fd-logbook-card{background:#f7fbff;border-color:#bdd5ee}
.fd-home-focused .fd-risk-tool .fd-home-tool-icon{color:#ac514d}

/* The community remains a single clickable row with the same hover feedback. */
.fd-community-home{display:flex;align-items:center;gap:20px;padding:22px 24px;margin:0;border:1px solid #d4e2f1;border-radius:14px;background:#fff;color:#21476c;text-decoration:none;transition:background .15s ease,border-color .15s ease}
.fd-community-symbol{display:grid;place-items:center;flex:0 0 50px;height:50px;border-radius:14px;background:#eaf3fd;color:#1962ae}
.fd-community-symbol svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.fd-community-copy{min-width:0;flex:1}
.fd-community-eyebrow{display:block;color:#4e7297;font-size:.63rem;letter-spacing:.1em;line-height:1.5;font-weight:800}
.fd-community-home h2{margin:4px 0;font-size:1.24rem;line-height:1.3;letter-spacing:-.02em;color:#174f88}
.fd-community-home p{margin:0;color:#647b92;font-size:.85rem;line-height:1.5;font-weight:600}
.fd-community-link{display:inline-flex;justify-content:center;align-items:center;gap:12px;flex-shrink:0;min-height:44px;padding:9px 14px;border:1px solid #d1e1f2;border-radius:10px;background:#f5faff;color:#175ba3;font-size:.81rem;line-height:1.4;font-weight:800;text-decoration:none}
.fd-community-home:hover{background:#edf5fe;border-color:#93b8df}
.fd-community-home:hover .fd-community-link{background:#e7f1fc;border-color:#9abfe5}

/* Study and resource links keep their recognisable accent colours. */
.fd-home-focused .dashboard-actions .pilot-resources-card{position:relative;overflow:hidden;border-color:#185ba8;background:#175ba3}
.fd-home-focused .dashboard-actions .pilot-resources-card .dash-card-copy strong{color:#fff}
.fd-home-focused .dashboard-actions .pilot-resources-card .dash-card-copy small{color:#e0edff}
.fd-home-focused .dashboard-actions .pilot-resources-card svg [fill="#17539d"]{fill:#fff}
.fd-home-focused .dashboard-actions .pilot-resources-card svg [stroke="#17539d"]{stroke:#fff}
.fd-home-focused .dashboard-actions .pilot-resources-card:hover{background:#164d8b;border-color:#164d8b}
.fd-home-focused .dashboard-actions .fd-quiz-study-card{background:#465da8;border-color:#3b519b;color:#fff}
.fd-home-focused .dashboard-actions .fd-quiz-study-card .dash-card-copy strong{color:#fff}
.fd-home-focused .dashboard-actions .fd-quiz-study-card .dash-card-copy small{color:#e3eaff}
.fd-home-focused .dashboard-actions .fd-quiz-study-card svg{stroke:#fff}
.fd-home-focused .dashboard-actions .fd-quiz-study-card:hover{background:#3c529b;border-color:#334989}
.fd-home-focused .dashboard-actions .fd-quiz-study-card.auth-required::after{color:#e6ecff;background:#ffffff18}

.fd-home-focused>.weather-layout{margin:0}
.fd-home-focused>.fd-airports-toolbar{margin:0 0 -12px}
.fd-home-focused>.fd-promo-row{margin:0;padding-top:20px;border-top:1px solid #d9e3ed;gap:14px;align-items:stretch}
.fd-home-focused .fd-promo-row .fd-apps-promo,.fd-home-focused .fd-dogtag-promo{box-shadow:none;background:#fff;border-color:#dce6f0;border-radius:14px}
.fd-home-focused .dash-card:focus-visible,.fd-community-home:focus-visible,.fd-weather-call:focus-visible{outline:3px solid #79b8f0;outline-offset:4px}

@media(max-width:760px){
 .dashboard-home.fd-home-focused{gap:18px}
 .fd-home-focused>.fd-tool-intro{align-items:flex-start;flex-wrap:wrap;gap:6px}
 .fd-home-focused .fd-tool-intro h1{font-size:1.4rem}
 .fd-weather-call{padding:3px 0;gap:8px;min-height:32px}
 .fd-weather-call span{display:flex;gap:8px;flex-wrap:wrap;align-items:baseline}
 .fd-weather-call small{margin:0}
 .fd-home-focused .fla-next{grid-template-columns:48px minmax(0,1fr);padding:12px;gap:8px 12px}
 .fd-home-focused .fla-next .fla-date-tile{width:48px;min-height:62px;grid-row:1/3}
 .fd-home-focused .fla-next-copy{grid-column:2}
 .fd-home-focused .fla-next-tail{grid-column:2;max-width:none;justify-content:flex-start;gap:6px}
 .fd-home-focused .fla-next .fla-badge{min-height:25px;font-size:.66rem;padding:4px 7px}
 .fd-home-focused .fla-next-time{font-size:.76rem}
 .fd-home-section-title{font-size:1.1rem}
 .fd-home-section>.dashboard-actions{gap:10px}
 .fd-home-focused .dashboard-actions .dash-card{flex-direction:column;align-items:flex-start;gap:11px;padding:16px;min-height:180px}
 .fd-home-focused .dashboard-actions .dash-card-copy strong{font-size:1rem;line-height:1.3}
 .fd-home-focused .dashboard-actions .dash-card-copy small{font-size:.8rem;line-height:1.45}
 .fd-home-focused .dashboard-actions .dash-card>svg,.fd-home-tool-icon{width:30px!important;height:30px!important;flex-basis:30px}
 .fd-home-tool-icon svg{width:30px;height:30px}
 .fd-community-home{padding:18px;gap:14px;flex-wrap:wrap}
 .fd-community-copy{flex:1 1 calc(100% - 64px)}
 .fd-community-home p{font-size:.82rem}
 .fd-community-link{width:100%;box-sizing:border-box}
 .fd-home-focused>.fd-promo-row{grid-template-columns:1fr;gap:12px}
}
@media(max-width:360px){.fd-home-section>.dashboard-actions{grid-template-columns:1fr}.fd-home-focused .dashboard-actions .dash-card{min-height:94px;flex-direction:row;align-items:center;padding:15px;gap:12px}}
@media(prefers-reduced-motion:reduce){.fd-home-focused .dash-card,.fd-community-home{transition:none}}

.fd-home-focused .fd-pressure-icon,.fd-home-focused .fd-pressure-icon circle,.fd-home-focused .fd-pressure-icon path{fill:none;stroke:#17539d}
