:root {
  --bg: #0d1110;
  --bg-soft: #111716;
  --panel: #151c1a;
  --panel-strong: #1b2421;
  --panel-warm: #211f1a;
  --text: #f4f1e8;
  --muted: #aeb9b0;
  --quiet: #758178;
  --line: #2a3430;
  --line-strong: #3b4842;
  --mint: #a7f0c5;
  --mint-dark: #17251f;
  --amber: #f1bf67;
  --cyan: #8dcfe8;
  --rose: #f19aa7;
  --ink: #08100c;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --radius-lg: 10px;
  --tap: 48px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(26, 36, 33, 0.96), rgba(13, 17, 16, 0.98) 42%, #0d1110),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 7px);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(167, 240, 197, 0.07), transparent 38%, rgba(241, 191, 103, 0.05));
  mix-blend-mode: screen;
}

button,
input {
  font: inherit;
}

button {
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(167, 240, 197, 0.78);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(2.35rem, 10vw, 5.7rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 6vw, 2.4rem);
}

h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

p {
  color: var(--muted);
}

svg {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease;
}

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

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(13, 17, 16, 0.86);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.brand-button,
.nav-pill,
.button,
.icon-button,
.category-chip,
.article-row,
.door-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
}

.brand-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: var(--tap);
  padding: 4px 7px 4px 4px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(167, 240, 197, 0.18), rgba(141, 207, 232, 0.1));
}

.brand-mark svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--mint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy {
  display: none;
  min-width: 0;
}

.brand-copy strong,
.brand-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.brand-copy span {
  color: var(--muted);
  font-size: 0.75rem;
}

.top-nav {
  display: flex;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.nav-pill {
  min-height: 40px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  font-weight: 760;
  white-space: nowrap;
}

.nav-pill.is-active {
  border-color: rgba(167, 240, 197, 0.55);
  background: rgba(167, 240, 197, 0.13);
  color: var(--mint);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 16px max(14px, env(safe-area-inset-right)) calc(52px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}

.view {
  display: none;
  animation: view-in 240ms ease both;
}

.view.is-active {
  display: block;
}

.opening-panel,
.content-band,
.seo-summary,
.search-panel,
.passport-panel,
.detail-card,
.list-panel,
.feature-panel,
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(27, 36, 33, 0.95), rgba(18, 24, 22, 0.96));
  box-shadow: var(--shadow);
}

.opening-panel {
  position: relative;
  overflow: hidden;
  min-height: min(660px, calc(100svh - 104px));
  padding: clamp(22px, 6vw, 58px);
  isolation: isolate;
}

.opening-panel::after {
  content: "";
  position: absolute;
  inset: auto -8% -18% -8%;
  z-index: -1;
  height: 42%;
  background: linear-gradient(0deg, rgba(167, 240, 197, 0.16), transparent);
  transform: skewY(-4deg);
}

.panel-kicker,
.eyebrow,
.detail-number {
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lede {
  max-width: 760px;
  margin-bottom: 22px;
  color: #d7ded5;
  font-size: clamp(1.08rem, 4vw, 1.42rem);
}

.meta-row,
.small-actions,
.hero-actions,
.quick-actions,
.category-strip,
.card-actions,
.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-row {
  margin-bottom: 26px;
}

.meta-pill,
.count-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-actions {
  margin-top: clamp(24px, 8vw, 48px);
}

.quick-actions {
  margin-top: 10px;
}

.button,
.icon-button,
.category-chip,
.door-card,
.article-row {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: var(--tap);
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
}

.button svg,
.icon-button svg,
.article-row svg {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button.primary {
  border-color: transparent;
  background: var(--mint);
  color: var(--ink);
}

.button.support {
  border-color: rgba(241, 191, 103, 0.44);
  background: rgba(241, 191, 103, 0.15);
  color: #ffdf9d;
}

.button.secondary {
  border-color: rgba(241, 191, 103, 0.42);
  background: rgba(241, 191, 103, 0.12);
  color: #ffdf9d;
}

.button.quiet {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.button.ghost {
  background: transparent;
}

.button.danger {
  border-color: rgba(241, 154, 167, 0.32);
  color: var(--rose);
}

.button.jumbo {
  min-height: 58px;
  flex: 1 1 210px;
  padding: 0 18px;
  font-size: 1.02rem;
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.46;
}

.button:not([disabled]):hover,
.icon-button:hover,
.category-chip:hover,
.door-card:hover,
.article-row:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.button.primary:not([disabled]):hover {
  background: #b8ffd5;
}

.content-band {
  margin-top: 16px;
  padding: 16px;
}

.seo-summary {
  margin-top: 16px;
  padding: clamp(16px, 4vw, 24px);
}

.seo-summary h2 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 5vw, 2.1rem);
}

.seo-summary p {
  max-width: 900px;
  margin-bottom: 0;
  color: #d7ded5;
}

.section-heading,
.list-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-heading p,
.section-heading h2 {
  margin-bottom: 0;
}

.sticky-heading {
  position: sticky;
  top: 70px;
  z-index: 8;
  margin: -16px -14px 12px;
  padding: 14px;
  background: rgba(13, 17, 16, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.icon-button {
  display: inline-grid;
  min-width: var(--tap);
  min-height: var(--tap);
  place-items: center;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  cursor: pointer;
}

.door-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.door-card {
  display: grid;
  min-height: 136px;
  align-content: space-between;
  padding: 14px;
  background:
    linear-gradient(160deg, rgba(33, 31, 26, 0.96), rgba(22, 31, 28, 0.98)),
    linear-gradient(45deg, rgba(241, 191, 103, 0.16), transparent);
  cursor: pointer;
  text-align: left;
}

.door-card strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.door-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
}

.door-keyhole {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(241, 191, 103, 0.38);
  border-radius: 999px;
  color: var(--amber);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.feature-panel {
  padding: 16px;
}

.feature-panel h3 {
  margin: 8px 0 8px;
  font-size: 1.25rem;
}

.feature-panel p {
  min-height: 3em;
  margin-bottom: 14px;
}

.detail-card {
  overflow: hidden;
}

.back-button {
  margin-bottom: 12px;
}

.detail-hero {
  padding: clamp(20px, 5vw, 42px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(167, 240, 197, 0.11), transparent 40%),
    linear-gradient(180deg, rgba(27, 36, 33, 0.96), rgba(17, 23, 21, 0.98));
}

.detail-hero h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 9vw, 4.3rem);
}

.detail-description {
  max-width: 760px;
  color: #dce5da;
  font-size: 1.12rem;
}

.detail-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px;
}

.detail-toolbar .button {
  width: 100%;
}

.info-card {
  overflow: hidden;
}

.info-hero {
  padding: clamp(20px, 5vw, 42px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(241, 191, 103, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(27, 36, 33, 0.96), rgba(17, 23, 21, 0.98));
}

.info-hero h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 9vw, 4rem);
}

.info-body {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 4vw, 28px);
}

.info-body p {
  max-width: 760px;
  margin-bottom: 0;
  color: #d7ded5;
}

.info-body a {
  color: var(--mint);
  font-weight: 850;
}

.info-list {
  display: grid;
  gap: 10px;
  max-width: 840px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  padding: 12px;
}

.info-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.search-panel {
  padding: 14px;
  margin-bottom: 12px;
}

.search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.search-box {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.search-box span {
  display: grid;
  place-items: center;
  color: var(--quiet);
}

.search-box input {
  min-width: 0;
  height: 52px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  outline: 0;
}

.search-box input::placeholder {
  color: #6f7a73;
}

.category-strip {
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 3px;
  flex-wrap: nowrap;
  scrollbar-width: thin;
}

.category-chip {
  min-height: 40px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  cursor: pointer;
  font-weight: 820;
  white-space: nowrap;
}

.category-chip[aria-selected="true"] {
  border-color: rgba(167, 240, 197, 0.55);
  background: rgba(167, 240, 197, 0.13);
  color: var(--mint);
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.article-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 13px;
  background: rgba(21, 28, 26, 0.92);
  cursor: pointer;
  text-align: left;
}

.article-row h3 {
  margin-bottom: 5px;
  font-size: 1.02rem;
}

.article-row p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 9px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-row .row-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--mint);
}

.mini-meta {
  gap: 6px;
}

.mini-meta span {
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 800;
}

.journey-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.journey-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(241, 191, 103, 0.09), transparent 38%),
    linear-gradient(180deg, rgba(27, 36, 33, 0.95), rgba(17, 23, 21, 0.96));
  box-shadow: var(--shadow);
  padding: 16px;
}

.journey-head h3 {
  margin: 8px 0;
  font-size: clamp(1.35rem, 6vw, 2rem);
}

.journey-head p:last-child,
.journey-meta {
  margin-bottom: 0;
  color: var(--muted);
}

.journey-meta {
  font-size: 0.82rem;
  font-weight: 850;
}

.progress-track {
  overflow: hidden;
  height: 9px;
  border: 1px solid rgba(167, 240, 197, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--amber));
}

.journey-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  padding: 7px 9px;
  cursor: pointer;
  text-align: left;
}

.journey-step span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.journey-step strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.journey-step.is-complete {
  border-color: rgba(167, 240, 197, 0.35);
  background: rgba(167, 240, 197, 0.08);
}

.journey-step.is-complete span {
  background: var(--mint);
  color: var(--ink);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.stat-card {
  min-height: 102px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(27, 36, 33, 0.95), rgba(17, 23, 21, 0.96));
  padding: 14px;
}

.stat-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: clamp(1.7rem, 10vw, 2.45rem);
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
}

.passport-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 16px;
}

.passport-panel h3 {
  margin: 6px 0 6px;
  font-size: clamp(1.4rem, 6vw, 2.2rem);
}

.passport-panel p {
  margin-bottom: 0;
}

.passport-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.passport-badges span {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 850;
}

.discovery-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.list-panel {
  padding: 14px;
}

.list-heading {
  margin-bottom: 10px;
}

.list-heading span {
  color: var(--quiet);
  font-size: 0.82rem;
  font-weight: 800;
}

.empty-state {
  min-height: 88px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 0;
}

.list-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.list-item-title {
  color: var(--text);
  font-weight: 850;
}

.list-item-meta {
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 760;
}

.list-item .button {
  min-height: 38px;
  padding: 0 10px;
}

.toast {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 40;
  max-width: min(420px, calc(100% - 28px));
  transform: translateY(18px);
  border: 1px solid rgba(167, 240, 197, 0.34);
  border-radius: var(--radius);
  background: rgba(12, 18, 15, 0.95);
  color: var(--text);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 22px 0 0;
  padding: 4px;
}

.site-footer button {
  min-height: 38px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--quiet);
  cursor: pointer;
  font-weight: 800;
  padding: 0 10px;
}

.site-footer button:hover,
.site-footer button.is-active {
  color: var(--mint);
  background: rgba(167, 240, 197, 0.08);
}

.noscript {
  position: fixed;
  inset: auto 12px 12px;
  z-index: 50;
  border-radius: var(--radius);
  background: var(--rose);
  color: #260b10;
  padding: 12px;
  font-weight: 800;
}

@keyframes view-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 560px) {
  .brand-copy {
    display: block;
  }

  .app-shell {
    padding-top: 22px;
  }

  .detail-toolbar {
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .app-header {
    padding-left: 22px;
    padding-right: 22px;
  }

  .app-shell {
    padding-left: 22px;
    padding-right: 22px;
  }

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

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

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

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

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

@media (min-width: 980px) {
  .opening-panel {
    min-height: 620px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
