/* === Self-hosted fonts === */

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/barlow-condensed-400-latin-ext-2e40af7c.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/barlow-condensed-400-latin-3e035bac.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/barlow-condensed-500-latin-ext-836b74c1.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/barlow-condensed-500-latin-cf75d925.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/barlow-condensed-600-latin-ext-e8a419cd.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/barlow-condensed-600-latin-1a79f86d.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/barlow-condensed-700-latin-ext-4add2a98.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/barlow-condensed-700-latin-74ef7090.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/inter-400-cyrillic-ext-e18b4e5e.woff2") format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/inter-400-cyrillic-659d95ea.woff2") format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/inter-400-greek-ext-eeab71fd.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/inter-400-greek-3e71b5a1.woff2") format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/inter-400-vietnamese-85bde1d1.woff2") format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/inter-400-latin-ext-65edaaef.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/inter-400-latin-1f021a24.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/inter-500-latin-ext-65edaaef.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/inter-500-latin-1f021a24.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/inter-600-latin-ext-65edaaef.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/inter-600-latin-1f021a24.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url("/assets/material-symbols-outlined-5120dc5e.woff2") format('woff2');
}

:root {
  --background: #050505;
  --surface: #131313;
  --surface-high: #201f1f;
  --surface-higher: #353534;
  --text: #eeeeee;
  --muted: #dac2ad;
  --outline: #a28d79;
  --outline-dark: #544433;
  --primary: #ffc384;
  --primary-strong: #ff9c00;
  --secondary: #efbd8b;
  --secondary-dark: #613f18;
  --tertiary: #ffc1a4;
  --tertiary-strong: #ff9966;
  --danger: #ff6b6b;
  --danger-dark: #690005;
  --nav-width: 256px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

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

a:hover {
  text-decoration: underline;
}

.trek-shell {
  min-height: 100vh;
  position: relative;
}

.trek-topbar {
  align-items: center;
  background: var(--background);
  border-bottom: 4px solid var(--primary);
  display: flex;
  height: 64px;
  justify-content: space-between;
  left: 0;
  padding: 0 16px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.trek-topbar-brand {
  display: block;
  line-height: 0;
}

.trek-topbar-logo {
  height: clamp(28px, calc((var(--nav-width) - 18px) / 6.57), 38px);
  max-width: 100%;
  width: auto;
}

.trek-topbar-identity {
  align-items: center;
  display: flex;
  gap: 16px;
  min-width: 0;
}

.trek-topbar-identity span {
  color: var(--muted);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trek-status {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trek-status {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.trek-topbar-tools {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-left: 16px;
}

.trek-mobile-menu-toggle {
  display: none;
}

.language-selector {
  align-items: center;
  background: transparent;
  border-radius: 0;
  color: var(--muted);
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.language-selector span {
  color: var(--muted);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-selector select {
  appearance: none;
  background: #000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23ffc384' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  border: 1px solid var(--outline-dark);
  border-radius: 999px;
  color: var(--primary);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
  min-height: 34px;
  min-width: 112px;
  padding: 4px 40px 4px 12px;
  text-transform: uppercase;
}

.language-selector select option {
  background: #000;
  color: var(--primary);
}

.language-selector select option:checked,
.language-selector select option:hover {
  background: #151515;
  color: var(--primary);
}

.trek-status span {
  color: var(--primary);
}

.trek-status small {
  color: var(--tertiary);
}

.trek-sidebar {
  background: var(--background);
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  left: 0;
  padding: 64px 0 24px 18px;
  position: fixed;
  top: 0;
  width: var(--nav-width);
  z-index: 5;
}

.trek-sidebar::before {
  background: var(--primary);
  border-radius: 80px 0 0 0;
  bottom: 112px;
  content: "";
  position: absolute;
  right: 0;
  top: 124px;
  width: 32px;
}

.trek-sector {
  display: grid;
  gap: 2px;
  padding: 26px 44px 18px 6px;
  text-align: right;
  text-transform: uppercase;
}

.trek-sector span,
.trek-sector small {
  display: block;
  font-family: "Barlow Condensed", Arial, sans-serif;
  letter-spacing: 0.05em;
}

.trek-sector span {
  color: var(--secondary-dark);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.trek-sector small {
  color: var(--outline);
  font-size: 0.9rem;
  font-weight: 600;
}

.trek-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 32px;
}

.trek-nav-link {
  align-items: center;
  background: var(--secondary-dark);
  border-radius: 999px 0 0 999px;
  color: #ffdcbc;
  display: flex;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-height: 36px;
  gap: 14px;
  justify-content: flex-end;
  padding: 5px 12px 5px 16px;
  text-decoration: none;
  text-transform: uppercase;
}

.trek-nav-link:hover,
.trek-nav-link.is-active {
  background: var(--primary-strong);
  color: #2c1700;
  text-decoration: none;
}

.trek-nav-sub {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 24px;
  min-height: 26px;
  opacity: 0.65;
  padding: 3px 10px 3px 14px;
}

.trek-nav-sub:hover,
.trek-nav-sub.is-active {
  opacity: 1;
}

.trek-nav-sub .material-symbols-outlined {
  font-size: 1rem;
}

.trek-sidebar-footer {
  color: var(--outline);
  display: grid;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 0.9rem;
  gap: 4px;
  letter-spacing: 0.08em;
  margin-top: auto;
  padding-right: 52px;
  text-align: right;
  text-transform: uppercase;
}

.trek-sidebar-mobile-tools {
  display: none;
}

.trek-frame {
  display: flex;
  gap: 4px;
  height: 64px;
  left: var(--nav-width);
  padding: 0 24px 0 0;
  position: fixed;
  right: 0;
  top: 64px;
  z-index: 4;
}

.trek-frame-segment {
  border-radius: 0 999px 999px 0;
  display: block;
  min-width: 64px;
}

.trek-frame-segment.primary {
  background: var(--primary);
  flex: 1 1 auto;
}

.trek-frame-segment.secondary {
  background: var(--tertiary-strong);
  flex: 0 0 18%;
}

.trek-frame-segment.tertiary {
  background: #9f6aa7;
  flex: 0 0 96px;
}

.page-content {
  margin-left: var(--nav-width);
  min-height: calc(100vh - 74px);
  padding: 152px 32px 48px;
}

.back-navigation {
  margin: 0 0 30px;
}

.back-button {
  align-items: center;
  background: var(--secondary-dark);
  border: none;
  border-radius: 999px;
  color: #ffdcbc;
  cursor: pointer;
  display: inline-flex;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.08em;
  min-height: 38px;
  padding: 7px 16px;
  text-transform: uppercase;
}

.back-button:hover {
  background: var(--primary-strong);
  color: #2c1700;
  text-decoration: none;
}

.site-footer {
  border-top: 4px solid var(--tertiary-strong);
  color: var(--muted);
  margin-left: var(--nav-width);
  padding: 24px 32px 28px;
}

.footer-frame {
  display: flex;
  gap: 4px;
  height: 28px;
  margin-bottom: 22px;
}

.footer-bar {
  border-radius: 999px;
  display: block;
}

.footer-bar.primary {
  background: var(--primary);
  flex: 1 1 auto;
}

.footer-bar.secondary {
  background: var(--tertiary-strong);
  flex: 0 0 180px;
}

.footer-bar.tertiary {
  background: var(--secondary-dark);
  flex: 0 0 96px;
}

.footer-content {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.footer-title,
.footer-credit,
.footer-links a {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-title {
  color: var(--primary);
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.footer-logo-link {
  display: inline-block;
  margin-top: 28px;
}

.footer-logo-link:hover {
  text-decoration: none;
}

.footer-logo {
  display: block;
  height: auto;
  margin: 0;
  max-width: min(100%, 260px);
  width: 100%;
}

.footer-disclaimer {
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
  max-width: 980px;
}

.footer-links {
  align-content: start;
  display: grid;
  gap: 8px;
  min-width: 220px;
  text-align: right;
}

.footer-links a {
  color: var(--outline);
}

.footer-credit {
  border-top: 1px solid var(--outline-dark);
  color: var(--outline);
  margin: 20px 0 0;
  padding-top: 14px;
  text-align: right;
}

.footer-credit a {
  color: var(--primary);
}

.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
}

.hero-row {
  align-items: flex-start;
  display: flex;
  width: 100%;
}

.trek-elbow-top,
.trek-elbow-bottom {
  color: var(--primary-strong);
  flex: 0 0 100px;
  height: 100px;
  width: 100px;
}

.trek-elbow-top {
  border-left: 64px solid currentColor;
  border-radius: 40px 0 0 0;
  border-top: 32px solid currentColor;
}

.trek-elbow-bottom {
  border-bottom: 32px solid currentColor;
  border-left: 64px solid currentColor;
  border-radius: 0 0 0 40px;
}

.hero-panel {
  background: transparent;
  border-left: 8px solid var(--primary-strong);
  flex: 1 1 auto;
  min-height: 360px;
  min-width: 0;
  overflow: hidden;
  padding: 32px;
  position: relative;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-art {
  bottom: 0;
  opacity: 0.25;
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  z-index: 0;
}

.hero-art img,
.image-card img,
.registry-image img,
.detail-hero-image img,
.protocol-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  object-position: center top;
  width: 100%;
  image-rendering: auto;
}

.attributed-image {
  display: block;
  height: 100%;
  position: relative;
  width: 100%;
}

.attributed-image > img {
  display: block;
}

.badge {
  border-radius: 4px;
  display: inline-block;
  font-size: 0.62rem;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--image-source,
.image-source-badge {
  background: rgba(12, 10, 8, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.28);
  bottom: 8px;
  color: #f4f0e8;
  max-width: calc(100% - 16px);
  padding: 5px 7px;
  pointer-events: none;
  position: absolute;
  right: 8px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
  z-index: 3;
}

.hero h1,
.page-title h1 {
  font-family: "Barlow Condensed", Arial, sans-serif;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--primary);
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  max-width: 880px;
}

.hero p {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 720px;
}

.eyebrow {
  color: var(--tertiary);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.page-title {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.page-title h1 {
  color: var(--primary);
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.page-title.compact {
  align-items: center;
  margin-top: 38px;
}

.page-title h2 {
  color: var(--tertiary);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.page-title .subtitle {
  color: var(--text-muted, #888);
  font-size: 1.1rem;
  font-style: italic;
  margin: 4px 0 0;
}

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
input[type="submit"] {
  background: var(--primary-strong);
  border: 0;
  border-radius: 999px;
  color: #2c1700;
  cursor: pointer;
  display: inline-flex;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.05em;
  min-height: 40px;
  min-width: 112px;
  padding: 8px 18px;
  text-transform: uppercase;
}

.button:hover {
  filter: brightness(1.12);
  text-decoration: none;
}

.button.secondary {
  background: var(--secondary-dark);
  color: #ffdcbc;
}

.button.danger {
  background: var(--danger);
  color: var(--danger-dark);
}

.stats-grid,
.grid-list {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.proto-section {
  margin-top: 42px;
}

.section-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.see-more-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--outline);
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
}

.see-more-link:hover {
  color: var(--primary);
}

.section-heading::before {
  background: var(--primary-strong);
  border-radius: 0 999px 999px 0;
  content: "";
  height: 12px;
  width: 128px;
}

.section-heading h2 {
  color: var(--secondary);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.image-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.image-card {
  aspect-ratio: 4 / 5;
  border-left: 4px solid var(--primary-strong);
  overflow: hidden;
  position: relative;
}

.image-card::after,
.registry-image::after,
.detail-hero-image::after,
.protocol-image::after {
  background: linear-gradient(to top, #050505 0%, transparent 65%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.image-card-content {
  bottom: 0;
  left: 0;
  padding: 22px;
  position: absolute;
  right: 0;
  z-index: 1;
}

.image-card-content h3 {
  color: var(--text);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  margin: 4px 0 0;
  text-transform: uppercase;
}

.control-strip {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.stacked-control {
  align-items: flex-start;
  margin-bottom: 12px;
}

.control-label {
  color: var(--primary);
  flex: 0 0 100%;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 2px;
  text-transform: uppercase;
}

.control-input {
  align-items: center;
  border-bottom: 2px solid var(--primary-strong);
  border-right: 2px solid var(--primary-strong);
  display: flex;
  flex: 1 1 260px;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
}

.control-input input[type="submit"] {
  display: none;
}

.search-clear {
  align-items: center;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  padding: 0;
  transition: color 0.15s;
}

.search-clear:hover {
  color: var(--primary);
}

.search-clear.hidden {
  display: none;
}

.control-input input {
  border: 0;
  margin: 0;
  min-height: auto;
}

.status-pill {
  background: var(--secondary-dark);
  border-radius: 999px;
  color: #ffdcbc;
  display: inline-flex;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-height: 38px;
  padding: 8px 18px;
  text-transform: uppercase;
}

.status-pill.primary {
  background: var(--primary-strong);
  color: #2c1700;
}

.status-pill.disabled {
  cursor: default;
  opacity: 0.72;
}

.registry-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.registry-card {
  background: var(--surface-high);
  border-left: 8px solid var(--primary-strong);
  display: grid;
  min-height: 460px;
}

.registry-image {
  min-height: 220px;
  overflow: hidden;
  position: relative;
}

.registry-image:hover img,
.character-image:hover img {
  transform: scale(1.06);
}

.registry-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.detail-hero {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
}

.detail-synopsis {
  color: var(--text-muted, #aaa);
  line-height: 1.7;
  margin-top: 20px;
  max-width: 60ch;
}

.detail-hero-image {
  min-height: 340px;
  overflow: hidden;
  position: relative;
}

/* Poster lightbox trigger */
.poster-zoom-trigger {
  background: none;
  border: none;
  cursor: pointer;
  display: block;
  height: 100%;
  padding: 0;
  position: relative;
  width: 100%;
}

.poster-zoom-trigger img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}

.poster-zoom-trigger:hover img,
.poster-zoom-trigger:focus-visible img {
  transform: scale(1.04);
}

.poster-zoom-trigger::after {
  background: rgba(0, 0, 0, 0);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transition: background 0.25s ease;
}

.poster-zoom-trigger:hover::after,
.poster-zoom-trigger:focus-visible::after {
  background: rgba(0, 0, 0, 0.45);
}

.poster-zoom-icon {
  color: #fff;
  font-size: 52px;
  font-variation-settings: "FILL" 0, "wght" 200;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1;
}

.poster-zoom-trigger:hover .poster-zoom-icon,
.poster-zoom-trigger:focus-visible .poster-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Poster lightbox dialog */
.poster-lightbox {
  background: transparent;
  border: none;
  margin: auto;
  max-height: 90vh;
  max-width: min(560px, 92vw);
  outline: none;
  overflow: visible;
  padding: 0;
  position: fixed;
}

.poster-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
}

.poster-lightbox-image {
  position: relative;
}

.poster-lightbox-image .attributed-image {
  height: auto;
}

.poster-lightbox-img {
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  display: block;
  max-height: 86vh;
  object-fit: contain;
  width: 100%;
}

.poster-lightbox-close {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 10px;
  transition: background 0.15s;
  width: 36px;
  z-index: 1;
}

.poster-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.poster-lightbox-close .material-symbols-outlined {
  font-size: 18px;
}

/* Journal layout â€” news index */
.journal-search {
  margin-bottom: 18px;
}

.journal {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--outline-dark);
}

.journal-entry {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--outline-dark);
  align-items: start;
}

.journal-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  text-align: center;
  min-width: 72px;
}

.journal-day {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-strong);
}

.journal-month {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 2px;
}

.journal-source {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--outline);
  margin: 0 0 6px;
}

.journal-featured {
  color: var(--primary-strong);
}

.journal-body h2 {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 8px;
  line-height: 1.15;
}

.journal-body h2 a {
  color: var(--primary);
  text-decoration: none;
}

.journal-body h2 a:hover {
  color: var(--primary-strong);
}

.journal-summary {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 14px;
}

.journal-filters {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--outline-dark);
}

.journal-filters .control-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
}

.personnel-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.character-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.character-card {
  background: var(--surface-high);
  border-left: 8px solid var(--tertiary-strong);
  display: grid;
  overflow: hidden;
}

.character-image {
  aspect-ratio: 16 / 11;
  display: block;
  overflow: hidden;
  position: relative;
}

.character-image::after {
  background: linear-gradient(to top, #050505 0%, transparent 58%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.character-image img,
.personnel-photo {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}

.character-body {
  padding: 20px;
}

.character-body h2 {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  margin: 0 0 2px;
  text-transform: uppercase;
}

.character-actor {
  color: var(--text-muted, #888);
  font-size: 0.85rem;
  font-style: italic;
  margin: 0 0 6px;
}

.movie-poster-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.movie-poster-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0.6;
  text-decoration: none;
  transition: opacity 0.15s;
  width: 80px;
}

.movie-poster-option:hover,
.movie-poster-option.active {
  opacity: 1;
}

.movie-poster-option.active .movie-poster-thumb {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.movie-poster-thumb {
  aspect-ratio: 2 / 3;
  background: var(--surface-high);
  overflow: hidden;
  position: relative;
}

.movie-poster-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.movie-poster-thumb .badge--image-source,
.movie-poster-thumb .image-source-badge {
  bottom: 4px;
  font-size: 0.48rem;
  max-width: calc(100% - 8px);
  padding: 3px 4px;
  right: 4px;
}

.movie-poster-all {
  align-items: center;
  display: flex;
  justify-content: center;
}

.movie-poster-all .material-symbols-outlined {
  color: var(--text-muted, #888);
  font-size: 2rem;
}

.movie-poster-label {
  color: var(--text-muted, #888);
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: center;
}

.movie-poster-option.active .movie-poster-label {
  color: var(--primary);
}

.movie-poster-year {
  display: block;
  font-size: 0.65rem;
  opacity: 0.7;
}

.main-characters-section {
  margin-bottom: 40px;
}

.section-label {
  color: var(--tertiary);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.main-characters-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.main-character-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: opacity 0.15s;
}

.main-character-card:hover {
  opacity: 0.8;
}

.main-character-image {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.main-character-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.main-character-info {
  background: var(--surface-high);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
}

.main-character-name {
  color: var(--primary);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.main-character-actor {
  color: var(--text-muted, #888);
  font-size: 0.72rem;
  font-style: italic;
}

.personnel-card {
  background: var(--surface-high);
  border-bottom: 4px solid var(--secondary-dark);
  overflow: hidden;
  padding: 20px;
}

.personnel-photo {
  aspect-ratio: 1;
  border-bottom: 4px solid var(--primary-strong);
  display: block;
  margin: -20px -20px 16px;
  max-width: calc(100% + 40px);
}

.personnel-icon {
  align-items: center;
  background: var(--primary-strong);
  border-radius: 999px;
  color: #2c1700;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  margin-bottom: 12px;
  width: 44px;
}

.protocol-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.protocol-card {
  background: var(--surface-high);
  border-left: 8px solid var(--secondary);
  margin-bottom: 18px;
  overflow: hidden;
}

.protocol-image {
  height: 170px;
  overflow: hidden;
  position: relative;
}

.protocol-body {
  padding: 18px;
}

.floating-terminal {
  align-items: center;
  background: var(--primary-strong);
  border: 0;
  border-radius: 999px;
  bottom: 28px;
  color: #2c1700;
  display: flex;
  height: 64px;
  justify-content: center;
  position: fixed;
  right: 28px;
  width: 64px;
  z-index: 30;
}

.stat,
.card {
  background: transparent;
  border: 0;
  border-left: 8px solid var(--secondary);
  min-height: 140px;
  padding: 8px 0 10px 18px;
  position: relative;
}

.stat::after,
.card::after {
  border-bottom: 4px solid var(--outline-dark);
  border-right: 4px solid var(--outline-dark);
  border-radius: 0 0 18px 0;
  bottom: 0;
  content: "";
  height: 28px;
  position: absolute;
  right: 0;
  width: 52px;
}

.stat strong {
  color: var(--primary);
  display: block;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 3.2rem;
  line-height: 1;
}

.stat span,
.meta,
.empty-state,
.flash {
  color: var(--muted);
}

.card h2 {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.card p {
  margin: 10px 0;
}

.card .source-line {
  color: var(--muted);
  font-size: 0.92rem;
}

.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 30px 0 8px;
}

.pagination-status {
  color: var(--primary);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page-size-control {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 20px;
}

.terminal-panel {
  border-left: 12px solid var(--tertiary-strong);
  margin-left: 100px;
  padding-left: 20px;
}

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

thead {
  background: var(--secondary-dark);
}

th,
td {
  border-bottom: 1px solid var(--outline-dark);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #ffdcbc;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody tr:hover {
  background: var(--surface);
}

tbody tr.clickable-row {
  cursor: pointer;
}

.details {
  border-left: 12px solid var(--primary);
  display: grid;
  grid-template-columns: minmax(140px, 240px) 1fr;
  margin: 0;
}

.details dt,
.details dd {
  border-bottom: 1px solid var(--outline-dark);
  margin: 0;
  padding: 14px 16px;
}

.details dt {
  color: var(--secondary);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.details dd p:first-child {
  margin-top: 0;
}

.details dd p:last-child {
  margin-bottom: 0;
}

.news-source-cta {
  align-items: center;
  border-left: 12px solid var(--primary);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 2px;
  padding: 18px 20px;
}

.news-source-cta__label {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.news-source-cta__label strong {
  color: var(--foreground);
}

.news-source-cta__button {
  flex-shrink: 0;
  font-size: 1rem;
  padding: 12px 24px;
}

.legal-page {
  border-left: 12px solid var(--primary);
  box-sizing: border-box;
  color: var(--muted);
  line-height: 1.7;
  max-width: 980px;
  padding-left: 24px;
  width: 100%;
}

.legal-page h2 {
  color: var(--secondary);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  margin: 30px 0 8px;
  text-transform: uppercase;
}

.legal-page p {
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}

.legal-source-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 14px 0 28px;
  padding: 0;
}

.legal-source-list li {
  border-bottom: 1px solid var(--outline-dark);
  padding: 0 0 12px;
}

.legal-source-list a {
  color: var(--primary);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.error-page {
  align-items: stretch;
  background: var(--surface-high);
  border-left: 12px solid var(--secondary);
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  margin: clamp(24px, 7vh, 80px) auto;
  max-width: 980px;
  min-height: 360px;
  overflow: hidden;
  width: 100%;
}

.error-page__code {
  align-items: center;
  background: linear-gradient(150deg, rgba(249, 198, 73, 0.16), rgba(67, 195, 216, 0.08));
  color: var(--primary);
  display: flex;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(4rem, 13vw, 9rem);
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  padding: 24px;
}

.error-page__content {
  align-self: center;
  max-width: 620px;
  min-width: 0;
  padding: clamp(24px, 5vw, 52px);
}

.error-page__content h1 {
  color: var(--text);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  line-height: 1;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.error-page__content p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 58ch;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .news-source-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-source-cta__button {
    width: 100%;
    text-align: center;
  }

  .legal-page {
    border-left-width: 8px;
    padding-left: 16px;
    padding-right: 8px;
  }

  .error-page {
    border-left-width: 8px;
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-right: 0;
    max-width: calc(100vw - 96px);
    width: calc(100vw - 96px);
  }

  .error-page__code {
    justify-content: flex-start;
    min-height: 120px;
  }

  .error-page__content {
    max-width: none;
    padding: 28px 24px 32px;
    width: 100%;
  }

  .error-page__content h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    word-break: break-word;
  }

  .error-page__content p:not(.eyebrow) {
    max-width: 100%;
    word-break: break-word;
  }
}

.section {
  margin-top: 34px;
}

.form {
  border-left: 12px solid var(--tertiary-strong);
  max-width: 980px;
  padding-left: 20px;
}

.form-with-panel {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.admin-prototype-panel {
  background: var(--surface-high);
  border-left: 8px solid var(--tertiary-strong);
  overflow: hidden;
}

.field,
.field-row {
  margin-bottom: 18px;
}

.field-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

label {
  background: var(--secondary);
  border-radius: 999px 0 0 999px;
  color: #2c1700;
  display: inline-block;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0;
  min-width: 132px;
  padding: 6px 14px;
  text-align: right;
  text-transform: uppercase;
}

input,
select,
textarea {
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--outline);
  border-right: 2px solid var(--outline);
  color: var(--text);
  display: block;
  font: inherit;
  margin-top: 4px;
  min-height: 42px;
  padding: 9px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.form-errors,
.flash {
  border-left: 10px solid var(--danger);
  margin-bottom: 22px;
  padding: 12px 16px;
}

.form-errors h2 {
  color: var(--danger);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.3rem;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.form-errors p {
  color: var(--muted);
  margin: 0 0 8px;
}

.field-hint {
  color: var(--outline);
  font-size: 0.72rem;
  margin: 6px 0 0;
  text-align: right;
}

.flash.notice {
  border-color: var(--primary);
}

.empty-state {
  border-left: 8px solid var(--outline-dark);
  padding: 12px 18px;
}

@media (max-width: 820px) {
  .trek-topbar {
    position: fixed;
    z-index: 60;
  }

  .trek-topbar-identity {
    gap: 12px;
  }

  .trek-topbar-identity span {
    display: none;
  }

  .trek-topbar-tools {
    display: none;
  }

  .trek-mobile-menu-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid var(--outline-dark);
    border-radius: 999px;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin-left: auto;
    width: 46px;
  }

  .trek-mobile-menu-toggle .material-symbols-outlined {
    font-size: 1.35rem;
  }

  .trek-sidebar {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.99), rgba(11, 10, 9, 0.99));
    border-bottom: 2px solid var(--outline-dark);
    bottom: auto;
    left: 0;
    opacity: 0;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 14px 12px 16px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 64px;
    transform: translateY(-108%);
    transition: transform 0.2s ease, opacity 0.2s ease;
    width: 100%;
    z-index: 55;
  }

  body.mobile-nav-open .trek-sidebar {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .trek-sidebar::before,
  .trek-sidebar-footer {
    display: none;
  }

  .trek-sector {
    display: none;
  }

  .trek-sidebar-mobile-tools {
    align-items: center;
    border-bottom: 1px solid var(--outline-dark);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 2px 10px;
  }

  .trek-sidebar-mobile-tools .language-selector {
    flex: 1 1 auto;
    margin-left: 0;
  }

  .trek-sidebar-mobile-tools .language-selector span {
    display: inline;
  }

  .trek-sidebar-mobile-tools .trek-status {
    display: flex;
    min-width: 0;
  }

  .trek-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 0;
  }

  .trek-nav-link {
    font-size: 1rem;
    min-height: 34px;
  }

  .trek-frame {
    display: none;
  }

  .page-content,
  .site-footer {
    margin-left: 0;
  }

  .page-content {
    padding: 92px 18px 42px;
  }

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

  .hero-row {
    display: block;
  }

  .hero-row .trek-elbow-top {
    display: none;
  }

  .hero-art {
    display: none;
  }

  .terminal-panel {
    margin-left: 0;
  }

  .detail-hero,
  .protocol-layout,
  .form-with-panel {
    grid-template-columns: 1fr;
  }

  .page-title {
    flex-direction: column;
  }

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

  .footer-links,
  .footer-credit {
    text-align: left;
  }

  table {
    display: block;
    overflow-x: auto;
  }

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

  .details dt {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .trek-mobile-dock {
    display: none;
  }
}

@media (min-width: 821px) {
  .trek-mobile-dock {
    display: none;
  }
}

/* â”€â”€ Image card hover zoom â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.image-card:hover img {
  transform: scale(1.06);
}

/* â”€â”€ Contact form â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.contact-form {
  max-width: 640px;
}

.contact-success {
  max-width: 640px;
}

.contact-success .flash-banner {
  margin-bottom: 16px;
}

.contact-panel {
  background: var(--surface-high);
  border-left: 8px solid var(--tertiary-strong);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-info-block {
  border-bottom: 2px solid var(--outline);
  padding: 20px 24px;
}

.contact-info-block:last-child {
  border-bottom: 0;
}

.contact-info-block .material-symbols-outlined {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.contact-info-block p {
  margin: 4px 0 0;
}

/* â”€â”€ Flash banner (contact success) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.flash-banner {
  align-items: center;
  background: var(--surface-high);
  border-left: 10px solid var(--primary);
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 18px;
}

.flash-banner.notice {
  border-color: var(--primary);
}

.flash-banner.alert {
  border-color: var(--danger);
}

.flash-banner.alert .material-symbols-outlined {
  color: var(--danger);
}

.flash-banner .material-symbols-outlined {
  color: var(--primary);
  font-size: 1.6rem;
  flex-shrink: 0;
}

/* â”€â”€ Visually hidden (honeypot) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Responsive hardening */
img,
svg,
video,
canvas {
  max-width: 100%;
}

.page-content,
.site-footer,
.hero-panel,
.registry-card,
.character-card,
.card,
.stat,
.details,
.journal-entry,
.contact-panel,
.control-input {
  min-width: 0;
}

.page-title,
.section-heading,
.registry-body,
.character-body,
.card,
.details dd,
td,
th,
.footer-disclaimer,
.journal-summary {
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  :root {
    --nav-width: 224px;
  }

  .trek-nav-link {
    font-size: 1.05rem;
    gap: 10px;
  }

  .page-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .detail-hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  }

  .detail-hero-image {
    min-height: 300px;
  }
}

@media (max-width: 980px) {
  .trek-topbar-identity span {
    display: none;
  }

  .registry-grid,
  .character-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .footer-bar.secondary {
    flex-basis: 120px;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 0;
  }

  .detail-hero {
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .trek-topbar {
    min-height: 64px;
  }

  .trek-sidebar {
    overflow-x: hidden;
  }

  .details dd {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .trek-nav {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  }

  .trek-nav-link,
  .trek-nav-sub {
    border-radius: 999px;
    justify-content: center;
    margin-left: 0;
    padding-left: 12px;
  }

  .trek-frame-segment.tertiary {
    flex-basis: 52px;
  }

  .hero-panel {
    border-left-width: 6px;
    min-height: 0;
    padding: 24px;
  }

  .hero h1,
  .page-title h1 {
    line-height: 1.05;
  }

  .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .section-heading::before {
    flex: 0 0 72px;
    width: 72px;
  }

  .section-heading h2 {
    flex: 1 1 220px;
    font-size: 1.7rem;
  }

  .see-more-link {
    margin-left: 0;
  }

  .control-strip {
    align-items: stretch;
    gap: 10px;
  }

  .control-input {
    flex-basis: 100%;
  }

  .status-pill,
  .button,
  input[type="submit"] {
    min-width: 0;
    text-align: center;
  }

  .registry-grid,
  .image-grid,
  .stats-grid,
  .grid-list,
  .personnel-grid,
  .character-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  }

  .main-characters-grid {
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  }

  .registry-card {
    min-height: 0;
  }

  .registry-image {
    aspect-ratio: 16 / 11;
    min-height: 0;
  }

  .detail-hero-image {
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    min-height: 0;
    width: min(100%, 380px);
  }

  .detail-synopsis {
    max-width: none;
  }

  .journal-entry {
    gap: 16px;
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .journal-date {
    min-width: 60px;
  }

  .journal-day {
    font-size: 2.1rem;
  }

  .movie-poster-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  }

  .movie-poster-option {
    width: auto;
  }

  .site-footer {
    padding: 22px 18px 32px;
  }

  .footer-frame {
    height: 20px;
  }

  .footer-bar.secondary {
    flex-basis: 72px;
  }

  .footer-bar.tertiary {
    flex-basis: 44px;
  }

  .footer-links {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    min-width: 0;
    text-align: left;
  }

  table {
    border-collapse: separate;
    border-spacing: 0 12px;
    display: table;
    overflow: visible;
  }

  thead {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tbody tr {
    background: var(--surface-high);
    border-left: 6px solid var(--primary-strong);
    padding: 8px 0;
  }

  tbody tr:hover {
    background: var(--surface-high);
  }

  td {
    align-items: start;
    border-bottom: 1px solid var(--outline-dark);
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    padding: 10px 14px;
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    color: var(--secondary);
    content: attr(data-label);
    font-family: "Barlow Condensed", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .pagination {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .pagination-status {
    order: -1;
    text-align: center;
  }

  .page-size-control {
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .trek-topbar {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 12px;
  }

  .trek-topbar-identity {
    flex: 1 1 auto;
    min-width: 0;
  }

  .trek-sidebar-mobile-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-selector select {
    max-width: none;
    min-width: 0;
    width: 140px;
  }

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

  .trek-nav-link:nth-child(n+5) {
    display: flex;
  }

  .page-content {
    padding: 92px 14px 36px;
  }

  .hero-panel {
    padding: 20px 16px;
    max-width: calc(100vw - 96px);
    width: calc(100vw - 96px);
  }

  .hero h1 {
    font-size: 1.78rem;
    overflow-wrap: anywhere;
  }

  .hero-panel p,
  .terminal-panel p {
    overflow-wrap: anywhere;
  }

  .terminal-panel {
    max-width: calc(100vw - 96px);
    width: calc(100vw - 96px);
  }

  .page-title {
    gap: 10px;
    margin-bottom: 22px;
    max-width: 100%;
    min-width: 0;
  }

  .page-title h1 {
    font-size: clamp(1.7rem, 8vw, 2rem);
    overflow-wrap: anywhere;
  }

  .page-title h2,
  .section-heading h2 {
    font-size: 1.45rem;
    overflow-wrap: anywhere;
  }

  .legal-page h2,
  .legal-source-list li {
    overflow-wrap: anywhere;
  }

  .actions,
  .control-strip,
  .page-size-control {
    flex-direction: column;
  }

  .actions .button,
  .control-strip .status-pill,
  .page-size-control .status-pill,
  input[type="submit"] {
    width: 100%;
  }

  .status-pill {
    justify-content: center;
  }

  .image-card {
    aspect-ratio: 16 / 12;
  }

  .image-card-content {
    padding: 16px;
  }

  .journal-entry {
    grid-template-columns: 1fr;
  }

  .journal-date {
    align-items: baseline;
    flex-direction: row;
    gap: 8px;
    min-width: 0;
    text-align: left;
  }

  .journal-month {
    margin-top: 0;
  }

  .details {
    border-left-width: 8px;
  }

  .details dt,
  .details dd {
    padding-left: 12px;
    padding-right: 12px;
  }

  td {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  label {
    border-radius: 999px;
    min-width: 0;
    text-align: left;
  }

  .contact-form {
    max-width: none;
  }

  .contact-info-block,
  .registry-body,
  .character-body,
  .protocol-body {
    padding: 16px;
  }

  .floating-terminal {
    bottom: 84px;
    height: 52px;
    right: 14px;
    width: 52px;
  }

  .trek-mobile-dock a {
    min-width: 0;
  }

  .trek-mobile-dock small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .language-selector select {
    max-width: 124px;
  }

  .hero h1,
  .page-title h1 {
    font-size: 1.8rem;
  }

  .button,
  input[type="submit"],
  .status-pill {
    font-size: 0.95rem;
    padding-left: 12px;
    padding-right: 12px;
  }
}
