:root {
  --black: #050505;
  --ink: #090909;
  --panel: #101010;
  --panel-2: #151515;
  --panel-3: #1b1b1b;
  --text: #f0f0f0;
  --muted: #9b9b9b;
  --faint: #686868;
  --line: #292929;
  --line-hot: #5d0808;
  --red: #990000;
  --red-bright: #d11313;
  --red-dark: #420000;
  --green: #67d391;
  --shell: 1240px;
  --radius: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 8%, rgba(153, 0, 0, 0.11), transparent 28rem),
    var(--ink);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.018) 4px
  );
}

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

a {
  color: inherit;
}

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

::selection {
  background: var(--red);
  color: #fff;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  transform: translateY(-160%);
  border: 1px solid var(--red-bright);
  background: #000;
  color: #fff;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.91);
  backdrop-filter: blur(15px);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(153, 0, 0, 0.34));
}

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

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-copy span {
  margin-top: 6px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  position: relative;
  padding: 12px 14px;
  color: #bdbdbd;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  background: rgba(153, 0, 0, 0.12);
  color: #fff;
  outline: none;
}

.site-nav a.active::after {
  position: absolute;
  right: 14px;
  bottom: 7px;
  left: 14px;
  height: 1px;
  content: "";
  background: var(--red-bright);
  box-shadow: 0 0 10px var(--red-bright);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.82) 48%, rgba(5, 5, 5, 0.28) 100%),
    radial-gradient(circle at 82% 45%, rgba(153, 0, 0, 0.26), transparent 31%),
    #070707;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to right, transparent 0%, #000 54%, #000 100%);
}

.hero::after {
  position: absolute;
  top: 50%;
  right: clamp(-270px, -10vw, -90px);
  z-index: -1;
  width: min(66vw, 820px);
  aspect-ratio: 1;
  content: "";
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid rgba(209, 19, 19, 0.23);
  box-shadow:
    inset 0 0 90px rgba(153, 0, 0, 0.08),
    0 0 90px rgba(153, 0, 0, 0.08);
}

.hero-grid {
  position: absolute;
  top: 50%;
  right: 7%;
  z-index: -1;
  width: min(42vw, 500px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 19%, rgba(209, 19, 19, 0.14) 19.3%, transparent 19.8%),
    radial-gradient(circle, transparent 38%, rgba(209, 19, 19, 0.11) 38.3%, transparent 38.8%),
    radial-gradient(circle, transparent 58%, rgba(255, 255, 255, 0.07) 58.3%, transparent 58.8%);
  box-shadow: 0 0 100px rgba(153, 0, 0, 0.17);
}

.hero-grid::before,
.hero-grid::after {
  position: absolute;
  content: "";
  background: rgba(209, 19, 19, 0.22);
}

.hero-grid::before {
  top: 50%;
  left: -12%;
  width: 124%;
  height: 1px;
}

.hero-grid::after {
  top: -12%;
  left: 50%;
  width: 1px;
  height: 124%;
}

.hero-content {
  display: flex;
  min-height: 720px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 94px 72px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red-bright);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.6rem, 8.1vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.86;
  text-transform: uppercase;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
  text-shadow: 0 0 40px rgba(153, 0, 0, 0.24);
}

.hero-lead {
  max-width: 720px;
  margin: 34px 0 0;
  color: #b8b8b8;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  border-color: var(--red-bright);
  background: var(--red);
  box-shadow: 0 10px 35px rgba(153, 0, 0, 0.22);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #b40000;
}

.button-secondary {
  border-color: #3b3b3b;
  background: rgba(255, 255, 255, 0.025);
  color: #d1d1d1;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: #777;
  background: rgba(255, 255, 255, 0.06);
}

.registry-stats {
  display: grid;
  width: min(100%, 660px);
  grid-template-columns: repeat(3, 1fr);
  margin: 64px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.registry-stats div {
  padding: 19px 20px 17px 0;
}

.registry-stats div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.registry-stats dt {
  color: #fff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.35rem;
  font-weight: 800;
}

.registry-stats dd {
  margin: 3px 0 0;
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.registry {
  padding-block: 110px 120px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 42px;
}

.section-heading h2,
.protocol h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.section-heading > p {
  margin: 0;
  padding-left: 24px;
  border-left: 2px solid var(--red);
  color: var(--muted);
}

.bot-stack {
  border-top: 1px solid var(--line);
}

.bot-entry {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.bot-entry[open] {
  border-color: var(--line-hot);
  background:
    linear-gradient(90deg, rgba(153, 0, 0, 0.095), transparent 35%),
    rgba(255, 255, 255, 0.012);
}

.bot-entry summary {
  display: grid;
  min-height: 116px;
  grid-template-columns: 64px minmax(0, 1fr) auto 42px;
  align-items: center;
  gap: 24px;
  padding: 24px 28px 24px 10px;
  cursor: pointer;
  list-style: none;
  transition: background 180ms ease;
}

.bot-entry summary::-webkit-details-marker {
  display: none;
}

.bot-entry summary:hover,
.bot-entry summary:focus-visible {
  background: rgba(255, 255, 255, 0.025);
  outline: none;
}

.bot-entry summary:focus-visible {
  box-shadow: inset 3px 0 0 var(--red-bright);
}

.bot-index {
  color: var(--faint);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.bot-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.bot-title strong {
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-transform: uppercase;
}

.bot-title small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-version {
  padding: 6px 10px;
  border: 1px solid #363636;
  color: #aaa;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.summary-control {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid #3b3b3b;
}

.summary-control::before,
.summary-control::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  content: "";
  transform: translate(-50%, -50%);
  background: #d2d2d2;
  transition: transform 180ms ease, background 180ms ease;
}

.summary-control::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.bot-entry[open] .summary-control {
  border-color: var(--red);
  background: rgba(153, 0, 0, 0.13);
}

.bot-entry[open] .summary-control::before,
.bot-entry[open] .summary-control::after {
  background: var(--red-bright);
}

.bot-entry[open] .summary-control::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.bot-content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 64px;
  padding: 10px 28px 48px 98px;
}

.classification {
  margin: 0 0 14px;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.classification::before {
  content: "● ";
}

.bot-description h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  line-height: 1.2;
}

.bot-description p:last-child {
  margin: 0;
  color: #aaa;
}

.bot-data {
  align-self: start;
  overflow: hidden;
  border: 1px solid #2c2c2c;
  background: rgba(4, 4, 4, 0.62);
  box-shadow: var(--shadow);
}

.data-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #242424;
}

.data-row span,
.ua-block > span {
  color: var(--faint);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.data-row strong {
  min-width: 0;
  color: #ddd;
  font-size: 0.82rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ua-block {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.ua-block code {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border-left: 2px solid var(--red);
  background: #0d0d0d;
  color: #dfdfdf;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.project-link {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-top: 1px solid #292929;
  background: #151515;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.project-link span {
  color: var(--red-bright);
  font-size: 1rem;
}

.project-link:hover,
.project-link:focus-visible {
  background: var(--red);
  outline: none;
}

.project-link:hover span,
.project-link:focus-visible span {
  color: #fff;
}

.protocol {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #070707;
}

.protocol::after {
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 420px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(153, 0, 0, 0.22);
  transform: rotate(45deg);
}

.protocol-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 80px;
  padding-block: 100px;
}

.protocol-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-self: end;
}

.protocol-copy p {
  margin: 0;
  color: #9e9e9e;
}

.protocol-copy p:first-child {
  padding-left: 20px;
  border-left: 2px solid var(--red);
}

.site-footer {
  padding-block: 40px;
  background: #030303;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 30px;
}

.footer-grid > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-grid p {
  margin: 0;
  color: var(--faint);
  font-size: 0.72rem;
}

.footer-grid strong {
  color: #cfcfcf;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-mark {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copyright {
  text-align: right;
}

@media (max-width: 900px) {
  .header-inner {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding-block: 16px;
  }

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

  .site-nav {
    overflow-x: auto;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .hero,
  .hero-content {
    min-height: 650px;
  }

  .hero-grid {
    right: -16%;
    width: 64vw;
    opacity: 0.5;
  }

  .section-heading,
  .bot-content,
  .protocol-inner {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 24px;
  }

  .section-heading > p {
    max-width: 720px;
  }

  .bot-content {
    gap: 34px;
    padding-left: 98px;
  }

  .protocol-inner {
    gap: 44px;
  }

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

  .footer-grid > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand-copy strong {
    font-size: 0.86rem;
  }

  .brand-copy span {
    font-size: 0.62rem;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding-inline: 10px;
    font-size: 0.68rem;
  }

  .hero,
  .hero-content {
    min-height: 610px;
  }

  .hero-content {
    padding-block: 70px 52px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
    line-height: 0.9;
  }

  .hero-lead {
    margin-top: 26px;
    font-size: 0.98rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .registry-stats {
    margin-top: 44px;
  }

  .registry-stats div {
    padding: 14px 8px;
  }

  .registry-stats div + div {
    padding-left: 10px;
  }

  .registry-stats dt {
    font-size: 1rem;
  }

  .registry-stats dd {
    font-size: 0.55rem;
  }

  .registry {
    padding-block: 78px 84px;
  }

  .section-heading h2,
  .protocol h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .bot-entry summary {
    min-height: 96px;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 12px;
    padding: 18px 8px 18px 4px;
  }

  .bot-version {
    display: none;
  }

  .bot-title strong {
    font-size: 1.3rem;
  }

  .bot-title small {
    font-size: 0.7rem;
  }

  .summary-control {
    width: 30px;
    height: 30px;
  }

  .bot-content {
    gap: 26px;
    padding: 4px 4px 34px 48px;
  }

  .data-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .protocol-inner {
    padding-block: 76px;
  }

  .protocol-copy {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-grid > div {
    grid-column: auto;
  }

  .copyright {
    text-align: left;
  }
}

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

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


/* Complete registry additions */
.description-pending {
  min-height: 1px;
}

.ua-block code + code {
  margin-top: 8px;
}


/* ==========================================================
   Government Bot Reference
========================================================== */
.reference-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5,5,5,.98) 0%, rgba(5,5,5,.86) 58%, rgba(5,5,5,.48) 100%),
    radial-gradient(circle at 82% 42%, rgba(153,0,0,.24), transparent 31%),
    #070707;
}
.reference-hero::before {
  position:absolute;
  inset:0;
  z-index:-2;
  content:"";
  background:
    linear-gradient(rgba(255,255,255,.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.027) 1px, transparent 1px);
  background-size:52px 52px;
  mask-image:linear-gradient(to right, transparent 0%, #000 54%, #000 100%);
}
.reference-hero .hero-grid { opacity:.58; }
.reference-hero-content {
  position:relative;
  z-index:2;
  min-height:620px;
  display:flex;
  align-items:center;
  padding-block:88px 76px;
}
.reference-intro { max-width:820px; }
.reference-intro h1 {
  margin:18px 0 26px;
  max-width:900px;
  font-size:clamp(3rem, 7vw, 6.5rem);
  line-height:.91;
  letter-spacing:-.065em;
  text-transform:uppercase;
}
.reference-intro h1 span { color:var(--red-bright); }
.reference-intro > p:not(.eyebrow):not(.warning) {
  max-width:760px;
  color:#c4c4c4;
  font-size:1.08rem;
}
.reference-intro .warning {
  max-width:760px;
  padding:16px 18px;
  border-left:2px solid var(--red-bright);
  background:rgba(153,0,0,.08);
  color:#d7b46a;
}
.reference-body { padding-block:82px 96px; }
.reference-body .panel {
  margin-bottom:20px;
  padding:26px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow:var(--shadow);
}
.reference-body .grid,
.reference-body .two-col {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  margin-bottom:20px;
}
.reference-body .grid .panel,
.reference-body .two-col .panel { margin-bottom:0; min-width:0; }
.reference-body h2 {
  margin:0 0 16px;
  color:#fff;
  font-size:1.22rem;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.reference-body h3 { margin:0 0 10px; color:#fff; }
.reference-body p { margin:0 0 14px; }
.reference-body ul { margin:0 0 16px 20px; padding:0; }
.reference-body li { margin-bottom:7px; }
.reference-body a { color:#ff6767; }
.reference-body a:hover { color:#fff; }
.reference-body pre {
  max-width:100%;
  margin:16px 0 0;
  padding:18px;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:8px;
  background:#070707;
  color:#eee;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.reference-body code {
  font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-size:.88rem;
}
.reference-body .note { color:var(--muted); }
.reference-body .warning { color:#d7b46a; }
.reference-body .success { color:var(--green); }
.hero-meta,.toolbar,.section-actions { display:flex; flex-wrap:wrap; gap:10px; }
.hero-meta { margin-top:22px; }
.toolbar { margin-top:18px; }
.tag {
  display:inline-block;
  padding:7px 11px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#0d0d0d;
  color:#cfcfcf;
  font-family:"SFMono-Regular",Consolas,monospace;
  font-size:.75rem;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.btn,.copy-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 14px;
  border:1px solid var(--line-hot);
  border-radius:6px;
  background:linear-gradient(180deg,#300000,#160000);
  color:#fff !important;
  font:700 .75rem/1 "SFMono-Regular",Consolas,monospace;
  letter-spacing:.06em;
  text-decoration:none;
  text-transform:uppercase;
  cursor:pointer;
}
.btn:hover,.copy-btn:hover { border-color:var(--red-bright); background:#3c0000; }
.section-actions { justify-content:flex-end; margin-top:12px; }
.reference-footer-note {
  margin-top:34px;
  color:var(--muted);
  font-family:"SFMono-Regular",Consolas,monospace;
  font-size:.78rem;
  letter-spacing:.05em;
  text-align:center;
  text-transform:uppercase;
}
@media (max-width:900px) {
  .reference-body .grid,.reference-body .two-col { grid-template-columns:1fr; }
  .reference-hero-content { min-height:560px; }
}
@media (max-width:640px) {
  .reference-hero-content { min-height:520px; padding-block:64px 54px; }
  .reference-intro h1 { font-size:clamp(2.8rem,15vw,4.7rem); }
  .reference-body { padding-block:58px 72px; }
  .reference-body .panel { padding:20px 16px; }
  .toolbar .btn { width:100%; }
}


/* ============================================================
   Government Bots Reference Accordions
   Keyword and reference sections through Bot Database
============================================================ */
.reference-accordion {
  margin-bottom: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2, #181818) 0%, var(--panel, #121212) 100%);
  border: 1px solid var(--line, #2a2a2a);
  border-radius: 12px;
  box-shadow: var(--shadow, 0 0 30px rgba(0,0,0,.45));
}

.reference-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  background: rgba(0,0,0,.18);
}

.reference-accordion > summary::-webkit-details-marker {
  display: none;
}

.reference-accordion > summary:hover {
  background: rgba(153,0,0,.12);
}

.reference-accordion-control {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.reference-accordion-control::before,
.reference-accordion-control::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: #cc0000;
  transform: translate(-50%, -50%);
}

.reference-accordion-control::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform .2s ease;
}

.reference-accordion[open] .reference-accordion-control::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.reference-accordion-content {
  padding: 22px 20px;
  border-top: 1px solid var(--line, #2a2a2a);
}


/* Accordion panels inside reference grids */
.reference-body .grid > .reference-accordion,
.reference-body .two-col > .reference-accordion {
  min-width: 0;
  margin-bottom: 0;
  align-self: start;
}

.reference-body > .reference-accordion {
  margin-bottom: 20px;
}