/* Small additions to Pico CSS (https://picocss.com), which styles everything else. */

nav .brand { text-decoration: none; }
nav form { margin: 0; }
nav button, nav [role="button"] { padding: 0.4rem 0.9rem; }

.hero { padding-block: 3rem 2rem; text-align: center; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.1; }
.hero .lead { font-size: 1.2rem; max-width: 40rem; margin-inline: auto; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--pico-muted-color); }
.cta { font-size: 1.2rem; padding: 0.9rem 2.2rem; margin-bottom: 1rem; }

section { margin-bottom: 3rem; }
.features { display: grid; gap: 1rem; }
@media (min-width: 768px) { .features { grid-template-columns: 1fr 1fr; } }
.features article { margin: 0; }
.features h3 { font-size: 1.1rem; }
.steps li { margin-bottom: 0.5rem; }

.sign-in { max-width: 30rem; margin: 2rem auto; }
.sign-in .google { width: 100%; }
.sign-in form button { width: 100%; }
.error { color: var(--pico-del-color); }
.note { color: var(--pico-muted-color); }

.flash { padding: 0.75rem 1rem; border-radius: var(--pico-border-radius); background: var(--pico-mark-background-color); color: var(--pico-mark-color); }

/* League pages */
.league-header { margin-bottom: 1rem; }
.league-header h1 { margin-bottom: 0.25rem; }
nav.tabs { justify-content: flex-start; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; border-bottom: 1px solid var(--pico-muted-border-color); margin-bottom: 1.5rem; padding-bottom: 0.5rem; }
.tabs a { text-decoration: none; }
.tabs a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-underline-offset: 0.4rem; }
.scroll { overflow-x: auto; }
.inline { display: inline; margin: 0; }
.inline button { width: auto; margin: 0; padding: 0.25rem 0.6rem; font-size: 0.85rem; }
td .inline + .inline { margin-left: 0.25rem; }
.muted, .dropped { color: var(--pico-muted-color); }
.dropped { text-decoration: line-through; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.yours { background: var(--pico-mark-background-color); color: var(--pico-mark-color); }
.on-the-clock { border-left: 4px solid var(--pico-primary); }
.clock { font-variant-numeric: tabular-nums; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; }
.filters > * { flex: 1 1 8rem; margin-bottom: 0; }
.filters button { flex: 0 0 auto; width: auto; }
.board td, .board th { min-width: 8rem; font-size: 0.85rem; vertical-align: top; }
.invite input { font-family: var(--pico-font-family-monospace); }
details.team summary { font-weight: 600; }
.draft-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .draft-grid { grid-template-columns: 3fr 2fr; } }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.section-head h2, .section-head form, .section-head input { margin: 0; }
.section-head input { width: auto; }
td.actions { white-space: nowrap; }
.filters input[type="search"] { flex: 2 1 12rem; }
.board th:first-child, .board td:first-child { min-width: 3.5rem; }
.filters > * { min-width: 0; }
td.actions button { width: auto; margin: 0; padding: 0.25rem 0.6rem; font-size: 0.85rem; }
/* Phones: keep the columns that matter (points), drop the detail. */
@media (max-width: 600px) {
  .wide { display: none; }
  .filters > input[type="search"] { flex-basis: 100%; }
}
.movement { white-space: nowrap; font-size: 0.85rem; }
.movement .up { color: var(--pico-ins-color); }
.movement .down { color: var(--pico-del-color); }
