/* Hallmark · genre: editorial · macrostructure: Marquee Hero (demo) · theme: manuscript (mudda-theme) · enrichment: Tier-A animated HTML board · nav: N9 · footer: Ft1 · design-system: design.md · designed-as-app
 * tone: austere-calm · navy ink on cream paper
 */

/* Base */

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

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}

h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); line-height: 1.2; }

p { margin: 0; }
p + p { margin-top: var(--space-md); }

a { color: var(--color-accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-accent-2); }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

code { font-family: var(--font-mono); font-size: 0.9em; }

.muted { color: var(--color-muted); }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.lede {
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--color-muted);
  max-width: var(--measure);
}

/* Actions: .button, .is-outline, .is-compact and .link-arrow are the design system's
   (mudda_theme/components.css). */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-xl);
}

/* Nav · N9 edge-aligned */

/* The bar floats: inset from the viewport edges by --space-xs, with its contents still lined
   up with the page's gutter. */
.site-nav {
  position: sticky;
  top: var(--space-xs);
  z-index: 10;
  margin-top: var(--space-xs);
  padding-inline: var(--space-xs);
}

.site-nav-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: calc(var(--page-max) - 2 * var(--space-xs));
  height: var(--nav-h);
  padding-inline: calc(var(--page-gutter) - var(--space-xs) - var(--rule-hair));
  background: color-mix(in oklch, var(--color-paper-2) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: var(--rule-hair) solid color-mix(in oklch, var(--color-rule) 70%, transparent);
  border-radius: var(--radius-bar);
  box-shadow: var(--shadow-float);
}

/* Where the browser supports it, the bar is clear over the top of the page and frosts into a
   floating card over the first few rem of scrolling. Elsewhere it is always a card. */
@supports (animation-timeline: scroll()) {
  .site-nav-bar {
    animation: nav-frost linear both;
    animation-timeline: scroll();
    animation-range: 0 4rem;
  }
}

@keyframes nav-frost {
  from {
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: blur(0) saturate(1);
    backdrop-filter: blur(0) saturate(1);
  }
}

.wordmark {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--color-ink); }

.nav-links { display: flex; align-items: center; gap: var(--space-lg); }
.nav-page { color: var(--color-muted); text-decoration: none; white-space: nowrap; }
.nav-page:hover, .nav-page[aria-current] { color: var(--color-ink); }

/* Phone menu: a <details> whose sheet drops from under the bar. Hidden above 40rem. */

.menu { display: none; }
.menu summary {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-inline-end: calc(var(--space-xs) * -1);
  border-radius: var(--radius-card);
  list-style: none;
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu .icon-close, .menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }

.menu-sheet {
  position: absolute;
  top: calc(100% + var(--space-xs));
  inset-inline-end: 0;
  width: clamp(12rem, 50vw, 16rem);
  max-height: calc(100dvh - 6rem);
  overflow-y: auto;
  padding: var(--space-xs);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
  transform-origin: top right;

  &:dir(rtl) { transform-origin: top left; }
}
.menu[open] .menu-sheet { animation: menu-in var(--dur-short) var(--ease-out); }
.menu[data-closing] .menu-sheet { animation: menu-out var(--dur-micro) var(--ease-in) forwards; }

@keyframes menu-in  { from { opacity: 0; transform: translateY(-0.25rem) scale(0.98); } }
@keyframes menu-out { to   { opacity: 0; transform: translateY(-0.25rem) scale(0.98); } }

.menu-links { margin: 0; padding: 0; list-style: none; }
.menu-links + .menu-links {
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.menu-links a {
  display: block;
  padding: var(--space-sm) var(--space-sm);
  border-radius: var(--radius-input);
  color: var(--color-ink);
  font-weight: 500;
  text-decoration: none;
}
.menu-links a:hover, .menu-links a:active { background: var(--color-paper-3); color: var(--color-ink); }
.menu-links a[aria-current] { color: var(--color-accent); }

/* Home screens: the home page is three sections, each at least one screen tall below the
   nav, so the first screen shows the hero and nothing of the next section. Extra height is
   split above and below the content; a screen too short for its content simply grows. svh
   is the screen with the browser's toolbars showing, so the fold holds on load and doesn't
   jump as the toolbars hide. */

.screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  min-height: calc(100vh - var(--nav-space));
  min-height: calc(100svh - var(--nav-space));
}

/* Hero */

/* The hero's headline and gaps scale with the screen's height as well as its width, so it
   fits short laptop and phone screens and breathes on tall ones. */
.hero {
  --hero-gap: var(--space-xl);
  --hero-gap: clamp(var(--space-md), 4svh, var(--space-xl));
  padding-block: var(--space-xl) var(--space-2xl);
  padding-block: clamp(var(--space-sm), 3svh, var(--space-xl)) clamp(var(--space-md), 5svh, var(--space-2xl));
  text-align: center;
}
.hero h1 { max-width: 20ch; margin-inline: auto; font-size: min(var(--text-display), 8.5svh); }
.hero .board { margin-top: var(--hero-gap); text-align: start; }
.hero .lede { margin: var(--hero-gap) auto 0; }
.hero .actions { justify-content: center; margin-top: var(--hero-gap); }

/* Board · Tier-A, built from real markup */

.board {
  margin: 0;
  padding: var(--space-md);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-paper-2);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}

.board-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(11rem, 1fr));
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-column { scroll-snap-align: start; min-width: 0; }

.board-column h2 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--color-muted);
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) var(--space-2xs);
  font-variant-numeric: tabular-nums;
}

.board-column ul { display: grid; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }

.board-card {
  padding: var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-input);
  background: var(--color-paper);
  font-size: var(--text-sm);
  line-height: 1.4;
}
.board-card small {
  display: block;
  margin-top: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}
.board-card small.overdue { color: var(--color-warn); font-weight: 600; }
.board-card.is-done { color: var(--color-muted); }

.board figcaption {
  margin-top: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* Demo · 20s loop, Tier-A. Base styles are the loop's final frame, so reduced motion shows it still. */

.demo {
  --demo-dur: 20s;
  --demo-head: 2.25rem;
  --demo-step: calc(100% + var(--space-sm));
  --demo-cols: 5;
  --demo-doing: 3;
  --demo-done: 4;
  --demo-dir: 1;

  &:dir(rtl) { --demo-dir: -1; }
}
.demo .board-column h2 { height: var(--demo-head); align-items: center; }

.board-stage { position: relative; }
.demo .board-columns { grid-template-columns: repeat(var(--demo-cols), minmax(0, 1fr)); }

.board-slot { visibility: hidden; }

.demo-track {
  position: absolute;
  inset: var(--demo-head) 0 auto 0;
  display: grid;
  grid-template-columns: repeat(var(--demo-cols), minmax(0, 1fr));
  gap: var(--space-sm);
  pointer-events: none;
}

.demo-card {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
  transform: translateX(calc(var(--demo-step) * var(--demo-done) * var(--demo-dir)));
  animation: demo-move var(--demo-dur) var(--ease-in-out) infinite both;
}

.demo-swap, .board-card .demo-swap { display: grid; }
.demo-swap > span { grid-area: 1 / 1; opacity: 0; }
.demo-swap > .beat-c { opacity: 1; }
.demo .beat-a { animation: beat-a var(--demo-dur) linear infinite both; }
.demo .beat-b { animation: beat-b var(--demo-dur) linear infinite both; }
.demo .beat-c { animation: beat-c var(--demo-dur) linear infinite both; }

.demo[data-paused] *, .demo[data-paused] *::before { animation-play-state: paused; }

.demo-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-ink);
}

.demo-toggle {
  flex: none;
  padding: var(--space-2xs) var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-input);
  background: var(--color-paper);
  color: var(--color-muted);
  font: inherit;
  font-size: var(--text-xs);
  cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.demo-toggle:hover { border-color: var(--color-muted); color: var(--color-ink); }
.demo-toggle:active { transform: translateY(1px); }

@keyframes demo-move {
  0%        { transform: translateX(0); opacity: 0; }
  4%, 27%   { transform: translateX(0); opacity: 1; }
  32%, 57%  { transform: translateX(calc(var(--demo-step) * var(--demo-doing) * var(--demo-dir))); opacity: 1; }
  62%, 92%  { transform: translateX(calc(var(--demo-step) * var(--demo-done) * var(--demo-dir))); opacity: 1; }
  97%, 100% { transform: translateX(calc(var(--demo-step) * var(--demo-done) * var(--demo-dir))); opacity: 0; }
}
@keyframes beat-a { 0%, 28% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes beat-b { 0%, 30% { opacity: 0; } 32%, 58% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes beat-c { 0%, 60% { opacity: 0; } 62%, 95% { opacity: 1; } 97%, 100% { opacity: 0; } }

.board video { display: block; width: 100%; height: auto; border-radius: var(--radius-input); }

/* USP */

.usp {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-lg) var(--space-2xl);
  padding-block: var(--space-2xl);
}
.channels { margin: 0; padding: 0; list-style: none; max-width: var(--measure); }
.channels li {
  display: grid;
  justify-items: start;
  gap: var(--space-xs);
  padding-block: var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.channels li:first-child { border-top: var(--rule-hair) solid var(--color-rule); }
.channels p { font-size: var(--text-md); line-height: 1.45; color: var(--color-muted); }

/* Plan */

/* Billing: a Monthly / Yearly switch. Inside a .billing-scope, elements marked data-billing
   show only for the checked billing; a browser without :has shows both. */

.billing-scope:has(input[name="billing"][value="monthly"]:checked) [data-billing="yearly"],
.billing-scope:has(input[name="billing"][value="yearly"]:checked) [data-billing="monthly"] { display: none; }

.billing-toggle {
  display: inline-flex;
  gap: var(--space-3xs);
  margin: 0;
  padding: var(--space-3xs);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  background: var(--color-paper-2);
}
.billing-toggle label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.billing-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.billing-toggle label:has(input:checked) { background: var(--color-paper-3); color: var(--color-ink); }
.billing-toggle label:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.billing-save { color: var(--color-accent); font-size: var(--text-xs); }

.premium-choice { display: grid; justify-items: start; gap: var(--space-md); margin-top: var(--space-xl); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The closing screen: centred like the hero, with the two plans side by side. */
.plan { padding-block: var(--space-2xl); text-align: center; justify-items: center; }
.plan .lede { margin-inline: auto; }

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  width: 100%;
  max-width: 48rem;
  margin-block: var(--space-lg) var(--space-md);
  text-align: start;
}

.plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-lg);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-paper-2);
}
.plan-card.is-premium { border-color: var(--color-accent); }
.plan-card h3 { font-size: var(--text-md); }
.plan-card .button { margin-top: auto; }
.plan-limit { font-weight: 600; }
.plan-footnote { margin-bottom: var(--space-lg); font-size: var(--text-sm); max-width: var(--measure); }
.plan .billing-toggle { margin-top: var(--space-lg); }
.plan-card .muted { margin-bottom: var(--space-md); }

.plan-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.plan-price small { font-family: var(--font-body); font-size: var(--text-base); font-weight: 400; letter-spacing: 0; color: var(--color-muted); }

.price {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
}
.plan h2 { margin-bottom: var(--space-lg); }
.price small { font-family: var(--font-body); font-size: var(--text-md); font-weight: 400; letter-spacing: 0; color: var(--color-muted); }

.included { margin: 0; padding: 0; list-style: none; }
.included li {
  padding-block: var(--space-sm);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.included li:first-child { border-top: var(--rule-hair) solid var(--color-rule); }

.fine-print { margin: 0; padding-inline-start: var(--space-lg); color: var(--color-muted); }
.fine-print li + li { margin-top: var(--space-xs); }

/* Narrow pages: pricing, signup, welcome */

.page { padding-block: var(--space-2xl) var(--space-3xl); }
.page h1 { max-width: 16ch; }
.page .lede { margin-top: var(--space-lg); }

.page-section { margin-top: var(--space-2xl); }
.page-section h2 { font-size: var(--text-lg); margin-bottom: var(--space-md); }

/* Terms and privacy: long prose, held to a readable measure. */
.legal .page-section { max-width: 46rem; }
.legal .page-section p + p { margin-top: var(--space-md); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-2xl) var(--space-3xl);
  align-items: start;
}

/* Form */

.form { display: grid; gap: var(--space-lg); max-width: 30rem; }
.form label, .form .field { display: grid; gap: var(--space-xs); font-weight: 600; }
.form small { font-weight: 400; color: var(--color-muted); font-size: var(--text-sm); }

.form input[type=text], .form input[type=email], .form input[type=password] {
  width: 100%;
  min-width: 0;
  padding: var(--space-sm) var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-input);
  background: var(--color-paper);
  color: inherit;
  font: inherit;
  font-weight: 400;
  transition: border-color var(--dur-micro) var(--ease-out);
}
.form input:hover { border-color: var(--color-muted); }
.form input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-focus); }
.form input:user-invalid { border-color: var(--color-warn); }

/* The address reads left to right in every language: "you.mudda.today". */
.slug {
  direction: ltr;
  display: flex;
  align-items: center;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-input);
  background: var(--color-paper);
  font-weight: 400;
  transition: border-color var(--dur-micro) var(--ease-out);
}
.slug:hover { border-color: var(--color-muted); }
.slug:focus-within { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-focus); }
.form .slug input { border: 0; outline: 0; padding-right: 0; text-align: right; }
.slug span { padding-right: var(--space-sm); padding-left: 1px; color: var(--color-muted); white-space: nowrap; }

.form-note { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

.aside-title { font-size: var(--text-lg); margin-bottom: var(--space-lg); }

.lede + .errors { margin-top: var(--space-lg); }
p.errors { padding-inline-start: var(--space-md); }

.errors {
  margin: 0;
  padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-xl);
  border: var(--rule-hair) solid var(--color-warn);
  border-radius: var(--radius-input);
  color: var(--color-warn);
}

.next-steps { margin: 0; padding: 0; list-style: none; counter-reset: next; display: grid; gap: var(--space-lg); }
.next-steps li { counter-increment: next; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-md); }
.next-steps li::before {
  content: counter(next);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1;
  color: var(--color-accent);
  font-variant-numeric: lining-nums;
}
.next-steps strong { display: block; }

/* Welcome */

.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  animation: pulse 1.6s var(--ease-in-out) infinite;
}
.status.is-ready::before { animation: none; }
.status.is-error::before { animation: none; background: var(--color-warn); }

@keyframes pulse { 50% { opacity: 0.25; } }

/* Footer · Ft1 mast-headed */

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md) var(--space-xl);
  margin-top: var(--space-2xl);
  padding-block: var(--space-xl) var(--space-2xl);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
}
.site-foot .wordmark { font-size: var(--text-md); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.site-foot nav a { color: var(--color-muted); white-space: nowrap; text-decoration: none; }
.site-foot nav a:hover { color: var(--color-ink); text-decoration: underline; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-md); }

/* Admin */

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: start; padding: var(--space-xs) var(--space-2xs); border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: top; }

/* Responsive */

@media (max-width: 52rem) {
  .usp, .split { grid-template-columns: minmax(0, 1fr); }
  .usp, .plan { padding-block: var(--space-xl); }
}

/* Phones: the nav links move into the menu. The hero tightens so it fits a phone browser's
   screen: smaller gaps, a more compact demo, and its two actions side by side, each filling
   half the row, wrapping to full-width rows when their labels don't fit. */
@media (max-width: 40rem) {
  .nav-links { display: none; }
  .menu { display: block; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .hero { --hero-gap: clamp(var(--space-sm), 3svh, var(--space-lg)); }
  .hero .actions { gap: var(--space-xs); }
  .hero .actions .button { flex: 1 1 auto; justify-content: center; padding-inline: var(--space-sm); }
  .demo { --demo-head: 2rem; }
  .demo .board-card { font-size: var(--text-xs); }
  .demo-caption { margin-top: var(--space-sm); }
}

/* Narrow screens show only the columns the demo card visits. */
@media (max-width: 56rem) {
  .demo { --demo-cols: 3; --demo-doing: 1; --demo-done: 2; }
  .demo .board-column:nth-child(2), .demo .board-column:nth-child(3) { display: none; }
  .demo { padding: var(--space-sm); }
  .demo .board-card { padding: var(--space-xs); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; }
  .status::before, .demo *, .menu-sheet { animation: none !important; }
  .demo-toggle { display: none; }
}

/* Language switcher: a link-styled button so the choice can be remembered with a POST. */
.language-switch-form { display: inline; }
.language-switch {
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Dark-mode switch: an icon button, shown once its script runs. A moon while light, a sun while
   dark. */
.theme-switch {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  border-radius: var(--radius-input);
  cursor: pointer;
}
.theme-switch[hidden] { display: none; }
.theme-switch:hover { background: var(--color-paper-3); }
.theme-switch .icon-sun, .theme-switch[aria-pressed="true"] .icon-moon { display: none; }
.theme-switch[aria-pressed="true"] .icon-sun { display: block; }

/* Code, commands and URLs read left to right inside Arabic text. */
code, pre, kbd { direction: ltr; unicode-bidi: isolate; }
