/* Board layout, filters, sheets and the landing hero (docs/DESIGN.md). */

.boardhead__filters { max-width: 70%; overflow: hidden; text-overflow: ellipsis; justify-content: flex-start; font-weight: 500; color: var(--ink-secondary); text-decoration: none; }
.boardhead__filters:hover { text-decoration: underline; }
.boardhead__tz { padding: 0 var(--gutter) 8px; font: 400 12px/1.4 var(--mono); color: var(--ink-secondary); }
.board-main { min-width: 0; max-width: 1440px; margin: 0 auto; }
.state--error[hidden] { display: none; }

/* Skeleton shows only while a filter request is in flight. */
.fixtures--loading { display: none; }
.htmx-request .fixtures--loading { display: block; }
.htmx-request .board-results { display: none; }
.more { padding: 16px var(--gutter) 0; }

/* Sheets: bottom sheet on mobile, centred dialog from 768px. Native <dialog> traps focus. */
dialog.sheet {
  border: 1px solid var(--rule); padding: 0; width: 100%; max-width: 100%; max-height: 90vh; overflow: auto;
  margin: auto 0 0 0; background: var(--bg); color: var(--ink); border-radius: 0;
}
dialog.sheet::backdrop { background: var(--overlay); }
dialog.sheet[open] { animation: sheet-up 150ms ease-out; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open] { animation: none; } }
@media (min-width: 768px) {
  dialog.sheet { max-width: 480px; margin: auto; }
}
.sheet__form { display: flex; flex-direction: column; max-height: 90vh; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 8px var(--gutter) 0; }
.sheet__body { display: flex; flex-direction: column; gap: 16px; padding: 8px var(--gutter) 16px; overflow: auto; }
.sheet__foot {
  position: sticky; bottom: 0; display: flex; align-items: center; gap: 16px;
  padding: 12px var(--gutter); background: var(--bg); border-top: 1px solid var(--rule);
}
.group-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.group-fields legend { padding: 0; margin-bottom: 4px; }
.filters-inline { margin-bottom: 16px; }

/* Squad lists reuse the fixture row with a status line in place of the day bars. */
.status-text { font-size: 13px; color: var(--ink-secondary); padding-left: 0; }
.fixture--status .fixture__strip { gap: 0; }

.row--server { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; }
.row__side { text-align: right; font-size: 13px; white-space: nowrap; display: flex; flex-direction: column; }
.row__main small { font-size: 13px; line-height: 1.4; }
@media (max-width: 480px) {
  .row--server { flex-direction: column; align-items: flex-start; }
  .row__side { text-align: left; }
}

/* Landing page: the hero scene sits behind the first section and nothing else (docs/DESIGN.md) */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--rule);
  padding: 36px var(--gutter) 110px;
}
/* The scene is much wider than the hero is tall, so the house stays small; the sky above it holds the stars. */
.hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__inner { position: relative; max-width: 1440px; margin: 0 auto; }
.hero__title {
  max-width: 760px; font-size: clamp(42px, 12vw, 68px); line-height: 0.98; font-weight: 800;
  letter-spacing: -0.035em; margin-bottom: 20px;
}
.hero__lede { max-width: 620px; font-size: 17px; line-height: 1.5; color: var(--ink-hero); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.hero__note { max-width: 620px; margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--ink-secondary); }
@media (min-width: 768px) {
  .hero { padding: 64px var(--gutter) 120px; }  .hero__lede { font-size: 19px; }
}

.landing { padding: 0 var(--gutter) 48px; max-width: 1440px; margin: 0 auto; }
.landing .section { margin-top: 48px; }
.landing .section__title { font-size: 20px; font-weight: 800; }
.landing__steps { list-style: none; padding: 0; margin-top: 12px; border-top: 1px solid var(--rule-strong); counter-reset: step; max-width: 720px; }
.landing__steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.landing__steps li::before { content: counter(step); font: 700 16px/1.5 var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; }
.landing__steps b { display: block; font-weight: 600; font-size: 17px; }
.landing__steps span { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.landing .fixtures { margin: 0 calc(var(--gutter) * -1); }
.landing .fixtures-head { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
