/* The Bitcoin Reference: stylesheet.
   Three-column encyclopedia: index rail, article sheet, quick-facts rail.
   System fonts only. Single colour scheme (light). */

:root {
  color-scheme: light;

  /* palette (seeds from the brief, plus derived tints) */
  --page: #FAF8F3;
  --sheet: #FFFEFA;
  --ink: #1F2933;
  --ink-2: #364250;
  --muted: #55606B;
  --teal: #0B6B6F;
  --teal-deep: #084A4D;
  --wash: #E3F0EF;
  --wash-2: #CFE5E3;
  --rule: #D7D2C6;
  --ctrl: #8F8A7A;
  --visited: #7A2A3A;
  --hit-1: #F8E7A8;
  --hit-2: #FBEFC9;
  --good: #1D6B3D;
  --good-bg: #E7F3EA;
  --bad: #7A2A3A;
  --bad-bg: #F7E9EB;
  --foot-bg: #1F2933;
  --foot-ink: #F1EEE5;
  --foot-link: #BFE3E1;

  /* type */
  --serif: Baskerville, "Baskerville Old Face", "Hoefler Text", Garamond, "Apple Garamond", "Times New Roman", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;

  --gutter: clamp(1rem, 3vw, 2rem);
  --pad: clamp(1.1rem, 2.6vw, 2.75rem);
  --radius: 3px;

  --shadow-sheet: 0 1px 0 #fff inset, 3px 4px 0 -1px #F1EDE1, 6px 8px 0 -2px #E8E3D4, 9px 12px 0 -3px #DFDACA;
  --shadow-card: 0 1px 0 #fff inset, 0 1px 2px rgba(31, 41, 51, 0.08), 0 6px 14px -8px rgba(31, 41, 51, 0.22);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .16 0 0 0 0 .2 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background-color: var(--page);
  background-image: var(--grain);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1.02rem + 0.22vw, 1.1875rem);
  line-height: 1.62;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

[hidden] { display: none !important; }

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

::selection { background: var(--teal); color: var(--page); }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------ links and focus */
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:visited { color: var(--visited); }
a:hover { color: var(--teal-deep); text-decoration-thickness: 2px; }
a:visited:hover { color: var(--visited); }

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

.skip {
  position: absolute;
  left: var(--s-3); top: -4rem;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--page) !important;
  font-weight: 700;
}
.skip:focus { top: var(--s-3); outline-color: var(--hit-1); }

kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  padding: 0.05em 0.45em;
  border: 1px solid var(--ctrl);
  border-bottom-width: 2px;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
code { font-family: var(--mono); font-size: 0.88em; background: var(--wash); padding: 0.05em 0.35em; border-radius: 2px; }

/* ------------------------------------------------------------ masthead */
.masthead {
  border-top: 6px solid var(--teal);
  background: var(--page);
  position: relative;
}
.masthead::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--teal);
  margin-top: 3px;
  opacity: 0.55;
}
.masthead-inner {
  max-width: 88rem;
  margin: 0 auto;
  padding: var(--s-4) var(--gutter) var(--s-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
}
.brand, .brand:visited {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink);
  text-decoration: none;
  min-height: 3.25rem;
}
.brand:hover { color: var(--ink); }
.emblem { width: 3.25rem; height: 3.25rem; flex: none; filter: drop-shadow(0 2px 2px rgba(8, 74, 77, 0.28)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-size: clamp(1.45rem, 1.15rem + 1.5vw, 2.15rem); font-weight: 700; letter-spacing: 0.005em; }
.brand-tag { font-variant-caps: all-small-caps; letter-spacing: 0.13em; font-size: 0.95rem; color: var(--muted); }

.site-search { position: relative; display: flex; gap: var(--s-2); align-items: stretch; flex: 0 1 25rem; min-width: 0; }
.site-search input {
  flex: 1 1 auto; min-width: 0;
  min-height: 2.75rem;
  padding: 0.4rem 0.8rem;
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ctrl);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 2px rgba(31, 41, 51, 0.12);
}
.site-search button, button.q-clear { font: inherit; }
.site-search button {
  min-height: 2.75rem; padding: 0 1rem;
  font-size: 1rem; font-weight: 700;
  color: var(--page); background: var(--teal);
  border: 2px solid var(--teal); border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 2px 0 var(--teal-deep);
}
.site-search button:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.site-search button:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--teal-deep); }
.hs-msg {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 30;
  margin: 0; padding: 0.4rem 0.7rem;
  background: var(--sheet); color: var(--bad);
  border: 1px solid var(--bad); border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700;
  box-shadow: var(--shadow-card);
}
.hs-msg:empty { display: none; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }

.tabs { max-width: 88rem; margin: 0 auto; padding: 0 var(--gutter); }
.tabs ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 2px;
  border-bottom: 1px solid var(--rule);
}
.tabs a, .tabs a:visited {
  position: relative;
  display: flex; align-items: center;
  min-height: 2.75rem; padding: 0.35rem clamp(0.75rem, 2vw, 1.35rem);
  color: var(--teal-deep);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.09em;
  font-size: 1.08rem; font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent; border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: background-color 0.18s ease;
}
.tabs a:hover { background: var(--wash); color: var(--teal-deep); }
.tabs a[aria-current="page"] {
  background: var(--sheet);
  color: var(--ink);
  border-color: var(--rule);
  border-top: 3px solid var(--teal);
  margin-bottom: -1px;
  padding-bottom: 0.45rem;
}

/* ------------------------------------------------------------ shell grid */
.shell {
  max-width: 88rem;
  margin: 0 auto;
  padding: var(--s-5) var(--gutter) var(--s-7);
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr) 17rem;
  grid-template-areas: "left main right";
  gap: var(--s-5) clamp(1rem, 2.2vw, 2.25rem);
  align-items: start;
}
.rail-left { grid-area: left; }
.sheet { grid-area: main; }
.rail-right { grid-area: right; }

.rail { font-size: 0.97rem; line-height: 1.45; }
@media (min-width: 761px) {
  .rail-left { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 4px; margin: -4px; }
}
@media (min-width: 1141px) {
  .rail-right { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 4px; margin: -4px; }
}

.rail-box { margin: 0 0 var(--s-5); }
.rail-title {
  margin: 0 0 var(--s-2);
  padding-bottom: var(--s-1);
  border-bottom: 1px solid var(--teal);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.12em;
  font-size: 1.02rem; font-weight: 700;
  color: var(--teal-deep);
}
.rail-note { margin: var(--s-2) 0 0; font-size: 0.88rem; color: var(--muted); font-style: italic; }

.az-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(2.5rem, 1fr)); gap: 3px; }
.az-grid a, .az-grid a:visited, .az-off {
  display: flex; align-items: center; justify-content: center;
  min-height: 2.5rem;
  font-weight: 700; font-size: 1.02rem;
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--teal);
}
.az-grid a:hover { background: var(--wash); color: var(--teal-deep); border-color: var(--teal); }
.az-off { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; border-style: dashed; background: transparent; font-weight: 400; }

.tool-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tool-btn, .tool-link, .tool-link:visited {
  display: flex; align-items: center;
  width: 100%; min-height: 2.75rem;
  padding: 0.4rem 0.8rem;
  font: inherit; font-size: 1rem;
  text-align: left; text-decoration: none;
  color: var(--teal-deep);
  background: var(--sheet);
  border: 1px solid var(--ctrl);
  border-radius: var(--radius);
  box-shadow: 0 2px 0 var(--rule);
  cursor: pointer;
}
.tool-btn:hover, .tool-link:hover { background: var(--wash); color: var(--teal-deep); }
.tool-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--rule); }

.entry-index { list-style: none; margin: 0; padding: 0; }
.ei-group { margin: 0 0 var(--s-2); }
.ei-letter { display: block; font-weight: 700; color: var(--teal-deep); border-bottom: 1px dotted var(--rule); font-size: 1rem; }
.ei-group ul { list-style: none; margin: 0; padding: 0; }
.ei-group li a, .ei-group li a:visited { display: block; padding: 0.35rem 0.4rem; min-height: 2.5rem; text-decoration: none; color: var(--ink-2); font-size: 0.97rem; line-height: 1.3; border-left: 2px solid transparent; }
.ei-group li a:hover { background: var(--wash); border-left-color: var(--teal); color: var(--teal-deep); }
.ei-group li.is-off { display: none; }
@media (pointer: fine) { .ei-group li a { min-height: 0; padding: 0.22rem 0.4rem; } }

/* infobox and toc */
.infobox {
  margin: 0 0 var(--s-5);
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
  font-size: 0.97rem; line-height: 1.4;
}
.ib-title {
  margin: 0; padding: 0.6rem 0.8rem;
  text-align: center; font-weight: 700; font-size: 1.05rem;
  background: var(--wash);
  border-bottom: 1px solid var(--teal);
  color: var(--ink);
}
.ib-sub { margin: 0; padding: 0.3rem 0.8rem; text-align: center; font-variant-caps: all-small-caps; letter-spacing: 0.12em; color: var(--muted); border-bottom: 1px solid var(--rule); }
.ib-list { margin: 0; }
.ib-list > div { display: grid; grid-template-columns: 6rem 1fr; gap: var(--s-2); padding: 0.45rem 0.8rem; border-top: 1px dotted var(--rule); }
.ib-list > div:first-child { border-top: 0; }
.ib-list dt { font-variant-caps: all-small-caps; letter-spacing: 0.07em; color: var(--muted); font-weight: 700; }
.ib-list dd { margin: 0; }
.ib-foot { margin: 0; padding: 0.55rem 0.8rem; border-top: 1px solid var(--rule); font-style: italic; color: var(--muted); font-size: 0.9rem; }
.ib-text { margin: 0; padding: 0.6rem 0.8rem; }

.toc { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
.toc li { counter-increment: toc; }
.toc a, .toc a:visited {
  display: flex; gap: 0.5rem;
  padding: 0.38rem 0.5rem; min-height: 2.5rem; align-items: center;
  text-decoration: none; color: var(--ink-2);
  border-left: 3px solid var(--rule);
}
.toc a::before { content: counter(toc); font-weight: 700; color: var(--teal); min-width: 1rem; }
.toc a:hover { background: var(--wash); color: var(--teal-deep); border-left-color: var(--teal); }
.toc a.is-done::after { content: "\2713"; margin-left: auto; font-weight: 700; color: var(--teal); }
.toc a[aria-current="location"] { background: var(--wash); border-left-color: var(--teal); color: var(--ink); font-weight: 700; }
@media (pointer: fine) { .toc a { min-height: 0; } }

/* ------------------------------------------------------------ sheet and typography */
.sheet {
  --pad-in: var(--pad);
  min-width: 0;
  padding: var(--pad);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-top: 3px double var(--rule);
  border-radius: 2px;
  box-shadow: var(--shadow-sheet);
}
.sheet:focus { outline: none; }
.article { max-width: 46rem; margin: 0 auto; }
.article > *:first-child { margin-top: 0; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); text-wrap: balance; }
h1 {
  margin: 0.15em 0 0.55em;
  padding-bottom: 0.25em;
  font-size: clamp(2.15rem, 1.5rem + 2.8vw, 3.5rem);
  font-weight: 400; line-height: 1.08; letter-spacing: -0.012em;
  border-bottom: 3px double var(--rule);
}
h2 {
  margin: 2.1em 0 0.6em;
  padding-bottom: 0.15em;
  font-size: clamp(1.55rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 400; line-height: 1.18;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 1rem;
}
h3 { margin: 1.5em 0 0.4em; font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.small { font-size: 0.93rem; color: var(--muted); }
strong { font-weight: 700; }

.label {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.11em;
  font-weight: 700;
  color: var(--teal-deep);
  font-size: 1.02em;
}
.fromline { margin: 0; font-style: italic; color: var(--muted); font-size: 0.97rem; }

.lead { font-size: 1.16em; line-height: 1.55; color: var(--ink); }
.dropcap::first-letter {
  float: left;
  font-size: 3.7em; line-height: 0.84;
  padding: 0.07em 0.09em 0 0;
  font-weight: 700;
  color: var(--teal);
}

.plain-list { margin: 0 0 1.2em; padding-left: 1.3rem; }
.plain-list li { margin-bottom: 0.55em; padding-left: 0.2rem; }
.plain-list li::marker { color: var(--teal); font-weight: 700; }

.fleuron-row { margin: var(--s-6) 0 0; text-align: center; color: var(--teal); }
.fleuron { width: 7.5rem; height: 1rem; }

.notice { padding: var(--s-3) var(--s-4); background: var(--wash); border-left: 4px solid var(--teal); }

/* buttons */
.btn, .btn:visited, a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 1.15rem;
  font: inherit; font-size: 1rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--page);
  background: var(--teal);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 3px 0 var(--teal-deep);
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--page); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--teal-deep); }
.btn-quiet, .btn-quiet:visited, a.btn-quiet {
  background: transparent; color: var(--teal-deep); box-shadow: 0 3px 0 var(--wash-2);
}
.btn-quiet:hover { background: var(--wash); color: var(--teal-deep); border-color: var(--teal); }
.btn-big { min-height: 3.25rem; padding: 0.6rem 1.8rem; font-size: 1.12rem; }

/* ------------------------------------------------------------ index page */
.plate {
  float: right;
  width: min(13.5rem, 42%);
  margin: 0.4rem 0 1rem 1.6rem;
  transform: rotate(1.2deg);
}
.plate svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgba(31, 41, 51, 0.22)) drop-shadow(0 1px 1px rgba(31, 41, 51, 0.3)); }
.plate figcaption { margin-top: 0.45rem; font-size: 0.87rem; font-style: italic; color: var(--muted); line-height: 1.35; text-align: center; }
@media (max-width: 600px) {
  .plate { float: none; width: 11rem; margin: 1rem auto 1.2rem; }
}

.tod-card {
  position: relative;
  padding: var(--s-5) clamp(1.1rem, 3vw, 1.9rem);
  background: var(--wash);
  box-shadow: inset 0 0 0 5px var(--sheet), inset 0 0 0 6px var(--teal), var(--shadow-card);
}
.tod-card .label { margin: 0; }
.tod-date { margin: 0; font-size: 0.93rem; color: var(--muted); font-style: italic; }
.tod-name { margin: 0.1em 0 0.25em; font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem); font-weight: 700; line-height: 1.12; }
.tod-def { margin: 0 0 var(--s-4); }
.tod-actions { margin: 0; }
.tod-mini { padding: 0.7rem 0.8rem 0.8rem; }
.tod-mini .tod-name { font-size: 1.3rem; margin: 0 0 0.2em; }
.tod-mini .tod-def { font-size: 0.95rem; margin: 0; }

.portals { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: var(--s-4); }
.portal { border: 1px solid var(--teal); background: var(--page); box-shadow: var(--shadow-card); }
.portal h3.on-teal {
  margin: 0; padding: 0.55rem 0.9rem;
  background: var(--teal); color: var(--page);
  font-size: 1.12rem; font-weight: 700;
}
.portal-body { padding: 0.8rem 0.9rem 0.3rem; font-size: 0.99rem; line-height: 1.5; }
.portal-body p { margin: 0 0 0.8em; }

.chain-fig { margin: var(--s-5) 0; }
.chain {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.1rem;
  counter-reset: blk;
}
.blk {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  font-size: 0.82rem; line-height: 1.3;
}
.blk + .blk::before {
  content: "\2190";
  position: absolute; left: -1.85rem; top: 4.1rem;
  width: 1.6rem; text-align: center;
  font-size: 1.5rem; line-height: 1; color: var(--teal-deep); font-weight: 700;
}
.blk-title { margin: 0; padding: 0.4rem 0.6rem; background: var(--wash); border-bottom: 1px solid var(--teal); font-weight: 700; font-size: 0.93rem; }
.blk dl { margin: 0; }
.blk dl > div { padding: 0.3rem 0.6rem; border-top: 1px dotted var(--rule); }
.blk dl > div:first-child { border-top: 0; }
.blk dt { font-weight: 700; color: var(--ink); }
.blk dd { margin: 0; color: var(--muted); }
.blk .is-link { background: var(--hit-2); border-left: 4px solid var(--teal); }
.blk .is-link dd { color: var(--ink); }
.blk-tx { margin: 0; padding: 0.4rem 0.6rem; border-top: 1px solid var(--teal); font-style: italic; color: var(--ink-2); }
.chain-fig figcaption { margin-top: var(--s-3); font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 760px) {
  .chain { grid-template-columns: 1fr; gap: 2.2rem; max-width: 22rem; margin-inline: auto; }
  .blk + .blk::before { content: "\2191"; left: 50%; top: -2rem; margin-left: -0.8rem; }
  .blk { font-size: 0.9rem; }
}

.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--s-4); margin: var(--s-4) 0; }
.topic-card { padding: 0.75rem 0.9rem 0.6rem; border: 1px solid var(--rule); border-top: 3px solid var(--teal); background: var(--page); }
.topic-card h3 { margin: 0 0 0.3rem; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.topic-card .count { font-size: 0.85rem; font-weight: 400; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 0 0.5rem; }
.topic-card ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.topic-card li a { display: inline-block; padding: 0.12rem 0; font-size: 0.98rem; }
@media (pointer: coarse) { .topic-card li a { padding: 0.5rem 0; min-height: 2.5rem; } }

/* ------------------------------------------------------------ footnotes */
.fnref { font-size: 0.72em; line-height: 0; font-weight: 700; }
.fnref a { position: relative; text-decoration: none; padding: 0 0.12em; }
.fnref a::after { content: ""; position: absolute; inset: -0.7rem -0.4rem; }
.notes { margin-top: var(--s-6); }
.note-list { margin: 0; padding-left: 1.6rem; font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); }
.note-list li { margin-bottom: 0.55em; padding-left: 0.3rem; scroll-margin-top: 6rem; }
.note-list li::marker { font-weight: 700; color: var(--teal); }
.note-list li:target { background: var(--hit-2); box-shadow: -0.4rem 0 0 var(--hit-2); }
.backref { display: inline-block; padding: 0 0.4rem; min-width: 1.6rem; text-align: center; font-weight: 700; text-decoration: none; }

/* ------------------------------------------------------------ glossary */
.gl-controls { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; gap: var(--s-4); align-items: start; }
.field label, .field > label { display: block; margin-bottom: 0.3rem; font-variant-caps: all-small-caps; letter-spacing: 0.1em; font-weight: 700; color: var(--teal-deep); font-size: 1.04rem; }
.field .opt { font-weight: 400; letter-spacing: 0.04em; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.5rem 0.8rem;
  font: inherit; font-size: 1.02rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ctrl);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 2px rgba(31, 41, 51, 0.12);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .site-search input:focus-visible { border-color: var(--teal); }
.q-wrap { position: relative; }
.q-wrap input { padding-right: 4.8rem; }
button.q-clear {
  position: absolute; right: 3px; top: 3px; bottom: 3px;
  min-width: 3.4rem; padding: 0 0.7rem;
  font-size: 0.95rem; font-weight: 700; color: var(--teal-deep);
  background: var(--wash); border: 1px solid transparent; border-radius: 2px; cursor: pointer;
}
button.q-clear:hover { border-color: var(--teal); }
.hint { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--muted); }
.field-error, .q-error { margin: 0.35rem 0 0; color: var(--bad); font-weight: 700; font-size: 0.97rem; }
.field-error:empty, .q-error:empty { display: none; }
.field-error:not(:empty)::before, .q-error:not(:empty)::before { content: "\26A0\FE0E  "; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--bad); border-width: 2px; }

.gl-status { margin: var(--s-3) 0 0; font-style: italic; color: var(--ink-2); min-height: 1.6em; }

.az-strip {
  position: sticky; top: 0; z-index: 25;
  margin: var(--s-3) calc(var(--pad) * -1) var(--s-4);
  padding: 0.35rem var(--pad);
  background: var(--sheet);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--teal);
  box-shadow: 0 8px 10px -10px rgba(31, 41, 51, 0.5);
}
.az-strip-inner { display: flex; flex-wrap: wrap; gap: 3px; }
.az-btn {
  flex: none;
  min-width: 2.5rem; min-height: 2.5rem; padding: 0 0.55rem;
  font: inherit; font-size: 1.02rem; font-weight: 700;
  color: var(--teal);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.az-btn:hover { background: var(--wash); border-color: var(--teal); color: var(--teal-deep); }
.az-btn[aria-pressed="true"] {
  background: var(--teal); color: var(--page); border-color: var(--teal);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em;
}
.az-btn.is-empty { color: var(--muted); border-style: dashed; font-weight: 400; text-decoration: line-through; text-decoration-thickness: 1px; }
.az-btn.is-empty:hover { background: transparent; border-color: var(--ctrl); color: var(--muted); }
@media (max-width: 700px) {
  .az-strip-inner { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .az-btn { scroll-snap-align: start; }
}

.gl-empty {
  margin: var(--s-5) 0;
  padding: var(--s-5);
  text-align: center;
  background: var(--page);
  border: 2px dashed var(--ctrl);
  border-radius: var(--radius);
}
.gl-empty-icon { color: var(--teal); margin-bottom: 0.3rem; }
.gl-empty-title { margin: 0 0 0.3em; font-size: 1.3rem; font-weight: 700; }
.gl-empty-actions { margin: var(--s-3) 0 0; }

.gl-list { margin: 0; }
.letter-group { margin: 0 0 var(--s-5); scroll-margin-top: 7rem; }
#entries { scroll-margin-top: 7rem; }
.letter-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
  margin: var(--s-5) 0 0;
  padding-bottom: 0.1em;
  font-size: 2.6rem; line-height: 1.1; font-weight: 400;
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
}
.letter-count { font-size: 0.9rem; font-style: italic; color: var(--muted); font-weight: 400; }

.entry {
  position: relative;
  padding: var(--s-4) 0.9rem var(--s-3);
  margin: 0 -0.9rem;
  border-bottom: 1px dotted var(--ctrl);
  scroll-margin-top: 7rem;
}
.entry:focus { outline: none; }
.entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.75rem; }
.entry-head h4 { margin: 0; flex: 1 1 11rem; font-size: 1.4rem; line-height: 1.2; }
.topic-tag {
  font-variant-caps: all-small-caps; letter-spacing: 0.09em; font-weight: 700; font-size: 0.97rem;
  padding: 0 0.6rem; line-height: 1.55;
  color: var(--muted);
  border: 1px solid var(--rule); border-radius: 999px; background: var(--page);
}
.permalink, .permalink:visited {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  margin: -0.3rem -0.5rem -0.3rem 0;
  font-size: 1.25rem; text-decoration: none;
  color: var(--muted);
  border-radius: var(--radius);
}
.permalink:hover { color: var(--teal); background: var(--wash); }
.aka { margin: 0.1rem 0 0; font-size: 0.95rem; color: var(--muted); font-style: italic; }
.aka .label { font-style: normal; }
.hatnote { margin: 0.35rem 0 0; padding-left: 1.1rem; font-size: 0.95rem; font-style: italic; color: var(--ink-2); }
.def { margin-top: 0.4rem; }
.def p { margin: 0 0 0.7em; }
details.more { margin: 0; }
details.more > summary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.5rem; padding: 0 0.2rem;
  font-weight: 700; font-size: 0.97rem; color: var(--teal-deep);
  cursor: pointer; list-style: none;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before {
  content: "+"; display: inline-flex; align-items: center; justify-content: center;
  width: 1.4rem; height: 1.4rem; line-height: 1; font-size: 1.05rem;
  border: 1.5px solid var(--teal); border-radius: 50%; background: var(--sheet);
}
details.more[open] > summary::before { content: "\2212"; }
details.more > summary:hover { color: var(--teal); text-decoration: underline; }
details.more .when-open { display: none; }
details.more[open] .when-open { display: inline; }
details.more[open] .when-closed { display: none; }
.def-rest { padding-top: 0.3rem; }
.seealso { margin: 0.2rem 0 0.4rem; font-size: 0.95rem; color: var(--ink-2); }
.seealso a { white-space: nowrap; }

.entry:target, .entry.is-target {
  background: var(--wash);
  box-shadow: inset 4px 0 0 var(--teal);
}
.entry.is-flash { animation: flash 2.4s ease-out; }
@keyframes flash { from { background-color: var(--hit-1); } }

mark.hit {
  color: var(--ink);
  background: var(--hit-2);
  padding: 0 0.08em;
  border-radius: 2px;
  box-shadow: inset 0 -2px 0 var(--teal);
  animation: hitfade 1.9s ease-out;
}
@keyframes hitfade { from { background-color: var(--hit-1); } }

/* ------------------------------------------------------------ start here */
.progress-panel {
  margin: var(--s-5) 0;
  padding: var(--s-4) var(--s-4) var(--s-3);
  background: var(--wash);
  border: 1px solid var(--teal);
  box-shadow: var(--shadow-card);
}
.pp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.pp-head p { margin: 0; }
.pp-count { font-weight: 700; font-size: 1.1rem; }
.meter { height: 1rem; margin: var(--s-2) 0; background: #fff; border: 1px solid var(--teal); border-radius: 999px; overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 999px; transition: width 0.5s ease; }
.pp-dots { list-style: none; margin: var(--s-3) 0; padding: 0; display: flex; gap: var(--s-1); }
.pp-dots li {
  flex: 1 1 0; min-width: 0; max-width: 3rem;
  display: flex; align-items: center; justify-content: center; gap: 0.15em;
  height: 2rem;
  font-weight: 700; font-size: 0.95rem;
  color: var(--teal-deep); background: #fff;
  border: 1.5px solid var(--teal); border-radius: 999px;
}
.pp-dots li.is-done { background: var(--teal); color: var(--page); }
.pp-dots li.is-done::after { content: "\2713"; font-size: 0.8em; }
.pp-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }
.progress-panel .small { margin: var(--s-3) 0 0; color: var(--ink-2); }

.path { list-style: none; margin: var(--s-6) 0; padding: 0; counter-reset: none; }
.step {
  position: relative;
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0 clamp(0.8rem, 2.4vw, 1.5rem);
  padding-bottom: var(--s-6);
}
.step:not(:last-child)::before {
  content: "";
  position: absolute; left: 1.7rem; top: 3.6rem; bottom: 0.2rem; width: 2px; margin-left: -1px;
  background: repeating-linear-gradient(to bottom, var(--teal) 0 7px, transparent 7px 14px);
}
.step-marker {
  width: 3.4rem; height: 3.4rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; font-weight: 700; font-variant-numeric: oldstyle-nums;
  color: var(--teal-deep);
  background: var(--sheet);
  border: 2px solid var(--teal); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--sheet), var(--shadow-card);
  position: relative;
}
.step.is-done .step-marker { background: var(--teal); color: var(--page); }
.step.is-done .step-marker::after {
  content: "\2713";
  position: absolute; right: -0.35rem; bottom: -0.2rem;
  width: 1.4rem; height: 1.4rem; line-height: 1.4rem; text-align: center;
  font-size: 0.9rem;
  background: var(--page); color: var(--teal-deep); border: 2px solid var(--teal); border-radius: 50%;
}
.step-body { min-width: 0; padding-top: 0.15rem; }
.step-body .label { margin: 0; }
.step.is-done .step-body > .label::after { content: " \00B7 read"; }
.step-body h2 { margin: 0.05em 0 0.45em; border: 0; padding: 0; font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.95rem); scroll-margin-top: 1rem; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; margin: 1em 0; }
.chips .label { margin-right: 0.25rem; }
.chips a, .chips a:visited {
  display: inline-flex; align-items: center;
  min-height: 2.5rem; padding: 0 0.8rem;
  font-size: 0.97rem; text-decoration: none;
  color: var(--teal-deep); background: var(--page);
  border: 1px solid var(--ctrl); border-radius: 999px;
}
.chips a:hover { background: var(--wash); border-color: var(--teal); }

details.check { margin: 0 0 var(--s-4); background: var(--page); border: 1px solid var(--rule); border-left: 4px solid var(--teal); }
details.check summary {
  display: flex; align-items: center; gap: 0.6rem;
  min-height: 2.75rem; padding: 0.3rem 0.9rem;
  font-weight: 700; color: var(--teal-deep); cursor: pointer; list-style: none;
}
details.check summary::-webkit-details-marker { display: none; }
details.check summary::before { content: "+"; display: inline-flex; width: 1.4rem; height: 1.4rem; align-items: center; justify-content: center; border: 1.5px solid var(--teal); border-radius: 50%; line-height: 1; font-size: 1.1rem; }
details.check[open] summary::before { content: "\2212"; }
details.check[open] summary { border-bottom: 1px dotted var(--rule); }
details.check p { margin: 0.6rem 0.9rem; font-size: 0.99rem; }
details.check p:last-child { margin-bottom: 0.8rem; }

.step-actions { margin: 0; }
.mark-btn {
  min-height: 2.75rem; padding: 0.4rem 1rem;
  font: inherit; font-size: 1rem; font-weight: 700;
  color: var(--teal-deep); background: transparent;
  border: 2px solid var(--teal); border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 3px 0 var(--wash-2);
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.mark-btn:hover { background: var(--wash); }
.mark-btn:active { transform: translateY(2px); }
.mark-btn[aria-pressed="true"] { background: var(--teal); color: var(--page); box-shadow: 0 3px 0 var(--teal-deep); }

/* ------------------------------------------------------------ quiz */
.quiz { margin: var(--s-4) 0; padding: clamp(1rem, 2.6vw, 1.75rem); background: var(--page); border: 1px solid var(--rule); box-shadow: inset 0 0 0 4px var(--sheet), inset 0 0 0 5px var(--rule); }
.quiz h3 { margin-top: 0; }
.quiz-best { font-weight: 700; color: var(--teal-deep); }
.quiz-best:empty { display: none; }
.q-progress { margin-bottom: var(--s-4); }
.q-count { margin: 0; font-variant-caps: all-small-caps; letter-spacing: 0.1em; font-weight: 700; font-size: 1.15rem; color: var(--teal-deep); }
.tracker { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: flex; gap: 3px; }
.tracker li {
  flex: 1 1 0; min-width: 0; height: 1.9rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700; color: var(--muted);
  background: var(--sheet); border: 1px solid var(--ctrl); border-radius: 2px;
}
.tracker li.is-current { border: 2px solid var(--teal); color: var(--ink); background: var(--wash); }
.tracker li.is-right { background: var(--good-bg); border-color: var(--good); color: var(--good); }
.tracker li.is-wrong { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.q-card { margin: 0; }
.q-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.q-legend { display: block; width: 100%; padding: 0; margin: 0 0 var(--s-4); font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem); font-weight: 700; line-height: 1.3; }
.q-legend:focus { outline: none; }
.q-options { display: grid; gap: var(--s-2); }
.opt {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.85rem; align-items: center;
  min-height: 3.4rem; padding: 0.7rem 0.95rem;
  background: var(--sheet);
  border: 2px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 2px 0 var(--rule);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.opt:hover { border-color: var(--teal); background: var(--wash); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-mark {
  grid-row: 1 / span 2;
  width: 1.6rem; height: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; color: var(--teal-deep);
  border: 2px solid var(--ctrl); border-radius: 50%; background: #fff;
}
.opt input:checked + .opt-mark { background: var(--teal); border-color: var(--teal); color: var(--page); }
.opt input:focus-visible + .opt-mark { outline: 3px solid var(--teal); outline-offset: 3px; }
.opt:has(input:checked) { border-color: var(--teal); background: var(--wash); }
.opt-text { min-width: 0; }
.opt-flag { grid-column: 2; font-variant-caps: all-small-caps; letter-spacing: 0.09em; font-weight: 700; font-size: 1.02rem; }
.opt-flag:empty { display: none; }
.opt.is-right { border-color: var(--good); background: var(--good-bg); border-width: 3px; }
.opt.is-right .opt-flag { color: var(--good); }
.opt.is-wrong { border-color: var(--bad); background: var(--bad-bg); border-style: dashed; border-width: 3px; }
.opt.is-wrong .opt-flag { color: var(--bad); }
.q-card.is-locked .opt { cursor: default; }
.q-card.is-locked .opt:hover { background: var(--sheet); }
.q-card.is-locked .opt.is-right:hover { background: var(--good-bg); }
.q-card.is-locked .opt.is-wrong:hover { background: var(--bad-bg); }

.q-feedback { margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4); border-left: 5px solid var(--teal); background: var(--sheet); }
.q-feedback.is-good { border-color: var(--good); background: var(--good-bg); }
.q-feedback.is-bad { border-color: var(--bad); background: var(--bad-bg); }
.fb-title { margin: 0 0 0.2em; font-weight: 700; font-size: 1.15rem; }
.is-good .fb-title { color: var(--good); }
.is-bad .fb-title { color: var(--bad); }
.q-feedback p:last-child { margin-bottom: 0; }
.q-actions { margin: var(--s-4) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }

.quiz-result h3 { scroll-margin-top: 1rem; }
.quiz-result h3:focus { outline: none; }
.result-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); margin: var(--s-3) 0 var(--s-4); }
.ring { width: 9rem; height: 9rem; flex: none; }
.ring-track { stroke: var(--rule); }
.ring-fill { stroke: var(--teal); stroke-dasharray: 364.42; stroke-dashoffset: 364.42; transition: stroke-dashoffset 1.1s ease-out; }
.ring-text { font-family: var(--serif); font-size: 30px; font-weight: 700; fill: var(--ink); }
.result-score { margin: 0 0 0.3em; font-size: 1.5rem; font-weight: 700; line-height: 1.25; }
.result-msg { margin: 0 0 0.4em; }
.result-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: 0 0 var(--s-5); }
.review-title { margin: var(--s-5) 0 var(--s-3); font-size: 1.4rem; }
.review-item { margin: 0 0 var(--s-4); padding: var(--s-3) var(--s-4); background: var(--sheet); border: 1px solid var(--rule); border-left: 5px solid var(--bad); box-shadow: var(--shadow-card); }
.review-item.is-ok { border-left-color: var(--good); }
.review-item h5 { margin: 0 0 var(--s-2); font-size: 1.1rem; line-height: 1.3; }
.review-item dl { margin: 0 0 var(--s-2); }
.review-item dl > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--s-2); padding: 0.2rem 0; }
.review-item dt { font-variant-caps: all-small-caps; letter-spacing: 0.08em; font-weight: 700; color: var(--muted); }
.review-item dd { margin: 0; }
.review-item p { margin: 0 0 0.5em; font-size: 0.99rem; }
.review-all { margin-top: var(--s-4); }
.review-all > summary { min-height: 2.75rem; display: flex; align-items: center; font-weight: 700; color: var(--teal-deep); cursor: pointer; }

/* ------------------------------------------------------------ about */
.mail-form { margin: var(--s-4) 0; padding: clamp(1rem, 2.4vw, 1.5rem); background: var(--page); border: 1px solid var(--rule); box-shadow: inset 0 0 0 4px var(--sheet), inset 0 0 0 5px var(--rule); }
.mail-form .field { margin-bottom: var(--s-4); }
.form-actions { margin: 0 0 var(--s-3); }
.status { margin: var(--s-2) 0 0; font-weight: 700; color: var(--teal-deep); }
.status:empty { display: none; }
.status.is-ok::before { content: "\2713  "; }
.reset-box { padding: var(--s-3) var(--s-4) var(--s-1); background: var(--page); border: 1px dashed var(--ctrl); }

/* ------------------------------------------------------------ footer */
.site-footer { margin-top: var(--s-5); background: var(--foot-bg); color: var(--foot-ink); border-top: 6px solid var(--teal); }
.footer-inner {
  max-width: 88rem; margin: 0 auto;
  padding: var(--s-6) var(--gutter) var(--s-6);
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5) var(--s-6);
  align-items: start;
}
.foot-name { margin: 0 0 var(--s-2); font-size: 1.5rem; font-weight: 700; }
.foot-line { margin: 0 0 var(--s-2); font-size: 0.97rem; line-height: 1.5; max-width: 34rem; }
.foot-nav { list-style: none; margin: 0; padding: 0; }
.site-footer a, .site-footer a:visited { color: var(--foot-link); }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--foot-link); }
.foot-nav a { display: inline-flex; align-items: center; min-height: 2.5rem; }
.foot-mail { margin: 0; }
.foot-mail a { display: inline-flex; align-items: center; min-height: 2.5rem; font-weight: 700; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1140px) {
  .shell {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    grid-template-areas: "left main" "left right";
  }
  .rail-right { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 var(--s-4); align-items: start; }
  .rail-right .toc-box { grid-column: 1 / -1; }
  .rail-right .toc { columns: 2; column-gap: var(--s-4); }
  .rail-right .toc li { break-inside: avoid; }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main" "right" "left";
    padding-top: var(--s-4);
  }
  .rail-left { position: static; max-height: none; }
  .entry-index { display: none; }
  .entry-index-box { display: none; }
  .rail-right .toc { columns: 1; }
  .gl-controls { grid-template-columns: minmax(0, 1fr); }
  .site-search { flex: 1 1 100%; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .entry { margin: 0 -0.4rem; padding-inline: 0.4rem; }
  .review-item dl > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ib-list > div { grid-template-columns: 7rem 1fr; }
}
@media (max-width: 480px) {
  .tabs a, .tabs a:visited { padding-inline: 0.7rem; font-size: 1.02rem; }
  .step { grid-template-columns: 2.7rem minmax(0, 1fr); }
  .step-marker { width: 2.7rem; height: 2.7rem; font-size: 1.4rem; }
  .step:not(:last-child)::before { left: 1.35rem; top: 2.9rem; }
  .letter-h { font-size: 2.2rem; }
  .pp-dots li { height: 1.9rem; }
  .ring { width: 7.5rem; height: 7.5rem; }
}
@media (min-width: 1700px) {
  body { font-size: 1.1875rem; }
}

/* ------------------------------------------------------------ print */
@media print {
  :root { --page: #fff; --sheet: #fff; }
  body { background: #fff; color: #000; font-size: 11.5pt; }
  .skip, .site-search, .tabs, .rail, .site-footer nav, .az-strip, .gl-controls, .gl-status,
  .pp-actions, .btn, .mark-btn, .permalink, .backref, .plate, .chips, .fleuron-row, .progress-panel .small { display: none !important; }
  .shell { display: block; padding: 0; max-width: none; }
  .sheet { border: 0; box-shadow: none; padding: 0; }
  .article { max-width: none; }
  .masthead { border-top-width: 3px; }
  .masthead-inner { padding: 0 0 6pt; }
  .footer-inner { display: block; padding: 6pt 0 0; }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #000; margin: 12pt 0 0; }
  .site-footer a { color: #000; }
  .step, .entry, .portal, .review-item { break-inside: avoid; }
  .progress-panel { box-shadow: none; }
  a, a:visited { color: #000; }
  h1, h2 { break-after: avoid; }
}

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    animation-duration: 0.001ms !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .plate { transform: none; }
  .btn:active, .mark-btn:active, .tool-btn:active, .site-search button:active { transform: none; }
}
