:root {
  color-scheme: light;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-strong: #eef3f0;
  --surface-soft: #e4ece8;
  --line: rgba(35, 49, 43, 0.14);
  --line-strong: rgba(35, 49, 43, 0.28);
  --text: #14201c;
  --muted: #53645f;
  --subtle: #71807b;
  --accent: #2bbf82;
  --accent-strong: #129568;
  --amber: #d8941e;
  --blue: #2f79be;
  --red: #c75347;
  --nav: #080a09;
  --nav-soft: #101612;
  --shadow: 0 18px 48px rgba(12, 22, 18, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
}

body {
  max-width: 100%;
  overflow-x: clip;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: inherit;
}

code {
  overflow-wrap: anywhere;
  font-family: "Cascadia Mono", "Fira Code", Consolas, monospace;
}

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

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 14, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 132px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

.brand span {
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: #d7dfdc;
  font-size: 0.84rem;
  font-weight: 800;
}

.language-switcher label {
  white-space: nowrap;
}

.language-select {
  min-height: 40px;
  max-width: 150px;
  padding: 0 34px 0 12px;
  color: #ffffff;
  border: 1px solid rgba(43, 191, 130, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

.language-select:focus-visible {
  outline: 2px solid rgba(108, 224, 169, 0.7);
  outline-offset: 2px;
}

.hero {
  border-bottom: 1px solid var(--line);
}

.home-hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(8, 11, 14, 0.96) 0%, rgba(8, 11, 14, 0.76) 48%, rgba(8, 11, 14, 0.38) 100%),
    linear-gradient(180deg, rgba(8, 11, 14, 0.2) 0%, rgba(8, 11, 14, 0.78) 100%),
    url("/assets/presskit/starminer-rig-bg.webp") center / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 42px;
  align-items: center;
  padding-block: 70px;
}

.hero-grid > *,
.split > *,
.detail-layout > *,
.doc-layout > *,
.flow-grid > *,
.card-grid > *,
.audience-grid > *,
.content-stack,
.doc-nav,
.info-card,
.doc-card,
.version-card,
.mod-card,
.audience-card,
.flow-step {
  min-width: 0;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

p,
li,
dd,
dt,
a,
span,
.button,
.badge,
.filter-chip {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

h1 {
  font-size: 6rem;
  letter-spacing: 0;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.62);
}

h2 {
  font-size: 2.05rem;
}

h3 {
  font-size: 1.22rem;
}

.lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 1.6;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.62);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(110, 231, 183, 0.62);
  background: rgba(110, 231, 183, 0.12);
  outline: none;
}

.button.primary {
  color: #04130e;
  border-color: var(--accent);
  background: var(--accent);
}

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

.button.small {
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.88rem;
}

.button.ghost {
  color: var(--muted);
}

.button.disabled,
button:disabled {
  cursor: not-allowed;
  color: var(--subtle);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.status-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 22, 29, 0.86);
  box-shadow: var(--shadow);
}

.status-panel h2 {
  font-size: 1.1rem;
}

.status-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.status-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.status-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.status-list dt {
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.status-list a,
.text-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.status-list a:hover,
.text-link:hover {
  text-decoration: underline;
}

.section {
  padding: 72px 0;
}

.section.alt {
  border-block: 1px solid var(--line);
  background: #0c1116;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 760px;
}

.body-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

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

.mod-card,
.flow-step,
.info-card,
.doc-card,
.version-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mod-card,
.info-card,
.doc-card,
.version-card {
  padding: 22px;
}

.mod-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.mod-card p,
.flow-step p,
.info-card p,
.doc-card p,
.version-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.card-topline,
.meta-row,
.badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.card-topline {
  justify-content: space-between;
}

.meta-row {
  color: var(--subtle);
  font-size: 0.88rem;
  font-weight: 700;
}

.badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.stable {
  color: #dffced;
  border-color: rgba(110, 231, 183, 0.42);
  background: rgba(110, 231, 183, 0.12);
}

.badge.warning {
  color: #fff1c8;
  border-color: rgba(244, 199, 102, 0.42);
  background: rgba(244, 199, 102, 0.12);
}

.badge.blue {
  color: #d9ecff;
  border-color: rgba(118, 183, 255, 0.42);
  background: rgba(118, 183, 255, 0.12);
}

.muted {
  color: var(--subtle);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.audience-card {
  min-height: 420px;
  display: grid;
  align-content: space-between;
  gap: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.audience-card h3 {
  max-width: 620px;
  margin-top: 10px;
  font-size: 1.72rem;
  line-height: 1.12;
}

.audience-card p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.66;
}

.route-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.5;
}

.route-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(43, 191, 130, 0.14);
}

.flow-step {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.step-number {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.link-stack {
  display: grid;
  gap: 10px;
}

.link-stack a {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  font-weight: 800;
  text-decoration: none;
}

.link-stack a::after {
  flex: 0 0 auto;
  content: ">";
  color: var(--accent);
}

.link-stack a:hover,
.link-stack a:focus-visible {
  border-color: rgba(110, 231, 183, 0.56);
  outline: none;
}

.page-hero {
  padding: 74px 0 52px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(8, 11, 14, 0.96), rgba(8, 11, 14, 0.72)),
    url("/assets/presskit/starminer-rig-bg.webp") center / cover no-repeat;
}

.page-hero .wrap {
  display: grid;
  gap: 18px;
}

.page-hero h1 {
  max-width: 860px;
  font-size: 3.4rem;
}

.page-hero .lead {
  max-width: 760px;
  margin: 0;
  font-size: 1.1rem;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  font-weight: 800;
}

.filter-chip.active {
  color: #04130e;
  border-color: var(--accent);
  background: var(--accent);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.content-stack {
  display: grid;
  gap: 20px;
}

.info-card h2,
.doc-card h2,
.version-card h2 {
  margin-bottom: 14px;
  font-size: 1.28rem;
}

.definition-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.definition-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.definition-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.definition-list dt {
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.definition-list dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

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

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

th {
  color: var(--subtle);
  background: var(--surface-strong);
  font-size: 0.78rem;
  text-transform: uppercase;
}

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

pre {
  overflow-x: auto;
  max-width: 100%;
  margin: 14px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #eaf5ef;
  background: #070a0d;
  line-height: 1.55;
}

pre code {
  overflow-wrap: normal;
  white-space: pre;
}

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.doc-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
}

.doc-nav a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 800;
  text-decoration: none;
}

.doc-nav a:hover,
.doc-nav a:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  outline: none;
}

.doc-card {
  margin-bottom: 18px;
}

.doc-card ul,
.doc-card ol {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 8px;
}

label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #0b1015;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:disabled,
textarea:disabled,
select:disabled {
  color: var(--subtle);
  background: rgba(255, 255, 255, 0.03);
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  background: #070a0d;
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-grid a {
  color: #d7eee4;
  font-weight: 800;
  text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  outline: none;
}

@media (max-width: 980px) {
  .masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-grid,
  .split,
  .detail-layout,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .flow-grid,
  .card-grid.three,
  .audience-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 28px, var(--max));
  }

  .brand img {
    width: 112px;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-grid {
    padding-block: 48px;
  }

  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading,
  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 52px 0 42px;
  }

  .page-hero h1 {
    font-size: 2.35rem;
  }

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

@media (max-width: 440px) {
  .masthead {
    padding-inline: 18px;
  }

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

  h1 {
    font-size: 3.3rem;
  }

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

  .button {
    width: 100%;
  }
}

/* Clean portal redesign overrides */
.masthead {
  min-height: 70px;
  padding: 10px max(24px, calc((100vw - var(--max)) / 2 + 20px));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 9, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.brand {
  color: #f8fbf8;
}

.brand img {
  width: 150px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.48));
}

.brand span {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.site-nav {
  gap: 8px;
}

.site-nav a {
  min-height: 42px;
  padding: 0 14px;
  color: #d7dfdc;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #ffffff;
  border-color: rgba(43, 191, 130, 0.64);
  background: rgba(43, 191, 130, 0.16);
}

.language-switcher {
  margin-left: 4px;
}

.site-nav a[href="/download/"] {
  color: #07120d;
  border-color: #6ce0a9;
  background: #6ce0a9;
}

.site-nav a[href="/download/"]:hover,
.site-nav a[href="/download/"]:focus-visible,
.site-nav a[href="/download/"][aria-current="page"] {
  color: #07120d;
  background: #8be9bd;
}

.portal-navbar {
  position: relative;
  z-index: 8;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(16, 30, 24, 0.07);
}

.portal-navbar-inner {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.portal-navbar-inner::-webkit-scrollbar {
  display: none;
}

.portal-navbar a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #31413b;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.portal-navbar a:hover,
.portal-navbar a:focus-visible {
  color: #0d1b16;
  border-color: rgba(43, 191, 130, 0.34);
  background: rgba(43, 191, 130, 0.1);
  outline: none;
}

.portal-navbar a:last-child {
  margin-left: auto;
  color: var(--accent-strong);
  border-color: rgba(43, 191, 130, 0.26);
  background: rgba(43, 191, 130, 0.08);
}

.hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-hero {
  min-height: 560px;
  background:
    linear-gradient(90deg, rgba(6, 9, 8, 0.98) 0%, rgba(6, 9, 8, 0.82) 48%, rgba(6, 9, 8, 0.32) 100%),
    linear-gradient(180deg, rgba(6, 9, 8, 0.04) 0%, rgba(6, 9, 8, 0.72) 100%),
    url("/assets/presskit/starminer-rig-bg.webp") center / cover no-repeat;
}

.landing-hero {
  min-height: 620px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  padding-block: 66px;
}

.hero-copy {
  max-width: 760px;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #77e4b3;
}

h1 {
  font-size: 5.4rem;
}

h2 {
  font-size: 1.9rem;
}

h3 {
  font-size: 1.16rem;
}

.hero h1,
.page-hero h1 {
  color: #ffffff;
}

.hero .lead,
.page-hero .lead {
  color: #dbe6e1;
}

.button {
  border-color: var(--line-strong);
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(43, 191, 130, 0.62);
  background: #f5fbf8;
}

.button.primary {
  color: #06120d;
  border-color: #43d79a;
  background: #43d79a;
}

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

.button.ghost {
  color: #40504a;
  background: #f6f8f6;
}

.button.disabled,
button:disabled {
  color: #82908b;
  background: #edf1ee;
}

.status-panel {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(13, 18, 16, 0.76);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.status-panel h2,
.status-list dd {
  color: #ffffff;
}

.status-list div {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.status-list dt {
  color: #9eb1aa;
}

.status-list a,
.text-link {
  color: var(--accent-strong);
}

.section {
  padding: 68px 0;
  background: var(--bg);
}

.section.alt {
  border-block: 1px solid var(--line);
  background: #eaf0ec;
}

.section-heading {
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-bottom: 26px;
}

.section-heading .text-link {
  justify-self: start;
}

.section-heading h2 {
  max-width: 900px;
}

.eyebrow {
  color: var(--accent-strong);
}

.body-copy,
.mod-card p,
.flow-step p,
.info-card p,
.doc-card p,
.version-card p,
td {
  color: var(--muted);
}

.mod-card,
.flow-step,
.info-card,
.doc-card,
.version-card,
.audience-card {
  border-color: rgba(35, 49, 43, 0.13);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.player-card {
  background:
    linear-gradient(135deg, rgba(67, 215, 154, 0.14), rgba(255, 255, 255, 0) 44%),
    var(--surface);
}

.modder-card {
  background:
    linear-gradient(135deg, rgba(47, 121, 190, 0.13), rgba(255, 255, 255, 0) 44%),
    var(--surface);
}

.live-panel {
  position: relative;
  overflow: hidden;
}

.live-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid rgba(119, 228, 179, 0.7);
  pointer-events: none;
}

.mod-card,
.info-card,
.doc-card,
.version-card {
  padding: 24px;
}

.flow-step {
  padding: 24px;
}

.mod-card {
  min-height: 260px;
}

.mod-card[hidden] {
  display: none;
}

.meta-row {
  color: var(--subtle);
}

.badge {
  border-color: var(--line);
  color: #40504a;
  background: #f2f5f3;
}

.badge.stable {
  color: #0c5d3f;
  border-color: rgba(43, 191, 130, 0.36);
  background: rgba(43, 191, 130, 0.12);
}

.badge.warning {
  color: #755213;
  border-color: rgba(216, 148, 30, 0.36);
  background: rgba(216, 148, 30, 0.12);
}

.badge.blue {
  color: #1c5b90;
  border-color: rgba(47, 121, 190, 0.34);
  background: rgba(47, 121, 190, 0.11);
}

.step-number {
  color: var(--amber);
}

.link-stack a,
.doc-nav a,
.filter-chip {
  border-color: var(--line);
  color: #32423c;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(17, 29, 24, 0.07);
}

.link-stack a:hover,
.link-stack a:focus-visible,
.doc-nav a:hover,
.doc-nav a:focus-visible {
  border-color: rgba(43, 191, 130, 0.42);
  background: #f7fbf8;
}

.resource-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.page-hero {
  padding: 68px 0 48px;
  border-bottom: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 9, 0.96), rgba(7, 10, 9, 0.7)),
    url("/assets/presskit/starminer-rig-bg.webp") center / cover no-repeat;
}

.page-hero h1 {
  font-size: 3.05rem;
}

.detail-layout,
.doc-layout,
.split {
  gap: 30px;
}

.definition-list div {
  border-bottom-color: var(--line);
}

.definition-list dt,
th {
  color: var(--subtle);
}

.definition-list dd {
  color: var(--text);
}

.table-wrap {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

th {
  background: var(--surface-strong);
}

td {
  border-bottom-color: var(--line);
}

pre {
  border-color: rgba(8, 10, 9, 0.18);
  color: #edf8f1;
  background: #101612;
}

input,
textarea,
select {
  border-color: var(--line);
  color: var(--text);
  background: #ffffff;
}

input:disabled,
textarea:disabled,
select:disabled {
  color: #788780;
  background: #eef2ef;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #b7c4bf;
  background: var(--nav);
}

.reveal-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 280ms ease, transform 280ms ease;
}

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

@media (max-width: 980px) {
  .masthead {
    padding: 12px 20px;
  }

  .site-nav {
    flex: 1 1 auto;
  }

  .language-switcher {
    margin-left: auto;
  }

  .hero-grid,
  .split,
  .detail-layout,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .flow-grid,
  .card-grid.three {
    grid-template-columns: 1fr;
  }

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

  .portal-navbar a:last-child {
    margin-left: 0;
  }

  .hero-grid {
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .masthead {
    position: relative;
    align-items: flex-start;
  }

  .site-nav {
    order: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .site-nav a {
    justify-content: center;
    padding-inline: 8px;
  }

  .brand img {
    width: 124px;
  }

  .language-switcher {
    margin-top: 2px;
  }

  h1 {
    font-size: 3.65rem;
  }

  .page-hero h1 {
    font-size: 2.25rem;
  }

  .section {
    padding: 48px 0;
  }

  .portal-navbar-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    overflow: visible;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .portal-navbar a {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding-inline: 8px;
    text-align: center;
    line-height: 1.15;
    white-space: normal;
  }

  table {
    min-width: 0;
    table-layout: fixed;
  }

  th,
  td {
    padding: 12px 10px;
    overflow-wrap: anywhere;
  }

  pre {
    overflow-x: visible;
  }

  pre code {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .resource-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .site-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .site-nav a,
  .portal-navbar a {
    font-size: 0.84rem;
  }

  .language-switcher {
    width: 100%;
    justify-content: flex-end;
  }

  .language-select {
    max-width: 140px;
  }

  h1 {
    font-size: 3.05rem;
  }
}

@media (max-width: 340px) {
  .language-switcher {
    justify-content: stretch;
  }

  .language-switcher label {
    flex: 1 1 auto;
  }

  .language-select {
    max-width: none;
    flex: 1 1 auto;
  }

  .portal-navbar-inner {
    grid-template-columns: 1fr;
  }
}
