/* Shared styles. Independent palette: deep wine-red accent on warm neutrals.
   Not flag red (#D52B1E/#FF0000), no red-and-white bands, no Canada.ca styling. */

:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1f2a27;
  --muted: #4a5753;
  --line: #d9d4c7;
  --accent: #8a2a2b;
  --accent-ink: #ffffff;
  --accent-dark: #6e1f20;
  --notice-bg: #fff6dc;
  --notice-line: #a86b00;
  --focus: #b45309;
  --panel: #efe8dc;
  --tint: #f4e9e7;
  --space: 1rem;
  --max: 46rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

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

/* Focus */
a:focus-visible,
.cta:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--space);
  top: -100px;
  background: var(--surface);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Staging bar */
.staging-bar {
  margin: 0;
  padding: 0.375rem var(--space);
  background: var(--ink);
  color: #ffffff;
  font-size: 0.8125rem;
  text-align: center;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.875rem;
  font-size: 0.875rem;
}

.nav-list a {
  color: var(--accent-dark);
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.nav-list a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

/* Header "Request information" button: red accent outline, never filled,
   so the Canada.ca button stays the primary action. */
/* Mobile: the button sits on its own row at the right, above the nav. */
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.header-inner nav {
  flex: 1 1 100%;
  min-width: 0;
}

.header-cta {
  flex: none;
  order: -1;
  margin-left: auto;
  padding: 0.375rem 0.625rem;
  border: 2px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--tint);
  color: var(--accent-dark);
}

.header-cta:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Hero */
.hero {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.0625rem;
  margin: 0 0 0.875rem;
}

.notice {
  margin: 0 0 1rem;
  padding: 0.75rem 0.875rem;
  background: var(--notice-bg);
  border-left: 4px solid var(--notice-line);
  font-size: 0.9375rem;
}

.cta-row {
  margin: 0;
}

.cta {
  display: inline-block;
  max-width: 100%;
  padding: 0.8125rem 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.cta:hover {
  background: var(--accent-dark);
}

.cta-note {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Facts */
.facts {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.25rem;
}

.facts p {
  margin: 0 0 1rem;
}

.amounts {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.amount {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.125rem;
  box-shadow: 0 1px 2px rgba(31, 42, 39, 0.06);
}

.amount h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 0.375rem;
}

.amount p {
  margin: 0 0 0.375rem;
}

.amount .status {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Decorative inline-SVG icons in a soft round badge. */
.icon {
  display: block;
}

.amount-icon,
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.625rem;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent-dark);
}

/* Home hero panel */
.hero-panel {
  padding: 1.125rem 1rem 1.25rem;
  background: var(--panel);
  border-radius: 12px;
}

.hero-panel .notice {
  background: var(--notice-bg);
}

/* How It Works step cards */
.page .steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.75rem;
}

.page .steps li {
  max-width: none;
  margin: 0;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1rem 1.125rem;
  box-shadow: 0 1px 2px rgba(31, 42, 39, 0.06);
}

.step-num {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 2px solid var(--accent-dark);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.875rem;
}

.step h3 {
  font-size: 1.125rem;
  margin: 0 0 0.375rem;
}

.page .step .status {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.source {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Inner pages */
.page {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.page .notice {
  margin-bottom: 1.25rem;
}

.page section {
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.page p,
.page li,
.page dd {
  max-width: 40rem;
}

.page p {
  margin: 0 0 0.875rem;
}

.page ul,
.page ol {
  margin: 0 0 0.875rem;
  padding-left: 1.25rem;
}

.page li {
  margin-bottom: 0.375rem;
}

.page a:not(.cta) {
  color: var(--accent-dark);
}

.status-note {
  font-size: 0.9375rem;
  color: var(--muted);
}

.cta-block {
  margin-top: 1.5rem;
}

/* FAQs */
.faq-list {
  margin: 0;
}

.faq-list dt {
  font-weight: 700;
  margin-top: 1.25rem;
}

.faq-list dt:first-child {
  margin-top: 0;
}

.faq-list dd {
  margin: 0.25rem 0 0;
}

.faq-list dd p {
  margin: 0 0 0.375rem;
}

/* Sources */
.page .source-list {
  list-style: none;
  padding-left: 0;
}

.source-list > li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.875rem;
  margin-bottom: 0.75rem;
}

.source-list .ref {
  font-weight: 700;
}

.source-meta {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}

/* URLs are plain text, never links; long ones wrap instead of overflowing. */
.url {
  display: block;
  margin-top: 0.375rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* Planned (inactive) Request information preview and draft sections,
   deliberately quieter than the Canada.ca button. */
.planned-section {
  padding-bottom: 2rem;
}

.planned {
  padding: 1rem;
  border: 2px dashed var(--muted);
  border-radius: 6px;
}

.planned-flag {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--muted);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.planned h2 {
  font-size: 1.0625rem;
}

.planned p {
  margin: 0 0 0.75rem;
}

.planned-list {
  margin: 0;
  font-size: 0.9375rem;
}

.planned-list dt {
  font-weight: 700;
  margin-top: 0.625rem;
}

.planned-list dd {
  margin: 0.125rem 0 0;
}

.planned a {
  color: var(--accent-dark);
}

/* Non-functional Request information preview (CLAUDE.md Amendment 1). No form and no
   script: CSS alone swaps the disabled button for a link to thank-you.html
   once the email is valid and the consent box is ticked. Outlined, never
   filled, so the Canada.ca button stays the primary action. */
/* Launch candidate (CLAUDE.md Amendment 3): the form box uses a solid border, not the dashed planned-module style. */
.planned.nl {
  border-style: solid;
  border-color: var(--line);
  background: var(--surface);
}

.nl-field {
  margin: 0 0 0.875rem;
}

.nl label {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.nl-opt {
  font-weight: 400;
  color: var(--muted);
}

.nl input[type="email"],
.nl input[type="text"],
.nl input[type="tel"],
.nl select {
  display: block;
  width: 100%;
  max-width: 24rem;
  padding: 0.5rem 0.625rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: 4px;
}

.nl-hint {
  font-size: 0.875rem;
  color: var(--muted);
}

.nl .nl-hint {
  margin: 0.25rem 0 0;
}

.nl-consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0 0 1rem;
}

.nl-consent input {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
}

.nl-consent label {
  font-weight: 400;
  margin: 0;
}

.nl .nl-actions {
  margin: 0;
}

.nl .nl-not-gov {
  margin: 0 0 0.625rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.ri-link {
  margin-top: 1.5rem;
  font-weight: 700;
}

.nl-join {
  display: inline-block;
  max-width: 100%;
  padding: 0.5rem 0.875rem;
  font: inherit;
  font-size: 0.9375rem;
  text-align: left;
  border-radius: 6px;
  border: 2px solid var(--accent-dark);
  background: transparent;
}

.nl input:focus-visible,
.nl select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Live form (CLAUDE.md Amendment 4). */
.nl-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nl .nl-consent-text {
  margin: 0 0 0.875rem;
  font-size: 0.9375rem;
}

.nl button.nl-join {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 700;
}

.nl button.nl-join:hover {
  background: var(--surface);
}

.nl button.nl-join:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  padding: 1rem 0;
}

/* Larger screens */
@media (min-width: 40rem) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 0.5rem 1.5rem;
  }

  .header-cta {
    order: 0;
    margin-left: 0;
  }

  /* The site label was removed; keep the nav and button on the right and leave its space empty. */
  .header-inner nav {
    flex: 0 1 auto;
    margin-left: auto;
  }

  .hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero-panel {
    padding: 2.25rem 2.25rem 2rem;
  }

  .hero-panel h1 {
    font-size: 2.75rem;
    line-height: 1.12;
  }

  .hero-panel .lede {
    font-size: 1.1875rem;
  }

  .amounts {
    grid-template-columns: 1fr 1fr;
  }

  .page .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
