/* Poker Game Theory Club: shared styles for every page.
   Kept as one file on purpose: the site has no build step, and every page loads just this stylesheet. */

:root {
  --ink: #141414;
  --muted: #555;
  --rule: #e3e3e3;
  --accent: #a50d2a; /* sampled from assets/logo.png */
  --white: #fff;

  --max: 1100px;
  --gutter: 24px;
  --section: 88px;
  --thick: 4px;

  --font: "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px; /* keeps anchors and focused links clear of the sticky header */
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

p,
dl,
dd {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.band :focus-visible,
.panel :focus-visible {
  outline-color: var(--white);
}

[hidden] {
  display: none !important;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 20;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* Labels, buttons, lists */

.label {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--accent);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-solid {
  background: var(--accent);
  color: var(--white);
}

.btn-solid:hover {
  border-color: var(--ink);
  background: var(--ink);
}

.btn-outline {
  background: var(--white);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-white {
  border-color: var(--white);
  background: var(--white);
  color: var(--accent);
}

.btn-white:hover {
  background: transparent;
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.dash-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.dash-list li + li {
  margin-top: 10px;
}

.dash-list li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 30px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.site-nav svg {
  width: 22px;
  height: 22px;
}

.nav-ig-text {
  display: none;
}

/* The menu button only shows once menu.js has run (it adds .has-menu). */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
}

.menu-toggle .icon-close,
.is-open .menu-toggle .icon-open {
  display: none;
}

.is-open .menu-toggle .icon-close {
  display: block;
}

/* Sections, page intros, titles */

.section {
  padding: var(--section) 0;
}

.section + .section {
  padding-top: 0;
}

.section-title {
  padding-bottom: 20px;
  border-bottom: var(--thick) solid var(--accent);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
}

.page-intro {
  padding: 64px 0 28px;
  border-bottom: var(--thick) solid var(--accent);
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  letter-spacing: -0.035em;
}

.heading {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
}

.heading + p {
  margin-top: 16px;
}

.page-intro + .stats,
.page-intro + .channels {
  margin-top: 28px;
}

.page-lede {
  max-width: 62ch;
  margin-top: 16px;
}

.page-meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.page-intro .actions {
  margin-top: 22px;
}

.page-body {
  padding: 48px 0 var(--section);
}

.lead {
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  line-height: 1.5;
}

.muted {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 64px;
}

/* Hero (home) */

.hero {
  padding: 72px 0 var(--section);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.hero-rule {
  width: 44px;
  height: 3px;
  margin-bottom: 22px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.75rem, 6.4vw, 4.4rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero .lead {
  max-width: 34ch;
  margin-top: 24px;
}

.hero .actions {
  margin-top: 32px;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: var(--thick) solid var(--accent);
}

.hero-logo {
  width: min(100%, 380px);
  margin: 0 auto;
}

/* Sponsor row (home): hidden until a sponsor signs */

.sponsor-row {
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.sponsor-row ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.sponsor-row img {
  width: auto;
  height: 36px;
}

/* Crimson band: one per page */

.band {
  padding: 56px 0;
  background: var(--accent);
  color: var(--white);
}

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
}

.band .label {
  color: var(--white);
}

.band-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.band-detail p + p {
  margin-top: 8px;
}

.band-detail .btn {
  margin-top: 20px;
}

.band a:not(.btn) {
  color: var(--white);
}

/* Numbered rows (home) and FAQ rows share one hairline grid */

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 8px 24px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}

.row-num {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.row-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.row-text {
  color: var(--muted);
}

.faq .row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
}

/* Ledger preview (home) */

.ledger-preview {
  align-items: start;
}

.ledger-preview .actions {
  margin-top: 28px;
}

.top-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.top-rank {
  color: var(--accent);
  font-weight: 800;
}

.top-name {
  overflow-wrap: anywhere;
}

.top-points {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.empty-note {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}

/* Photo mosaic (home) */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 130px;
  gap: 6px;
}

.gallery > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-1 { grid-column: span 6; grid-row: span 2; }
.g-2,
.g-3 { grid-column: span 3; grid-row: span 2; }
.g-4,
.g-5,
.g-6 { grid-column: span 4; }
.g-7 { grid-column: span 7; grid-row: span 2; }
.g-8 { grid-column: span 5; grid-row: span 2; }

.photo-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
}

/* Two-column detail lists (home bot program) */

.split-intro {
  align-items: end;
  padding-bottom: 32px;
  border-bottom: var(--thick) solid var(--accent);
}

.split-intro .lead {
  margin-top: 16px;
}

.col-title {
  margin: 32px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

/* Join (home) */

.join-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-top: 32px;
}

.join-body .lead {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px 56px;
  align-items: start;
}

.about-grid .lead {
  margin-top: 20px;
}

.about-grid .lead + p,
.about-grid p + p {
  margin-top: 14px;
}

.panel {
  display: grid;
  place-items: center;
  aspect-ratio: 6 / 5;
  background: var(--accent);
}

.panel img {
  width: 42%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stats > div {
  padding: 24px 24px 24px 0;
}

.stats > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}

.stats dt {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stats dd {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 16px;
  border-top: 2px solid var(--accent);
}

.step-num {
  color: var(--accent);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.step-title {
  margin: 14px 0 6px;
  font-size: 1.05rem;
}

/* Tables: schedule (about) and standings (ledger) */

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table th {
  padding: 10px 12px 10px 0;
  border-bottom: 2px solid var(--accent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}

.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-table td.empty {
  padding: 24px 0;
  color: var(--muted);
}

.section-actions {
  margin-top: 36px;
}

/* Schedule page */

.schedule-page {
  padding-bottom: var(--section);
}

.schedule-page .table-scroll {
  margin-top: 32px;
}

.is-past td {
  color: var(--muted);
}

.is-next td {
  font-weight: 700;
}

.is-next td:first-child {
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background: var(--accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* Ledger page */

.ledger-page {
  padding-bottom: var(--section);
}

.scoring {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px 48px;
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--accent);
  color: var(--white);
}

.scoring .label {
  margin: 0;
  color: var(--white);
}

.ledger-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 32px 0 12px;
}

.ledger-tools[hidden] + .table-scroll {
  margin-top: 32px;
}

.ledger-search {
  width: min(100%, 320px);
}

.ledger-search .input {
  padding-left: 38px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") no-repeat 13px center;
}

.ledger-count {
  color: var(--muted);
  font-size: 14px;
}

.rank {
  width: 40px;
  font-weight: 800;
}

.move {
  width: 52px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.move-up,
.move-new {
  color: var(--accent);
}

.move-down,
.move-same {
  color: var(--muted);
}

.data-table tbody th {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
}

.player {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.data-table .soft {
  color: var(--muted);
}

.total {
  font-weight: 800;
}

.ledger-more {
  margin-top: 16px;
}

.footnote {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

/* Team: centered cards with round headshots */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member {
  padding: 32px 20px 28px;
  border: 1px solid var(--rule);
  text-align: center;
}

.headshot {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto;
  padding: 3px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--white);
  object-fit: cover;
}

.headshot-placeholder {
  display: grid;
  place-items: center;
  color: var(--rule);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.member-name {
  margin-top: 18px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.member-role {
  margin-top: 4px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.member-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.advisor {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

/* Contact */

.channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}

.channels > div {
  padding: 24px 24px 28px 0;
}

.channels > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}

.channels .label {
  margin-bottom: 8px;
}

.channels a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.channels a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.sponsor-split .lead {
  margin-top: 16px;
}

/* Forms (Formspree) */

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.field-full {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px stops iOS from zooming in on focus */
}

textarea.input {
  min-height: 110px;
  resize: vertical;
}

select.input {
  appearance: none;
  padding-right: 36px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141414' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
}

.input::placeholder {
  color: var(--muted);
}

.input:focus-visible {
  outline-offset: 0;
}

.form-actions {
  margin-top: 14px;
}

.form-note,
.form-status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.form-status:empty {
  display: none;
}

.honeypot {
  display: none;
}

/* Footer */

.site-footer {
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 40px 56px;
  padding: 48px 0;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink);
  text-decoration: none;
}

.footer-brand img {
  width: 28px;
  flex: none;
}

.footer-brand strong {
  display: block;
  font-weight: 800;
  line-height: 1.3;
}

.footer-brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.footer-title {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0 32px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
}

/* Tablet */

@media (max-width: 860px) {
  :root {
    --section: 72px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid,
  .split,
  .about-grid,
  .band-grid,
  .scoring {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 40px;
  }

  .hero-logo {
    width: 240px;
    margin: 0;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-grid > :nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  /* Mobile menu: nav collapses behind the button */
  .has-menu .menu-toggle {
    display: inline-flex;
  }

  .has-menu .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    border-bottom: 1px solid var(--rule);
    background: var(--white);
  }

  .has-menu.is-open .site-nav {
    display: block;
  }

  .has-menu .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    max-width: var(--max);
    margin: 0 auto;
    padding: 4px var(--gutter) 12px;
  }

  .has-menu .site-nav li + li {
    border-top: 1px solid var(--rule);
  }

  .has-menu .site-nav a {
    width: 100%;
    min-height: 52px;
    font-size: 17px;
  }

  .has-menu .nav-ig-text {
    display: inline;
  }
}

/* Phone */

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --section: 64px;
  }

  .page-intro {
    padding-top: 44px;
  }

  .band {
    padding: 48px 0;
  }

  .band .btn,
  .join-body .btn,
  .join-body .actions {
    width: 100%;
  }

  .row {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 26px 0;
  }

  .row-text {
    grid-column: 2;
  }

  .row-num {
    font-size: 1.5rem;
  }

  .faq .row {
    grid-template-columns: 1fr;
  }

  .faq .row-text {
    grid-column: 1;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 120px;
  }

  .gallery > * {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Phone mosaic: big, four small, one wide, two tall. */
  .gallery > .g-1 {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery > .g-6 {
    grid-column: span 2;
  }

  .gallery > .g-7,
  .gallery > .g-8 {
    grid-row: span 2;
  }

  .steps,
  .stats,
  .channels,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stats > div,
  .stats > div + div,
  .channels > div,
  .channels > div + div {
    padding: 18px 0;
    border-left: 0;
  }

  .stats > div + div,
  .channels > div + div {
    border-top: 1px solid var(--rule);
  }

  .footer-grid > :nth-child(2) {
    grid-row: auto;
  }

  .footer-links a {
    min-height: 44px;
  }

  /* Hide the weeks and last-week columns so standings fit a phone */
  .ledger-table .col-weeks,
  .ledger-table .col-last {
    display: none;
  }
}
