

:root {
  color-scheme: light;
  --navy: #101a2e;
  --navy-soft: #1b2a46;
  --red: #b72b32;
  --paper: #f3f0e9;
  --paper-soft: #faf8f3;
  --surface: #fffdf9;
  --ink: #171717;
  --muted: #6b6862;
  --line: #c9c3b8;
  --facebook: #1877f2;
  --shadow: 0 18px 55px rgba(16, 26, 46, 0.10);
  --header-bg: rgba(243, 240, 233, 0.94);
  --footer-text: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --navy: #edf2ff;
  --navy-soft: #d7e1f7;
  --red: #e45e65;
  --paper: #0d1421;
  --paper-soft: #121c2c;
  --surface: #162235;
  --ink: #f2f4f8;
  --muted: #aeb7c6;
  --line: #314057;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
  --header-bg: rgba(13, 20, 33, 0.94);
  --footer-text: rgba(255, 255, 255, 0.70);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  transition: background-color 180ms ease, color 180ms ease;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.top-line {
  height: 7px;
  background: #101a2e;
}

html[data-theme="dark"] .top-line {
  background: #e45e65;
}

.shell {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 80px;
  height: 80px;
  max-height: 80px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
}

html[data-theme="dark"] .brand-logo {
  filter: brightness(0) invert(1);
}

.brand-fallback {
  width: 58px;
  height: 58px;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: #101a2e;
  color: #f3f0e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.nav a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--red);
}

.theme-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.theme-icon {
  width: 20px;
  text-align: center;
  font-size: 18px;
  line-height: 1;
}

.hero {
  padding: 92px 0 82px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 70px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(54px, 8vw, 104px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-copy {
  padding-left: 24px;
  border-left: 3px solid var(--red);
}

.hero-copy p {
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-copy .small {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-heading > p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 228px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-number {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card h3 {
  margin: 42px 0 10px;
  font-size: 27px;
  font-weight: 500;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-link {
  margin-top: auto;
  padding-top: 24px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--red);
}

.facebook-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.facebook-content {
  padding: 46px;
}

.facebook-content h2 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.facebook-content p {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
}

.facebook-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 28px;
  padding: 0 19px;
  border-radius: 3px;
  background: var(--facebook);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.facebook-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--facebook);
  font-size: 17px;
  font-weight: 900;
}

.facebook-side {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px;
  background: #101a2e;
  color: #f3f0e9;
}

.facebook-side strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 78px;
  font-weight: 500;
  line-height: 1;
  opacity: 0.17;
}

.facebook-side p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.site-footer {
  margin-top: 40px;
  background: #101a2e;
  color: #f3f0e9;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  padding: 46px 0 34px;
}

.footer-name {
  margin: 0 0 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
}

.footer-description {
  max-width: 540px;
  margin: 0;
  color: var(--footer-text);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 12px 22px;
}

.footer-links a {
  color: #f3f0e9;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.document {
  padding: 70px 0 90px;
}

.document-header {
  max-width: 860px;
  margin-bottom: 48px;
}

.document-header h1 {
  font-size: clamp(48px, 7vw, 82px);
}

.document-meta {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.document-content {
  max-width: 880px;
  padding: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document-content h2 {
  margin: 42px 0 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.document-content h2:first-child {
  margin-top: 0;
}

.document-content p,
.document-content li {
  color: var(--ink);
  font-size: 15px;
}

.document-content ul {
  padding-left: 22px;
}

.contact-box {
  margin-top: 26px;
  padding: 22px;
  border-left: 3px solid var(--red);
  background: var(--paper-soft);
}

.build-main {
  min-height: calc(100vh - 99px);
  display: flex;
  flex-direction: column;
}

.build-content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 70px;
  padding: 90px 0 80px;
}

.build-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.build-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

@media (max-width: 920px) {
  .header-inner {
    padding: 20px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .nav a {
    flex: 0 0 auto;
  }
}

@media (max-width: 820px) {
  .hero {
    padding: 65px 0 58px;
  }

  .hero-grid,
  .facebook-block,
  .build-content {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .build-content {
    gap: 46px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .facebook-side {
    min-height: 220px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 30px, 1180px);
  }

  .brand-logo {
    width: 80px;
  }

  h1 {
    font-size: clamp(49px, 16vw, 70px);
  }

  .facebook-content,
  .facebook-side,
  .document-content {
    padding: 26px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .theme-toggle [data-theme-label] {
    display: none;
  }
}


.program-button {
  display: inline-flex; align-items: center; gap: 24px;
  min-height: 48px; padding: 12px 20px; margin-top: 32px;
  background: var(--navy); color: var(--paper); border-radius: 3px;
  font-size: 14px; font-weight: 800; text-decoration: none;
}
.program-button:hover { background: var(--red); color: var(--paper); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
.section { scroll-margin-top: 24px; }
.program-section { background: var(--paper-soft); }
.program-section .section-heading { align-items: flex-start; }
.program-section .section-heading > div { flex: 1.2; }
.program-section .section-heading > p { flex: 1; }
.program-intro { max-width: 780px; margin: 0 0 36px; font-size: 18px; }
.program-cards .card { box-shadow: none; }
.program-cards .card h3 { margin-top: 24px; line-height: 1.2; }
.program-cards .card p { font-size: 15px; }
.program-values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.program-values span { padding: 7px 14px; border: 1px solid var(--line); border-radius: 30px; color: var(--navy); font-size: 13px; font-weight: 700; }
.contact-email { font-size: clamp(17px, 3vw, 28px); color: var(--navy); overflow-wrap: anywhere; text-underline-offset: 6px; }
.nav { flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
}
  
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 15px; top: -100px; z-index: 10; background: var(--surface); padding: 12px; }
.skip-link:focus { top: 12px; }
.nav [aria-current="page"] { color: var(--red); text-decoration: underline; text-underline-offset: 7px; }

.auth-main { padding: 70px 0; min-height: 60vh; }
.auth-card { max-width: 480px; margin: auto; padding: 32px; border: 1px solid var(--line); border-top: 4px solid var(--red); background: var(--surface); }
.auth-card h1 { font-size: clamp(36px, 7vw, 48px); letter-spacing: -.03em; }
.auth-card p { color: var(--muted); }
label { display: block; margin: 22px 0 7px; font-weight: 700; }
input:not([type="checkbox"]), textarea, select { display: block; width: 100%; min-height: 46px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; }
textarea { resize: vertical; line-height: 1.7; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 11px 20px; border: 1px solid transparent; border-radius: 4px; background: var(--navy); color: var(--paper); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { opacity: .85; }
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--navy); }
.button.danger { background: #b72b32; color: white; }
.auth-card .button { width: 100%; margin-top: 24px; }
.back-link { display: inline-block; margin-top: 22px; }
.notice { margin: 20px 0; padding: 16px 20px; border-left: 3px solid var(--red); background: var(--paper-soft); }
.notice.error { border-color: #d3454e; }
.notice.success { border-color: #36825b; }
.panel-main { padding: 60px 0 90px; }
.panel-main h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.03em; line-height: 1.1; }
.editor { max-width: 860px; margin: 30px 0; padding: 30px; border: 1px solid var(--line); background: var(--surface); }
.editor h2 { margin-top: 0; font-size: 32px; }
.field-note { color: var(--muted); font-size: 13px; }
.check-label { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; font-weight: 400; }
.check-label input { flex: 0 0 20px; height: 20px; margin: 2px 0 0; }
.form-actions, .row-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; }
.post-list { margin-top: 32px; }
.post-row { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.post-row h2 { margin: 8px 0; font-size: 25px; overflow-wrap: anywhere; }
.status-badge { display: inline-block; padding: 3px 9px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font-size: 12px; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.post-preview { padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--line); }
.post-preview h2 { white-space: pre-wrap; overflow-wrap: anywhere; }
.news-post { max-width: 850px; padding: 32px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 24px; }
.news-post h3 { font-size: 32px; margin: 14px 0; line-height: 1.2; overflow-wrap: anywhere; }
.empty-state { padding: 28px; background: var(--surface); border: 1px solid var(--line); }
.text-button { border: 0; padding: 0; color: inherit; background: none; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 600px) { .editor, .news-post, .auth-card { padding: 22px; } .post-row { flex-direction: column; gap: 6px; } }

.program-page-title { font-size: clamp(42px, 6vw, 68px); line-height: 1.05; letter-spacing: -.04em; }
