/* The Margin's front page: the three forecasts as cards. Built on app.css;
   each card takes its election's accent (see web/<election>/assets/theme.css). */
:root,
:root[data-theme="light"] { --c-nsw: #F5B544; --c-vic: #E8559C; --c-fed: #E9C43A; }
:root[data-theme="dark"] { --c-nsw: #F5B544; --c-vic: #FF7EB9; --c-fed: #F2D45C; }

.hub-hero { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; max-width: 900px; margin-left: 0; }
.hub-hero h1 { font-size: 96px; line-height: .9; letter-spacing: -.01em; }
.hub-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 32px; }
.hub-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 18px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-top: 6px solid var(--c);
}
.hub-card:hover { opacity: 1; border-color: var(--line2); border-top-color: var(--c); }
.hub-card:hover .hub-go { text-decoration: underline; }
.hub-name { font-stretch: 75%; font-weight: 900; font-size: 44px; line-height: .95; text-transform: uppercase; }
.hub-when { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.hub-odds { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 6px; min-height: 120px; }
.hub-row { display: grid; grid-template-columns: 1fr 64px; align-items: baseline; gap: 12px; font-size: 15px; color: var(--body); }
.hub-row strong { color: var(--text); }
.hub-row .num { font-family: "JetBrains Mono", monospace; font-weight: 600; text-align: right; color: var(--text); }
.hub-row.lead .num { font-size: 22px; font-weight: 800; }
.hub-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); text-transform: uppercase; }
.hub-go { color: var(--text); font-weight: 600; }
.hub-note { padding-bottom: 48px; }

/* Methodology page */
.methodology .prose { max-width: 820px; color: var(--body); }
.methodology .method h3 { margin: 24px 0 8px; }
.methodology .method h3:first-child { margin-top: 0; }
.methodology .method p + p { margin-top: 12px; }
.methodology .method .ticks { margin: 12px 0; }
.method-table th { font-weight: 700; color: var(--text); }
.method-table td { white-space: normal; min-width: 180px; color: var(--body); }
.method-table tbody th { white-space: nowrap; vertical-align: top; }

@media (max-width: 960px) {
  .hub-cards { grid-template-columns: 1fr; }
  .hub-odds { min-height: 0; }
}
@media (max-width: 760px) {
  .hub-hero { padding-top: 32px; }
  .hub-hero h1 { font-size: 64px; }
  .hub-name { font-size: 36px; }
}
