:root {
  --ink: #07131d;
  --ink-soft: #122432;
  --paper: #f4f4ee;
  --white: #ffffff;
  --muted: #60707b;
  --line: rgba(7, 19, 29, 0.14);
  --blue: #1d6cf2;
  --cyan: #42d8ff;
  --lime: #b8f13c;
  --amber: #ffb24a;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  min-height: 82px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-size: 17px;
  font-weight: 900;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.08);
}
.brand-name { font-size: 21px; font-weight: 900; letter-spacing: 0.15em; }
.desktop-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 700; }
.desktop-nav a, .footer-links a { transition: color 160ms ease; }
.desktop-nav a:hover, .footer-links a:hover { color: var(--blue); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.search-icon { width: 15px; height: 15px; display: block; border: 2px solid var(--ink); border-radius: 50%; position: relative; }
.search-icon::after { content: ""; width: 7px; height: 2px; position: absolute; right: -6px; bottom: -3px; background: var(--ink); transform: rotate(45deg); border-radius: 10px; }
.button {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(184, 241, 60, 0.24); }
.button-small { min-height: 42px; padding: 0 19px; background: var(--ink); color: var(--white); }

.news-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 13px 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.news-strip a { margin-left: auto; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(184, 241, 60, 0.2); }
.news-divider { width: 1px; height: 14px; background: var(--line); }

.hero {
  min-height: 680px;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.hero-copy { padding: 96px 36px 78px clamp(36px, 6vw, 94px); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 20px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
.hero .eyebrow, .timeline-section .eyebrow { color: var(--lime); }
.hero h1 {
  max-width: 660px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.3vw, 82px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero-summary { max-width: 600px; margin: 30px 0 0; color: #b8c5cd; font-size: 18px; line-height: 1.7; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.read-meta { color: #8fa2ae; font-size: 12px; }
.hero-art {
  min-height: 680px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 24%, rgba(66, 216, 255, 0.55), transparent 2%),
    radial-gradient(circle at 17% 28%, rgba(255, 255, 255, 0.95), transparent 0.12%),
    radial-gradient(circle at 75% 75%, rgba(184, 241, 60, 0.3), transparent 1.2%),
    radial-gradient(circle at 50% 50%, #1d4260 0, #102b3d 27%, #07131d 68%);
}
.hero-art::before, .hero-art::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero-art::before {
  opacity: 0.7;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(66,216,255,.8) 0 1px, transparent 1.5px);
  background-position: 0 0, 42px 57px;
  background-size: 76px 76px, 123px 123px;
}
.hero-art::after { background: linear-gradient(90deg, var(--ink), transparent 30%); }
.planet {
  width: min(43vw, 610px);
  aspect-ratio: 1;
  position: absolute;
  right: -8%;
  top: 15%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 29%, rgba(255,255,255,.22), transparent 16%),
    repeating-linear-gradient(168deg, rgba(255,255,255,.08) 0 8px, transparent 9px 32px),
    linear-gradient(135deg, #75e4ff, #1f6f9c 42%, #0a2638 70%);
  box-shadow: -42px 8px 90px rgba(66, 216, 255, 0.28), inset -75px -30px 100px rgba(0, 0, 0, 0.76);
}
.planet-glow { position: absolute; inset: -12px; border: 1px solid rgba(66, 216, 255, 0.45); border-radius: 50%; filter: blur(4px); }
.orbit { position: absolute; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 50%; transform: rotate(-24deg); }
.orbit-one { width: 760px; height: 270px; right: -110px; top: 320px; }
.orbit-two { width: 880px; height: 340px; right: -100px; top: 280px; }
.art-caption {
  position: absolute;
  left: 42px;
  bottom: 38px;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid var(--lime);
  color: #b7c5cd;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.art-caption strong { color: var(--white); font-size: 14px; }

.worlds-section, .latest-section { max-width: var(--max); margin: 0 auto; padding: 110px clamp(24px, 6vw, 94px); }
.section-heading { margin-bottom: 46px; display: grid; grid-template-columns: 1fr minmax(280px, 460px); align-items: end; gap: 48px; }
.section-heading-inline { grid-template-columns: 1fr auto; }
.section-heading h2, .timeline-intro h2, .newsletter h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.section-heading > p, .timeline-intro > p, .story-body > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.world-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.world-card {
  min-height: 390px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: color 180ms ease, background 180ms ease;
}
.world-card:hover { color: var(--white); background: var(--ink); }
.world-number { font-size: 11px; font-weight: 850; letter-spacing: 0.14em; }
.world-symbol { width: 148px; aspect-ratio: 1; align-self: center; border: 1px solid currentColor; border-radius: 50%; opacity: 0.85; position: relative; }
.world-space .world-symbol::before, .world-space .world-symbol::after { content: ""; position: absolute; border: 1px solid var(--blue); border-radius: 50%; transform: rotate(-24deg); }
.world-space .world-symbol::before { width: 190px; height: 58px; left: -22px; top: 44px; }
.world-space .world-symbol::after { width: 12px; height: 12px; right: 5px; top: 26px; background: var(--blue); }
.world-biology .world-symbol { border-radius: 70% 30% 70% 30%; border-color: #54a84c; transform: rotate(-15deg); }
.world-biology .world-symbol::before { content: ""; width: 1px; height: 120%; position: absolute; left: 50%; top: -10%; background: #54a84c; transform: rotate(45deg); }
.world-history .world-symbol { border-radius: 4px; border-color: var(--amber); transform: rotate(45deg) scale(.72); box-shadow: 18px 18px 0 transparent, 18px 18px 0 1px var(--amber), -18px -18px 0 transparent, -18px -18px 0 1px var(--amber); }
.world-card h3 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; }
.world-card p { max-width: 330px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.world-card:hover p { color: #aab9c2; }
.card-arrow { position: absolute; right: 28px; bottom: 28px; font-size: 20px; }

.latest-section { padding-top: 30px; }
.text-link { font-size: 13px; font-weight: 850; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.story-card { background: var(--white); border: 1px solid var(--line); }
.story-image { height: 285px; padding: 22px; display: flex; justify-content: space-between; align-items: flex-end; position: relative; overflow: hidden; color: var(--white); }
.story-image::before, .story-image::after { content: ""; position: absolute; }
.story-space { background: radial-gradient(circle at 66% 44%, #68dcff 0 6%, #1d6cf2 7% 11%, transparent 12%), linear-gradient(135deg, #07131d, #153b59); }
.story-space::before { width: 310px; height: 100px; left: 45px; top: 90px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; transform: rotate(-20deg); }
.story-biology { background: radial-gradient(circle at 30% 30%, rgba(184,241,60,.8), transparent 8%), linear-gradient(140deg, #102c23, #2b7653); }
.story-biology::before { width: 170px; height: 260px; right: 34px; top: 16px; border: 1px solid rgba(255,255,255,.5); border-radius: 70% 30%; transform: rotate(24deg); }
.story-history { background: linear-gradient(150deg, #3d2718, #ad6d2b); }
.story-history::before { width: 180px; height: 180px; right: 48px; top: 55px; border: 1px solid rgba(255,255,255,.45); transform: rotate(45deg); box-shadow: 22px 22px 0 rgba(255,255,255,.06), -22px -22px 0 rgba(255,255,255,.06); }
.image-index, .image-label { position: relative; z-index: 1; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.story-body { padding: 26px; }
.story-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.category-pill { padding: 7px 10px; border-radius: 999px; color: var(--ink); font-weight: 850; }
.pill-space { background: rgba(29,108,242,.13); color: #1558c8; }
.pill-biology { background: rgba(84,168,76,.15); color: #337b2d; }
.pill-history { background: rgba(255,178,74,.2); color: #99570b; }
.story-body h3 { margin: 22px 0 13px; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; line-height: 1.15; letter-spacing: -0.025em; }
.story-body h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.timeline-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px clamp(24px, 6vw, 94px);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  background: var(--ink-soft);
  color: var(--white);
}
.timeline-intro > p { max-width: 440px; margin-top: 24px; color: #a9bac4; }
.light-link { display: inline-block; margin-top: 28px; color: var(--lime); }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; padding-top: 70px; }
.timeline-line { position: absolute; left: 0; right: 0; top: 99px; height: 1px; background: rgba(255,255,255,.24); }
.timeline article { position: relative; }
.timeline-year { color: var(--lime); font-family: Georgia, "Times New Roman", serif; font-size: 28px; }
.timeline-dot { width: 9px; height: 9px; display: block; margin: 16px 0 40px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px var(--ink-soft); position: relative; z-index: 1; }
.timeline h3 { margin: 0 0 14px; font-size: 17px; line-height: 1.35; }
.timeline p { margin: 0; color: #91a3ae; font-size: 12px; line-height: 1.65; }

.newsletter {
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px clamp(24px, 6vw, 94px);
  display: grid;
  grid-template-columns: 1fr minmax(380px, .8fr);
  gap: 24px 80px;
  align-items: end;
  background: var(--blue);
  color: var(--white);
}
.newsletter .eyebrow { color: #c6f2ff; }
.newsletter h2 { max-width: 690px; }
.signup-form { display: flex; gap: 10px; }
.signup-form input[type="email"] { min-width: 0; flex: 1; height: 54px; padding: 0 20px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; outline: 0; background: rgba(255,255,255,.12); color: var(--white); }
.signup-form input[type="email"]::placeholder { color: rgba(255,255,255,.7); }
.signup-form input[type="email"]:focus { border-color: var(--white); }
.form-note { grid-column: 2; margin: 0; color: rgba(255,255,255,.7); font-size: 11px; }

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px clamp(24px, 6vw, 94px);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 36px;
  align-items: center;
  background: #050d13;
  color: #8fa1ac;
  font-size: 12px;
}
.brand-footer { color: var(--white); }
.site-footer p { margin: 0; }
.footer-links { display: flex; gap: 22px; color: var(--white); font-weight: 700; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 590px; }
  .hero-art { min-height: 520px; }
  .planet { width: 560px; }
  .world-grid, .story-grid { grid-template-columns: 1fr 1fr; }
  .world-card:last-child, .story-card:last-child { grid-column: 1 / -1; }
  .timeline-section { grid-template-columns: 1fr; gap: 30px; }
  .newsletter { grid-template-columns: 1fr; }
  .form-note { grid-column: auto; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .site-header { min-height: 70px; padding: 0 18px; }
  .brand-name { font-size: 17px; }
  .header-actions .button { display: none; }
  .news-strip { padding: 12px 18px; white-space: nowrap; overflow: hidden; }
  .news-strip span:not(.live-dot), .news-strip a, .news-divider { display: none; }
  .hero-copy { min-height: auto; padding: 74px 22px 64px; }
  .hero h1 { font-size: 49px; }
  .hero-summary { font-size: 16px; }
  .hero-art { min-height: 390px; }
  .planet { width: 390px; right: -100px; }
  .worlds-section, .latest-section { padding: 76px 18px; }
  .latest-section { padding-top: 12px; }
  .section-heading, .section-heading-inline { grid-template-columns: 1fr; gap: 22px; }
  .world-grid, .story-grid { grid-template-columns: 1fr; }
  .world-card, .world-card:last-child, .story-card:last-child { grid-column: auto; }
  .world-card { min-height: 340px; }
  .timeline-section { padding: 76px 22px; }
  .timeline { grid-template-columns: 1fr; padding-top: 24px; }
  .timeline-line { left: 4px; right: auto; top: 35px; bottom: 0; width: 1px; height: auto; }
  .timeline article { padding-left: 32px; }
  .timeline-dot { position: absolute; left: 0; top: 0; margin: 5px 0 0; }
  .timeline-year { display: block; margin-bottom: 16px; }
  .newsletter { padding: 72px 22px; }
  .signup-form { flex-direction: column; }
  .site-footer { padding: 50px 22px; grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { width: 42px; height: 42px; padding: 10px; display: grid; align-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { height: 2px; display: block; background: var(--ink); }
.mobile-nav nav { width: 220px; padding: 14px; display: grid; position: absolute; right: 0; top: 52px; z-index: 50; background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(7,19,29,.18); }
.mobile-nav nav a { padding: 12px 10px; font-weight: 750; border-bottom: 1px solid var(--line); }
.mobile-nav nav a:last-child { border-bottom: 0; }

.hero-art.has-image { background-image: linear-gradient(90deg, rgba(7,19,29,.95), rgba(7,19,29,.14)), var(--hero-image); background-size: cover; background-position: center; }
.hero-art.has-image .planet, .hero-art.has-image .orbit { display: none; }
.story-image.has-image { background-size: cover; background-position: center; }
.story-image.has-image::before, .story-image.has-image::after { display: none; }
.story-image.has-image::after { content: ""; display: block; inset: 0; background: linear-gradient(transparent 40%, rgba(7,19,29,.72)); }

.breadcrumbs { display: flex; gap: 10px; margin-bottom: 38px; color: #71838e; font-size: 12px; }
.breadcrumbs a:hover { color: var(--blue); }
.article-header { max-width: 1120px; margin: 0 auto; padding: 90px 36px 72px; text-align: center; }
.article-header h1 { max-width: 970px; margin: 30px auto 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6vw, 82px); font-weight: 500; line-height: 1; letter-spacing: -.055em; }
.article-deck { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 19px; line-height: 1.65; }
.article-byline { margin-top: 36px; display: flex; justify-content: center; gap: 16px; color: var(--muted); font-size: 12px; }
.article-byline span + span::before { content: "·"; margin-right: 16px; }
.article-figure { max-width: 1280px; margin: 0 auto; padding: 0 36px; }
.article-figure img { width: 100%; height: auto; display: block; }
.article-figure figcaption { padding: 10px 0; color: var(--muted); font-size: 11px; }
.article-layout { max-width: 1050px; margin: 0 auto; padding: 80px 36px 110px; display: grid; grid-template-columns: 170px minmax(0, 720px); gap: 70px; }
.article-rail { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.article-rail a { color: var(--blue); font-weight: 800; }
.article-content { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.85; }
.article-content > :first-child { margin-top: 0; }
.article-content h2 { margin: 2.2em 0 .7em; font-size: 34px; line-height: 1.15; }
.article-content h3 { margin: 1.8em 0 .6em; font-size: 25px; }
.article-content a { color: #145ed6; text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { margin: 2em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--blue); font-size: 25px; line-height: 1.5; }
.source-list { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.source-list h2 { margin: 0 0 22px; font-size: 21px; }
.source-list ol { padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.related-section { max-width: var(--max); margin: 0 auto; padding: 80px clamp(24px, 6vw, 94px) 110px; border-top: 1px solid var(--line); }

.section-hero { min-height: 460px; max-width: var(--max); margin: 0 auto; padding: 90px clamp(24px, 6vw, 94px); display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.section-hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(70px, 10vw, 150px); font-weight: 500; line-height: .85; letter-spacing: -.07em; }
.section-hero > p:last-of-type { max-width: 650px; margin: 28px 0 0; color: #b4c2ca; font-size: 17px; line-height: 1.65; }
.section-hero-biology { background: linear-gradient(135deg, #102d23, #245842); }
.section-hero-history { background: linear-gradient(135deg, #271a12, #6e421f); }
.section-orbit { width: 520px; height: 190px; position: absolute; right: 7%; top: 110px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; transform: rotate(-20deg); }
.section-orbit::after { content: ""; width: 90px; height: 90px; position: absolute; right: 90px; top: 22px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 60px rgba(66,216,255,.5); }
.section-hero-biology .section-orbit::after { background: var(--lime); }
.section-hero-history .section-orbit::after { background: var(--amber); }
.archive-section { max-width: var(--max); margin: 0 auto; padding: 100px clamp(24px, 6vw, 94px); }
.archive-count { color: var(--muted); font-size: 13px; }
.empty-state { padding: 70px 24px; text-align: center; border: 1px dashed var(--line); }
.empty-state h2 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 500; }
.empty-state p { margin: 0; color: var(--muted); }

.basic-page, .search-page { max-width: 1050px; margin: 0 auto; padding: 100px 36px 120px; }
.basic-page > header { margin-bottom: 60px; }
.basic-page > header h1, .search-page > h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(56px, 8vw, 104px); font-weight: 500; line-height: .95; letter-spacing: -.06em; }
.basic-page > header > p:last-child { max-width: 700px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.search-form { margin: 50px 0 70px; display: flex; gap: 10px; }
.search-form input { min-width: 0; flex: 1; height: 58px; padding: 0 24px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); outline: 0; }
.search-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,108,242,.12); }
.search-results-heading { margin-bottom: 28px; }
.search-results-heading h2 { font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }

.error-page { min-height: 680px; max-width: var(--max); margin: 0 auto; padding: 100px 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: var(--ink); color: var(--white); }
.error-page > span { color: var(--lime); font-size: 13px; font-weight: 900; letter-spacing: .2em; }
.error-page h1 { max-width: 850px; margin: 20px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 7vw, 88px); font-weight: 500; line-height: 1; letter-spacing: -.055em; }
.error-page > p:not(.eyebrow) { margin: 0 0 32px; color: #9eb0bb; }

@media (max-width: 1050px) {
  .mobile-nav { display: block; }
  .header-actions .icon-button { display: none; }
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .article-rail { flex-direction: row; }
}

@media (max-width: 700px) {
  .article-header { padding: 70px 20px 52px; text-align: left; }
  .article-header h1 { font-size: 50px; }
  .article-deck { font-size: 17px; }
  .article-byline { justify-content: flex-start; flex-wrap: wrap; }
  .article-byline span + span::before { display: none; }
  .article-figure { padding: 0; }
  .article-layout { padding: 58px 20px 80px; }
  .article-content { font-size: 18px; }
  .related-section, .archive-section { padding: 72px 18px; }
  .section-hero { min-height: 400px; padding: 70px 20px; }
  .section-hero h1 { font-size: 72px; }
  .section-orbit { width: 350px; right: -150px; }
  .basic-page, .search-page { padding: 76px 20px 90px; }
  .search-form { flex-direction: column; }
}


/* GServa v0.2.0 — full-width editorial redesign */
:root {
  --max: 1920px;
  --gutter: clamp(22px, 4.8vw, 104px);
  --paper: #eef0e9;
  --paper-deep: #e4e8df;
  --surface: #ffffff;
  --ink: #06131d;
  --ink-soft: #102838;
  --muted: #596b76;
  --line: rgba(6, 19, 29, 0.13);
  --blue: #176af4;
  --cyan: #52d8ff;
  --lime: #b9f43c;
  --amber: #ffb14a;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
}

#main-content {
  overflow: clip;
}

.site-header {
  width: 100%;
  max-width: none;
  min-height: 88px;
  padding-inline: var(--gutter);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 244, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 35px rgba(6, 19, 29, 0.04);
  backdrop-filter: blur(18px);
}

.brand-mark {
  width: 38px;
  height: 38px;
  position: relative;
  background:
    radial-gradient(circle at center, var(--ink) 0 48%, transparent 50%),
    var(--lime);
  color: var(--lime);
  border: 1px solid rgba(6, 19, 29, 0.12);
  box-shadow: 0 0 0 6px rgba(185, 244, 60, 0.13);
}

.brand-name {
  font-size: 20px;
  letter-spacing: 0.19em;
}

.desktop-nav a {
  padding: 31px 0 29px;
  position: relative;
}

.desktop-nav a::after {
  content: "";
  height: 2px;
  position: absolute;
  right: 50%;
  bottom: 19px;
  left: 50%;
  background: var(--blue);
  transition: right 180ms ease, left 180ms ease;
}

.desktop-nav a:hover::after {
  right: 0;
  left: 0;
}

.news-strip {
  width: 100%;
  max-width: none;
  min-height: 48px;
  padding-inline: var(--gutter);
  background: #fff;
}

.hero {
  width: 100%;
  max-width: none;
  min-height: clamp(700px, calc(100svh - 136px), 900px);
  grid-template-columns: minmax(470px, 0.88fr) minmax(620px, 1.12fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-copy {
  padding: 92px 4vw 88px var(--gutter);
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(62px, 5.75vw, 112px);
  line-height: 0.92;
}

.hero-summary {
  max-width: 700px;
  font-size: clamp(17px, 1.15vw, 21px);
}

.hero-art {
  min-height: inherit;
}

.planet {
  width: min(48vw, 850px);
  right: -4%;
  top: 8%;
}

.orbit-one {
  width: 980px;
  height: 340px;
  right: -120px;
  top: 45%;
}

.orbit-two {
  width: 1120px;
  height: 420px;
  right: -120px;
  top: 39%;
}

.art-caption {
  left: clamp(28px, 4vw, 72px);
  bottom: 58px;
}

.editorial-principles {
  width: 100%;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.principle-card {
  min-height: 225px;
  padding: 34px clamp(24px, 2.3vw, 44px);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.principle-card:last-child {
  border-right: 1px solid var(--line);
}

.principle-card > span {
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.principle-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 1.7vw, 32px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.principle-card p {
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.principle-card em {
  margin-top: auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.principle-card:hover {
  z-index: 1;
  color: #fff;
  background: var(--ink);
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(6, 19, 29, 0.16);
}

.principle-card:hover p,
.principle-card:hover > span {
  color: #b9c7cf;
}

.principle-card-accent {
  color: #fff;
  background: var(--blue);
}

.principle-card-accent p,
.principle-card-accent > span {
  color: rgba(255, 255, 255, 0.78);
}

.worlds-section,
.latest-section,
.archive-section,
.related-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(92px, 8vw, 154px) var(--gutter);
}

.worlds-section {
  background:
    radial-gradient(circle at 92% 12%, rgba(23, 106, 244, 0.08), transparent 26%),
    var(--paper);
}

.latest-section {
  padding-top: clamp(88px, 7vw, 136px);
  background: var(--surface);
}

.section-heading {
  margin-bottom: clamp(44px, 4vw, 72px);
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.55fr);
}

.section-heading h2,
.timeline-intro h2,
.newsletter h2,
.standards-intro h2 {
  font-size: clamp(48px, 4.7vw, 82px);
  line-height: 0.98;
}

.section-heading > p {
  max-width: 560px;
  justify-self: end;
  font-size: 16px;
}

.world-grid {
  border: 0;
  gap: 1px;
  background: var(--line);
  box-shadow: 0 25px 70px rgba(6, 19, 29, 0.07);
}

.world-card {
  min-height: clamp(430px, 31vw, 590px);
  padding: clamp(30px, 3vw, 54px);
  border: 0;
  background: rgba(255, 255, 255, 0.88);
}

.world-card::before {
  content: "";
  height: 5px;
  position: absolute;
  inset: 0 0 auto;
  background: var(--blue);
}

.world-biology::before {
  background: #55ad4f;
}

.world-history::before {
  background: var(--amber);
}

.world-symbol {
  width: clamp(150px, 12vw, 220px);
}

.world-card h3 {
  font-size: clamp(36px, 3vw, 54px);
}

.world-card p {
  max-width: 420px;
  font-size: 15px;
}

.story-grid {
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.story-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.story-card:hover {
  z-index: 2;
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(6, 19, 29, 0.15);
}

.story-image {
  height: clamp(300px, 23vw, 470px);
  padding: 28px;
}

.story-body {
  min-height: 300px;
  padding: clamp(28px, 2.8vw, 48px);
  display: flex;
  flex-direction: column;
}

.story-body h3 {
  margin-top: 28px;
  font-size: clamp(28px, 2.25vw, 40px);
}

.story-body > p {
  margin-top: auto;
  padding-top: 12px;
  font-size: 14px;
}

.standards-section {
  width: 100%;
  padding: clamp(96px, 8vw, 158px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(620px, 1.2fr);
  gap: clamp(70px, 8vw, 160px);
  background:
    radial-gradient(circle at 8% 88%, rgba(82, 216, 255, 0.14), transparent 24%),
    linear-gradient(135deg, #06131d, #0c2a3d);
  color: #fff;
}

.standards-intro > p:not(.eyebrow) {
  max-width: 650px;
  margin: 28px 0 36px;
  color: #aebdc6;
  font-size: 17px;
  line-height: 1.75;
}

.standards-intro .eyebrow {
  color: var(--lime);
}

.button-outline {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.button-outline:hover {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.standard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.standard-grid article {
  min-height: 270px;
  padding: clamp(28px, 2.5vw, 46px);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.standard-grid span {
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.standard-grid h3 {
  margin: 48px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 2vw, 36px);
  font-weight: 500;
}

.standard-grid p {
  margin: 0;
  color: #9fb0ba;
  font-size: 14px;
  line-height: 1.7;
}

.timeline-section,
.newsletter,
.site-footer,
.section-hero,
.error-page {
  width: 100%;
  max-width: none;
  margin: 0;
}

.timeline-section {
  padding: clamp(105px, 8vw, 160px) var(--gutter);
  grid-template-columns: minmax(320px, 0.65fr) minmax(700px, 1.35fr);
  gap: clamp(70px, 7vw, 140px);
  background: #102838;
}

.timeline-intro > p {
  font-size: 15px;
}

.timeline h3 {
  max-width: 250px;
  font-size: 18px;
}

.timeline p {
  max-width: 250px;
  font-size: 13px;
}

.newsletter {
  padding: clamp(92px, 7vw, 138px) var(--gutter);
  grid-template-columns: minmax(520px, 1.1fr) minmax(440px, 0.9fr);
  background:
    radial-gradient(circle at 88% 30%, rgba(82, 216, 255, 0.38), transparent 20%),
    linear-gradient(120deg, #0f5ce2, #247cff);
}

.newsletter h2 {
  max-width: 900px;
}

.site-footer {
  min-height: 150px;
  padding: 48px var(--gutter);
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
}

.footer-links {
  gap: clamp(16px, 1.7vw, 30px);
}

.article-header {
  max-width: 1450px;
  padding-inline: var(--gutter);
}

.article-figure {
  max-width: 1680px;
  padding-inline: var(--gutter);
}

.article-layout {
  max-width: 1240px;
}

.basic-page,
.search-page {
  max-width: 1380px;
  padding-inline: var(--gutter);
}

.section-hero {
  min-height: 560px;
}

@media (max-width: 1220px) {
  .desktop-nav {
    gap: 24px;
  }

  .hero {
    min-height: 720px;
    grid-template-columns: minmax(390px, 0.92fr) minmax(480px, 1.08fr);
  }

  .hero h1 {
    font-size: clamp(58px, 6.4vw, 84px);
  }

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

  .principle-card:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .principle-card:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .standards-section,
  .timeline-section {
    grid-template-columns: 1fr;
  }

  .standards-intro {
    max-width: 850px;
  }

  .timeline {
    max-width: 1000px;
  }

  .newsletter {
    grid-template-columns: 1fr;
  }

  .form-note {
    grid-column: auto;
  }

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

@media (max-width: 980px) {
  .site-header {
    min-height: 78px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 600px;
    padding: 86px var(--gutter);
  }

  .hero-art {
    min-height: 520px;
  }

  .planet {
    width: 620px;
    right: -80px;
  }

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

  .world-card:last-child,
  .story-card:last-child {
    grid-column: 1 / -1;
  }

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

  .section-heading > p {
    justify-self: start;
  }

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

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

  .newsletter {
    padding-inline: var(--gutter);
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
  }

  .site-header {
    min-height: 72px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    box-shadow: 0 0 0 4px rgba(185, 244, 60, 0.12);
  }

  .header-actions {
    gap: 8px;
  }

  .news-strip {
    min-height: 42px;
  }

  .hero-copy {
    min-height: auto;
    padding: 66px 20px 62px;
  }

  .hero h1 {
    font-size: clamp(48px, 14.5vw, 66px);
  }

  .hero-summary {
    margin-top: 24px;
  }

  .hero-art {
    min-height: 390px;
  }

  .planet {
    width: 430px;
    right: -118px;
    top: 10%;
  }

  .art-caption {
    left: 20px;
    bottom: 30px;
  }

  .editorial-principles {
    padding-inline: 0;
    grid-template-columns: 1fr;
  }

  .principle-card {
    min-height: 210px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle-card:nth-child(3),
  .principle-card:nth-child(4) {
    border-top: 0;
  }

  .worlds-section,
  .latest-section,
  .standards-section,
  .timeline-section,
  .newsletter,
  .archive-section,
  .related-section {
    padding: 76px 20px;
  }

  .section-heading h2,
  .timeline-intro h2,
  .newsletter h2,
  .standards-intro h2 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .world-grid,
  .story-grid,
  .standard-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .world-card,
  .world-card:last-child,
  .story-card:last-child {
    grid-column: auto;
  }

  .world-card {
    min-height: 370px;
  }

  .story-image {
    height: 310px;
  }

  .story-body {
    min-height: 280px;
  }

  .standard-grid article {
    min-height: 230px;
  }

  .timeline {
    padding-top: 24px;
  }

  .timeline article {
    min-height: 150px;
  }

  .signup-form {
    flex-direction: column;
  }

  .site-footer {
    min-height: auto;
    padding: 54px 20px;
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .section-hero {
    min-height: 440px;
  }
}

/* GServa discovery and search experience — v0.3.0 */
.discovery-hero,
.search-hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.discovery-hero::before,
.discovery-hero::after,
.search-hero::before,
.search-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.discovery-hero::before {
  width: min(56vw, 900px);
  aspect-ratio: 1;
  right: -10vw;
  top: -38%;
  border: 1px solid rgba(66, 216, 255, 0.23);
  border-radius: 50%;
  box-shadow:
    0 0 0 100px rgba(66, 216, 255, 0.025),
    0 0 0 240px rgba(66, 216, 255, 0.018),
    0 0 140px rgba(66, 216, 255, 0.14);
}

.discovery-hero::after {
  inset: 0;
  opacity: 0.44;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(66, 216, 255, 0.65) 0 1px, transparent 1.4px);
  background-position: 14px 22px, 48px 67px;
  background-size: 94px 94px, 137px 137px;
  mask-image: linear-gradient(90deg, transparent 5%, #000 60%);
}

.discovery-hero-inner,
.search-hero-inner {
  width: 100%;
  min-height: 650px;
  padding: clamp(92px, 9vw, 170px) var(--gutter);
  position: relative;
  z-index: 1;
}

.discovery-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  align-items: end;
  gap: clamp(70px, 9vw, 180px);
}

.discovery-intro {
  max-width: 920px;
}

.discovery-intro .eyebrow,
.search-hero .eyebrow {
  color: var(--lime);
}

.discovery-intro h1,
.search-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(66px, 7.3vw, 132px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.discovery-intro > p:last-child,
.search-hero-inner > p {
  max-width: 730px;
  margin: 38px 0 0;
  color: #afc0cb;
  font-size: 18px;
  line-height: 1.75;
}

.discovery-stats {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.discovery-stats div {
  min-height: 112px;
  padding: 25px 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.discovery-stats dt {
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
}

.discovery-stats dd {
  margin: 0;
  color: #aebdc6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discover-shell,
.search-shell {
  width: 100%;
  padding: clamp(92px, 8vw, 155px) var(--gutter);
  background:
    radial-gradient(circle at 90% 8%, rgba(29, 108, 242, 0.07), transparent 28%),
    var(--paper);
}

.discover-heading {
  margin-bottom: clamp(44px, 5vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.55fr);
  align-items: end;
  gap: clamp(50px, 7vw, 140px);
}

.discover-heading h2,
.results-summary h2,
.search-start-grid h2,
.search-recent-heading h2,
.search-empty h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 5vw, 80px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.discover-heading > p,
.search-start-grid > div > p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.topic-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(7, 19, 29, 0.07);
}

.topic-tile {
  min-height: 430px;
  padding: clamp(28px, 3vw, 52px);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.topic-tile::before {
  content: "";
  height: 5px;
  position: absolute;
  inset: 0 0 auto;
  background: var(--blue);
}

.topic-tile-biology::before { background: #55ad4f; }
.topic-tile-history::before { background: var(--amber); }

.topic-number {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.topic-symbol {
  width: clamp(112px, 10vw, 170px);
  aspect-ratio: 1;
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
  opacity: 0.8;
}

.topic-tile-space .topic-symbol::before,
.topic-tile-space .topic-symbol::after {
  content: "";
  position: absolute;
  border: 1px solid var(--blue);
  border-radius: 50%;
  transform: rotate(-22deg);
}

.topic-tile-space .topic-symbol::before {
  width: 138%;
  height: 40%;
  left: -19%;
  top: 29%;
}

.topic-tile-space .topic-symbol::after {
  width: 12px;
  height: 12px;
  right: 2%;
  top: 18%;
  background: var(--blue);
}

.topic-tile-biology .topic-symbol {
  border-color: #55ad4f;
  border-radius: 70% 30% 70% 30%;
  transform: rotate(-14deg);
}

.topic-tile-biology .topic-symbol::before {
  content: "";
  width: 1px;
  height: 122%;
  position: absolute;
  left: 50%;
  top: -11%;
  background: #55ad4f;
  transform: rotate(45deg);
}

.topic-tile-history .topic-symbol {
  border-color: var(--amber);
  border-radius: 3px;
  transform: rotate(45deg) scale(0.72);
  box-shadow: 20px 20px 0 transparent, 20px 20px 0 1px var(--amber), -20px -20px 0 transparent, -20px -20px 0 1px var(--amber);
}

.topic-copy {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.topic-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 500;
}

.topic-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-arrow {
  align-self: end;
  font-size: 23px;
}

.topic-tile:hover {
  z-index: 2;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-7px);
}

.topic-tile:hover .topic-copy small { color: #9fb0bb; }

.filter-bar {
  margin-top: clamp(80px, 8vw, 140px);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.topic-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  min-height: 42px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sort-form select,
.sort-form button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.sort-form button {
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
}

.results-summary {
  margin: clamp(70px, 7vw, 120px) 0 40px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.results-summary h2 {
  font-size: clamp(42px, 4vw, 66px);
}

.results-summary > p,
.results-summary > a {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.results-summary > a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.discover-shell .empty-state .button {
  margin-top: 30px;
}

.pagination {
  margin-top: 56px;
  padding-top: 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.pagination-direction,
.pagination-page,
.pagination-gap {
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.pagination-direction:first-child { justify-self: start; padding: 0 17px; border: 1px solid var(--line); }
.pagination-direction:last-child { justify-self: end; padding: 0 17px; border: 1px solid var(--line); }
.pagination-direction.is-disabled { opacity: 0.35; }
.pagination-pages { display: flex; align-items: center; gap: 6px; }
.pagination-page { background: rgba(255, 255, 255, 0.65); border: 1px solid var(--line); }
.pagination-page:hover,
.pagination-page.is-current { color: var(--white); background: var(--ink); border-color: var(--ink); }

.search-hero {
  background:
    radial-gradient(circle at 86% 48%, rgba(66, 216, 255, 0.2), transparent 25%),
    linear-gradient(130deg, #06131d 15%, #0d2a3d 100%);
}

.search-hero::before {
  width: 520px;
  height: 520px;
  right: -90px;
  top: -100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 86px rgba(255, 255, 255, 0.018), 0 0 0 172px rgba(255, 255, 255, 0.012);
}

.search-hero::after {
  width: 360px;
  height: 130px;
  right: 6%;
  bottom: 16%;
  border: 1px solid rgba(184, 241, 60, 0.25);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.search-hero-inner {
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-hero h1 {
  max-width: 1100px;
}

.search-form-pro {
  max-width: 1180px;
  margin-top: 54px;
}

.search-form-main {
  min-height: 86px;
  padding: 9px 9px 9px 32px;
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.search-field-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  border: 2px solid var(--white);
  border-radius: 50%;
  position: relative;
  opacity: 0.72;
}

.search-field-icon::after {
  content: "";
  width: 9px;
  height: 2px;
  position: absolute;
  right: -7px;
  bottom: -4px;
  background: var(--white);
  transform: rotate(45deg);
}

.search-form-main input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font-size: clamp(18px, 1.6vw, 24px);
}

.search-form-main input::placeholder { color: #91a5b2; }
.search-form-main .button { min-width: 135px; min-height: 66px; }

.search-topic-row {
  margin-top: 18px;
  padding-left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-topic-row > span {
  margin-right: 8px;
  color: #8196a4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-topic-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.search-topic-option span {
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #aebdc6;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.search-topic-option input:focus-visible + span {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.search-topic-option input:checked + span {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.search-start-grid {
  margin-bottom: clamp(90px, 9vw, 160px);
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) minmax(600px, 1.3fr);
  gap: clamp(70px, 8vw, 160px);
}

.search-start-grid > div > p:last-child {
  margin-top: 28px;
}

.search-suggestions {
  border-top: 1px solid var(--line);
}

.search-suggestions a {
  min-height: 126px;
  padding: 24px 4px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  transition: padding 160ms ease, color 160ms ease;
}

.search-suggestions a:hover {
  padding-left: 18px;
  color: var(--blue);
}

.search-suggestions a > span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.search-suggestions strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 500;
}

.search-suggestions small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-recent-heading {
  margin-bottom: 44px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.search-recent-heading h2 {
  font-size: clamp(42px, 4vw, 66px);
}

.search-recent-heading > a {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.search-results-summary {
  margin-top: 0;
}

.search-results-summary h2 {
  max-width: 1050px;
}

.search-empty {
  min-height: 440px;
  padding: clamp(42px, 6vw, 90px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 100px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.search-empty > span {
  width: clamp(110px, 15vw, 220px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 8vw, 120px);
}

.search-empty p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.7;
}

.empty-suggestions {
  margin-top: 28px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.empty-suggestions a {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .discovery-hero-inner {
    grid-template-columns: 1fr;
  }

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

  .discovery-stats div {
    min-height: 130px;
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  .discovery-stats div:last-child { border-right: 0; }
  .discover-heading { grid-template-columns: 1fr; }
  .discover-heading > p { max-width: 720px; }
  .topic-tile { min-height: 380px; }
  .search-start-grid { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
  .topic-showcase { grid-template-columns: 1fr; }
  .topic-tile { min-height: 310px; }
  .topic-symbol { width: 120px; }
  .filter-bar { align-items: flex-start; flex-direction: column; }
  .results-summary { align-items: flex-start; flex-direction: column; }
  .pagination { grid-template-columns: 1fr 1fr; }
  .pagination-pages { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .search-hero-inner { min-height: 650px; }
}

@media (max-width: 680px) {
  .discovery-hero-inner,
  .search-hero-inner {
    min-height: auto;
    padding: 74px 20px;
  }

  .discovery-intro h1,
  .search-hero h1 {
    font-size: clamp(50px, 15vw, 68px);
  }

  .discovery-intro > p:last-child,
  .search-hero-inner > p {
    margin-top: 26px;
    font-size: 16px;
  }

  .discovery-stats {
    grid-template-columns: 1fr;
  }

  .discovery-stats div {
    min-height: 90px;
    padding: 17px 0;
    grid-template-columns: 82px 1fr;
    border-right: 0;
  }

  .discovery-stats dt { font-size: 34px; }
  .discover-shell,
  .search-shell { padding: 76px 20px; }
  .discover-heading h2,
  .search-start-grid h2,
  .search-recent-heading h2 { font-size: clamp(40px, 13vw, 55px); }
  .topic-tile { min-height: 300px; padding: 30px 24px; }
  .topic-copy strong { font-size: 34px; }
  .filter-bar { margin-top: 72px; }
  .sort-form { width: 100%; flex-wrap: wrap; }
  .sort-form label { width: 100%; }
  .sort-form select { min-width: 0; flex: 1; }
  .results-summary { margin-top: 66px; }
  .pagination { gap: 10px; }
  .pagination-direction { font-size: 12px; }
  .pagination-page,
  .pagination-gap { min-width: 36px; min-height: 36px; }
  .search-form-pro { margin-top: 38px; }
  .search-form-main {
    min-height: 0;
    padding: 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    border-radius: 26px;
  }
  .search-form-main input { font-size: 17px; }
  .search-form-main .button { min-height: 52px; grid-column: 1 / -1; }
  .search-topic-row { padding-left: 0; }
  .search-topic-row > span { width: 100%; margin-bottom: 3px; }
  .search-suggestions a {
    min-height: 116px;
    padding: 22px 0;
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }
  .search-suggestions small { grid-column: 2; }
  .search-recent-heading { align-items: flex-start; flex-direction: column; }
  .search-empty {
    min-height: 0;
    padding: 38px 24px;
    grid-template-columns: 1fr;
  }
  .search-empty > span { width: 100px; }
}

/* GServa newsletter system — v0.4.0 */
.newsletter-form-wrap {
  max-width: 760px;
  width: 100%;
  align-self: end;
  justify-self: end;
}

.newsletter .signup-form {
  display: block;
}

.signup-row {
  display: flex;
  gap: 10px;
}

.signup-row input[type="email"] {
  min-height: 62px;
  padding-inline: 24px;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.signup-row input[type="email"]:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.signup-row .button {
  min-width: 126px;
  min-height: 62px;
  flex: 0 0 auto;
}

.signup-row .button:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.newsletter-consent {
  margin-top: 17px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 1.55;
  cursor: pointer;
}

.newsletter-consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--lime);
}

.newsletter-consent input:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.newsletter-honeypot {
  width: 1px;
  height: 1px;
  position: absolute;
  left: -10000px;
  overflow: hidden;
}

.newsletter-form-wrap .form-note {
  margin: 15px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.newsletter-form-wrap .form-note::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
}

.newsletter-form-wrap .form-note.is-success {
  color: var(--white);
}

.newsletter-form-wrap .form-note.is-success::before {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(184, 241, 60, 0.18);
}

.newsletter-form-wrap .form-note.is-error {
  color: #fff0d8;
}

.newsletter-form-wrap .form-note.is-error::before {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 178, 74, 0.18);
}

.newsletter-status-page {
  min-height: 720px;
  padding: clamp(80px, 9vw, 170px) var(--gutter);
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 18%, rgba(66, 216, 255, 0.22), transparent 24%),
    radial-gradient(circle at 10% 88%, rgba(184, 241, 60, 0.09), transparent 25%),
    linear-gradient(135deg, #06131d, #0d2a3d);
}

.newsletter-status-card {
  max-width: 960px;
  text-align: center;
}

.newsletter-status-icon {
  width: 94px;
  aspect-ratio: 1;
  margin: 0 auto 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  box-shadow: 0 0 70px rgba(66, 216, 255, 0.12);
}

.newsletter-status-card .eyebrow {
  color: var(--lime);
}

.newsletter-status-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7vw, 108px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.newsletter-status-card > p:not(.eyebrow) {
  max-width: 670px;
  margin: 30px auto 36px;
  color: #afc0cb;
  font-size: 17px;
  line-height: 1.75;
}

@media (max-width: 980px) {
  .newsletter-form-wrap {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 680px) {
  .newsletter .signup-form {
    display: block;
  }

  .signup-row {
    flex-direction: column;
  }

  .signup-row input[type="email"],
  .signup-row .button {
    width: 100%;
  }

  .newsletter-consent {
    font-size: 11px;
  }

  .newsletter-status-page {
    min-height: 600px;
    padding: 80px 20px;
  }

  .newsletter-status-card h1 {
    font-size: clamp(48px, 14vw, 64px);
  }
}

/* GServa Campaign Studio — v0.6.0 */
.campaign-studio {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 2%, rgba(29, 108, 242, 0.12), transparent 28%),
    #edf0ec;
}

.campaign-studio input,
.campaign-studio textarea,
.campaign-studio select,
.campaign-studio button {
  font: inherit;
}

.campaign-topbar {
  min-height: 78px;
  padding: 0 clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #fff;
  background: #06131d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.campaign-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  letter-spacing: 0.18em;
}

.campaign-brand span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06131d;
  background: var(--lime);
  font-weight: 900;
}

.campaign-brand strong { font-size: 14px; }
.campaign-topbar nav { display: flex; align-items: center; gap: 26px; font-size: 12px; font-weight: 750; }
.campaign-topbar nav a { color: #b4c1c9; }
.campaign-topbar nav a:hover { color: #fff; }
.campaign-topbar .campaign-new-link {
  padding: 12px 18px;
  border-radius: 999px;
  color: #06131d;
  background: var(--lime);
}

.campaign-shell {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 92px) clamp(20px, 4vw, 64px) 100px;
}

.campaign-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 44px;
}

.campaign-kicker {
  margin: 0 0 12px;
  color: #286cf0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.campaign-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 7vw, 112px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.campaign-hero > div:first-child > p:last-child {
  max-width: 700px;
  margin: 26px 0 0;
  color: #53656f;
  font-size: 16px;
  line-height: 1.7;
}

.campaign-safety {
  min-width: 260px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 14px;
  background: #fff;
  border: 1px solid rgba(7, 19, 29, 0.12);
}

.campaign-safety > span {
  width: 38px;
  height: 38px;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06131d;
  background: var(--lime);
  font-weight: 900;
}

.campaign-safety strong { align-self: end; font-size: 13px; }
.campaign-safety small { color: #6a7b85; font-size: 11px; }
.campaign-safety.is-setup > span { color: #fff; background: #ec8d24; }
.campaign-safety.is-ready { border-color: rgba(105, 169, 0, 0.34); }

.campaign-notice {
  margin-top: 30px;
  padding: 18px 22px;
  border-left: 4px solid #286cf0;
  color: #153245;
  background: #e1ebff;
  font-size: 14px;
  line-height: 1.55;
}

.campaign-notice.is-success { border-color: #69a900; background: #eaf8d2; }
.campaign-notice.is-warning { border-color: #eb9a28; background: #fff0d8; }
.campaign-notice.is-error { border-color: #d74b4b; background: #ffe2df; }

.campaign-stats {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid rgba(7, 19, 29, 0.12);
}

.campaign-stats article {
  min-height: 160px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(7, 19, 29, 0.12);
}

.campaign-stats article:last-child { border-right: 0; }
.campaign-stats span { color: #60717b; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.campaign-stats strong { font-family: Georgia, "Times New Roman", serif; font-size: 54px; font-weight: 500; line-height: 1; }
.campaign-stats small { color: #73838c; font-size: 11px; }

.delivery-readiness {
  margin-top: 24px;
  padding: clamp(26px, 3vw, 42px);
  color: #fff;
  background:
    radial-gradient(circle at 95% 0, rgba(29, 108, 242, 0.28), transparent 30%),
    #07131d;
}

.delivery-readiness-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.delivery-readiness-heading .campaign-kicker { color: var(--lime); }
.delivery-readiness-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.delivery-overall {
  padding: 10px 15px;
  border: 1px solid rgba(255, 178, 74, 0.48);
  border-radius: 999px;
  color: #ffd49a;
  background: rgba(255, 178, 74, 0.1);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.delivery-overall.is-ready {
  border-color: rgba(184, 241, 60, 0.5);
  color: var(--lime);
  background: rgba(184, 241, 60, 0.08);
}

.delivery-check-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.delivery-check {
  min-height: 158px;
  padding: 24px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 17px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.delivery-check-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.delivery-check.is-pass .delivery-check-icon { border-color: var(--lime); color: #07131d; background: var(--lime); }
.delivery-check.is-warning .delivery-check-icon { border-color: var(--amber); color: var(--amber); }
.delivery-check.is-fail .delivery-check-icon { border-color: #ff8f85; color: #ffb4ae; }
.delivery-check small { display: block; color: #8097a4; font-size: 9px; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.delivery-check strong { margin-top: 9px; display: block; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; }
.delivery-check p { max-width: 420px; margin: 11px 0 0; color: #a8b9c2; font-size: 12px; line-height: 1.6; }

.delivery-setup-note {
  margin-top: 22px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #c3d0d7;
  background: rgba(255, 255, 255, 0.06);
}

.delivery-setup-note strong { color: #fff; font-size: 13px; }
.delivery-setup-note p { margin: 7px 0 0; font-size: 11px; line-height: 1.6; }
.delivery-setup-note code { padding: 2px 5px; color: var(--lime); background: rgba(0, 0, 0, 0.22); }
.delivery-setup-links { display: flex; flex: 0 0 auto; gap: 10px; }
.delivery-setup-links a { padding: 11px 14px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px; font-size: 10px; font-weight: 800; }
.delivery-setup-links a:hover { border-color: var(--lime); color: var(--lime); }

.campaign-workspace {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
  align-items: start;
  gap: 24px;
}

.campaign-composer,
.campaign-preview-panel {
  padding: clamp(24px, 3vw, 42px);
  background: #fff;
  border: 1px solid rgba(7, 19, 29, 0.12);
}

.campaign-preview-panel {
  position: sticky;
  top: 24px;
  background: #0a1d2a;
  color: #fff;
}

.campaign-panel-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.campaign-panel-heading h2,
.campaign-history-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3vw, 50px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.campaign-status {
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  color: #29404e;
  background: #e8ecee;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.campaign-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6e828e;
}

.campaign-status.status-sending { color: #805316; background: #fff0d8; }
.campaign-status.status-sending::before { background: #ef9b26; }
.campaign-status.status-sent { color: #426700; background: #e8f7ca; }
.campaign-status.status-sent::before { background: #72b100; }

.campaign-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.campaign-field-full { margin-top: 23px; }
.campaign-field > span { color: #233d4b; font-size: 12px; font-weight: 800; }
.campaign-field b { margin-left: 5px; color: #286cf0; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.campaign-field small { color: #788992; font-size: 11px; line-height: 1.5; }

.campaign-field input,
.campaign-field textarea,
.campaign-field select,
.campaign-inline-action input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(7, 19, 29, 0.2);
  border-radius: 0;
  outline: 0;
  color: #07131d;
  background: #f9faf7;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.campaign-field textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.65;
}

.campaign-field input:focus,
.campaign-field textarea:focus,
.campaign-field select:focus,
.campaign-inline-action input:focus {
  border-color: #286cf0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(40, 108, 240, 0.1);
}

.campaign-field input:disabled,
.campaign-field textarea:disabled,
.campaign-field select:disabled { opacity: 0.72; cursor: not-allowed; }

.campaign-field-row {
  margin-top: 23px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.campaign-primary-actions { margin-top: 30px; }
.campaign-button {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid #07131d;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #07131d;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.campaign-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(7, 19, 29, 0.13); }
.campaign-button.is-outline { color: #07131d; background: transparent; }
.campaign-button.is-lime { border-color: var(--lime); color: #07131d; background: var(--lime); }
.campaign-button:disabled { opacity: 0.48; cursor: not-allowed; transform: none; box-shadow: none; }

.campaign-send-card {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid rgba(7, 19, 29, 0.14);
  background: #f5f6f2;
}

.campaign-send-card.is-live { color: #fff; background: #07131d; }
.campaign-send-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; }
.campaign-send-card > p:not(.campaign-kicker) { margin: 11px 0 0; color: #667982; font-size: 12px; line-height: 1.6; }
.campaign-send-card.is-live > p:not(.campaign-kicker) { color: #9fb0ba; }
.campaign-proof-current { margin: 16px 0 0 !important; color: #567d00 !important; font-weight: 800; }
.campaign-send-lock { margin: 14px 0 0 !important; color: #ffd49a !important; }

.campaign-inline-action {
  margin-top: 19px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.campaign-confirm {
  margin: 21px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #d1dbe0;
  font-size: 12px;
  line-height: 1.55;
  cursor: pointer;
}

.campaign-confirm input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--lime); }

.campaign-preview-panel .campaign-kicker { color: var(--lime); }
.campaign-preview-panel .campaign-panel-heading > span { color: #91a6b1; font-size: 11px; }
.campaign-preview-frame {
  padding: 18px;
  background: #dfe5e2;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.campaign-preview-frame iframe {
  width: 100%;
  height: 860px;
  display: block;
  border: 0;
  background: #fff;
}

.campaign-preview-note { margin: 20px 0 0; color: #91a6b1; font-size: 11px; line-height: 1.6; }

.campaign-history { margin-top: 70px; }
.campaign-history-heading { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.campaign-history-heading > a { padding-bottom: 4px; border-bottom: 1px solid #07131d; font-size: 12px; font-weight: 800; }
.campaign-history-table { border: 1px solid rgba(7, 19, 29, 0.13); }
.campaign-history-row {
  min-height: 74px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) 120px 180px 130px 70px;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-bottom: 1px solid rgba(7, 19, 29, 0.1);
  font-size: 12px;
}

.campaign-history-row:last-child { border-bottom: 0; }
.campaign-history-row.is-heading { min-height: 48px; color: #71818a; background: transparent; font-size: 9px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.campaign-history-row > a { justify-self: end; font-weight: 800; }
.campaign-empty { padding: 40px; color: #6e7e87; background: #fff; border: 1px solid rgba(7, 19, 29, 0.13); }

@media (max-width: 1180px) {
  .campaign-stats { grid-template-columns: 1fr 1fr; }
  .campaign-stats article:nth-child(2) { border-right: 0; }
  .campaign-stats article:nth-child(-n+2) { border-bottom: 1px solid rgba(7, 19, 29, 0.12); }
  .campaign-workspace { grid-template-columns: 1fr; }
  .campaign-preview-panel { position: static; }
  .campaign-preview-frame iframe { height: 760px; }
  .campaign-history-row { grid-template-columns: minmax(220px, 1.5fr) 110px 160px 110px 64px; }
}

@media (max-width: 820px) {
  .campaign-topbar { min-height: 0; padding-block: 18px; align-items: flex-start; }
  .campaign-topbar nav { align-items: flex-end; flex-direction: column; gap: 10px; }
  .campaign-topbar nav a:first-child { display: none; }
  .campaign-hero { grid-template-columns: 1fr; }
  .campaign-safety { min-width: 0; }
  .delivery-setup-note { align-items: flex-start; flex-direction: column; }
  .campaign-history-table { display: grid; gap: 12px; border: 0; }
  .campaign-history-row { padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 12px; border: 1px solid rgba(7, 19, 29, 0.12); }
  .campaign-history-row.is-heading { display: none; }
  .campaign-history-row strong { grid-column: 1 / -1; font-size: 15px; }
  .campaign-history-row > a { align-self: end; }
}

@media (max-width: 580px) {
  .campaign-topbar { align-items: center; }
  .campaign-topbar nav a:not(.campaign-new-link) { display: none; }
  .campaign-shell { padding-inline: 16px; }
  .campaign-hero h1 { font-size: 58px; }
  .campaign-stats { grid-template-columns: 1fr; }
  .delivery-readiness-heading { flex-direction: column; }
  .delivery-check-grid { grid-template-columns: 1fr; }
  .delivery-check { min-height: 0; padding: 20px; }
  .delivery-setup-links { width: 100%; align-items: stretch; flex-direction: column; }
  .delivery-setup-links a { text-align: center; }
  .campaign-stats article { min-height: 130px; border-right: 0; border-bottom: 1px solid rgba(7, 19, 29, 0.12); }
  .campaign-stats article:nth-child(3) { border-bottom: 1px solid rgba(7, 19, 29, 0.12); }
  .campaign-stats article:last-child { border-bottom: 0; }
  .campaign-field-row,
  .campaign-inline-action { grid-template-columns: 1fr; }
  .campaign-inline-action .campaign-button { width: 100%; }
  .campaign-composer,
  .campaign-preview-panel { padding: 22px 18px; }
  .campaign-preview-frame { padding: 8px; }
  .campaign-preview-frame iframe { height: 680px; }
  .campaign-history-heading { align-items: flex-start; flex-direction: column; }
  .campaign-history-row { grid-template-columns: 1fr; }
  .campaign-history-row strong { grid-column: auto; }
  .campaign-history-row > a { justify-self: start; }
}
