/* One shared grid for priorities and the workspace. Existing Academy colors,
   typography and imagery are retained; these tokens govern only home layout. */
.academy-theme .page.academy-home-page.academy-community-home.home-overview-organized {
  --home-gap: 1rem;
  --home-pad: 1.25rem;
  --home-radius: .75rem;
  --home-rail: 20rem;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: none;
  grid-auto-rows: max-content;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  gap: var(--home-gap);
  align-content: start;
}
.academy-theme .academy-community-home.home-overview-organized .home-priority-grid,
.academy-theme .academy-community-home.home-overview-organized .academy-home-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(17rem,var(--home-rail));
  gap: var(--home-gap);
  margin: 0;
  min-width: 0;
}
.academy-theme .academy-community-home.home-overview-organized .academy-home-layout { align-items: start; }
.academy-theme .academy-community-home.home-overview-organized .academy-home-main,
.academy-theme .academy-community-home.home-overview-organized .academy-home-rail { display:grid; gap:var(--home-gap); min-width:0; grid-template-columns:minmax(0,1fr); align-content:start; }
.academy-theme .academy-community-home.home-overview-organized .academy-page-banner { margin:0; }
.academy-theme .academy-community-home.home-overview-organized .student-homework-notice {
  display:grid;
  grid-template-columns:2rem minmax(0,1fr) auto;
  gap:.75rem 1rem;
  align-content:center;
  align-items:start;
  margin:0;
  padding:var(--home-pad);
  border-radius:var(--home-radius);
}
.academy-theme .academy-community-home.home-overview-organized .student-homework-copy { min-width:0; }
.academy-theme .academy-community-home.home-overview-organized .student-homework-copy h2 { font-size:clamp(1.375rem,2vw,1.75rem); line-height:1.25; margin:.375rem 0 .5rem; }
.academy-theme .academy-community-home.home-overview-organized .student-homework-copy p { max-width:58ch; color:var(--muted); }
.academy-theme .academy-community-home.home-overview-organized .student-homework-icon { margin-top:.25rem; }
.academy-theme .academy-community-home.home-overview-organized .student-homework-status { grid-column:3; align-self:start; border:1px solid var(--line); border-radius:var(--home-radius); padding:.25rem .5rem; font-size:.75rem; }
.academy-theme .academy-community-home.home-overview-organized .student-homework-notice .button { grid-column:2/-1; justify-self:start; min-height:2.75rem; margin-top:.25rem; }
.academy-theme .academy-community-home.home-overview-organized .academy-reference-panel,
.academy-theme .academy-community-home.home-overview-organized .home-priority-grid .academy-upcoming,
.academy-theme .academy-community-home.home-overview-organized .academy-home-rail .exam-countdown {
  margin:0;
  min-width:0;
  padding:var(--home-pad);
  border:1px solid var(--line);
  border-radius:var(--home-radius);
}
.academy-theme .academy-community-home.home-overview-organized .academy-reference-panel>header { gap:.75rem; min-height:0; margin:0 0 .75rem; padding:0 0 .75rem; align-items:center; }
.academy-theme .academy-community-home.home-overview-organized .academy-reference-panel>header h2 { font-size:1.25rem; line-height:1.3; margin:0; }
.academy-theme .academy-community-home.home-overview-organized .academy-reference-panel>header button { min-height:2.75rem; flex:none; }
.academy-theme .academy-community-home.home-overview-organized .home-priority-grid .academy-upcoming>header { align-items:start; flex-direction:column; gap:.25rem; margin-bottom:.5rem; }
.academy-theme .academy-community-home.home-overview-organized .home-priority-grid .academy-upcoming>header button { padding:0; min-height:1.75rem; font-size:.8125rem; }
.academy-theme .academy-community-home.home-overview-organized .home-priority-grid .academy-upcoming>button { display:grid; grid-template-columns:2.5rem minmax(0,1fr); gap:.75rem; align-items:center; min-height:4rem; width:100%; margin:0; padding:.5rem 0; text-align:left; }
.academy-theme .academy-community-home.home-overview-organized .home-priority-grid .academy-upcoming>button>svg { display:none; }
.academy-theme .academy-community-home.home-overview-organized .home-priority-grid .academy-upcoming>button>span { min-width:0; }
.academy-theme .academy-community-home.home-overview-organized .home-priority-grid .academy-upcoming>button>span b { font-size:.875rem; line-height:1.4; white-space:normal; }
.academy-theme .academy-community-home.home-overview-organized .home-priority-grid .academy-upcoming>button>span small { font-size:.75rem; line-height:1.5; white-space:normal; }
/* This home preview shows two meetings; the Schedule action retains the full list. */
.academy-theme .academy-community-home.home-overview-organized .home-priority-grid .academy-upcoming>button:nth-of-type(n+3) { display:none; }
.academy-theme .academy-community-home.home-overview-organized .home-community-preview>div { gap:.75rem; }
.academy-theme .academy-community-home.home-overview-organized .home-community-preview>div>button { min-height:4.5rem; padding:.75rem; }
.academy-theme .academy-community-home.home-overview-organized .home-community-preview b { font-size:1rem; line-height:1.4; }
.academy-theme .academy-community-home.home-overview-organized .home-community-preview small { font-size:.8125rem; }
.academy-theme .academy-community-home.home-overview-organized .academy-home-cards { gap:var(--home-gap); }
.academy-theme .academy-community-home.home-overview-organized .academy-home-cards>section { padding:var(--home-pad); }
.academy-theme .academy-community-home.home-overview-organized .academy-home-rail .exam-countdown { display:grid; gap:.75rem; background:var(--surface); line-height:1.5; }
.academy-theme .academy-community-home.home-overview-organized .academy-home-rail .exam-countdown b { font:500 1.25rem/1.3 var(--font-display); }
.academy-theme .academy-community-home.home-overview-organized .academy-home-rail .exam-countdown span { font-size:.8125rem; color:var(--muted); }
.academy-theme .academy-community-home.home-overview-organized .academy-home-rail .exam-countdown a { justify-self:start; min-height:2.75rem; display:inline-flex; align-items:center; }
.academy-theme .academy-community-home.home-overview-organized .academy-motto-ribbon { margin:.5rem auto 1rem; }
.academy-theme .academy-community-home.home-overview-organized .community-notice,
.academy-theme .academy-community-home.home-overview-organized .home-data-warning { margin:0; }
@media(max-width:1100px) {
  .academy-theme .academy-community-home.home-overview-organized { --home-rail:18rem; --home-pad:1rem; }
  .academy-theme .academy-community-home.home-overview-organized .student-homework-notice { grid-template-columns:2rem minmax(0,1fr); }
  .academy-theme .academy-community-home.home-overview-organized .student-homework-status { grid-column:2; justify-self:start; }
  .academy-theme .academy-community-home.home-overview-organized .home-community-preview>div { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:800px) {
  .academy-theme .academy-community-home.home-overview-organized .home-priority-grid,
  .academy-theme .academy-community-home.home-overview-organized .academy-home-layout { grid-template-columns:minmax(0,1fr); }
  .academy-theme .academy-community-home.home-overview-organized .home-priority-grid .academy-upcoming>header { flex-direction:row; align-items:center; justify-content:space-between; }
  .academy-theme .academy-community-home.home-overview-organized .home-priority-grid .academy-upcoming>header button { min-height:2.75rem; }
  .academy-theme .academy-community-home.home-overview-organized .academy-home-rail { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .academy-theme .academy-community-home.home-overview-organized .academy-home-rail .academy-course-news { grid-column:1/-1; }
}
@media(max-width:560px) {
  .academy-theme .academy-community-home.home-overview-organized .academy-home-rail { grid-template-columns:minmax(0,1fr); }
  .academy-theme .academy-community-home.home-overview-organized .student-homework-notice .button { grid-column:1/-1; width:100%; justify-self:stretch; }
  .academy-theme .academy-community-home.home-overview-organized .academy-reference-panel>header { flex-wrap:wrap; }
  .academy-theme .academy-community-home.home-overview-organized .home-priority-grid .academy-upcoming>header { align-items:start; }
}
