/* Fonts: Source Sans 3 and Source Serif 4 (SIL Open Font License), self-hosted */
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-sans-3-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-sans-3-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-sans-3-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-sans-3-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/source-sans-3-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/source-sans-3-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/source-sans-3-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/source-sans-3-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/source-serif-4-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/source-serif-4-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* IVRCL Chandrapur Tollways - main stylesheet */

:root {
  --ink: #1b2024;
  --ink-soft: #4b535a;
  --line: #d8dcdf;
  --line-strong: #80888f;
  --paper: #fff;
  --band: #f4f3f0;
  --accent: #0f5268;
  --accent-deep: #0a3c4c;
  --accent-tint: #e8eff1;
  --signal: #f2b600;

  /* Colour scheme: top bar and footer */
  --bar-bg: #23282c;
  --bar-text: #c8ccd0;
  --bar-strong: #fff;
  --bar-line: #3b4247;
  --bar-focus: var(--signal);

  /* Colour scheme: home opening section and page titles */
  --head-bg: #f4f3f0;
  --head-text: #1b2024;
  --head-lead: #353c42;
  --head-body: #3f464c;
  --head-muted: #4b535a;
  --head-link: var(--accent);
  --head-line: #d8dcdf;
  --head-rule: #d8dcdf;
  --head-rule-size: 1px;
  --head-focus: var(--accent-deep);
  --head-overlay: rgba(244, 243, 240, 0.92);

  /* Colour scheme: route map in the opening section */
  --hmap-route: #1b2024;
  --hmap-stop-fill: #fff;
  --hmap-stop-line: #1b2024;
  --hmap-road: #b9c0c6;
  --hmap-river: #6a91a4;
  --hmap-label: #2c3237;
  --hmap-label-major: #1b2024;
  --hmap-label-muted: #5d666e;
  --hmap-label-river: #4f7486;
  --hmap-ui: #444;
  --sans: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --fs-sm: 0.875rem;
  --fs-ui: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.25rem;
  --wrap: 75rem;
  --measure: 44rem;
  --marking: repeating-linear-gradient(90deg, var(--signal) 0 3rem, transparent 3rem 5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--accent-deep);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 2px;
}

.utility :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--bar-focus);
}

.page-head :focus-visible {
  outline-color: var(--head-focus);
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  font-weight: 600;
  line-height: 1.2;
}

h1,
h2 {
  font-family: var(--serif);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  line-height: 1.12;
}

h2 {
  margin-top: 2.1em;
  font-size: clamp(1.45rem, 1.3rem + 0.7vw, 1.85rem);
}

h3 {
  margin-top: 1.9em;
  font-size: 1.2rem;
}

p,
ul,
ol,
dl,
table,
figure {
  margin: 0 0 1.1em;
}

ul,
ol {
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.35em;
}

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: -9999px;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

.small {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

/* Utility bar */

.utility {
  background: var(--bar-bg);
  color: var(--bar-text);
  font-size: var(--fs-sm);
}

.utility .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.utility p {
  margin: 0;
}

.utility a {
  color: var(--bar-strong);
  text-decoration: none;
}

.utility a:hover {
  color: var(--bar-strong);
  text-decoration: underline;
}

.utility__numbers a {
  font-weight: 700;
}

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

.utility__links li + li {
  margin-top: 0;
}

/* Header and navigation */

.site-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5rem;
}

.brand {
  display: block;
  margin: 0.9rem 0;
  padding: 0.35rem 0 0.35rem 0.85rem;
  border-left: 4px solid var(--accent);
  color: var(--ink);
  text-decoration: none;
}

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

.brand__name {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.site-nav ul {
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  display: block;
  padding: 1.7rem 0 1.55rem;
  border-bottom: 3px solid transparent;
  color: var(--ink);
  font-size: var(--fs-ui);
  font-weight: 600;
  text-decoration: none;
}

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

.site-nav a[aria-current] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-ui);
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 70em) {
  .site-header .wrap {
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    display: block;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0.25rem 1.5rem 1rem;
  }

  .site-nav li {
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    padding: 0.8rem 0 0.8rem 0.9rem;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .site-nav a[aria-current] {
    border-left-color: var(--accent);
  }

  .js .menu-toggle {
    display: block;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 5;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .js .site-nav.is-open {
    display: block;
  }
}

/* Home: opening section */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--head-bg);
  color: var(--head-text);
}

.hero::after {
  content: "";
  display: block;
  height: 6px;
  background: var(--marking);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 3.75rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  color: var(--head-text);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.5rem);
  text-wrap: balance;
}

.hero .lead {
  color: var(--head-lead);
}

.hero p {
  color: var(--head-body);
}

.hero__map {
  margin: 0;
}

.hero__map svg {
  display: block;
  width: 100%;
}

.hero .map-route {
  stroke: var(--hmap-route);
  stroke-width: 4.5;
}

.hero .map-stop {
  fill: var(--hmap-stop-fill);
  stroke: var(--hmap-stop-line);
}

.hero .map-road {
  stroke: var(--hmap-road);
}

.hero .map-river {
  stroke: var(--hmap-river);
}

.hero .map-ctx {
  fill: var(--hmap-label-muted);
}

.hero .map-label {
  fill: var(--hmap-label);
}

.hero .map-label--major {
  fill: var(--hmap-label-major);
}

.hero .map-label--ctx,
.hero .map-label--road,
.hero .map-label--area,
.hero .map-credit {
  fill: var(--hmap-label-muted);
}

.hero .map-label--ctx,
.hero .map-label--river {
  font-size: 22px;
}

.hero .map-label--area,
.hero .map-ui-text {
  font-size: 19px;
}

.hero .map-credit {
  font-size: 17px;
}

.hero .map-label--river {
  fill: var(--hmap-label-river);
}

.hero .map-ui {
  stroke: var(--hmap-ui);
}

.hero .map-ui-text {
  fill: var(--hmap-ui);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin: 0;
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}

.stats dt {
  font-size: var(--fs-ui);
}

.stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.5rem + 1.3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
}

.stats dd span {
  font-size: 0.55em;
}

.hero .stats {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--head-line);
}

.hero__note {
  margin: 1.25rem 0 0;
  padding-bottom: 2.5rem;
  font-size: var(--fs-sm);
}

.hero .hero__note,
.hero .stats dt {
  color: var(--head-muted);
}

.hero .stats dd {
  color: var(--head-text);
}

/* A photograph can replace the map in the opening section: see PHOTOS.md */

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--head-overlay) 0%, var(--head-overlay) 45%, transparent 100%);
}

.hero--photo .hero__map {
  visibility: hidden;
}

/* Home: road-user tasks */

.tasks {
  border-bottom: 1px solid var(--line);
}

.tasks ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tasks li {
  margin: 0;
  padding: 1.4rem 0 1.5rem;
}

.tasks h3 {
  margin: 0 0 0.3rem;
  font-size: var(--fs-body);
}

.tasks li:first-child h3 {
  font-size: var(--fs-ui);
}

.tasks__calls {
  display: flex;
  gap: 1.75rem;
}

.tasks__calls a {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

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

.tasks__calls span {
  display: block;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 400;
}

.tasks__link {
  display: block;
  font-weight: 600;
  text-decoration: none;
}

.tasks__link::after {
  content: " →" / "";
}

.tasks__link:hover {
  text-decoration: underline;
}

.tasks p {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

/* Sections */

.band {
  padding: 3.5rem 0 4rem;
  background: var(--band);
}

.section {
  padding: 3.5rem 0 4rem;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
}

.section-head a {
  font-weight: 600;
  white-space: nowrap;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 4rem;
}

.split > div > h2:first-child {
  margin-top: 0;
}

.split .facts div {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.15rem;
}

.lead {
  max-width: 36em;
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topics li {
  margin: 0;
  padding-top: 1rem;
  border-top: 3px solid var(--ink);
}

.topics h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.topics p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-ui);
}

/* Route map */

.route-map {
  margin: 0;
}

.route-map svg {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
}

.route-map figcaption {
  max-width: var(--measure);
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

.map-route {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.map-road {
  fill: none;
  stroke: #c3c8ce;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.map-river {
  fill: none;
  stroke: #6a91a4;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.map-stop {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 2.5;
}

.map-ctx {
  fill: #9aa5b1;
}

.route-map text,
.hero__map text {
  font-family: var(--sans);
}

.map-label {
  fill: #2c3237;
  font-size: 20px;
}

.map-label--major {
  fill: var(--ink);
  font-size: 21px;
  font-weight: 600;
}

.map-label--ctx {
  fill: #646d76;
  font-size: 17px;
}

.map-label--road {
  fill: #646d76;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.map-label--river {
  fill: #4f7486;
  font-size: 17px;
  font-style: italic;
}

.map-label--area {
  fill: #646d76;
  font-size: 15px;
  letter-spacing: 0.2em;
}

.map-ui {
  fill: none;
  stroke: #444;
  stroke-width: 1.2;
}

.map-ui-text {
  fill: #555;
  font-size: 15px;
}

.map-credit {
  fill: #646d76;
  font-size: 13px;
}

/* Linear route list, used on small screens */

.route-line {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.route-line li {
  position: relative;
  margin: 0 0 0 0.55rem;
  padding: 0 0 1.4rem 2rem;
  border-left: 3px solid var(--ink);
}

.route-line li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.route-line li::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: -0.6rem;
  width: 0.9rem;
  height: 0.9rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.route-line strong {
  display: block;
  line-height: 1.3;
}

.route-line span {
  display: block;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

.route-line .route-line__boundary::before {
  top: 0.55rem;
  left: -0.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border: 0;
  border-radius: 0;
  background: #6a91a4;
}

.route-line .route-line__boundary strong {
  color: #3d6273;
  font-style: italic;
  font-weight: 400;
}

.map-small {
  display: none;
}

.map-small .map-label,
.map-small .map-label--major,
.map-small .map-label--ctx {
  font-size: 40px;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 8px;
  stroke-linejoin: round;
}

.hero .map-small text {
  stroke: var(--head-bg);
}

.map-small .map-credit {
  font-size: 24px;
}

.map-small .map-route {
  stroke-width: 9;
}

.map-small .map-road,
.map-small .map-river {
  stroke-width: 4;
}

.map-small .map-stop {
  stroke-width: 5;
}

@media (max-width: 40em) {
  .map-large {
    display: none;
  }

  .map-small {
    display: block;
  }

  .map-large + h2 {
    margin-top: 0;
  }
}

/* Cross-section drawing */

.drawing {
  margin: 0 0 2rem;
}

.drawing__frame {
  overflow-x: auto;
  padding: 1rem 1.25rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.drawing__frame svg {
  display: block;
  width: 100%;
  margin: 0 auto;
}

.band .drawing__frame svg {
  max-width: 900px;
}

.drawing__frame svg.map-small {
  display: none;
}

@media (max-width: 40em) {
  .drawing__frame svg.map-large {
    display: none;
  }

  .drawing__frame svg.map-small {
    display: block;
  }
}

.drawing figcaption {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

.xsec-ground-line {
  fill: none;
  stroke: #b3a58c;
  stroke-width: 1.5;
}

.xsec-fill {
  fill: #eee7da;
}

.xsec-drain {
  fill: none;
  stroke: #b3a58c;
  stroke-width: 1.5;
}

.xsec-water {
  fill: none;
  stroke: #6a91a4;
  stroke-width: 2;
}

.xsec-subbase {
  fill: #cdc3b0;
}

.xsec-base {
  fill: #9aa0a5;
}

.xsec-surface {
  fill: #3d4348;
}

.xsec-shoulder {
  fill: #6c737a;
}

.xsec-marking {
  fill: #fff;
}

.xsec-earth {
  fill: #c9b58f;
}

.xsec-grass {
  fill: none;
  stroke: #6f9a5a;
  stroke-width: 4;
  stroke-linecap: round;
}

.xsec-kerb {
  fill: #d6cebd;
  stroke: #8d8472;
  stroke-width: 1.2;
}

.xsec-hedge,
.xsec-canopy {
  fill: #e3ead9;
  stroke: #5d7f4b;
  stroke-width: 1.5;
}

.xsec-stone {
  fill: #fff;
  stroke: #6c737a;
  stroke-width: 1.5;
}

.xsec-stone-top {
  fill: #3e8a4f;
}

.xsec-trunk {
  fill: none;
  stroke: #6b5238;
  stroke-width: 3;
  stroke-linecap: round;
}

.xsec-axis,
.xsec-row {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.2;
}

.xsec-axis {
  stroke-dasharray: 12 4 2 4;
}

.xsec-row {
  stroke-dasharray: 6 5;
}

.xsec-note {
  fill: var(--ink-soft);
  font-family: var(--sans);
  font-size: 17px;
}

.xsec-leader {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}

.xsec-marker {
  fill: var(--accent);
}

.xsec-num {
  fill: #fff;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
}

.xsec-num--phone {
  font-size: 30px;
}

.xsec-note--phone {
  font-size: 28px;
}

.key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 2.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: key;
}

.key li {
  position: relative;
  margin: 0;
  padding-left: 2.4rem;
  counter-increment: key;
}

.key li::before {
  content: counter(key);
  position: absolute;
  top: 0.05rem;
  left: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.6rem;
  text-align: center;
}

.key strong {
  display: block;
}

.key span {
  color: var(--ink-soft);
  font-size: var(--fs-ui);
}

.band .key {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Breakdown diagram */

.plan-verge {
  fill: #e3ead9;
}

.plan-shoulder {
  fill: #c9ccce;
}

.plan-lane {
  fill: #6f767c;
}

.plan-edge,
.plan-dash,
.plan-arrow {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
}

.plan-dash {
  stroke-dasharray: 30 22;
}

.plan-car {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 2;
}

.plan-hazard {
  fill: var(--signal);
  stroke: var(--ink);
  stroke-width: 1;
}

.plan-triangle {
  fill: #fff;
  stroke: #c62828;
  stroke-width: 3;
  stroke-linejoin: round;
}

.plan-dim {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
}

.plan-person {
  fill: var(--accent);
}

.plan-label {
  fill: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
}

.plan-label--light {
  fill: #fff;
}

.plan-small {
  fill: var(--ink-soft);
  font-family: var(--sans);
  font-size: 15px;
}

/* Key facts */

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  align-content: start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--ink-soft);
}

.facts dd {
  margin: 0;
}

.facts--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--measure);
}

/* Dated lists */

.dated {
  margin: 0 0 1.5rem;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.dated li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.dated time {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dated p {
  margin: 0;
}

.prose .dated li {
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 1rem;
}

/* Inner pages */

.page-head {
  position: relative;
  overflow: hidden;
  background: var(--head-bg);
  color: var(--head-text);
}

.page-head .wrap {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
  padding-bottom: 2.6rem;
}

.page-head::after {
  content: "";
  display: block;
  height: var(--head-rule-size);
  background: var(--head-rule);
}

.page-head h1 {
  margin-bottom: 0.45rem;
  color: var(--head-text);
}

.page-head .lead {
  margin: 0;
  color: var(--head-lead);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: var(--fs-sm);
  list-style: none;
}

.breadcrumb li {
  margin: 0;
}

.breadcrumb a {
  color: var(--head-link);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--head-muted);
}

.breadcrumb [aria-current] {
  color: var(--head-muted);
}

/* A photograph can sit behind an inner page title: see PHOTOS.md */

.page-head__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-head--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--head-overlay) 0%, var(--head-overlay) 55%, transparent 100%);
}

.layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 4rem;
  padding-top: 3rem;
  padding-bottom: 4.5rem;
}

.layout--aside {
  grid-template-columns: minmax(0, 1fr) 19rem;
}

.layout--plain {
  grid-template-columns: minmax(0, 1fr);
}

.subnav h2 {
  margin: 0 0 0.6rem;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0;
}

.subnav ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.subnav li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.subnav a {
  display: block;
  padding: 0.65rem 0 0.65rem 0.9rem;
  border-left: 3px solid transparent;
  color: var(--ink);
  text-decoration: none;
}

.subnav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.subnav a[aria-current] {
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

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

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

.prose--wide {
  max-width: none;
}

.prose--wide > p,
.prose--wide > ul,
.prose--wide > ol,
.prose--wide > h2 {
  max-width: var(--measure);
}

.aside-box {
  padding-top: 0.9rem;
  border-top: 3px solid var(--ink);
}

.aside-box + .aside-box {
  margin-top: 2.5rem;
}

.aside-box h2 {
  margin: 0 0 0.6rem;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0;
}

.aside-box p {
  font-size: var(--fs-ui);
}

.aside-links {
  margin: 0;
  padding: 0;
  font-size: var(--fs-ui);
  list-style: none;
}

.aside-links li + li {
  margin-top: 0.45rem;
}

@media (min-width: 60.01em) {
  .aside-box .facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }
}

/* Photographs */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  margin: 0 0 2.25rem;
}

.gallery--feature > :first-child {
  grid-column: 1 / -1;
}

.gallery--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

.photo {
  margin: 0;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--band);
}

.photo figcaption {
  margin-top: 0.6rem;
  line-height: 1.4;
}

.photo figcaption strong {
  display: block;
  font-size: var(--fs-ui);
  font-weight: 600;
}

.photo figcaption span {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

/* Emergency numbers */

.numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  margin: 0 0 1.5rem;
  padding: 0;
  border-top: 4px solid var(--signal);
  list-style: none;
}

.numbers li {
  margin: 0;
  padding: 0.9rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.numbers a {
  display: block;
  color: var(--ink);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

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

.numbers span {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: var(--fs-ui);
}

.contacts .numbers {
  border-top-width: 1px;
  border-top-color: var(--line);
}

/* Tables */

.table-wrap {
  margin: 0 0 1.75rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-ui);
}

caption {
  padding-bottom: 0.6rem;
  font-weight: 600;
  text-align: left;
}

th,
td {
  padding: 0.75rem 1.25rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  border-bottom: 2px solid var(--ink);
  font-size: var(--fs-sm);
}

tbody th {
  font-weight: 600;
}

td.nowrap {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 40em) {
  .register thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .register tr,
  .register td {
    display: block;
  }

  .register tr {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }

  .register td {
    padding: 0.1rem 0;
    border: 0;
  }

  .register td.nowrap {
    color: var(--ink-soft);
  }
}

/* Contact cards */

.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3rem;
  margin-bottom: 2rem;
}

.contacts section {
  padding-top: 0.9rem;
  border-top: 3px solid var(--ink);
}

.contacts h2 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
}

address {
  font-style: normal;
}

/* Footer */

.site-footer {
  background: var(--bar-bg);
  color: var(--bar-text);
  font-size: var(--fs-ui);
}

.site-footer .wrap {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.site-footer a {
  color: var(--bar-strong);
}

.site-footer a:hover {
  color: var(--bar-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 3rem;
}

.site-footer h2 {
  margin: 0 0 0.75rem;
  color: var(--bar-strong);
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0;
}

.site-footer p {
  margin: 0 0 0.8rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.3rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bar-line);
  font-size: var(--fs-sm);
}

.footer-base ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-base li + li {
  margin-top: 0;
}

/* Error page */

.not-found {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

/* Responsive */

@media (max-width: 64em) {
  .gallery--three,
  .topics,
  .band .key {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
  }

  .tasks ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tasks li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 60em) {
  .hero__grid,
  .split,
  .layout,
  .layout--aside {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .layout .subnav {
    order: 2;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 48em) {
  .facts,
  .contacts,
  .key {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts div {
    grid-template-columns: 9.5rem minmax(0, 1fr);
  }
}

@media (max-width: 40em) {
  body {
    font-size: 1rem;
  }

  .wrap {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .utility__links {
    display: none;
  }

  .site-header .wrap {
    min-height: 4rem;
    column-gap: 0.75rem;
  }

  .js .site-header .wrap {
    flex-wrap: nowrap;
  }

  .brand {
    min-width: 0;
  }

  .brand__name {
    font-size: 0.95rem;
  }

  .menu-toggle {
    padding: 0.45rem 0.65rem;
  }

  .site-nav ul {
    padding: 0.25rem 1rem 1rem;
  }

  .hero .wrap {
    padding-top: 2.5rem;
  }

  .hero .stats {
    margin-top: 2rem;
    padding-bottom: 2rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .tasks ul,
  .topics,
  .gallery,
  .gallery--three,
  .band .key {
    grid-template-columns: minmax(0, 1fr);
  }

  .tasks li {
    padding: 1.1rem 0;
  }

  .tasks li + li {
    border-top: 1px solid var(--line);
  }

  .drawing__frame {
    padding: 0.75rem 0.5rem 0.25rem;
  }

  .section,
  .band {
    padding: 2.5rem 0 3rem;
  }

  .section-head {
    display: block;
  }

  .section-head h2 {
    margin-bottom: 0.4rem;
  }

  .facts div,
  .dated li,
  .prose .dated li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }

  .numbers {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 23.5em) {
  .brand__name {
    font-size: 0.875rem;
  }
}

@media print {
  .utility,
  .site-nav,
  .menu-toggle,
  .js .menu-toggle,
  .subnav,
  .tasks,
  .site-footer .footer-links,
  .hero::after,
  .page-head::after {
    display: none;
  }

  .hero,
  .page-head,
  .band,
  .site-footer {
    background: none;
    color: #000;
  }

  .hero *,
  .page-head *,
  .site-footer *,
  a {
    color: #000 !important;
  }

  .hero svg text {
    fill: #000;
  }

  .hero .map-stop {
    fill: #fff;
    stroke: #000;
  }
}
