/* Checklist-first homepage. Light is portal; dark is data-theme="dark". */

body.folio-home .folio-stack,
html[data-theme="portal"] body.folio-home .folio-stack,
html[data-theme="dark"] body.folio-home .folio-stack {
  display: flex;
  flex-direction: column;
  width: min(1120px, calc(100% - 48px));
  max-width: 1120px;
  align-items: stretch;
  gap: 56px;
  padding: 28px 0 64px;
}

.home-kicker {
  margin: 0 0 12px;
  color: #db0007;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 36px;
  align-items: start;
}

.home-hero-title {
  margin: 0 0 16px;
  color: #0b0d10;
  font-family: "Montserrat", "Archivo", sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
}

.home-hero-title em {
  color: #ef0107;
  font-style: italic;
}

.home-hero-sub {
  margin: 0 0 22px;
  max-width: 46ch;
  color: #3c4654;
  font-family: "Inter", "Hanken Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.home-search {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}

.home-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e3e6eb;
  border-radius: 10px;
  background: #ffffff;
  color: #0b0d10;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
}

.home-search button,
.home-play-go {
  border: 0;
  border-radius: 10px;
  background: #ef0107;
  color: #ffffff;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.home-search button {
  padding: 0 16px;
  white-space: nowrap;
}

.home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.home-chips a,
.home-set-open,
.home-play-how,
.home-all,
.home-board-link {
  color: #063672;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.home-chips a {
  padding: 6px 10px;
  border: 1px solid #e3e6eb;
  border-radius: 999px;
  background: #f6f7f9;
  color: #0b0d10;
}

.home-domain,
.home-panel-note,
.home-board-note,
.home-set-release span {
  margin: 0;
  color: #4b5260;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-panel {
  padding: 16px 16px 14px;
  border: 1px solid #e3e6eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(11, 13, 16, 0.06);
  color: #0b0d10;
}

.home-panel-url {
  margin: 0 0 12px;
  color: #4b5260;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
}

.home-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}

.home-panel-head h2,
.home-fresh h2,
.home-play h2,
.home-set-card h3,
.home-board h2 {
  margin: 0;
  color: #0b0d10;
  font-family: "Montserrat", "Archivo", sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.home-panel-head h2 {
  font-size: 22px;
}

.home-panel-head h2 a,
.home-set-card h3 a {
  color: inherit;
  text-decoration: none;
}

.home-panel-head p,
.home-team-head p {
  margin: 0;
  color: #4b5260;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-panel-kicker,
.home-team-head h3 {
  margin: 0 0 8px;
  color: #4b5260;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hit-list,
.home-team-cols ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-hit-list li {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 7px 0 7px 10px;
  border-left: 3px solid #ef0107;
  border-bottom: 1px solid #e3e6eb;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
}

.home-hit-num,
.home-hit-team,
.home-hit-badge,
.home-set-sport,
.folio-board-rank,
.folio-board-plays,
.folio-board-net {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.home-hit-num,
.home-hit-team {
  color: #4b5260;
  font-size: 12px;
  font-weight: 600;
}

.home-team-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}

.home-team-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}

.home-team-cols a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  color: #0b0d10;
  font-size: 13px;
  text-decoration: none;
}

.home-hit-badge,
.folio-board-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: #ef0107;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.home-fresh-head,
.home-board-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.home-fresh h2,
.home-play h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.home-fresh-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-set-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  padding: 16px;
  border: 1px solid #e3e6eb;
  border-top: 3px solid #063672;
  border-radius: 14px;
  background: #ffffff;
}

.home-set-sport {
  margin: 0;
  color: #4b5260;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-set-card h3 {
  font-size: 18px;
  line-height: 1.05;
}

.home-set-line {
  margin: 0;
  color: #3c4654;
  font-size: 14px;
  line-height: 1.4;
}

.home-set-release {
  margin: auto 0 0;
  color: #0b0d10;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
}

.home-set-open {
  color: #db0007;
}

.home-play {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}

/* Lab notes stay linked for the existing article URLs. The approved home does not show the rail. */
body.folio-home .folio-what-links {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-play-copy > p {
  max-width: 58ch;
  color: #3c4654;
  font-size: 16px;
  line-height: 1.5;
}

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

.home-steps span {
  display: block;
  color: #db0007;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
}

.home-steps strong {
  display: block;
  margin: 4px 0;
  color: #0b0d10;
}

.home-steps p {
  margin: 0;
  color: #4b5260;
  font-size: 13px;
  line-height: 1.35;
}

.home-play-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.home-play-go {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
}

.home-board {
  padding: 16px;
  border: 1px solid #e3e6eb;
  border-radius: 16px;
  background: #ffffff;
}

.home-board h2 {
  font-size: 18px;
}

.home-board-head p {
  margin: 0;
  color: #4b5260;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.folio-board-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e3e6eb;
  color: #0b0d10;
}

.folio-board-plays,
.folio-board-net,
.folio-board-unit {
  color: #3c4654;
  font-size: 12px;
}

.home-board-note {
  margin-top: 10px;
}

.home-board-link {
  display: inline-block;
  margin-top: 8px;
}

.footer-tagline {
  color: #0b0d10;
}

html[data-theme="dark"] body.folio-home {
  background: #0b0d10;
  color: #f4f4f1;
}

html[data-theme="dark"] .home-hero-title,
html[data-theme="dark"] .home-panel-head h2,
html[data-theme="dark"] .home-fresh h2,
html[data-theme="dark"] .home-play h2,
html[data-theme="dark"] .home-set-card h3,
html[data-theme="dark"] .home-board h2,
html[data-theme="dark"] .home-steps strong,
html[data-theme="dark"] .home-team-cols a,
html[data-theme="dark"] .folio-board-list li,
html[data-theme="dark"] .footer-tagline,
html[data-theme="dark"] .home-set-release {
  color: #f4f4f1;
}

html[data-theme="dark"] .home-hero-title em {
  color: #ef0107;
}

html[data-theme="dark"] .home-kicker {
  color: #f4f4f1;
  box-shadow: inset 3px 0 0 #ef0107;
  padding-left: 10px;
}

html[data-theme="dark"] .home-hero-sub,
html[data-theme="dark"] .home-play-copy > p,
html[data-theme="dark"] .home-set-line,
html[data-theme="dark"] .home-steps p,
html[data-theme="dark"] .folio-board-plays,
html[data-theme="dark"] .folio-board-net,
html[data-theme="dark"] .folio-board-unit {
  color: #a3a9b5;
}

html[data-theme="dark"] .home-panel,
html[data-theme="dark"] .home-set-card,
html[data-theme="dark"] .home-board,
html[data-theme="dark"] .home-search input {
  background: #151820;
  border-color: rgba(244, 244, 241, 0.12);
  color: #f4f4f1;
}

html[data-theme="dark"] .home-set-card {
  border-top-color: #ef0107;
}

html[data-theme="dark"] .home-chips a {
  background: #151820;
  border-color: rgba(244, 244, 241, 0.12);
  color: #f4f4f1;
}

html[data-theme="dark"] .home-hit-list li,
html[data-theme="dark"] .folio-board-list li {
  border-bottom-color: rgba(244, 244, 241, 0.08);
}

html[data-theme="dark"] .home-hit-badge {
  background: rgba(239, 1, 7, 0.22);
  color: #f4f4f1;
}

html[data-theme="dark"] .landing-footer {
  background: #0b0d10;
  color: #a3a9b5;
}

@media (max-width: 960px) {
  .home-hero,
  .home-play,
  .home-fresh-row,
  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-team-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.folio-home .folio-stack {
    width: min(100% - 24px, 1120px);
    gap: 36px;
  }

  .home-search {
    flex-direction: column;
  }

  .home-search button,
  .home-play-go {
    min-height: 44px;
  }
}
