/* ============================================================
   Home in Riverside — custom theme layer over Bootstrap 5.3
   Palette and geometry evolved from the 2003 original:
   navy #030367 -> #16214a, red #C40026 -> #a3182c,
   plus a citrus accent taken from the city's own orange-grove
   history. Sharp corners are deliberate — the original had no
   rounded geometry anywhere and neither does this.
   ============================================================ */

:root {
  --navy-900: #0d1531;
  --navy-800: #16214a;
  --navy-600: #2b3a6e;
  --navy-100: #e4e7f0;

  --oxblood: #a3182c;
  --oxblood-dark: #7d1122;

  --citrus: #d8710f;
  --citrus-light: #f2a341;

  --paper: #fbfaf7;
  --paper-alt: #f2efe8;
  --rule: #d8d3c8;
  --rule-strong: #b9b2a2;

  --ink: #1d2330;
  --ink-soft: #4a5262;
  --ink-faint: #6f7787;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 68ch;
}

/* ---------- base ---------- */

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--oxblood); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--oxblood-dark); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy-800);
  color: #fff;
  padding: .6rem 1rem;
}
.skip-link:focus { left: 0; color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

/* Entrance animation ends in the visible state and uses fill-mode both,
   so content is visible even if the animation never runs. Nothing on
   this site is ever hidden waiting on JavaScript. */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .page-hero-inner { animation: riseIn .5s ease-out both; }
}
/* Safeguard: any scroll-reveal markup that ever lands here stays visible. */
[data-aos] { opacity: 1 !important; transform: none !important; }

/* ---------- masthead ---------- */

.site-header { border-bottom: 1px solid var(--rule); background: #fff; }

.masthead {
  background: var(--navy-800);
  color: #fff;
  border-bottom: 4px solid var(--citrus);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding: 1.1rem 0;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.brand:hover, .brand:focus { color: #fff; }

.brand-mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  background: var(--citrus);
  box-shadow: 6px 6px 0 rgba(255, 255, 255, .18);
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.brand-sub {
  display: block;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .74);
  margin-top: .15rem;
}

.masthead-note {
  margin: 0;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

/* ---------- primary nav ----------
   Wrapping row on wide screens; a single scrollable row on small ones.
   min-width:0 and flex-wrap keep links from being pushed past the
   viewport edge and silently clipped. No JavaScript involved. */

.site-nav { background: #fff; }

.site-nav .nav {
  flex-wrap: wrap;
  min-width: 0;
  gap: 0;
  border-bottom: 3px double var(--rule-strong);
}

.site-nav .nav-link {
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy-800);
  padding: .85rem 1rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus { color: var(--oxblood); background: var(--paper-alt); }
.site-nav .nav-link.is-current {
  color: var(--oxblood);
  border-bottom-color: var(--oxblood);
}

@media (max-width: 991.98px) {
  .site-nav .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .site-nav .nav-link { padding: .75rem .8rem; }
}

/* ---------- page hero ---------- */

.page-hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
}

.page-hero-media {
  position: absolute;
  inset: 0;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
}
.page-hero.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(13, 21, 49, .93) 0%, rgba(13, 21, 49, .74) 48%, rgba(13, 21, 49, .38) 100%);
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero-inner {
  max-width: 46rem;
  padding: 3.5rem 0 3.25rem;
}
.page-home .page-hero-inner { padding: 5.5rem 0 5rem; }

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}

.eyebrow {
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--citrus-light);
  margin: 0 0 .9rem;
}
.eyebrow a { color: var(--citrus-light); text-decoration: none; }
.eyebrow a:hover { color: #fff; text-decoration: underline; }
.eyebrow span { opacity: .55; margin: 0 .35rem; }

.standfirst {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
  margin: 0;
  max-width: 40rem;
}

/* ---------- body layout ---------- */

.page-body { padding: 3rem 0 4.5rem; }

.rail {
  position: sticky;
  top: 1.5rem;
  border-top: 3px double var(--rule-strong);
  padding-top: 1.1rem;
}
.rail-head {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 .75rem;
}
.rail ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.rail li { border-bottom: 1px solid var(--rule); }
.rail a {
  display: block;
  padding: .5rem 0;
  font-size: .93rem;
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
}
.rail a:hover, .rail a:focus { color: var(--oxblood); }
.rail a.is-current { color: var(--oxblood); }
.rail a.is-current::before { content: "\2014\00a0"; color: var(--citrus); }
.rail-note {
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

@media (max-width: 991.98px) {
  .rail { position: static; }
  .rail ul { columns: 2; column-gap: 1.5rem; }
}
@media (max-width: 575.98px) {
  .rail ul { columns: 1; }
}

/* ---------- prose ---------- */

.prose { max-width: var(--measure); }

.prose h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  margin: 2.75rem 0 .9rem;
  padding-top: 1.1rem;
  border-top: 3px double var(--rule-strong);
}
.prose > h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 1.2rem;
  color: var(--navy-600);
  margin: 1.9rem 0 .6rem;
}

.prose p { margin: 0 0 1.15rem; }

.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.35rem; }
.prose li { margin-bottom: .55rem; }
.prose ol { counter-reset: none; }

.prose strong { color: var(--navy-900); }

.prose a { font-weight: 600; }

/* first paragraph of each section gets a subtle lead-in */
.prose h2 + p::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--oxblood);
}

.figure-block { margin: 2rem 0 2.25rem; }
.figure-block img {
  width: 100%;
  display: block;
  border-top: 4px solid var(--navy-800);
  border-bottom: 1px solid var(--rule);
}
/* Figures stay inside the prose measure. No negative margins and no
   width overshoot: a bleed wider than its column is exactly how a
   layout ends up scrolling sideways at one particular viewport. */
.figure-block.is-inline { margin-left: 0; max-width: 100%; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .82);
  padding: 3.25rem 0 2.25rem;
  border-top: 5px solid var(--citrus);
  font-size: .95rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .6rem;
}
.footer-blurb { color: rgba(255, 255, 255, .72); margin: 0; max-width: 34rem; }

.footer-head {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--citrus-light);
  margin: 0 0 .9rem;
}

.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .4rem; }
.footer-list a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-list a:hover, .footer-list a:focus { color: var(--citrus-light); text-decoration: underline; }

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 3px double rgba(255, 255, 255, .28);
}
.disclaimer {
  font-size: .86rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .72);
  max-width: 60rem;
  margin: 0 0 .9rem;
}
.disclaimer strong { color: #fff; }
.copyright {
  font-size: .8rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .5);
  margin: 0;
}

/* ---------- print ---------- */

@media print {
  .site-nav, .rail, .page-hero-media, .site-footer .footer-list { display: none; }
  body { background: #fff; font-size: 11pt; }
  .page-hero { background: #fff; color: #000; }
  .page-hero h1, .standfirst { color: #000; }
}
