@font-face {
  font-family: "Yuji Syuku";
  src: url("./assets/fonts/yujisyuku/YujiSyuku-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --phi: 1.61803398875;
  --paper: #f3ede2;
  --paper-raised: #e8dece;
  --paper-light: #faf6ee;
  --ink: #241f29;
  --ink-muted: #645c68;
  --amethyst: #685078;
  --amethyst-deep: #382b43;
  --gold: #9a7840;
  --gold-light: #d3bc8d;
  --rule: rgba(36, 31, 41, 0.18);
  --rule-strong: rgba(36, 31, 41, 0.34);
  --radius: 26px;
  --page-gutter: clamp(1rem, 4vw, 2.5rem);
  --shell: calc(100vw - (var(--page-gutter) * 2));
  --prose: 68ch;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --ux-motion-duration-press: 120ms;
  --ux-motion-duration-standard: 180ms;
  --ux-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ux-motion-press-distance: 1px;
  --ux-motion-menu-distance: 0.35rem;
  color-scheme: light;
}

@media (orientation: landscape) {
  :root {
    --shell: min(calc(100vw / var(--phi)), 78rem);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 4%, rgba(104, 80, 120, 0.08), transparent 24rem),
    linear-gradient(180deg, var(--paper-light) 0, var(--paper) 28rem, #eee5d7 100%);
  color: var(--ink);
  font-family: "Yuji Syuku";
  font-size: 1.0625rem;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea,
summary {
  font: inherit;
}

img {
  max-width: 100%;
}

a {
  color: var(--amethyst-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.24em;
}

a:hover {
  color: var(--amethyst);
}

:focus-visible {
  outline: 3px solid var(--amethyst);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  inset: 0 auto auto 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border: 1px solid var(--amethyst);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--paper-light);
  color: var(--ink);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
main {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  display: grid;
  gap: var(--space-4);
  padding-block: 1rem 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.24;
}

.brand-name {
  font-size: 1.18rem;
}

.brand-name,
.brand-copy small,
.header-status,
.primary-nav,
.mobile-menu,
h1,
h2,
h3,
.eyebrow,
.record-date,
.section-index,
.motto,
.motto-translation,
.button-link,
.status-label,
.closing-statement p {
  font-family: "Yuji Syuku";
}

.brand-copy small,
.header-status {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(36, 31, 41, 0.1);
}

.primary-nav a,
.mobile-menu__panel a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color var(--ux-motion-duration-standard) var(--ux-motion-ease),
    border-color var(--ux-motion-duration-standard) var(--ux-motion-ease),
    transform var(--ux-motion-duration-press) var(--ux-motion-ease);
}

.primary-nav a:focus-visible,
.mobile-menu__panel a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.primary-nav a:active,
.mobile-menu__panel a:active,
.language-switcher__panel a:active,
.secondary-nav__panel a:active {
  transform: translateY(var(--ux-motion-press-distance));
}

@media (hover: hover) and (pointer: fine) {
  .primary-nav a:hover,
  .mobile-menu__panel a:hover {
    color: var(--ink);
    border-bottom-color: var(--gold);
  }
}

.mobile-menu {
  display: none;
}

.floating-menu {
  margin: 0;
}

.floating-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  list-style: none;
  transition:
    border-color var(--ux-motion-duration-standard) var(--ux-motion-ease),
    background-color var(--ux-motion-duration-standard) var(--ux-motion-ease),
    transform var(--ux-motion-duration-press) var(--ux-motion-ease);
}

.floating-menu > summary::-webkit-details-marker {
  display: none;
}

.floating-menu > summary::after {
  display: inline-block;
  content: "⌄";
  color: var(--gold);
  line-height: 1;
  transition: transform var(--ux-motion-duration-standard) var(--ux-motion-ease);
}

.floating-menu[open] > summary::after {
  transform: rotate(180deg);
}

.floating-menu__backdrop {
  display: none;
}

.footer-menu > summary:active,
.mobile-menu > summary:active {
  transform: translateY(var(--ux-motion-press-distance));
}

main {
  padding-bottom: var(--space-8);
}

.hero,
.page-hero,
.section,
.closing-statement {
  max-width: 100%;
}

.prose > * {
  max-width: var(--prose);
}

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 7vw, 5.25rem) clamp(2.75rem, 6vw, 4.25rem);
}

.hero-seal {
  display: none;
  position: absolute;
  z-index: 0;
  inset-block-start: clamp(3.25rem, 5vw, 4.5rem);
  inset-inline-end: clamp(0rem, 2vw, 1.5rem);
  width: clamp(7.25rem, 10vw, 9rem);
  margin: 0;
  opacity: 0.68;
  pointer-events: none;
}

.hero > :not(.hero-seal) {
  position: relative;
  z-index: 1;
  max-width: var(--prose);
}

.hero-seal img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 1200px) {
  .hero-seal {
    display: block;
  }

  .hero > :not(.hero-seal) {
    max-width: min(var(--prose), calc(100% - 10.5rem));
  }
}

.page-hero {
  padding-block: clamp(3.25rem, 8vw, 6rem) clamp(2.25rem, 5vw, 3.75rem);
}

h1,
h2,
h3,
p,
dl,
ol,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.65rem, 6.5vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.7rem, 5.6vw, 4rem);
}

h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.2;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  line-height: 1.3;
}

p,
li,
dd {
  color: var(--ink-muted);
}

strong,
dt {
  color: var(--ink);
  font-weight: 600;
}

.eyebrow,
.record-date,
.section-index {
  margin-bottom: 0.55rem;
  color: var(--gold);
  font-size: 0.87rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.motto {
  margin-bottom: 0.2rem;
  color: var(--amethyst-deep);
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.motto.small {
  font-size: clamp(1.65rem, 4vw, 2.55rem);
}

.motto-translation {
  margin-bottom: 1.05rem;
  color: var(--amethyst);
  font-size: clamp(1.18rem, 2.2vw, 1.5rem);
}

.lede {
  max-width: 60ch;
  color: var(--ink);
  font-size: clamp(1.12rem, 2vw, 1.34rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
  margin-top: 1.4rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.68rem 1.05rem;
  border: 1px solid var(--amethyst);
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    color var(--ux-motion-duration-standard) var(--ux-motion-ease),
    border-color var(--ux-motion-duration-standard) var(--ux-motion-ease),
    background-color var(--ux-motion-duration-standard) var(--ux-motion-ease),
    transform var(--ux-motion-duration-press) var(--ux-motion-ease);
}

.button-link:active {
  transform: translateY(var(--ux-motion-press-distance));
}

.button-link.primary {
  background: var(--amethyst-deep);
  color: var(--paper-light);
}

.button-link.primary:focus-visible {
  border-color: var(--gold-light);
  background: var(--amethyst);
  color: var(--paper-light);
  outline-color: var(--gold-light);
}

.button-link.secondary {
  background: transparent;
  color: var(--amethyst-deep);
}

.button-link.secondary:focus-visible {
  border-color: var(--gold);
  background: rgba(154, 120, 64, 0.08);
  color: var(--amethyst-deep);
}

.button-link.inverse {
  border-color: var(--gold-light);
  color: var(--paper-light);
}

.button-link.inverse:focus-visible {
  border-color: var(--paper-light);
  background: rgba(250, 246, 238, 0.12);
  color: var(--paper-light);
  outline-color: var(--gold-light);
}

@media (hover: hover) and (pointer: fine) {
  .button-link.primary:hover {
    border-color: var(--gold-light);
    background: var(--amethyst);
    color: var(--paper-light);
  }

  .button-link.secondary:hover {
    border-color: var(--gold);
    background: rgba(154, 120, 64, 0.08);
    color: var(--amethyst-deep);
  }

  .button-link.inverse:hover {
    border-color: var(--paper-light);
    background: rgba(250, 246, 238, 0.12);
    color: var(--paper-light);
  }
}

.text-link {
  display: inline;
  color: var(--amethyst-deep);
  text-decoration-color: var(--gold);
}

.inverse-link {
  color: var(--paper-light);
  text-decoration-color: var(--gold-light);
  transition:
    color var(--ux-motion-duration-standard) var(--ux-motion-ease),
    text-decoration-color var(--ux-motion-duration-standard) var(--ux-motion-ease);
}

.inverse-link:hover,
.inverse-link:focus-visible,
.inverse-link:active {
  color: var(--paper-light);
  text-decoration-color: var(--paper-light);
}

.inverse-link:focus-visible {
  outline-color: var(--gold-light);
}

.status-note {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 0.4rem 1.25rem;
  max-width: var(--prose);
  margin-top: 2rem;
  padding-block: 0.9rem;
  border-block: 1px solid var(--rule);
}

.status-note span {
  color: var(--ink-muted);
}

.section {
  padding-block: clamp(2.8rem, 7vw, 5.25rem);
  border-top: 1px solid var(--rule);
}

.home-page .section {
  padding-block: clamp(2.6rem, 5.5vw, 4.25rem);
}

.section-intro {
  max-width: var(--prose);
  margin-bottom: 2rem;
}

.editorial-list,
.field-sections,
.ecosystem-list,
.record-list,
.work-list {
  display: grid;
  gap: 0;
}

.work-preview {
  display: grid;
  gap: 0;
}

.work-preview__entry {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}

.work-preview__entry:first-child {
  border-top-color: var(--rule-strong);
}

.work-preview__entry h3 a {
  color: var(--amethyst-deep);
  text-decoration-color: transparent;
  transition:
    color var(--ux-motion-duration-standard) var(--ux-motion-ease),
    text-decoration-color var(--ux-motion-duration-standard) var(--ux-motion-ease);
}

.work-preview__entry h3 a:hover,
.work-preview__entry h3 a:focus-visible {
  color: var(--amethyst);
  text-decoration-color: var(--gold);
}

.work-preview__entry > p:last-child {
  max-width: 60ch;
  margin-bottom: 0;
}

.editorial-list article,
.field-sections article,
.ecosystem-list article,
.record-entry,
.work-entry {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}

.editorial-list article:first-child,
.field-sections article:first-child,
.ecosystem-list article:first-child,
.record-entry:first-child,
.work-entry:first-child {
  border-top-color: var(--rule-strong);
}

.boundary {
  font-size: 0.98rem;
}

.status-label {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 0.65rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: var(--amethyst-deep);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
  vertical-align: 0.12em;
}

h3 .status-label {
  margin: 0 0 0 0.45rem;
}

.status-label.dormant,
.status-label.unavailable {
  color: var(--ink-muted);
}

.status-label.current {
  color: #3e654e;
}

.status-label.interim,
.status-label.experimental {
  color: #7a5b27;
}

.status-label.planned {
  color: var(--amethyst);
}

.status-label.pending {
  color: #7a5b27;
}

.status-label.unresolved {
  color: #80514d;
}

.custodia-band {
  margin-block: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 6vw, 4.2rem);
  border: 0;
  border-radius: var(--radius);
  background: var(--amethyst-deep);
  color: var(--paper-light);
}

.home-page .custodia-band {
  margin-block: clamp(1rem, 3vw, 2rem);
}

.custodia-band h2,
.custodia-band strong {
  color: var(--paper-light);
}

.custodia-band p {
  color: #e2d8ca;
}

.custodia-band .eyebrow {
  color: var(--gold-light);
}

.principle-list,
.governance-steps,
.publication-order {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: principles;
}

.principle-list li,
.governance-steps li {
  display: grid;
  gap: 0.25rem;
  padding: 1.15rem 0 1.15rem 2.8rem;
  border-top: 1px solid var(--rule);
  position: relative;
}

.principle-list li::before {
  counter-increment: principles;
  content: counter(principles, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.25rem;
  color: var(--gold);
  font-size: 0.78rem;
}

.principle-list.compact li:nth-child(n + 5) {
  display: none;
}

.principle-list span,
.governance-steps span {
  color: var(--ink-muted);
}

.split-links {
  display: grid;
  gap: 2rem;
}

.link-list,
.plain-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.link-list li,
.plain-list li {
  border-top: 1px solid var(--rule);
}

.link-list a {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  text-decoration: none;
}

.link-list span {
  color: var(--ink-muted);
}

.plain-list li {
  position: relative;
  padding: 1rem 0 1rem 1.4rem;
  color: var(--ink-muted);
}

.plain-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.closing-statement {
  padding-block: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--rule-strong);
}

.closing-statement p {
  max-width: 48ch;
  color: var(--amethyst-deep);
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  line-height: 1.45;
}

.work-entry {
  scroll-margin-top: 2rem;
}

.work-entry .work-purpose {
  max-width: var(--prose);
  color: var(--ink);
  font-size: 1.08rem;
}

.metadata-row,
.definition-list,
.status-register,
.verification-layers {
  display: grid;
  gap: 0;
  margin: 1.2rem 0 0;
}

.metadata-row div,
.definition-list div,
.status-register div,
.verification-layers div {
  display: grid;
  gap: 0.25rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--rule);
}

.metadata-row dt,
.definition-list dt,
.status-register dt,
.verification-layers dt {
  color: var(--gold);
  font-size: 0.86rem;
}

.metadata-row dd,
.definition-list dd,
.status-register dd,
.verification-layers dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.empty-register,
.financial-statement {
  margin-block: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 5vw, 3rem);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: rgba(250, 246, 238, 0.55);
}

.publication-order li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--rule);
}

.publication-order span {
  min-width: 1.5rem;
  color: var(--gold);
}

.governance-steps {
  counter-reset: none;
}

.record-date {
  text-transform: none;
}

.uid-value {
  display: inline-block;
  white-space: nowrap;
  color: var(--ink);
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

code,
pre {
  font-family: "Yuji Syuku";
}

code {
  color: var(--amethyst-deep);
  overflow-wrap: anywhere;
}

.site-footer {
  display: grid;
  gap: 1.5rem;
  padding-block: 2.25rem 3.5rem;
  border-top: 1px solid var(--rule-strong);
}

.footer-identity {
  display: grid;
  gap: 0.2rem;
}

.footer-identity strong {
  font-size: 1.08rem;
}

.footer-identity span,
.footer-note {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer-menu {
  position: relative;
  width: fit-content;
}

.footer-menu > summary {
  min-height: 2.9rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: rgba(250, 246, 238, 0.55);
  color: var(--ink);
  cursor: pointer;
}

.footer-menu > summary:focus-visible,
.mobile-menu > summary:focus-visible {
  border-color: var(--gold);
  background: rgba(154, 120, 64, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .footer-menu > summary:hover,
  .mobile-menu > summary:hover {
    border-color: var(--gold);
    background: rgba(154, 120, 64, 0.08);
  }
}

.menu-current {
  color: var(--ink-muted);
}

.footer-menu__panel {
  position: absolute;
  z-index: 40;
  bottom: calc(100% + 0.75rem);
  left: 0;
  display: grid;
  width: min(22rem, calc(100vw - (var(--page-gutter) * 2)));
  max-height: calc(100vh - (var(--page-gutter) * 2));
  max-height: calc(100dvh - (var(--page-gutter) * 2));
  overflow-y: auto;
  padding: 0.6rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: 0 1rem 2.5rem rgba(36, 31, 41, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(var(--ux-motion-menu-distance));
  transition:
    opacity var(--ux-motion-duration-standard) var(--ux-motion-ease),
    transform var(--ux-motion-duration-standard) var(--ux-motion-ease),
    visibility 0s linear var(--ux-motion-duration-standard);
}

.footer-menu[open] > .footer-menu__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s, 0s, 0s;
}

.language-switcher__panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.language-switcher__panel a {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink-muted);
  text-decoration: none;
  transition:
    color var(--ux-motion-duration-standard) var(--ux-motion-ease),
    border-color var(--ux-motion-duration-standard) var(--ux-motion-ease),
    background-color var(--ux-motion-duration-standard) var(--ux-motion-ease),
    transform var(--ux-motion-duration-press) var(--ux-motion-ease);
}

.language-switcher__panel a:focus-visible,
.language-switcher__panel a[aria-current="true"] {
  border-color: var(--gold);
  color: var(--ink);
  background: rgba(154, 120, 64, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .language-switcher__panel a:hover {
    border-color: var(--gold);
    color: var(--ink);
    background: rgba(154, 120, 64, 0.08);
  }
}

.language-loading {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--page-gutter);
  background: rgba(56, 43, 67, 0.72);
  color: var(--paper-light);
  cursor: progress;
}

.language-loading[hidden] {
  display: none;
}

.language-loading__panel {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  max-width: min(100%, 34rem);
  padding: 1rem 1.25rem;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  background: var(--amethyst-deep);
  box-shadow: 0 1rem 2.5rem rgba(36, 31, 41, 0.3);
}

.language-loading__indicator {
  flex: 0 0 auto;
  width: 1.2rem;
  aspect-ratio: 1;
  border: 2px solid rgba(250, 246, 238, 0.38);
  border-top-color: var(--paper-light);
  border-radius: 50%;
  animation: language-loading-spin 0.72s linear infinite;
}

@keyframes language-loading-spin {
  to {
    transform: rotate(1turn);
  }
}

.loading-interface {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
  background: rgba(36, 31, 41, 0.58);
  backdrop-filter: blur(5px) saturate(1.02);
  cursor: progress;
  pointer-events: auto;
}

.loading-interface__panel {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: min(100%, 28rem);
  min-height: 4.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  background: rgba(56, 43, 67, 0.96);
  box-shadow: 0 1rem 2.5rem rgba(36, 31, 41, 0.3);
  color: var(--paper-light);
  line-height: 1.5;
}

.loading-interface[hidden] {
  display: none;
}

.loading-interface__indicator {
  flex: 0 0 auto;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid rgba(250, 246, 238, 0.38);
  border-top-color: var(--paper-light);
  border-radius: 50%;
  animation: language-loading-spin 0.72s linear infinite;
}

html[data-loading-interface="active"]::before {
  position: fixed;
  z-index: 107;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  content: "";
  transform-origin: left;
  animation: loading-interface-progress 1.2s ease-in-out infinite;
}

@keyframes loading-interface-progress {
  0% {
    opacity: 0.42;
    transform: scaleX(0.16);
  }

  50% {
    opacity: 1;
    transform: scaleX(0.72);
  }

  100% {
    opacity: 0.42;
    transform: scaleX(0.16);
  }
}

.secondary-nav {
  position: relative;
}

.secondary-nav__panel {
  gap: 0;
}

.secondary-nav__panel a {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-muted);
  text-decoration: none;
  transition:
    color var(--ux-motion-duration-standard) var(--ux-motion-ease),
    border-color var(--ux-motion-duration-standard) var(--ux-motion-ease),
    text-decoration-color var(--ux-motion-duration-standard) var(--ux-motion-ease),
    transform var(--ux-motion-duration-press) var(--ux-motion-ease);
}

.secondary-nav__panel a:last-child {
  border-bottom: 0;
}

.secondary-nav__panel a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

@media (hover: hover) and (pointer: fine) {
  .secondary-nav__panel a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--gold);
  }
}

.ledger-summary {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--rule-strong);
}

.ledger-summary div {
  display: grid;
  gap: 0.45rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.ledger-summary dt {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.ledger-summary dd {
  display: grid;
  gap: 0.3rem;
  margin: 0;
}

.ledger-summary dd strong {
  color: var(--amethyst-deep);
  font-size: clamp(1.22rem, 2.6vw, 1.65rem);
  font-weight: 400;
  line-height: 1.3;
}

.ledger-summary dd span {
  max-width: 48ch;
  color: var(--ink-muted);
}

.accounting-metrics {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--rule-strong);
}

.accounting-metrics div {
  display: grid;
  gap: 0.45rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.accounting-metrics dt {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.accounting-metrics dd {
  display: grid;
  gap: 0.3rem;
  margin: 0;
}

.accounting-metrics dd strong {
  color: var(--amethyst-deep);
  font-size: clamp(1.08rem, 2.2vw, 1.38rem);
  font-weight: 400;
  line-height: 1.35;
}

.accounting-metrics dd span,
.accounting-current-status__deadline,
.accounting-entry-provider,
.accounting-entry-date {
  color: var(--ink-muted);
}

.accounting-current-status {
  max-width: var(--prose);
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: rgba(232, 222, 206, 0.48);
}

.accounting-current-status h3 {
  margin-bottom: 0.35rem;
}

.accounting-current-status .eyebrow {
  margin-bottom: 0.5rem;
}

.accounting-current-status__deadline {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.accounting-entry-groups {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.accounting-entry-group {
  min-width: 0;
}

.accounting-entry-group > h3 {
  color: var(--amethyst-deep);
}

.accounting-entry {
  margin-top: 1.5rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: rgba(250, 246, 238, 0.55);
}

.accounting-entry--pending {
  background: rgba(232, 222, 206, 0.62);
}

.accounting-entry h3 {
  margin-bottom: 0.25rem;
}

.accounting-entry > p:last-child {
  margin-bottom: 0;
}

.accounting-entry-details {
  display: grid;
  gap: 0;
  margin: 1.2rem 0 0;
}

.accounting-entry-details div {
  display: grid;
  gap: 0.25rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--rule);
}

.accounting-entry-details dt {
  color: var(--gold);
  font-size: 0.86rem;
}

.accounting-entry-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.accounting-unavailable {
  margin-top: 1.5rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: rgba(250, 246, 238, 0.55);
}

.accounting-unavailable p:last-child {
  margin-bottom: 0;
}

.accounting-methodology-list {
  margin-top: 0.75rem;
}

.download-list {
  display: grid;
  gap: 0;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-strong);
}

.download-list li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
}

.methodology-columns {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 1.5rem;
}

.methodology-columns > div {
  min-width: 0;
}

.methodology-columns h3 {
  margin-bottom: 0.35rem;
  color: var(--amethyst-deep);
}

.ledger-table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: rgba(250, 246, 238, 0.55);
}

.ledger-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  text-align: left;
}

.ledger-table caption {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink);
  text-align: left;
}

.ledger-table th,
.ledger-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.ledger-table th {
  color: var(--amethyst-deep);
  font-size: 0.9rem;
  font-weight: 400;
}

.ledger-table td {
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

.ledger-table tr:last-child td {
  border-bottom: 0;
}

.ledger-annotation {
  max-width: var(--prose);
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

@media (min-width: 900px) {
  .split-links {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
    align-items: start;
  }

  .metadata-row div,
  .definition-list div,
  .status-register div,
  .verification-layers div {
    grid-template-columns: minmax(9rem, 0.34fr) minmax(0, 1fr);
    gap: 1.5rem;
  }

  .ledger-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 5rem);
  }

  .accounting-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 5rem);
  }

  .accounting-metrics div:nth-child(odd) {
    padding-right: clamp(1rem, 3vw, 3rem);
  }

  .accounting-metrics div:nth-child(even) {
    padding-left: clamp(1rem, 3vw, 3rem);
  }

  .accounting-entry-details div {
    grid-template-columns: minmax(9rem, 0.34fr) minmax(0, 1fr);
    gap: 1.5rem;
  }

  .ledger-summary div:nth-child(odd) {
    padding-right: clamp(1rem, 3vw, 3rem);
  }

  .ledger-summary div:nth-child(even) {
    padding-left: clamp(1rem, 3vw, 3rem);
  }

  .methodology-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .home-page .editorial-list,
  .home-page .work-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 4vw, 3.5rem);
  }

  .home-page .editorial-list article:nth-child(2),
  .home-page .work-preview__entry:nth-child(2) {
    border-top-color: var(--rule-strong);
  }
}

@media (max-width: 760px) {
  .header-status,
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    position: static;
  }

  .mobile-menu > summary {
    width: fit-content;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    color: var(--ink);
    cursor: pointer;
    list-style-position: inside;
  }

  .mobile-menu > .floating-menu__backdrop {
    position: fixed;
    z-index: 104;
    inset: 0;
    display: block;
    background: rgba(56, 43, 67, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity var(--ux-motion-duration-standard) var(--ux-motion-ease),
      visibility 0s linear var(--ux-motion-duration-standard);
  }

  .mobile-menu[open] > .floating-menu__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s, 0s;
  }

  .mobile-menu__panel {
    position: fixed;
    z-index: 105;
    top: 1rem;
    top: max(1rem, env(safe-area-inset-top));
    right: var(--page-gutter);
    left: var(--page-gutter);
    display: grid;
    gap: 0;
    max-height: calc(100vh - (var(--page-gutter) * 2));
    max-height: calc(100dvh - (var(--page-gutter) * 2));
    overflow-y: auto;
    padding: 0.65rem;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    background: var(--paper-light);
    box-shadow: 0 1rem 2.5rem rgba(36, 31, 41, 0.24);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(0px - var(--ux-motion-menu-distance)));
    transition:
      opacity var(--ux-motion-duration-standard) var(--ux-motion-ease),
      transform var(--ux-motion-duration-standard) var(--ux-motion-ease),
      visibility 0s linear var(--ux-motion-duration-standard);
  }

  .mobile-menu[open] > .mobile-menu__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s, 0s, 0s;
  }

  .mobile-menu__panel a {
    padding: 0.72rem 0.75rem;
    border-bottom: 1px solid var(--rule);
  }

  .mobile-menu__panel a:last-child {
    border-bottom: 0;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero {
    padding-block: 2.75rem 3rem;
  }

  .status-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
    margin-top: 1.65rem;
  }

  .actions .button-link {
    width: 100%;
  }

  .custodia-band {
    margin-inline: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .button-link,
  .primary-nav a,
  .mobile-menu__panel a,
  .language-switcher__panel a,
  .secondary-nav__panel a,
  .floating-menu > summary,
  .floating-menu > summary::after,
  .footer-menu__panel,
  .mobile-menu__panel,
  .mobile-menu > .floating-menu__backdrop {
    transition: none !important;
  }

  .button-link:active,
  .primary-nav a:active,
  .mobile-menu__panel a:active,
  .language-switcher__panel a:active,
  .secondary-nav__panel a:active,
  .footer-menu > summary:active,
  .mobile-menu > summary:active,
  .footer-menu__panel,
  .mobile-menu__panel {
    transform: none !important;
  }

  .language-loading__indicator {
    animation: none !important;
  }

  html[data-loading-interface="active"]::before,
  .loading-interface__indicator {
    animation: none !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .mobile-menu,
  .desktop-nav,
  .actions,
  .site-footer,
  .loading-interface,
  html[data-loading-interface="active"]::before,
  .language-loading {
    display: none;
  }

  .site-header,
  main {
    width: 100%;
  }
}
