/* Sitemap artboard. A neutral working document: graphite on white, orange only for the primary action. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root { --ink: #2B2F33; --ink-2: #4A5057; --line: #8C9398; --soft: #ECEEF0; --action: #F26A21; }

* { box-sizing: border-box; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font: 400 15px/1.4 "Archivo", system-ui, sans-serif; }
h1, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

.map { min-width: 1280px; padding: 44px 56px 40px; }

.map-head { display: grid; grid-template-columns: auto 1fr auto; column-gap: 28px; align-items: end; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.map-head h1 { font-stretch: 125%; font-weight: 900; font-size: 44px; line-height: 1; text-transform: uppercase; letter-spacing: -0.01em; }
.map-head p { font-size: 17px; line-height: 1.4; color: var(--ink-2); padding-bottom: 4px; }
.legend { display: flex; gap: 26px; font-size: 13.5px; color: var(--ink-2); padding-bottom: 5px; }
.legend li { display: flex; align-items: center; gap: 9px; }
.key { display: block; width: 30px; height: 16px; border: 2px solid var(--ink); background: #FFFFFF; }
.key.action { background: var(--action); border-color: var(--action); }

.tree { padding-top: 34px; }

.node { position: relative; background: var(--soft); border: 2px solid var(--ink); padding: 9px 12px 8px; }
.node b { display: block; font-weight: 700; font-size: 15.5px; line-height: 1.32; }
.node span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--ink-2); }
.node.action { background: var(--action); border-color: var(--action); color: #1B1E21; }
.node.action span { color: #1B1E21; }
.node.home { background: var(--ink); color: #FFFFFF; padding: 13px 18px 12px; }
.node.home b { font-stretch: 125%; font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: 0.01em; }
.node.home span { color: #D7DBDE; font-size: 13.5px; }

.root { display: flex; justify-content: center; position: relative; padding-bottom: 30px; }
.root .node { width: 420px; text-align: center; }
.root::after { content: ""; position: absolute; left: 50%; bottom: 0; height: 30px; border-left: 2px solid var(--ink); }

/* first level: four columns hanging from one bus line */
.branches { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; column-gap: 28px; position: relative; padding-top: 26px; }
.branches::before { content: ""; position: absolute; top: 0; left: calc((100% - 3 * 28px) * 1.3 / 4.3 / 2); right: calc((100% - 3 * 28px) * 1 / 4.3 / 2); border-top: 2px solid var(--ink); }
.branches > li { position: relative; }
.branches > li::before { content: ""; position: absolute; top: -26px; left: 50%; height: 26px; border-left: 2px solid var(--ink); }
.branches > li > .node b { font-stretch: 112%; font-size: 18px; font-weight: 800; }

/* lower levels: a rail down the left with a tick to each page */
.branches ul { margin: 0 0 0 16px; padding: 12px 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.branches ul li { position: relative; }
.branches ul li::before { content: ""; position: absolute; left: -18px; top: 20px; width: 18px; border-top: 2px solid var(--line); }

.map-foot { margin-top: 36px; padding-top: 16px; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; font-size: 14px; color: var(--ink-2); }
.map-foot b { display: inline-block; margin-right: 10px; color: var(--ink); font-stretch: 75%; font-weight: 800; font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; }

/* on a phone the four sections stack, so the map reads without sideways scrolling; the canvas frame is 1600 wide */
@media (max-width: 900px) {
  .map { min-width: 0; padding: 26px 18px 30px; }
  .map-head { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .map-head h1 { font-size: 34px; }
  .legend { flex-wrap: wrap; gap: 10px 22px; }
  .root .node { width: auto; flex: 1; }
  .root::after, .branches::before, .branches > li::before { display: none; }
  .root { padding-bottom: 18px; }
  .branches { grid-template-columns: minmax(0, 1fr); row-gap: 20px; padding-top: 0; }
  .map-foot { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
