


.hero-split {
  position: relative;
  min-height: clamp(560px, 86vh, 940px);
  display: flex;
  flex-direction: column;
  background-color: var(--ground);
  border-bottom: 2px solid var(--cream-hairline);
  padding-top: calc(clamp(3.5rem, 8vw, 6.5rem) + 48px);
  padding-bottom: 0;
  overflow: hidden;
}


@media (min-width: 960px) {
  .hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
    padding-top: 0;
  }
}


.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem) var(--shell-gutter);
  position: relative;
  z-index: 2;
  min-width: 0;
}


@media (min-width: 960px) {
  .hero-content {
    padding-top: calc(clamp(4rem, 8vw, 7rem) + 40px);
    padding-bottom: clamp(3rem, 6vw, 5.5rem);
    padding-right: clamp(1.5rem, 3vw, 3rem);
  }
}


.hero-headline {
  margin-bottom: var(--space-md);
  font-family: var(--fesi-216);
  font-size: var(--text-hero);
  line-height: var(--lh-tight);
  color: var(--cream);
  word-break: break-word;
}


.hero-lead {
  font-family: var(--fesi-75a);
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
  color: var(--cream-muted);
  margin-bottom: var(--space-lg);
  max-width: 54ch;
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}


.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--cream-faint);
  font-family: var(--fesi-ec6);
  font-size: var(--text-xs);
  color: var(--cream-dim);
}


.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
}


.hero-badge-item .icon { color: var(--gold); }


.hero-visual {
  position: relative;
  min-height: 380px;
  background-color: var(--ground-deep);

  overflow: hidden;
  border-top: 1px solid var(--cream-faint);
}


@media (min-width: 960px) {
  .hero-visual {
    border-top: none;
    border-left: 1px solid var(--cream-hairline);
    min-height: 100%;
  }
}


.hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


.hero-visual-badge {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  background-color: var(--ground-translucent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--gold);
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--fesi-ec6);
  font-size: var(--text-xs);
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}


.hero-visual-badge-rate {
  color: var(--gold);
  font-weight: 700;
}



.page-header {
  position: relative;
  background-color: var(--ground-inset);
  border-bottom: 2px solid var(--cream-hairline);
  padding-top: calc(clamp(4.5rem, 8vw, 8rem) + 70px);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}


.page-header-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: var(--shell-max);
}


.page-title {
  font-family: var(--fesi-216);
  font-size: var(--text-3xl);
  line-height: var(--lh-tight);
  color: var(--cream);

  margin-bottom: var(--space-xs);
  max-width: 26ch;
}


.page-lead {
  font-family: var(--fesi-75a);
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
  color: var(--cream-muted);
  max-width: 66ch;
  margin-bottom: 0;
}


.page-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--cream-faint);
  font-family: var(--fesi-ec6);
  font-size: var(--text-xs);
  color: var(--cream-dim);
}


.page-header-meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
}


.page-header-meta-item strong { color: var(--gold); }



.job-section {
  position: relative;
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--cream-faint);
}


.job-section-tinted { background-color: var(--ground-elevated); }


.job-heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  line-height: var(--lh-heading);
  color: var(--cream);
  margin-bottom: var(--space-md);
  max-width: 38ch;
  letter-spacing: 0.01em;
}


.job-prose {
  font-family: var(--fesi-75a);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--cream-muted);
  max-width: var(--measure-prose);
}


.job-prose p { margin-bottom: var(--space-sm); }


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



.calculator-wrapper {
  background-color: var(--ground-elevated);
  border: 2px solid var(--cream-hairline);
  box-shadow: var(--shadow-elevated);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}


.calculator-header {
  padding: var(--space-md) var(--space-lg);
  background-color: var(--ground-inset);
  border-bottom: 1px solid var(--cream-hairline);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}


.calculator-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--cream);
  margin: 0;
}


.calculator-formula-note {
  font-family: var(--fesi-ec6);
  font-size: var(--text-xs);
  color: var(--cream-dim);
  margin: 0;
}


.calculator-body {
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}


@media (min-width: 880px) {
  .calculator-body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}


.calculator-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}


.calculator-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}


.calculator-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--fesi-ec6);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cream);
  letter-spacing: 0.05em;
}


.calculator-val-badge {
  color: var(--gold);
  font-size: var(--text-sm);
  font-weight: 700;
}


.calculator-slider {
  width: 100%;
  height: 8px;
  background-color: var(--ground-inset);
  border-radius: var(--radius-xs);
  outline: none;
  accent-color: var(--gold);
  cursor: pointer;
}


.calculator-slider:focus-visible {
  outline: var(--border-focus);
  outline-offset: 3px;
}


.calculator-select {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.95rem;
  background-color: var(--ground-inset);
  border: 1px solid var(--cream-hairline);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: var(--fesi-ec6);
  font-size: var(--text-sm);
}


.calculator-select:focus {
  outline: none;
  border-color: var(--gold);
}


.calculator-results {
  background-color: var(--ground-inset);
  border: 1px solid var(--cream-hairline);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-md);
}


.calc-total-block {
  display: flex;

  flex-direction: column;
  gap: var(--space-3xs);
  border-bottom: 1px solid var(--cream-faint);
  padding-bottom: var(--space-md);
}


.calc-total-label {
  font-family: var(--fesi-ec6);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
}


.calc-total-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: var(--lh-tight);
}


.calc-breakdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-family: var(--fesi-ec6);
  font-size: var(--text-xs);
}


.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--cream-muted);
  border-bottom: 1px dashed var(--cream-faint);
  padding-bottom: var(--space-3xs);
}


.calc-breakdown-row strong { color: var(--cream); }


.calc-disclaimer {
  font-family: var(--fesi-ec6);
  font-size: var(--text-xs);
  color: var(--cream-dim);
  line-height: var(--lh-body);
  border-top: 1px solid var(--cream-faint);
  padding-top: var(--space-sm);
  margin: 0;
}



.fleet-inventory-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}


.fleet-item-block {
  background-color: var(--ground-elevated);
  border: 1px solid var(--cream-hairline);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}


.fleet-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-xs);
  border-bottom: 1px solid var(--cream-faint);
  padding-bottom: var(--space-xs);
}


.fleet-machine-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--cream);
  margin: 0;
}


.fleet-machine-class {
  font-family: var(--fesi-ec6);
  font-size: var(--text-xs);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}


.fleet-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xs) var(--space-md);
  margin-top: var(--space-xs);
  background-color: var(--ground-inset);
  padding: var(--space-sm);
  border-left: 2px solid var(--gold);
}



.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}


@media (min-width: 920px) {
  .contact-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}


.contact-intel-card {
  background-color: var(--ground-elevated);
  border: 1px solid var(--cream-hairline);
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}


.contact-intel-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}


.contact-intel-heading {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--gold);
  margin: 0 0 var(--space-3xs) 0;
  letter-spacing: 0.04em;
}


.contact-intel-text {
  font-family: var(--fesi-ec6);
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: var(--cream-muted);
  margin: 0;
}



.dated-rail-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}


@media (min-width: 860px) {
  .dated-rail-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: start;
  }
}


/* The vertical / responsive rail */
.dated-rail-aside { position: relative; }


@media (min-width: 860px) {
  .dated-rail-aside {
    position: sticky;
    top: calc(80px + var(--space-md));
    border-right: 2px solid var(--gold-dim);
    padding-right: var(--space-md);
  }
}


.dated-rail-timeline {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--cream-hairline);
  -webkit-overflow-scrolling: touch;
}


@media (min-width: 860px) {
  .dated-rail-timeline {
    flex-direction: column;
    overflow-x: visible;
    gap: var(--space-lg);
    border-bottom: none;
    padding-bottom: 0;
  }
}


.rail-marker-node {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  position: relative;
}


@media (min-width: 860px) {
  .rail-marker-node {
    min-width: 0;
    padding-left: var(--space-sm);
  }


  .rail-marker-node::before {
    content: '';
    position: absolute;
    right: calc(-1 * var(--space-md) - 5px);
    top: 4px;
    width: 8px;
    height: 8px;
    background-color: var(--gold);
    border-radius: 50%;
  }
}


.rail-marker-time {
  font-family: var(--fesi-ec6);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


.rail-marker-label {
  font-family: var(--fesi-ec6);
  font-size: var(--text-xs);
  color: var(--cream-muted);
}


.rail-marker-value {
  font-family: var(--fesi-ec6);
  font-size: var(--text-xs);
  color: var(--cream-dim);
}


/* Body of Dated Rail Document */
.dated-rail-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  min-width: 0;
}


.dated-rail-section {
  position: relative;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--cream-faint);
}


.dated-rail-section:last-child { border-bottom: none; }


.rail-section-heading {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--cream);
  margin-bottom: var(--space-sm);
}


.rail-clock-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  padding: 2px 8px;
  background-color: var(--ground-inset);
  border: 1px solid var(--gold-dim);
  font-family: var(--fesi-ec6);
  font-size: var(--text-xs);
  color: var(--gold);
  margin-bottom: var(--space-sm);
}



.statute-columns-layout {
  position: relative;
  margin-top: var(--space-xl);
  column-count: 1;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  column-rule: 1px solid var(--cream-hairline);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}


@media (min-width: 768px) {
  .statute-columns-layout { column-count: 2; }
}


.statute-entry {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: var(--space-md);
  font-family: var(--fesi-75a);
  font-size: var(--text-sm);
  line-height: 1.72;
  color: var(--cream-muted);
}


/* Small-caps run-in headings starting the paragraph */
.statute-runin-title {
  font-family: var(--fesi-ec6);
  font-size: 0.95em;
  font-variant: small-caps;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--gold);
  padding-right: 0.4em;
  display: inline;
}


.statute-meta-line {
  display: block;
  font-family: var(--fesi-ec6);
  font-size: var(--text-xs);
  color: var(--cream-dim);
  margin-top: var(--space-3xs);
  font-style: normal;
}


/* Full-width table break inside cookies */
.statute-break-table {
  column-span: all;
  margin: var(--space-xl) 0;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: var(--space-md) 0;
  background-color: var(--ground-inset);
}



.tabbed-terms-layout {
  position: relative;
  margin-top: var(--space-xl);
}


.terms-tab-list {
  display: none;
  role: tablist;
  gap: var(--space-3xs);
  border-bottom: 2px solid var(--cream-hairline);
  list-style: none;
  margin: 0 0 var(--space-xl) 0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


@media (min-width: 768px) {
  .terms-tab-list { display: flex; }
}


.terms-tab-btn {
  padding: var(--space-xs) var(--space-md);
  min-height: 48px;
  background-color: var(--ground-inset);
  color: var(--cream-muted);
  font-family: var(--fesi-ec6);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--cream-faint);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}


.terms-tab-btn:hover {
  background-color: var(--ground-elevated);
  color: var(--gold);
}


.terms-tab-btn:active { background-color: var(--ground-deep); }


.terms-tab-btn:focus-visible {
  outline: var(--border-focus);
  outline-offset: -2px;
}


.terms-tab-btn[aria-selected='true'] {
  background-color: var(--ground-elevated);
  color: var(--gold);
  border-color: var(--gold);
  border-top: 3px solid var(--gold);
}


/* Tab Panels container */
.terms-tab-panel {
  display: block;
  background-color: var(--ground-elevated);
  border: 1px solid var(--cream-hairline);
  padding: clamp(1.25rem, 3.5vw, 2.75rem);
  margin-bottom: var(--space-md);
}


@media (min-width: 768px) {
  .terms-tab-panel {
    display: none;
    margin-bottom: 0;
  }


  .terms-tab-panel.is-active { display: block; }
}


/* Accordion trigger visible on mobile (<768px) only */
.terms-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--ground-inset);
  border: 1px solid var(--cream-hairline);
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-top: var(--space-xs);
}


.terms-accordion-trigger:hover {
  background-color: var(--ground-elevated);
  color: var(--gold);
}


.terms-accordion-trigger:active { background-color: var(--ground-deep); }


.terms-accordion-trigger:focus-visible {
  outline: var(--border-focus);
  outline-offset: 2px;
}


.terms-accordion-trigger[aria-expanded='true'] {
  background-color: var(--ground-elevated);
  border-color: var(--gold);
  color: var(--gold);
}


.terms-accordion-trigger .icon-chevron { transition: transform var(--dur-fast) var(--ease-out); }


.terms-accordion-trigger[aria-expanded='true'] .icon-chevron { transform: rotate(180deg); }


@media (min-width: 768px) {
  .terms-accordion-trigger { display: none; }
}


/* Mobile panel collapse mechanism */
@media (max-width: 767px) {
  .terms-tab-panel {
    display: none;
    border-top: none;
  }


  .terms-tab-panel.is-expanded { display: block; }
}


.terms-panel-heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--cream);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--cream-faint);
  padding-bottom: var(--space-xs);
}



.data-request-box {
  background-color: var(--ground-deep);
  border: 2px solid var(--gold);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  margin-top: var(--space-xl);
}


.data-request-heading {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--gold);
  margin-bottom: var(--space-xs);
}



.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}


.faq-item {
  border: 1px solid var(--cream-hairline);
  background-color: var(--ground-elevated);
  transition: border-color var(--dur-fast) var(--ease-out);
}


.faq-item.is-open { border-color: var(--gold); }


.faq-trigger {
  width: 100%;
  min-height: 52px;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  background: none;
  border: none;
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: var(--text-md);
  text-align: left;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}


.faq-trigger:hover {
  background-color: var(--ground-inset);
  color: var(--gold);
}


.faq-trigger:active { background-color: var(--ground-deep); }


.faq-trigger:focus-visible {
  outline: var(--border-focus);
  outline-offset: -2px;
}


.faq-trigger .icon {
  color: var(--gold);
  transition: transform var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}


.faq-trigger[aria-expanded='true'] .icon { transform: rotate(180deg); }


.faq-answer {
  display: none;
  padding: 0 var(--space-md) var(--space-md);
  font-family: var(--fesi-75a);
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: var(--cream-muted);
  border-top: 1px solid var(--cream-faint);
}


.faq-item.is-open .faq-answer { display: block; }



.error-404-layout {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(clamp(4rem, 8vw, 7rem) + 40px) var(--shell-gutter) clamp(3rem, 6vw, 5rem);
}


.error-404-code {
  font-family: var(--fesi-216);
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-xs);
}


.error-404-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--cream);
  margin-bottom: var(--space-sm);
}


.error-404-text {
  font-family: var(--fesi-75a);
  font-size: var(--text-md);
  color: var(--cream-muted);
  max-width: 48ch;
  margin-bottom: var(--space-lg);
}


.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}
