:root {
  --base: #f3f0fa;
  --surface: #ffffff;
  --surface-panel: rgba(255, 255, 255, 0.92);
  --text: #334155;
  --text-muted: #526075;
  --navy: #1e2a5a;
  --navy-dark: #121a38;
  --lilac-border: #d8cfea;
  --lilac-soft: #eae3f7;
  --lilac-tint: #f8f6fc;
  --focus-ring: #0f172a;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 100%;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--base);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.25;
  margin-top: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); margin-bottom: 0.8rem; margin-top: 2rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  color: #0b1129;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--lilac-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-wrap:hover {
  text-decoration: none;
}

.brand-svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--navy);
  padding: 0.5rem 0.85rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 0.4rem 0.2rem;
  display: inline-block;
  min-height: 44px;
  line-height: 36px;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--navy);
}

.btn-cta {
  background: var(--navy);
  color: #ffffff !important;
  border: 1px solid var(--navy);
  border-radius: 0;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-cta:hover {
  background: #0f1738;
}
.btn-outline {
  background: transparent;
  color: var(--navy) !important;
  border: 1px solid var(--navy);
  border-radius: 0;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--lilac-soft);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  min-width: 0;
}

.reading-column {
  max-width: 760px;
  margin: 0 auto;
  min-width: 0;
}

.breadcrumbs {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  list-style: none;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.breadcrumbs li::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--lilac-border);
}
.breadcrumbs li:last-child::after {
  content: "";
}

.hero-observatory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
  background: var(--surface);
  border: 1px solid var(--lilac-border);
  padding: 2rem;
}
.hero-copy {
  min-width: 0;
}
.hero-visual {
  position: relative;
  min-width: 0;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--lilac-border);
}
.hero-facts-panel {
  margin-top: 1.25rem;
  background: var(--lilac-tint);
  border-left: 4px solid var(--navy);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}
.hero-facts-panel ul {
  margin: 0.5rem 0 0 1.2rem;
  padding: 0;
}

.navy-block {
  background: var(--navy);
  color: #f1f4fb;
  padding: 3.5rem 1.25rem;
  margin: 3.5rem 0;
}
.navy-block h2, .navy-block h3 {
  color: #ffffff;
}
.navy-block a {
  color: #d1dcff;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--surface-panel);
  border: 1px solid var(--lilac-border);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.card h3 {
  margin-top: 0;
  font-size: 1.35rem;
}
.card-media {
  margin-bottom: 1.25rem;
}
.card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--lilac-border);
}

.def-strip {
  border: 1px solid var(--lilac-border);
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.def-strip dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem 1.25rem;
  margin: 0;
}
.def-strip dt {
  font-weight: 700;
  color: var(--navy);
}
.def-strip dd {
  margin: 0;
}

.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--lilac-border);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}
caption {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: left;
  padding: 1rem;
  color: var(--navy);
  border-bottom: 1px solid var(--lilac-border);
}
th, td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--lilac-border);
  vertical-align: top;
}
th {
  background: var(--lilac-soft);
  color: var(--navy);
  font-weight: 700;
}
tr:last-child td {
  border-bottom: 0;
}

ol.step-list {
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}
ol.step-list li {
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

details {
  border: 1px solid var(--lilac-border);
  background: var(--surface);
  margin-bottom: 1rem;
  padding: 0;
}
summary {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style-position: outside;
}
summary:hover {
  background: var(--lilac-tint);
}
.details-body {
  padding: 0.5rem 1.25rem 1.25rem 1.25rem;
  border-top: 1px solid var(--lilac-border);
}

.panel-draft {
  background: var(--surface);
  border: 1px solid var(--lilac-border);
  padding: 2rem;
  margin-top: 2rem;
}
.form-field {
  margin-bottom: 1.5rem;
}
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.form-field select,
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--lilac-border);
  border-radius: 0;
  padding: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
}
.form-field select:focus,
.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
}
.field-error {
  color: #991b1b;
  font-size: 0.875rem;
  margin-top: 0.35rem;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.status-msg {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--lilac-soft);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
}

.editorial-note {
  background: var(--lilac-tint);
  border-left: 3px solid var(--navy);
  padding: 1.25rem;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.site-footer {
  background: var(--navy);
  color: #e2e8f0;
  padding: 3.5rem 1.25rem 2rem 1.25rem;
  margin-top: auto;
  border-top: 3px solid var(--navy-dark);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  border-bottom: 1px solid #3b497a;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-top .brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}
.footer-desc {
  max-width: 760px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 2rem;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-nav h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav li {
  margin-bottom: 0.5rem;
}
.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer-legal-block {
  border-top: 1px solid #3b497a;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-legal-block a {
  color: #cbd5e1;
}

@media (max-width: 900px) {
  .hero-observatory {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .primary-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 2px solid var(--navy);
    padding: 1.25rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .primary-nav[hidden] {
    display: none;
  }
  .primary-nav li {
    width: 100%;
  }
  .primary-nav a {
    display: block;
    width: 100%;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--lilac-border);
  }
  .primary-nav .btn-cta {
    margin-top: 0.75rem;
    width: 100%;
    text-align: center;
  }
  .def-strip dl {
    grid-template-columns: 1fr;
  }
}

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