/* ============================================================
   J.D. Sinebryukhov Capital Analytics, Inc.
   Design tokens: navy (authority) / white (clarity) / red (signature, sparing)
   ============================================================ */

:root {
  --navy-deep: #0A1F44;
  --navy-mid: #1E3A6E;
  --navy-mid-rgb: 30, 58, 110;
  --red-signature: #B31942;
  --red-signature-rgb: 179, 25, 66;
  --white: #FFFFFF;
  --gray-cool: #F7F8FA;
  --gray-line: #E2E5EA;
  --slate: #6B7280;
  --slate-dark: #3F4652;

  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max-width: 1120px;
  --section-pad: 96px;
}

@media (max-width: 720px) {
  :root { --section-pad: 56px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate-dark);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-deep);
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
}

a {
  color: var(--navy-mid);
  text-decoration: none;
}
a:hover { color: var(--red-signature); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--red-signature);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.seal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.seal::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid var(--red-signature);
}
.seal-mark {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: 0.03em;
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--slate);
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 2px;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  font-size: 0.88rem;
  color: var(--slate-dark);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
nav.main-nav a:hover {
  color: var(--navy-deep);
  border-bottom-color: var(--red-signature);
}
nav.main-nav a.current {
  color: var(--navy-deep);
  border-bottom-color: var(--red-signature);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-deep);
  margin: 5px 0;
}

@media (max-width: 860px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--gray-line);
    box-shadow: 0 8px 16px rgba(10,31,68,0.06);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a {
    width: 100%;
    padding: 14px 32px;
    border-bottom: 1px solid var(--gray-line);
    border-left: 3px solid transparent;
  }
  nav.main-nav a.current,
  nav.main-nav a:hover {
    border-bottom-color: var(--gray-line);
    border-left-color: var(--red-signature);
    background: var(--gray-cool);
  }
  .nav-toggle { display: block; }
}

/* ---------------- Ledger rule (signature structural device) ---------------- */

.ledger-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.ledger-rule .tick {
  width: 8px;
  height: 8px;
  background: var(--red-signature);
  flex-shrink: 0;
}
.ledger-rule .line {
  flex: 1;
  height: 1px;
  background: var(--navy-deep);
  opacity: 0.25;
}
.ledger-rule .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}

/* ---------------- Hero ---------------- */

.hero {
  background: var(--navy-deep);
  color: var(--white);
  padding: 84px 32px 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}
.hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: 60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(179,25,66,0.35);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 780px;
  margin-bottom: 22px;
}
.hero p.lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  line-height: 1.7;
}
.hero-seal {
  position: absolute;
  right: 32px;
  bottom: -20px;
  width: 132px;
  height: 132px;
  z-index: 1;
  opacity: 0.9;
}
@media (max-width: 860px) {
  .hero-seal { display: none; }
}

.page-hero {
  background: var(--navy-deep);
  color: var(--white);
  padding: 56px 32px 64px;
}
.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-hero .hero-eyebrow { margin-bottom: 14px; }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}
.page-hero p.lede {
  color: rgba(255,255,255,0.78);
  font-size: 1.02rem;
  max-width: 640px;
  margin-top: 14px;
}

/* ---------------- Sections ---------------- */

section {
  padding: var(--section-pad) 32px;
}
section.alt { background: var(--gray-cool); }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-heading {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------------- Cards ---------------- */

.card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  padding: 28px;
  border-radius: 2px;
}
.card + .card { margin-top: 16px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
}

.principle-card {
  border-left: 3px solid var(--navy-deep);
  padding: 22px 24px;
  background: var(--white);
  border-top: 1px solid var(--gray-line);
  border-right: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
}
.principle-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.principle-card p {
  font-size: 0.93rem;
  color: var(--slate-dark);
  margin: 0;
}

/* ---------------- Buttons / Links-as-actions ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border: 1.5px solid var(--white);
  color: var(--white);
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--white); color: var(--navy-deep); }

.btn-red {
  border-color: var(--red-signature);
  background: var(--red-signature);
  color: var(--white);
}
.btn-red:hover { background: transparent; color: var(--red-signature); }

.btn-outline-navy {
  border: 1.5px solid var(--navy-deep);
  color: var(--navy-deep);
}
.btn-outline-navy:hover { background: var(--navy-deep); color: var(--white); }

/* ---------------- Tables (financial / news) ---------------- */

table.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.ledger-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 2px solid var(--navy-deep);
  padding: 10px 14px;
}
table.ledger-table td {
  padding: 14px;
  border-bottom: 1px solid var(--gray-line);
  vertical-align: top;
}
table.ledger-table td.date,
table.ledger-table td.period {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--navy-mid);
  white-space: nowrap;
}
table.ledger-table tr:hover td { background: var(--gray-cool); }

/* ---------------- Notice / callout boxes ---------------- */

.notice {
  border-left: 3px solid var(--red-signature);
  background: var(--gray-cool);
  padding: 20px 24px;
  font-size: 0.92rem;
  color: var(--slate-dark);
}
.notice strong { color: var(--navy-deep); }

.notice-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.notice-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 14px;
  font-size: 0.93rem;
}
.notice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--navy-mid);
}
.notice-list li:last-child { margin-bottom: 0; }

/* ---------------- Disclosure page specific ---------------- */

.disclosure-block {
  margin-bottom: 44px;
}
.disclosure-block:last-child { margin-bottom: 0; }
.disclosure-block h2 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-line);
}
.disclosure-block ul {
  padding-left: 20px;
  margin: 0;
}
.disclosure-block li {
  margin-bottom: 10px;
  font-size: 0.93rem;
  color: var(--slate-dark);
}

.disclosure-nav {
  position: sticky;
  top: 90px;
}
.disclosure-nav a {
  display: block;
  font-size: 0.85rem;
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--gray-line);
  color: var(--slate);
}
.disclosure-nav a:hover,
.disclosure-nav a.active {
  border-left-color: var(--red-signature);
  color: var(--navy-deep);
}

/* ---------------- Portal gate ---------------- */

.gate {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 40px;
  border: 1px solid var(--gray-line);
  background: var(--white);
}
.gate .seal { width: 56px; height: 56px; margin: 0 auto 24px; }
.gate .seal-mark { font-size: 0.9rem; }

/* ---------------- Contact ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-item {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--gray-line);
}
.contact-item:last-child { border-bottom: none; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}
.contact-value {
  font-size: 1.1rem;
  color: var(--navy-deep);
  font-weight: 600;
}

/* ---------------- Footer ---------------- */

footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.65);
  padding: 56px 32px 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
}
.footer-brand .seal {
  border-color: rgba(255,255,255,0.4);
}
.footer-brand .seal::before { border-color: var(--red-signature); }
.footer-brand .seal-mark { color: var(--white); }

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--white); }

.footer-legal {
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 900px;
}
.footer-legal p { margin: 0 0 10px; }
.footer-legal p:last-child { margin-bottom: 0; }

/* ---------------- Utility ---------------- */

.mono { font-family: var(--font-mono); }
.text-slate { color: var(--slate); }
.mb-0 { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
