:root {
  --bg: #f4f7f4;
  --bg-soft: #eef5f1;
  --surface: #ffffff;
  --surface-strong: #e2efe8;
  --surface-tint: rgba(255, 255, 255, 0.72);
  --text: #122033;
  --muted: #536276;
  --line: rgba(18, 32, 51, 0.12);
  --green-900: #0f4f43;
  --green-800: #176454;
  --green-700: #287d68;
  --green-500: #4ca58d;
  --red: #d95d39;
  --navy: #17304a;
  --navy-deep: #0f2236;
  --gold: #d4ad57;
  --shadow: 0 24px 60px rgba(19, 39, 58, 0.1);
  --shadow-soft: 0 18px 40px rgba(15, 34, 54, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: min(1180px, calc(100% - clamp(1.4rem, 3.5vw, 2.8rem)));
  --section-space: clamp(3.6rem, 6vw, 5.4rem);
  --surface-border-strong: rgba(255, 255, 255, 0.44);
  --surface-border-soft: rgba(18, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  font-family: "Inter", "Noto Sans Bengali", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(76, 165, 141, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(212, 173, 87, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(244, 247, 244, 0.98)),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a,
button,
input,
select,
textarea {
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(76, 165, 141, 0.28);
  outline-offset: 3px;
}

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

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(18, 32, 51, 0.08);
  box-shadow: var(--shadow-soft);
  transition:
    background-color 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.site-header.scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(18, 32, 51, 0.08);
  box-shadow: var(--shadow-soft);
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  min-height: 80px;
  padding: 0.7rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  justify-self: start;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.2), transparent 35%),
    linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
  letter-spacing: 0.06em;
  box-shadow: 0 14px 30px rgba(15, 79, 67, 0.22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-copy {
  max-width: 220px;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--navy-deep);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  justify-self: center;
  justify-content: center;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.18;
  padding: 0.28rem 0;
  border-radius: 0;
  text-align: center;
  letter-spacing: 0.01em;
}

.site-nav a.active {
  color: var(--navy-deep);
  background: transparent;
  box-shadow: none;
}

.site-nav a:not(.button):hover {
  color: var(--navy-deep);
  background: transparent;
}

.site-nav a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.32rem;
  height: 2px;
  border-radius: 999px;
  background: var(--green-700);
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a.active:not(.button)::after,
.site-nav a:not(.button):hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav a.button,
.site-nav a.button.active {
  color: #fff;
  padding: 0.82rem 1.25rem;
}

.nav-cta {
  justify-self: end;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  box-shadow: 0 14px 28px rgba(15, 79, 67, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(15, 79, 67, 0.28);
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(18, 32, 51, 0.08);
  padding: 0;
  box-shadow: var(--shadow-soft);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 999px;
}

.hero,
.page-hero {
  padding: clamp(3rem, 5vw, 4rem) 0 clamp(2.2rem, 4vw, 3rem);
}

body:not([data-page="article-detail"]) .hero {
  padding-top: clamp(5.2rem, 8vw, 6.2rem);
}

body[data-page="article-detail"] main {
  padding-top: 118px;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.04);
  z-index: -2;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

body[data-page="home"] .hero::before {
  background-image: url("assets/images/home-dhaka-river.jpg");
}

body[data-page="home"] .hero::after {
  background:
    linear-gradient(90deg, rgba(15, 34, 54, 0.88) 0%, rgba(15, 34, 54, 0.68) 48%, rgba(15, 34, 54, 0.4) 100%),
    linear-gradient(180deg, rgba(15, 79, 67, 0.2), rgba(15, 34, 54, 0.46));
}

body[data-page="research"] .hero::before {
  background-image: url("assets/images/research-team.jpg");
}

body[data-page="about"] .hero::before {
  background-image: url("assets/images/network-collaboration.jpg");
}

body[data-page="articles"] .hero::before {
  background-image: url("assets/images/articles-computers.jpg");
}

body[data-page="network"] .hero::before {
  background-image: url("assets/images/network-collaboration.jpg");
}

body[data-page="contributors"] .hero::before {
  background-image: url("assets/images/network-collaboration.jpg");
}

body[data-page="news"] .hero::before {
  background-image: url("assets/images/news-dhaka-sunset.jpg");
}

body[data-page="dashboard"] .hero::before {
  background-image: url("assets/images/dashboard-dhaka-skyline.jpg");
}

body[data-page="join"] .hero::before {
  background-image: url("assets/images/join-partnership.jpg");
}

body[data-page="admin"] .hero::before {
  background-image: url("assets/images/dashboard-dhaka-skyline.jpg");
}

body[data-page="about"] .hero::after,
body[data-page="research"] .hero::after,
body[data-page="articles"] .hero::after,
body[data-page="network"] .hero::after,
body[data-page="contributors"] .hero::after,
body[data-page="news"] .hero::after,
body[data-page="dashboard"] .hero::after,
body[data-page="join"] .hero::after,
body[data-page="admin"] .hero::after {
  background:
    linear-gradient(90deg, rgba(15, 34, 54, 0.92) 0%, rgba(15, 34, 54, 0.72) 34%, rgba(15, 34, 54, 0.28) 72%, rgba(15, 34, 54, 0.18) 100%),
    linear-gradient(180deg, rgba(15, 79, 67, 0.12), rgba(15, 34, 54, 0.6));
}

.hero > .container,
.page-hero > .container {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 3rem));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  min-height: calc(72vh - 80px);
  min-height: calc(72svh - 80px);
}

.hero-copy-block {
  display: grid;
  gap: 0.95rem;
  width: min(100%, 40rem);
  justify-self: start;
  padding-left: 0.35rem;
  align-self: start;
  padding-top: 0.4rem;
}

.eyebrow {
  color: var(--green-700);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.8rem;
  line-height: 1.12;
}

h1 {
  font-size: clamp(1.95rem, 3.6vw, 3.15rem);
  max-width: 15ch;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.hero h1,
.hero h2,
.hero .eyebrow {
  color: #fff;
}

.hero h1,
.hero h2 {
  font-size: clamp(1.55rem, 2.35vw, 2.2rem);
  line-height: 1.02;
  max-width: 100%;
  text-align: left;
  text-wrap: balance;
}

body[data-page="home"] .hero h2 {
  color: #fff;
}

.hero-copy-block {
  width: min(100%, 46rem);
}

.hero-copy,
.rich-copy p,
.info-card p,
.pillar-card p,
.preview-panel p,
.featured-article p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.hero-copy {
  max-width: 58ch;
}

body[data-page="home"] .hero-copy,
body[data-page="about"] .hero .hero-copy,
body[data-page="research"] .hero .hero-copy,
body[data-page="articles"] .hero .hero-copy,
body[data-page="network"] .hero .hero-copy,
body[data-page="news"] .hero .hero-copy,
body[data-page="dashboard"] .hero .hero-copy,
body[data-page="join"] .hero .hero-copy {
  color: rgba(255, 255, 255, 0.84);
}

.hero .metric-card span {
  color: var(--muted);
}

.button-row,
.form-actions,
.share-row,
.social-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow);
  min-height: 48px;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(15, 79, 67, 0.24);
}

.button-small {
  padding: 0.72rem 1rem;
  font-size: 0.92rem;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--green-900);
  border: 1px solid rgba(23, 100, 84, 0.14);
  box-shadow: none;
}

.text-link {
  color: var(--green-900);
  font-weight: 700;
}

.hero-metrics,
.card-grid,
.pillar-grid,
.profile-grid,
.dashboard-grid {
  display: grid;
  gap: 1rem;
}

.hero-metrics {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}

.metric-card,
.info-card,
.pillar-card,
.preview-panel,
.result-card,
.featured-article,
.profile-card,
.dashboard-card,
.dashboard-panel,
.join-form,
.join-copy,
.side-card,
.download-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.58));
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius);
  box-shadow:
    0 20px 50px rgba(15, 34, 54, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.metric-card {
  padding: 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.5));
  border-color: rgba(255, 255, 255, 0.3);
}

.metric-card strong {
  display: block;
  font-size: 1.8rem;
  color: var(--navy-deep);
}

.hero-visual {
  position: relative;
  animation: floatY 8s ease-in-out infinite;
}

.visual-shell {
  position: relative;
  min-height: 450px;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(15, 79, 67, 0.98), rgba(23, 48, 74, 0.96)),
    var(--green-900);
  box-shadow: var(--shadow);
}

.visual-shell::before,
.visual-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.visual-shell::before {
  animation: softPulse 8.5s ease-in-out infinite;
}

.visual-shell::after {
  animation: softPulse 10s ease-in-out infinite reverse;
}

.visual-shell::before {
  width: 340px;
  height: 340px;
  top: 50px;
  left: 80px;
}

.visual-shell::after {
  width: 220px;
  height: 220px;
  top: 110px;
  left: 140px;
}

.visual-globe {
  position: absolute;
  inset: 55px 70px auto auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 38%),
    radial-gradient(circle at 65% 65%, rgba(217, 45, 32, 0.34), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.visual-panel {
  position: absolute;
  left: 32px;
  bottom: 36px;
  padding: 1.2rem;
  width: 250px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: floatY 7.2s ease-in-out infinite;
}

.visual-panel.offset {
  left: auto;
  right: 32px;
  bottom: 88px;
  animation-delay: -2.4s;
}

.visual-panel span,
.visual-panel small {
  display: block;
}

.visual-panel strong {
  display: block;
  font-size: 2rem;
  margin: 0.3rem 0;
}

.section {
  padding: var(--section-space) 0;
}

body:not([data-page="home"]) .hero + .section,
body:not([data-page="home"]) .hero + .section.alt-bg {
  padding-top: 3.5rem;
}

.alt-bg {
  background: linear-gradient(180deg, rgba(226, 239, 232, 0.82), rgba(244, 247, 244, 0.98));
}

.story-grid,
.two-up,
.preview-grid,
.join-grid,
.article-shell {
  display: grid;
  gap: 1.5rem;
}

.story-grid {
  grid-template-columns: 0.85fr 1.15fr;
}

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

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

.join-grid,
.article-shell {
  grid-template-columns: 0.9fr 1.1fr;
}

.admin-shell-grid {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: 1.5rem;
  align-items: start;
}

.admin-main {
  display: grid;
  gap: 1.5rem;
}

.admin-sidebar {
  display: grid;
  gap: 1.5rem;
}

.admin-card,
.admin-list-item {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(15, 34, 54, 0.08);
}

body[data-page="admin"] [hidden] {
  display: none !important;
}

.admin-card {
  padding: 1.5rem;
}

.admin-form,
.stack-form {
  display: grid;
  gap: 1.05rem;
}

.admin-form label,
.stack-form label {
  display: grid;
  gap: 0.42rem;
  color: var(--navy-deep);
  font-size: 0.94rem;
  font-weight: 700;
}

.admin-form textarea,
.stack-form textarea {
  resize: vertical;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.stack-form input,
.stack-form select,
.stack-form textarea {
  width: 100%;
  border: 1px solid rgba(18, 32, 51, 0.12);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 0.85rem 0.95rem;
  box-shadow: inset 0 1px 2px rgba(15, 34, 54, 0.03);
}

.admin-form .field-grid,
.stack-form .field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  justify-content: stretch;
  gap: 1rem;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.admin-summary div {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(244, 247, 244, 0.98), rgba(236, 242, 239, 0.92));
  border: 1px solid rgba(18, 32, 51, 0.06);
}

.admin-summary strong,
.admin-list-item strong {
  display: block;
  font-size: 1.3rem;
  color: var(--navy-deep);
}

.admin-summary span {
  color: var(--muted);
}

.admin-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-list-item {
  padding: 1.15rem 1.2rem;
}

.admin-list-item p {
  margin: 0.35rem 0 0;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
}

.admin-auth-shell {
  display: grid;
  justify-content: center;
}

.admin-auth-card {
  max-width: 520px;
  width: 100%;
  padding: 1.75rem;
}

.admin-auth-help {
  margin: 1rem 0 0;
  color: var(--muted);
}

.admin-console {
  display: grid;
  gap: 1.5rem;
}

.admin-hero {
  padding-top: 6.6rem;
  padding-bottom: 1.1rem;
}

.admin-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}

.admin-masthead-simple {
  grid-template-columns: minmax(0, 1fr);
}

.admin-masthead-copy {
  max-width: 720px;
}

.admin-masthead-copy .hero-copy {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.82);
}

.admin-masthead-meta {
  display: grid;
  gap: 0.9rem;
}

.admin-masthead-card {
  display: grid;
  gap: 0.28rem;
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(15, 34, 54, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.admin-masthead-card span,
.admin-masthead-card small {
  color: rgba(255, 255, 255, 0.8);
}

.admin-masthead-card strong {
  color: #fff;
  font-size: 1.05rem;
}

.admin-console-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-console-subcopy {
  margin: 0.4rem 0 0;
  color: var(--muted);
  max-width: 56ch;
}

.admin-user-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 0.95rem 1rem;
  background: #fff;
  border: 1px solid rgba(18, 32, 51, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.admin-user-chip strong {
  text-transform: capitalize;
  color: var(--green-900);
}

.admin-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.admin-nav-card {
  padding: 1.25rem;
}

.admin-nav-copy {
  display: grid;
  gap: 0.35rem;
}

.admin-nav-copy h3 {
  margin: 0;
  font-size: 1.05rem;
}

.admin-nav-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.admin-section-nav {
  display: grid;
  gap: 0.55rem;
}

.admin-section-tab {
  appearance: none;
  border: 1px solid rgba(18, 32, 51, 0.08);
  background: rgba(244, 247, 244, 0.92);
  color: var(--navy-deep);
  text-align: left;
  font: inherit;
  font-weight: 700;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.admin-section-tab span,
.admin-section-tab small {
  display: block;
}

.admin-section-tab small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.admin-section-tab:hover,
.admin-section-tab.active {
  background: rgba(15, 79, 67, 0.12);
  border-color: rgba(40, 125, 104, 0.34);
  transform: translateY(-1px);
}

.admin-section-tab.active small,
.admin-section-tab:hover small {
  color: var(--green-900);
}

.admin-workspace-main {
  display: grid;
  gap: 1.5rem;
}

.admin-stage {
  display: grid;
  gap: 1.5rem;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.admin-stack-grid {
  display: grid;
  gap: 1.15rem;
}

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

.admin-submissions-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.5rem;
}

.admin-column-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: calc(100vh - 240px);
  min-height: calc(100svh - 240px);
  overflow: hidden;
}

.admin-panel-header {
  position: relative;
  z-index: 1;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(18, 32, 51, 0.08);
}

.admin-panel-body {
  min-height: 0;
}

.admin-scroll-body {
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-width: thin;
}

.admin-scroll-body::-webkit-scrollbar {
  width: 10px;
}

.admin-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(23, 100, 84, 0.22);
  border-radius: 999px;
}

.admin-scroll-card {
  min-height: calc(100vh - 240px);
  min-height: calc(100svh - 240px);
}

.admin-list-scroll {
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding-right: 0;
  margin-top: 0;
}

.admin-list-scroll::-webkit-scrollbar {
  width: 10px;
}

.admin-list-scroll::-webkit-scrollbar-thumb {
  background: rgba(23, 100, 84, 0.22);
  border-radius: 999px;
}
.admin-overview-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.admin-note-card {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(244, 247, 244, 0.98), rgba(236, 242, 239, 0.92));
  border: 1px solid rgba(18, 32, 51, 0.06);
}

.admin-note-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.admin-note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-inline-note {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(244, 247, 244, 0.98), rgba(236, 242, 239, 0.92));
  border: 1px solid rgba(18, 32, 51, 0.06);
}

.admin-inline-note p {
  margin: 0;
  color: var(--muted);
}

.admin-upload-field small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
}

.admin-list.compact-list {
  margin-top: 0;
}

.admin-list-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.button.tiny {
  min-height: auto;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
}

.button.danger {
  color: #8f2d20;
  border-color: rgba(217, 93, 57, 0.28);
  background: rgba(255, 255, 255, 0.78);
}

.multi-select {
  min-height: 148px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

body[data-page="admin"] .section-heading {
  align-items: end;
}

body[data-page="admin"] .section-heading h2 {
  font-size: 1.55rem;
  line-height: 1.12;
  margin: 0.2rem 0 0;
}

body[data-page="admin"] .section-heading p {
  margin: 0;
}

@media (max-width: 1180px) {
  .admin-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .admin-masthead {
    grid-template-columns: 1fr;
  }

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

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

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

  .admin-column-panel,
  .admin-scroll-card {
    min-height: auto;
  }

  .admin-panel-header {
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
  }

  .admin-scroll-body {
    overflow: visible;
    padding-right: 0;
  }

  .admin-list-scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

.checkbox-row input {
  width: auto;
}

.full-width {
  width: 100%;
}

.button-reset {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.info-card,
.pillar-card,
.preview-panel,
.featured-article,
.join-form,
.join-copy,
.side-card,
.dashboard-panel,
.download-panel {
  padding: 1.6rem;
}

.join-copy,
.join-form,
.featured-article,
.filters,
.stats-band,
.admin-card {
  position: relative;
}

.result-card,
.profile-card,
.dashboard-card,
.info-card,
.pillar-card,
.preview-panel,
.dashboard-panel,
.download-panel,
.side-card,
.join-copy,
.join-form {
  position: relative;
  overflow: hidden;
}

.result-card::before,
.profile-card::before,
.dashboard-card::before,
.info-card::before,
.pillar-card::before,
.preview-panel::before,
.dashboard-panel::before,
.download-panel::before,
.side-card::before,
.join-copy::before,
.join-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(76, 165, 141, 0.9), rgba(212, 173, 87, 0.7));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.result-card:hover,
.profile-card:hover,
.dashboard-card:hover,
.pillar-card:hover,
.preview-panel:hover,
.info-card:hover,
.join-copy:hover,
.join-form:hover,
.featured-article:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(15, 34, 54, 0.12);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes softPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.78;
    transform: scale(1.04);
  }
}

.result-card:hover::before,
.profile-card:hover::before,
.dashboard-card:hover::before,
.pillar-card:hover::before,
.preview-panel:hover::before {
  opacity: 1;
}

.section-heading,
.stats-band,
.filters,
.field-grid,
.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-heading.compact {
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  letter-spacing: -0.02em;
}

.section-heading h2,
.section-heading p,
.preview-panel h2,
.preview-panel p {
  max-width: 42rem;
}

.pillar-grid {
  grid-template-columns: repeat(5, 1fr);
}

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

.card-grid.large {
  margin-top: 1.4rem;
}

.profile-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.25rem;
}

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

.result-card,
.profile-card,
.dashboard-card {
  padding: 1.4rem;
}

.result-card h3,
.profile-card h3,
.dashboard-card h3,
.preview-panel h2,
.info-card h3,
.pillar-card h3,
.join-copy h2,
.join-form h2,
.featured-article h2 {
  letter-spacing: -0.02em;
}

.result-card h3,
.profile-card h3,
.dashboard-card h3,
.pillar-card h3,
.info-card h3 {
  margin-bottom: 0.65rem;
}

.result-card p,
.profile-card p,
.dashboard-card p,
.pillar-card p {
  margin: 0.45rem 0 0;
}

.card-meta,
.profile-meta,
.article-meta,
.result-status {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.chip,
.tag-cloud span,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 138, 95, 0.1);
  color: var(--green-900);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.status-badge.unread {
  background: rgba(217, 93, 57, 0.12);
  color: #9b3720;
}

.status-badge.read {
  background: rgba(40, 125, 104, 0.12);
  color: var(--green-900);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag.alt {
  background: rgba(217, 93, 57, 0.1);
  color: var(--red);
}

.stack-list {
  display: grid;
  gap: 0.9rem;
}

.stack-item {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.stack-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.stack-item h3 {
  margin-bottom: 0.35rem;
}

.profile-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.profile-card .avatar {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.14), rgba(16, 35, 60, 0.12));
  font-weight: 800;
  color: var(--green-900);
  margin-bottom: 1rem;
}

.mini-chart {
  margin: 1rem 0;
}

.mini-chart .bar,
.metric-bar .bar {
  width: 100%;
  height: 10px;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: rgba(16, 35, 60, 0.08);
  overflow: hidden;
}

.mini-chart .bar i,
.metric-bar .bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), var(--green-900));
}

.mini-chart .bar.danger i {
  background: linear-gradient(90deg, var(--gold), var(--red));
}

.metric-bar .bar.danger i {
  background: linear-gradient(90deg, var(--gold), var(--red));
}

.cta-band {
  background: linear-gradient(135deg, rgba(15, 79, 67, 0.96), rgba(23, 48, 74, 0.97));
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer {
  background:
    radial-gradient(circle at top left, rgba(76, 165, 141, 0.12), transparent 30%),
    var(--navy-deep);
  color: rgba(255, 255, 255, 0.86);
  padding-top: 3rem;
}

.site-footer h4 {
  margin-bottom: 0.85rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.2rem;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0.45rem 0;
  color: rgba(255, 255, 255, 0.75);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.35rem;
}

.footer-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  box-shadow: none;
}

.newsletter-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.newsletter-form > * {
  min-width: 0;
}

.newsletter-form input,
.newsletter-form button,
.filters input,
.filters select,
.join-form input,
.join-form select,
.join-form textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(18, 32, 51, 0.12);
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.join-form input,
.join-form select,
.join-form textarea,
.admin-form input,
.admin-form select,
.admin-form textarea,
.filters input,
.filters select {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.join-form input:hover,
.join-form select:hover,
.join-form textarea:hover,
.admin-form input:hover,
.admin-form select:hover,
.admin-form textarea:hover,
.filters input:hover,
.filters select:hover {
  border-color: rgba(23, 100, 84, 0.2);
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.filters input:focus,
.filters select:focus {
  border-color: rgba(40, 125, 104, 0.44);
  box-shadow: 0 0 0 4px rgba(76, 165, 141, 0.12);
}

.filters {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.filters input,
.filters select {
  border-color: rgba(23, 48, 74, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

.filters input::placeholder {
  color: rgba(83, 98, 118, 0.9);
}

.newsletter-form button {
  width: auto;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  border: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0 1.6rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  align-items: center;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.compact-footer {
  padding-top: 1rem;
}

.filters input {
  min-width: 260px;
  flex: 2 1 260px;
}

.filters select {
  min-width: 180px;
  flex: 1 1 180px;
}

.results-meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.featured-article {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: stretch;
}

.featured-article .feature-panel {
  padding: 1.4rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.14)),
    linear-gradient(135deg, rgba(15, 79, 67, 0.9), rgba(23, 48, 74, 0.88));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 20px 50px rgba(15, 34, 54, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.featured-article .feature-panel .card-meta,
.featured-article .feature-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.featured-article > div:last-child {
  display: grid;
  align-content: center;
  gap: 0.8rem;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.8rem;
}

.article-layout {
  position: relative;
  padding-top: 3rem;
}

.article-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.64));
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.34);
  padding: 2rem;
  box-shadow:
    0 20px 50px rgba(15, 34, 54, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.article-body h3 {
  margin-top: 1.8rem;
}

.article-body h1 {
  max-width: 100%;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.article-body p {
  color: var(--muted);
  margin: 1.1rem 0;
}

.article-sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.full-width {
  width: 100%;
}

.stats-band {
  padding: 1.2rem 1.4rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 79, 67, 0.96), rgba(23, 48, 74, 0.94));
  color: #fff;
}

.stats-band strong {
  display: block;
  font-size: 1.6rem;
}

.stats-band span {
  color: rgba(255, 255, 255, 0.78);
}

.dashboard-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.metric-bars {
  display: grid;
  gap: 1rem;
}

.metric-bar span,
.metric-bar strong {
  display: block;
}

.metric-bar strong {
  margin-top: 0.3rem;
}

.download-panel {
  margin-top: 1rem;
}

.join-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
  min-width: 0;
}

.join-form,
.join-copy {
  min-height: 100%;
}

.join-copy h2,
.join-form h2 {
  margin-bottom: 1rem;
}

.field-grid {
  align-items: stretch;
}

.field-grid > * {
  flex: 1 1 260px;
  min-width: 0;
}

.form-message {
  color: var(--green-900);
  font-weight: 700;
  min-height: 1.4rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1024px) {
  .nav-wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .container {
    width: min(100% - 2rem, 980px);
  }

  .site-nav {
    gap: 0.72rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav a {
    font-size: 0.84rem;
    padding: 0.25rem 0;
  }

  .hero-grid,
  .story-grid,
  .two-up,
  .preview-grid,
  .join-grid,
  .admin-workspace,
  .admin-shell-grid,
  .admin-split-grid,
  .article-shell,
  .featured-article,
  .dashboard-panels {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    align-items: start;
  }

  .hero-metrics,
  .card-grid,
  .pillar-grid,
  .profile-grid,
  .dashboard-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-article > div:last-child {
    align-content: start;
  }

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

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

  .hero-copy-block {
    width: 100%;
    max-width: 38rem;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 1.5rem, 900px);
  }

  .nav-wrap {
    gap: 0.9rem;
    min-height: 86px;
  }

  .brand {
    gap: 0.8rem;
    min-width: 0;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  .brand-copy {
    max-width: 190px;
    font-size: 0.78rem;
  }

  .site-nav {
    gap: 0.7rem;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .nav-cta {
    font-size: 0.86rem;
    padding-inline: 1rem;
  }

  .hero-grid,
  .page-hero .hero-grid {
    gap: 1.8rem;
  }

  .admin-card {
    padding: 1.35rem;
  }

  .admin-console-head,
  .admin-list-meta {
    align-items: start;
  }

  .admin-nav-card {
    position: static;
  }

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

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

  .hero-metrics .metric-card:last-child {
    grid-column: 1 / -1;
  }

  .visual-shell {
    min-height: 360px;
  }

  .visual-globe {
    width: 250px;
    height: 250px;
    inset: 54px 28px auto auto;
  }

  .visual-panel {
    width: 225px;
    left: 24px;
    bottom: 24px;
  }

  .visual-panel.offset {
    right: 24px;
    bottom: 84px;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 1.5rem, 100%);
  }

  .site-header {
    background: rgba(255, 255, 255, 0.94);
  }

  .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 84px;
    padding: 0.8rem 0;
  }

  .brand {
    flex: 1;
    min-width: 0;
    gap: 0.72rem;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    flex-shrink: 0;
  }

  .site-nav {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    top: 88px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.95rem;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 241, 0.98));
    border-radius: 24px;
    border: 1px solid rgba(18, 32, 51, 0.08);
    box-shadow: var(--shadow);
    max-height: calc(100svh - 96px);
    overflow-y: auto;
    gap: 0.35rem;
    margin-left: 0;
    justify-content: flex-start;
    justify-self: auto;
    transform: translateY(-6px);
    opacity: 0;
  }

  .site-nav.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  .site-nav a {
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.3;
  }

  .site-nav a:not(.button)::after {
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.4rem;
  }

  .nav-cta {
    justify-self: auto;
    margin-top: 0.35rem;
    width: 100%;
    justify-content: center;
    min-height: 50px;
  }

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

  .brand-copy {
    display: block;
    max-width: 180px;
    font-size: 0.77rem;
    line-height: 1.18;
  }

  .hero,
  .page-hero,
  .section {
    padding: 3.25rem 0;
  }

  .hero > .container,
  .page-hero > .container {
    width: min(100% - 2rem, 100%);
  }

  .hero {
    padding-top: 1.8rem;
    padding-bottom: 2rem;
  }

  body:not([data-page="article-detail"]) .hero {
    padding-top: 7.5rem;
  }

  .page-hero {
    min-height: max(250px, calc(74svh - 92px));
    padding-top: 2rem;
    padding-bottom: 2rem;
    align-items: flex-start;
  }

  .page-hero .hero-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: auto;
    align-items: flex-start;
  }

  .hero-grid {
    gap: 1.5rem;
    min-height: auto;
  }

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

  .admin-user-chip {
    width: 100%;
    border-radius: 22px;
  }

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

  .hero-copy,
  .page-hero p {
    max-width: 100%;
  }

  .hero-copy-block {
    width: 100%;
    padding-left: 0;
    padding-top: 0;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    max-width: 100%;
  }

  h2 {
    font-size: clamp(1.55rem, 7.2vw, 2.2rem);
  }

  .hero h1,
  .hero h2 {
    max-width: 100%;
    line-height: 1.06;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.05;
    margin-left: 0;
    margin-right: 0;
  }

  .page-hero p {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
    margin-left: 0;
    margin-right: 0;
  }

  .page-hero .button-row,
  .page-hero .hero-metrics,
  .page-hero .eyebrow {
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
  }

  .button-row,
  .form-actions,
  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row > *,
  .form-actions > *,
  .newsletter-form > * {
    width: 100%;
  }

  .hero-metrics,
  .card-grid,
  .pillar-grid,
  .profile-grid,
  .dashboard-grid,
  .footer-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-heading,
  .stats-band,
  .filters,
  .field-grid,
  .download-panel {
    align-items: stretch;
  }

  .filters input,
  .filters select {
    min-width: 0;
    flex-basis: 100%;
  }

  .filters {
    padding: 0.85rem;
    border-radius: 18px;
  }

  .section-heading p,
  .results-meta,
  .card-meta,
  .profile-meta,
  .article-meta,
  .result-status {
    width: 100%;
  }

  .button,
  .button-secondary,
  .button-small {
    width: 100%;
    min-height: 52px;
  }

  .section-heading h2,
  .preview-panel h2,
  .join-copy h2,
  .join-form h2,
  .featured-article h2 {
    line-height: 1.12;
  }

  .button-row .button,
  .form-actions .button {
    justify-content: center;
  }

  .visual-shell {
    min-height: 320px;
    border-radius: 26px;
  }

  .visual-globe {
    width: 180px;
    height: 180px;
    inset: 42px 18px auto auto;
  }

  .visual-panel {
    width: calc(100% - 2rem);
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 18px;
  }

  .visual-panel.offset {
    right: 1rem;
    left: 1rem;
    bottom: 104px;
  }

  .metric-card,
  .info-card,
  .pillar-card,
  .preview-panel,
  .result-card,
  .featured-article,
  .profile-card,
  .dashboard-card,
  .dashboard-panel,
  .join-form,
  .join-copy,
  .side-card,
  .download-panel,
  .article-body {
    padding: 1.15rem;
    border-radius: 20px;
  }

  .article-layout {
    padding-top: 2rem;
  }

  .metric-card {
    min-height: auto;
  }

  .metric-card strong {
    font-size: 1.55rem;
  }

  .featured-article .feature-panel,
  .article-body {
    padding: 1.2rem;
  }

  .stats-band {
    padding: 1rem 1.05rem;
  }

  .join-form textarea {
    min-height: 160px;
  }

  .footer-grid > div,
  .footer-grid > section,
  .footer-grid > article {
    min-width: 0;
  }

  .results-meta {
    margin-top: 0.8rem;
  }
}

@media (max-width: 560px) {
  .brand-copy {
    max-width: 160px;
    font-size: 0.72rem;
  }

  .hero-copy,
  .page-hero p,
  .rich-copy p,
  .preview-panel p,
  .info-card p,
  .pillar-card p {
    font-size: 0.98rem;
  }

  .section-heading {
    gap: 0.7rem;
  }

  .admin-auth-card,
  .admin-card {
    padding: 1.2rem;
  }

  .hero-metrics {
    gap: 0.85rem;
    margin-top: 1.5rem;
  }

  .metric-card strong {
    font-size: 1.45rem;
  }

  .visual-shell {
    min-height: 300px;
  }

  .visual-globe {
    width: 150px;
    height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
