/* © 2026 Mikol Graves and TZER0 Games, LLC. All rights reserved. */

:root {
  --ff-display-heading: "Vollkorn SC", serif;
  --ff-display-title: "Pirata One", serif;
  --ff-monospace: "Overpass Mono", monospace;
  --ff-monospace-arrow: "Google Sans Code", monospace;
  --ff-sans-serif: "Overpass", sans-serif;
  --ff-serif: "Vollkorn", serif;

  --fw-thin: 100;
  --fw-extra-light: 200;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi-bold: 600;
  --fw-bold: 700;
  --fw-extra-bold: 800;
  --fw-black: 900;
}

/* -------------------------------------------------------------------------- */

html {
  color: #333;
  font-family: var(--ff-sans-serif);
  font-size: 16px;
  font-weight: var(--fw-light);
  line-height: 1.333rem;
  text-shadow: rgba(255, 255, 255, 0.2) 0 1px;
  text-wrap: pretty;
}

@media screen and (width < 640px) {
  html {
    font-size: 18px;
  }
}

h1 {
  font-family: var(--ff-display-title);
  font-size: 4rem;
  font-weight: var(--fw-regular);
  line-height: 1;
  margin: 36px 0 12px;
  text-wrap: balance;
}

h1 .t0--chapter-number {
  display: inline-block;
  font-family: var(--ff-monospace);
  font-size: 2rem;
  font-weight: var(--fw-bold);
  margin-left: -3.3ex;
}

h2, h3, h4, h5, h6 {
  font-family: var(--ff-display-heading);
  font-weight: var(--fw-regular);
  line-height: 1;
  margin: 24px 0 12px;
  text-wrap: balance;
}

h1 + h2,
h2 + h3,
h3 + h4,
h4 + h5 {
  margin-top: 12px
}

h2 {
  font-size: 2rem;

  .t0--heading-intro {
    font-family: var(--ff-display-title);
    font-size: 1.333rem;
    margin-bottom: 6px;
  }
}

h3 {
  font-size: 1.666rem;
}

h4 {
  font-size: 1.333rem;
}

h5 {
  font-size: 1rem;
  font-weight: var(--fw-semi-bold);
}

@media screen and (width < 512px) {
  h1 {
    font-size: 3.333rem;

    .t0--chapter-number {
      font-size: 1.777rem;
      font-weight: var(--fw-bold);
    }
  }

  h2 {
    font-size: 2rem;

    .t0--heading-intro {
      font-size: 1.185rem;
    }
  }

  h3 {
    font-size: 1.666rem;
  }

  h4 {
    font-size: 1.333rem;
  }

  h5 {
    font-size: 1rem;
    font-weight: var(--fw-semi-bold);
  }
}

p, .t0--p {
  margin: 12px 0;
}

.t0--pt {
  margin: 6px 0 18px;
}

ol, ul {
  counter-reset: x;
  list-style-type: "";
  margin-left: 15px;
  position: relative;

  &#t0--sustain-times {
    columns: 3;
    margin-bottom: -12px;
  }

  &#t0--damage-factor-allocation {
    columns: 2;
    margin-bottom: -12px;
  }

  &#t0--healing-efficacy {
    columns: 2;
    margin-bottom: -12px;
  }

  &.t0--zero-index {
    counter-reset: x -1;
  }

  li {
    counter-increment: x;
    position: relative;
    margin-bottom: 12px;
  }

  li::before {
    content: counter(x, decimal) ".";
    display: inline-block;
    font-family: var(--ff-monospace);
    font-weight: var(--fw-medium);
    margin-left: -4ch;
    margin-right: 1ch;
    min-width: 3ch;
    position: relative;
    text-align: right;
  }

  &.t0--chapter-list {
    counter-reset: chapter;

    &.t0--how-to-play {
      counter-reset: chapter 1;
    }

    li {
      counter-increment: chapter;
    }

    li::before {
      content: counter(chapter, decimal-leading-zero);
    }
  }
}

ul {
  li::before {
    content: "◉";
  }

  li.t0--trait::before {
    content: "▽";
  }

  &.t0--tags {
    display: inline;
    font-size: 0.777rem;
    font-weight: var(--fw-semi-bold);
    margin: 0;
    padding: 0;

    li {
      display: inline;
      margin: 0;
      text-wrap: nowrap;
    }

    li::before {
      content: "";
    }

    li:not(:last-child)::after {
      content: " ";
      font-family: var(--ff-monospace);
    }
  }

  &.t0--modifiers {
    margin-left: 12px;

    li::before {
      content: attr(data-modifier);
    }
  }
}

@media screen and (width < 640px) {
  ol, ul {
    margin-left: 0;
    padding-left: 33px;

    &#t0--sustain-times {
      columns: 2;
      margin-bottom: 18px;
    }

    &#t0--healing-efficacy {
      columns: auto;
      margin-bottom: 18px;
    }
  }
}

blockquote {
  border-left: dotted 1px #000;
  margin: 24px 24px 24px 36px;
  padding-left: 17px;
}

@media screen and (width < 640px) {
  blockquote {
    margin-left: 16px;
  }
}

pre {
  font-family: var(--ff-monospace);
}

a:link,
a:visited {
  color: #059;
  text-decoration: none;
}

@media screen and (hover: hover) {
  a:hover {
    color: #c60;

    &::after {
      content: "⇢";
      display: inline-block;
      position: absolute;
      transform: translate(-1ex, 0.75em);
    }
  }
}

a:active {
  color: #930;
}

/* Prevents interactive elements from flashing when tapped. */

a, button, input {
  -webkit-tap-highlight-color: transparent;
}

strong {
  font-weight: var(--fw-semi-bold);
}

/* -------------------------------------------------------------------------- */

/* Uses a container to ensure that the background image covers the full height
of the window. If you just set `background` on the `html` or `body` tags, the
image may not extend the full height of the window. */

#t0--background {
  background: center / cover no-repeat url('img/00.jpg');
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: -1;
}

/* Sets the background image for known locations. */

.t0--\/core\/srd #t0--background {
  background-image: url('/img/00.jpg');
  background-repeat: no-repeat;
}

.t0--\/core\/srd\/01-how-to-play #t0--background {
  background-image: url('/img/01.jpg');
}

.t0--\/core\/srd\/02-characters #t0--background {
  background-image: url('/img/02.jpg');
  background-position: top;
}

.t0--\/core\/srd\/03-constraints #t0--background {
  background-image: url('/img/03.jpg');
}

.t0--\/core\/srd\/04-competence #t0--background {
  background-image: url('/img/04.jpg');
  background-position: bottom;
}

.t0--\/core\/srd\/05-exceptions #t0--background {
  background-image: url('/img/05.jpg');
}

.t0--\/core\/srd\/06-edge #t0--background {
  background-image: url('/img/06.jpg');
  background-position: top;
}

.t0--\/core\/srd\/07-tests #t0--background {
  background-image: url('/img/07.jpg');
  background-position: bottom;
}

.t0--\/core\/srd\/08-threats #t0--background {
  background-image: url('/img/08.jpg');
}

.t0--\/core\/srd\/09-supernature #t0--background {
  background-image: url('/img/09.jpg');
  background-position: top;
}

.t0--\/core\/srd\/10-materiel #t0--background {
  background-image: url('/img/10.jpg');
  background-position: bottom;
}

/* -------------------------------------------------------------------------- */

/* At larger viewport sizes, the content width and margins are proportional to
the 6×9" trade format of the print book. */

.t0--content {
  backdrop-filter: blur(4px);
  background-color: rgba(246, 238, 230, 0.85);
  border: solid 1px #000;
  border-bottom-right-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 246, 238, 0.4);
  display: none;
  left: 50%;
  margin-top: 24px;
  padding: 0 91px 73px;
  position: absolute;
  transform: translateX(-272px);
  width: 800px;
  z-index: 10;
}

/* Shims the space between the bottom of the content block and the bottom of the
viewport, which allows the user to “overscroll” to admire the background art. */

.t0--content::after {
  content: " ";
  display: block;
  height: 1px;
  margin: 0 0 -1px;
  overflow: hidden;
  padding: 0;
  position: relative;
  top: calc(100vh - 128px);
  visibility: hidden;
}

/* Places the content blocks corresponding to known locations into the page. */

.t0--\/ #t0--\/,
.t0--\/core\/srd #t0--\/core\/srd,
.t0--\/core\/srd\/01-how-to-play #t0--\/core\/srd\/01-how-to-play,
.t0--\/core\/srd\/02-characters #t0--\/core\/srd\/02-characters,
.t0--\/core\/srd\/03-constraints #t0--\/core\/srd\/03-constraints,
.t0--\/core\/srd\/04-competence #t0--\/core\/srd\/04-competence,
.t0--\/core\/srd\/05-exceptions #t0--\/core\/srd\/05-exceptions,
.t0--\/core\/srd\/06-edge #t0--\/core\/srd\/06-edge,
.t0--\/core\/srd\/07-tests #t0--\/core\/srd\/07-tests,
.t0--\/core\/srd\/08-threats #t0--\/core\/srd\/08-threats,
.t0--\/core\/srd\/09-supernature #t0--\/core\/srd\/09-supernature,
.t0--\/core\/srd\/10-materiel #t0--\/core\/srd\/10-materiel,
.t0--\/resources\/character-sheets #t0--\/resources\/character-sheets {
  display: block;
}

/* ------------------------------------------------------------------ */

/* Makes style exceptions specific to the home page marketing content. */

.t0--\/ .t0--content {
  background-color: transparent;
  background-image: linear-gradient(192deg, rgba(255, 153, 0, 0.7), rgba(255, 119, 34, 0.7) 320px, rgba(255, 153, 0, 0.7), rgba(253, 185, 68, 0.7), rgba(246, 238, 230, 0.85) 640px);
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 246, 238, 0.2);
}

.t0--\/ h1 {
  color: #fff;
  margin-left: auto;
  margin-right: auto;
  padding-top: 12px;
  text-shadow:
  rgba(0, 0, 0, 0.3) 0 1px,
  rgba(0, 0, 0, 0.3) 0 -1px,
  rgba(0, 0, 0, 0.3) 1px 0,
  rgba(0, 0, 0, 0.3) -1px 0;
  width: max-content;
}

.t0--\/ h1 .t0--heading {
  font-family: var(--ff-monospace);
  font-weight: var(--fw-bold);
  text-transform: uppercase;

  .t0--tm {
    font-size: 1rem;
    font-weight: var(--fw-light);
    position: relative;
    top: 3px;
    vertical-align: top;
  }
}

.t0--\/ h1 .t0--heading-intro {
  font-family: var(--ff-display-title);
  font-size: 1.333rem;
  margin-bottom: 6px;
}

.t0--heading-tagline {
  font-family: var(--ff-serif);
  font-size: 1rem;
  text-align: center;
  margin-top: -12px;
  text-shadow:
  rgba(0, 0, 0, 0.3) 0 1px,
  rgba(0, 0, 0, 0.3) 0 -1px,
  rgba(0, 0, 0, 0.3) 1px 0,
  rgba(0, 0, 0, 0.3) -1px 0;
  color: #fff;
  white-space: nowrap;
}

.t0--heading-tagline > em {
  font-family: var(--ff-display-title);
  font-size: 1.111rem;
  font-style: normal;
}

.t0--heading-paragraph {
  color: #fff;
  letter-spacing: 0.444px;
  margin-bottom: 24px;
  text-shadow:
  rgba(0, 0, 0, 0.3) 0 1px,
  rgba(0, 0, 0, 0.3) 0 -1px,
  rgba(0, 0, 0, 0.3) 1px 0,
  rgba(0, 0, 0, 0.3) -1px 0;
}

.t0--cover-mockups {
  background: center top / contain no-repeat url('/img/cover-mockups.png');
  height: 498px;
}

/* ---------------------------------- */

@media screen and (width <= 1056px) {
  .t0--content {
    border-top-right-radius: 0;
    left: 256px;
    padding-left: 75px;
    padding-right: 75px;
    right: 0;
    transform: none;
    width: auto;
  }
}

@media screen and (width < 1024px) {
  .t0--content {
    border-bottom-left-radius: 12px;
    border-right: solid 1px #000;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    left: 50%;
    margin-top: 64px;
    padding-left: 91px;
    padding-right: 91px;
    transform: translateX(-50%);
    width: 800px;
  }
}

@media screen and (width < 800px) {
  .t0--cover-mockups {
    height: 64.844vw; /* (498 / 768)px */
    margin: 0;
  }

  .t0--content {
    border-radius: 12px;
    width: auto;
    left: 3px;
    padding-left: 64px;
    padding-right: 64px;
    right: 3px;
    transform: translateX(0);
  }
}

@media screen and (width < 732px) {
  h1 .t0--chapter-number {
    margin: 0;
  }

  .t0--content {
    padding-left: 36px;
    padding-right: 36px;
  }
}

@media screen and (width < 676px) {
  .t0--content {
    padding: 0 18px 36px;
  }
}

@media screen and (width < 512px) {
  .t0--\/ h1 .t0--heading {
    font-size: 3rem;
  }

  .t0--heading-tagline {
    font-size: 0.944rem;
  }

  .t0--heading-tagline > em {
    font-size: 1.055rem;
  }
}

/* -------------------------------------------------------------------------- */

.t0--divvy {
  position: relative;

  & > *:first-child {
    padding-right: 9px;
    width: 50%;
  }

  & > *:last-child {
    left: 50%;
    padding-left: 9px;
    position: absolute;
    top: 0;
    width: 50%;

    & > *:first-child {
      margin-top: 0;
    }
  }
}

@media screen and (width < 640px) {
  .t0--divvy {
    position: relative;

    & > *:first-child {
      padding-left: 0;
      width: auto;
    }

    & > *:last-child {
      left: auto;
      padding-left: 0;
      position: static;
      top: auto;
      width: auto;

      & > *:first-child {
        margin-top: initial;
      }
    }
  }
}

/* -------------------------------------------------------------------------- */

/* Provides a transparent click target under popups like `#t0--menu` to
   capture click events and dismiss the corresponding popup. */

#t0--glass {
  bottom: 0;
  display: none;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

#t0--menu {
  backdrop-filter: blur(2px);
  background-color: rgba(0, 17, 34, 0.7);
  border: solid 1px #000;
  border-right: 0;
  border-radius: 12px;
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  box-shadow: -2px 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px rgba(85, 102, 119, 0.6);
  color: #fff;
  height: fit-content;
  left: 50%;
  margin: 0;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  position: fixed;
  text-shadow: rgba(0, 17, 34, 0.7) 0 -1px;
  transform: translateX(-528px);
  top: 24px;
  width: 257px;
  z-index: 5;
}

/* Inner container provides flex-box layout for the menu contents. */

.t0--menu-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100vh;
}

/* Provides a scrolling area for a subsection of the menu. */

.t0--menu-viewport {
  box-shadow: 0 1px rgba(68, 85, 102, 0.3), inset 0 -1px rgba(0, 17, 34, 0.4);
  flex-grow: 1;
  flex-shrink: 1;
  height: max-content;
  overflow: auto;
}

.t0--menu-heading {
  font-family: var(--ff-display-heading);
  font-size: 1rem;
  margin: 18px 18px 12px;
}

.t0--menu-item {
  margin: 12px 18px 12px 30px;
  padding: 0;
}

#t0--menu a {
  display: inline-block;
  width: 100%;
}

#t0--menu a:link,
#t0--menu a:visited {
  border-bottom: 0;
  color: #fff;
  line-height: 1;
  text-decoration: none;
}

@media screen and (hover: hover) {
  #t0--menu a:hover {
    color: #f90;

    &::after {
      content: none;
    }
  }
}

#t0--menu a:active {
  color: #f60;
}

/* ---------------------------------- */

/* Highlights the menu item corresponding to the current page. */

/* Makes an exception for the menu item corresponding to the current page. */

#t0--menu-item-\/ {
  margin: 0 0 6px;
  padding: 12px 12px;
  box-shadow: 0 1px rgba(68, 85, 102, 0.3), inset 0 -1px rgba(0, 17, 34, 0.4);

  a[href="/"] {
    background: center / 100% no-repeat url("/img/combination-mark.svg");
    display: block;
    margin: 0 auto;
    width: 228px;
    height: 76px;
  }
}

@media screen and (hover: hover) {
  #t0--menu-item-\/ a[href="/"]:hover {
    background-image: url("/img/combination-mark-selected.svg");
  }
}

.t0--\/ #t0--menu-item-\/ a[href="/"] {
  background-image: url("/img/combination-mark-selected.svg");
}

.t0--\/core\/srd\/01-how-to-play #t0--menu-item--\/core\/srd\/01-how-to-play,
.t0--\/core\/srd\/02-characters #t0--menu-item--\/core\/srd\/02-characters,
.t0--\/core\/srd\/03-constraints #t0--menu-item--\/core\/srd\/03-constraints,
.t0--\/core\/srd\/04-competence #t0--menu-item--\/core\/srd\/04-competence,
.t0--\/core\/srd\/05-exceptions #t0--menu-item--\/core\/srd\/05-exceptions,
.t0--\/core\/srd\/06-edge #t0--menu-item--\/core\/srd\/06-edge,
.t0--\/core\/srd\/07-tests #t0--menu-item--\/core\/srd\/07-tests,
.t0--\/core\/srd\/08-threats #t0--menu-item--\/core\/srd\/08-threats,
.t0--\/core\/srd\/09-supernature #t0--menu-item--\/core\/srd\/09-supernature,
.t0--\/core\/srd\/10-materiel #t0--menu-item--\/core\/srd\/10-materiel,
.t0--\/resources\/character-sheets #t0--menu-item--\/resources\/character-sheets {
  > a {
    color: #f90;
  }
}

.t0--\/core\/srd #t0--menu a[href="/core/srd"]:link {
  color: #f90;
}

/* ---------------------------------- */

/* Styles SRD chapter menu items separately. */

.t0--menu-list {
  padding-left: 20px;

  &.t0--chapter-list {
    .t0--menu-item {
      font-family: var(--ff-display-title);
      font-size: 1.666rem;
      line-height: 1;
    }

    .t0--menu-item::before {
      font-size: 1rem;
    }
  }
}

/* Displays the copyright in the menu. */

.t0--copyleft {
  color: #ccc;
  font-size: 0.666rem;
  font-weight: var(--fw-light);
  letter-spacing: 0.08em;
  line-height: 1rem;
  margin: 18px;

  a[href="/core/srd"] {
    display: inline !important;
  }
}

/* ---------------------------------- */

/* When the viewport is too narrow to display the menu and the content at full
 * size side-by-side, hide the menu behind a toggle button and move the home
 * page link out of the menu and into a space of it’s own above the content.
 */

#t0--menu-toggle {
  backdrop-filter: blur(6px);
  background-color: rgba(102, 102, 102, 0.9);
  border: solid 1px #333;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px rgba(153, 153, 153, 0.2);
  cursor: pointer;
  display: none;
  height: 32px;
  left: 12px;
  position: fixed;
  top: 12px;
  width: 32px;
  z-index: 40;

  &::after {
    content: none;
  }
}

.t0--\/ #t0--menu-toggle {
  background-color: rgba(255, 128, 0, 0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 0, 0.2);
}

#t0--mobile-home {
  background: linear-gradient(rgba(0, 0, 0, 0.6) 64px, rgba(0, 0, 0, 0));
  display: none;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: auto;
}

#t0--mobile-home a[href="/"] {
  background: right 12px top 2px / 160px no-repeat url("/img/combination-mark.svg");
  border: 0;
  cursor: pointer;
  display: block;
  height: 64px;
  opacity: 0.4;
  pointer-events: all;
  position: absolute;
  right: 0;
  top: 0;
  width: 202px;

  &::after {
    content: none;
  }
}

/* ----------------------------------*/

@media screen and (width <= 1056px) {
  #t0--menu {
    border-top-left-radius: 0;
    left: 0;
    transform: none;
  }
}

@media screen and (width < 1024px) {
  #t0--mobile-home {
    display: block;
  }

  #t0--menu {
    display: none;
  }

  .t0--menu--show #t0--menu {
    background-color: rgba(0, 17, 34, 0.9);
    border: 0;
    border-right: solid 1px #000;
    border-radius: 0;
    bottom: 0;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.3), inset 0 -1px 4px #222;
    display: block;
    height: auto;
    left: 0;
    padding: 0;
    top: 0;
    transform: translateX(0);
    width: 258px;
    z-index: 30;
  }

  .t0--menu--show #t0--menu > *:first-child {
    border-top: solid 1px #000;
  }

  .t0--menu--show #t0--menu-toggle {
    background-color: rgba(102, 102, 102, 0.8);
    border-color: #000;
  }

  .t0--\/.t0--menu--show #t0--menu-toggle {
    background-color: rgba(255, 128, 0, 0.9);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 0, 0.2);
  }

  .t0--menu--show .t0--icon--menu {
    background-image: url("/img/x.svg");
  }

  .t0--menu--show #t0--glass {
    display: block;
  }

  #t0--menu-toggle {
    display: block;
  }

  #t0--menu-item-\/ a[href="/"] {
    background: right 12px top 2px / 160px no-repeat url("/img/combination-mark.svg");
    border: 0;
    cursor: pointer;
    display: block;
    height: 64px;
    left: 50%;
    pointer-events: all;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 202px;
  }

  #t0--menu-item-\/ {
    padding: 56px 0 0;
  }
}

@media screen and (width <= 768px) {}

@media screen and (width < 512px) {
  #t0--menu {
    bottom: 0;
  }
}

/* -------------------------------------------------------------------------- */

.t0--table--container {
  display: block;
  margin: 12px 0 18px;
  overflow-x: auto;
  width: 100%;
}

table.t0--table {
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  min-width: 596px;
  width: 100%;

  &.t0--center {
    margin: 0 auto;
    min-width: auto;
    width: auto
  }

  & > thead {
    background-color: #f6f6f6;

    & > tr > th {
      border: solid 1px #ccc;
      font-weight: var(--fw-semi-bold);
      padding: 8px 8px 3px;
      text-align: left;
      vertical-align: text-top;
      white-space: nowrap;
    }
  }

  & > tbody {
    background-color: #fff;

    & > tr {
      border-bottom: solid 1px #eee;

      & > th {
        background-color: #f6f6f6;
        border: solid 1px #ccc !important;
        text-align: left;
      }

      & > th,
      & > td {
        border-left: solid 1px #eee;
        border-right: solid 1px #eee;
        padding: 8px 8px 3px;
        text-align: left;
        vertical-align: text-top;

        &:first-child {
          border-left-color: #ccc;
        }

        &:last-child {
          border-right-color: #ccc;
        }
      }
    }

    & > tr:last-child {
      border-bottom-color: #ccc;
    }
  }

  & > caption {
    font-weight: var(--fw-semi-bold);
    margin: 0 0 12px;
  }

  .t0--bottom {
    vertical-align: bottom;
  }

  .t0--center {
    text-align: center;
  }

  .t0--right {
    text-align: right;
  }

  .t0--fit {
    min-width: fit-content;
  }

  .t0--let {
    width: 100%;
  }

  .t0--nowrap {
    white-space: nowrap;
  }

  .t0--smaller {
    font-size: 0.75rem;
  }
}

@media screen and (width <= 640px) {
  table.t0--table caption {
    left: calc(50vw - 22px);
    max-width: calc(100vw - 44px);
    position: relative;
    transform: translateX(-50%);
    white-space: nowrap;
    width: fit-content;
  }
}


/* -------------------------------------------------------------------------- */

.t0--mastery-scale--container {
  display: block;
  margin: 12px 0;
  overflow-x: auto;
  width: 100%;
}

.t0--mastery-scale {
  margin: 0;
  min-width: 596px;
  padding-left: 22px;

  .t0--body {
    letter-spacing: -1.66%;
  }
}

/* -------------------------------------------------------------------------- */

.t0--icon {
  background: center / 24px no-repeat;
  display: inline-block;
  height: 24px;
  width: 24px;
}

.t0--icon--menu {
  background-image: url("/img/menu.svg");
}

/* -------------------------------------------------------------------------- */

.t0--aside {
  border-left: dotted 1px #000;
  font-size: 0.666rem;
  font-style: italic;
  margin: 24px 24px 24px 38px;
  padding-left: 16px;
  text-transform: uppercase;
}

@media screen and (width < 640px) {
  .t0--aside {
    margin-left: 16px;
  }
}

.t0--body {
  font-family: var(--ff-sans-serif);
}

.t0--center {
  text-align: center;
}

.t0--chapter-title {
  font-family: var(--ff-display-title);
  font-size: 1.222rem;
  font-weight: var(--fw-regular);
  line-height: 1rem;

  & > .t0--chapter-number {
    font-family: var(--ff-monospace);
    font-size: 1rem;
    font-weight: var(--fw-semi-bold);
  }
}

.t0--section-heading {
  font-family: var(--ff-display-heading);
  font-size: 1rem;
  font-weight: var(--fw-regular);
}

.t0--section-heading--× {
  font-weight: var(--fw-black);
}

.t0--chat {
  font-style: italic;
}

.t0--formula {
  text-align: center;
}

.t0--indented {
  margin-left: 54px;
}

.t0--lowercase {
  text-transform: lowercase;
}

.t0--mono {
  font-family: var(--ff-monospace);
}

.t0--mono-↑↓ {
  font-family: var(--ff-monospace-arrow);
  font-weight: var(--fw-light);
}

.t0--mono-punctuation {
  font-family: var(--ff-sans-serif);
}

.t0--small {
  font-size: 0.833rem;
}

.t0--tagline,
h5 .t0--tagline,
.t0--tagline-detail,
h5 .t0--tagline-detail {
  font-family: var(--ff-sans-serif);
  font-size: 0.722rem;
  font-style: italic;
  font-weight: var(--fw-light);
  text-transform: uppercase;
}

.t0--tagline,
h5 .t0--tagline {
  font-weight: var(--fw-semi-bold);
}

.t0--tagline a:link {
  font-weight: var(--fw-bold);
}

.t0--tag {
  font-size: 0.777rem;
  font-weight: var(--fw-semi-bold);
}

.t0--feed-tag {
  display: inline-block;
  font-style: italic;
  max-width: 100%;

  &::first-letter {
    font-family: var(--ff-monospace);
    font-size: 0.777rem;
    font-style: normal;
    font-weight: var(--fw-semi-bold);
  }
}

.t0--topic {
  font-weight: var(--fw-semi-bold);
}

.t0--var {
  font-style: italic;
}

/* -------------------------------------------------------------------------- */

@media print {
  @page {
    margin: 0.5in;
  }

  html {
    font-size: 12pt;
  }

  h1, h2, h3, h4, h5 {
    break-after: avoid;
    page-break-after: avoid;
  }

  li {
    break-inside: avoid;
    page-break-inside: avoid;

    &.t0--pt  {
      break-inside: auto;
      page-break-inside: auto;
    }
  }

  pre {
    break-inside: avoid;
  }

  a:link,
  a:visited {
    color: inherit;
    font-weight: inherit;
  }

  #t0--\/.t0--content {
    display: none;
  }

  .t0--content {
    backdrop-filter: unset;
    background-color: transparent;
    background-image: none;
    border: 0;
    border-radius: 0;
    bottom: auto;
    box-shadow: none;
    break-after: page;
    display: block;
    height: auto;
    left: auto;
    margin: 3.81966011in 48pt 0;
    padding: 0;
    page-break-after: always;
    position: static;
    right: auto;
    top: auto;
    transform: none;
    width: auto;
  }

  .t0--content::after {
    display: none;
  }

  .t0--divvy {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .t0--table--container {
    overflow-x: visible;
  }

  table.t0--table {
    break-inside: avoid;
    min-width: auto;
    page-break-inside: avoid;
  }

  .t0--mastery-scale--container {
    overflow-x: visible;
  }

  .t0--aside {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  #t0--background {
    display: none;
  }

  #t0--menu {
    display: none;
  }
}
