/* ==========================================================================
   World Freedom Core — design system
   Dark, high-contrast, long-form reading site with metallic gold accents.
   ========================================================================== */

:root {
  --color-bg: #0b0b0d;
  --color-bg-raised: #16161a;
  --color-text: #ece9e2;
  --color-text-dim: #b7b3aa;
  --color-border: #2a2a2f;

  --color-gold: #d4af37;
  --color-gold-bright: #f1d97a;
  --color-gold-dim: #8a6f2a;

  --font-body: Georgia, "Times New Roman", serif;
  --font-ui: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --content-max-width: 46rem;
  --space-lg: 3rem;
  --space-md: 1.5rem;
  --space-sm: 0.75rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-gold-bright);
}

a:hover,
a:focus {
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   Metallic gold divider
   A soft gradient bar (transparent -> gold -> transparent) reads as a thin
   metallic strip rather than a flat <hr>.
   -------------------------------------------------------------------------- */

.divider-gold {
  height: 2px;
  width: 100%;
  margin: var(--space-md) 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-gold-dim) 15%,
    var(--color-gold-bright) 50%,
    var(--color-gold-dim) 85%,
    transparent 100%
  );
  box-shadow: 0 1px 0 rgba(241, 217, 122, 0.15);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  background: var(--color-bg-raised);
}

.home-link {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  padding: 0.3rem 0.6rem;
  background: rgba(11, 11, 13, 0.55);
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-decoration: none;
  z-index: 5;
}

.home-link:hover,
.home-link:focus-visible {
  color: var(--color-gold-bright);
  background: rgba(11, 11, 13, 0.75);
}

.header-top {
  width: 100%;
  /* Matches header-image.png's real 4256x992 pixel dimensions, so this box
     is always exactly as tall as the image needs at the current width
     instead of a content-driven height that crops the image to fit. */
  aspect-ratio: 4256 / 992;

  /* Dark tint layered under the header image for overall contrast/readability */
  background-image: linear-gradient(
      rgba(11, 11, 13, 0.55),
      rgba(11, 11, 13, 0.55)
    ),
    url("/header-image.png");
  background-size: cover;
  background-position: center;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.site-nav {
  width: 100%;
  margin: var(--space-sm) 0 0;
  font-family: var(--font-ui);
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-toggle::after {
  content: "\25BE"; /* small down triangle */
  display: inline-block;
  margin-left: 0.4em;
  font-size: 0.7em;
  color: var(--color-gold);
}

.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
  background: rgba(212, 175, 55, 0.12);
  color: var(--color-gold-bright);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 16rem;
  margin: 0.25rem 0 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-gold);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 20;
}

.nav-item.open .dropdown-menu,
.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  height: 2.75rem;
  padding: 0 1.25rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus-visible {
  background: rgba(212, 175, 55, 0.12);
  color: var(--color-gold-bright);
}

.dropdown-menu li a.nav-disabled,
.dropdown-menu li a.nav-disabled:hover,
.dropdown-menu li a.nav-disabled:focus-visible {
  color: #e5484d;
  cursor: default;
  background: none;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Content area
   -------------------------------------------------------------------------- */

.content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

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

.page-heading {
  font-family: var(--font-ui);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.hero-heading {
  font-family: var(--font-ui);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--color-gold);
  text-align: center;
  letter-spacing: 0.02em;
  margin: 0;
}

.section-heading {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: var(--space-md) 0 0.75rem;
}

.draft-note {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-dim);
  margin: 0.5rem 0 0;
}

.hero-body {
  text-align: left;
}

.hero-body p {
  color: var(--color-text);
  font-size: 1rem;
  margin: 0 0 1.25rem;
}

.hero-body p:last-child {
  margin-bottom: 0;
}

.hero-body ul {
  color: var(--color-text);
  font-size: 1rem;
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.hero-body ul:last-child {
  margin-bottom: 0;
}

.hero-body li {
  margin: 0 0 0.6rem;
}

.hero-body li:last-child {
  margin-bottom: 0;
}

.hero-body ol {
  color: var(--color-text);
  font-size: 1rem;
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.hero-body ol:last-child {
  margin-bottom: 0;
}

.hero-body ol li {
  margin: 0 0 0.6rem;
}

.hero-body ol li:last-child {
  margin-bottom: 0;
}

.subsection-heading {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: var(--space-md) 0 0.6rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.table-wrap:last-child {
  margin-bottom: 0;
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

.data-table thead th {
  background: var(--color-bg-raised);
  color: var(--color-gold-bright);
  font-weight: 700;
  border-bottom: 2px solid var(--color-gold);
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(212, 175, 55, 0.04);
}

.data-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.08);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.hero-body .quote {
  margin: 0 0 1.25rem;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-left: 3px solid var(--color-gold);
  font-style: italic;
  color: var(--color-text-dim);
}

.hero-body .quote:last-child {
  margin-bottom: 0;
}
