@charset "UTF-8";
/* 
Visual Design & Brand Identity © 2026 Dimension 42nd. 
Styling is protected under All Rights Reserved. 
Functional logic is MIT. 
*/
/* TEKO - Light (300) */
@font-face {
  font-family: 'Teko';
  src: url("/Dust-et-Lumina/assets/fonts/teko-v23-latin-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap; }
/* CINZEL - Regular (400) */
@font-face {
  font-family: 'Cinzel';
  src: url("/Dust-et-Lumina/assets/fonts/cinzel-v26-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap; }
@font-face {
  font-family: 'Long Cang';
  src: url("/Dust-et-Lumina/assets/fonts/long-cang-v21-chinese-simplified-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap; }
@font-face {
  font-family: 'Moon Dance';
  src: url("/Dust-et-Lumina/assets/fonts/long-cang-v21-chinese-simplified-regular.woff2") format("woff2");
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face {
  font-family: 'Mr Saint Delafield';
  src: url("/Dust-et-Lumina/assets/fonts/mrs-saint-delafield-v14-latin-regular.woff2") format("woff2");
  font-style: normal;
  font-display: swap; }
@font-face {
  font-family: 'QianTuXianMoTi';
  src: url("/Dust-et-Lumina/assets/fonts/QianTuXianMoTi-2.ttf") format("truetype");
  font-style: normal;
  font-display: swap; }
@font-face {
  font-family: 'Source Han Serif';
  src: url("/Dust-et-Lumina/assets/fonts/SourceHanSerifSC-VF.otf.woff2") format("woff2");
  font-style: normal;
  font-display: swap; }
:root {
  --font-mono: Teko, Source Han Serif, monospace;
  --font-main: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
  --font-sans: Segoe UI, sans-serif;
  --font-serif: Cinzel, Source Han Serif, serif;
  --font-script: QianTuXianMoTi, Long Cang, serif; }

:root {
  --bg-color: #0c0d0f;
  --bg-color-rgb: 12, 13, 15;
  --color-text: #c4ccd2;
  --color-text-rgb: 196, 204, 210;
  --color-note: #535361;
  --color-note-rgb: 83, 83, 97;
  --accent: #00f2ff;
  --accent-rgb: 0, 242, 255;
  --accent-dim: #00c2e077;
  --accent-secondary: #eb1342;
  --accent-secondary-rgb: 235, 19, 66;
  --content-width: 1000px; }

:root {
  --text-size: 18px;
  --note-size: 14px;
  --text-size-small: 16px;
  --msg-size: 16px;
  --main-header-size: 30px; }

:root {
  --pointer: url("/Dust-et-Lumina/assets/icons/cursor-svgrepo-com.svg"), auto;
  --zoom: url("/Dust-et-Lumina/assets/icons/plus-1469-svgrepo-com.svg") 10 10, zoom-in;
  --target: url("/Dust-et-Lumina/assets/icons/target-2-svgrepo-com.svg") 10 10, pointer; }

html {
  cursor: var(--pointer); }

a:hover {
  cursor: var(--target); }

img {
  cursor: var(--zoom); }

@keyframes rotate-cw {
  from {
    transform: rotate(0deg); }
  to {
    transform: rotate(360deg); } }
@keyframes rotate-ccw {
  from {
    transform: rotate(360deg); }
  to {
    transform: rotate(0deg); } }
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1; }
  50% {
    transform: scale(1.5);
    opacity: 0.5; } }
@keyframes radar-spin {
  from {
    transform: rotate(0deg); }
  to {
    transform: rotate(360deg); } }
@keyframes expand-line {
  0% {
    transform: scaleX(0);
    opacity: 0; }
  50% {
    opacity: 1; }
  100% {
    transform: scaleX(1);
    opacity: 1; } }
a {
  color: var(--color-text);
  text-decoration: none;
  transition: 0.3s; }
  a:hover {
    color: var(--accent); }

#obsidian-content > p a,
#obsidian-content > ul > li a,
#obsidian-content > ol > li a,
#obsidian-content > div.main-container > p > a {
  border-bottom: 0.5px solid var(--color-text); }

.entry-title {
  color: var(--color-text);
  text-decoration: none;
  position: relative; }

.entry-title::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 50%;
  background: var(--accent-dim);
  transition: all 0.2s ease;
  transform: translateX(-50%); }

.entry-title:hover::after {
  width: 100%; }

.entry-title:hover {
  color: var(--accent); }

p {
  font-family: var(--font-main);
  color: var(--color-text);
  font-size: var(--text-size);
  margin: 1rem 1rem;
  text-align: justify; }

u {
  padding-bottom: 0.5px;
  text-decoration: none;
  border-bottom: 1px solid var(--color-text); }

@media screen and (max-width: 768px) {
  #obsidian-content p, #obsidian-content li {
    font-size: 16px;
    line-height: 1.6; }

  ul {
    padding-left: 15px; }

  ul li::before {
    left: -15px; } }
.main-header {
  font-family: var(--font-mono);
  font-size: var(--main-header-size);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  border-left: 4px solid var(--accent);
  border-right: 4px solid var(--accent);
  padding: 0 5rem;
  text-align: center; }

@media screen and (max-width: 768px) {
  .main-header {
    font-size: 24px;
    padding: 0 1rem !important;
    border-width: 2px; } }
.motto {
  font-family: var(--font-serif);
  font-size: var(--text-size);
  color: var(--color-text);
  text-align: center;
  line-height: 2;
  text-transform: uppercase;
  letter-spacing: 0.1rem; }

/* System Message */
.system-msg {
  font-family: var(--font-mono);
  text-align: center;
  letter-spacing: 0.2rem;
  color: var(--color-text);
  font-size: 16px; }

.system-msg-warning {
  font-family: var(--font-mono);
  text-align: center;
  letter-spacing: 0.2rem;
  color: var(--accent-secondary);
  font-size: 16px; }

.system-msg-note {
  font-family: var(--font-mono);
  text-align: center;
  letter-spacing: 0.2rem;
  color: var(--color-note);
  font-size: 14px; }

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

/* Cursor selected text */
::selection {
  background-color: #00e5ff29; }

p::selection {
  background-color: #00e5ff29; }

/* Inline code */
p code, li code {
  color: var(--accent);
  padding: 2px 5px 0px 7px;
  margin-bottom: 2px;
  font-size: 0.95rem;
  font-family: var(--font-mono);
  letter-spacing: 0.2rem;
  word-break: break-word;
  box-sizing: border-box;
  border: 1px solid var(--color-note);
  border-radius: 1px;
  background: rgba(0, 0, 0, 0.38); }

/* strikethroughs */
del {
  color: var(--color-note);
  text-decoration-thickness: 2px; }

/* blockquotes */
blockquote {
  font-size: var(--text-size);
  border-left: solid 2px var(--accent);
  margin: 25px 20px;
  overflow-x: hidden; }

blockquote p {
  font-family: var(--font-main) !important; }

a.footnote {
  border-bottom: none !important; }

ul {
  list-style: none;
  padding-left: 20px;
  margin: 0.25rem 1rem;
  font-size: var(--text-size); }
  ul li {
    position: relative;
    margin: 0.5rem 0;
    color: var(--color-text); }
    ul li::before {
      content: ">";
      position: absolute;
      left: -20px;
      color: var(--accent);
      font-weight: bold; }

ol {
  font-size: var(--text-size); }
  ol li {
    margin-bottom: 0.5rem; }

hr {
  border: none;
  background-color: var(--color-note);
  height: 1px;
  margin: 2em 0; }

/* 1. Reduce footnote text size and style */
.footnotes {
  font-size: 1rem;
  /* Smaller, briefing-style text */
  line-height: 2;
  color: var(--color-note); }

.footnotes ol li p {
  font-size: 1.1rem !important;
  /* Adjust this to your preferred small size */
  line-height: 1.4;
  margin: 0;
  /* Prevents double-spacing between references */ }

/* 2. Style the footnote list items */
.footnotes li {
  margin-bottom: 0.5rem;
  transition: all 0.3s ease; }

/* 3. The Auto-Fading Highlight */
.footnotes li:target {
  animation: highlight-fade 2s ease-out forwards; }

@keyframes highlight-fade {
  0% {
    background-color: color-mix(in srgb, var(--accent), transparent 70%);
    color: var(--accent); }
  100% {
    background-color: transparent;
    padding-left: 0px;
    color: color-mix(in srgb, var(--color-note), transparent 0%); } }
/* 4. Style the back-link arrow */
.reversefootnote {
  color: var(--accent-dim);
  text-decoration: none;
  font-size: 0.8rem;
  margin-left: 3px;
  opacity: 0.5; }

.reversefootnote:hover {
  opacity: 1; }

.redacted {
  background-color: currentColor;
  color: currentColor;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0 2px;
  border-radius: 1px; }

.redacted.revealed {
  color: inherit;
  background-color: transparent;
  user-select: text; }

.redacted:not(.revealed):hover {
  filter: brightness(1.1);
  box-shadow: 0 0 5px currentColor; }

details {
  width: 95%;
  margin: 10px auto;
  padding: 5px;
  transition: all 0.3s ease;
  background: color-mix(in srgb, var(--bg-color), transparent 20%); }

/* If a `.wiki-sidebar` infobox is floated to the right, size `details` to the
   remaining column (same behavior as `.annotation-container`). */
.main-container > .wiki-sidebar ~ details {
  display: flow-root;
  width: auto;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0; }

details summary::-webkit-details-marker {
  display: none; }

details summary {
  display: flex;
  list-style: none;
  outline: none;
  font-family: var(--font-mono);
  padding: 10px;
  border-bottom: 1px solid var(--color-note);
  color: var(--color-text);
  margin: 0 10px;
  font-size: 20px;
  letter-spacing: 0.1rem;
  cursor: var(--target); }

/* The 'Closed' state */
details summary::before {
  content: "[ + ] ";
  margin-right: 10px;
  font-weight: bold;
  color: var(--accent-secondary); }

details[open] summary::before {
  content: "[ - ] ";
  margin-right: 10px;
  font-weight: bold;
  color: var(--accent); }

details summary::after {
  content: "";
  display: none;
  width: 20px;
  margin-left: auto;
  margin-right: 5px;
  background-color: var(--color-note);
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center; }

details p {
  padding: 0 20px;
  display: block;
  overflow: hidden;
  display: flow-root; }

details > *:not(summary) {
  overflow: hidden;
  /* Forces the element to respect the sidebar boundary */
  display: flow-root;
  /* Modern way to ensure it stays in its own 'box' */ }

details.callout-file {
  border: 1px solid var(--accent-dim);
  margin: 45px auto; }

details.callout-file summary {
  border-bottom: none; }

details[open].callout-file summary {
  border-bottom: 1px solid var(--color-note); }

details.callout-file summary::after {
  display: inline-block;
  mask-image: url("data:image/svg+xml,%3Csvg width='100px' height='100px' viewBox='-1.6 -1.6 19.20 19.20' fill='none' xmlns='http://www.w3.org/2000/svg' stroke='%23ffffff' transform='matrix(1, 0, 0, 1, 0, 0)'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath d='M7 0H2V16H14V7H7V0Z' fill='%23ffffff'%3E%3C/path%3E%3Cpath d='M9 0V5H14L9 0Z' fill='%23ffffff'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='100px' height='100px' viewBox='-1.6 -1.6 19.20 19.20' fill='none' xmlns='http://www.w3.org/2000/svg' stroke='%23ffffff' transform='matrix(1, 0, 0, 1, 0, 0)'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath d='M7 0H2V16H14V7H7V0Z' fill='%23ffffff'%3E%3C/path%3E%3Cpath d='M9 0V5H14L9 0Z' fill='%23ffffff'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"); }

@media screen and (max-width: 768px) {
  details summary::before {
    content: "+"; }

  details[open] summary::before {
    content: "-"; } }
/* 1. The Container */
#markdown-toc {
  list-style: none;
  padding: 1rem; }

/* 2. Top-level links */
#markdown-toc > li > a {
  color: var(--color-text);
  text-decoration: none;
  display: block;
  padding: 4px 0; }

/* 3. Nested (Sub-header) links */
#markdown-toc ul {
  list-style: none;
  padding-left: 1.5rem;
  /* Indent sub-items */
  color: var(-color-note); }

#markdown-toc ul li a {
  color: var(--color-text);
  opacity: 0.9; }

/* 4. The "Prompt" prefix for every link */
#markdown-toc li a::before {
  content: none;
  opacity: 0.5;
  margin-right: 8px; }

#markdown-toc ul ul {
  display: none; }

/* 5. Hover state */
#markdown-toc a:hover {
  color: var(--accent); }

/* Custom FUI Table Styling */
table {
  width: 95%;
  border-collapse: collapse;
  margin: 2rem auto;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--color-text);
  transition: all 0.2s ease; }

thead {
  border-bottom: 1px solid var(--accent); }

th {
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 15px;
  text-align: left;
  color: var(--color-text); }

td {
  padding: 10px 15px;
  border-bottom: 1px solid var(--color-note); }

.split-passage {
  display: flex;
  align-items: flex-start;
  /* Keeps tops aligned */
  gap: 1rem;
  /* Space between image and text */
  margin: 1.5rem 0; }

.split-passage .split-part {
  flex: 1;
  font-size: 18px; }
  .split-passage .split-part p a {
    border-bottom: 0.5px solid var(--color-text); }

.split-passage.reverse {
  flex-direction: row-reverse; }

@media (max-width: 768px) {
  .split-passage {
    flex-direction: column;
    margin: 0.5rem 0; }

  .split-passage .split-part {
    max-width: 100%; } }
* {
  box-sizing: border-box; }

html, body {
  margin: 0px; }

body {
  background-color: var(--bg-color);
  color: var(--color-text);
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  padding: 2rem 5rem;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Fallback for older browsers */ }

#obsidian-content {
  flex: 1; }

.main-container {
  max-width: var(--content-width);
  display: block; }
  .main-container::after {
    content: "";
    display: table;
    clear: both; }

@media screen and (max-width: 768px) {
  #obsidian-content,
  .sidebar-content,
  .toc-container,
  body {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch;
    padding: 15px 30px; }
    #obsidian-content::-webkit-scrollbar,
    .sidebar-content::-webkit-scrollbar,
    .toc-container::-webkit-scrollbar,
    body::-webkit-scrollbar {
      display: none;
      /* Chrome, Safari */ }

  #obsidian-content {
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */ }

  #obsidian-content video,
  #obsidian-content iframe {
    max-width: 100%;
    height: auto; } }
/* --- Desktop Styles (Default) --- */
.nav-interface {
  padding: 10px;
  border-bottom: 1px solid var(--color-note);
  position: relative;
  font-family: var(--font-mono);
  letter-spacing: 0.1rem; }

.nav-toggle, .nav-btn {
  display: none; }

.nav-links-wrapper {
  display: flex;
  gap: 20px;
  width: 100%; }

/* Hide the subtitle on Desktop */
.nav-subtitle {
  display: none; }

/* --- Mobile Adaptation --- */
@media screen and (max-width: 768px) {
  .nav-interface {
    position: sticky;
    top: 0;
    padding: 0;
    /* Override desktop padding */
    height: 50px;
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border-bottom: 1px solid var(--color-note);
    z-index: 1000; }

  /* Show the subtitle on Mobile */
  .nav-subtitle {
    display: inline;
    opacity: 0.6;
    /* Optional: makes the subtitle look secondary */ }

  .nav-btn {
    display: block;
    cursor: pointer;
    padding: 0 15px;
    /* Adjust padding for tap area */
    width: 30px;
    z-index: 10; }

  .icon, .icon::before, .icon::after {
    display: block;
    background: var(--color-text);
    height: 1px;
    width: 20px;
    position: relative; }

  .icon::before, .icon::after {
    content: '';
    position: absolute; }

  .icon::before {
    top: -6px; }

  .icon::after {
    top: 6px; }

  .nav-links-wrapper {
    display: none;
    position: relative;
    flex-direction: column;
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    padding: 15px 50px;
    gap: 10px;
    border-bottom: 1px solid var(--color-note);
    z-index: 999; }

  .nav-toggle:checked ~ .nav-links-wrapper {
    display: flex; }

  .nav-link.nav-right {
    margin-left: 0; }

  .nav-toggle {
    display: none; }

  .nav-link-content {
    display: flex;
    align-items: center; }
    .nav-link-content::before {
      content: '>';
      color: var(--accent);
      font-weight: bold;
      margin-right: 10px;
      font-family: var(--font-mono);
      font-size: 0.9rem;
      opacity: 1; } }
h1 {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 2px;
  border-left: 4px solid var(--accent);
  padding-left: 15px;
  margin-left: 1rem;
  margin-right: 1rem; }

h2, .h2 {
  font-family: var(--font-mono);
  color: var(--color-text);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 2px;
  border-left: 4px solid var(--accent);
  padding-left: 15px;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-top: 50px; }

h3 {
  font-family: var(--font-mono);
  color: var(--color-text);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 2px;
  border-left: 3px solid var(--accent);
  padding-left: 15px;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-top: 40px; }

h4 {
  font-family: var(--font-main);
  letter-spacing: 2px;
  color: var(--color-note);
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-weight: 400;
  margin-left: 1rem;
  margin-right: 1rem;
  font-size: 16px;
  margin-bottom: -0.5rem;
  margin-top: -0.25rem; }

@media screen and (max-width: 768px) {
  h2, .h2 {
    font-size: 22px;
    margin-top: 30px; }

  h3 {
    font-size: 20px;
    margin-top: 25px; } }
.page-header {
  border-bottom: 1px solid var(--accent-dim);
  text-transform: uppercase;
  padding: 1rem 0 0.5rem 0;
  margin: 0.5rem 0;
  font-family: var(--font-mono);
  color: var(--accent); }
  .page-header .header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%; }
  .page-header .title-text {
    font-size: 30px;
    letter-spacing: 3px;
    line-height: 1; }
  .page-header .page-subtitle {
    font-size: 14px;
    color: var(--color-note);
    letter-spacing: 2px;
    line-height: 1;
    text-align: right; }
    .page-header .page-subtitle::after {
      content: "";
      display: inline-block;
      width: 8px;
      height: 8px;
      background-color: var(--accent-secondary);
      margin-left: 5px;
      vertical-align: auto; }

.page-meta {
  display: flex;
  flex-wrap: wrap; }
  .page-meta .meta-info {
    display: flex;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: var(--color-text);
    opacity: 0.9;
    font-size: 14px;
    font-family: var(--font-mono);
    margin-right: 50px; }
    .page-meta .meta-info .label {
      color: var(--color-note);
      margin-right: 5px; }

@media screen and (max-width: 768px) {
  .page-header {
    margin-bottom: 1rem; }
    .page-header .header-main {
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
      gap: 15px; }
    .page-header .title-text {
      font-size: 25px;
      width: 100%; }
    .page-header .page-subtitle {
      text-align: left;
      width: 100%;
      padding-bottom: 3px;
      padding-left: 5px; }
      .page-header .page-subtitle::after {
        display: none; }
      .page-header .page-subtitle::before {
        content: "";
        display: inline-block;
        width: 9px;
        height: 9px;
        background-color: var(--accent-secondary);
        margin-right: 5px;
        margin-left: 0; }

  .page-meta {
    flex-direction: column;
    gap: 10px; }
    .page-meta .meta-info {
      margin-right: 0;
      font-size: 12px;
      flex-wrap: wrap; } }
footer {
  width: 100%;
  margin: 0 auto;
  padding: 1rem 0;
  font-family: var(--font-mono); }
  footer .nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 5px;
    position: relative; }
  footer .nav-arrow {
    color: var(--color-note);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.2s ease;
    padding-bottom: 5px; }
    footer .nav-arrow:hover:not(.disabled) {
      color: var(--accent); }
    footer .nav-arrow.disabled {
      opacity: 0.15;
      cursor: default; }
  footer .back-link {
    display: block;
    text-align: center;
    letter-spacing: 0.1rem;
    font-size: 0.9rem;
    color: var(--color-note);
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.2s ease; }
  footer .back-link::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 13px;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, var(--accent) 0%, var(--accent) calc(50% - 60px), transparent calc(50% - 60px), transparent calc(50% + 60px), var(--accent) calc(50% + 60px), var(--accent) 100%);
    transition: width 0.2s ease-in-out;
    pointer-events: none; }
  footer .back-link:hover::after {
    width: 50vw; }
  footer .back-link:hover {
    color: var(--accent); }
  footer .footer-div {
    width: 100%;
    height: 1px;
    background: var(--accent-dim);
    margin-top: 5px;
    margin-bottom: 20px; }
  footer .footer-grid {
    display: flex;
    justify-content: space-around;
    max-width: var(--content-width);
    margin: 0 auto; }
  footer .footer-item {
    display: flex;
    flex-direction: column;
    align-items: center; }
    footer .footer-item .label {
      font-size: 0.6rem;
      color: var(--color-text);
      opacity: 0.8;
      letter-spacing: 0.1rem; }
    footer .footer-item .value {
      font-size: 0.8rem;
      color: var(--color-text);
      letter-spacing: 0.1rem; }

.footer-credit {
  font-family: var(--font-mono);
  text-align: center;
  letter-spacing: 0.2rem;
  color: var(--color-note);
  font-size: 14px;
  letter-spacing: 2px;
  margin: 8px 0; }

@media screen and (max-width: 767px) {
  footer {
    padding: 0.5rem 0; } }
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.5s ease-out; }
  #loading-screen.fade-out {
    opacity: 0;
    pointer-events: none; }
  #loading-screen .loader-content {
    text-align: center;
    width: 100%; }
  #loading-screen .scanner-line {
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    box-shadow: 0 0 0px var(--accent);
    position: center;
    animation: expand-line 0.8s ease-out forwards; }

/* Phase Visibility */
.loader-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; }

/* Phase 1: Login Styles */
#db-password {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.1rem;
  font-size: 1.2rem;
  outline: none;
  padding: 5px;
  width: 200px;
  text-align: center; }

.login-input-wrapper {
  margin: 20px 0; }

/* Phase 2: Circular Scanner */
.fui-scanner {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center; }

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--color-text);
  opacity: 0.9; }

/* Outer rotating dashed ring */
.outer-dashed {
  width: 100%;
  height: 100%;
  border-style: dashed;
  border-width: 2px;
  animation: rotate-cw 10s linear infinite; }

/* Middle ring with "notches" */
.middle-data {
  width: 75%;
  height: 75%;
  border: 4px double var(--accent);
  clip-path: polygon(0% 0%, 100% 0%, 100% 30%, 0% 30%, 0% 70%, 100% 70%, 100% 100%, 0% 100%);
  animation: rotate-ccw 5s linear infinite; }

/* Inner steady ring */
.inner-steady {
  width: 40%;
  height: 40%;
  opacity: 0.5; }

.inner-notch {
  width: 50%;
  height: 50%;
  border: 4px solid var(--accent);
  /*clip-path: polygon(0% 0%, 100% 0%, 
                      100% 30%, 0% 30%, 
                      0% 70%, 100% 70%, 
                      100% 100%, 0% 100%);*/
  mask: conic-gradient(transparent 0deg 60deg, black 60deg 120deg, transparent 120deg 180deg, black 180deg 240deg, transparent 240deg 300deg, black 300deg); }

.scan-sweep {
  position: absolute;
  /* width is the 'length' of the needle (50% of parent) */
  width: 50%;
  /* height is the thickness of the line */
  height: 1px;
  /* Position it exactly in the middle of the circle */
  top: 50%;
  left: 50%;
  /* The line color and a slight glow for that FUI look */
  background: var(--accent);
  box-shadow: 0 0 5px var(--accent);
  /* Rotate around the very start of the line (the center of the circle) */
  transform-origin: left center;
  opacity: 0.8;
  animation: rotate-cw 2s linear infinite; }

.scan-sweep::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  /* The 'width' of the trailing shadow */
  background: linear-gradient(to top, var(--accent) 0%, transparent 100%);
  opacity: 0.2;
  transform: translateY(-100%);
  /* Position it behind the line */
  clip-path: polygon(0% 100%, 100% 100%, 100% 0%);
  /* Triangular trail */ }

/* Central pulsing core */
.core-point {
  width: 8px;
  height: 8px;
  background-color: var(--accent-secondary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-secondary);
  animation: pulse 1s ease-in-out infinite; }

/* Decorative Labels */
.fui-label {
  position: absolute;
  left: 50%;
  /* Move the left edge to the center */
  transform: translateX(-50%);
  /* Pull it back by half its own width */
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-text);
  letter-spacing: 1px;
  width: 200px;
  /* Increased width to prevent text wrapping */
  text-align: center; }

.fui-label.top {
  top: -40px; }

.fui-label.bottom {
  bottom: -40px; }

.concept-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0; }

.concept-card {
  padding: 10px;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow: hidden;
  background: var(--bg-color);
  border: 1px solid var(--color-note);
  transition: all 0.2s ease; }
  .concept-card:hover {
    border-color: var(--accent); }
    .concept-card:hover img {
      filter: grayscale(0%) sepia(0%) hue-rotate(0deg) brightness(1) contrast(1);
      opacity: 1; }
    .concept-card:hover .title, .concept-card:hover span {
      color: var(--accent); }
      .concept-card:hover .title::after, .concept-card:hover span::after {
        width: 100%; }
  .concept-card:nth-child(even) {
    flex-direction: row-reverse; }
  .concept-card:hover img {
    opacity: 0.8;
    cursor: var(--target); }

.concept-thumb {
  flex: 3;
  height: 105px;
  overflow: hidden; }
  .concept-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.5s ease; }
  .concept-thumb .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    font-size: 1rem;
    opacity: 0.8;
    letter-spacing: 3px;
    background: repeating-linear-gradient(0deg, black, black 2px, #161b22 4px);
    border: 1px solid var(--color-note);
    height: 100%; }

.concept-text {
  flex: 1;
  padding: 0.8rem 1.5rem;
  text-align: center; }
  .concept-text .concept-title {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--color-text);
    text-transform: uppercase;
    margin: 0;
    transition: color 0.2s ease;
    letter-spacing: 0.1rem;
    position: relative;
    display: inline-block; }
  .concept-text .concept-title::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 50%;
    background: var(--accent-dim);
    transition: all 0.2s ease;
    transform: translateX(-50%); }
  .concept-text:hover .concept-title::after {
    width: 100%; }

@media (max-width: 600px) {
  .concept-card,
  .concept-card:nth-child(even) {
    flex-direction: column !important;
    align-items: stretch;
    padding: 10px 10px 0px 10px; }

  .concept-thumb {
    width: 100%;
    height: 60px;
    flex: none;
    border-right: none;
    border-left: none; }
    .concept-thumb img {
      display: block;
      width: 100%;
      height: 100%; }

  .concept-text {
    flex: none;
    width: 100%;
    padding: 10px; } }
.featured-chars {
  display: flex;
  justify-content: center;
  margin: 0rem 0;
  padding: 1rem 0; }

.char-grid {
  display: flex;
  justify-content: safe center;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none; }
  .char-grid::-webkit-scrollbar {
    display: none; }

.char-card {
  background: var(--bg-color);
  border: 1px solid var(--color-note);
  transition: all 0.2s ease;
  flex: 0 0 180px;
  padding: 10px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden; }
  .char-card:hover {
    border-color: var(--accent); }
    .char-card:hover img {
      filter: grayscale(0%) sepia(0%) hue-rotate(0deg) brightness(1) contrast(1);
      opacity: 1; }
    .char-card:hover .title, .char-card:hover span {
      color: var(--accent); }
      .char-card:hover .title::after, .char-card:hover span::after {
        width: 100%; }

.char-portrait {
  width: 100%;
  aspect-ratio: 3 / 3.5;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative; }
  .char-portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.5s ease;
    filter: grayscale(10%); }
    .char-portrait img:hover {
      cursor: var(--target); }
  .char-portrait .no-portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    font-size: 1rem;
    opacity: 0.8;
    letter-spacing: 3px;
    background: repeating-linear-gradient(0deg, black, black 2px, #161b22 4px);
    border: 1px solid var(--color-note);
    height: 100%; }

.char-overlay {
  padding: 0 10px;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; }
  .char-overlay span {
    font-family: var(--font-mono);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 16px;
    position: relative;
    display: block;
    text-align: center;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 6px;
    margin-bottom: -6px;
    /* -------------------------- */
    transition: color 0.2s ease; }
    .char-overlay span::after {
      content: '';
      position: absolute;
      width: 0;
      height: 1px;
      bottom: 0px;
      left: 50%;
      background: var(--accent-dim);
      transition: all 0.2s ease;
      transform: translateX(-50%);
      z-index: 1; }

.org-carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--color-note);
  border-bottom: 1px solid var(--color-note); }

.org-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */ }
  .org-carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */ }

.org-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  display: flex;
  justify-content: center; }

.org-inner {
  display: flex;
  gap: 4rem;
  padding: 40px;
  max-width: 900px;
  width: 100%;
  border: none; }
  .org-inner .org-logo {
    flex: 0 0 30%;
    display: flex;
    justify-content: center; }
    .org-inner .org-logo img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      opacity: 0.8;
      filter: grayscale(1);
      transition: all 0.3s ease; }
      .org-inner .org-logo img:hover {
        cursor: var(--target); }
    .org-inner .org-logo .no-portrait {
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-mono);
      color: var(--accent-secondary);
      font-size: 1rem;
      opacity: 0.8;
      letter-spacing: 3px;
      background: repeating-linear-gradient(0deg, black, black 2px, #161b22 4px);
      border: 1px solid var(--color-note);
      width: 90%;
      aspect-ratio: 1/1; }
  .org-inner .org-content {
    flex: 1; }
    .org-inner .org-content .org-title {
      font-family: var(--font-mono);
      color: var(--accent);
      font-size: 24px;
      letter-spacing: 0.1rem; }
    .org-inner .org-content .org-subtitle {
      font-family: var(--font-mono);
      color: var(--color-text);
      text-transform: uppercase;
      letter-spacing: 0.1rem;
      font-size: 16px; }
    .org-inner .org-content .org-description {
      font-size: 18px;
      line-height: 1.6;
      color: var(--color-text);
      opacity: 0.8;
      margin: 1rem 0;
      border-left: 2px solid var(--accent);
      padding-left: 10px; }

@media (max-width: 768px) {
  .org-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 30px 20px;
    align-items: center;
    text-align: center; }
    .org-inner .org-logo {
      flex: 0 0 auto;
      width: 140px; }
      .org-inner .org-logo .no-portrait {
        width: 100%; }
    .org-inner .org-content .org-title {
      font-size: 20px; }
    .org-inner .org-content .org-description {
      font-size: 16px;
      border-left: none;
      border-top: 1px solid var(--accent);
      padding-left: 0;
      padding-top: 10px;
      margin: 0.5rem 0; } }
.image-bracket-frame {
  position: relative;
  display: flex;
  line-height: 0;
  margin: 2rem auto;
  max-width: 90%;
  padding: 10px; }
  .image-bracket-frame img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: auto; }
  .image-bracket-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    border-left: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
    background: linear-gradient(to right, var(--accent) 20px, transparent 20px, transparent calc(100% - 20px), var(--accent) calc(100% - 20px)) top/100% 1px no-repeat;
    pointer-events: none; }
  .image-bracket-frame::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    border-left: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
    background: linear-gradient(to right, var(--accent) 20px, transparent 20px, transparent calc(100% - 20px), var(--accent) calc(100% - 20px)) bottom/100% 1px no-repeat;
    pointer-events: none; }

#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* Behind all content */
  background-color: var(--bg-color);
  pointer-events: none;
  /* Allows you to click links through the canvas */
  opacity: 0;
  /* Hidden by default */
  transition: opacity 2s ease-in;
  /* Smooth fade-in after loading */
    /*
    mask-image: linear-gradient(
        to right, 
        var(--bg-color) 0%, 
        transparent 30%, 
        transparent 70%, 
        var(--bg-color) 100%
    );

    -webkit-mask-image: linear-gradient(
        to right, 
        var(--bg-color) 0%, 
        transparent 30%, 
        transparent 70%, 
        var(--bg-color) 100%
    );
    */ }

#network-canvas.visible {
  opacity: 0.3;
  /* Subtle enough not to distract from reading */ }

html {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */ }
  html::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */ }

.wiki-sidebar {
  float: right;
  width: 35%;
  /* Your preferred width */
  margin-left: 2rem;
  /* Gap between text and sidebar */
  margin-bottom: 0.5rem;
  /* Gap for when text flows underneath */
  padding: 1rem;
  box-sizing: border-box; }

.infobox-image {
  width: 95%;
  box-sizing: border-box;
  min-width: 0;
  padding-top: 10px; }
  .infobox-image img {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(15%); }

.infobox-header {
  font-family: var(--font-mono);
  color: var(--main-text);
  font-size: var(--text-size);
  padding: 10px 0 5px 0;
  text-align: center;
  letter-spacing: 0.1rem;
  border-top: 1px solid var(--color-note);
  border-bottom: 1px solid var(--color-note); }

.infobox-table {
  width: 100%;
  border-collapse: collapse; }

.infobox-section {
  border-top: 1px solid var(--color-note);
  padding: 0.5rem 0;
  font-size: 12px;
  color: var(--accent-secondary);
  text-align: left;
  font-family: var(--font-mono);
  letter-spacing: 0.1rem;
  font-weight: normal; }

.infobox-table td {
  padding: 4px 4px 4px 4px;
  border-bottom: 0.5px solid var(--color-note);
  vertical-align: baseline; }

.infobox-table .label {
  font-family: var(--font-mono);
  letter-spacing: 0.1rem;
  color: var(--accent);
  font-size: 12px;
  width: 35%;
  text-transform: uppercase; }

.infobox-table .value {
  font-family: var(--font-main);
  font-size: 12px; }

@media (max-width: 768px) {
  .wiki-sidebar {
    float: none;
    width: 100%;
    margin: 0 0 1rem 0; } }
#galaxy-3d-container {
  width: 100%;
  height: 500px;
  display: block;
  position: relative;
  overflow: hidden;
  max-height: 75vh;
  margin: 20px auto; }

.sidebar-directory {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(-200px);
  width: 240px;
  height: auto;
  z-index: 10000;
  transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
  display: flex;
  flex-direction: row-reverse;
  /* Handle stays on the right, content on the left */
  align-items: center;
  opacity: 0; }

#sidebar-directory.visible {
  opacity: 1;
  pointer-events: auto; }

/* On hover, move the whole thing to 0 so the content is visible */
.sidebar-directory.visible:hover {
  transform: translateY(-50%) translateX(0);
  opacity: 1; }

.sidebar-handle {
  width: 40px;
  height: 140px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: transparent; }
  .sidebar-handle .handle-text {
    writing-mode: vertical-rl;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: color-mix(in srgb, var(--color-text), transparent 50%);
    pointer-events: none; }

.sidebar-content {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */ }
  .sidebar-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */ }

.sidebar-content {
  width: 200px;
  max-height: 75vh;
  overflow-y: auto;
  background-color: color-mix(in srgb, var(--bg-color), transparent 5%);
  border: 1px solid var(--accent-dim);
  border-left: none;
  padding: 2rem; }

.sidebar-header {
  font-size: 12px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 5px;
  letter-spacing: 0.1rem;
  font-family: var(--font-mono); }

.directory-list {
  padding: 5px; }

.directory-link {
  display: flex;
  align-items: center;
  padding: 5px 5px;
  text-decoration: none;
  letter-spacing: 0.1rem;
  transition: 0.2s;
  margin: 5px; }

.link-text {
  display: flex;
  flex-direction: column;
  transition: color 0.2s ease; }

.link-text .title {
  color: var(--color-text);
  font-family: var(--font-mono);
  letter-spacing: 0.1rem;
  font-size: 16px; }

.link-text .subtitle {
  color: var(--color-note);
  /* Your note/dim color */
  font-family: var(--font-main);
  font-size: 14px;
  letter-spacing: 0.1rem;
  margin-top: 2px; }

/* When the parent link is hovered, change the children */
.directory-link:hover .title {
  color: var(--accent); }

.directory-link:hover .subtitle {
  color: var(--accent-dim); }

.sidebar-footer {
  margin-top: 1px;
  font-size: 12px;
  padding: 2px 0;
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.1rem; }

.sidebar-homelink {
  color: var(--color-note);
  font-size: 12px;
  letter-spacing: 0.1rem; }

.sidebar-homelink:hover {
  color: var(--accent);
  transition: all 0.2s ease; }

@media screen and (max-width: 768px) {
  .sidebar-directory {
    display: none; } }
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 4rem auto;
  display: flex;
  flex-direction: column;
  align-items: center; }

.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-note);
  z-index: 1; }

.timeline-item {
  position: relative;
  width: 50%;
  z-index: 2;
  margin-top: -5rem;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease; }

.timeline-item:first-child {
  margin-top: 0; }

.timeline-item:nth-child(odd) {
  align-self: flex-start;
  padding-right: 35px; }

.timeline-item:nth-child(even) {
  align-self: flex-end;
  padding-left: 35px;
  padding-top: 8rem; }

.timeline-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  z-index: 3; }

.timeline-item:nth-child(odd) .timeline-dot {
  right: -5px;
  top: 15px; }

.timeline-item:nth-child(even) .timeline-dot {
  left: -5px;
  top: calc(8rem + 15px); }

/* ============================================================
   THE DATA CARDS
   ============================================================ */
.timeline-content {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: color-mix(in srgb, var(--bg-color), transparent 20%);
  border: 1px solid var(--accent-dim);
  padding: 1.5rem;
  transition: all 0.3s ease;
  pointer-events: auto; }

.timeline-content:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px color-mix(in srgb, var(--accent), transparent 90%); }

.timeline-item:nth-child(odd) .timeline-content:hover {
  transform: translateX(10px); }

.timeline-item:nth-child(even) .timeline-content:hover {
  transform: translateX(-10px); }

.timeline-content::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--accent-secondary);
  top: -4px;
  left: var(--square-left, auto);
  right: var(--square-right, auto);
  z-index: 10;
  transition: all 0.3s ease; }

.timeline-content:hover::before {
  width: 15px;
  height: 15px; }

/* ============================================================
   CARD CONTENT & LINKS
   ============================================================ */
.main-card-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 45px;
  /* Ends above the link tags footer */
  z-index: 5;
  cursor: pointer; }

.timeline-date {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px; }

.timeline-title {
  font-size: 1.2rem;
  display: block;
  font-weight: bold; }

.timeline-subtitle {
  font-size: 0.9rem;
  color: var(--color-note); }

.timeline-excerpts {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text), transparent 30%); }

.timeline-links {
  position: relative;
  z-index: 30 !important;
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px dotted var(--accent-dim);
  padding-top: 10px;
  pointer-events: auto !important; }

.timeline-link-tag {
  position: relative;
  z-index: 31 !important;
  font-size: 12px;
  color: var(--accent) !important;
  text-decoration: none !important;
  cursor: pointer !important; }

.timeline-link-tag:hover {
  color: var(--color-text) !important; }

.tag-bracket {
  color: var(--accent-dim);
  pointer-events: none; }

.timeline-tag {
  color: var(--color-note);
  font-size: 12px;
  position: absolute;
  top: 0;
  right: 0;
  margin: 1.25rem 1rem;
  padding: 1px 3px;
  transition: all 0.3s ease-in-out;
  border: 1px solid var(--color-note); }

.timeline-content:hover .timeline-tag {
  color: var(--color-text);
  border: 1px solid var(--color-text); }

/* ============================================================
   RIGHT SIDEBAR FILTER
   ============================================================ */
#timeline-filter {
  position: fixed !important;
  right: 0 !important;
  top: 50% !important;
  /* Show exactly 40px (the handle) and hide the rest (280px) */
  transform: translateY(-50%) translateX(200px);
  width: 240px;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
  pointer-events: auto !important; }

#timeline-filter:hover {
  transform: translateY(-50%) translateX(0); }

.timeline-filter-toggle,
.timeline-filter-btn {
  display: none; }

.filter-handle {
  width: 40px;
  height: 140px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: transparent; }
  .filter-handle .handle-text {
    writing-mode: vertical-rl;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: color-mix(in srgb, var(--color-text), transparent 50%);
    pointer-events: none; }

.filter-container::-webkit-scrollbar {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */ }
  .filter-container::-webkit-scrollbar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */ }

.filter-container {
  width: 200px;
  background: color-mix(in srgb, var(--bg-color), transparent 5%);
  border: 1px solid var(--accent-dim);
  border-right: none;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  max-height: 75vh;
  overflow-y: auto; }

.filter-header {
  font-family: var(--font-mono);
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 5px;
  margin-bottom: 15px;
  font-size: 12px;
  letter-spacing: 0.1rem; }

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0; }

.filter-btn {
  position: relative;
  background: transparent;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  font-family: var(--font-mono);
  letter-spacing: 0.1rem;
  color: var(--color-note);
  padding: 4px 15px;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease; }
  .filter-btn .prompt {
    margin-right: 10px;
    color: var(--color-note); }
  .filter-btn.active {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.1); }
    .filter-btn.active:hover {
      border-color: var(--accent);
      color: var(--color-text); }
    .filter-btn.active .prompt {
      color: var(--accent);
      animation: flicker 2s infinite; }
  .filter-btn:hover {
    border-color: var(--accent-secondary);
    color: var(--color-text); }

@keyframes flicker {
  0% {
    opacity: 1; }
  50% {
    opacity: 0.4; }
  100% {
    opacity: 1; } }
.filter-btn .prompt {
  color: var(--accent);
  margin-right: 8px;
  visibility: hidden; }

.filter-btn.active .prompt {
  visibility: visible; }

.filter-footer {
  margin-top: 20px;
  font-size: 12px;
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.1rem; }

.timeline-item.hidden {
  display: none !important; }

#network-canvas {
  pointer-events: none !important; }

@media screen and (max-width: 768px) {
  #timeline-filter {
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    transform: none !important;
    width: auto;
    height: auto;
    flex-direction: column;
    align-items: flex-end;
    z-index: 9999 !important; }

  #timeline-filter:hover {
    transform: none !important; }

  .filter-handle {
    display: none; }

  .timeline-filter-btn {
    display: block;
    cursor: pointer;
    padding: 5px 10px;
    background: var(--bg-color);
    border: 1px solid var(--accent);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.1rem;
    z-index: 9999; }

  .filter-container {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    width: 70vw;
    max-width: 300px;
    border-right: 1px solid var(--accent-dim); }

  .timeline-filter-toggle:checked ~ .filter-container {
    display: block; }

  .timeline-filter-toggle {
    display: none; }

  .timeline-container {
    margin-top: 20px;
    padding: 0 0.5rem; }

  .timeline-dot {
    left: 8px !important;
    right: auto !important;
    top: 30px !important;
    transform: translateY(-50%); }

  .timeline-line {
    left: 20px;
    transform: none; }

  .timeline-item {
    width: 98%;
    margin-top: 1.5rem !important;
    /* Remove the heavy negative overlap for mobile readability */
    padding-left: 45px !important;
    /* Space for the line and dots */
    padding-right: 0 !important;
    align-self: flex-start !important;
    /* Force all to left */ }

  .timeline-content::before {
    right: -4px !important;
    left: auto !important;
    top: -4px; }

  .timeline-item:nth-child(odd) .timeline-content:hover,
  .timeline-item:nth-child(even) .timeline-content:hover {
    transform: translateX(5px); }

  .timeline-item:nth-child(even) {
    padding-top: 0 !important; }

  .timeline-container {
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none; }

  .timeline-container::-webkit-scrollbar {
    display: none; }

  .timeline-date {
    font-size: 0.8rem; }

  .timeline-title {
    font-size: 1.1rem; }

  .timeline-subtitle {
    font-size: 0.8rem;
    padding-top: 5px; }

  .timeline-excerpts {
    margin-top: 0.5rem;
    font-size: 0.8rem; } }
.sidebar-toc {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(240px);
  width: 280px;
  /* content + 40px handle */
  height: auto;
  z-index: 9000;
  transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.5s ease;
  display: flex;
  flex-direction: row;
  /* Content on the right, handle on the left */
  align-items: center;
  opacity: 0;
  pointer-events: none; }

/* Visibility state triggered by your loader logic */
#sidebar-toc.visible {
  opacity: 1;
  pointer-events: auto; }

/* Slide in on hover */
.sidebar-toc.visible:hover {
  transform: translateY(-50%) translateX(0);
  opacity: 1; }

.toc-handle {
  width: 40px;
  height: 140px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: transparent; }
  .toc-handle .handle-text {
    writing-mode: vertical-rl;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: color-mix(in srgb, var(--color-text), transparent 50%);
    pointer-events: none; }

/* The TOC Content Box */
.toc-container {
  width: 240px;
  background-color: color-mix(in srgb, var(--bg-color), transparent 5%);
  border: 1px solid var(--accent-dim);
  border-right: none;
  padding: 2rem 10px 2rem 30px;
  max-height: 70vh;
  overflow-y: auto; }

.toc-container {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */ }
  .toc-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */ }

.toc-content-body ul {
  list-style: none;
  padding: 0;
  margin-left: 20px; }

.toc-link {
  display: block;
  padding: 2px 5px;
  font-size: 0.9rem;
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-main);
  transition: 0.2s; }

.toc-link:hover {
  color: var(--accent); }

.toc-item.toc-h2 {
  position: relative; }

.toc-item.toc-h2::before {
  content: ">";
  position: absolute;
  align-items: center;
  left: -20px;
  color: var(--accent);
  font-weight: bold; }

.toc-item.toc-h3::before {
  content: none !important; }

.toc-item.toc-h3 {
  margin-left: 10px;
  /* Indent to show hierarchy */
  border-left: 1px solid var(--accent-dim);
  /* Optional: visual guide */
  padding-left: 10px; }

.toc-h3 .toc-link {
  opacity: 0.7;
  font-size: 0.8rem; }

.toc-toggle, .toc-btn {
  display: none; }

/* --- Mobile Adaptation --- */
@media screen and (max-width: 768px) {
  .sidebar-toc {
    /* Reset Desktop Position */
    position: fixed;
    top: 15px;
    /* Distance from top */
    right: 15px;
    /* Distance from right */
    transform: none !important;
    /* Kill the translateY(-50%) */
    width: auto;
    height: auto;
    flex-direction: column;
    align-items: flex-end; }

  /* Hide the side-handle bar */
  .toc-handle {
    display: none; }

  /* Show the top-right button */
  .toc-btn {
    display: block;
    cursor: pointer;
    padding: 5px 10px;
    background: var(--color-bg);
    border: 1px solid var(--accent);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.1rem; }

  /* The TOC Content Box adaptation */
  .toc-container {
    display: none;
    /* Hidden until toggled */
    position: absolute;
    top: 40px;
    /* Sits below the TOC button */
    right: 0;
    width: 70vw;
    /* Slightly wider for readability on small screens */
    max-width: 300px;
    border-right: 1px solid var(--accent-dim);
    /* Restore the border */ }

  /* Toggle Logic */
  .toc-toggle:checked ~ .toc-container {
    display: block; }

  /* Keep the toggle checkbox hidden */
  .toc-toggle {
    display: none; }

  /* Ensure it's visible if the parent has the .visible class from your loader */
  #sidebar-toc.visible {
    opacity: 1;
    pointer-events: auto; } }
.culture-archive .class-section {
  margin-bottom: 2rem;
  transition: all 0.3s ease; }
  .culture-archive .class-section .class-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    list-style: none;
    padding: 0.5rem 0;
    outline: none; }
    .culture-archive .class-section .class-header::-webkit-details-marker {
      display: none; }
    .culture-archive .class-section .class-header .header-text {
      font-family: var(--font-mono);
      font-size: 1.5rem;
      letter-spacing: 0.15rem;
      text-transform: uppercase;
      color: var(--color-text); }
    .culture-archive .class-section .class-header .entry-count {
      font-family: var(--font-mono);
      margin-left: 10px;
      font-size: 1rem;
      color: var(--color-note); }
    .culture-archive .class-section .class-header .ui-arrow {
      margin-left: auto;
      margin-right: 20px;
      width: 10px;
      height: 10px;
      border-right: 1px solid var(--accent);
      border-bottom: 1px solid var(--accent);
      transform: rotate(45deg);
      transition: transform 0.3s ease; }
  .culture-archive .class-section[open] .ui-arrow {
    transform: rotate(-135deg); }
.culture-archive .subclass-container {
  padding: 10px 20px; }
.culture-archive .subclass-group .subclass-header {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--color-note);
  padding-left: 10px;
  position: relative;
  display: block;
  border-bottom: 0.5px solid var(--color-note);
  margin: 0 0 15px 0;
  padding-top: 10px; }
.culture-archive .subclass-div {
  border: none;
  margin: 1rem auto;
  background-color: var(--color-note);
  height: 0.25px;
  width: 50%; }
.culture-archive .entry-list {
  list-style: none;
  padding: 0 35px;
  margin: 0; }
  .culture-archive .entry-list .entry-item .entry-link {
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    width: 100%;
    color: var(--color-text); }

.commit-main {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  width: 100%; }
  .commit-main .chapter-num {
    font-family: var(--font-mono);
    color: var(--color-note);
    font-size: 16px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    margin: 0 20px; }
  .commit-main .chapter-title {
    color: var(--color-text);
    display: inline-flex;
    position: relative;
    align-items: center;
    margin: 0 20px;
    text-decoration: none; }
    .commit-main .chapter-title::after {
      content: '';
      position: absolute;
      width: 0;
      height: 1px;
      bottom: -4px;
      left: 50%;
      background: var(--accent-dim);
      transition: all 0.2s ease;
      transform: translateX(-50%); }
    .commit-main .chapter-title:hover::after {
      width: 100%; }
    .commit-main .chapter-title:hover {
      color: var(--accent); }
  .commit-main .commit-number {
    font-size: 14px;
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    margin-left: auto; }
    .commit-main .commit-number .hash {
      display: inline-block;
      width: 55px;
      letter-spacing: 1px;
      /* This is often more reliable for short strings like hashes */
      text-align: center; }
    .commit-main .commit-number::after {
      content: "+";
      font-size: 22px;
      margin-left: 5px;
      line-height: 0;
      /* Prevents the large + from pushing the line height up */ }

.class-description {
  font-family: var(--font-mono);
  color: var(--color-note);
  padding: 5px 10px;
  letter-spacing: 0.1rem; }

@media screen and (max-width: 768px) {
  .header-text {
    font-size: 22px !important; }

  .class-section {
    margin-bottom: 1rem !important; }

  .commit-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px; }
    .commit-main .chapter-num,
    .commit-main .chapter-title {
      margin: 0; }
    .commit-main .chapter-title::after {
      left: 0;
      transform: none; }
    .commit-main .commit-number {
      margin-left: 0;
      font-size: 12px; }
      .commit-main .commit-number .hash {
        text-align: left;
        width: auto;
        margin-left: 5px; } }
.preface-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 40px; }
  .preface-container .preface-header {
    display: flex;
    gap: 40px; }
  .preface-container.layout-vertical .preface-header {
    flex-direction: row;
    align-items: flex-start; }
    .preface-container.layout-vertical .preface-header .cover-wrapper {
      flex: 0 0 40%;
      position: relative;
      --dynamic-hue: var(--color-note);
      margin-bottom: 50px; }
      .preface-container.layout-vertical .preface-header .cover-wrapper img {
        width: 100%;
        display: block; }
      .preface-container.layout-vertical .preface-header .cover-wrapper::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        width: 100px;
        height: 100px;
        background-color: var(--dynamic-hue);
        z-index: -1;
        opacity: 0.5; }
      .preface-container.layout-vertical .preface-header .cover-wrapper::after {
        content: '';
        position: absolute;
        top: 15px;
        left: 15px;
        width: 100%;
        height: 100%;
        border: 2px solid var(--dynamic-hue);
        z-index: -1;
        opacity: 0.5; }
    .preface-container.layout-vertical .preface-header .preface-metadata {
      flex: 1; }
  .preface-container.layout-horizontal .preface-header {
    flex-direction: column; }
    .preface-container.layout-horizontal .preface-header .cover-wrapper {
      width: 100%;
      position: relative;
      margin-bottom: 10px; }
      .preface-container.layout-horizontal .preface-header .cover-wrapper img {
        width: 100%;
        max-height: 480px;
        object-fit: cover; }
      .preface-container.layout-horizontal .preface-header .cover-wrapper::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        width: 100px;
        height: 100px;
        background-color: var(--dynamic-hue);
        z-index: -1;
        opacity: 0.5; }
      .preface-container.layout-horizontal .preface-header .cover-wrapper::after {
        content: '';
        position: absolute;
        top: 15px;
        left: 15px;
        width: 100%;
        height: 100%;
        border: 2px solid var(--dynamic-hue);
        z-index: -1;
        opacity: 0.5; }
    .preface-container.layout-horizontal .preface-header .preface-metadata {
      width: 100%; }

.story-title {
  font-family: var(--font-mono);
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  line-height: 1; }

.story-subtitle {
  font-family: var(--font-mono);
  color: var(--color-note);
  margin-bottom: 0.5rem;
  margin-left: 10px;
  font-weight: bold; }

.story-stats {
  display: flex;
  gap: 30px;
  padding: 10px 0;
  letter-spacing: 0.05rem;
  border-bottom: 1px solid var(--color-note);
  color: var(--color-text);
  opacity: 0.9;
  font-size: 0.9rem;
  font-family: var(--font-mono); }
  .story-stats .label {
    color: var(--color-note);
    margin-right: 8px; }

.story-description {
  margin: 30px 0; }

/* The Overlay Background */
.system-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 10001;
  backdrop-filter: blur(5px);
  cursor: zoom-out;
  justify-content: center;
  align-items: center;
  flex-direction: column; }

/* The Image itself */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85%;
  z-index: 10001;
  animation: zoomIn 0.3s ease-out; }

/* Metadata Caption */
.modal-caption {
  margin-bottom: 20px;
  font-family: var(--font-mono);
  color: var(--color-note);
  text-transform: uppercase;
  letter-spacing: 2px; }

/* X Close Button */
.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: var(--color-note);
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer; }
  .close-modal:hover {
    color: var(--accent); }

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0; }
  to {
    transform: scale(1);
    opacity: 1; } }
.toc-header {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 2rem; }

.chapter-list {
  list-style: none;
  padding: 0 35px;
  margin: 0; }
  .chapter-list .chapter-empty {
    font-family: var(--font-mono);
    color: var(--color-note);
    letter-spacing: 0.1rem; }
    .chapter-list .chapter-empty::before {
      content: "";
      display: inline-block;
      height: 9px;
      width: 9px;
      background-color: var(--accent-secondary);
      margin-right: 10px;
      vertical-align: middle; }

@media screen and (max-width: 768px) {
  .system-modal {
    position: fixed !important;
    /* inset: 0 is a shortcut for top/bottom/left/right: 0 */
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    background-color: rgba(0, 0, 0, 0.98) !important;
    z-index: 999999 !important;
    /* Force it above everything */
    display: none;
    /* Controlled by JS flex/none */
    flex-direction: column;
    justify-content: center;
    align-items: center; }

  .modal-content {
    width: auto !important;
    height: auto !important;
    max-width: 90vw !important;
    max-height: 70dvh !important;
    /* Leaves room for the caption */
    object-fit: contain !important;
    margin: 0 !important; }

  .modal-caption {
    font-size: 0.8rem;
    margin-top: 15px;
    width: 90%;
    text-align: center; }

  .close-modal {
    top: 15px;
    right: 20px;
    font-size: 30px; } }
.hub-interface {
  display: flex;
  overflow: hidden; }
  .hub-interface .hub-viewport {
    flex: 1;
    overflow-y: auto;
    border-right: 1px solid var(--color-note);
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */ }
    .hub-interface .hub-viewport::-webkit-scrollbar {
      display: none;
      /* Chrome, Safari */ }
    .hub-interface .hub-viewport .no-image {
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-mono);
      color: var(--accent-secondary);
      font-size: 1rem;
      opacity: 0.8;
      letter-spacing: 3px;
      background: repeating-linear-gradient(0deg, black, black 2px, #161b22 4px);
      border: 1px solid var(--color-note);
      width: 98%;
      aspect-ratio: 4 / 1; }
  .hub-interface .hub-sidebar {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column; }
    .hub-interface .hub-sidebar .sidebar-header {
      padding: 15px 20px;
      font-family: var(--font-mono);
      text-transform: uppercase;
      font-size: 18px;
      letter-spacing: 0.1rem;
      display: flex;
      justify-content: space-between; }
      .hub-interface .hub-sidebar .sidebar-header .header-count {
        color: var(--color-note);
        font-size: 16px; }
    .hub-interface .hub-sidebar .hub-toc {
      flex: 1;
      overflow-y: auto;
      user-select: none; }
      .hub-interface .hub-sidebar .hub-toc::-webkit-scrollbar {
        width: 4px; }
      .hub-interface .hub-sidebar .hub-toc::-webkit-scrollbar-track {
        background: transparent; }
      .hub-interface .hub-sidebar .hub-toc::-webkit-scrollbar-thumb {
        background: var(--accent); }
      .hub-interface .hub-sidebar .hub-toc .toc-category .category-header {
        padding: 12px 20px;
        cursor: pointer;
        list-style: none;
        font-family: var(--font-mono);
        font-size: 1rem;
        color: var(--color-text);
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--color-note);
        transition: all 0.2s;
        z-index: 1; }
        .hub-interface .hub-sidebar .hub-toc .toc-category .category-header:hover {
          background: rgba(var(--accent-rgb), 0.05); }
        .hub-interface .hub-sidebar .hub-toc .toc-category .category-header::-webkit-details-marker {
          display: none; }
        .hub-interface .hub-sidebar .hub-toc .toc-category .category-header .category-name {
          flex: 1;
          letter-spacing: 1px; }
        .hub-interface .hub-sidebar .hub-toc .toc-category .category-header .category-count {
          color: var(--color-note);
          font-size: 0.75rem; }
      .hub-interface .hub-sidebar .hub-toc .toc-category[open] .category-header {
        border-bottom: 1px solid var(--color-note); }
      .hub-interface .hub-sidebar .hub-toc .toc-category .category-items {
        padding-left: 10px; }
      .hub-interface .hub-sidebar .hub-toc .toc-entry {
        display: flex;
        padding: 0 15px;
        margin: 10px 0;
        text-decoration: none;
        color: var(--color-text);
        transition: all 0.2s ease; }
        .hub-interface .hub-sidebar .hub-toc .toc-entry .entry-hex {
          margin-right: 12px;
          color: var(--color-note); }
        .hub-interface .hub-sidebar .hub-toc .toc-entry .entry-header {
          display: block;
          font-family: var(--font-mono);
          font-size: 1rem;
          text-transform: uppercase;
          letter-spacing: 0.1rem; }
        .hub-interface .hub-sidebar .hub-toc .toc-entry .entry-commit {
          display: block;
          font-size: 0.9rem;
          color: var(--color-note);
          letter-spacing: 0.1rem;
          font-family: var(--font-mono); }
        .hub-interface .hub-sidebar .hub-toc .toc-entry:hover {
          background: #5353614a; }
        .hub-interface .hub-sidebar .hub-toc .toc-entry.active {
          background: rgba(var(--accent-rgb), 0.1);
          border-left: 3px solid var(--accent); }
          .hub-interface .hub-sidebar .hub-toc .toc-entry.active .entry-hex, .hub-interface .hub-sidebar .hub-toc .toc-entry.active .entry-header {
            color: var(--accent); }

@media screen and (max-width: 768px) {
  .hub-interface {
    flex-direction: column;
    height: auto;
    overflow: visible;
    margin: 10px auto; }
    .hub-interface .hub-viewport {
      border-right: none;
      border-bottom: 1px solid var(--color-note);
      order: 2; }
      .hub-interface .hub-viewport .no-image {
        width: 100%;
        aspect-ratio: 16 / 9; }
    .hub-interface .hub-sidebar {
      flex: none;
      width: 100%;
      order: 1;
      max-height: 50vh; }
      .hub-interface .hub-sidebar .sidebar-header {
        display: none; }
      .hub-interface .hub-sidebar .hub-toc .category-header {
        padding: 10px 15px;
        font-size: 0.9rem; }
      .hub-interface .hub-sidebar .hub-toc .toc-entry {
        padding: 0 10px;
        margin: 5px 0; }
        .hub-interface .hub-sidebar .hub-toc .toc-entry .entry-hex {
          margin-right: 8px;
          font-size: 0.8rem; }
        .hub-interface .hub-sidebar .hub-toc .toc-entry .entry-header {
          font-size: 0.9rem; } }
.classified-warning {
  text-transform: uppercase;
  margin: 20px auto;
  font-family: var(--font-mono);
  width: 80%;
  text-align: center; }

.btn-classified {
  background: var(--accent-secondary);
  color: var(--color-text);
  font-family: var(--font-mono);
  border: 2px solid var(--accent-secondary);
  margin: 15px auto;
  padding: 5px 15px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  transition: all 0.3s ease;
  font-size: 16px;
  text-align: center;
  min-width: 100px; }

.btn-classified:hover {
  background: transparent;
  border: 2px solid var(--accent-secondary); }

.btn-classified.active {
  background: var(--color-note);
  border: 2px solid var(--color-note); }

.btn-classified.active:hover {
  background: transparent;
  border: 2px solid var(--color-note); }

.classified-hide {
  margin-top: 30px;
  display: none; }
  .classified-hide p a {
    border-bottom: 0.5px solid var(--color-text); }

.system-announcement {
  cursor: default;
  padding: 24px; }
  .system-announcement .announcement-panel {
    width: min(920px, 92vw);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-note);
    backdrop-filter: blur(10px);
    background: linear-gradient(var(--accent-dim), var(--accent-dim)) top 10px left 10px/18px 1px no-repeat, linear-gradient(var(--accent-dim), var(--accent-dim)) top 10px left 10px/1px 18px no-repeat, linear-gradient(var(--accent-dim), var(--accent-dim)) top 10px right 10px/18px 1px no-repeat, linear-gradient(var(--accent-dim), var(--accent-dim)) top 10px right 10px/1px 18px no-repeat, linear-gradient(var(--accent-dim), var(--accent-dim)) bottom 10px left 10px/18px 1px no-repeat, linear-gradient(var(--accent-dim), var(--accent-dim)) bottom 10px left 10px/1px 18px no-repeat, linear-gradient(var(--accent-dim), var(--accent-dim)) bottom 10px right 10px/18px 1px no-repeat, linear-gradient(var(--accent-dim), var(--accent-dim)) bottom 10px right 10px/1px 18px no-repeat, linear-gradient(rgba(var(--color-note-rgb), 0.12), rgba(var(--color-note-rgb), 0.12)) top 10px left 36px/calc(100% - 72px) 1px no-repeat, linear-gradient(rgba(var(--color-note-rgb), 0.12), rgba(var(--color-note-rgb), 0.12)) bottom 10px left 36px/calc(100% - 72px) 1px no-repeat, linear-gradient(rgba(var(--color-note-rgb), 0.12), rgba(var(--color-note-rgb), 0.12)) top 36px left 10px/1px calc(100% - 72px) no-repeat, linear-gradient(rgba(var(--color-note-rgb), 0.12), rgba(var(--color-note-rgb), 0.12)) bottom 36px right 10px/1px calc(100% - 72px) no-repeat, color-mix(in srgb, var(--bg-color), transparent 50%);
    animation: zoomIn 0.25s ease-out;
    overflow: hidden; }
  .system-announcement .announcement-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 5px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.16rem;
    font-family: var(--font-mono);
    color: var(--color-note); }
  .system-announcement .announcement-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px; }
    .system-announcement .announcement-tag::before {
      content: "";
      display: inline-block;
      height: 9px;
      width: 9px;
      background-color: var(--accent-secondary); }
  .system-announcement .announcement-close {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--color-note);
    font-size: 38px;
    line-height: 1;
    margin-right: 20px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    display: none; }
    .system-announcement .announcement-close:hover {
      color: var(--accent); }
  .system-announcement .announcement-body {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    padding: 18px 22px;
    overflow: auto;
    font-family: var(--font-mono);
    color: var(--color-text);
    letter-spacing: 0.04rem;
    font-size: 0.95rem;
    margin: 10px 20px;
    padding-left: 18px; }
    .system-announcement .announcement-body::-webkit-scrollbar {
      display: none;
      /* Chrome, Safari */ }
    .system-announcement .announcement-body h1, .system-announcement .announcement-body h2, .system-announcement .announcement-body h3 {
      text-transform: uppercase;
      letter-spacing: 0.14rem;
      color: var(--accent);
      margin-top: 0; }
    .system-announcement .announcement-body p, .system-announcement .announcement-body li {
      opacity: 0.92; }
    .system-announcement .announcement-body a {
      color: var(--color-text);
      border-bottom: 0.5px solid var(--color-text);
      text-decoration: none; }
      .system-announcement .announcement-body a:hover {
        color: var(--accent);
        border-bottom-color: var(--accent); }
  .system-announcement .announcement-actions {
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 12px; }

/*
<div class="comm-log" markdown = "1">
{% capture redacted_msg %}
守望者深空阵列探测器已上线。
{% endcapture %}

{% include dialogue.html 
time = "1538-02-21 A.U. 00:02:11 AST"
id="ADMIN-X-002" p="C"
msg=redacted_msg %}

<div style = "padding-left: 25px;">
{% include dialogue.html 
time = "1538-02-21 A.U. 00:02:13 AST"
id="ADMIN-X-001" p="E"
msg="请密切观察深空荒漠WN-327至WN-327区域。" %}
</div>
</div>

*/
.comm-log {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  border: 1px solid var(--color-note);
  margin: 2rem auto;
  overflow-y: scroll;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  max-height: 350px;
  background: linear-gradient(var(--accent-dim), var(--accent-dim)) top 10px left 10px/18px 1px no-repeat, linear-gradient(var(--accent-dim), var(--accent-dim)) top 10px left 10px/1px 18px no-repeat, linear-gradient(var(--accent-dim), var(--accent-dim)) top 10px right 10px/18px 1px no-repeat, linear-gradient(var(--accent-dim), var(--accent-dim)) top 10px right 10px/1px 18px no-repeat, linear-gradient(var(--accent-dim), var(--accent-dim)) bottom 10px left 10px/18px 1px no-repeat, linear-gradient(var(--accent-dim), var(--accent-dim)) bottom 10px left 10px/1px 18px no-repeat, linear-gradient(var(--accent-dim), var(--accent-dim)) bottom 10px right 10px/18px 1px no-repeat, linear-gradient(var(--accent-dim), var(--accent-dim)) bottom 10px right 10px/1px 18px no-repeat, linear-gradient(rgba(var(--color-note-rgb), 0.12), rgba(var(--color-note-rgb), 0.12)) top 10px left 36px/calc(100% - 72px) 1px no-repeat, linear-gradient(rgba(var(--color-note-rgb), 0.12), rgba(var(--color-note-rgb), 0.12)) bottom 10px left 36px/calc(100% - 72px) 1px no-repeat, linear-gradient(rgba(var(--color-note-rgb), 0.12), rgba(var(--color-note-rgb), 0.12)) top 36px left 10px/1px calc(100% - 72px) no-repeat, linear-gradient(rgba(var(--color-note-rgb), 0.12), rgba(var(--color-note-rgb), 0.12)) bottom 36px right 10px/1px calc(100% - 72px) no-repeat, color-mix(in srgb, var(--bg-color), transparent 20%); }
  .comm-log::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */ }

.msg-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  padding: 20px 0; }

.msg-wrap {
  display: flex;
  flex-direction: row;
  width: 90%;
  margin: 10px auto;
  box-sizing: border-box; }

.msg-time {
  letter-spacing: 0.2rem;
  font-family: var(--font-mono);
  color: var(--accent);
  text-align: right;
  margin: 0 20px; }

.msg-meta {
  width: 100px;
  letter-spacing: 0.1rem;
  flex-shrink: 0;
  font-family: var(--font-mono); }

.speaker-label {
  display: block;
  color: var(--color-note); }

.speaker-name {
  display: block;
  color: var(--accent); }

.msg-content {
  border-left: 2px solid var(--accent); }
  .msg-content > p:first-child {
    margin-top: 0; }
  .msg-content > p:last-child {
    margin-bottom: 0; }
  .msg-content p a {
    border-bottom: 0.5px solid var(--color-text); }

.msg-container:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  width: 75%;
  margin: 0 auto;
  border-bottom: 1px solid var(--color-note); }

/*
<div class="annotation-container">
<div class="annotation">

</div>
<div class = "signature">[] 1421-11-09 A.U. 13:21:44 AST</div>
</div>
*/
/* Scripted Annotation */
.annotation-container {
  margin: 45px auto;
  position: relative;
  padding: 25px;
  z-index: 1;
  max-width: 95%; }
  .annotation-container::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    left: 10px;
    bottom: 10px;
    border: 1px dashed var(--color-note);
    z-index: -2; }
  .annotation-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color);
    opacity: 0.9;
    z-index: -1;
    border: 1px solid var(--color-note); }

/* When a `.wiki-sidebar` infobox is floated to the right, make annotations size to
   the remaining column instead of overlapping the float. */
.main-container > .wiki-sidebar ~ .annotation-container {
  display: flow-root;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0; }

.annotation {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--color-text);
  letter-spacing: 0.1rem; }

.signature {
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: right;
  letter-spacing: 0.1rem;
  color: var(--accent); }
  .signature::before {
    content: 'Committed by: ';
    display: contents;
    text-transform: uppercase;
    color: var(--color-note); }
