/* Tenti website
   Dark-only site styles. Tokens match packages/core_ui foundations.
   Manrope ships as a variable TTF (fonttools/brotli were not available for WOFF2).
   Body copy uses --text-body (#8B97A8, 6.02:1 on #15181B). The app's
   --text-secondary (#6F7C8E) is 4.20:1, so it is not used for readable text.
   Primary buttons use --brand (#134F9C): white text is 8:1 there.
   White on --accent (#5D97E2) is only 3:1, so accent is for links and highlights. */

:root {
  --bg: #15181b;
  --surface: #1b1e22;
  --surface-pressed: #23272d;
  --surface-muted: #262b31;
  --divider: #262b31;
  --input-border: #262b31;
  --border-bright: #404852;
  --text-primary: #f3f4f6;
  --text-secondary: #6f7c8e;
  --text-body: #8b97a8;
  --text-on-blue: #d5d9de;
  --accent-text: #cee0f8;
  --brand: #134f9c;
  --brand-hover: #1858a8;
  --brand-active: #0f3e7c;
  --accent: #5d97e2;
  --accent-soft: #72a4e6;
  --brand-glow: rgba(65, 120, 189, 0.55);
  --selected-tile: #0e2a4e;
  --brand-secondary: rgba(32, 73, 126, 0.16);
  --surface-blue-raised: rgba(32, 73, 126, 0.32);
  --blue-hairline: rgba(108, 159, 226, 0.1);
  --alert-surface: #132031;
  --nav-pill: #132031;
  --biome-water: #367ddb;
  --biome-water-text: #7eb0f0;
  --biome-earth: #6da582;
  --biome-air: #85909b;
  --tip-top: #144c43;
  --tip-bottom: #0d2a28;
  --tip-accent: #aed4bc;
  --mascot: #4fa383;
  --on-brand: #ffffff;
  --radius-card: 20px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container: 1080px;
  --doc-width: 720px;
  --header-offset: 5.5rem;
  --font: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --focus: 2px solid var(--accent-soft);
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 42% at 50% -6%, rgba(54, 125, 219, 0.42), rgba(19, 79, 156, 0.2) 45%, transparent 75%),
    radial-gradient(ellipse 110% 70% at 50% -20%, rgba(19, 79, 156, 0.28), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text-body);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--text-primary);
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: var(--accent-soft);
}

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

:focus {
  outline: none;
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--selected-tile);
  color: var(--text-primary);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 40;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(21, 24, 27, 0.86);
  border-bottom: 1px solid var(--blue-hairline);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 68px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text-primary);
  text-decoration: none;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 22%;
  flex: none;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nav ul,
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.footer-nav a:hover {
  color: var(--text-primary);
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section-title {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.section-intro,
.lede {
  margin-top: 12px;
  max-width: 40rem;
  color: var(--text-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.lede {
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.125rem);
  color: var(--text-on-blue);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.33;
  text-transform: uppercase;
}

.hero-grid,
.split {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  max-width: 11em;
  font-size: clamp(2rem, 1.15rem + 3.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 240px;
  max-width: 100%;
  min-height: 56px;
  padding: 10px 16px;
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  background: var(--alert-surface);
  color: var(--text-primary);
  cursor: default;
  user-select: none;
}

.store-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.store-kicker {
  color: var(--text-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.store-name {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.store-glyph {
  flex: none;
  color: var(--accent-soft);
}

.frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--blue-hairline);
  border-radius: var(--radius-lg);
  background: #0e141a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero-art {
  max-width: 440px;
  justify-self: center;
  width: 100%;
}

.impact-art {
  max-width: 420px;
  justify-self: center;
  width: 100%;
}

.steps,
.feature-grid,
.biome-grid,
.impact-strip {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.steps,
.feature-grid,
.biome-grid {
  gap: 16px;
}

.card {
  padding: 20px;
  border: 1px solid var(--blue-hairline);
  border-radius: var(--radius-card);
  background: var(--surface-blue-raised);
}

.card h3,
.step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.card p,
.step p {
  margin-top: 8px;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.step-index {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: var(--radius-pill);
  background: var(--selected-tile);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
}

.impact-strip {
  grid-template-columns: 1fr 1fr;
}

.impact-strip li {
  padding: 14px 14px 16px;
  border: 1px solid var(--divider);
  border-radius: 16px;
  background: var(--surface);
}

.impact-name {
  display: block;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.impact-measure {
  display: block;
  margin-top: 2px;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
}

.biome-kicker {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.33;
  text-transform: uppercase;
}

.biome-ocean {
  box-shadow: inset 0 3px 0 var(--biome-water);
}

.biome-ocean .biome-kicker {
  color: var(--biome-water-text);
}

.biome-forest {
  border-color: rgba(109, 165, 130, 0.28);
  background: rgba(109, 165, 130, 0.1);
  box-shadow: inset 0 3px 0 var(--biome-earth);
}

.biome-forest .biome-kicker {
  color: var(--biome-earth);
}

.biome-sky {
  border-style: dashed;
  border-color: rgba(133, 144, 155, 0.45);
  background: rgba(133, 144, 155, 0.08);
  box-shadow: inset 0 3px 0 var(--biome-air);
}

.biome-sky .biome-kicker,
.soon-pill {
  color: var(--text-on-blue);
}

.sky-art {
  height: 112px;
  margin-bottom: 16px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 38%, rgba(213, 217, 222, 0.85) 1.5px, transparent 2px),
    radial-gradient(circle at 46% 28%, rgba(213, 217, 222, 0.55) 1.5px, transparent 2.2px),
    radial-gradient(circle at 72% 58%, rgba(213, 217, 222, 0.7) 1.2px, transparent 2px),
    radial-gradient(circle at 34% 72%, rgba(213, 217, 222, 0.4) 1px, transparent 2px),
    radial-gradient(circle at 84% 24%, rgba(213, 217, 222, 0.45) 1px, transparent 2px),
    linear-gradient(180deg, rgba(133, 144, 155, 0.2), rgba(133, 144, 155, 0.05));
}

.soon-pill {
  display: inline-flex;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(133, 144, 155, 0.2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.33;
  text-transform: uppercase;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-media img,
.biome-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.biome-banner {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 16px;
  background: #0c1824;
}

.biome-banner img {
  object-position: center 62%;
}

.card-tips .card-media img {
  object-position: center 58%;
}

.creature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.creature-row li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 124px;
  padding: 8px 6px 10px;
  border: 1px solid var(--blue-hairline);
  border-radius: 12px;
  background: rgba(32, 73, 126, 0.16);
}

.creature-row img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

.creature-name,
.creature-unknown {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creature-name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-on-blue);
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.creature-unknown {
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

.creature-locked::before {
  content: "";
  width: 48px;
  height: 48px;
  background: center / contain no-repeat;
}

.creature-locked-water::before {
  background-image: url("/assets/img/biomes/water-locked.svg");
}

.creature-locked-earth::before {
  background-image: url("/assets/img/biomes/earth-locked.svg");
}

.creature-locked::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background: url("/assets/img/icons/lock.svg") center / contain no-repeat;
}

.card-tips {
  padding: 0;
  overflow: hidden;
  border-color: rgba(174, 212, 188, 0.24);
  background: linear-gradient(180deg, var(--tip-top), var(--tip-bottom));
}

.card-tips .card-body {
  padding: 18px 20px 22px;
}

.card-tips .eyebrow {
  color: var(--tip-accent);
}

.card-tips p {
  color: #e7f6ee;
}

.card-body h3 {
  color: var(--text-primary);
}

.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.lang-list li {
  padding: 6px 12px;
  border: 1px solid var(--blue-hairline);
  border-radius: var(--radius-pill);
  background: var(--brand-secondary);
  color: var(--text-on-blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.free-panel {
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--blue-hairline);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 180px at 0% 0%, rgba(65, 120, 189, 0.38), transparent 70%),
    var(--surface-blue-raised);
}

.free-panel p {
  max-width: 42rem;
  margin-top: 12px;
  color: var(--text-on-blue);
  font-size: 16px;
  line-height: 1.55;
}

.free-panel .btn,
.faq-more {
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow:
    inset 0 1px 0 var(--brand-glow),
    0 10px 28px rgba(19, 79, 156, 0.28);
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
}

.btn-primary:active {
  background: var(--brand-active);
}

.btn-secondary {
  border-color: var(--border-bright);
  background: transparent;
  color: var(--accent-text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--surface-pressed);
  color: var(--text-primary);
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.site-footer {
  margin-top: auto;
  padding-block: 28px 36px;
  border-top: 1px solid var(--blue-hairline);
}

.footer-inner {
  display: grid;
  gap: 8px;
}

.footer-contact,
.footer-copy {
  margin: 0;
  color: var(--text-body);
  font-size: 14px;
}

.footer-contact a {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Translated pages only: "the English version applies" + link. */
.footer-lang {
  margin: 0;
  color: var(--text-body);
  font-size: 13px;
  line-height: 1.5;
}

.footer-lang a,
.doc-lang-note a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.not-found {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 62vh;
  padding-block: 48px 72px;
  text-align: center;
}

.not-found-art {
  width: min(100%, 280px);
  margin: 0 0 22px;
}

.not-found-art img {
  aspect-ratio: 1;
  object-fit: cover;
}

.not-found h1 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.not-found p {
  max-width: 34rem;
  margin-top: 12px;
  color: var(--text-on-blue);
  font-size: 16px;
  line-height: 1.55;
}

.not-found .btn {
  margin-top: 22px;
}

/* Document pages ---------------------------------------------------------- */

.doc {
  width: min(calc(100% - 32px), var(--doc-width));
  margin-inline: auto;
  padding-block: clamp(2rem, 5vw, 3.5rem) 4.5rem;
}

.doc h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.doc-meta {
  margin-top: 10px;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.doc-meta.doc-lang-note {
  margin-top: 4px;
  font-weight: 400;
}

.doc h2,
.doc h3,
.section,
.not-found {
  scroll-margin-top: var(--header-offset);
}

.doc h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.doc h3 {
  margin-top: 1.6rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.doc p,
.doc li {
  color: var(--text-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.doc p {
  margin-top: 0.85rem;
}

.doc ul,
.doc ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.35rem;
}

.doc li::marker {
  color: var(--accent-soft);
}

.doc a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.doc a.btn {
  text-decoration: none;
}

.toc {
  margin-top: 1.75rem;
  padding: 16px 18px 18px;
  border: 1px solid var(--blue-hairline);
  border-radius: 16px;
  background: var(--brand-secondary);
}

.toc > p {
  margin: 0;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.33;
  text-transform: uppercase;
}

.toc ol {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.toc a {
  color: var(--text-on-blue);
  font-size: 14px;
  font-weight: 600;
}

.doc-table-wrap {
  margin-top: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--divider);
  border-radius: 16px;
  background: var(--surface);
}

.doc-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 14px;
}

.doc-table caption {
  padding: 14px 14px 0;
  caption-side: top;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.doc-table th,
.doc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--divider);
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  color: var(--text-primary);
  font-weight: 700;
  background: var(--surface-muted);
}

.doc-table td {
  color: var(--text-body);
  font-weight: 500;
}

.doc-table tr:last-child td {
  border-bottom: 0;
}

.callout {
  margin-top: 1.25rem;
  padding: 16px 18px;
  border: 1px solid var(--blue-hairline);
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  background: var(--alert-surface);
  color: var(--text-on-blue);
}

.callout p {
  margin: 0;
  color: var(--text-on-blue);
}

.callout p + p {
  margin-top: 8px;
}

.callout strong {
  color: var(--text-primary);
  font-weight: 700;
}

details.faq {
  border: 1px solid var(--divider);
  border-radius: 16px;
  background: var(--surface);
  padding-inline: 16px;
}

details.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding-block: 12px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

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

details.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent-soft);
  border-bottom: 2px solid var(--accent-soft);
  transform: translateY(-2px) rotate(45deg);
  flex: none;
}

details.faq[open] summary {
  border-bottom: 1px solid var(--divider);
}

details.faq[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

details.faq > :not(summary) {
  margin-top: 12px;
}

details.faq > :last-child {
  margin-bottom: 14px;
}

.ui-path {
  display: inline;
  padding: 0.08em 0.45em;
  border: 1px solid var(--blue-hairline);
  border-radius: 8px;
  background: var(--selected-tile);
  color: var(--accent-text);
  font-family: inherit;
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.6;
}

@media (min-width: 720px) {
  .brand-name {
    font-size: 16px;
  }

  .card {
    padding: 24px;
  }

  .card-tips {
    padding: 0;
  }

  .card h3 {
    font-size: 1.25rem;
  }
}

@media (min-width: 840px) {
  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 48px;
  }

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

  .impact-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "tips charts"
      "tips widgets"
      "reminders reminders"
      "langs langs";
  }

  .feature-grid > :nth-child(1) { grid-area: tips; }
  .feature-grid > :nth-child(2) { grid-area: charts; }
  .feature-grid > :nth-child(3) { grid-area: widgets; }
  .feature-grid > :nth-child(4) { grid-area: reminders; }
  .feature-grid > :nth-child(5) { grid-area: langs; }
}

@media (min-width: 840px) {
  .biome-grid {
    grid-template-columns: 1fr 1fr;
  }

  .biome-sky {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .biome-grid {
    grid-template-columns: 1.12fr 1.12fr 0.86fr;
    align-items: start;
  }

  .biome-sky {
    grid-column: auto;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .btn-primary,
  .store-badge,
  .card,
  .callout,
  details.faq {
    border: 1px solid ButtonText;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  html,
  body {
    background: #fff !important;
    background-image: none !important;
    color: #1b1e22 !important;
  }

  .skip-link,
  .sky-art {
    display: none !important;
  }

  .site-header,
  .site-footer {
    position: static;
    background: #fff !important;
    border-color: #d5dbe3 !important;
    backdrop-filter: none;
  }

  .brand,
  .brand-name,
  .nav a,
  .footer-nav a,
  h1,
  h2,
  h3,
  .impact-name,
  .section-title {
    color: #15181b !important;
  }

  .lede,
  .section-intro,
  .card p,
  .step p,
  .doc p,
  .doc li,
  .doc-meta,
  .footer-contact,
  .footer-copy,
  .footer-lang,
  .not-found p,
  .free-panel p,
  .doc-table td,
  .toc a {
    color: #243040 !important;
  }

  a,
  .footer-contact a,
  .doc a {
    color: #134f9c !important;
  }

  .card,
  .free-panel,
  .frame,
  .callout,
  .toc,
  details.faq,
  .doc-table-wrap,
  .impact-strip li,
  .creature-row li,
  .store-badge,
  .lang-list li {
    background: #fff !important;
    border-color: #c5ced8 !important;
    box-shadow: none !important;
    color: #1b1e22 !important;
  }

  .creature-name,
  .creature-unknown {
    color: #1b1e22 !important;
  }

  .card-tips,
  .card-tips p,
  .card-tips .eyebrow {
    background: #fff !important;
    color: #1b1e22 !important;
  }

  .ui-path {
    background: #eef3f8 !important;
    color: #133056 !important;
    border-color: #c5d0dc !important;
  }

  .btn-primary {
    background: #134f9c !important;
    color: #fff !important;
    box-shadow: none !important;
  }

  .btn-secondary {
    color: #134f9c !important;
    border-color: #134f9c !important;
  }

  .doc-table-wrap {
    overflow: visible;
  }

  .doc-table {
    min-width: 0;
  }

  .doc-table th {
    background: #eef2f6 !important;
    color: #15181b !important;
  }

  .doc h2,
  .doc h3,
  details.faq,
  .callout,
  .doc-table tr {
    break-inside: avoid;
  }

  details.faq > *:not(summary) {
    display: block !important;
  }

  .doc a[href^="/"]::after,
  .footer-nav a[href^="/"]::after,
  .footer-contact a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    font-weight: 500;
  }
}
