:root {
    --color-black: #000;
    --color-white: #fff;
    --color-background: #010101;
    --color-scrollbar: #d8d8d8;
    --color-text-primary: black;
    --color-text-faintest: #505050;
    --color-text-faint: #404040;
    --color-text-light: #303030;
    --color-text-soft: #202020;
    --color-text-muted: #696969;
    --color-text-strong: #101010;
    --color-gray-dark: #666;
    --color-gray: #696969;
    --color-gray-medium: #868686;
    --color-gray-light: #bfbfbf;
    --color-border: #505050;
    --color-pattern: black;
    --color-title-block: #4b1414;
    --color-terminal-green: #00cc00;
    --color-gematric-value-blue: #c8d7e9;
    --color-gematric-value-pink: #e1c8e9;
    --color-current: currentColor;
    --color-transparent: transparent;
    --content-width: 680px;
    --font-size: 12px;
    --site-cursor-default: url("/assets/unhashed/desktop/cursors/arrow.cur"), auto;
    --site-cursor-link: url("/assets/unhashed/desktop/cursors/Cursor_15.cur"), pointer;
    --site-cursor-text: url("/assets/unhashed/desktop/cursors/text-selection.png") 10 10, text;
    --site-cursor-unavailable: url("/assets/unhashed/desktop/cursors/Cursor_11.cur"), not-allowed;
}

:where(html, body) {
    cursor: var(--site-cursor-default);
}

:where(input:not([type]), input:is([type="text"], [type="search"], [type="email"], [type="url"], [type="password"], [type="number"]), textarea, [contenteditable="true"]) {
    cursor: var(--site-cursor-text);
}

:where(a[href], button:not(:disabled), summary, label, select, input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"]), [role="button"], [role="link"]) {
    cursor: var(--site-cursor-link);
}

:is(button:disabled, input:disabled, select:disabled, textarea:disabled, [aria-disabled="true"], .btn-disabled) {
    cursor: var(--site-cursor-unavailable);
}

@font-face {
  font-family: "TNR";
  src: url("fonts/tnr-latin.woff") format("woff");
  font-display: block;
  size-adjust: 79%;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-color: var(--color-text-primary) var(--color-scrollbar);
    }
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-track-piece,
*::-webkit-scrollbar-corner {
    background-color: var(--color-scrollbar);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--color-scrollbar);
    background-image: linear-gradient(var(--color-text-faintest), var(--color-text-faintest));
    background-position: center;
    background-repeat: no-repeat;
}

*::-webkit-scrollbar-thumb:hover {
    background-image: linear-gradient(var(--color-text-muted), var(--color-text-muted));
}

html {
    min-width: 280px;
}

body {
    background-color: #d8d8d8;
    color: var(--color-text-primary);
    margin: 0;
    display: grid;
    justify-items: center;
    font-family: "IBM Plex Mono", monospace;
    color: var(--color-text-primary);
}

a {
    text-decoration: none;
    color: var(--color-text-primary);
}

#content {
    position: relative;
    isolation: isolate;
    background-color: white;
    width: min(var(--content-width), calc(100% - 2rem));
    min-width: 0;
    margin: 2rem 0 2rem 0;
    padding: 2rem 1rem 1rem 1rem;
    border: 1px solid var(--color-border);
}

.flight-tracking-grid,
.flight-indicators {
    display: none;
}

.flight-indicators {
    position: absolute;
    inset: 0;
    margin-inline: -84px;
    justify-content: space-between;
    align-items: flex-start;
    color: var(--color-terminal-green);
    pointer-events: none;
}

.flight-indicators::before,
.flight-indicators::after {
    content: "";
    position: absolute;
    inset-block: 0;
    width: 4px;
    color: var(--color-border);
    background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 20px);
}

.flight-indicators::before {
    left: 80px;
}

.flight-indicators::after {
    right: 80px;
}

.flight-indicator {
    position: sticky;
    top: calc(50vh - 14px);
    width: 76px;
    height: 28px;
    font-size: 11px;
    line-height: 28px;
    text-align: center;
    transition: top 180ms cubic-bezier(0.34, 1.3, 0.64, 1);
}

.flight-indicator-speed {
    left: 0;
    padding-right: 12px;
    counter-reset: flight-speed calc(var(--flight-level, 4.5) * 100);
}

.flight-indicator-altitude {
    right: 0;
    padding-left: 12px;
    counter-reset: flight-altitude calc((10 - var(--flight-level, 4.5)) * 1000);
}

.flight-indicator svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
}

.flight-indicator > span {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 12px;
    line-height: 16px;
    text-align: left;
}

.flight-indicator-altitude > span {
    left: 12px;
    right: 0;
    text-align: right;
}

.flight-indicator-speed::after {
    content: counter(flight-speed);
}

.flight-indicator-altitude::after {
    content: counter(flight-altitude);
}

@media (width >= 880px) and (not (pointer: coarse)) {
    .flight-display {
        grid-template-columns: minmax(0, 1fr) var(--content-width) minmax(0, 1fr);
    }

    .flight-display > #content {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
    }

    .flight-tracking-grid {
        display: grid;
        grid-template-rows: repeat(10, minmax(0, 1fr));
        grid-row: 1;
        width: 100%;
        margin-block: 2rem;
    }

    .flight-tracking-left {
        grid-column: 1;
    }

    .flight-tracking-right {
        grid-column: 3;
    }

    .flight-indicators {
        display: flex;
    }
}

.flight-tracking-grid:has(> .flight-tracking-row:hover) ~ #content .flight-indicator {
    position: absolute;
    transform: translateY(-50%);
}

.flight-tracking-left:has(> .flight-tracking-row:hover) ~ #content .flight-indicator-altitude,
.flight-tracking-right:has(> .flight-tracking-row:hover) ~ #content .flight-indicator-speed {
    top: var(--flight-indicator-position);
}

.flight-tracking-left:has(> .flight-tracking-row:hover) ~ #content .flight-indicator-speed,
.flight-tracking-right:has(> .flight-tracking-row:hover) ~ #content .flight-indicator-altitude {
    top: calc(100% - var(--flight-indicator-position));
}

.flight-tracking-grid:has(> .flight-tracking-row:nth-child(1):hover) ~ #content {
    --flight-indicator-position: 5%;
    --flight-level: 9;
}

.flight-tracking-grid:has(> .flight-tracking-row:nth-child(2):hover) ~ #content {
    --flight-indicator-position: 15%;
    --flight-level: 8;
}

.flight-tracking-grid:has(> .flight-tracking-row:nth-child(3):hover) ~ #content {
    --flight-indicator-position: 25%;
    --flight-level: 7;
}

.flight-tracking-grid:has(> .flight-tracking-row:nth-child(4):hover) ~ #content {
    --flight-indicator-position: 35%;
    --flight-level: 6;
}

.flight-tracking-grid:has(> .flight-tracking-row:nth-child(5):hover) ~ #content {
    --flight-indicator-position: 45%;
    --flight-level: 5;
}

.flight-tracking-grid:has(> .flight-tracking-row:nth-child(6):hover) ~ #content {
    --flight-indicator-position: 55%;
    --flight-level: 4;
}

.flight-tracking-grid:has(> .flight-tracking-row:nth-child(7):hover) ~ #content {
    --flight-indicator-position: 65%;
    --flight-level: 3;
}

.flight-tracking-grid:has(> .flight-tracking-row:nth-child(8):hover) ~ #content {
    --flight-indicator-position: 75%;
    --flight-level: 2;
}

.flight-tracking-grid:has(> .flight-tracking-row:nth-child(9):hover) ~ #content {
    --flight-indicator-position: 85%;
    --flight-level: 1;
}

.flight-tracking-grid:has(> .flight-tracking-row:nth-child(10):hover) ~ #content {
    --flight-indicator-position: 95%;
    --flight-level: 0;
}

#products {
    margin-bottom: 1.24rem;
}

p {
    font-size: var(--font-size);
}


#about, #services, #web-directory, #entertainment, #message-board {
    margin-bottom: 1.24rem;
    font-size: var(--font-size);
}

.disclaimer {
    letter-spacing: 0.18rem;
    text-transform: uppercase;
}

#about-us {
    text-align: justify;
}

.templex-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.24rem;
    align-items: center;
    margin-bottom: 2rem;
}

.title-container {
    width: fit-content;
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: "TNR";
    font-weight: normal;
    line-height: 0.6;
}

.title-sequence {
    display: none;
}

.title-up, .title-down {
    display: block;
    font-family: "TNR";
    font-size: 3rem;
}

.title-down {
    margin-left: 16px;
}


.footer-matrix-grid {
    --matrix-line-height: 11px;
    --matrix-height: calc(var(--matrix-line-height) * 6);
    --matrix-travel-rows: 6;
    display: grid;
    grid-template-columns: repeat(64, 10px);
    align-items: start;
    width: 100%;
    height: var(--matrix-height);
    margin-top: 12px;
    overflow-x: clip;
    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
    font-variant-ligatures: none;
    line-height: var(--matrix-line-height);
    pointer-events: none;
    user-select: none;
}

.footer-matrix-column {
    --matrix-duration: 11.4s;
    --matrix-delay: -3.3s;
    --matrix-group-delay: 0s;
    --matrix-segment-delay: 0s;
    --matrix-trail-length: 7;
    --matrix-static-offset: 2;
    --matrix-symbols: "ﾊ\A 8\A ﾃ\A 1\A ﾐ\A ﾘ\A 0\A ﾅ";
    position: relative;
    display: block;
    min-width: 0;
    height: calc(var(--matrix-line-height) * var(--matrix-trail-length));
    animation: footer-matrix-fall var(--matrix-duration) steps(calc(var(--matrix-trail-length) + var(--matrix-travel-rows)), end) infinite;
    animation-delay: calc(var(--matrix-delay) + var(--matrix-segment-delay) + var(--matrix-group-delay));
}

.footer-matrix-column::before,
.footer-matrix-column::after {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
    white-space: pre;
    transform: scaleX(-1);
}

.footer-matrix-column::before {
    content: var(--matrix-symbols);
    top: 0;
    height: calc(100% - var(--matrix-line-height));
    color: var(--color-text-muted);
    mask-image: linear-gradient(to bottom, transparent, #000);
    animation: footer-matrix-code-cycle calc(var(--matrix-duration) * 0.55) steps(1, end) infinite;
    animation-delay: calc(var(--matrix-delay) + var(--matrix-segment-delay) + var(--matrix-group-delay));
}

.footer-matrix-column::after {
    content: "ﾈ";
    bottom: 0;
    height: var(--matrix-line-height);
    color: var(--color-text-strong);
    font-weight: 700;
    animation: footer-matrix-head-cycle calc(var(--matrix-duration) * 0.33) steps(1, end) infinite;
    animation-delay: calc(var(--matrix-delay) + var(--matrix-segment-delay) + var(--matrix-group-delay));
}

.footer-matrix-column:nth-child(8n + 2) {
    --matrix-duration: 8.1s;
    --matrix-delay: -6.9s;
    --matrix-trail-length: 4;
    --matrix-static-offset: 1;
    --matrix-symbols: "ﾖ\A 1\A ﾒ\A 7\A ｳ\A 0\A ｼ\A ﾂ";
}

.footer-matrix-column:nth-child(8n + 3) {
    --matrix-duration: 13.8s;
    --matrix-delay: -2.1s;
    --matrix-trail-length: 8;
    --matrix-static-offset: 4;
    --matrix-symbols: "0\A ﾅ\A ﾂ\A 9\A ﾈ\A ﾑ\A 1\A ｴ";
}

.footer-matrix-column:nth-child(8n + 4) {
    --matrix-duration: 9.3s;
    --matrix-delay: -5.7s;
    --matrix-trail-length: 5;
    --matrix-static-offset: 0;
    --matrix-symbols: "ﾘ\A 7\A ｳ\A ﾒ\A 0\A ﾖ\A 4\A ﾊ";
}

.footer-matrix-column:nth-child(8n + 5) {
    --matrix-duration: 6.9s;
    --matrix-delay: -1.2s;
    --matrix-trail-length: 3;
    --matrix-static-offset: 1;
}

.footer-matrix-column:nth-child(8n + 6) {
    --matrix-duration: 12.6s;
    --matrix-delay: -10.2s;
    --matrix-trail-length: 6;
    --matrix-static-offset: 3;
    --matrix-symbols: "ﾖ\A 1\A ﾒ\A 7\A ｳ\A 0\A ｼ\A ﾂ";
}

.footer-matrix-column:nth-child(8n + 7) {
    --matrix-duration: 15.3s;
    --matrix-delay: -7.8s;
    --matrix-trail-length: 9;
    --matrix-static-offset: 5;
    --matrix-symbols: "0\A ﾅ\A ﾂ\A 9\A ﾈ\A ﾑ\A 1\A ｴ";
}

.footer-matrix-column:nth-child(8n) {
    --matrix-duration: 10.2s;
    --matrix-delay: -4.5s;
    --matrix-trail-length: 4;
    --matrix-static-offset: 2;
    --matrix-symbols: "ﾘ\A 7\A ｳ\A ﾒ\A 0\A ﾖ\A 4\A ﾊ";
}

.footer-matrix-column:nth-child(n + 9):nth-child(-n + 16),
.footer-matrix-column:nth-child(n + 25):nth-child(-n + 32),
.footer-matrix-column:nth-child(n + 41):nth-child(-n + 48),
.footer-matrix-column:nth-child(n + 57) {
    --matrix-segment-delay: -4.11s;
}

.footer-matrix-column:nth-child(n + 17):nth-child(-n + 32) {
    --matrix-group-delay: -2.19s;
}

.footer-matrix-column:nth-child(n + 33):nth-child(-n + 48) {
    --matrix-group-delay: -5.73s;
}

.footer-matrix-column:nth-child(n + 49) {
    --matrix-group-delay: -7.41s;
}

@keyframes footer-matrix-fall {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(calc(var(--matrix-line-height) * var(--matrix-travel-rows)));
    }
}

@keyframes footer-matrix-code-cycle {
    0%, 100% { content: var(--matrix-symbols); }
    33% { content: "ﾑ\A 0\A ﾈ\A ﾃ\A 9\A ｼ\A 1\A ﾘ"; }
    66% { content: "7\A ﾒ\A ﾊ\A 1\A ﾂ\A ｳ\A 0\A ﾖ"; }
}

@keyframes footer-matrix-head-cycle {
    0%, 100% { content: "ﾈ"; }
    10% { content: "7"; }
    20% { content: "ﾘ"; }
    30% { content: "1"; }
    40% { content: "ﾑ"; }
    50% { content: "0"; }
    60% { content: "ﾖ"; }
    70% { content: "ﾂ"; }
    80% { content: "8"; }
    90% { content: "ﾅ"; }
}

@media (prefers-reduced-motion: reduce) {
    .footer-matrix-column,
    .footer-matrix-column::before,
    .footer-matrix-column::after {
        animation: none;
    }

    .footer-matrix-column {
        transform: translateY(calc(var(--matrix-line-height) * var(--matrix-static-offset)));
    }

    .flight-indicator {
        transition: none;
    }
}

.title-block {
    position: absolute;
    top: -50px;
    right: 7px;
    width: 270px;
    height: 112px;
    z-index: -1;
    background-color: var(--color-title-block);
}

.products-container {
    width: 100%;
    height: fit-content;
}

.block-2-container {
    width: 100%;
    border-bottom: 1px solid var(--color-gray-light);
    height: 343px;
}

.flex {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.5ch;
}

.products-header {
    width: 100%;
    height: fit-content;
}

.main-separator {
    height: 16px;
    margin-bottom: 6px;
    background: radial-gradient(var(--color-pattern) .2px, var(--color-transparent) 1px) 0 0 / 3px 3px, var(--color-transparent)
}

.service-url {
    text-decoration: none;
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-text-muted);
}

.service-url:hover {
    color: blue;
    border-bottom: 1px solid blue;
}

.flex-row {
    display: flex;
}

.fb {
    flex: 0;
}

.title, .title-end {
    position: relative;
    z-index: 1;
    width: fit-content;
    height: 100%;
    padding: 4px 0px;
    line-height: 1.25rem;
    font-size: 0.9rem;
    letter-spacing: 0.12rem;
    color: var(--color-terminal-green);
    font-weight: bold;
}

.w-100 {
    width: 100px;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    font-size: var(--font-size);
    width: 100%;
}

.service-availability-table {
    display: none;
    margin-top: 1rem;
}

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

.align-end {
    text-align: end;
}

.align-start {
    text-align: start;
}

table th {
    font-family: "IBM Plex Mono", monospace;
    padding: 2px 6px 2px 6px;
    background: #eaeaea;
    border: 1px solid #cacaca;
}

table td {
    text-overflow: ellipsis;
    height: 1.85rem;
    padding: 2px 6px 2px 6px;
    line-height: 1.4rem;
    overflow: hidden;
    border: 1px solid #cacaca;
}

.gematric-value {
    flex: 0 0 160px;
    border: 1px solid var(--color-text-soft);
    padding: 1px;
    font-size: 12px;
    text-align: center;
    align-items: center;
    align-content: center;
    letter-spacing: 0.08rem;
    user-select: none;
    cursor: var(--site-cursor-link);
    text-decoration: none;
    display: block;
    color: var(--color-text-primary);
    box-shadow: 2px 2px #ddd;
}

.gematric-value:hover {
    background-color: var(--color-white);
    color: var(--color-white);
    font-weight: bold;
    background-color: var(--color-black);
}

.descr, .expand {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 4px 4px 4px 0;
    font-size: 12px;
    white-space: nowrap;
    align-self: end;
}

.expand {
    font-size: 1rem;
}


.descr::before, .expand::before {
    content: "";
    flex: 1 1 auto;
    min-width: 1ch;
    height: 1em;
    margin-right: 0.5ch;
    background-image: radial-gradient(circle, var(--color-current) 0 1px, var(--color-transparent) 1.2px);
    background-repeat: repeat-x;
    background-position: left 70%;
    background-size: 0.5em 0.5em;
}

.gematric-value-blue {
    background-color: var(--color-gematric-value-blue);
}

.gematric-value-pink {
    background-color: var(--color-gematric-value-pink);
}

.flex-end {
    align-items: end;
    align-content: end;
    text-align: end;
    font-size: 8px;
    padding: 2px;
}


.legend {
    width: fit-content;
    margin-left: auto;
    margin-top: 8px;
}

#books, #hyperstition, #index, #xiuxiu, #archive {
    font-size: 12px;
}

.text-small {
    font-size: 10px;
    color: var(--color-gray);
    text-align: justify;
    display: block;
}

.text {
    font-size: var(--font-size);
    text-align: justify;
    display: block;
}

.mt-1 {
    margin-top: 1rem;
}

.buttons {
    display: flex;
    justify-content: end;
    margin-top: 8px;
    padding: 2px;
}

.a-link.maid {
    background: #ff415140;
}

.a-link.ccru {
    background: #10403417;
}

.a-link.lainchan {
    background: #7fdd5740;
}

.a-link.ciphers {
    background: #5fdd5f40;
}

.a-link.hyperstition {
    background: #fc9f0040;
}

#templex-footer {
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.gen, .footnotes {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 0.25rem;
    font-size: 12px;
    color: var(--color-text-muted);
}

#read {
    margin-top: 16px;
    padding-left: 4px;
}

.book {
    font-size: var(--font-size);
    letter-spacing: 1px;
    display: flex;
    width: 100%;
    margin-bottom: 1rem;
}

.book-data {
    flex: 1;
}

.book-desc {
    font-size: 10px;
}

.book-links {
    justify-self: end;
}

.a-link {
    margin-top: 4px;
    text-decoration: none;
    color: var(--color-text-primary);
    padding: 4px 8px;
    border: 1px solid var(--color-text-soft);
    text-align: center;
    box-shadow: 2px 2px #ddd;
}

.a-link:hover {
    color: var(--color-white);
    border: 1px solid var(--color-text-primary);
    background: var(--color-black);
}

.header-navigation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.header-navigation > div {
    display: grid;
}

.header-navigation .a-link {
    display: block;
    width: 100%;
    margin-top: 0;
}


.use-separator {
    border-bottom: 1px dashed var(--color-text-soft);
    margin-bottom: 1rem;
    padding-bottom: 10px;
}


.directory-links, .grid-row {
    display: grid;
}

.grid-row {
    padding: 2px;
    gap: 12px;
    grid-template-columns: auto auto;
}

.entertainment-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0 2px 12px;
    border: 1px solid var(--color-border);
    background: repeating-linear-gradient(135deg, var(--color-border) 0 6px, #071a0d 6px 12px);
    opacity: 0.8;
    padding: 10px;
}

.entertainment-warning strong {
    padding: 5px 14px;
    text-align: center;
    border-inline: 1px solid var(--color-border);
    color: var(--color-terminal-green);
    background-color: var(--color-background);
    letter-spacing: 0.12em;
    font-size: 10px;
}

#entertainment .entertainment-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    aspect-ratio: 4 / 3;
    background-position: center;
    background-size: cover;
    color: var(--color-terminal-green);
    font-size: 1.25em;
    font-weight: bold;
}

#entertainment .entertainment-card.tsukihime {
    background-image: url("tsukihime_preview.jpg");
}

#entertainment .entertainment-card.oni {
    background-image: url("oni_preview.jpg");
}

#entertainment .entertainment-card.homm2 {
    background-image: url("homm_preview.jpg");
}

#entertainment .entertainment-card.dune2000 {
    background-image: url("dune2000_preview.jpg");
}

#entertainment .entertainment-card.generals {
    background-image: url("generals_preview.jpg");
}

#entertainment .entertainment-card span {
    padding: 0.4em 0.8em;
    border: 1px solid var(--color-border);
    background-color: rgb(0 0 0 / 85%);
}

#entertainment .entertainment-card:is(:hover, :focus-visible) span {
    color: var(--color-background);
    background-color: var(--color-terminal-green);
}


#gematria-calculator {
    margin-top: 2rem;
    font-size: var(--font-size);
}

.gematria-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: stretch;
}

.gematria-form-row input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--color-border);
    border-radius: 0;
    padding: 4px 8px;
    color: var(--color-text-primary);
    background-color: #071a0d;
    font: inherit;
}

.gematria-form-row .a-link {
    display: block;
    width: auto;
    margin-top: 0;
    cursor: var(--site-cursor-link);
    font: inherit;
}

.gematria-help {
    margin-top: 4px;
    color: var(--color-text-muted);
}

.gematria-expand-all {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    cursor: var(--site-cursor-link);
}

.gematria-expand-all input {
    appearance: none;
    display: grid;
    place-items: center;
    flex: none;
    width: 14px;
    height: 14px;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background-color: var(--color-background);
}

.gematria-expand-all:hover input,
.gematria-expand-all input:checked {
    border-color: var(--color-terminal-green);
}

.gematria-expand-all input:checked::before {
    content: "";
    width: 7px;
    height: 4px;
    border: solid var(--color-terminal-green);
    border-width: 0 0 2px 2px;
    transform: translateY(-1px) rotate(-45deg);
}

.gematria-error {
    margin-top: 8px;
    border-left: 4px solid var(--color-terminal-green);
    padding-left: 8px;
    color: var(--color-terminal-green);
}

.gematria-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    margin-top: 1rem;
}

.gematria-result {
    min-width: 0;
    border: 1px solid transparent;
    background-color: #010101;
}

.gematria-result[open] {
    border-color: var(--color-border);
}

.gematria-result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    list-style: none;
    cursor: var(--site-cursor-link);
    text-align: left;
}

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

.gematria-result-summary::before {
    content: "+";
    flex: none;
}

.gematria-result[open] > .gematria-result-summary::before {
    content: "−";
}

.gematria-cipher-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.gematria-result-summary > strong {
    flex: none;
    white-space: nowrap;
}

.gematria-result-explanation {
    border-top: 1px solid var(--color-border);
    padding: 8px;
    text-align: justify;
}

.gematria-character-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.gematria-character {
    display: flex;
    min-width: 2.5rem;
    flex-direction: column;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--color-border);
    text-align: center;
}

.gematria-character-label {
    color: var(--color-terminal-green);
    font-weight: 700;
}

.gematria-method,
.gematria-equation {
    margin-top: 8px;
}

.gematria-equation {
    overflow-wrap: anywhere;
}

.gematria-total {
    margin-top: 8px;
    color: var(--color-terminal-green);
    font-size: 2em;
    font-weight: 700;
    text-align: center;
}

#numogram {
    margin-top: 2rem;
    font-size: var(--font-size);
}

.numogram-form {
    margin-top: 12px;
}

.numogram-actions,
.numogram-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.numogram-actions {
    margin-bottom: 12px;
}

.numogram-actions .a-link,
.numogram-option {
    margin-top: 0;
    font: inherit;
    cursor: var(--site-cursor-link);
}

.numogram-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.numogram-option input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.numogram-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
    gap: 16px;
}

.numogram-figure {
    position: relative;
    width: 100%;
    max-width: 360px;
    min-width: 0;
    justify-self: center;
}

.numogram-svg {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.numogram-svg text {
    font-family: inherit;
    text-anchor: middle;
    dominant-baseline: central;
}

.numogram-zone-ring {
    fill: var(--color-background);
    stroke: var(--color-text-primary);
    stroke-width: 3;
}

.numogram-zone-mark,
.numogram-zone-value {
    fill: var(--color-text-primary);
}

.numogram-zone-value {
    font-size: 4.3333em;
}

.numogram-gate-ring {
    fill: var(--color-background);
    stroke: var(--color-text-muted);
    stroke-width: 2.6;
}

.numogram-gate-value {
    fill: var(--color-text-muted);
    font-size: 2.4444em;
}

.numogram-channel-line {
    fill: none;
    stroke: var(--color-text-muted);
    stroke-linecap: round;
    stroke-width: 3.2;
}

.numogram-current-head {
    fill: var(--color-terminal-green);
}

.numogram-current-gradient-start,
.numogram-current-gradient-end {
    stop-color: var(--color-terminal-green);
}

.numogram-current-gradient-start {
    stop-opacity: 0;
}

.numogram-channel-head {
    fill: var(--color-text-muted);
}

.numogram-zone-selector,
.numogram-gate-selector {
    position: absolute;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    cursor: var(--site-cursor-link);
}

.numogram-zone-selector {
    left: calc(var(--numogram-zone-x) * 100% / 883);
    top: calc(var(--numogram-zone-y) * 100% / 1568);
    width: calc(12800% / 883);
}

.numogram-gate-selector {
    left: calc(var(--numogram-gate-x) * 100% / 883);
    top: calc(var(--numogram-gate-y) * 100% / 1568);
    width: max(24px, calc(5600% / 883));
}

.numogram-gate-selector:hover {
    outline: 1px solid var(--color-terminal-green);
    outline-offset: 2px;
}

.numogram-zone-selector input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: var(--site-cursor-link);
}

.numogram-zone-selector:has(input:checked) {
    outline: 1px solid var(--color-terminal-green);
    outline-offset: 2px;
}

.numogram-zone-selector[data-zone="0"] {
    --numogram-zone-x: 441;
    --numogram-zone-y: 1464;
}

.numogram-zone-selector[data-zone="1"] {
    --numogram-zone-x: 441;
    --numogram-zone-y: 950;
}

.numogram-zone-selector[data-zone="2"] {
    --numogram-zone-x: 692;
    --numogram-zone-y: 465;
}

.numogram-zone-selector[data-zone="3"] {
    --numogram-zone-x: 362;
    --numogram-zone-y: 266;
}

.numogram-zone-selector[data-zone="4"] {
    --numogram-zone-x: 99;
    --numogram-zone-y: 688;
}

.numogram-zone-selector[data-zone="5"] {
    --numogram-zone-x: 195;
    --numogram-zone-y: 569;
}

.numogram-zone-selector[data-zone="6"] {
    --numogram-zone-x: 513;
    --numogram-zone-y: 266;
}

.numogram-zone-selector[data-zone="7"] {
    --numogram-zone-x: 783;
    --numogram-zone-y: 586;
}

.numogram-zone-selector[data-zone="8"] {
    --numogram-zone-x: 441;
    --numogram-zone-y: 1103;
}

.numogram-zone-selector[data-zone="9"] {
    --numogram-zone-x: 441;
    --numogram-zone-y: 1309;
}

.numogram-gate-selector[data-gate="1"] {
    --numogram-gate-x: 482;
    --numogram-gate-y: 814;
}

.numogram-gate-selector[data-gate="3"] {
    --numogram-gate-x: 331;
    --numogram-gate-y: 383;
}

.numogram-gate-selector[data-gate="6"] {
    --numogram-gate-x: 440;
    --numogram-gate-y: 170;
}

.numogram-gate-selector[data-gate="10"] {
    --numogram-gate-x: 305;
    --numogram-gate-y: 940;
}

.numogram-gate-selector[data-gate="15"] {
    --numogram-gate-x: 525;
    --numogram-gate-y: 68;
}

.numogram-gate-selector[data-gate="21"] {
    --numogram-gate-x: 409;
    --numogram-gate-y: 366;
}

.numogram-gate-selector[data-gate="28"] {
    --numogram-gate-x: 562;
    --numogram-gate-y: 870;
}

.numogram-gate-selector[data-gate="36"] {
    --numogram-gate-x: 527;
    --numogram-gate-y: 1210;
}

.numogram-gate-selector[data-gate="45"] {
    --numogram-gate-x: 342;
    --numogram-gate-y: 1272;
}

.numogram-side {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
}

.numogram-control-group {
    border: 0;
    min-width: 0;
}

.numogram-control-group legend {
    font-weight: 700;
}

.numogram-options {
    margin-top: 6px;
}

.numogram-reading {
    display: none;
}

.numogram-reading-title {
    margin-bottom: 8px;
    font-size: inherit;
}

.numogram-facts {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 4px 8px;
}

.numogram-facts dt,
.numogram-note,
.numogram-source {
    color: var(--color-text-muted);
}

.numogram-facts dd {
    text-align: right;
    overflow-wrap: anywhere;
}

.numogram-reading .numogram-note,
.numogram-reference table,
.numogram-source {
    margin-top: 8px;
}

.numogram-reference {
    border-top: 1px dashed var(--color-border);
    padding-top: 8px;
}

.numogram-explanation {
    margin-top: 16px;
    font-size: var(--font-size);
}

.numogram-explanation > h4 {
    margin-top: 16px;
}

.numogram-explanation > p {
    text-align: justify;
}

.numogram-explanation > p + p,
.numogram-explanation > table {
    margin-top: 8px;
}

#numogram:has(.numogram-zone-selector input:checked) .numogram-overview {
    display: none;
}

#numogram:has(#numogram-zone-0:checked) .numogram-reading[data-zone="0"],
#numogram:has(#numogram-zone-1:checked) .numogram-reading[data-zone="1"],
#numogram:has(#numogram-zone-2:checked) .numogram-reading[data-zone="2"],
#numogram:has(#numogram-zone-3:checked) .numogram-reading[data-zone="3"],
#numogram:has(#numogram-zone-4:checked) .numogram-reading[data-zone="4"],
#numogram:has(#numogram-zone-5:checked) .numogram-reading[data-zone="5"],
#numogram:has(#numogram-zone-6:checked) .numogram-reading[data-zone="6"],
#numogram:has(#numogram-zone-7:checked) .numogram-reading[data-zone="7"],
#numogram:has(#numogram-zone-8:checked) .numogram-reading[data-zone="8"],
#numogram:has(#numogram-zone-9:checked) .numogram-reading[data-zone="9"] {
    display: block;
}

#numogram:has(.numogram-zone-selector input:checked) .numogram-svg :is(.numogram-zone, .numogram-current, .numogram-channel, .numogram-gate) {
    opacity: 0.32;
}

#numogram:has(#numogram-zone-0:checked) :is(
    .numogram-zone[data-zone="0"],
    .numogram-zone[data-zone="9"],
    .numogram-current[data-syzygy="0::9"]),
#numogram:has(#numogram-zone-1:checked) :is(
    .numogram-zone[data-zone="1"],
    .numogram-zone[data-zone="8"],
    .numogram-zone[data-zone="7"],
    .numogram-current[data-syzygy="1::8"],
    .numogram-channel[data-from="1"],
    .numogram-gate[data-zone="1"]),
#numogram:has(#numogram-zone-2:checked) :is(
    .numogram-zone[data-zone="2"],
    .numogram-zone[data-zone="7"],
    .numogram-zone[data-zone="5"],
    .numogram-zone[data-zone="3"],
    .numogram-current[data-syzygy="2::7"],
    .numogram-channel[data-from="2"],
    .numogram-gate[data-zone="2"]),
#numogram:has(#numogram-zone-3:checked) :is(
    .numogram-zone[data-zone="3"],
    .numogram-zone[data-zone="6"],
    .numogram-current[data-syzygy="3::6"],
    .numogram-channel[data-from="3"],
    .numogram-gate[data-zone="3"]),
#numogram:has(#numogram-zone-4:checked) :is(
    .numogram-zone[data-zone="4"],
    .numogram-zone[data-zone="5"],
    .numogram-zone[data-zone="1"],
    .numogram-current[data-syzygy="4::5"],
    .numogram-channel[data-from="4"],
    .numogram-gate[data-zone="4"]),
#numogram:has(#numogram-zone-5:checked) :is(
    .numogram-zone[data-zone="5"],
    .numogram-zone[data-zone="4"],
    .numogram-zone[data-zone="1"],
    .numogram-zone[data-zone="6"],
    .numogram-current[data-syzygy="4::5"],
    .numogram-channel[data-from="5"],
    .numogram-gate[data-zone="5"]),
#numogram:has(#numogram-zone-6:checked) :is(
    .numogram-zone[data-zone="6"],
    .numogram-zone[data-zone="3"],
    .numogram-current[data-syzygy="3::6"],
    .numogram-channel[data-from="6"],
    .numogram-gate[data-zone="6"]),
#numogram:has(#numogram-zone-7:checked) :is(
    .numogram-zone[data-zone="7"],
    .numogram-zone[data-zone="2"],
    .numogram-zone[data-zone="5"],
    .numogram-zone[data-zone="1"],
    .numogram-current[data-syzygy="2::7"],
    .numogram-channel[data-from="7"],
    .numogram-gate[data-zone="7"]),
#numogram:has(#numogram-zone-8:checked) :is(
    .numogram-zone[data-zone="8"],
    .numogram-zone[data-zone="1"],
    .numogram-zone[data-zone="7"],
    .numogram-zone[data-zone="9"],
    .numogram-current[data-syzygy="1::8"],
    .numogram-channel[data-from="8"],
    .numogram-gate[data-zone="8"]),
#numogram:has(#numogram-zone-9:checked) :is(
    .numogram-zone[data-zone="9"],
    .numogram-zone[data-zone="0"],
    .numogram-current[data-syzygy="0::9"],
    .numogram-channel[data-from="9"],
    .numogram-gate[data-zone="9"]) {
    opacity: 1;
}

#numogram:has(#numogram-region-torque:checked) .numogram-svg [data-sys]:not([data-sys="torque"]),
#numogram:has(#numogram-region-warp:checked) .numogram-svg [data-sys]:not([data-sys="warp"]),
#numogram:has(#numogram-region-plex:checked) .numogram-svg [data-sys]:not([data-sys="plex"]) {
    opacity: 0.32;
}

#numogram:has(#numogram-layer-zones:not(:checked)) :is(.numogram-layer-zones, .numogram-zone-selector),
#numogram:has(#numogram-layer-currents:not(:checked)) .numogram-layer-currents,
#numogram:has(#numogram-layer-gates:not(:checked)) :is(.numogram-layer-gates, .numogram-layer-channels, .numogram-gate-selector),
#numogram:has(#numogram-layer-syzygies:not(:checked)) .numogram-zone-mark {
    display: none;
}

@media screen and (width < 600px) {
    .numogram-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

#misc div {
    margin-top: 4px;
}

.book span {
    margin-right: 8px;
}

.debug-info img {
    width: 16px;
    height: 16px;
}

#next, #previous {
    font-size: var(--font-size);
    padding: 2px 24px;
    margin-left: 4px;
    align-self: center;
    border: 1px solid var(--color-text-muted);
    background-color: var(--color-white);
    color: var(--color-text-muted);
    font-family: "IBM Plex Mono", monospace;
    cursor: var(--site-cursor-link);
    box-shadow: 2px 2px #ddd;
}

#next:hover, #previous:hover {
    border: 1px solid var(--color-text-primary);
    color: var(--color-white);
    background-color: var(--color-black);
}

#next:focus-visible, #previous:focus-visible {
    outline: 2px solid var(--color-text-primary);
    outline-offset: 2px;
    border: 1px solid var(--color-text-primary);
    color: var(--color-text-primary);
}

#next {
    margin-left: 8px;
}

#next.btn-disabled, #previous.btn-disabled {
    border: 1px dashed var(--color-text-muted) !important;
    cursor: var(--site-cursor-unavailable) !important;
}

#next.btn-disabled:hover, #previous.btn-disabled:hover {
    background: transparent;
    color: var(--color-gray);
}

.post-card {
    display: flex;
    width: 100%;
    font-size: var(--font-size);
    text-decoration: none;
    color: var(--color-text-primary);
    margin-bottom: 2px;
    border-left: 5px solid var(--color-text-faint);
    padding: 6px;
}

.post-card:hover {
    border-left: 5px solid var(--color-text-primary);
}

.post-title {
    flex: 1;
}

.post-date {
    align-self: center;
    justify-self: end;
}

@media screen and (max-width: 619px) {
    .templex-header {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 525px) {
    .header-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .templex-header {
        justify-items: center;
    }
}

@media screen and (max-width: 450px) {
    #content {
        padding: 1rem;
        margin: 0;
        width: 100%;
        border: none;
    }
}

@media screen and (width < 430px) {
    .grid-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
}

@media screen and (width < 425px) {
    .service-availability-column {
        display: none;
    }

    .service-availability-table {
        display: table;
    }
}

:root:where(.templex-green-theme) {
    color-scheme: dark;
    --color-background: #000;
    --color-scrollbar: #06110a;
    --color-text-primary: #8aef9d;
    --color-text-strong: var(--color-terminal-green);
    --color-text-faintest: #28723c;
    --color-text-soft: #2a7742;
    --color-text-muted: #6fa47e;
    --color-gray: #6fa47e;
    --color-gray-dark: var(--color-text-muted);
    --color-border: #2a7742;
    --color-pattern: #2a7742;
    --color-terminal-green: #36ff76;
}

:where(.templex-green-theme) body,
:where(.templex-green-theme) #content {
    background-color: var(--color-background);
}

:where(.templex-green-theme) #main-title {
    color: var(--color-terminal-green);
    text-shadow: 0 0 12px rgb(54 255 118 / 24%);
}

:where(.templex-green-theme) :is(h1, h2, h3, h4, h5, h6),
:where(.templex-green-theme) table th {
    color: var(--color-terminal-green);
}

:where(.templex-green-theme) table th {
    background-color: #071a0d;
}

:where(.templex-green-theme) table th,
:where(.templex-green-theme) table td,
:where(.templex-green-theme) .markdown-output th,
:where(.templex-green-theme) .markdown-output td {
    border-color: #214f2e;
}

:where(.templex-green-theme) .directory-links .a-link,
:where(.templex-green-theme) #next,
:where(.templex-green-theme) #previous,
:where(.templex-green-theme) button {
    color: var(--color-text-primary);
    background-color: #071a0d;
}

:where(.templex-green-theme) .a-link,
:where(.templex-green-theme) .gematric-value,
:where(.templex-green-theme) #next,
:where(.templex-green-theme) #previous,
:where(.templex-green-theme) button {
    box-shadow: 2px 2px #0a3418;
}

:where(.templex-green-theme) .a-link.current,
:where(.templex-green-theme) .gematria-result[open] > .gematria-result-summary,
:where(.templex-green-theme) .numogram-option:has(input:checked) {
    color: var(--color-terminal-green);
    border-color: var(--color-terminal-green);
    background-color: #071a0d;
}

:where(.templex-green-theme) .a-link:hover,
:where(.templex-green-theme) .gematric-value:hover,
:where(.templex-green-theme) #next:not(.btn-disabled):hover,
:where(.templex-green-theme) #previous:not(.btn-disabled):hover,
:where(.templex-green-theme) button:not([aria-disabled="true"]):hover {
    color: var(--color-background);
    border-color: var(--color-terminal-green);
    background: var(--color-terminal-green);
}

:where(.templex-green-theme) a:hover,
:where(.templex-green-theme) .service-url:hover {
    color: var(--color-terminal-green);
    border-bottom-color: var(--color-terminal-green);
}

:where(.templex-green-theme) #next.btn-disabled,
:where(.templex-green-theme) #previous.btn-disabled {
    color: var(--color-text-muted);
    box-shadow: none;
}

:where(.templex-green-theme) a:focus-visible,
:where(.templex-green-theme) button:focus-visible,
:where(.templex-green-theme) #gematria-text:focus-visible,
:where(.templex-green-theme) .gematria-expand-all input:focus-visible,
:where(.templex-green-theme) .gematria-result-summary:focus-visible,
:where(.templex-green-theme) .numogram-option:has(input:focus-visible),
:where(.templex-green-theme) .numogram-zone-selector:has(input:focus-visible),
:where(.templex-green-theme) #next:focus-visible,
:where(.templex-green-theme) #previous:focus-visible {
    outline: 2px solid var(--color-terminal-green);
    outline-offset: 3px;
}

:where(.templex-green-theme) ::selection {
    color: var(--color-background);
    background-color: var(--color-terminal-green);
}

:where(.templex-green-theme) #templex-footer {
    border-top-color: var(--color-text-soft);
}

:where(.templex-green-theme) hr {
    border-color: var(--color-text-soft);
}

:where(.templex-green-theme) .markdown-output blockquote {
    background-color: #071a0d;
    border-left-color: var(--color-text-soft);
}

:where(.templex-green-theme) pre,
:where(.templex-green-theme) code {
    background-color: #071a0d;
}

:where(.templex-green-theme) code {
    color: var(--color-text-strong);
}
