.needs .tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tokens); margin: 0 0 8px; }
.needs h3, .steps h3 { margin-bottom: .4em; }
.steps .num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--sats); margin: 0 0 6px; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.foot { padding: 32px 20px 48px; color: var(--muted); font-size: .9rem; }

/* Land below the sticky top bar, not under it. */
section[id] { scroll-margin-top: 76px; }

/* The day as objects: this section runs wider so the six trucks fit on one row. */
#day.wrap { max-width: 1280px; }
.status { color: var(--muted); font-size: .98rem; margin: 6px 0 18px; min-height: 1.6em; }
.board { display: grid; gap: 26px; margin-bottom: 8px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.group-head h3 { font-size: 1.1rem; margin: 0; }
.group-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.trucks { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.others { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }

.obj { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border-strong); border-radius: 14px; padding: 16px; animation: rise .35s ease both; }
.obj summary { list-style: none; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; cursor: default; }
.obj summary::-webkit-details-marker { display: none; }
.obj-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); }
.obj-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.obj-head { display: grid; justify-items: start; gap: 4px; min-width: 0; }
.obj-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.obj ul { list-style: none; margin: 12px 0 0; padding: 0; color: var(--muted); font-size: .93rem; display: grid; gap: 3px; }
.stamp { font-weight: 600; font-size: .8rem; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chev { display: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 6px 4px 0; transition: transform .2s; }

/* Compact truck cards: icon on top so they stay narrow. */
.obj.compact summary { grid-template-columns: 36px 1fr auto; gap: 10px; }
.obj.compact .obj-icon { width: 36px; height: 36px; border-radius: 10px; }
.obj.compact .obj-icon svg { width: 24px; height: 24px; }
.obj.compact ul { margin-top: 10px; font-size: .9rem; }

.obj.good { border-left-color: var(--good); }
.obj.good .stamp { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.obj.good .stamp::before { content: "\2713  "; }
.obj.warn { border-left-color: var(--sats); }
.obj.warn .stamp { background: var(--sats-soft); color: var(--sats); }
.obj.bad { border-left-color: #C0392B; }
.obj.bad .stamp { background: color-mix(in srgb, #C0392B 14%, transparent); color: #C0392B; }
.obj.bad .stamp::before { content: "\2717  "; }
.obj.wait .stamp::before { content: "\2026  "; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .obj { animation: none; } .chev { transition: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .obj.bad .stamp, :root:not([data-theme="light"]) .obj.bad .stamp::before { color: #F08A7E; } }

/* Phones: one column, cards collapse to a tappable row with an arrow. */
@media (max-width: 640px) {
  .trucks, .others { grid-template-columns: 1fr; gap: 10px; }
  .obj { padding: 12px 14px; }
  .obj summary { cursor: pointer; }
  .obj-head { grid-auto-flow: column; justify-content: space-between; align-items: center; width: 100%; }
  .chev { display: block; }
  .obj[open] .chev { transform: rotate(-135deg); margin: 4px 6px 0 0; }
  .obj ul { margin-top: 10px; padding-left: 56px; }
  .obj.compact ul { padding-left: 46px; }
}
