:root {
   --bg: #f4f6f9;
   --surface: #ffffff;
   --text: #1a2332;
   --text-muted: #5c6b7f;
   --accent: #0d5cab;
   --accent-hover: #094a8f;
   --accent-soft: rgba(13, 92, 171, 0.08);
   --border: #e2e8f0;
   --radius: 12px;
   --radius-lg: 20px;
   --shadow: 0 1px 3px rgba(26, 35, 50, 0.06), 0 8px 24px rgba(26, 35, 50, 0.06);
   --max-wide: 880px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
   margin: 0;
   font-family: "DM Sans", system-ui, -apple-system, sans-serif;
   font-size: 1.0625rem;
   line-height: 1.65;
   color: var(--text);
   background: var(--bg);
   -webkit-font-smoothing: antialiased;
}

a {
   color: var(--accent);
   text-decoration-thickness: 1px;
   text-underline-offset: 3px;
   transition: color 0.15s ease;
}

a:hover { color: var(--accent-hover); }

a:focus-visible {
   outline: 2px solid var(--accent);
   outline-offset: 3px;
   border-radius: 2px;
}

.site-header {
   border-bottom: 1px solid var(--border);
   padding: 0.875rem 1.5rem;
   position: sticky;
   top: 0;
   z-index: 100;
   backdrop-filter: blur(8px);
   background: rgba(255, 255, 255, 0.92);
}

.site-header-inner {
   max-width: var(--max-wide);
   margin: 0 auto;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 1rem;
   flex-wrap: wrap;
}

.site-header .brand {
   font-weight: 600;
   font-size: 0.9375rem;
   color: var(--text);
   text-decoration: none;
}

.site-header .brand:hover { color: var(--accent); }

.rac-nav-links {
   display: flex;
   gap: 1.25rem;
   flex-wrap: wrap;
   font-size: 0.875rem;
}

.rac-nav-links a {
   color: var(--text-muted);
   text-decoration: none;
   font-weight: 500;
}

.rac-nav-links a:hover { color: var(--accent); }

.rac-nav-links a.is-active {
   color: var(--accent);
   font-weight: 600;
}

.rac-subnav-bar {
   border-bottom: 1px solid var(--border);
   background: var(--surface);
   padding: 0.5rem 1.5rem;
}

.rac-subnav-bar .rac-nav-links {
   max-width: var(--max-wide);
   margin: 0 auto;
}

.hero {
   max-width: var(--max-wide);
   margin: 0 auto;
   padding: 2.5rem 1.5rem 2rem;
}

.hero h1 {
   font-family: "Fraunces", Georgia, serif;
   font-size: clamp(2rem, 5vw, 2.75rem);
   font-weight: 700;
   line-height: 1.15;
   letter-spacing: -0.02em;
   margin: 0 0 0.75rem;
   color: var(--text);
}

.hero-lead {
   font-size: 1.125rem;
   color: var(--text-muted);
   max-width: 52ch;
   margin: 0;
}

.layout {
   max-width: var(--max-wide);
   margin: 0 auto;
   padding: 0 1.5rem 4rem;
   display: grid;
   gap: 2.5rem;
}

@media (min-width: 960px) {
   .layout.with-sidebar {
      grid-template-columns: 1fr 260px;
      align-items: start;
   }
}

.main { min-width: 0; }

.card {
   background: var(--surface);
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow);
   border: 1px solid var(--border);
   padding: 1.75rem 1.75rem 1.5rem;
   margin-bottom: 1.5rem;
}

.card h2 {
   font-family: "Fraunces", Georgia, serif;
   font-size: 1.35rem;
   font-weight: 700;
   margin: 0 0 1rem;
   padding-bottom: 0.75rem;
   border-bottom: 2px solid var(--accent-soft);
   color: var(--text);
}

.card h3 {
   font-size: 0.8125rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.06em;
   color: var(--accent);
   margin: 1.5rem 0 0.5rem;
}

.card h3:first-of-type { margin-top: 0; }

.card p,
.card li {
   color: var(--text-muted);
   margin: 0 0 0.875rem;
}

.criteria-list {
   margin: 0.5rem 0 1rem;
   padding-left: 1.25rem;
   color: var(--text-muted);
}

.criteria-list li { margin-bottom: 0.5rem; padding-left: 0.35rem; }

.tool-card {
   background: var(--surface);
   border-radius: var(--radius-lg);
   border: 1px solid var(--border);
   overflow: hidden;
   margin-bottom: 2rem;
   box-shadow: var(--shadow);
}

.tool-card-header {
   background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(13, 92, 171, 0.04) 100%);
   padding: 1.5rem 1.75rem;
   border-bottom: 1px solid var(--border);
}

.tool-card-header h2 {
   font-family: "Fraunces", Georgia, serif;
   font-size: 1.25rem;
   font-weight: 700;
   margin: 0 0 0.35rem;
   color: var(--text);
   border: none;
   padding: 0;
}

.tool-card-header .tag {
   display: inline-block;
   font-size: 0.75rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.05em;
   color: var(--accent);
   background: var(--surface);
   padding: 0.25rem 0.6rem;
   border-radius: 6px;
   border: 1px solid var(--border);
}

.tool-card-body { padding: 1.5rem 1.75rem 1.75rem; }

.tool-card-body h3 {
   font-size: 0.8125rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.06em;
   color: var(--accent);
   margin: 1.25rem 0 0.5rem;
}

.tool-card-body h3:first-child { margin-top: 0; }

.tool-card-body p,
.tool-card-body li {
   color: var(--text-muted);
   margin: 0 0 0.875rem;
}

.btn-primary {
   display: inline-flex;
   align-items: center;
   gap: 0.4rem;
   margin-top: 0.5rem;
   padding: 0.65rem 1.15rem;
   font-family: inherit;
   font-size: 0.9375rem;
   font-weight: 600;
   color: #fff;
   background: var(--accent);
   border: none;
   border-radius: var(--radius);
   text-decoration: none;
   cursor: pointer;
   transition: background 0.15s ease;
}

.btn-primary:hover {
   background: var(--accent-hover);
   color: #fff;
}

.doc-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }

.doc-list li { margin-bottom: 0.5rem; }

.doc-list a { font-weight: 500; }

.sidebar { position: sticky; top: 4.5rem; }

.toc {
   background: var(--surface);
   border-radius: var(--radius);
   border: 1px solid var(--border);
   padding: 1.25rem;
   box-shadow: var(--shadow);
}

.toc h2 {
   font-size: 0.75rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.08em;
   color: var(--text-muted);
   margin: 0 0 0.75rem;
}

.toc ul { list-style: none; margin: 0; padding: 0; }

.toc a {
   display: block;
   padding: 0.4rem 0.35rem;
   font-size: 0.9rem;
   font-weight: 500;
   color: var(--text);
   text-decoration: none;
   border-radius: 6px;
}

.toc a:hover {
   background: var(--accent-soft);
   color: var(--accent);
}

.site-footer {
   max-width: var(--max-wide);
   margin: 0 auto;
   padding: 2rem 1.5rem 3rem;
   border-top: 1px solid var(--border);
   font-size: 0.875rem;
   color: var(--text-muted);
   text-align: center;
}

.site-footer a { font-weight: 500; }

/* Access centers */
.rac-jump {
   display: flex;
   flex-wrap: wrap;
   gap: 0.5rem 1rem;
   margin: 1rem 0 0;
   padding: 0;
   list-style: none;
}

.rac-jump a {
   font-weight: 500;
   font-size: 0.9375rem;
}

.rac-location-card {
   background: var(--surface);
   border-radius: var(--radius-lg);
   border: 1px solid var(--border);
   box-shadow: var(--shadow);
   padding: 1.75rem;
   margin-bottom: 2rem;
   scroll-margin-top: 5.5rem;
}

.rac-location-card h2 {
   font-family: "Fraunces", Georgia, serif;
   font-size: 1.35rem;
   font-weight: 700;
   margin: 0 0 1.25rem;
   padding-bottom: 0.75rem;
   border-bottom: 2px solid var(--accent-soft);
   color: var(--text);
}

.rac-two-col {
   display: grid;
   gap: 1.5rem;
}

@media (min-width: 768px) {
   .rac-two-col { grid-template-columns: 1fr 1fr; }
}

.rac-location-card img {
   max-width: 100%;
   height: auto;
   border-radius: 8px;
   border: 1px solid var(--border);
}

.rac-location-card h3 {
   font-size: 0.8125rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.06em;
   color: var(--accent);
   margin: 0 0 0.5rem;
}

.rac-location-card .rac-body {
   color: var(--text-muted);
   font-size: 0.9875rem;
   line-height: 1.65;
}

.rac-location-card .rac-body p { margin: 0 0 0.875rem; }

.rac-hours { margin: 0 0 1rem; color: var(--text-muted); line-height: 1.75; }

.back-link {
   display: inline-block;
   margin-top: 0.5rem;
   font-weight: 600;
   font-size: 1rem;
}

.layout.rac-full { display: block; max-width: var(--max-wide); }

@media (max-width: 959px) {
   .sidebar { display: none; }
}
