/* Family design system shared by the portal sections (AI Field Manual and
   Daybook). Plain CSS, no build step, no remote assets, no web fonts.

   Relationship to the portal: the same warm paper neutrals, ink rules,
   serif display / sans reading / mono label pairing, 44px targets and focus
   ring. Each product sets exactly one accent family in its own stylesheet
   (--accent, --accent-hover, --accent-soft, --on-accent, --focus) for light
   and dark, and composes its own page layouts. Nothing here is decorative
   without carrying information.

   Breakpoints (media queries cannot read custom properties):
     600px   small tablets: two-column fragments
     769px   navigation expands (<= 768 is the JS mobile menu)
     1024px  side columns and sticky section heads                        */

/* ---- Tokens ------------------------------------------------------------ */

:root {
  color-scheme: light;

  /* Surfaces: never pure white or pure black. */
  --bg: #f5f2ec;
  --surface: #ece7de;          /* sunken bands: footer, toolbars */
  --surface-2: #e4ded3;        /* chips, code, tracks; not for control edges */
  --surface-raised: #fbf9f5;   /* lifted rows and panels */
  --border: #d8d1c4;           /* decorative hairlines */
  --border-strong: #827b6e;    /* control edges: >= 3:1 on bg and raised */
  --rule: #1c1b19;             /* editorial top rules */

  --text: #1c1b19;
  --text-muted: #57524a;

  /* Neutral accent defaults; every product overrides these. */
  --accent: #1c1b19;
  --accent-hover: #000000;
  --accent-soft: #e4ded3;
  --on-accent: #fbf9f5;
  --focus: #1c1b19;

  /* Status: colour plus shape, never colour alone. */
  --success: #1e6f36;
  --danger: #b42318;

  /* Demo notice: a neutral, never alarming, always present. */
  --notice-bg: #e9e3d8;
  --notice-edge: #57524a;

  --inverse-bg: #1f1d1a;
  --inverse-text: #efe9df;
  --inverse-muted: #b9b1a4;

  --shadow-rgb: 40 30 18;
  --shadow-1: 0 1px 1px rgb(var(--shadow-rgb) / 0.05), 0 1px 3px rgb(var(--shadow-rgb) / 0.06);
  --shadow-2: 0 1px 2px rgb(var(--shadow-rgb) / 0.06), 0 8px 20px -6px rgb(var(--shadow-rgb) / 0.14);
  --shadow-3: 0 2px 4px rgb(var(--shadow-rgb) / 0.06), 0 18px 40px -10px rgb(var(--shadow-rgb) / 0.22);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Iowan Old Style", Charter, "Bitstream Charter", "Sitka Text", Cambria, "Noto Serif",
    "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Type scale: fixed for reading sizes, fluid only for display sizes. */
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.3125rem;
  --text-xl: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  --max-width: 1200px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --header-height: 4rem;
  --target: 2.75rem; /* 44px minimum hit area */

  --dur-fast: 120ms;
  --dur: 200ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151412;
  --surface: #100f0d;
  --surface-2: #2a2723;
  --surface-raised: #1f1d1a;
  --border: #34302b;
  --border-strong: #7a7366;
  --rule: #ece7de;
  --text: #ece7de;
  --text-muted: #aaa397;
  --accent: #ece7de;
  --accent-hover: #ffffff;
  --accent-soft: #2a2723;
  --on-accent: #151412;
  --focus: #ece7de;
  --success: #62cf88;
  --danger: #ff8a80;
  --notice-bg: #24211d;
  --notice-edge: #aaa397;
  --inverse-bg: #26231f;
  --shadow-rgb: 0 0 0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #151412;
    --surface: #100f0d;
    --surface-2: #2a2723;
    --surface-raised: #1f1d1a;
    --border: #34302b;
    --border-strong: #7a7366;
    --rule: #ece7de;
    --text: #ece7de;
    --text-muted: #aaa397;
    --accent: #ece7de;
    --accent-hover: #ffffff;
    --accent-soft: #2a2723;
    --on-accent: #151412;
    --focus: #ece7de;
    --success: #62cf88;
    --danger: #ff8a80;
    --notice-bg: #24211d;
    --notice-edge: #aaa397;
    --inverse-bg: #26231f;
    --shadow-rgb: 0 0 0;
  }
}

/* ---- Base -------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

/* Chinese spacing. The negative tracking below is a Latin correction; with
   CJK glyphs it closes the gaps between characters, so the zh tree drops it
   and reads at a slightly looser leading. */
:lang(zh) body {
  line-height: 1.75;
}

:lang(zh) h1,
:lang(zh) h2,
:lang(zh) h3,
:lang(zh) h4,
:lang(zh) .brand,
:lang(zh) .entry-title,
:lang(zh) .brief-title {
  letter-spacing: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-4);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-2xl);
}

h2 {
  font-size: var(--text-xl);
}

h3 {
  font-size: var(--text-md);
}

p,
ul,
ol,
dl {
  margin: 0 0 var(--space-4);
}

ul,
ol {
  padding-left: var(--space-5);
}

li + li {
  margin-top: var(--space-2);
}

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

a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

/* One focus treatment everywhere: a thick accent ring with a gap. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

:not(pre) > code,
kbd {
  padding: 0.1em 0.35em;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

kbd {
  border: 1px solid var(--border-strong);
}

time,
.num {
  font-variant-numeric: tabular-nums;
}

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

/* Controls that only work with JavaScript; theme-init.js adds .js early. */
.js-only {
  display: none;
}

.js .js-only {
  display: revert;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-2);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding: 0 var(--space-4);
  background: var(--inverse-bg);
  color: var(--inverse-text);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--inverse-text);
}

.container {
  width: 100%;
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.prose {
  max-width: 68ch;
}

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

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.lead {
  max-width: 60ch;
  color: var(--text-muted);
  font-size: var(--text-md);
}

/* ---- Header and navigation -------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease-out);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-2);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target);
  color: var(--text);
  font-weight: 650;
  font-size: var(--text-md);
  letter-spacing: -0.01em;
  text-decoration: none;
}

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

.brand img {
  width: 2rem;
  height: 2rem;
}

.brand-sub {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
}

.nav-toggle {
  display: none;
}

.site-nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li + li {
  margin-top: 0;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding: 0 var(--space-3);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 0.55rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a[aria-current="page"] {
  font-weight: 600;
}

.nav-links a[aria-current="page"]::after {
  background: var(--accent);
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.theme-toggle {
  display: none;
}

.js .theme-toggle {
  display: inline-flex;
}

.theme-toggle[aria-pressed="true"] .icon-theme {
  fill: currentColor;
}

.icon {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
}

/* ---- Demo notice ------------------------------------------------------- */

.demo-strip {
  border-bottom: 1px solid var(--border);
  background: var(--notice-bg);
  font-size: var(--text-sm);
}

.demo-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-3);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.demo-strip p {
  margin: 0;
}

.demo-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 var(--space-2);
  border: 1px solid var(--notice-edge);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- Buttons, chips and fields ------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--target);
  min-width: var(--target);
  padding: var(--space-2) var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.btn:hover {
  text-decoration: none;
}

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

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

.btn-secondary {
  border-color: var(--border-strong);
  color: var(--text);
}

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

.btn-ghost {
  padding: 0 var(--space-3);
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* Toggle chips: a real button with aria-pressed, or a link with aria-current. */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-row li + li {
  margin-top: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target);
  padding: 0 var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.chip:hover {
  border-color: var(--text);
  background: var(--surface-raised);
  color: var(--text);
}

.chip[aria-pressed="true"],
.chip[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.chip .count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  opacity: 0.85;
}

.field {
  display: grid;
  gap: var(--space-1);
}

.field label,
.field-label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.input,
.select {
  width: 100%;
  min-height: var(--target);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--text);
  font: inherit;
}

.input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.input:hover,
.select:hover {
  border-color: var(--text);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

/* ---- Badges ------------------------------------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 1.625rem;
  padding: 0 var(--space-2);
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ---- Page head, tables, empty state ------------------------------------ */

.page-head {
  padding: var(--space-6) 0 var(--space-5);
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  max-width: 22em;
  margin-bottom: var(--space-3);
}

.page-head .lead {
  margin-bottom: 0;
}

.section {
  padding: var(--space-7) 0;
}

.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--rule);
}

.section-title h2 {
  margin: 0;
}

.section-title p {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table.data {
  width: 100%;
  margin-bottom: var(--space-5);
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

table.data caption {
  margin-bottom: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: left;
}

table.data th,
table.data td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

table.data th {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

table.data td.n,
table.data th.n {
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.empty {
  padding: var(--space-6) var(--space-5);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty h3 {
  margin-bottom: var(--space-2);
}

.empty p {
  margin: 0 auto var(--space-4);
  max-width: 48ch;
  color: var(--text-muted);
}

.terms {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
}

.terms dt {
  font-weight: 600;
}

.terms dd {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .terms {
    grid-template-columns: minmax(0, 1fr);
  }

  .terms dd {
    margin-bottom: var(--space-3);
  }
}

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

.site-footer {
  margin-top: var(--space-8);
  padding: var(--space-7) 0 var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  gap: var(--space-5);
}

.footer-grid p {
  max-width: 60ch;
  margin: 0 0 var(--space-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Cross-links to the portal and the sibling sections (family.json). The
   current section links to its own home and carries aria-current. */
.family-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.family-label {
  margin: 0;
}

.family-label a {
  color: var(--text);
}

.family-tagline {
  margin-left: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.family-nav [aria-current] {
  color: var(--text);
  font-weight: 600;
}

.footer-meta {
  margin: var(--space-5) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

@media (min-width: 769px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

/* ---- Mobile navigation ------------------------------------------------- */

@media (max-width: 768px) {
  /* Without JavaScript the nav wraps below the brand. With it, the nav is a
     panel behind the menu button; visibility keeps closed links out of the
     tab order. */
  .js .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: var(--space-3) var(--gutter) var(--space-5);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }

  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  }

  .js .nav-links {
    flex-direction: column;
  }

  .js .nav-links a {
    display: flex;
    padding: 0 var(--space-2);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: var(--text-md);
  }

  .js .nav-links a::after {
    display: none;
  }

  .js .nav-links a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--accent);
    padding-left: var(--space-4);
  }

  .nav-actions {
    margin-left: 0;
  }

  .section {
    padding: var(--space-6) 0;
  }
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.125rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  transform: translateY(-6px);
}

.nav-toggle-bars::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: rotate(-45deg);
}

/* ---- Preferences ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .badge::before,
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    forced-color-adjust: none;
    background: CanvasText;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background: transparent;
  }

  .chip[aria-pressed="true"],
  .chip[aria-current="page"] {
    border-width: 3px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .theme-toggle,
  .nav-toggle,
  .js-only {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }
}
