/* Shared Touring Works footer treatment. */
footer,
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #080a0a !important;
  color: #f6f2ea !important;
}

footer::before,
.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: -7%;
  width: 54%;
  height: 100%;
  background: linear-gradient(112deg, transparent 0 22%, #a31731 22% 48%, #f6f2ea 48% 50%, #737473 50% 67%, transparent 67%);
  opacity: .34;
  pointer-events: none;
}

footer > *,
.site-footer > *,
footer .footer-main,
footer .footer-top,
footer .footer-bottom,
footer .footer-links,
footer .credits,
footer .independence,
footer .company-details {
  position: relative;
}

footer p,
footer li,
footer li a,
footer .footer-bottom,
footer .footer-links a,
footer .footer-links button,
footer .footer-top > p,
footer .independence,
footer .company-details,
.site-footer p,
.site-footer .footer-bottom,
.site-footer .footer-links a,
.site-footer .footer-links button {
  color: #c9c5bd !important;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer .eyebrow,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .eyebrow {
  color: #a31731 !important;
}

footer summary,
.site-footer summary {
  color: #f6f2ea !important;
}

footer a:hover,
footer button:hover,
footer summary:hover,
.site-footer a:hover,
.site-footer button:hover,
.site-footer summary:hover {
  color: #f6f2ea !important;
}

footer .footer-bottom,
footer .footer-top,
footer .credits,
.site-footer .footer-bottom {
  border-color: #626260 !important;
}

@media (max-width: 600px) {
  footer::before,
  .site-footer::before {
    right: -38%;
    width: 95%;
    opacity: .34;
  }
}

footer a.site-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  min-height: 40px;
  padding: 6px 0;
  border-bottom: 1px solid #a31731;
  color: #f6f2ea !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

footer a.site-back-to-top::after {
  content: "↑";
  color: #a31731;
  font-size: 16px;
  line-height: 1;
}

footer a.site-back-to-top:hover {
  border-color: #f6f2ea;
  color: #f6f2ea !important;
}

footer a.site-back-to-top:focus-visible {
  outline: 2px solid #f6f2ea;
  outline-offset: 4px;
}

/* One footer structure across every Touring Works page. */
footer .touring-footer-grid,
.site-footer .touring-footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 56px);
  padding-bottom: 38px;
}

footer .touring-footer-logo,
.site-footer .touring-footer-logo {
  display: inline-block;
  width: min(215px, 100%);
}

footer .touring-footer-logo img,
.site-footer .touring-footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

footer .touring-footer-brand p,
.site-footer .touring-footer-brand p {
  max-width: 390px;
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.75;
}

footer .touring-footer-section h4,
.site-footer .touring-footer-section h4 {
  margin: 2px 0 16px;
  color: #a31731 !important;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

footer .touring-footer-links,
.site-footer .touring-footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

footer .touring-footer-social,
.site-footer .touring-footer-social {
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid #626260;
}

footer .touring-footer-social h4,
.site-footer .touring-footer-social h4 {
  margin-bottom: 12px;
}

footer .touring-footer-links a,
footer .touring-footer-links button,
.site-footer .touring-footer-links a,
.site-footer .touring-footer-links button,
footer .touring-footer-actions a,
footer .touring-footer-actions button,
.site-footer .touring-footer-actions a,
.site-footer .touring-footer-actions button,
footer .touring-footer-utilities > a,
.site-footer .touring-footer-utilities > a {
  border: 0;
  background: transparent;
  padding: 0;
  color: #c9c5bd !important;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
}

footer .touring-footer-links a:hover,
footer .touring-footer-links button:hover,
.site-footer .touring-footer-links a:hover,
.site-footer .touring-footer-links button:hover,
footer .touring-footer-actions a:hover,
footer .touring-footer-actions button:hover,
.site-footer .touring-footer-actions a:hover,
.site-footer .touring-footer-actions button:hover,
footer .touring-footer-utilities > a:hover,
.site-footer .touring-footer-utilities > a:hover {
  color: #f6f2ea !important;
}

footer .touring-footer-utilities,
.site-footer .touring-footer-utilities {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 0;
  padding: 18px 0;
  border-top: 1px solid #626260;
  border-bottom: 1px solid #626260;
  color: #c9c5bd;
  font-size: 10px;
  line-height: 1.7;
}

footer .touring-footer-utilities > span,
.site-footer .touring-footer-utilities > span {
  max-width: 680px;
}

footer .touring-footer-status,
.site-footer .touring-footer-status {
  display: grid;
  gap: 3px;
}

footer .touring-footer-status strong,
.site-footer .touring-footer-status strong {
  color: #a31731;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

footer .touring-footer-actions,
.site-footer .touring-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

footer .touring-footer-grid + .touring-footer-utilities + .footer-bottom,
.site-footer .touring-footer-grid + .touring-footer-utilities + .footer-bottom {
  margin-top: 20px;
}

@media (max-width: 760px) {
  footer .touring-footer-grid,
  .site-footer .touring-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 28px;
  }

  footer .touring-footer-brand,
  .site-footer .touring-footer-brand {
    grid-column: 1 / -1;
  }

  footer .touring-footer-utilities,
  .site-footer .touring-footer-utilities {
    flex-direction: column;
    gap: 12px;
  }

  footer .touring-footer-actions,
  .site-footer .touring-footer-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  footer .touring-footer-grid,
  .site-footer .touring-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Shared information modal for the three restoration pages. */
dialog.touring-resto-modal {
  width: min(680px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #626260;
  background: #f6f2ea;
  color: #252729;
  box-shadow: 0 26px 80px #00000080;
}

dialog.touring-resto-modal::backdrop { background: #080a0acc; }

.touring-resto-modal__inner { padding: clamp(26px, 5vw, 48px); }

.touring-resto-modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.touring-resto-modal__kicker {
  margin: 0;
  color: #a31731;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.touring-resto-modal__close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid #626260;
  border-radius: 50%;
  background: transparent;
  color: #252729;
  font-size: 22px;
  line-height: 1;
}

.touring-resto-modal__close:hover { background: #a31731; border-color: #a31731; color: #f6f2ea; }

.touring-resto-modal h2 {
  margin: 0 0 20px;
  color: #252729 !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(35px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .95;
}

.touring-resto-modal__content { color: #626260; font-size: 14px; line-height: 1.75; }
.touring-resto-modal__content p { margin: 0 0 16px; }
.touring-resto-modal__content h3 { margin: 25px 0 9px; color: #252729; font-size: 15px; letter-spacing: -.02em; }
.touring-resto-modal__content ul { margin: 18px 0; padding-left: 20px; }
.touring-resto-modal__content li + li { margin-top: 8px; }
.touring-resto-modal__content a { color: #252729; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.touring-resto-modal__download {
  display: inline-flex;
  margin-top: 8px;
  padding: 13px 17px;
  border: 0;
  background: #252729;
  color: #f6f2ea;
  font: 800 12px/1.2 Arial, Helvetica, sans-serif;
}

.touring-resto-modal__download:hover { background: #a31731; }

@media (max-width: 480px) {
  .touring-resto-modal__inner { padding: 25px 21px; }
  .touring-resto-modal__top { margin-bottom: 24px; }
}
