:root {
  --navy: #000033;
  --navy-soft: #080846;
  --blue: #16165c;
  --red: #d7332f;
  --gold: #e5bd66;
  --cream: #f4f0df;
  --muted: #bfc3d8;
  --line: #444879;
  --page: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site-page {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  color: var(--navy);
}

.skip-link:focus { top: 12px; }

.site-header {
  border-top: 5px solid var(--red);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#101052, #05053c);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}

.site-header__inner,
.page-banner,
.legacy-content,
.site-footer__inner,
.content-page {
  width: min(calc(100% - 32px), var(--page));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 118px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand__seal { width: 74px; height: 80px; object-fit: cover; }
.site-brand__wordmark { width: 245px; height: auto; }
.site-brand__tagline { display: block; color: var(--gold); font: italic 13px Georgia, serif; }

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid var(--gold);
  background: transparent;
  color: #fff;
  font-weight: bold;
}

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block;
  padding: 9px 10px;
  border-bottom: 2px solid transparent;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .02em;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] { color: var(--gold); border-color: var(--red); }

.page-banner {
  margin-top: 22px;
  margin-bottom: 22px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  background: linear-gradient(100deg, rgba(32,32,103,.95), rgba(6,6,56,.92));
}
.page-banner__eyebrow { margin: 0 0 2px; color: var(--gold); font: italic 14px Georgia, serif; }
.page-banner h1 { margin: 0; color: #fff; font: 30px Georgia, "Times New Roman", serif; }
.page-banner p:last-child { max-width: 760px; margin: 7px 0 0; color: var(--muted); }

.legacy-content {
  min-height: 50vh;
  padding: 8px 18px 38px;
  overflow: hidden;
}
.legacy-content h3:empty { display: none; }
.legacy-content p { max-width: 940px; margin: 12px auto; }
.legacy-content p[align="justify"], .legacy-content p[align="left"] { max-width: 940px; }
.legacy-content a { color: #fff; text-decoration-color: var(--red); text-underline-offset: 3px; }
.legacy-content a:hover { color: var(--gold); }
.legacy-content img { max-width: 100%; }
.legacy-content table { max-width: 100%; margin: 16px auto; border-collapse: collapse; }
.legacy-content td { padding: 8px; border-color: var(--line) !important; vertical-align: top; }
.legacy-content td img { object-fit: contain; }
.legacy-content strong { color: #fff; }
.legacy-content font { font-family: Arial, Helvetica, sans-serif; }
.legacy-content input[type="image"] { max-width: 150px; }

.catalogue-action,
.button {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid #f06159;
  background: linear-gradient(#e14a43, #ae211e);
  color: #fff !important;
  font-weight: bold;
  text-decoration: none !important;
  box-shadow: inset 0 1px rgba(255,255,255,.25);
}
.catalogue-action:hover, .button:hover { background: #ed5a52; }
.book-note, .order-quick-links {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--navy-soft);
  text-align: center;
}
.order-quick-links a { margin: 4px; }

.site-footer {
  clear: both;
  border-top: 4px solid var(--red);
  background: #050529;
  color: var(--muted);
}
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding: 30px 0; }
.site-footer h2 { margin: 0 0 8px; color: var(--gold); font: 18px Georgia, serif; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: #fff; }
.site-footer__legal { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid #30305f; font-size: 12px; }

.content-page { padding: 10px 0 48px; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.content-card { padding: 22px; border: 1px solid var(--line); background: var(--navy-soft); }
.content-card h2 { margin-top: 0; color: var(--gold); font: 23px Georgia, serif; }
.content-card img { width: 100%; max-height: 330px; object-fit: cover; border: 4px solid #fff; }
.legal-section { padding: 18px 22px; border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .site-header__inner { flex-wrap: wrap; padding: 14px 0; }
  .site-nav { width: 100%; margin: 0; }
  .site-nav ul { justify-content: center; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__legal { grid-column: 1 / -1; }
  .legacy-content table { display: block; overflow-x: auto; }
}

@media (max-width: 640px) {
  .site-header__inner { min-height: auto; }
  .site-brand__seal { width: 52px; height: 58px; }
  .site-brand__wordmark { width: min(210px, 54vw); }
  .site-brand__tagline { display: none; }
  .menu-toggle { display: block; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: block; }
  .site-nav a { padding: 11px; border-bottom: 1px solid #33336b; text-align: center; }
  .page-banner { padding: 17px 18px; }
  .page-banner h1 { font-size: 25px; }
  .legacy-content { width: 100%; padding-inline: 10px; }
  .legacy-content img { height: auto !important; }
  .legacy-content table[width="75%"], .legacy-content table[width="100%"] { width: 100% !important; }
  .legacy-content td { min-width: 145px; }
  .content-grid, .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__legal { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
