:root {
  --home-green: #3f8429;
  --home-green-hover: #306b1e;
  --home-defense: #42832b;
  --home-amber: #c87d00;
  --home-text: #101725;
  --home-muted: #657085;
  --home-line: #dfe5e9;
}
* { box-sizing: border-box; }
html { color: var(--home-text); background: var(--surface-2); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
body { margin: 0; padding: 32px; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible { outline: 3px solid #306b1e; outline-offset: 5px; }
.skip-link { position: absolute; left: 32px; top: 0; padding: 12px 20px; background: var(--surface); transform: translateY(-120%); z-index: 20; }
.skip-link:focus { transform: translateY(0); }
.home-shell { max-width: 1280px; margin: auto; background: var(--surface); border: 1px solid var(--home-line); border-radius: var(--radius-sm); overflow: clip; }
.home-header { min-height: 84px; padding: 20px 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--home-line); }
.home-brand { display: inline-flex; align-items: center; gap: 14px; font-size: 22px; letter-spacing: -.8px; font-weight: 600; white-space: nowrap; }
.home-brand img { width: auto; height: 56px; }
.home-brand b { color: var(--home-green); font-weight: inherit; }
.home-header nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.home-login, .home-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; color: white; background: var(--btn); border-radius: var(--radius-sm); font-weight: 500; transition: background-color .15s; }
.home-login { min-height: 42px; padding: 10px 24px; }
.home-login:hover, .home-cta:hover { background: var(--btn-hover); text-decoration: none; }
.home-cta { padding-inline: 30px; font-size: 18px; }
.home-footer { padding: 20px 38px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--home-line); color: var(--home-muted); font-size: 12px; }
.home-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.home-footer p { margin: 0; }
@media (max-width: 1100px) and (min-width: 901px) {
body { padding: 24px; }
.home-cta { padding-inline: 24px; font-size: 16px; }
}
@media (max-width: 900px) {
body { padding: 16px; }
.home-header { padding: 20px 24px; flex-wrap: wrap; gap: 18px; }
.home-header nav { gap: 20px; }
.home-footer { padding: 20px 24px; }
}
@media (max-width: 600px) {
body { padding: 0; }
.home-shell { border: 0; border-radius: 0; }
.home-header { padding: 20px; gap: 16px; }
.home-brand { font-size: 21px; }
.home-header nav { width: 100%; gap: 16px; font-size: 14px; }
.home-login { margin-left: auto; padding: 10px 18px; }
.home-cta { font-size: 16px; padding-inline: 25px; }
.home-footer { padding: 20px; }
.home-footer nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
.home-login, .home-cta { transition: none; }
}
/* Sector lists in match schemes (SchemeText) wrap only after the label. */
.sectors { white-space: nowrap; }
/* Mini goal from SchemeGate: shots of one club against the other's defence. */
.gate-view { --cell: 26px; display: inline-grid; grid-template-columns: repeat(3,var(--cell)); grid-auto-rows: var(--cell); gap: 3px; padding: 3px; border: 3px solid var(--home-text); border-bottom: 2px solid var(--line-strong); vertical-align: top; }
.gate-view span { border: 1px solid var(--line-strong); background: var(--surface-2); }
.gate-view .goal { border-color: #1f7a2c; background: #2f9a3a; }
.gate-view .save { border-color: #cc5200; background: #ff6600; }
.gate-view .idle { border: 1px dashed #ff6600; background: transparent; }
