:root {
  --authority-navy: #0a1628;
  --authority-paper: #f5f2ec;
  --authority-ink: #e9dfcd;
  --authority-ink-soft: rgba(233, 223, 205, 0.72);
  --authority-text: #1a1a1a;
  --authority-text-soft: rgba(26, 26, 26, 0.58);
  --authority-rule: rgba(26, 26, 26, 0.1);
  --authority-rule-dark: rgba(233, 223, 205, 0.14);
  --authority-max-w: 1120px;
}

/* === Page === */

.authority-page {
  background: var(--authority-paper);
  color: var(--authority-text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.5;
}

body:not(.home) main.authority-page {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* === Wrap === */

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

/* === Sections === */

.authority-section {
  padding: 96px 0;
}

/* Navy bands (hero + CTA) */
.authority-band-navy {
  background: var(--authority-navy);
  color: var(--authority-ink);
}

/* Paper band (all middle content) */
.authority-band-paper {
  background: var(--authority-paper);
  color: var(--authority-text);
}

/* === Typography === */

.authority-label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--authority-text-soft);
}

.authority-band-navy .authority-label {
  color: rgba(233, 223, 205, 0.4);
}

.authority-title {
  margin: 0 0 0.75rem;
  font-family: "Canela", Georgia, serif;
  font-size: clamp(2rem, 2.5vw, 2.75rem);
  line-height: 1.06;
  color: inherit;
}

.authority-intro {
  margin: 0 0 2.5rem;
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--authority-text-soft);
}

.authority-band-navy .authority-intro {
  color: var(--authority-ink-soft);
}

/* === Buttons === */

.authority-btn {
  display: inline-block;
  padding: 0.82rem 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.authority-btn:hover,
.authority-btn:focus-visible {
  opacity: 0.88;
}

.authority-btn-primary {
  background: var(--authority-ink);
  color: var(--authority-navy);
}

.authority-link {
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  opacity: 0.65;
  transition: opacity 0.15s;
}

.authority-link:hover,
.authority-link:focus-visible {
  opacity: 1;
}

/* === Breadcrumb === */

.authority-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.authority-breadcrumb a {
  color: rgba(233, 223, 205, 0.6);
  text-decoration: none;
  transition: color 0.15s;
}

.authority-breadcrumb a:hover {
  color: rgba(233, 223, 205, 0.85);
}

.authority-breadcrumb-sep {
  color: rgba(233, 223, 205, 0.4);
  font-size: 0.65rem;
}

.authority-breadcrumb-current {
  color: rgba(233, 223, 205, 0.8);
}

/* ============================================
   1. HERO
   ============================================ */

.authority-hero {
  padding: 120px 0;
  background: #2b3546 url('/img/hero-pallet-jack-api-centered-wide.webp') center center / cover no-repeat;
}

.authority-hero > .authority-wrap {
  background: rgba(9, 18, 31, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.authority-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

.authority-hero-title {
  margin: 0 0 1rem;
  font-family: "Canela", Georgia, serif;
  font-size: clamp(3rem, 4.2vw, 3.75rem);
  line-height: 0.96;
  color: var(--authority-ink);
}

.authority-hero-subtitle {
  margin: 0 0 2.5rem;
  max-width: 42ch;
  color: var(--authority-ink-soft);
  font-size: 1.1rem;
  line-height: 1.45;
}

.authority-hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Blueprint visual */
.authority-hero-visual {
  min-height: 280px;
}

.authority-blueprint {
  display: grid;
  gap: 0.6rem;
}

.authority-blueprint-label {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(233, 223, 205, 0.7);
}

.authority-blueprint-figure {
  width: 100%;
  height: auto;
  display: block;
}

.authority-blueprint-figure text {
  font-family: "Inter", system-ui, sans-serif;
  fill: rgba(233, 223, 205, 0.9);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authority-blueprint-figure .bp-caption {
  font-size: 9.5px;
  letter-spacing: 0.03em;
  fill: rgba(233, 223, 205, 0.85);
  text-transform: none;
}

.authority-blueprint-figure .bp-frame {
  fill: none;
  stroke: rgba(233, 223, 205, 0.35);
  stroke-width: 1;
}

.authority-blueprint-figure .bp-lines {
  fill: none;
  stroke: rgba(233, 223, 205, 0.45);
  stroke-width: 1;
}

.authority-blueprint-figure .bp-arrows {
  fill: none;
  stroke: rgba(233, 223, 205, 0.75);
  stroke-width: 1.5;
}

.authority-blueprint-figure .bp-node {
  fill: rgba(233, 223, 205, 0.06);
  stroke: rgba(233, 223, 205, 0.5);
  stroke-width: 1;
}

/* ============================================
   2. PROOF BAND
   ============================================ */

.authority-proof {
  padding: 0;
  background: var(--authority-navy);
}

.authority-proof-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 2rem;
  border-top: 1px solid var(--authority-rule-dark);
}

.authority-proof-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.authority-proof-logos img {
  height: 22px;
  width: auto;
  opacity: 0.4;
  filter: grayscale(1) brightness(10);
  transition: opacity 0.15s;
}

.authority-proof-logos img:hover {
  opacity: 0.6;
}

.authority-proof-logo-placeholder {
  height: 18px;
  display: flex;
  align-items: center;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.35;
  color: var(--authority-ink-soft);
}

.authority-proof-metrics {
  display: flex;
  align-items: baseline;
  gap: 2.5rem;
  flex-shrink: 0;
}

.authority-proof-metric {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  white-space: nowrap;
}

.authority-proof-metric-value {
  font-family: "Canela", Georgia, serif;
  font-size: 1.35rem;
  color: var(--authority-ink);
}

.authority-proof-metric-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--authority-ink-soft);
}

.authority-proof-metric-icon {
  width: 18px;
  height: 18px;
  stroke: var(--authority-ink);
  fill: none;
  stroke-width: 1;
  opacity: 0.4;
  flex-shrink: 0;
}

/* ============================================
   CONTENT BODY — single paper background
   All sections between hero and CTA share
   one continuous background. Separated by
   thin rules, not color changes.
   ============================================ */

.authority-body-section {
  padding: 96px 0;
}

.authority-body-section + .authority-body-section {
  padding-top: 0;
}

/* Patent-drawing separator between sections */
.authority-separator {
  display: block;
  width: 100%;
  max-width: var(--authority-max-w);
  height: auto;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  box-sizing: border-box;
  pointer-events: none;
  user-select: none;
}

/* ============================================
   3. FRAMEWORK (WHAT WE CONTROL)
   ============================================ */

.authority-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.authority-pillar {
  padding-top: 1.25rem;
  border-top: 1px solid var(--authority-rule);
}

.authority-line-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 0.75rem;
  stroke: var(--authority-text);
  fill: none;
  stroke-width: 1;
  opacity: 0.45;
}

.authority-pillar-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--authority-text);
}

.authority-pillar-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--authority-text-soft);
}

/* ============================================
   4. EXECUTION SEQUENCE (HOW IT RUNS)
   ============================================ */

.authority-sequence {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

/* Connecting line */
.authority-sequence::before {
  content: "";
  position: absolute;
  top: 1.7rem;
  left: 0;
  right: 0;
  border-top: 1px solid var(--authority-rule);
}

.authority-step {
  position: relative;
  z-index: 1;
  padding-right: 1.5rem;
}

.authority-step-num {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: "Canela", Georgia, serif;
  font-size: 2.25rem;
  line-height: 1;
  color: rgba(26, 26, 26, 0.22);
  background: var(--authority-paper);
  padding-right: 0.6rem;
}

.authority-step-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--authority-text);
}

.authority-step-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--authority-text-soft);
}

/* ============================================
   5. COST & CONTROL
   ============================================ */

.authority-cost-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.authority-cost-body h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--authority-text);
}

.authority-cost-body p {
  margin: 0 0 1.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--authority-text-soft);
}

.authority-cost-body p:last-child {
  margin-bottom: 0;
}

.authority-metric-panel {
  border: 1px solid var(--authority-rule);
  padding: 1.25rem 1.35rem;
}

.authority-metric-panel-title {
  margin: 0 0 1rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--authority-text-soft);
}

.authority-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.7rem 0;
  border-top: 1px solid var(--authority-rule);
}

.authority-metric-row:first-of-type {
  border-top: none;
}

.authority-metric-row-label {
  font-size: 0.88rem;
  color: var(--authority-text-soft);
}

.authority-metric-row-value {
  font-family: "Canela", Georgia, serif;
  font-size: 1.35rem;
  color: var(--authority-text);
}

/* ============================================
   6. FINAL CTA
   ============================================ */

.authority-final-cta {
  padding: 96px 0;
  text-align: center;
}

.authority-final-cta .authority-title {
  color: var(--authority-ink);
  margin-bottom: 1.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .authority-hero {
    padding: 80px 0;
  }

  .authority-hero {
    background-image:
      linear-gradient(rgba(9, 18, 31, 0.78), rgba(9, 18, 31, 0.78)),
      url('/img/hero-pallet-jack-api-centered-wide.webp');
  }

  .authority-hero > .authority-wrap {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0 1.5rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .authority-section {
    padding: 72px 0;
  }

  .authority-body-section {
    padding: 60px 0;
  }

  .authority-hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .authority-hero-visual {
    display: none;
  }

  .authority-pillars {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .authority-sequence {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .authority-sequence::before {
    display: none;
  }

  .authority-step {
    padding-right: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--authority-rule);
  }

  .authority-step-num {
    background: transparent;
    padding-right: 0;
  }

  .authority-cost-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .authority-proof-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 0;
    gap: 1rem;
  }

  .authority-proof-metrics {
    gap: 1.5rem;
  }
}

@media (max-width: 720px) {
  .authority-hero {
    padding: 28px 0;
  }

  .authority-section {
    padding: 56px 0;
  }

  .authority-body-section {
    padding: 48px 0;
  }

  .authority-final-cta {
    padding: 56px 0;
  }

  .authority-hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .authority-hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .authority-pillars,
  .authority-sequence {
    grid-template-columns: 1fr;
  }

  .authority-proof-logos {
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .authority-proof-metrics {
    flex-direction: column;
    gap: 1rem;
  }

  .authority-hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
