:root {
  --surface: #f9f9ff;
  --surface-lowest: #ffffff;
  --surface-low: #f0f3ff;
  --surface-mid: #e7eeff;
  --surface-high: #dee8ff;
  --primary: #031935;
  --primary-container: #1b2e4b;
  --gold: #fec24a;
  --gold-deep: #7c5800;
  --text: #111c2c;
  --muted: #44474d;
  --outline: #c4c6ce;
  --outline-strong: #75777e;
  --danger: #ba1a1a;
  --success: #186a3b;
  --footer: #15191d;
  --shadow: 0 4px 20px rgba(3, 25, 53, 0.12);
  --container: 1280px;
  --gutter: 24px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--text);
  font-family: "Libre Franklin", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  height: 80px;
  padding: 0 clamp(20px, 6vw, 80px);
  border-bottom: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.brand img {
  width: 36px;
  height: 44px;
  border-radius: var(--radius);
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
}

.site-nav a {
  border-bottom: 2px solid transparent;
  padding: 29px 0 25px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: var(--primary);
  color: var(--primary);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.menu-button {
  display: none;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: normal;
}

.button:active,
button.button:active {
  transform: translateY(1px) scale(0.99);
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.button-gold {
  background: var(--gold);
  color: #271900;
}

.button-ghost {
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
}

.button-plain {
  min-height: 36px;
  padding: 0;
  background: transparent;
  color: var(--primary);
}

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

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

#app {
  min-height: 100vh;
  overflow-x: clip;
  padding-top: 80px;
}

.section {
  padding: 72px clamp(20px, 6vw, 80px);
}

.container {
  width: min(100%, var(--container));
  min-width: 0;
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 640px;
  height: calc(100vh - 80px);
  max-height: 820px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 25, 53, 0.9), rgba(3, 25, 53, 0.78) 52%, rgba(3, 25, 53, 0.56)),
    linear-gradient(180deg, rgba(3, 25, 53, 0.16), rgba(3, 25, 53, 0.72)),
    radial-gradient(circle at 84% 24%, rgba(254, 194, 74, 0.24), transparent 28%),
    url("./assets/limache-hero.jpg") center / cover no-repeat,
    var(--primary);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: url("./assets/pnl-transparent.png");
  background-size: min(62vw, 760px);
  background-repeat: no-repeat;
  background-position: right clamp(20px, 7vw, 96px) bottom clamp(12px, 4vw, 56px);
  opacity: 0.22;
  filter: grayscale(8%);
  mix-blend-mode: screen;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.2);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--container));
  min-width: 0;
  margin: 0 auto;
}

.hero-logo {
  width: min(160px, 34vw);
  margin-bottom: 34px;
  object-fit: contain;
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 16px;
  background: var(--gold);
  color: var(--gold-deep);
  padding: 5px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 780px;
  margin: 0 0 24px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero p,
.page-hero p {
  max-width: 680px;
  margin: 0 0 36px;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.6;
  overflow-wrap: break-word;
}

.hero-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.page-hero {
  background: var(--primary);
  color: #fff;
}

.page-hero .container {
  padding: 72px 0;
}

.split-grid,
.news-layout,
.community-grid,
.admin-grid,
.auth-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.mission-card {
  grid-column: span 7;
  display: flex;
  min-width: 0;
  min-height: 320px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--outline);
  background: #fff;
  padding: clamp(24px, 4vw, 48px);
}

.mission-card h2,
.section-heading h2,
.card h3,
.admin-panel h2,
.auth-card h2,
.blog-post h2 {
  margin: 0 0 16px;
  color: var(--primary);
  font-family: "Montserrat", sans-serif;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.mission-card h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.mission-card p,
.section-heading p,
.card p,
.admin-panel p,
.auth-card p,
.blog-post p {
  color: var(--muted);
}

.leader-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--outline);
  padding-top: 24px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.avatar-stack {
  display: flex;
  flex: 0 0 84px;
  width: 84px;
}

.avatar-stack span,
.avatar-stack img {
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  object-fit: cover;
}

.avatar-stack span {
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

.avatar-stack :first-child {
  margin-left: 0;
}

.cta-stack {
  grid-column: span 5;
  display: grid;
  min-width: 0;
  gap: var(--gutter);
}

.cta-tile {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
}

.cta-tile.gold {
  background: var(--gold);
  color: var(--primary);
}

.tile-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
}

.gold .tile-icon {
  background: rgba(3, 25, 53, 0.12);
  color: var(--primary);
}

.surface-band {
  background: var(--surface-low);
  border-block: 1px solid rgba(196, 198, 206, 0.58);
}

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

.section-heading h2 {
  font-size: clamp(28px, 3.2vw, 42px);
}

.page-title,
.page-title-small {
  margin: 0 0 18px;
  color: var(--primary);
  font-family: "Montserrat", sans-serif;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.page-title {
  font-size: clamp(38px, 5vw, 64px);
}

.page-title-small {
  font-size: clamp(28px, 3vw, 40px);
}

.page-lead {
  max-width: 760px;
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

code {
  border-radius: var(--radius);
  background: var(--surface-mid);
  color: var(--primary);
  padding: 2px 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92em;
}

.news-grid,
.small-card-grid,
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.card,
.blog-post,
.auth-card,
.admin-panel,
.notice-panel {
  min-width: 0;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: #fff;
}

.card {
  overflow: hidden;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-mid);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  min-width: 0;
  padding: 24px;
}

.meta,
.label {
  color: var(--gold-deep);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card h3 {
  font-size: 22px;
}

.feature-card {
  grid-column: span 8;
}

.side-card {
  grid-column: span 4;
}

.triple-card {
  grid-column: span 4;
}

.contact-info {
  grid-column: span 5;
  min-width: 0;
}

.contact-form,
.auth-card {
  grid-column: span 7;
  min-width: 0;
}

.info-list {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}

.info-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.info-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
}

.map-panel {
  min-height: 180px;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(17, 28, 44, 0.86), rgba(17, 28, 44, 0.86)),
    repeating-linear-gradient(35deg, transparent 0 24px, rgba(255, 255, 255, 0.14) 25px 27px),
    var(--primary);
}

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

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

.form-field.full {
  grid-column: 1 / -1;
}

.turnstile-field {
  min-height: 65px;
}

.security-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

label,
.field-label {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--outline-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(3, 25, 53, 0.16);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.checkbox-row input {
  width: 16px;
  min-height: 16px;
  margin-top: 3px;
}

.community-grid > .community-main {
  grid-column: span 8;
  min-width: 0;
}

.community-grid > .community-aside {
  grid-column: span 4;
  display: grid;
  min-width: 0;
  gap: var(--gutter);
  align-content: start;
}

.category-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.category-card {
  min-height: 128px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--surface-low);
  padding: 22px;
}

.discussion-list {
  overflow: hidden;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: #fff;
}

.discussion-header,
.discussion-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--outline);
}

.discussion-header {
  display: flex;
  justify-content: space-between;
  background: var(--surface-high);
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 600;
}

.discussion-row:last-child {
  border-bottom: 0;
}

.activity-empty {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 38px);
}

.activity-empty h2 {
  margin: 0;
  color: var(--primary);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.activity-empty p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.discussion-badge {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.response-count {
  min-width: 82px;
  text-align: right;
  color: var(--primary);
  font-weight: 800;
}

.trend-panel {
  position: relative;
  overflow: hidden;
  padding: 34px 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
}

.trend-panel h2 {
  margin: 0 0 24px;
  font-family: "Montserrat", sans-serif;
}

.trend-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.trend-rank {
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  font-weight: 800;
}

.blog-post {
  padding: 26px;
}

.blog-post h2 {
  font-size: 24px;
}

.blog-post .row-actions {
  margin-top: 20px;
}

.blog-author {
  color: var(--muted);
  font-size: 14px;
}

.blog-detail {
  display: grid;
  gap: 24px;
}

.blog-detail-hero .blog-meta {
  margin: 20px 0 0;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-post-full {
  padding: clamp(28px, 4vw, 46px);
}

.blog-body {
  color: var(--text);
  font-size: 17px;
  line-height: 1.72;
  white-space: pre-wrap;
}

.comment-panel {
  min-width: 0;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(24px, 4vw, 38px);
}

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

.comment-panel-head h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 34px);
}

.comment-form {
  margin-bottom: 24px;
}

.comment-thread {
  display: grid;
  gap: 16px;
}

.comment-item {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--surface-low);
  padding: 18px;
}

.comment-item.is-reply {
  margin-left: clamp(16px, 4vw, 48px);
  background: #fff;
}

.comment-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
}

.comment-body {
  margin: 0;
  white-space: pre-wrap;
}

.reply-form {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--outline);
}

.reply-form textarea {
  min-height: 92px;
}

.comment-replies {
  display: grid;
  gap: 14px;
}

.auth-grid {
  align-items: start;
}

.auth-card {
  padding: clamp(24px, 4vw, 40px);
}

.auth-aside {
  grid-column: span 5;
  display: grid;
  min-width: 0;
  gap: 16px;
}

.auth-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.divider::before,
.divider::after {
  height: 1px;
  flex: 1;
  background: var(--outline);
  content: "";
}

.admin-grid > .admin-side {
  grid-column: span 4;
  display: grid;
  min-width: 0;
  gap: var(--gutter);
  align-content: start;
}

.admin-grid > .admin-main {
  grid-column: span 8;
  display: grid;
  min-width: 0;
  gap: var(--gutter);
}

.admin-panel,
.notice-panel {
  padding: 26px;
}

.admin-menu {
  display: grid;
  gap: 10px;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.admin-menu a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-menu a:hover,
.admin-menu a.active {
  border-color: var(--primary);
  background: var(--surface-low);
  color: var(--primary);
}

.copy-group {
  border-top: 1px solid var(--outline);
  padding-top: 22px;
}

.copy-group h3 {
  margin: 0;
  color: var(--primary);
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
}

.copy-grid {
  margin-top: 4px;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-bulk-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: var(--surface-low);
  padding: 12px;
}

.admin-bulk-actions .row-actions {
  justify-content: flex-end;
}

.admin-select-all {
  margin: 0;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface-lowest);
}

.admin-row.selectable-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.admin-row.is-selected {
  border-color: var(--primary);
  background: var(--surface-low);
}

.admin-row-select {
  display: grid;
  min-width: 30px;
  min-height: 44px;
  place-items: center;
  cursor: pointer;
}

.admin-row-select input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.status-pill {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  background: var(--surface-mid);
  color: var(--primary);
  padding: 5px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill.success {
  background: #e2f6e9;
  color: var(--success);
}

.status-pill.danger {
  background: #ffdad6;
  color: #93000a;
}

.hidden {
  display: none !important;
}

.footer {
  background: var(--footer);
  color: #fff;
  padding: 54px 20px;
  text-align: center;
}

.footer h2 {
  margin: 0 0 16px;
  font-family: "Montserrat", sans-serif;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin: 28px 0;
  color: rgba(255, 255, 255, 0.76);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.whatsapp {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #25d366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.32);
}

.whatsapp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 106px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 40px));
}

.toast {
  border: 1px solid var(--outline);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  color: var(--text);
}

.toast.error {
  border-left-color: var(--danger);
}

.empty {
  border: 1px dashed var(--outline-strong);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.64);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    height: 72px;
  }

  #app {
    padding-top: 72px;
  }

  .menu-button {
    display: inline-flex;
    justify-self: end;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    background: #fff;
    color: var(--primary);
    padding: 10px 14px;
    font-family: "JetBrains Mono", monospace;
    font-weight: 800;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  body.nav-open .site-nav,
  body.nav-open .header-actions {
    position: fixed;
    left: 20px;
    right: 20px;
    display: grid;
    justify-content: stretch;
    border: 1px solid var(--outline);
    background: #fff;
    padding: 10px 18px;
  }

  body.nav-open .site-nav {
    top: 82px;
    gap: 0;
  }

  body.nav-open .site-nav a {
    padding: 16px 0;
  }

  body.nav-open .header-actions {
    top: 404px;
    gap: 10px;
  }

  html[data-app-mode="blog"] body.nav-open .header-actions,
  html[data-app-mode="admin"] body.nav-open .header-actions {
    top: 150px;
  }

  .split-grid,
  .news-layout,
  .community-grid,
  .admin-grid,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .mission-card,
  .cta-stack,
  .feature-card,
  .side-card,
  .triple-card,
  .contact-info,
  .contact-form,
  .community-grid > .community-main,
  .community-grid > .community-aside,
  .auth-card,
  .auth-aside,
  .admin-grid > .admin-side,
  .admin-grid > .admin-main {
    grid-column: auto;
  }

  .news-grid,
  .small-card-grid,
  .blog-list,
  .category-row {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    min-height: 680px;
    height: auto;
    max-height: none;
    padding-inline: clamp(20px, 6vw, 48px);
  }

  .hero::before {
    background-size: 94vw;
    background-position: center bottom 28px;
    opacity: 0.12;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
    padding: 0 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    font-size: 19px;
  }

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

  .section {
    padding-block: 52px;
  }

  .hero {
    min-height: 608px;
    padding-inline: 30px;
  }

  .hero-inner.section {
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(32px, 9vw, 42px);
    overflow-wrap: break-word;
  }

  .hero p,
  .page-hero p,
  .page-lead {
    max-width: 100%;
    font-size: 17px;
  }

  .hero-actions .button {
    width: 100%;
    flex: 1 1 auto;
    padding-inline: 14px;
  }

  .hero-logo {
    width: 116px;
  }

  .comment-panel-head {
    flex-direction: column;
  }

  .comment-item.is-reply {
    margin-left: 12px;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-row.selectable-row,
  .admin-bulk-actions {
    grid-template-columns: 1fr;
  }

  .admin-row-select {
    justify-content: start;
    min-height: 24px;
  }

  .admin-row .row-actions {
    width: 100%;
  }

  .discussion-header,
  .discussion-row {
    grid-template-columns: 1fr;
  }

  .response-count {
    text-align: left;
  }

  .whatsapp {
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 380px) {
  .brand span {
    font-size: 17px;
  }

  .hero {
    padding-inline: 20px;
  }
}
