/* LSWEF — Local Service Website Engineering Framework
   Operated by Redlane Marketing Services
   No external fonts, no third-party requests, no tracking. */

:root {
  --ink: #131a22;
  --text: #3a4552;
  --muted: #667484;
  --faint: #8b97a4;
  --accent: #16527d;
  --accent-deep: #0f3c5d;
  --rule: #e2e8ee;
  --surface: #f6f8fa;
  --surface-2: #eef2f6;
  --white: #ffffff;
  --maxw: 68rem;
  --measure: 38rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout ---------- */

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

@media (min-width: 40rem) {
  .wrap {
    padding: 0 2rem;
  }
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.021em;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.95rem, 1.35rem + 2.6vw, 3rem);
}

h2 {
  font-size: clamp(1.4rem, 1.15rem + 1.05vw, 1.85rem);
}

h3 {
  font-size: 1.1rem;
  font-weight: 640;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 1.1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

strong {
  color: var(--ink);
  font-weight: 640;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.12em 0.36em;
  border-radius: 3px;
  color: var(--accent-deep);
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* ---------- Header ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand__mark {
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand__sub {
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.005em;
}

@media (max-width: 34rem) {
  .brand__sub {
    display: none;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.945rem;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3rem, 2rem + 5vw, 5.5rem) 0 clamp(2.5rem, 2rem + 3vw, 4rem);
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  display: block;
  font-size: 0.775rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.hero h1 {
  max-width: 48rem;
}

.hero__lead {
  font-size: clamp(1.09rem, 1rem + 0.45vw, 1.28rem);
  color: var(--muted);
  max-width: 44rem;
  margin-top: 1.4rem;
  line-height: 1.58;
}

.expansion {
  margin-top: 1.5rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--surface-2);
  max-width: 44rem;
  font-size: 1rem;
  color: var(--muted);
}

.expansion dfn {
  font-style: normal;
  color: var(--ink);
  font-weight: 620;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(2.75rem, 2rem + 3.5vw, 4.5rem) 0;
  border-bottom: 1px solid var(--rule);
}

.section--surface {
  background: var(--surface);
}

.section__head {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

.section__head p {
  margin-top: 0.9rem;
  color: var(--muted);
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.9rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.9rem;
  margin-bottom: 0.6rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose li:last-child {
  margin-bottom: 0;
}

/* ---------- Phase grid (methodology) ---------- */

.phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}

@media (min-width: 36rem) {
  .phases {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60rem) {
  .phases {
    grid-template-columns: repeat(5, 1fr);
  }
}

.phase {
  background: var(--white);
  padding: 1.5rem 1.35rem;
}

.phase__num {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
}

.phase h3 {
  margin-bottom: 0.45rem;
}

.phase p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Generic card grid ---------- */

.cards {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 44rem) {
  .cards--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 52rem) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.6rem 1.5rem;
}

.card h3 {
  margin-bottom: 0.55rem;
}

.card p {
  font-size: 0.96rem;
  color: var(--muted);
}

/* ---------- Integration panel ---------- */

.panel {
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
  padding: clamp(1.6rem, 1.25rem + 1.6vw, 2.5rem);
}

.panel__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.79rem;
  font-weight: 620;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
}

.panel__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.panel h2 {
  margin-bottom: 1rem;
}

.panel__body {
  max-width: 44rem;
}

.panel__body p {
  color: var(--text);
}

.scope {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 44rem;
}

.scope li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.98rem;
  color: var(--text);
}

.scope li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.52rem;
  height: 0.52rem;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
}

.note {
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  font-size: 0.955rem;
  color: var(--text);
  max-width: 44rem;
}

/* ---------- Definition list (operator identity, contact) ---------- */

.facts {
  margin: 0;
  display: grid;
  gap: 0;
  max-width: 40rem;
}

.facts > div {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 34rem) {
  .facts > div {
    grid-template-columns: 11rem 1fr;
    align-items: baseline;
  }
}

.facts > div:first-child {
  padding-top: 0;
}

.facts dt {
  font-size: 0.83rem;
  font-weight: 620;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--faint);
}

.facts dd {
  margin: 0;
  color: var(--text);
}

/* ---------- Page header (inner pages) ---------- */

.page-head {
  padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0 clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.page-head h1 {
  max-width: 44rem;
}

.page-head__meta {
  margin-top: 1.1rem;
  font-size: 0.93rem;
  color: var(--muted);
}

/* ---------- Table of contents ---------- */

.toc {
  margin: 0 0 2.75rem;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.toc h2 {
  font-size: 0.83rem;
  font-weight: 650;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.85rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.35rem;
  columns: 1;
  font-size: 0.96rem;
}

@media (min-width: 40rem) {
  .toc ol {
    columns: 2;
    column-gap: 2rem;
  }
}

.toc li {
  margin-bottom: 0.38rem;
  break-inside: avoid;
}

/* ---------- Open question callout (honest gaps) ---------- */

.open-question {
  margin: 1.5rem 0;
  padding: 1.1rem 1.3rem;
  background: #fffaf0;
  border: 1px solid #f0e0c0;
  border-left: 3px solid #c99a3a;
  border-radius: 0 4px 4px 0;
  font-size: 0.955rem;
}

.open-question strong {
  color: #8a6520;
}

/* ---------- Footer ---------- */

.site-foot {
  padding: 3rem 0 3.5rem;
  background: var(--ink);
  color: #9fb0c0;
  font-size: 0.945rem;
}

.site-foot__grid {
  display: grid;
  gap: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

@media (min-width: 46rem) {
  .site-foot__grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 3rem;
  }
}

.site-foot h2 {
  font-size: 0.79rem;
  font-weight: 650;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: #6f8195;
  margin: 0 0 1rem;
}

.site-foot__brand .brand__mark {
  color: var(--white);
  font-size: 1.1rem;
}

.site-foot__brand p {
  margin-top: 0.75rem;
  max-width: 24rem;
  color: #8496a8;
  font-size: 0.93rem;
  line-height: 1.6;
}

.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-foot li {
  margin-bottom: 0.6rem;
}

.site-foot a {
  color: #bccbd9;
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-foot a:focus-visible {
  outline-color: #7fb3dd;
}

.site-foot__base {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  justify-content: space-between;
  font-size: 0.89rem;
  color: #6f8195;
}

/* ---------- 404 ---------- */

.center-pad {
  padding: clamp(4rem, 3rem + 6vw, 8rem) 0;
  text-align: center;
}

.center-pad .hero__lead {
  margin-left: auto;
  margin-right: auto;
}

.center-pad .nav {
  justify-content: center;
  margin-top: 2rem;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Print ---------- */

@media print {
  .site-head,
  .site-foot,
  .toc,
  .skip-link {
    display: none;
  }
  body {
    font-size: 11pt;
    color: #000;
  }
  .page-head {
    background: none;
    border-bottom: 1pt solid #000;
  }
}
