@import url("/assets/brand/editorial/print-tokens.css");

:root {
  --public-edge: 44px;
  --public-sheet-width: min(1240px, calc(100% - var(--public-edge) - var(--public-edge)));
  --public-shell-inset: clamp(20px, 4vw, 52px);
  --public-surface-base: var(--mk-bone);
  --public-line-surface: repeating-linear-gradient(
    0deg,
    color-mix(in srgb, var(--mk-dust) 62%, transparent) 0 1px,
    transparent 1px 5px
  );
}

@media screen {
  html { background: var(--public-surface-base); }

  body {
    position: relative;
    min-width: 0;
    background-color: var(--public-surface-base);
    background-image: var(--public-line-surface);
    overflow-x: clip;
    isolation: isolate;
  }

  body::before {
    position: fixed;
    z-index: 0;
    inset-block: 0;
    left: 50%;
    box-sizing: border-box;
    width: var(--public-sheet-width);
    max-width: 100%;
    background: var(--public-surface-base);
    border-inline: 1px solid var(--mk-sand);
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
  }

  body > * {
    position: relative;
    z-index: 1;
  }

  .document {
    width: var(--public-sheet-width);
    max-width: 100%;
    margin-inline: auto;
  }

  .profile-shell {
    width: var(--public-sheet-width);
    max-width: 100%;
    min-height: 100vh;
    margin-inline: auto;
    background: var(--public-surface-base);
  }

  /* One light substrate throughout. Only the horizontal-rule layer moves
     between the sheet and its gutters as sections alternate. */
  .surface-band {
    position: relative;
    background: var(--public-surface-base);
  }

  .surface-band--lined {
    background-color: var(--public-surface-base);
    background-image: var(--public-line-surface);
    box-shadow: 0 0 0 100vmax var(--public-surface-base);
    clip-path: inset(0 -100vmax);
  }
}

.site-header {
  position: sticky;
  z-index: 200;
  top: 0;
  display: flex;
  width: var(--public-sheet-width);
  max-width: 100%;
  min-height: 64px;
  margin-inline: auto;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--public-shell-inset);
  background: var(--mk-bone);
  border-bottom: 1px solid var(--mk-sand);
}

.site-brand {
  display: flex;
  min-width: max-content;
  min-height: 64px;
  flex-direction: column;
  justify-content: center;
  color: var(--mk-umbra);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.site-brand small {
  margin-top: 3px;
  color: var(--mk-steel);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.global-nav {
  display: flex;
  min-width: 0;
  align-items: stretch;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.global-nav::-webkit-scrollbar { display: none; }

.site-header .global-nav a {
  position: relative;
  display: inline-flex;
  min-width: max-content;
  flex: 0 0 auto;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding-inline: 14px;
  color: var(--mk-steel);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 550;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .global-nav a:hover,
.site-header .global-nav a[aria-current="page"] { color: var(--mk-umbra); }

.site-header .global-nav a[aria-current="page"]::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  background: var(--mk-ember);
  content: "";
}

.site-brand:focus-visible,
.global-nav a:focus-visible {
  outline: 2px solid var(--mk-azimuth);
  outline-offset: -4px;
}

.public-footer a:focus-visible {
  outline: 2px solid var(--mk-azimuth);
  outline-offset: 4px;
}

#products-main { padding-bottom: 0; }

.route-close {
  box-sizing: border-box;
  display: grid;
  width: 100%;
  min-height: clamp(560px, 64vw, 720px);
  align-content: center;
  padding: clamp(64px, 8vw, 100px) var(--public-shell-inset);
  color: var(--mk-umbra);
  background-color: var(--mk-parchment);
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 8px,
    color-mix(in srgb, var(--mk-dust) 58%, transparent) 8px 9px
  );
  border-bottom: 1px solid var(--mk-sand);
  font-family: var(--font-text);
}

.route-close__inner {
  width: 100%;
  max-width: 10.2in;
  margin-inline: auto;
}

.route-close__kicker {
  margin: 0;
  color: var(--mk-iron);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.route-close h2 {
  max-width: 8.6in;
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  color: var(--mk-umbra);
  font-family: var(--font-text);
  font-size: clamp(30pt, 5.4vw, 52pt);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.route-close__links {
  display: grid;
  margin-top: clamp(36px, 5vw, 52px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px);
}

.route-close__links a {
  display: flex;
  min-height: 132px;
  padding: 20px 44px 20px 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  color: var(--mk-iron);
  border-top: 2px solid var(--mk-umbra);
  text-decoration: none;
}

.route-close__links a:hover,
.route-close__links a:focus-visible { border-top-color: var(--mk-ember); }

.route-close__links a:focus-visible {
  outline: 2px solid var(--mk-azimuth);
  outline-offset: 4px;
}

.route-close__heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.route-close__label {
  color: var(--mk-steel);
  font-size: 1.28rem;
  font-weight: 600;
}

.route-close__links .public-footer__arrow {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.route-close__links a:hover .public-footer__arrow,
.route-close__links a:focus-visible .public-footer__arrow {
  transform: translate(3px, -3px) scale(1.06);
}

@media screen and (max-width: 820px) {
  .route-close { min-height: 0; }
  .route-close__links { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .route-close__links a { min-height: 112px; }
}

.public-footer {
  width: var(--public-sheet-width);
  max-width: 100%;
  margin-inline: auto;
  padding: clamp(40px, 5vw, 64px) var(--public-shell-inset) 18px;
  background: var(--public-surface-base);
  color: var(--mk-steel);
  font-family: var(--font-text);
}

.public-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 40px);
  border-block: 1px solid var(--mk-sand);
}

.public-footer__section {
  min-width: 0;
  min-height: 176px;
  margin: 0;
  padding: 24px 0;
}

.public-footer__label {
  margin: 0 0 14px;
  color: var(--mk-azimuth);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.public-footer__section p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.public-footer a {
  max-width: 100%;
  color: var(--mk-umbra);
  text-decoration: none;
}

.public-footer a:hover { color: var(--mk-azimuth); }

.public-footer__primary-link,
.public-footer__feature-link,
.public-footer__list a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.public-footer__primary-link,
.public-footer__feature-link { font-weight: 600; }

.public-footer a > span:first-child { overflow-wrap: anywhere; }

.public-footer__arrow {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  transform-origin: center;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.public-footer a:hover .public-footer__arrow,
.public-footer a:focus-visible .public-footer__arrow {
  transform: translate(3px, -3px) scale(1.06);
}

.public-footer__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-footer__list--sitemap {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
}

.public-footer__legal {
  padding-top: 14px;
  color: var(--mk-dust);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

@media screen and (max-width: 1279px) {
  :root { --public-edge: 28px; }
}

@media screen and (max-width: 1023px) {
  :root { --public-edge: 18px; }
}

@media screen and (max-width: 767px) {
  :root { --public-edge: 12px; }
}

@media screen and (max-width: 760px) {
  :root {
    --public-shell-inset: 18px;
  }

  .site-header {
    display: block;
    min-height: 112px;
    padding-inline: 0;
  }

  .site-brand {
    min-height: 64px;
    padding-inline: var(--public-shell-inset);
    border-bottom: 1px solid var(--mk-sand);
  }

  .global-nav { width: 100%; }

  .site-header .global-nav a {
    min-height: 48px;
    padding-inline: 18px;
  }

  .site-header .global-nav a[aria-current="page"]::after {
    right: 18px;
    left: 18px;
  }
}

@media screen and (max-width: 1040px) {
  .public-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
  .public-footer__section:nth-child(n + 3) { border-top: 1px solid var(--mk-sand); }
}

@media screen and (max-width: 600px) {
  .public-footer { padding-top: 40px; }
  .public-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .public-footer__section,
  .public-footer__section:nth-child(odd) {
    min-height: 0;
    padding: 20px 0;
    border-top: 1px solid var(--mk-sand);
  }
  .public-footer__section:first-child { border-top: 0; }
  .public-footer__label { margin-bottom: 12px; }
}

@media screen and (max-width: 520px) {
  :root {
    --public-edge: 8px;
    --public-shell-inset: 16px;
  }

  .route-close__links a { padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .global-nav { scroll-behavior: auto; }
  .public-footer__arrow { transition: none; }
  .route-close__links a:hover .public-footer__arrow,
  .route-close__links a:focus-visible .public-footer__arrow,
  .public-footer a:hover .public-footer__arrow,
  .public-footer a:focus-visible .public-footer__arrow { transform: none; }
}

@media (forced-colors: active) {
  body { background-image: none; }
  body::before { border-inline-color: CanvasText; }
  .surface-band--lined,
  .route-close { background-image: none; }
  .site-header .global-nav a[aria-current="page"]::after { background: CanvasText; }
  .public-footer__grid,
  .public-footer__section { border-color: CanvasText; }
}

@media print {
  body { background: var(--mk-parchment); background-image: none; }
  body::before,
  .site-header { display: none; }
  .route-close {
    min-height: 0;
    padding: 24px 0;
    background-image: none;
    break-inside: avoid;
  }
  .route-close__links a { break-inside: avoid; }
  .profile-shell { width: 100%; border: 0; }
  .public-footer { width: 100%; padding: 24px 0 0; break-inside: avoid; }
  .public-footer__section { min-height: 0; }
}
