/* The home page only (DIRECTION-R2 section 4, P-home). The brief, the agenda, the track, and What's New are the kit's (site.css); the faces are copies of
   their pages' plates (scripts/build_home.py), styled by the kit and by those pages' sheets (dc.css, energy.css). This sheet says only what home adds: the
   brief's ways out, a copy one element deeper in its face, the last face's two actions, the ruled list of task forces, and the closing band. */

/* The brief's ways out, on its meta line: the page's one paper button, then two links. */
.home-go { align-items: center; row-gap: 8px; margin-top: 4px; }
.home-go .paper { min-height: 40px; padding-block: 8px; }

/* The photograph's credit stands at the foot of the title's column, in the room the lead and the ways out leave under a one-line h1, instead of a 36px
   row of its own between the brief and the agenda (critic-home 3). It sizes nothing (inline-size containment), so the column stays the h1's width, and it
   keeps its place, hidden, in the light theme, so the brief is one height in both. */
@media screen and (min-width: 1100px) and (forced-colors: none) {
  .brief.photo-home > .photo-credit { grid-area: title; align-self: end; contain: inline-size; margin: 12px 0 0; font-size: 0.8125rem; line-height: 1.35; }
}

/* A face holds its copy one element deeper than a page's own face does. */
.agenda-faces .home-copy > .plate { margin-bottom: 0; }

/* The question sets: the Data Center page's list (dc.css), then the way to every question and the briefing link. */
.home-asks .ask-firsts li { grid-template-rows: auto; }
.home-asks-go { display: flex; flex-wrap: wrap; gap: 12px 16px; max-width: none; margin: 20px 0 0; }
.home-asks-go .button { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }

/* A section's heading and its one sentence stand together at the left: the kit's auto column stretched and sent the sentence to the far edge at 2560
   (home-shell-12). */
@media (min-width: 900px) {
  main .section-head { justify-content: start; align-items: baseline; }
}

/* How the Work Moves: the track, then the line that closes the cycle. */
#work .track { margin-bottom: 12px; }
.home-return { max-width: none; margin: 0; font-family: var(--display); font-weight: 500; color: var(--atni-text-heading); }

/* The Task Forces: one ruled list, in two columns on a desktop so four rows read as two, and from a 1240px section four across, each part on one line
   with its neighbors' (subgrid): status, name with the ways in, charge, then the resolutions it rests on. Four across saves about 250px at 1440. */
.forces { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 48px; margin: 0; padding: 0; list-style: none; }
.force { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "status" "head" "charge" "res"; grid-template-rows: auto auto auto 1fr; gap: 4px 40px; margin: 0; padding-block: 16px 20px; border-top: 1px solid var(--rule); }
.force > * { margin: 0; }
.force-status { grid-area: status; max-width: none; font-family: var(--display); font-weight: 500; font-size: 0.875rem; line-height: 1.4; color: var(--atni-text-secondary); }
.force-head { grid-area: head; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; }
.force-head h3 { margin: 0; font-size: 1.25rem; line-height: 1.2; color: var(--atni-text-heading); text-wrap: balance; }
.force-go { display: flex; gap: 0 20px; max-width: none; margin: 0; font-size: 0.9375rem; }
.force-charge { grid-area: charge; max-width: var(--measure); margin-top: 4px; }
.force-res { grid-area: res; padding-top: 8px; }
.force-res-head { max-width: none; margin: 0 0 4px; font-family: var(--display); font-weight: 500; font-size: 0.875rem; line-height: 1.4; color: var(--atni-text-secondary); }
.force-res ul { margin: 0; padding: 0; list-style: none; }
.force-res li { margin: 0; padding-block: 3px; font-size: 0.9375rem; line-height: 1.4; }
@media (min-width: 1100px) {
  .forces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Take Part: a prose band, the words and the ways out side by side. */
.home-part { display: grid; gap: 8px 48px; }
.home-part h2 { margin-bottom: 8px; }
.home-part p { margin-bottom: 0; }
.home-part .actions { margin: 0 0 12px; }
@media (min-width: 1100px) {
  .home-part { grid-template-columns: repeat(2, minmax(0, 36rem)); align-items: end; }
}

/* One grid down the page from a 1240px section (each main > section is a container): the task forces' four columns. A section's heading takes the first
   and its sentence the next two, What's New's rows start at the second and Take Part's ways out at the third, so the text of every section begins on the
   same few lines. Last in the sheet, so it wins over the narrower layouts above. */
@container (min-width: 1240px) {
  .forces, main .section-head, .whats-new-grid, .home-part { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 48px; }
  .force { grid-row: span 4; grid-template-rows: subgrid; }
  .force-head { flex-direction: column; } /* the ways in under every name, not beside a short one and under a long one */
  main .section-head > p { grid-column: 2 / span 2; max-width: var(--measure-wide); }
  .whats-new-grid > .whats-new-rows { grid-column: 2 / -1; }
  .home-part > :first-child { grid-column: 1 / span 2; }
  .home-part > :last-child { grid-column: 3 / span 2; }
}

/* On paper the ways out are buttons nobody can press, and a feed row's address runs five lines: the plates' collars carry their Sources addresses, and
   Take Part keeps its line naming atnitribes.org (critic-home 8). */
@media print {
  .force { break-inside: avoid; }
  .home-go, .home-asks-go, .home-part .actions { display: none; }
  .whats-new-rows a::after { content: none; }
}
