:root {
  --ras-bg: #F7F6F3;
  --ras-surface: #FFFFFF;
  --ras-ink: #141414;
  --ras-muted: #6B675F;
  --ras-primary: #0B3A63;
  --ras-accent: #0B3A63;
  --ras-alert: #9C2F2F;
  --ras-border: #E4E1DA;
  --ras-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--ras-bg); color: var(--ras-ink); font-family: var(--ras-font); }

/* Hide Astra chrome that this plugin replaces */
/* RETIRED 2026-10-05 (Change Set A): Astra is now the canonical header/footer. */
/* #masthead, .ast-mobile-header, footer#colophon, .site-footer { display: none !important; } */

/* Header */
#ras-header { background: var(--ras-primary); color: #fff; position: sticky; top: 0; z-index: 999; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.ras-header__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 0 16px; min-height: 56px; flex-wrap: wrap; }
.ras-header__brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; min-height: 44px; }
.ras-header__mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: #fff; color: var(--ras-primary); font-weight: 800; }
.ras-header__nav { flex: 1 1 auto; }
.ras-nav { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.ras-nav li { margin: 0; }
.ras-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: #fff; text-decoration: none; border-radius: 8px; font-size: .95rem; }
.ras-nav a:hover { background: rgba(255,255,255,.12); }
.ras-header__search { display: flex; }
.ras-header__search form { display: flex; align-items: center; margin: 0; }
.ras-header__search .search-field { min-height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px 0 0 8px; padding: 0 12px; background: #fff; color: var(--ras-ink); font-size: .95rem; min-width: 180px; font-family: var(--ras-font); }
.ras-header__search .search-submit { min-height: 44px; border: 0; border-radius: 0 8px 8px 0; background: var(--ras-accent); color: #fff; padding: 0 14px; cursor: pointer; font-weight: 600; font-family: var(--ras-font); }
.ras-nav-toggle { display: none; }
.ras-nav-toggle-btn { display: none; }

/* Footer */
#ras-footer { background: #0e2a44; color: #dbe4ec; margin-top: 48px; padding: 32px 16px 16px; }
.ras-footer__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 24px; }
.ras-footer__wordmark { font-weight: 800; font-size: 1.25rem; color: #fff; margin-bottom: 8px; }
.ras-footer__about { margin: 0; line-height: 1.5; font-size: .95rem; }
.ras-footer__title { font-weight: 700; color: #fff; margin-bottom: 8px; text-transform: uppercase; font-size: .82rem; letter-spacing: .05em; }
.ras-footer__col ul { list-style: none; margin: 0; padding: 0; }
.ras-footer__col li { margin: 0 0 6px; }
.ras-footer__col a { color: #dbe4ec; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.ras-footer__col a:hover { color: #fff; text-decoration: underline; }
.ras-footer__legal { max-width: 1200px; margin: 24px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; color: #b8c4cf; }
.ras-footer__legal p { margin: 0 0 6px; }

/* Sections + cards */
.ras-section { margin: 0 auto; max-width: 1200px; padding: 0 16px 8px; }
.ras-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 12px; }
.ras-section__title { font-size: 1.3rem; font-weight: 700; margin: 0; color: var(--ras-ink); line-height: 1.2; }
.ras-section__more { color: var(--ras-accent); text-decoration: none; font-weight: 600; font-size: .9rem; min-height: 44px; display: inline-flex; align-items: center; }
.ras-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ras-card { background: var(--ras-surface); border: 1px solid var(--ras-border); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ras-card__cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ras-accent); }
.ras-card__title { font-size: 1.02rem; margin: 0; line-height: 1.3; }
.ras-card__title a { color: var(--ras-ink); text-decoration: none; }
.ras-card__title a:hover { color: var(--ras-accent); }
.ras-card__date { font-size: .85rem; color: var(--ras-muted); }
.ras-empty { color: var(--ras-muted); }

/* How to read a notice */
.ras-howto { max-width: 1200px; margin: 0 auto; padding: 0 16px 8px; }
.ras-howto__list { margin: 12px 0 0; padding-left: 20px; }
.ras-howto__list li { margin-bottom: 8px; line-height: 1.5; }

@media (min-width: 640px) {
  .ras-cards { grid-template-columns: repeat(2, 1fr); }
  .ras-footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .ras-cards { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile nav */
@media (max-width: 860px) {
  .ras-nav-toggle-btn { display: flex; flex-direction: column; gap: 5px; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; }
  .ras-nav-toggle-btn span { display: block; width: 22px; height: 2px; background: #fff; }
  .ras-header__nav, .ras-header__search { display: none; flex-basis: 100%; }
  .ras-nav-toggle:checked ~ .ras-header__nav, .ras-nav-toggle:checked ~ .ras-header__search { display: block; }
  .ras-nav { flex-direction: column; }
  .ras-nav a { width: 100%; }
  .ras-header__search form { width: 100%; }
  .ras-header__search .search-field { flex: 1; min-width: 0; }
}
