/* eri-waste.com — single stylesheet. Edit colors in :root. */
:root {
  --ink: #14212B;
  --ink-2: #3D4B57;
  --rule: #C9CFD4;
  --concrete: #EEF0F2;
  --paper: #FFFFFF;
  --green: #0F5C4A;
  --green-dark: #0A4336;
  --amber: #9A6B14;
  --max: 1120px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--sans);
}
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 56px 20px; }
.gap { gap: 48px; }
.small { font-size: 14px; color: var(--ink-2); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 1.6em; }
h3 { font-size: 20px; margin-top: 1.4em; }
h1 + .lede, h1 + .unit { margin-top: 0; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); max-width: 46em; line-height: 1.5; }
p { max-width: 70ch; margin: 0 0 1em; }
.crumb { font-size: 14px; margin-bottom: 8px; }
.crumb a { color: var(--ink-2); }

/* header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 21px; }
.brand .mark { width: 30px; height: 30px; color: var(--green); }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15.5px; font-weight: 500; padding: 20px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 4px; padding: 8px 12px; font: 500 15px var(--sans); color: var(--ink); }

/* hero */
.hero { background: var(--concrete); padding: 64px 0 24px; border-bottom: 1px solid var(--rule); }
.hero h1 { max-width: 20ch; }
.railmap { display: block; width: 100%; height: auto; margin-top: 24px; color: var(--green); }
.railmap text { font: 500 15px var(--sans); fill: var(--ink); }
.railmap .rm-sub { font-size: 12.5px; fill: var(--ink-2); font-weight: 400; }
.railmap .rm-stop circle { fill: var(--paper); stroke: var(--green); stroke-width: 5; }
.railmap .rm-stop .rm-office { stroke: var(--ink-2); stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) {
  .railmap .rm-line path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.6s ease-out forwards; }
  .railmap .rm-stop, .railmap .rm-ties { opacity: 0; animation: fade .6s ease-out 1.2s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes fade { to { opacity: 1; } }
}

/* facility list */
.fac-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 1px solid var(--rule); }
.fac { display: block; padding: 28px 0 28px 20px; border-bottom: 1px solid var(--rule); border-left: 4px solid var(--green); color: inherit; text-decoration: none; margin-top: -1px; }
.fac:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.fac h3 { margin: 0 0 8px; font-size: 22px; }
.fac p { color: var(--ink-2); margin-bottom: 10px; font-size: 16px; }
.fac-meta { font-size: 14px; color: var(--green-dark); font-weight: 500; }

/* bands and grids */
.band { background: var(--concrete); padding: 48px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band h2 { margin-top: 0; font-size: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.contact-strip p { max-width: none; }

/* fact tables */
table.facts { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0 0 24px; }
table.facts th, table.facts td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
table.facts th { width: 34%; font-weight: 600; color: var(--ink-2); }
table.facts tr:first-child th, table.facts tr:first-child td { border-top: 2px solid var(--ink); }

.callout { background: var(--concrete); border-left: 4px solid var(--green); padding: 18px 22px; margin: 24px 0; }
.callout h2, .callout h3 { margin-top: 0; font-size: 20px; }
.callout p:last-child { margin-bottom: 0; }
.photo-slot { margin-top: 40px; background: repeating-linear-gradient(135deg, var(--concrete) 0 12px, #fff 12px 24px); border: 1px dashed var(--rule); color: var(--ink-2); padding: 72px 20px; text-align: center; font-size: 15px; }

/* people */
.people { margin: 0 0 24px; }
.people div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.people dt { font-weight: 600; font-size: 18px; }
.people dd { margin: 4px 0 0; color: var(--ink-2); }

/* form */
.form label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 16px; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: 400 16px var(--sans); border: 1px solid #9AA3AB; border-radius: 3px; background: #fff; color: var(--ink); }
.form textarea { resize: vertical; }
.form button { background: var(--green); color: #fff; border: 0; border-radius: 3px; padding: 12px 22px; font: 600 16px var(--sans); cursor: pointer; }
.form button:hover { background: var(--green-dark); }

/* CCR page */
.ccr .unit { font-weight: 500; color: var(--ink-2); margin-bottom: 20px; }
.ccr h2 { border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-top: 2.2em; }
.ccr h2 .cite { display: block; font: 400 14px/1.4 var(--sans); color: var(--ink-2); margin-top: 4px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 24px 0 8px; font-size: 15px; }
table.docs { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 8px; }
table.docs th, table.docs td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); }
table.docs th { font-weight: 600; color: var(--ink-2); font-size: 14px; }
table.docs td.cite { color: var(--ink-2); white-space: nowrap; }
table.docs .pending { color: var(--ink-2); font-style: italic; }
table.history td:first-child { white-space: nowrap; width: 8em; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: var(--concrete); padding: 1px 5px; border-radius: 3px; }

/* footer */
.site-footer { background: var(--ink); color: #D5DBE0; padding: 48px 0 24px; margin-top: 40px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 12px; max-width: none; }
.foot-brand { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #fff; }
.foot-head { font-weight: 600; color: #fff; }
.site-footer .small { color: #AEB7BF; }
.copy { margin-top: 32px; padding-top: 16px; border-top: 1px solid #34434F; }

/* responsive */
@media (max-width: 860px) {
  .grid-2, .grid-3, .fac-list { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; gap: 0; padding: 8px 20px 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 0; border-left: 3px solid transparent; padding-left: 10px; }
  .nav a[aria-current="page"] { border-left-color: var(--green); }
  .section { padding: 40px 20px; }
  .hero { padding-top: 40px; }
  .railmap text { font-size: 19px; }
  .railmap .rm-sub { font-size: 15px; }
  table.docs { display: block; overflow-x: auto; }
  table.facts th { width: 40%; }
}
@media (max-width: 600px) {
  .railmap { display: none; }
  .hero { padding-bottom: 40px; }
}
