/* ============================================================
   NatureScot / NLS overrides on top of GOV.UK Frontend
   NatureScot primary teal: #006978
   NatureScot secondary teal: #4a9fa8
   NatureScot green: #3e7c3e

   Extracted from web/public/index.html's inline <style> block on
   2026-07-09 so index.html and the /dashboards.html demo pages can
   share a single source of truth. No rule content changed in the
   extraction — this file is byte-for-byte the same declarations.
   ============================================================ */

:root {
  --ns-teal:        #006978;
  --ns-teal-light:  #e5f3f5;
  --ns-teal-mid:    #4a9fa8;
  --ns-green:       #00703c;  /* GOV.UK button green */
  --ns-dark:        #0b0c0c;
  --ns-grey-light:  #f3f2f1;
  --ns-grey-mid:    #b1b4b6;
}

/* Header override */
.govuk-header {
  background-color: var(--ns-teal);
  border-bottom: none;
}
.govuk-header__link--homepage:focus,
.govuk-header__link:focus {
  outline-color: #ffdd00;
}
.govuk-header__content {
  border-top: none;
}
.nls-service-name {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 1.1875rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0;
}
.nls-org-name {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}

/* ---- Hero ---- */
.nls-hero {
  background-color: var(--ns-teal);
  color: #ffffff;
  padding: 60px 0 64px;
}
.nls-hero__title {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
  color: #ffffff;
}
@media (min-width: 641px) {
  .nls-hero__title { font-size: 3rem; }
}
.nls-hero__lead {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  margin: 0 0 32px;
  max-width: 36em;
}
.nls-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.nls-btn-primary {
  display: inline-block;
  background: #ffffff;
  color: var(--ns-teal) !important;
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 #004d59;
  transition: background 0.1s;
}
.nls-btn-primary:hover {
  background: #e5f3f5;
}
.nls-btn-secondary {
  display: inline-block;
  background: transparent;
  color: #ffffff !important;
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 11px 23px;
  border: 2px solid rgba(255,255,255,0.7);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.1s;
}
.nls-btn-secondary:hover {
  border-color: #ffffff;
}

/* ---- Section spacing ---- */
.nls-section {
  padding: 48px 0;
}
.nls-section--alt {
  background-color: var(--ns-grey-light);
}
.nls-section--teal-light {
  background-color: var(--ns-teal-light);
}
.nls-section__title {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ns-dark);
}
@media (min-width: 641px) {
  .nls-section__title { font-size: 1.875rem; }
}
.nls-section__lead {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 1.1875rem;
  color: #505a5f;
  margin: 0 0 40px;
  max-width: 42em;
}

/* ---- Problem cards ---- */
.nls-problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 641px) {
  .nls-problem-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1025px) {
  .nls-problem-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.nls-problem-card {
  background: #ffffff;
  border-left: 5px solid var(--ns-teal);
  padding: 20px 20px 20px 20px;
}
.nls-problem-card__title {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ns-dark);
}
.nls-problem-card__body {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.9375rem;
  color: #505a5f;
  margin: 0;
  line-height: 1.5;
}

/* ---- What NLS does (3-column) ---- */
.nls-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 641px) {
  .nls-features { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1025px) {
  .nls-features { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.nls-feature__icon {
  width: 48px;
  height: 48px;
  background: var(--ns-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.nls-feature__icon svg {
  fill: #ffffff;
  width: 24px;
  height: 24px;
}
.nls-feature__title {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ns-dark);
}
.nls-feature__body {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.9375rem;
  color: #505a5f;
  line-height: 1.5;
  margin: 0;
}

/* ---- How it works (numbered steps) ---- */
.nls-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 769px) {
  .nls-steps { grid-template-columns: 1fr 1fr 1fr; }
}
.nls-step {
  position: relative;
  padding: 24px;
  background: #ffffff;
  border-top: 4px solid var(--ns-teal);
}
.nls-step__number {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ns-teal);
  line-height: 1;
  margin-bottom: 12px;
}
.nls-step__title {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ns-dark);
}
.nls-step__body {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.9375rem;
  color: #505a5f;
  line-height: 1.5;
  margin: 0;
}

/* ---- Organisations ---- */
.nls-orgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (min-width: 769px) {
  .nls-orgs { grid-template-columns: repeat(5, 1fr); }
}
.nls-org-card {
  background: #ffffff;
  border: 2px solid #e5f3f5;
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.nls-org-card__flag {
  font-size: 2rem;
  line-height: 1;
}
.nls-org-card__name {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ns-dark);
  margin: 0;
  line-height: 1.3;
}
.nls-org-card__country {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.8125rem;
  color: var(--ns-grey-mid);
  margin: 0;
}

/* ---- Quote / stat bar ---- */
.nls-stat-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 641px) {
  .nls-stat-bar { grid-template-columns: 1fr 1fr 1fr; }
}
.nls-stat {
  text-align: center;
}
.nls-stat__number {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--ns-teal);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.nls-stat__label {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 1rem;
  color: var(--ns-dark);
  margin: 0;
}

/* ---- CTA band ---- */
.nls-cta {
  background-color: var(--ns-teal);
  color: #ffffff;
  padding: 56px 0;
  text-align: center;
}
.nls-cta__title {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px;
}
.nls-cta__body {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 1.1875rem;
  color: rgba(255,255,255,0.9);
  margin: 0 auto 32px;
  max-width: 38em;
}
.nls-cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.govuk-footer {
  border-top: 1px solid #b1b4b6;
}
.nls-footer-calba {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.875rem;
  color: #505a5f;
}

/* ---- Utility ---- */
.nls-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .nls-container { padding: 0 16px; }
}

.nls-tag {
  display: inline-block;
  background: #e5f3f5;
  color: var(--ns-teal);
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  margin-bottom: 16px;
}

/* Two-col text layout */
.nls-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 769px) {
  .nls-two-col { grid-template-columns: 1fr 1fr; }
}

/* Inline pipe divider for footer links */
.nls-footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.nls-footer-links li {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.875rem;
}
.nls-footer-links a {
  color: #0b0c0c;
}

/* ============================================================
   Dashboard demo pages (dashboards.html hub + /dashboards/*.html)
   Added 2026-07-09. Layered on top of the marketing overrides
   above; scoped with nls-dash- prefixes so nothing here touches
   index.html's existing selectors.
   ============================================================ */

.nls-dash-banner {
  background: #f3f2f1;
  border-bottom: 1px solid var(--ns-grey-mid);
  padding: 10px 0;
}
.nls-dash-banner p {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.9375rem;
  margin: 0;
  color: var(--ns-dark);
}

.nls-service-nav {
  background: var(--ns-grey-light);
  border-bottom: 1px solid var(--ns-grey-mid);
}
.nls-service-nav__list {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nls-service-nav__link {
  display: inline-block;
  padding: 12px 0;
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ns-teal);
  text-decoration: none;
  border-bottom: 4px solid transparent;
}
.nls-service-nav__link:hover {
  border-bottom-color: var(--ns-grey-mid);
}
.nls-service-nav__link[aria-current="page"] {
  border-bottom-color: var(--ns-teal);
}

.nls-hub-card {
  background: #ffffff;
  border: 1px solid var(--ns-grey-mid);
  border-left: 5px solid var(--ns-teal);
  padding: 24px;
  margin-bottom: 20px;
}
.nls-hub-card h3 {
  margin-top: 0;
}

.nls-kpi-tile {
  background: #ffffff;
  border: 1px solid var(--ns-grey-mid);
  border-top: 6px solid var(--ns-teal);
  padding: 16px;
  height: 100%;
}
.nls-kpi-tile__label {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #505a5f;
  margin: 0 0 8px;
}
.nls-kpi-tile__value {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ns-dark);
  margin: 0 0 8px;
  line-height: 1;
}
.nls-kpi-tile__delta {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.nls-kpi-tile__delta--up { color: #00703c; }
.nls-kpi-tile__delta--down-good { color: #00703c; }
.nls-kpi-tile__delta--down-bad { color: #d4351c; }
.nls-kpi-tile__target,
.nls-kpi-tile__range {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.8125rem;
  color: #505a5f;
  margin: 0 0 8px;
}
.nls-kpi-tile__sparkline {
  display: block;
  width: 100%;
  height: auto;
}

.nls-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}
.nls-filter-chip {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--ns-grey-mid);
  padding: 8px 14px;
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.875rem;
  color: var(--ns-dark);
}

.nls-chart-wrap {
  background: #ffffff;
  border: 1px solid var(--ns-grey-mid);
  padding: 20px;
  margin-bottom: 8px;
}

.nls-toggle-table {
  margin: 8px 0 32px;
}
.nls-toggle-table summary {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ns-teal);
  cursor: pointer;
  padding: 8px 0;
}

/* Operator console — distinct visual identity */
.nls-operator-header {
  background-color: #0b3138;
  border-bottom: none;
}
.nls-operator-accent {
  height: 4px;
  background: var(--ns-teal);
}
.nls-operator-org-name {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.875rem;
  color: #98c1c7;
}
.nls-operator-nav {
  background: var(--ns-grey-light);
  border-bottom: 1px solid var(--ns-grey-mid);
}
.nls-internal-banner {
  background: #fff7bf;
  border-bottom: 1px solid var(--ns-grey-mid);
  padding: 12px 0;
}
.nls-internal-banner__tag {
  display: inline-block;
  background: #594d00;
  color: #ffffff;
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  margin-right: 10px;
  vertical-align: middle;
}
.nls-internal-banner p {
  display: inline;
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.9375rem;
  color: var(--ns-dark);
  vertical-align: middle;
}
.nls-operator-footer {
  background: #0b3138;
  color: #98c1c7;
  padding: 32px 0;
}
.nls-operator-footer p {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 0.875rem;
  margin: 0 0 8px;
}
.nls-alert-rail {
  border-left: 4px solid var(--ns-grey-mid);
  padding: 4px 0 4px 16px;
  margin-bottom: 20px;
}
.nls-alert-rail--red { border-left-color: #d4351c; }
.nls-alert-rail--amber { border-left-color: #f47738; }
