:root {
  --color-primary: #004878; /* Deep STLGS Blue */
  --color-secondary: #81b236; /* Main Brand Green (Tree Logo) */
  --color-accent-lime: #99d242; /* View Results CTA Button Bright Lime */
  --color-accent-blue: #23587b; /* Intermediate Navy Blue */
  --color-accent-burgundy: #6F1100;
  --color-accent-light-blue: #69B9C6;

  --color-primary-rgba: rgba(0, 72, 120, 0.88);
  --color-overlay-dark-40: rgba(0, 72, 120, 0.4);
  --color-modal-backdrop: rgba(0, 0, 0, 0.6);
  --color-bg-light: #eefbfd; /* Light Blue Background for Cards and Sections */
  --color-bg-modal-search: #dbeaed; /* Light Blue Background for Modal Search (slightly darker than color-bg-light) */
  --color-bg-white: #ffffff;
  --color-bg-light-gray: #f2f2f2;
  --color-bg-banner: #D3D3D3; /* Light Gray Background for Banner (slightly darker than color-bg-light-gray) */
  --color-bg-banner-light: #e7e7e7;
  --color-bg-light-btn: #f0f0f0;
  --color-bg-beige: rgba(147, 145, 134, 0.7);
  --color-bg-event-thumbnail: #2c2c2c;
  --color-pre-footer-overlay-1: rgba(0, 72, 120, .6);
  --color-pre-footer-overlay-2: rgba(29, 105, 156, .6);
  --color-white-soft: rgba(255, 255, 255, 0.2);
  --color-white-mid: rgba(255, 255, 255, 0.45);
  --color-white-strong: rgba(255, 255, 255, 0.9);
  --color-lime-focus-ring: rgba(162, 209, 73, 0.3);

  --text-dark: #222222;
  --text-strong: #333333;
  --text-muted: #555555;
  --text-subtle: #8a8a8a;
  --text-divider: #b0aeaa;

  --border-light: #e0e2df;
  --border-banner: #d2d0cb;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

  --color-overlay-preserve: rgba(105, 185, 198, 0.8);
  --color-overlay-connect: rgba(129, 178, 54, 0.8);
  --color-overlay-serve: rgba(251, 175, 23, 0.8);

  --font-serif: "ff-scala", Georgia, serif;
  --font-sans: "Roboto", system-ui, sans-serif;
  --font-sans-condensed: "Roboto Condensed", "Roboto", system-ui, sans-serif;

  --icon-2xs: 10px;
  --icon-xs: 12px;
  --icon-sm: 14px;
  --icon-md: 16px;

  font-size: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--color-bg-white);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-weight: 600;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.8rem, 3.3vw, 2.4rem);
}

h3,
h4 {
  color: var(--text-strong);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1rem;
}

p {
  color: var(--text-muted);
}

.entry-content {
	color: var(--text-dark);
}

.entry-content p {
	margin: 1em 0;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.entry-content a {
  text-decoration: underline;
}

button,
input,
select {
  font-family: var(--font-sans-condensed);
  font-size: inherit;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.u-btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  border: none;
  box-shadow: 0 4px 0 var(--color-accent-lime);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.u-btn-primary:hover {
  background-color: var(--color-accent-blue);
}

.u-btn-secondary {
  background-color: var(--color-accent-lime);
  color: var(--color-primary);
  border: none;
  box-shadow: 0 4px 0 var(--color-primary);
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.u-btn-secondary:active {
  transform: scale(0.98);
}

.u-banner-wrapper {
  background-color: var(--color-bg-banner);
  border-radius: 13px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid var(--color-accent-lime);
}

.u-banner-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-strong);
  font-weight: 700;
}

.u-link-caps {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-accent-blue);
  text-transform: uppercase;
}

.u-link-caps:hover {
  color: var(--color-primary);
}

.u-divider-muted {
  color: var(--text-divider);
  font-weight: 300;
}

.u-section-title {
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-weight: 600;
}

.u-section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.u-section-subtitle-inline {
  font-weight: normal;
  font-family: var(--font-sans);
}

.btn-solid-blue,
.btn-subscribe {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 4px;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.u-btn-secondary svg,
.btn-subscribe svg {
  width: var(--icon-sm);
  height: var(--icon-sm);
  fill: currentColor;
}

.btn-circle-arrow {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-circle-arrow-triangle {
  width: 0;
  height: 0;
  font-size: 0;
  line-height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--color-accent-lime);
  transform: translateX(1px);
}

@media (max-width: 768px) {
  h2 {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }

  .container {
    padding: 0 0.75em;
  }

  .u-banner-wrapper .u-divider-muted {
    display: none;
  }
}

/* Reusable triangle-in-circle indicator (moved from header.css for global use in accordions etc.) */
.nav-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  margin-left: 3px;
  flex-shrink: 0;
}

.nav-indicator::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--color-bg-white);
  transform: translate(-50%, -50%);
}

/* Light blue circle + white triangle variant */
.nav-indicator-light-blue {
  background-color: var(--color-accent-light-blue);
}

/* On-gray variant (for inner accordions on gray bars):
   - Circle uses --color-secondary (green)
   - Triangle cutout matches the gray background color */
.nav-indicator-on-gray {
  --_tri: var(--color-bg-banner);
}

.nav-indicator-on-gray::before {
  border-top-color: var(--_tri, var(--color-bg-banner));
}

/* Point up when the *directly containing* details is open.
   Use child combinator (> summary) so nested accordions don't inherit the open state
   from an ancestor details. */
details[open] > summary .nav-indicator::before {
  border-top: 0;
  border-bottom: 6px solid var(--color-bg-white);
  top: 51%;
  transform: translate(-50%, -68%);
}

details[open] > summary .nav-indicator-on-gray::before {
  border-top: 0;
  border-bottom: 6px solid var(--color-bg-banner);
  top: 51%;
  transform: translate(-50%, -68%);
}

details[open] > summary .nav-indicator-light-blue::before {
  border-top: 0;
  border-bottom: 6px solid var(--color-bg-white);
  top: 51%;
  transform: translate(-50%, -68%);
}

/* Content Accordion
   - Collapsed: gray bar with soft border + rounded corners (resembles previous inner style)
   - Expanded: soft outer border around the entire panel; header bar is white and blends
     into the body content (no separating bottom border on the summary)
   - Right side uses a | pipe + indicator
   - Indicator circle is solid; colors change when expanded */
.content-accordion {
  margin: 1.25rem 0;
}

.content-accordion > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-strong);
  background-color: var(--color-bg-banner);
  border: 1px solid var(--text-divider);
  border-radius: 6px;
}

.content-accordion > summary:hover {
  background-color: var( --color-bg-banner-light);
}

.content-accordion > summary::-webkit-details-marker {
  display: none;
}

.content-accordion .nav-indicator {
  margin-left: 0;
}

/* Wrapper for the | pipe + indicator (keeps them grouped at the right via flex) */
.content-accordion .accordion-chevron {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.content-accordion .indicator-pipe {
  color: var(--text-divider);
  font-weight: 400;
  font-size: 0.9em;
  line-height: 1;
}

/* Expanded state */
.content-accordion[open] {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background-color: var(--color-bg-white);
}

.content-accordion[open] > summary {
  background-color: var(--color-bg-white);
  border: none;
  border-radius: 6px 6px 0 0;
  padding-bottom: 0.35rem;
}

.content-accordion[open] .indicator-pipe {
  color: var(--border-light);
}

.content-accordion .accordion-body {
  padding: 0.4rem 0.85rem 1rem;
  font-size: 0.95rem;
}

.content-accordion .accordion-body p {
  margin: 0.6rem 0;
  color: var(--text-muted);
}

.content-accordion .accordion-body ul {
  margin: 0.5rem 0;
  padding-left: 1.1rem;
}

/* Open-state indicator color change (solid fill, different from collapsed) */
.content-accordion[open] > summary .nav-indicator-on-gray {
  background-color: var(--color-primary);
}

.content-accordion[open] > summary .nav-indicator-on-gray::before {
  border-top: 0;
  border-bottom: 6px solid var(--color-bg-white);
  top: 51%;
  transform: translate(-50%, -68%);
}

figcaption {
  font-size: 0.7rem;
  color: var(--text-subtle);
  margin-top: 0.25rem;
}
