/* Site styles.
   Replace the tokens below to rebrand: colors, fonts, and the page width.
   Every url() is an absolute path under src/; the build hashes the targets. */

/* ---------- Fonts ----------
   Proxima Nova is self-hosted: one @font-face per file in /fonts/. Ship only
   the faces this file uses (the tests check that CSS and fonts/ match). */

@font-face {
  font-family: "Proxima Nova";
  src: url("/fonts/proxima-nova-regular-fixed.7da545b6a4.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("/fonts/proxima-nova-semibold.59bb4c7c90.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("/fonts/proxima-nova-extrabold.da42406399.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Reduced glyph set with taller line metrics. Use only for standalone lines
   such as fine print, never inline in a regular paragraph. */
@font-face {
  font-family: "Proxima Nova";
  src: url("/fonts/proxima-nova-italic.5c6c138e5c.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --teal-50: #f3f8f8;
  --teal-100: #dfecee;
  --teal-200: #c3dbde;
  --teal-300: #9ac2c6;
  --teal-400: #6da2a9;
  --teal-600: #436e77;
  --teal-800: #374d53;
  --teal-900: #314248;
  --teal-950: #1d2a2f;
  --green-300: #afd87e;
  --green-400: #8fc552;
  --green-500: #72ab37;
  --green-950: #18270c;
  --ink: #0c1416;

  --font-sans: "Proxima Nova", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --page-width: 68rem;
  --prose-width: 44rem;
  --radius: 14px;
  --line: rgba(154, 194, 198, 0.16);
  --panel: rgba(49, 66, 72, 0.42);
  --glow-green: 0 0 0.06em rgba(175, 216, 126, 0.55), 0 0 0.5em rgba(143, 197, 82, 0.28);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--teal-50);
  background:
    radial-gradient(ellipse 90% 50% at 50% -8%, rgba(67, 110, 119, 0.5), transparent 70%),
    radial-gradient(ellipse 55% 35% at 92% 100%, rgba(114, 171, 55, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(29, 42, 47, 0) 0, var(--teal-950) 70vh),
    var(--teal-950) url("/img/grid.5422e44549.svg");
}

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

a:hover {
  color: var(--green-400);
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green-400);
  outline-offset: 3px;
  border-radius: 4px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: rgba(12, 20, 22, 0.55);
  border: 1px solid var(--line);
  color: var(--teal-100);
}

strong {
  font-weight: 600;
  color: var(--teal-50);
}

/* ---------- Skip link ---------- */

.skip {
  position: absolute;
  left: 16px;
  top: -3rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--green-400);
  color: var(--green-950);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

/* ---------- Top bar ---------- */

.topbar {
  width: 100%;
  max-width: calc(var(--page-width) + 32px);
  margin: 0 auto;
  padding: 1.1rem 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--teal-50);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

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

.brand img {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  color: var(--teal-200);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--teal-50);
  background: rgba(154, 194, 198, 0.08);
}

/* ---------- Layout ---------- */

main {
  flex: 1;
}

.wrap {
  width: 100%;
  max-width: calc(var(--page-width) + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

.wrap.narrow {
  max-width: calc(var(--prose-width) + 32px);
}

.section {
  padding: clamp(3.5rem, 10vh, 6rem) 0 0;
  scroll-margin-top: 1rem;
}

.section-head {
  max-width: var(--prose-width);
  margin: 0 auto 2.25rem;
  text-align: center;
}

.section-lede {
  font-size: 1.15rem;
  color: var(--teal-100);
}

/* ---------- Type ---------- */

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-300);
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--teal-50);
  background: linear-gradient(180deg, var(--teal-50) 20%, var(--teal-200) 65%, var(--teal-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

.tagline,
.not-found h1 {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
}

.tagline {
  margin: 0.7rem auto 0;
  font-size: clamp(1.45rem, 5vw, 2.15rem);
  line-height: 1.2;
  color: var(--green-300);
  text-shadow: var(--glow-green);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--teal-50);
  text-wrap: balance;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--teal-50);
}

p {
  margin: 0 0 1rem;
  color: var(--teal-200);
}

.cite {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--teal-300);
}

/* ---------- Buttons and links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--green-400);
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-300);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--green-400);
  color: var(--green-950);
}

.button-primary {
  background: var(--green-400);
  color: var(--green-950);
  box-shadow: 0 0 1.2em rgba(143, 197, 82, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--green-300);
  color: var(--green-950);
  box-shadow: 0 0 1.6em rgba(143, 197, 82, 0.4);
}

.button-small {
  margin-left: 0.4rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.92rem;
}

.text-link {
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(2rem, 8vh, 4.5rem);
  text-align: center;
}

.mark {
  display: block;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 18px rgba(143, 197, 82, 0.28)) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.lede {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  font-size: clamp(1.08rem, 2.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--teal-100);
}

.facts {
  list-style: none;
  margin: 2.75rem auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.facts li {
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--panel);
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--teal-100);
}

.fact-label {
  margin-right: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-300);
}

/* ---------- Panels: self-check steps, cards, tiers ---------- */

.steps,
.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0.8rem;
}

.steps li,
.timeline li {
  position: relative;
  padding: 1.15rem 1.25rem 1.05rem 3.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  counter-increment: step;
}

.steps li::before,
.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(143, 197, 82, 0.5);
  background: rgba(143, 197, 82, 0.14);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-300);
}

.steps p:last-child,
.timeline p:last-child,
.card p:last-child,
.faq p:last-child {
  margin-bottom: 0;
}

.aside,
.note {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--green-400);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(143, 197, 82, 0.07);
  color: var(--teal-100);
}

.note {
  max-width: var(--prose-width);
  margin: 2rem auto 0;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.card {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.card-step {
  margin: 0 0 0.6rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--green-300);
}

.tiers {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  align-items: stretch;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.6rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.tier-featured {
  border-color: rgba(143, 197, 82, 0.6);
  background: linear-gradient(180deg, rgba(143, 197, 82, 0.1), rgba(49, 66, 72, 0.42) 45%);
  box-shadow: 0 0 0 1px rgba(143, 197, 82, 0.25), 0 18px 40px rgba(0, 0, 0, 0.3);
}

.badge {
  position: absolute;
  top: -0.8rem;
  left: 1.6rem;
  margin: 0;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--green-400);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-950);
}

.price {
  margin: 0.5rem 0 0.9rem;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--teal-50);
}

.price-note {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--teal-300);
}

.tier-scope {
  color: var(--teal-100);
}

.ticks {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

/* A green check drawn from two borders. */
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--teal-200);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.38em;
  width: 0.34rem;
  height: 0.62rem;
  border: solid var(--green-300);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.turnaround {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.tier .button {
  align-self: stretch;
}

.fineprint-block {
  max-width: var(--prose-width);
  margin: 1.75rem auto 0;
  font-size: 0.92rem;
  font-style: italic;
  text-align: center;
  color: var(--teal-300);
}

/* ---------- FAQ ---------- */

.faq {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.7rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.faq summary {
  position: relative;
  padding: 1rem 3rem 1rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--teal-50);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* A chevron drawn from two borders; it turns when the answer opens. */
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.3rem;
  top: 1.35rem;
  width: 0.5rem;
  height: 0.5rem;
  border: solid var(--green-300);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  top: 1.55rem;
  transform: rotate(-135deg);
}

.faq details p {
  padding: 0 1.25rem 1.1rem;
}

/* ---------- Closing call to action and sources ---------- */

.cta-band {
  text-align: center;
}

.cta-band .wrap {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border: 1px solid rgba(143, 197, 82, 0.35);
  border-radius: calc(var(--radius) * 1.5);
  background:
    radial-gradient(ellipse 80% 90% at 50% 0%, rgba(114, 171, 55, 0.14), transparent 70%),
    var(--panel);
}

.cta-band .actions {
  margin-top: 1.25rem;
}

.contact-line {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
}

.sources {
  padding-bottom: 4rem;
}

.sources h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
}

.sources ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--teal-300);
}

.sources li {
  margin-bottom: 0.35rem;
}

/* ---------- Downloads, advice, checker, contact form, updates ---------- */

[hidden] {
  display: none !important;
}

.js .no-js-only {
  display: none;
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.advice {
  padding: 1.5rem 1.4rem 0.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-300);
  border-radius: var(--radius);
  background: var(--panel);
}

.advice h2 {
  font-size: clamp(1.35rem, 4vw, 1.7rem);
}

.advice p {
  color: var(--teal-100);
}

.field-label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-100);
}

.field {
  display: block;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--teal-600);
  border-radius: 10px;
  background: rgba(12, 20, 22, 0.55);
  color: var(--teal-50);
  font: inherit;
  font-size: 1rem;
}

textarea.field {
  resize: vertical;
}

#checker-input {
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.field:focus-visible,
.button:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green-400);
  outline-offset: 3px;
}

button.button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
}

button.button-primary {
  background: var(--green-400);
}

button.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.checker {
  margin-top: 1.5rem;
}

.checker .button {
  margin-top: 1rem;
}

.checker-result {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-300);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--panel);
}

.checker-result[data-status="patched"] {
  border-left-color: var(--green-400);
}

.checker-result[data-status="not-patched"],
.checker-result[data-status="upgrade"] {
  border-left-color: #e0b354;
}

.checker-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--teal-50);
}

.checker-result p:last-child {
  margin-bottom: 0;
}

.checker-caveat {
  font-size: 0.95rem;
  color: var(--teal-100);
}

.checker-notes {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: var(--teal-200);
}

.checker-notes li {
  margin-bottom: 0.5rem;
}

.contact-form {
  max-width: 34rem;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.contact-form h3 {
  text-align: center;
}

.field-row {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.contact-form .button {
  margin-top: 1.1rem;
}

.contact-status {
  margin: 0.9rem 0 0;
  font-weight: 600;
  color: var(--teal-100);
}

.contact-status:empty {
  display: none;
}

.contact-status[data-status="success"] {
  color: var(--green-300);
}

.contact-status[data-status="error"] {
  color: #f0c674;
}

.contact-privacy {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  color: var(--teal-300);
}

.updates {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.update {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.update-meta {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  color: var(--teal-300);
}

.update-source {
  margin-left: 0.5rem;
  padding-left: 0.6rem;
  border-left: 1px solid var(--teal-600);
  font-weight: 600;
}

.update h3 {
  overflow-wrap: anywhere;
}

.update p:last-child {
  margin-bottom: 0;
}

/* ---------- 404 ---------- */

.not-found {
  text-align: center;
  padding-top: clamp(2rem, 10vh, 5rem);
  padding-bottom: 4rem;
}

.not-found h1 {
  font-size: clamp(3.25rem, 14vw, 6rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--green-300);
  text-shadow: var(--glow-green);
}

.not-found p {
  max-width: 28rem;
  margin: 1rem auto 0;
}

/* ---------- Footer ---------- */

.footer {
  width: 100%;
  padding: 1.75rem 16px 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-logo img {
  display: block;
  width: 140px;
  height: auto;
}

.footer-contact {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.fineprint {
  margin: 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--teal-400);
}

/* ---------- Small screens ---------- */

@media (max-width: 48rem) {
  .nav-link {
    display: none;
  }
}

@media (max-width: 26rem) {
  .brand span {
    font-size: 0.95rem;
  }

  .button-small {
    margin-left: 0;
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
  }

  .tier {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Cheat sheet ---------- */

.sheet-intro {
  padding-top: clamp(2rem, 8vh, 4rem);
}

.sheet-intro h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
}

.sheet-toc {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--teal-200);
}

.platform {
  margin-top: 1.25rem;
  padding: 1.4rem 1.4rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  scroll-margin-top: 1rem;
}

.platform h2 {
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  margin-bottom: 0.6rem;
}

.platform h3 {
  margin-top: 1rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-300);
}

.platform ul,
.platform ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--teal-200);
}

.platform li {
  margin-bottom: 0.4rem;
}

.platform .cite {
  margin-top: 0.8rem;
  overflow-wrap: anywhere;
}

.backport {
  margin: 0.75rem 0 1rem;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--teal-300);
  background: rgba(154, 194, 198, 0.06);
  font-size: 0.95rem;
  color: var(--teal-100);
}

.print-only {
  display: none;
}

/* ---------- Print (the cheat-sheet PDF) ---------- */

@media print {
  @page {
    size: letter;
    margin: 0.6in 0.6in 0.7in;
  }

  html {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .skip,
  .topbar,
  .footer-logo,
  .no-print,
  .actions {
    display: none !important;
  }

  .print-only {
    display: block;
  }

  h1,
  h2,
  h3,
  strong,
  .checker-title {
    color: #111;
    text-shadow: none;
  }

  h1 {
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: 22pt;
  }

  h2 {
    font-size: 14pt;
    break-after: avoid;
  }

  h3 {
    break-after: avoid;
  }

  p,
  li,
  .section-lede,
  .eyebrow,
  .cite,
  .fineprint,
  .footer-contact,
  .platform ul,
  .platform ol,
  .sheet-toc,
  .backport {
    color: #222;
  }

  a {
    color: #1d4f5a;
  }

  code {
    background: #f1f4f5;
    border-color: #c9d4d6;
    color: #111;
  }

  .wrap,
  .wrap.narrow {
    max-width: none;
    padding: 0;
  }

  .section,
  .sheet-intro {
    padding-top: 0;
  }

  .platform {
    margin-top: 0.9rem;
    padding: 0.8rem 1rem 0.4rem;
    border: 1px solid #b9c7ca;
    background: #fff;
    break-inside: avoid;
  }

  .platform h3 {
    color: #3b5a61;
  }

  .backport,
  .aside,
  .advice {
    border-left-color: #6d8f96;
    background: #f4f7f7;
  }

  .footer {
    padding: 0.6rem 0 0;
    border-top: 1px solid #b9c7ca;
  }
}
