/* Shared styles for the content pages (guides, audience pages).
   Tokens match the home page and apps/mobile/src/ui/netball/theme/tokens.ts ("Violet"). */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/outfit-latin.woff2) format('woff2-variations');
}
:root {
  --bg: #f6f6fa;
  --surface: #ffffff;
  --ink: #16152b;
  --muted: #63627a;
  --line: #e4e3ee;
  --primary: #5b4fe0;
  --primary-pressed: #4a3fcc;
  --primary-text: #4a3fcc;
  --soft: #eceafd;
  --live: #e0457b;
  --live-soft: #fce6ee;
  --away: #f2b33d;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--primary-text);
}
img {
  display: block;
}
.wrap {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(246, 246, 250, 0.8);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 34px;
  height: 34px;
}
.wordmark {
  font-size: 19px;
  letter-spacing: -0.02em;
}
.wordmark b {
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--ink);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font:
    500 15px/1 'Outfit',
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s var(--ease);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(91, 79, 224, 0.6);
}
.btn-primary:hover {
  background: var(--primary-pressed);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.nav .btn {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* Page header */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.crumbs li + li::before {
  content: '/';
  margin-right: 8px;
  color: #c6c5d4;
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
}
.page-head {
  padding: 56px 0 40px;
}
.eyebrow {
  display: inline-block;
  margin-top: 28px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-text);
}
.page-head h1 {
  margin: 14px 0 0;
  max-width: 860px;
  font-weight: 200;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.page-head .lede {
  margin: 22px 0 0;
  max-width: 680px;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}
.updated {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* Article layout */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
  padding-bottom: 96px;
}
.prose {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.7;
}
.prose h2 {
  margin: 56px 0 0;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 32px 0 0;
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.prose p,
.prose ul,
.prose ol {
  margin: 16px 0 0;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li + li {
  margin-top: 8px;
}
.prose code {
  font: 0.88em var(--mono);
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--soft);
  overflow-wrap: anywhere;
}
.prose strong {
  font-weight: 500;
}
.prose li::marker {
  color: var(--primary);
}
.answer {
  margin: 0 0 8px;
  padding: 24px 26px;
  border-radius: 24px;
  background: var(--soft);
  font-size: 19px;
  line-height: 1.6;
}
.answer strong {
  font-weight: 500;
}
.note {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 16px;
  color: var(--muted);
}
.table-box {
  margin-top: 20px;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
th,
td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
}
tr:last-child td {
  border-bottom: 0;
}
.steps-list {
  list-style: none;
  padding: 0;
  counter-reset: s;
}
.steps-list li {
  position: relative;
  padding-left: 52px;
  counter-increment: s;
}
.steps-list li + li {
  margin-top: 18px;
}
.steps-list li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 500;
  font-size: 15px;
}
.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 24px;
  padding: 26px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.download .doc {
  width: 64px;
  height: 80px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid #d9d6fb;
  display: grid;
  place-items: center;
  font: 500 12px var(--mono);
  color: var(--primary-text);
}
.download div {
  flex: 1 1 240px;
}
.download strong {
  display: block;
  font-weight: 500;
  font-size: 18px;
}
.download span {
  font-size: 15px;
  color: var(--muted);
}

/* Sidebar */
.aside {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card {
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.card.brand-card {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.card h2 {
  margin: 0;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.card p {
  margin: 8px 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.brand-card p {
  color: rgba(255, 255, 255, 0.8);
}
.brand-card .btn {
  background: #fff;
  color: var(--primary-text);
  width: 100%;
}
.card ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 15px;
}
.card li + li {
  margin-top: 10px;
}
.card ul a {
  text-decoration: none;
}
.card ul a:hover {
  text-decoration: underline;
}

/* Bottom CTA */
.cta {
  position: relative;
  overflow: hidden;
  margin-bottom: 96px;
  border-radius: 36px;
  padding: 72px 40px;
  text-align: center;
  background: var(--primary);
  color: #fff;
}
.cta h2 {
  margin: 0;
  font-weight: 200;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.cta p {
  margin: 16px auto 0;
  max-width: 460px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}
.cta .btn {
  margin-top: 28px;
  background: #fff;
  color: var(--primary-text);
}

/* Footer */
footer {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.foot h2 {
  margin: 0 0 12px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot li + li {
  margin-top: 10px;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
}
.foot .about p {
  margin: 14px 0 0;
  max-width: 280px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .aside {
    position: static;
  }
  .foot {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
  .page-head {
    padding-top: 32px;
  }
  .prose {
    font-size: 17px;
  }
  .cta {
    padding: 56px 22px;
    border-radius: 28px;
  }
  .foot {
    grid-template-columns: 1fr;
  }
}
