:root {
  --green: #63bb1a;
  --cyan: #0b7060;
  --charcoal: #2b2b2b;
  --offwhite: #f8f9fa;
  --line: #e4e4e7;
  --muted: #626765;
  --forest: #153f35;
  --green-action: #3b7927;
  --green-action-hover: #316524;
  --teal-hover: #084f43;
  --link-hover: var(--green-action-hover);
  --selected-fill: #6bbe00;
  --selected-fill-hover: #61ad00;
  --on-dark-accent: #b6e48d;
  --action-border: #6e8077;
  --action-tint: #e7f2ed;
  --pill-radius: 999px;
  --focus-color: var(--cyan);
}

.on-dark {
  --focus-color: var(--on-dark-accent);
}

:is(a[href], button, select, input, summary):focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: var(--pill-radius);
  text-align: center;
  font-size: .875rem;
  line-height: 1.5;
  font-weight: 800;
  white-space: nowrap;
}

.btn-green {
  background: var(--green-action);
  color: white;
}

.btn-green:is(:hover, :focus-visible) {
  background: var(--green-action-hover);
}

.btn-cyan {
  background: var(--cyan);
  color: white;
}

.btn-cyan:is(:hover, :focus-visible) {
  background: var(--teal-hover);
}

.on-dark :is(.btn-green, .btn-cyan) {
  border-color: var(--on-dark-accent);
}

.btn-outline {
  border-color: var(--action-border);
  background: white;
  color: var(--cyan);
}

.btn-outline:is(:hover, :focus-visible) {
  border-color: var(--teal-hover);
  background: var(--action-tint);
  color: var(--teal-hover);
}

.btn-glass {
  background: var(--forest);
  border-color: white;
  color: white;
}

.btn-glass:is(:hover, :focus-visible) {
  background: var(--teal-hover);
}

.search-row input::placeholder {
  color: var(--muted);
  opacity: 1;
}

:is(.filter, .ministry-filters button) {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--action-border);
  border-radius: var(--pill-radius);
  background: white;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 700;
}

:is(.filter, .ministry-filters button):is(:hover, :focus-visible) {
  border-color: var(--link-hover);
  background: var(--action-tint);
  color: var(--link-hover);
}

:is(.filter, .ministry-filters button)[aria-pressed="true"] {
  border-color: var(--green-action-hover);
  background: var(--selected-fill);
  color: var(--charcoal);
  font-weight: 800;
}

:is(.filter, .ministry-filters button)[aria-pressed="true"]:hover {
  background: var(--selected-fill-hover);
}

:is(.language-switch, .drawer-language) {
  border-radius: var(--pill-radius);
}

:is(.language-switch, .drawer-language) a {
  border-radius: var(--pill-radius);
  color: var(--muted);
}

:is(.language-switch, .drawer-language) a:is(:hover, :focus-visible) {
  background: var(--action-tint);
  color: var(--link-hover);
}

:is(.language-switch, .drawer-language) a[aria-current="true"] {
  background: var(--selected-fill);
  color: var(--charcoal);
  font-weight: 800;
}

:is(.language-switch, .drawer-language) a:focus-visible {
  outline-color: var(--cyan);
  outline-offset: -2px;
}

:is(.language-switch, .drawer-language) a[aria-current="true"]:focus-visible {
  outline-color: var(--charcoal);
  outline-offset: -4px;
}

:is(.language-switch, .drawer-language) a[aria-current="true"]:hover {
  background: var(--selected-fill-hover);
}

:where(.primary-nav, .section-links) > a:not(.btn)[aria-current] {
  color: var(--link-hover);
  font-weight: 800;
}

:where(.primary-nav) > a:not(.btn):is(:hover, :focus-visible),
:is(.text-link, .source-link, .back-link, .report-link, .reset-button):is(:hover, :focus-visible),
:where(.breadcrumb, .ministry-breadcrumb, .missions-breadcrumb, .section-links, .ministry-section-nav,
       .give-jump, .planner-note, .welcome-strip, .congregation-link, .event-bottom, .event-body h3,
       .contact-card, .ministry-quick-links, .ministry-announcement-empty, .missions-path, .missions-resource-links, .missions-contact, .missions-trip-empty p,
       .ministry-faq, .prose, .article-body, .content-block)
  :is(a[href], .event-bottom button):not(.btn):is(:hover, :focus-visible),
.campus-services .congregation-link:is(:hover, :focus-visible) {
  color: var(--link-hover);
}

:where(.footer, .drawer)
  a[href]:not(.btn, .logo, [data-language], [aria-label="FBCC home"]):is(:hover, :focus-visible) {
  color: var(--selected-fill);
}

:where(.toast, .video-caption, .hero)
  a[href]:not(.btn, .logo, [data-language], [aria-label="FBCC home"]):is(:hover, :focus-visible),
:is(.campus-inline-link, .schedule-location):is(:hover, :focus-visible) {
  color: var(--on-dark-accent);
}

.btn {
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
