/* Northline Access — GPSR 5-SKU gap checker */

:root {
  --bg: #f4f1ea;
  --bg-elev: #fffcf7;
  --bg-alt: #e8efe9;
  --ink: #1a1c19;
  --muted: #3c4038;
  --line: #c3c7b8;
  --navy: #1a3d36;
  --navy-hover: #102924;
  --forest: #1c4a32;
  --forest-hover: #143526;
  --rust: #8c3b12;
  --error: #7a1f1f;
  --ready: #1c4a32;
  --gaps: #6a4a00;
  --risk: #7a1f1f;
  --focus: #0b4f8a;
  --max: 72rem;
  --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 0.75rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--navy);
  color: #fff;
  text-decoration: underline;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 40rem); }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding: 0.9rem 0;
}
.logo { margin: 0; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; }
.logo a { color: var(--navy); text-decoration: none; }
.logo a:hover, .logo a:focus-visible { text-decoration: underline; }
.header-note { margin: 0; color: var(--muted); }

.hero { padding: 2.75rem 0 1.5rem; }
.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 650;
}
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.25; color: var(--navy); }
h1 { margin: 0 0 1rem; font-size: clamp(1.85rem, 4vw, 2.6rem); }
h2 { font-size: 1.7rem; margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.lead, .section-lede { margin: 0 0 1.1rem; max-width: 50rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.1rem;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}
.button-primary:hover, .button-primary:focus-visible,
.button:hover, .button:focus-visible { background: var(--forest-hover); border-color: var(--forest-hover); }
.button-secondary, .file-label {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.button-secondary:hover, .button-secondary:focus-visible,
.file-label:hover, .file-label:focus-visible { background: #e3eee9; }

.hint { margin: 0.35rem 0 0; color: var(--muted); font-size: 1rem; }
.section { padding: 2.25rem 0 3rem; }
.section-alt { background: var(--bg-alt); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.sku-list { display: grid; gap: 1.15rem; }
.sku-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 1.15rem 1.2rem 0.4rem;
}
.sku-card h3 { margin-top: 0; }
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}
.field { margin-bottom: 0.9rem; }
.field.span-2 { grid-column: 1 / -1; }
label, legend { display: block; font-weight: 650; margin-bottom: 0.3rem; color: var(--ink); }
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
  border: 2px solid var(--navy);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 4.5rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: #5c564c; opacity: 1; }

.results {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--line);
}
.score-line { font-size: 1.2rem; font-weight: 650; color: var(--navy); }
.table-scroll { overflow-x: auto; margin-bottom: 1rem; }
.results-table { width: 100%; border-collapse: collapse; background: var(--bg-elev); }
.results-table th, .results-table td {
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
}
.results-table thead th { background: var(--navy); color: #fff; }
.status-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border: 2px solid currentColor;
  font-weight: 700;
}
.status-ready { color: var(--ready); }
.status-gaps { color: var(--gaps); }
.status-risk { color: var(--risk); }

.field-guide { max-width: 50rem; padding-left: 1.25rem; }
.field-guide li { margin: 0.4rem 0; }

.error { margin: 0.35rem 0 0; color: var(--error); font-weight: 650; }
.form-status { min-height: 1.5em; margin: 0.75rem 0 0; color: var(--forest); font-weight: 650; }
.form-status.is-error { color: var(--error); }

.disclaimer-section {
  background: #e4e0d6;
  border-top: 3px solid var(--navy);
  border-bottom: 3px solid var(--navy);
}
.disclaimer-section p { margin: 0; }

.site-footer { background: var(--navy); color: #fff; padding: 1.5rem 0; }
.site-footer p { margin: 0 0 0.4rem; }
.site-footer a { color: #fff; text-decoration: underline; text-underline-offset: 0.15em; }

@media (max-width: 800px) {
  .field-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: auto; }
}
