/*
 * RRS block theme - ported from ravenarescue.net/styles.css.
 * Blocks carry rrs-* class names (set in patterns, locked for editors);
 * this file gives them the original look.
 */

:root {
  --navy: #0f1d35;
  --navy-mid: #1a2744;
  --navy-light: #243352;
  --red: #c0392b;
  --red-dark: #962d23;
  --red-glow: #e74c3c;
  --cream: #f0ece4;
  --white: #ffffff;
  --gray-100: #f7f7f7;
  --gray-200: #e8e8e8;
  --gray-400: #999;
  --gray-600: #666;
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --rrs-top: 0px; /* admin bar offset */
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; margin: 0; }
.admin-bar { --rrs-top: 32px; }
@media (max-width: 782px) { .admin-bar { --rrs-top: 46px; } }

.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.wp-site-blocks *, .editor-styles-wrapper .rrs-section * { box-sizing: border-box; }
.rrs-section p, .rrs-section h1, .rrs-section h2, .rrs-section h3,
.rrs-section h4, .rrs-section ul, .rrs-section figure,
.rrs-footer p, .rrs-footer h5, .rrs-footer ul, .rrs-footer figure,
.rrs-hero p, .rrs-hero h1, .rrs-hero figure { margin: 0; padding: 0; }
.rrs-section a, .rrs-footer a { text-decoration: none; }

/* ========== NAV (header template part) ========== */
.rrs-nav {
  position: fixed;
  top: var(--rrs-top);
  left: 0; right: 0;
  z-index: 1000;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 29, 53, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.4s, box-shadow 0.4s;
  margin: 0 !important;
}
.rrs-nav.scrolled { background: rgba(15, 29, 53, 0.98); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
@media (max-width: 600px) { .admin-bar .rrs-nav { top: 0; } }

.rrs-nav-logo { display: flex; align-items: center; gap: 12px; margin: 0 !important; }
.rrs-nav-logo figure { margin: 0 !important; }
.rrs-nav-logo img { height: 44px !important; width: auto !important; border-radius: 4px; display: block; }
.rrs-nav-logo p { margin: 0 !important; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.08em; line-height: 1; }
.rrs-nav-logo p a, .rrs-nav-logo p a:hover { color: var(--white); text-decoration: none; }

.rrs-nav .wp-block-navigation { margin: 0 !important; }
.rrs-nav .wp-block-navigation__container { gap: 0 !important; }
.rrs-nav .wp-block-navigation-item__content {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7) !important;
  padding: 8px 16px !important;
  position: relative;
  transition: color 0.3s;
  text-decoration: none !important;
}
.rrs-nav .wp-block-navigation-item__content::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 16px; right: 16px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.rrs-nav .wp-block-navigation-item__content:hover,
.rrs-nav .wp-block-navigation-item__content.is-active { color: var(--white) !important; }
.rrs-nav .wp-block-navigation-item__content:hover::after { transform: scaleX(1); transform-origin: left; }
.rrs-nav .wp-block-navigation__responsive-container-open,
.rrs-nav .wp-block-navigation__responsive-container-close { color: var(--white); }

/* Original collapses the menu at 900px; core does it at 600px. */
@media (max-width: 900px) {
  .rrs-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
  .rrs-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
.rrs-nav .wp-block-navigation__responsive-container.is-menu-open {
  background: rgba(15, 29, 53, 0.98) !important;
  color: var(--white) !important;
  padding-top: calc(72px + var(--rrs-top));
}
.rrs-nav .is-menu-open .wp-block-navigation__container { gap: 0 !important; }
.rrs-nav .is-menu-open .wp-block-navigation-item__content { padding: 12px 2rem !important; font-size: 0.85rem; }

/* ========== 911 BANNER (template part) ========== */
.rrs-emergency-banner {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 10px 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  position: fixed;
  top: calc(72px + var(--rrs-top));
  left: 0; right: 0;
  z-index: 999;
  margin: 0 !important;
}
.rrs-emergency-banner p { margin: 0 !important; line-height: 1.2; }
.rrs-emergency-banner strong { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.1em; font-weight: 400; }
@media (max-width: 900px) { .rrs-emergency-banner { font-size: 0.75rem; padding: 8px 1rem; } }
@media (max-width: 600px) { .admin-bar .rrs-emergency-banner { top: 72px; } }

/* Space under the fixed nav + banner on inner pages */
.rrs-main { margin: 0 !important; }
.rrs-main-inner { padding-top: 110px; }
@media (max-width: 900px) { .rrs-main-inner { padding-top: 106px; } }

/* ========== HERO ========== */
.wp-block-cover.rrs-hero {
  position: relative;
  min-height: 600px;
  height: 100vh;
  margin-top: 38px !important;
  padding: 0;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) { .wp-block-cover.rrs-hero { margin-top: 34px !important; } }
.rrs-hero .wp-block-cover__image-background {
  transform: scale(1.05);
  animation: rrsHeroZoom 20s ease-out forwards;
}
@keyframes rrsHeroZoom { to { transform: scale(1); } }
.rrs-hero .wp-block-cover__inner-container {
  position: static;
  text-align: center;
  padding: 2rem;
  animation: rrsFadeUp 1.2s ease-out 0.3s both;
}
.rrs-hero .wp-block-cover__inner-container > * { position: relative; z-index: 2; }
@keyframes rrsFadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.rrs-hero-logo { margin: 0 auto 2rem !important; text-align: center; }
.rrs-hero-logo img {
  width: 120px !important; height: auto !important;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
h1.rrs-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 0.95;
  margin: 0 0 0.5rem !important;
  font-weight: 400;
}
.rrs-hero-title mark { background: transparent !important; color: var(--red-glow) !important; }
p.rrs-hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
  margin: 0 0 2.5rem !important;
}
.rrs-hero .wp-block-buttons { justify-content: center; margin: 0 !important; }
.rrs-hero-scroll {
  position: absolute !important;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: rrsBounce 2s infinite 2s;
}
.rrs-hero-scroll svg { width: 28px; height: 28px; stroke: rgba(255,255,255,0.5); fill: none; stroke-width: 2; display: block; }
@keyframes rrsBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ========== BUTTONS ========== */
.wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 36px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.wp-block-button .wp-block-button__link:hover { background: var(--red-dark); color: var(--white); transform: translateY(-2px); }
.rrs-btn-small .wp-block-button__link { padding: 14px 28px; letter-spacing: 0.1em; white-space: nowrap; }
.rrs-btn-navy .wp-block-button__link { background: var(--navy-light); }
.rrs-btn-navy .wp-block-button__link:hover { background: var(--navy); }
.rrs-btn-small .wp-block-button__link::before {
  content: ''; width: 18px; height: 18px; flex: none;
  background: currentColor;
  -webkit-mask: var(--rrs-icon) center / contain no-repeat; mask: var(--rrs-icon) center / contain no-repeat;
}
.rrs-btn-small:not(.rrs-icon-file):not(.rrs-icon-download) .wp-block-button__link::before { display: none; }
.rrs-icon-file { --rrs-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E"); }
.rrs-icon-download { --rrs-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E"); }

/* ========== SECTIONS ========== */
.rrs-section { padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 4rem); margin: 0 !important; }
.rrs-dark { background: var(--navy); color: var(--white); }
.rrs-mid { background: var(--navy-mid); color: var(--white); border-top: 1px solid rgba(255,255,255,0.05); }
.rrs-cream { background: var(--cream); color: var(--navy); }
.rrs-light { background: var(--white); color: var(--navy); }
.rrs-container { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; }

p.rrs-section-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.2;
}
p.rrs-section-label::before { content: ''; display: inline-block; width: 32px; height: 2px; background: var(--red); }
h2.rrs-section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: inherit;
}
.rrs-cream h2.rrs-section-title { color: var(--navy); }
p.rrs-section-body {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 680px;
  color: inherit;
  opacity: 0.85;
}
.rrs-dark p.rrs-section-body, .rrs-mid p.rrs-section-body { color: rgba(255,255,255,0.75); }
p.rrs-section-body + p.rrs-section-body { margin-top: 1rem; }

hr.rrs-red-bar {
  height: 4px !important;
  border: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  opacity: 1 !important;
  background: linear-gradient(90deg, var(--red), var(--red-glow), var(--red)) !important;
}

/* Inline SVG icons from Custom HTML blocks */
.rrs-icon { display: flex; align-items: center; justify-content: center; flex: none; }
.rrs-icon svg { fill: none; stroke: var(--red-glow); stroke-width: 2; }

/* ========== ABOUT ========== */
.rrs-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.rrs-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.rrs-stat-card {
  background: var(--navy-light);
  padding: clamp(1.5rem, 3vw, 2rem);
  position: relative;
  overflow: hidden;
  border-left: 3px solid var(--red);
}
.rrs-stat-card::after {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; background: rgba(192,57,43,0.08); border-radius: 50%;
}
p.rrs-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 0.3rem;
}
p.rrs-stat-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* ========== HISTORY TIMELINE ========== */
.rrs-timeline { position: relative; padding: 2rem 0; }
.rrs-timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--red), var(--red), transparent);
  transform: translateX(-50%);
}
.rrs-timeline-item { position: relative; margin-bottom: 3rem !important; }
.rrs-timeline-item:nth-child(odd) { padding-right: calc(50% + 2rem); text-align: right; }
.rrs-timeline-item:nth-child(even) { padding-left: calc(50% + 2rem); text-align: left; }
.rrs-timeline-item::before {
  content: ''; position: absolute; left: 50%; top: 0.5rem;
  width: 14px; height: 14px; background: var(--red);
  border: 3px solid var(--cream); border-radius: 50%;
  transform: translateX(-50%); z-index: 2; box-sizing: content-box;
}
p.rrs-timeline-year {
  font-family: var(--font-display); font-size: 2rem; color: var(--red);
  letter-spacing: 0.04em; line-height: 1; margin-bottom: 0.4rem;
}
p.rrs-timeline-text { font-family: var(--font-serif); font-size: 1rem; line-height: 1.7; color: var(--gray-600); }

/* ========== GALLERY ========== */
.wp-block-gallery.rrs-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem !important;
  margin-top: 2.5rem !important;
}
.wp-block-gallery.rrs-gallery figure.wp-block-image {
  width: auto !important;
  margin: 0 !important;
  aspect-ratio: 3 / 2;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.wp-block-gallery.rrs-gallery figure.wp-block-image img {
  width: 100% !important; height: 100% !important; object-fit: cover !important;
  transition: transform 0.4s ease;
}
.wp-block-gallery.rrs-gallery figure.wp-block-image:hover img { transform: scale(1.06); }
.wp-block-gallery.rrs-gallery figure.wp-block-image figcaption {
  position: absolute !important;
  bottom: 0; left: 0; right: 0;
  margin: 0 !important;
  max-height: none !important;
  padding: 2.5rem 1rem 0.8rem !important;
  background: linear-gradient(transparent, rgba(15,29,53,0.85)) !important;
  font-family: var(--font-body);
  font-size: 0.8rem !important;
  font-weight: 600;
  color: var(--white) !important;
  letter-spacing: 0.04em;
  text-align: left !important;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.wp-block-gallery.rrs-gallery figure.wp-block-image:hover figcaption,
.wp-block-gallery.rrs-gallery figure.wp-block-image:focus-within figcaption { transform: translateY(0); }
.wp-block-gallery.rrs-gallery figure.wp-block-image::before { display: none !important; }

/* core lightbox in RRS navy */
.wp-lightbox-overlay .scrim { background-color: rgba(15,29,53,0.95) !important; opacity: 1 !important; }
.wp-lightbox-overlay .close-button { color: var(--white) !important; }
.wp-lightbox-overlay .close-button svg { fill: var(--white) !important; }

/* ========== CARDS (billing) ========== */
.rrs-cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2.5rem !important; }
.rrs-card {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--gray-200);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.rrs-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(15,29,53,0.1); }
.rrs-card .rrs-icon { width: 48px; height: 48px; background: var(--navy); margin-bottom: 1.2rem; }
.rrs-card .rrs-icon svg { width: 24px; height: 24px; }
.rrs-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: 0.06em; margin-bottom: 0.6rem; color: var(--navy); }
.rrs-card p { font-family: var(--font-body); font-size: 0.95rem; line-height: 1.7; color: var(--gray-600); }
.rrs-card a { color: var(--red); font-weight: 600; transition: color 0.2s; }
.rrs-card a:hover { color: var(--red-dark); }

/* ========== SERVICES ========== */
.rrs-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2.5rem !important; }
.rrs-service-card {
  background: var(--navy-light);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-top: 3px solid var(--red);
  transition: transform 0.3s, box-shadow 0.3s;
}
.rrs-service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.rrs-service-card .rrs-icon { width: 48px; height: 48px; background: rgba(192,57,43,0.12); margin-bottom: 1.2rem; border-radius: 4px; }
.rrs-service-card .rrs-icon svg { width: 24px; height: 24px; }
.rrs-service-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; letter-spacing: 0.06em; color: var(--white); margin-bottom: 0.5rem; }
.rrs-service-card p { font-family: var(--font-body); font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.rrs-standby-box {
  margin-top: 2.5rem !important;
  background: var(--navy-light);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  border-left: 3px solid var(--red);
}
.rrs-standby-box h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: 0.06em; color: var(--white); margin-bottom: 0.5rem; }
.rrs-standby-box p { font-family: var(--font-body); font-size: 0.95rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.rrs-standby-box .wp-block-buttons { margin: 0 !important; }
@media (max-width: 600px) { .rrs-standby-box { grid-template-columns: 1fr; text-align: center; } .rrs-standby-box .wp-block-buttons { justify-content: center; } }

/* ========== NEWS ========== */
.rrs-news-layout { display: grid; grid-template-columns: 1fr 500px; gap: clamp(2rem, 4vw, 3rem); align-items: start; margin-top: 2.5rem !important; }
@media (max-width: 1000px) { .rrs-news-layout { grid-template-columns: 1fr; } }
.rrs-news-query, .rrs-news-query .wp-block-post-template { margin: 0 !important; padding: 0 !important; list-style: none; }
.rrs-news-grid, .wp-block-post-template.rrs-news-grid { display: flex !important; flex-direction: column; gap: 1.5rem; }
.rrs-news-grid > li { margin: 0 !important; }
.rrs-news-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: transform 0.3s, box-shadow 0.3s;
}
.rrs-news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(15,29,53,0.08); }
.rrs-news-card p.rrs-news-date {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin: 0 0 0.6rem !important;
}
.rrs-news-card h3, .rrs-news-card .wp-block-post-title {
  font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; letter-spacing: 0.06em;
  color: var(--navy); margin: 0 0 0.6rem !important; text-transform: uppercase;
}
.rrs-news-card .wp-block-post-title a { color: inherit; text-decoration: none; }
.rrs-news-card .wp-block-post-title a:hover { color: var(--red); }
.rrs-news-card .wp-block-post-content, .rrs-news-card .wp-block-post-content p {
  font-family: var(--font-body); font-size: 0.95rem; line-height: 1.7; color: var(--gray-600); margin: 0 !important;
}
.rrs-news-card a { color: var(--red); font-weight: 600; text-decoration: none; }
.rrs-fb-col h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: 0.06em; color: var(--navy); margin-bottom: 1.2rem; }
.rrs-fb-feed-wrap { width: 100%; overflow: hidden; border: 1px solid var(--gray-200); background: var(--white); min-height: 300px; }
.rrs-fb-feed-wrap blockquote { margin: 0; padding: 1.5rem; font-family: var(--font-body); }

/* ========== EMPLOYMENT ========== */
.rrs-employment-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.rrs-employment-grid h3.rrs-req-title { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; letter-spacing: 0.08em; margin: 0 0 0.5rem; color: var(--white); }
.rrs-employment-grid p.rrs-section-body { margin-bottom: 1rem; }
ul.rrs-req-list { list-style: none; margin: 1.5rem 0 !important; padding: 0; }
ul.rrs-req-list li {
  font-family: var(--font-body); font-size: 0.95rem; line-height: 1.6;
  padding: 0.8rem 0 0.8rem 1.5rem; position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.8);
  margin: 0;
}
ul.rrs-req-list li::before { content: ''; position: absolute; left: 0; top: 1.15rem; width: 6px; height: 6px; background: var(--red); }
.rrs-submit-box { background: var(--navy-light); padding: clamp(1.5rem, 3vw, 2.5rem); border-top: 3px solid var(--red); }
.rrs-submit-box h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: 0.06em; margin-bottom: 1rem; color: var(--white); }
.rrs-submit-box p { font-family: var(--font-body); font-size: 0.95rem; line-height: 1.7; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem !important; }
.rrs-submit-box p strong { color: var(--white); }
.rrs-submit-box a { color: var(--red-glow); font-weight: 600; }
.rrs-submit-box a:hover { text-decoration: underline; }
.rrs-submit-box .wp-block-buttons { margin-top: 1.5rem !important; gap: 1rem; }
.rrs-submit-box .wp-block-button__link, .rrs-submit-box .wp-block-button__link:hover { color: var(--white); text-decoration: none; }

/* ========== RECORDS ========== */
.rrs-records-intro { max-width: 700px; margin-bottom: 2.5rem !important; }
.rrs-records-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-bottom: 3rem !important; }
.rrs-record-card {
  background: var(--navy-light); padding: 2rem; position: relative;
  border-bottom: 3px solid transparent; transition: border-color 0.3s, transform 0.3s;
}
.rrs-record-card:hover { border-bottom-color: var(--red); transform: translateY(-3px); }
.rrs-record-card h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; letter-spacing: 0.06em; color: var(--white); margin-bottom: 0.5rem; }
.rrs-record-card p { font-family: var(--font-body); font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.5; }
.rrs-record-card p.rrs-dl { margin-top: 1rem !important; }
.rrs-record-card p.rrs-dl a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--red-glow); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.rrs-record-card p.rrs-dl a::before {
  content: ''; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--rrs-dl) center / contain no-repeat; mask: var(--rrs-dl) center / contain no-repeat;
}
.rrs-record-card p.rrs-dl a::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
.rrs-record-card, .rrs-resource-link { --rrs-dl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E"); }
.rrs-records-notes { background: rgba(192,57,43,0.08); border-left: 3px solid var(--red); padding: 1.5rem 2rem; }
.rrs-records-notes h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; letter-spacing: 0.08em; color: var(--white); margin-bottom: 0.8rem; }
.rrs-records-notes ul { list-style: none; padding: 0; }
.rrs-records-notes li {
  font-family: var(--font-body); font-size: 0.9rem; color: rgba(255,255,255,0.7);
  line-height: 1.6; padding: 0.3rem 0 0.3rem 1rem; position: relative; margin: 0;
}
.rrs-records-notes li::before { content: ''; position: absolute; left: 0; top: 0.7rem; width: 4px; height: 4px; background: var(--red); border-radius: 50%; }

/* ========== CONTACT ========== */
.rrs-contact-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; margin-top: 2.5rem !important; }
.rrs-contact-card { padding: 2rem; border: 1px solid var(--gray-200); transition: border-color 0.3s; }
.rrs-contact-card:hover { border-color: var(--red); }
.rrs-contact-card h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; letter-spacing: 0.06em; color: var(--navy); margin-bottom: 0.3rem; text-transform: uppercase; }
.rrs-contact-card p.rrs-contact-role {
  font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); font-weight: 600; margin-bottom: 1rem;
}
.rrs-contact-card p { font-family: var(--font-body); font-size: 0.95rem; color: var(--gray-600); line-height: 1.7; }
.rrs-contact-card a { color: var(--navy); font-weight: 500; transition: color 0.2s; }
.rrs-contact-card a:hover { color: var(--red); }
p.rrs-hours-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 0.8rem !important;
  padding: 6px 12px; background: rgba(192,57,43,0.08); border: 1px solid rgba(192,57,43,0.15);
  border-radius: 4px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  color: var(--red); letter-spacing: 0.04em; line-height: 1.4;
}
p.rrs-hours-badge::before {
  content: ''; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rrs-map-wrap { margin-top: 2.5rem; border: 1px solid var(--gray-200); height: 300px; position: relative; background: var(--gray-200); }
.rrs-map-wrap::before {
  content: 'Loading map\2026'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--gray-600); z-index: 0;
}
.rrs-map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; position: relative; z-index: 1; }

/* ========== RESOURCES ========== */
.rrs-resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2.5rem !important; }
.rrs-resource-link {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.5rem; position: relative;
  border: 1px solid var(--gray-200); transition: border-color 0.3s, transform 0.2s;
}
.rrs-resource-link:hover { border-color: var(--red); transform: translateY(-2px); }
.rrs-resource-link .rrs-icon { width: 40px; height: 40px; background: var(--navy); border-radius: 4px; }
.rrs-resource-link .rrs-icon svg { width: 20px; height: 20px; }
.rrs-resource-link h4 { font-family: var(--font-display); font-weight: 400; font-size: 1rem; letter-spacing: 0.06em; color: var(--navy); margin-bottom: 0.15rem; }
.rrs-dark .rrs-resource-link h4, .rrs-dark .rrs-resource-link h4 a { color: var(--white); }
.rrs-resource-link h4 a { color: inherit; }
.rrs-resource-link h4 a::after { content: ''; position: absolute; inset: 0; }
.rrs-resource-link p { font-family: var(--font-body); font-size: 0.8rem; color: var(--gray-600); line-height: 1.4; }
.rrs-dark .rrs-resource-link p { color: rgba(255,255,255,0.6); }

/* ========== DONATE ========== */
.rrs-donate { background: var(--cream); padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 4rem); text-align: center; margin: 0 !important; }
.rrs-donate .rrs-container { max-width: 700px; }
.rrs-donate .rrs-icon { width: 64px; height: 64px; background: var(--navy); margin: 0 auto 1.5rem; border-radius: 50%; }
.rrs-donate .rrs-icon svg { width: 28px; height: 28px; }
.rrs-donate h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: 0.04em; color: var(--navy); margin: 0 0 1rem; line-height: normal; }
.rrs-donate p.rrs-donate-text { font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.8; color: var(--gray-600); margin: 0 0 1.5rem; }
.rrs-donate-address {
  display: inline-block; background: var(--white); padding: 1.2rem 2rem; border-left: 3px solid var(--red);
  text-align: left; font-family: var(--font-body); font-size: 0.95rem; color: var(--navy); line-height: 1.7;
}
.rrs-donate-address p { margin: 0; }
.rrs-donate-address p.rrs-donate-heading { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.1em; margin-bottom: 0.3rem; }

/* ========== FOOTER (template part) ========== */
.rrs-footer {
  background: var(--navy); color: var(--white);
  padding: 4rem clamp(1.5rem, 6vw, 4rem) 2rem;
  border-top: 3px solid var(--red);
  margin: 0 !important;
}
.rrs-footer-inner { max-width: 1200px; margin: 0 auto 3rem !important; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.rrs-footer-brand figure { margin: 0 0 0.5rem !important; }
.rrs-footer-brand img { height: 50px !important; width: auto !important; border-radius: 4px; }
.rrs-footer-brand p { font-family: var(--font-body); font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-top: 0.8rem !important; max-width: 320px; }
.rrs-footer h5 { font-family: var(--font-display); font-weight: 400; font-size: 1rem; letter-spacing: 0.15em; margin: 0 0 1rem; color: var(--white); }
ul.rrs-footer-links { list-style: none; padding: 0; margin: 0; }
ul.rrs-footer-links li { margin: 0 0 0.5rem; font-family: var(--font-body); font-size: 0.9rem; color: rgba(255,255,255,0.5); }
ul.rrs-footer-links a { font-family: var(--font-body); font-size: 0.9rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
ul.rrs-footer-links a:hover { color: var(--white); }
.rrs-footer-social { display: flex; gap: 12px; margin-top: 1rem; }
.rrs-footer-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.06); transition: background 0.3s; color: var(--white); }
.rrs-footer-social a:hover { background: var(--red); }
.rrs-footer-social svg { width: 18px; height: 18px; fill: var(--white); }
.rrs-footer-bottom {
  max-width: 1200px; margin: 0 auto !important; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-body); font-size: 0.8rem; color: rgba(255,255,255,0.35);
}
.rrs-footer-bottom p { margin: 0; }
.rrs-footer-bottom a { color: inherit; text-decoration: underline; }

/* ========== INNER PAGES ========== */
.rrs-page-header { background: var(--navy); padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 4rem); border-bottom: 4px solid var(--red); margin: 0 !important; }
.rrs-page-header h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: 0.04em; color: var(--white); max-width: 900px; margin: 0 auto !important; line-height: 1; }
.rrs-page-header p, .rrs-page-header .wp-block-post-date, .rrs-page-header .wp-block-post-terms {
  font-family: var(--font-serif); font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 900px; margin: 0.8rem auto 0 !important;
}
.rrs-page-header a { color: var(--red-glow); }
.rrs-prose { max-width: 900px; margin: 0 auto !important; padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 6vw, 4rem); }
.rrs-prose h2 {
  font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; letter-spacing: 0.06em; color: var(--navy);
  margin: 3rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--gray-200);
}
.rrs-prose > h2:first-child, .rrs-prose .wp-block-post-content > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.rrs-prose h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; letter-spacing: 0.06em; color: var(--navy); margin: 2rem 0 0.8rem; }
.rrs-prose p { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.8; color: var(--gray-600); margin: 0 0 1rem; }
.rrs-prose ul, .rrs-prose ol { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.8; color: var(--gray-600); margin: 0 0 1rem 1.5rem; padding: 0; }
.rrs-prose li { margin-bottom: 0.4rem; }
.rrs-prose a { color: var(--red); font-weight: 600; }
.rrs-prose p.last-updated { font-family: var(--font-body); font-size: 0.85rem; font-style: italic; margin-bottom: 2rem; }
.rrs-wide-content { max-width: 1200px; }
.rrs-pagination { max-width: 1200px; margin: 2rem auto 0 !important; font-family: var(--font-body); }
.rrs-archive { padding-top: clamp(2rem, 4vw, 4rem); padding-bottom: clamp(2rem, 4vw, 4rem); }

/* ========== SCROLL REVEAL (only when JS is running) ========== */
.rrs-js .rrs-reveal, .rrs-js .rrs-timeline-item {
  opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease;
}
.rrs-js .rrs-reveal.visible, .rrs-js .rrs-timeline-item.visible { opacity: 1; transform: translateY(0); }
.editor-styles-wrapper .rrs-reveal, .editor-styles-wrapper .rrs-timeline-item { opacity: 1 !important; transform: none !important; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .rrs-about-grid, .rrs-employment-grid, .rrs-contact-grid, .rrs-footer-inner { grid-template-columns: 1fr; }
  .rrs-footer-inner { gap: 2rem; }
  .rrs-timeline::before { left: 1rem; }
  .rrs-timeline-item:nth-child(odd), .rrs-timeline-item:nth-child(even) { padding-right: 0; padding-left: 3rem; text-align: left; }
  .rrs-timeline-item::before { left: 1rem; }
  .rrs-footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 600px) {
  .rrs-stats-grid, .rrs-records-grid { grid-template-columns: 1fr; }
  h1.rrs-hero-title { font-size: 3rem; }
}

/* ========== EDITOR ONLY ========== */
/* Fixed elements would cover the canvas in the editor. */
.editor-styles-wrapper .rrs-nav,
.editor-styles-wrapper .rrs-emergency-banner { position: relative; top: 0; }
.editor-styles-wrapper .wp-block-cover.rrs-hero { margin-top: 0 !important; height: auto; min-height: 600px !important; }
.editor-styles-wrapper .rrs-main-inner { padding-top: 0; }

/* Inner page extras */
.rrs-page-header p.rrs-news-date { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-glow); margin: 0 auto 0.8rem !important; }
.rrs-prose p.rrs-back-link { font-family: var(--font-body); font-size: 0.9rem; margin-top: 2rem; }
.rrs-pagination a, .rrs-pagination span { margin-right: 0.75rem; color: var(--navy); }
