:root {
  --primary: #8b0000;
  --secondary: #f4c20d;
  --accent: #ffffff;
  --ink: #121826;
  --muted: #5f6b7a;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f4f8;
  --line: #dfe5ee;
  --teal: #0f766e;
  --navy: #101525;
  --shadow: 0 16px 36px rgba(18, 24, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

main {
  overflow: hidden;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.top-ticker,
.disclaimer-bar {
  overflow: hidden;
  background: var(--primary);
  color: #ffffff;
  white-space: nowrap;
}

.disclaimer-bar {
  background: #151515;
}

.ticker-track {
  display: inline-block;
  min-width: 100%;
  padding: 8px 0 8px 100%;
  animation: ticker 28s linear infinite;
  font-size: 0.92rem;
  font-weight: 650;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(223, 229, 238, 0.9);
  backdrop-filter: blur(14px);
}

.site-header.sticky {
  box-shadow: 0 10px 30px rgba(18, 24, 38, 0.08);
}

.header-shell {
  width: min(1280px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  color: var(--primary);
  font-weight: 800;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(244, 194, 13, 0.7);
}

.brand span {
  max-width: 280px;
  line-height: 1.2;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

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

.site-header nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: #2f3643;
  font-weight: 700;
}

.site-header nav a:hover {
  background: #f1f4f8;
  color: var(--primary);
}

.header-join {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
}

.translate-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 8px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.translate-switch span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

.translate-switch select {
  width: 120px;
  min-height: 30px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero-home {
  position: relative;
  min-height: min(680px, calc(100svh - 96px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(93, 8, 15, 0.98) 0%, rgba(145, 18, 26, 0.95) 48%, rgba(216, 151, 37, 0.92) 100%),
    #8b0000;
  color: #ffffff;
}

.hero-backdrop,
.hero-lines,
.hero-watermark {
  position: absolute;
  inset: 0;
}

.hero-lines {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.hero-watermark {
  width: min(540px, 46vw);
  height: min(540px, 46vw);
  inset: auto 6vw 34px auto;
  opacity: 0.16;
  object-fit: contain;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 72px 0 54px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-home .eyebrow {
  color: #ffe7a5;
}

.hero-home h1 {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.7rem, 7vw, 6rem);
  line-height: 0.98;
}

.hero-lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.join-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.hero-home .btn-primary {
  background: #ffffff;
  color: var(--primary);
}

.btn-secondary {
  background: var(--secondary);
  color: #3a2600;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.hero-home .btn-outline {
  border-color: rgba(255, 255, 255, 0.54);
  color: #ffffff;
}

.hero-metrics {
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
}

.metric-card {
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.metric-card strong {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.section {
  padding: 66px 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 24px;
}

.section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 0;
  color: var(--primary);
  font-weight: 900;
}

.section-automation {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.automation-grid,
.org-overview,
.gallery-grid,
.announcement-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.automation-card,
.org-card,
.announcement-item,
.gallery-card,
.leader-card,
.post-card,
.list-item,
.empty-panel,
.join-panel,
.join-aside,
.portal-card,
.portal-note,
.summary-card,
.org-node,
.submission-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.automation-card {
  min-height: 190px;
  padding: 20px;
}

.automation-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e7f5f3;
  color: var(--teal);
  font-weight: 900;
}

.automation-card h3,
.org-card h3,
.announcement-item h3,
.gallery-card h3,
.post-card h3,
.list-item h3 {
  margin: 14px 0 8px;
  line-height: 1.2;
}

.automation-card p,
.org-card p,
.announcement-item p,
.gallery-card p,
.post-card p,
.list-item p,
.leader-card p,
.join-panel p {
  margin: 0;
  color: var(--muted);
}

.leader-grid {
  display: grid;
  gap: 16px;
}

.leader-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  overflow: hidden;
}

.leader-card > img,
.leader-emblem {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.leader-card > img {
  object-fit: cover;
}

.leader-emblem {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(139, 0, 0, 0.98), rgba(13, 118, 110, 0.82)),
    var(--primary);
}

.leader-emblem img {
  width: min(210px, 58%);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.leader-copy {
  align-self: center;
  padding: clamp(24px, 4vw, 44px);
}

.leader-copy h3 {
  margin: 12px 0 12px;
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  line-height: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff0c2;
  color: #664000;
  font-size: 0.8rem;
  font-weight: 900;
}

.org-card {
  min-height: 180px;
  padding: 18px;
}

.org-card span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.post-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.post-card {
  overflow: hidden;
}

.post-card img,
.post-visual {
  width: 100%;
  height: 220px;
}

.post-featured {
  grid-row: span 2;
}

.post-featured img,
.post-featured .post-visual {
  height: 350px;
}

.post-card img {
  object-fit: cover;
}

.post-visual {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(244, 194, 13, 0.96), rgba(15, 118, 110, 0.82)),
    var(--secondary);
  color: #3d2600;
  text-align: center;
}

.post-visual img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.post-visual span {
  margin-top: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.post-copy {
  padding: 18px;
}

.announcement-band {
  background: #fff8e7;
}

.announcement-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.announcement-item {
  padding: 18px;
  box-shadow: none;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery-card {
  position: relative;
  overflow: hidden;
}

.gallery-card img,
.gallery-card iframe {
  width: 100%;
  height: 220px;
  border: 0;
  object-fit: cover;
}

.gallery-card > div:not(.media-badge) {
  padding: 16px;
}

.media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(16, 21, 37, 0.82);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.empty-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 20px;
}

.empty-panel img {
  width: 56px;
  height: 56px;
}

.empty-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.manifesto-grid,
.split,
.two-col,
.join-wrap,
.portal-shell,
.portal-two-col,
.org-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.list-stack {
  display: grid;
  gap: 12px;
}

.list-item {
  padding: 18px;
  box-shadow: none;
}

.join-band {
  background: #ffffff;
}

.join-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(110deg, rgba(139, 0, 0, 0.96), rgba(139, 0, 0, 0.86) 48%, rgba(244, 194, 13, 0.95)),
    var(--primary);
  color: #ffffff;
}

.join-panel .eyebrow,
.join-panel h2,
.join-panel p {
  color: #ffffff;
}

.join-panel .btn-primary {
  background: #ffffff;
  color: var(--primary);
}

.alert {
  border-radius: 8px;
  padding: 12px 14px;
  margin: 18px 0 0;
  font-weight: 800;
}

.alert.success {
  background: #dff8ec;
  color: #17623f;
}

.alert.error {
  background: #fff0f0;
  color: #9a1b1b;
}

.join-form,
.subscribe-form,
.form-stack {
  display: grid;
  gap: 12px;
}

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

label {
  display: grid;
  gap: 6px;
  color: #263244;
  font-weight: 700;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid #ccd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.24);
  border-color: var(--teal);
}

button {
  border: 0;
}

.join-aside {
  height: fit-content;
  padding: 20px;
}

.join-aside h3,
.portal-copy h1 {
  margin-top: 0;
}

.join-aside ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
}

.join-aside .btn {
  width: 100%;
  margin-top: 10px;
}

.org-summary,
.portal-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.summary-card {
  padding: 18px;
  text-align: center;
}

.summary-card strong {
  display: block;
  color: var(--primary);
  font-size: 2.1rem;
  line-height: 1;
}

.org-tree {
  list-style: none;
  margin: 18px 0 0;
  padding-left: 18px;
  border-left: 2px solid rgba(139, 0, 0, 0.18);
}

.org-tree li {
  position: relative;
  margin: 12px 0;
  padding-left: 16px;
}

.org-tree li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 22px;
  width: 16px;
  border-top: 2px solid rgba(139, 0, 0, 0.18);
}

.org-node {
  padding: 16px;
}

.org-node strong,
.org-node span {
  display: block;
}

.org-node span {
  color: var(--teal);
  font-weight: 900;
}

.portal-shell-tight {
  grid-template-columns: 0.95fr 0.75fr;
}

.portal-card,
.portal-note {
  padding: 20px;
}

.portal-note {
  margin-top: 16px;
}

.portal-link-row a {
  color: var(--primary);
  font-weight: 900;
}

.portal-submission-list {
  display: grid;
  gap: 12px;
}

.submission-item {
  padding: 16px;
}

.submission-header,
.submission-status-row,
.verify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-pending {
  background: #fff3c4;
  color: #7a4b00;
}

.status-approved,
.status-verified {
  background: #dcfce7;
  color: #166534;
}

.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.muted,
.muted-text {
  color: var(--muted);
}

.site-footer {
  background: var(--navy);
  color: #dbe3ee;
}

.footer-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.1fr;
  gap: 28px;
  padding: 42px 0;
}

.site-footer h4 {
  margin: 0 0 12px;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: #dbe3ee;
}

.subscribe-form {
  grid-template-columns: 1fr auto;
}

.subscribe-form button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--secondary);
  color: #372300;
  font-weight: 900;
}

.copyright {
  margin: 0;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

@media (max-width: 1120px) {
  .header-shell {
    align-items: flex-start;
    padding: 14px 0;
  }

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

  .header-actions {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 1px);
    display: none;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .header-actions.is-open {
    display: grid;
  }

  .site-header nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .header-join,
  .translate-switch {
    width: 100%;
  }

  .translate-switch {
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  .section-inner,
  .footer-grid {
    width: min(100% - 28px, 1180px);
  }

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

  .hero-inner {
    padding: 54px 0 42px;
  }

  .hero-metrics,
  .automation-grid,
  .org-overview,
  .post-grid,
  .manifesto-grid,
  .split,
  .two-col,
  .join-wrap,
  .portal-shell,
  .portal-two-col,
  .org-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .leader-card,
  .join-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .post-featured {
    grid-row: auto;
  }

  .post-featured img,
  .post-featured .post-visual {
    height: 240px;
  }

  .hero-watermark {
    width: 72vw;
    height: 72vw;
    right: -8vw;
    bottom: 0;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: grid;
  }

  .form-grid,
  .subscribe-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand span {
    max-width: 210px;
    font-size: 0.94rem;
  }

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

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