:root {
  --grape: #5B2A86;
  --night: #2B123F;
  --vine: #2F8F6B;
  --gold: #D9A441;
  --mauve-bg: #EFEAF5;
  --paper: #FBFAF7;
  --ink: #241B2F;
  --ink-soft: #4A3A5C;
  --mint: #E4F3EC;
  --mist: #B9AEC9;
  --night-blue: #1B1533;
  --line: rgba(91, 42, 134, 0.18);
  --line-strong: rgba(91, 42, 134, 0.34);
  --gold-line: rgba(217, 164, 65, 0.55);
  --shadow-soft: 0 18px 40px -32px rgba(43, 18, 63, 0.45);
  --shadow-card: 0 14px 34px -28px rgba(43, 18, 63, 0.5);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --width: 1240px;
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 12% -8%, rgba(91, 42, 134, 0.1), transparent 60%),
    radial-gradient(900px 500px at 96% 4%, rgba(47, 143, 107, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(239, 234, 245, 0.55), rgba(251, 250, 247, 0) 380px);
}

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

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

button {
  color: inherit;
}

a {
  color: var(--grape);
  text-underline-offset: 0.22em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p,
ul,
ol,
dl,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

::selection {
  background: rgba(217, 164, 65, 0.35);
  color: var(--night);
}

:focus-visible {
  outline: 3px solid rgba(217, 164, 65, 0.88);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--grape);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 28px -18px rgba(43, 18, 63, 0.9);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

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

.shell {
  width: min(100% - 2.5rem, var(--width));
  margin-inline: auto;
}

.doc-shell {
  width: min(100% - 2.5rem, 1100px);
  margin-inline: auto;
}

.read-shell {
  width: min(100% - 2.5rem, 760px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.86);
  border-bottom: 1px solid rgba(91, 42, 134, 0.16);
  box-shadow: 0 12px 30px -24px rgba(43, 18, 63, 0.5);
  backdrop-filter: blur(18px) saturate(140%);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(251, 250, 247, 0.97);
  }
}

.scroll-progress {
  height: 3px;
  background: rgba(91, 42, 134, 0.12);
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--vine), var(--grape) 55%, var(--gold));
  transition: width 0.1s linear;
}

.masthead {
  background:
    linear-gradient(90deg, rgba(228, 243, 236, 0.24), rgba(239, 234, 245, 0.35) 48%, rgba(251, 250, 247, 0.18));
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 78px;
  padding-block: 0.8rem;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  text-decoration: none;
}

.brand__seal {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px 4px 14px 4px;
  background:
    linear-gradient(145deg, var(--grape), var(--night) 58%, var(--vine));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 8px 18px -12px var(--night);
  color: #F6E7B8;
}

.brand__seal::after {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px 2px 10px 2px;
  content: "";
}

.brand__seal-mark {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand__tag {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.masthead__tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  margin-left: auto;
}

.archive-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(239, 234, 245, 0.62);
  white-space: nowrap;
}

.archive-chip__key {
  color: var(--grape);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.archive-chip__value {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: clamp(230px, 25vw, 350px);
  padding: 0.35rem 0.55rem 0.35rem 0.85rem;
  border: 1px solid rgba(91, 42, 134, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(239, 234, 245, 0.56));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 8px 20px -18px rgba(43, 18, 63, 0.8);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-search:focus-within {
  border-color: var(--vine);
  box-shadow:
    0 0 0 3px rgba(47, 143, 107, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-search__icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--grape);
  border-radius: 50%;
  opacity: 0.72;
}

.nav-search__icon::after {
  position: absolute;
  right: -5px;
  bottom: -2px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--grape);
  content: "";
  transform: rotate(45deg);
}

.nav-search__field {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.nav-search__input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  appearance: none;
}

.nav-search__input::placeholder {
  color: var(--mist);
}

.nav-search__hint {
  overflow: hidden;
  color: var(--mist);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(91, 42, 134, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--grape);
  cursor: pointer;
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__label {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
}

.site-header[data-open="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header[data-open="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-band {
  border-top: 1px solid rgba(91, 42, 134, 0.12);
  background:
    linear-gradient(90deg, rgba(228, 243, 236, 0.38), rgba(239, 234, 245, 0.55) 40%, rgba(251, 250, 247, 0.3));
}

.nav-band__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 52px;
}

.nav-band__label {
  flex: none;
  padding-right: 1rem;
  border-right: 1px solid rgba(47, 143, 107, 0.25);
  color: var(--vine);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list__item {
  min-width: 0;
}

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.nav-link__num {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.nav-link__text {
  white-space: nowrap;
}

.nav-link:hover {
  border-color: rgba(91, 42, 134, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: var(--grape);
}

.nav-link[aria-current="page"] {
  border-color: var(--grape);
  background: var(--grape);
  color: #fff;
  box-shadow: 0 8px 18px -14px var(--grape);
}

.nav-link[aria-current="page"] .nav-link__num {
  color: var(--gold);
}

.nav-link.is-match {
  border-color: rgba(217, 164, 65, 0.85);
  background: rgba(251, 241, 218, 0.8);
  color: var(--grape);
}

.nav-link.is-muted {
  opacity: 0.32;
}

.nav-cta {
  flex: none;
  min-height: 34px;
  margin-left: auto;
  padding: 0.42rem 0.8rem;
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--gold {
  border-color: rgba(43, 18, 63, 0.12);
  background: linear-gradient(135deg, #E7B95C, var(--gold));
  color: var(--night);
  box-shadow: 0 8px 18px -12px rgba(217, 164, 65, 0.9);
}

.button--grape {
  border-color: rgba(43, 18, 63, 0.2);
  background: linear-gradient(135deg, #6A3599, #4A2170);
  color: #fff;
  box-shadow: 0 8px 18px -14px var(--grape);
}

.button--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--grape);
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid rgba(217, 164, 65, 0.35);
  background:
    radial-gradient(circle at 15% 0%, rgba(91, 42, 134, 0.55), transparent 40%),
    radial-gradient(circle at 88% 10%, rgba(47, 143, 107, 0.22), transparent 32%),
    linear-gradient(160deg, var(--night) 0%, var(--night-blue) 58%, #211037 100%);
  color: #F3EDF8;
}

.footer__aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 280px at 8% 0%, rgba(91, 42, 134, 0.65), transparent 65%),
    radial-gradient(520px 300px at 92% 8%, rgba(217, 164, 65, 0.16), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 88px);
  opacity: 0.9;
}

.site-footer .shell {
  position: relative;
  z-index: 1;
}

.footer__mast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(2rem, 5vw, 3.4rem) clamp(1.4rem, 3vw, 2.2rem);
}

.footer__brandline {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.footer__mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(217, 164, 65, 0.5);
  border-radius: 16px 4px 16px 4px;
  background: linear-gradient(145deg, rgba(91, 42, 134, 0.9), rgba(27, 21, 51, 0.9) 60%, rgba(47, 143, 107, 0.65));
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.04),
    0 12px 24px -18px rgba(0, 0, 0, 0.8);
  color: #F6E7B8;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.footer__title {
  color: #F7F1FB;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.footer__service {
  margin-top: 0.25rem;
  color: rgba(239, 234, 245, 0.7);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.footer__top {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(217, 164, 65, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #F0DFB4;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.footer__top::after {
  font-size: 13px;
  content: "↑";
}

.footer__top:hover {
  border-color: rgba(217, 164, 65, 0.8);
  background: rgba(217, 164, 65, 0.12);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 1.35fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(1.4rem, 3vw, 2.2rem);
  border-top: 1px solid rgba(217, 164, 65, 0.26);
  border-bottom: 1px solid rgba(217, 164, 65, 0.18);
}

.footer__col {
  min-width: 0;
}

.footer__col--wide {
  min-width: 0;
}

.footer__heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer__heading::before {
  width: 18px;
  height: 1px;
  background: var(--gold);
  content: "";
  opacity: 0.7;
}

.footer__list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  color: rgba(243, 237, 248, 0.82);
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer__link:hover {
  border-color: rgba(217, 164, 65, 0.55);
  color: var(--gold);
}

.footer__link[aria-current="page"] {
  color: var(--gold);
}

.footer__note {
  max-width: 32ch;
  margin: 0.9rem 0 0;
  color: rgba(239, 234, 245, 0.55);
  font-size: 12px;
  line-height: 1.6;
}

.footer__meta {
  display: grid;
  gap: 0.6rem;
}

.footer__meta-row {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  font-size: 12px;
  line-height: 1.6;
}

.footer__meta-key {
  color: rgba(185, 174, 201, 0.85);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.footer__meta-value {
  color: rgba(247, 241, 251, 0.9);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.2rem 1.6rem;
  color: rgba(239, 234, 245, 0.55);
  font-size: 11px;
  line-height: 1.6;
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer__legal-link {
  color: rgba(239, 234, 245, 0.62);
  text-decoration: none;
}

.footer__legal-link:hover {
  color: var(--gold);
}

.footer__copy {
  color: rgba(239, 234, 245, 0.55);
}

.footer__icp {
  color: rgba(239, 234, 245, 0.55);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.breadcrumb {
  padding-block: 1rem;
  font-size: 12px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumb__link {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb__link:hover {
  color: var(--grape);
}

.breadcrumb__sep {
  color: var(--mist);
  font-family: var(--font-mono);
}

.breadcrumb__current {
  color: var(--grape);
  font-weight: 600;
}

.section {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.section__head {
  max-width: 64ch;
  margin-bottom: 1.6rem;
}

.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--vine);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section__kicker::before {
  width: 1.2rem;
  height: 1px;
  background: var(--vine);
  content: "";
}

.section__title {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1.18;
}

.section__lede {
  color: var(--ink-soft);
  font-size: 16px;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.6rem);
}

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

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

.grid--split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.panel {
  position: relative;
  min-width: 0;
  padding: clamp(1.1rem, 2.5vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.panel--glass {
  border-color: rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(239, 234, 245, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.panel--paper {
  background: var(--paper);
}

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
}

.panel__meta {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--mist);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag--new {
  border-color: rgba(47, 143, 107, 0.35);
  background: var(--mint);
  color: var(--vine);
}

.tag--old {
  border-color: rgba(185, 174, 201, 0.65);
  background: #F3EFF8;
  color: #6B5A7D;
}

.tag--diff {
  border-color: var(--gold);
  background: #FBF1DA;
  color: #8A5B10;
}

.tag--muted {
  border-color: rgba(185, 174, 201, 0.35);
  background: rgba(239, 234, 245, 0.5);
  color: var(--mist);
}

.callout {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--vine);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--mint);
  color: var(--ink);
}

.callout--mint {
  border-left-color: var(--vine);
  background: var(--mint);
}

.callout--gold {
  border-left-color: var(--gold);
  background: #FBF3E2;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--mauve-bg), #fff 45%, var(--mint));
  box-shadow: var(--shadow-card);
}

.media-frame::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(91, 42, 134, 0.08) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(47, 143, 107, 0.06) 0 1px, transparent 1px 42px);
  content: "";
  opacity: 0.45;
}

.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide {
  aspect-ratio: 16 / 9;
}

.media-frame--portrait {
  aspect-ratio: 4 / 5;
}

.media-frame--square {
  aspect-ratio: 1;
}

.media-frame__caption {
  position: absolute;
  z-index: 2;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: rgba(27, 21, 51, 0.72);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(239, 234, 245, 0.72);
}

.tab {
  padding: 0.5rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  appearance: none;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--grape);
}

.tab[aria-selected="true"] {
  border-color: rgba(91, 42, 134, 0.22);
  background: var(--paper);
  color: var(--grape);
  box-shadow: 0 6px 16px -14px rgba(43, 18, 63, 0.5);
}

.tab-panel {
  padding-top: 1rem;
}

.tab-panel[hidden] {
  display: none;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table caption {
  padding: 0.75rem 1rem;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(91, 42, 134, 0.12);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: rgba(239, 234, 245, 0.8);
  color: var(--grape);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(239, 234, 245, 0.35);
}

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.doc-id {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border: 1px solid rgba(91, 42, 134, 0.16);
  border-radius: 5px;
  background: rgba(91, 42, 134, 0.08);
  color: var(--grape);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.rail-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.rail-layout__rail {
  position: sticky;
  top: 9.5rem;
  min-width: 0;
}

.rail-layout__body {
  min-width: 0;
}

html[data-js="true"] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html[data-js="true"] [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (max-width: 1120px) {
  .archive-chip {
    display: none;
  }

  .masthead__inner {
    gap: 1rem;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-band {
    display: none;
  }

  .site-header[data-open="true"] .nav-band {
    display: block;
    animation: navBandIn 0.22s ease both;
  }

  .nav-band__inner {
    display: block;
    min-height: 0;
    padding-block: 0.9rem 1.1rem;
  }

  .nav-band__label {
    display: none;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
    width: 100%;
  }

  .nav-link {
    align-items: center;
    justify-content: flex-start;
    min-height: 42px;
    border-color: rgba(91, 42, 134, 0.08);
    background: rgba(255, 255, 255, 0.38);
  }

  .nav-cta {
    width: 100%;
    margin-top: 0.9rem;
    margin-left: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__col--wide {
    grid-column: 1 / -1;
  }

  .rail-layout {
    grid-template-columns: 1fr;
  }

  .rail-layout__rail {
    position: static;
  }
}

@keyframes navBandIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .masthead__inner {
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-block: 0.8rem;
  }

  .brand {
    flex: 1 1 100%;
  }

  .masthead__tools {
    flex: 1 1 100%;
    width: 100%;
    gap: 0.6rem;
  }

  .nav-search {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .nav-toggle {
    flex: 0 0 auto;
  }

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

  .footer__mast {
    flex-direction: column;
  }

  .footer__top {
    align-self: flex-start;
  }

  .grid--2,
  .grid--3,
  .grid--split {
    grid-template-columns: 1fr;
  }

  .shell,
  .doc-shell,
  .read-shell {
    width: min(100% - 2rem, var(--width));
  }
}

@media (max-width: 640px) {
  .brand__tag {
    display: none;
  }

  .brand__name {
    font-size: 16.5px;
  }

  .brand__seal {
    width: 42px;
    height: 42px;
  }

  .nav-list {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__col--wide {
    grid-column: auto;
  }

  .footer__meta-row {
    grid-template-columns: 4.2rem minmax(0, 1fr);
  }

  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .nav-search {
    flex-basis: 100%;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .nav-search__hint {
    white-space: normal;
  }
}

@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;
  }

  .site-header[data-open="true"] .nav-band {
    animation: none;
  }

  html[data-js="true"] [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-progress__bar {
    transition: none;
  }
}
