:root {
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --color-teal: #0f766e;
  --color-teal-deep: #0d5c56;
  --color-teal-muted: #5eead4;
  --color-accent: #6366f1;
  --color-charcoal: #1c1917;
  --color-muted-fg: #57534e;
  --color-slate: #4f46e5;
  --color-bg: #f5f5f4;
  --color-bg-elevated: #fafaf9;
  --color-card: #ffffff;
  --color-border: rgba(28, 25, 23, 0.08);
  --color-border-strong: rgba(28, 25, 23, 0.14);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-xs: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-sm: 0 2px 8px rgba(28, 25, 23, 0.06);
  --shadow: 0 4px 6px -1px rgba(28, 25, 23, 0.06),
    0 12px 28px -8px rgba(15, 118, 110, 0.12);
  --shadow-header: 0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 24px rgba(0, 0, 0, 0.12);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-charcoal);
  background-color: var(--color-bg);
  background-image: radial-gradient(
      ellipse 100% 80% at 50% -30%,
      rgba(15, 118, 110, 0.09),
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 50% at 100% 0%,
      rgba(99, 102, 241, 0.06),
      transparent 45%
    );
  min-height: 100vh;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
}

::selection {
  background: rgba(15, 118, 110, 0.18);
  color: var(--color-charcoal);
}

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

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

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

.floating-paws {
  --floating-paws-content-max: 1120px;
  --floating-paws-content-pad: clamp(1rem, 4vw, 1.5rem);
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-paws--gutter-only .floating-paws__gutter {
  position: absolute;
  top: 0;
  bottom: 0;
  width: max(
    0px,
    calc((100vw - var(--floating-paws-content-max) - 2 * var(--floating-paws-content-pad)) / 2)
  );
  overflow: hidden;
}

.floating-paws--gutter-only .floating-paws__gutter--left {
  left: 0;
}

.floating-paws--gutter-only .floating-paws__gutter--right {
  right: 0;
}

.floating-paws__paw {
  position: absolute;
  left: var(--x, 50%);
  bottom: -12%;
  width: var(--size, 28px);
  height: var(--size, 28px);
  opacity: var(--opacity, 0.11);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: rotate(var(--rotate, 0deg));
  animation: floating-paw-rise var(--duration, 26s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}

.floating-paws__paw--dog {
  background-image: url("/assets/images/paw-dog.svg");
}

.floating-paws__paw--cat {
  background-image: url("/assets/images/paw-cat.svg");
}

@keyframes floating-paw-rise {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--rotate, 0deg));
    opacity: 0;
  }
  6% {
    opacity: var(--opacity, 0.11);
  }
  94% {
    opacity: var(--opacity, 0.11);
  }
  100% {
    transform: translate3d(var(--drift, 10px), -125vh, 0) rotate(var(--rotate, 0deg));
    opacity: 0;
  }
}

/* No side margin on narrow viewports — hide rather than overlap content. */
@media (max-width: 1180px) {
  .floating-paws--gutter-only {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-paws {
    display: none;
  }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem) 3.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fafaf9;
  background: linear-gradient(
    135deg,
    #0f766e 0%,
    #0d5c56 45%,
    #134e4a 100%
  );
  box-shadow: var(--shadow-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@supports (backdrop-filter: blur(12px)) {
  .site-header {
    background: linear-gradient(
      135deg,
      rgba(15, 118, 110, 0.97) 0%,
      rgba(13, 92, 86, 0.98) 50%,
      rgba(19, 78, 74, 0.97) 100%
    );
    backdrop-filter: blur(12px);
  }
}

.site-header .inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem clamp(1rem, 4vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

/* Logged-in applicant / staff / vet: portal strip under public header */
.portal-nav-wrap {
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdfa 55%, #f5f5f4 100%);
  border-bottom: 1px solid var(--color-border-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.portal-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.45rem clamp(1rem, 4vw, 1.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.portal-nav__badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-teal-deep);
  background: rgba(15, 118, 110, 0.12);
  border: 1px solid rgba(15, 118, 110, 0.2);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.portal-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
  flex: 1 1 12rem;
  min-width: 0;
}

.portal-nav__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
}

@media (min-width: 720px) {
  .portal-nav__end {
    margin-left: auto;
  }
}

.portal-nav__link {
  display: inline-block;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-teal-deep);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out),
    border-color 0.15s var(--ease-out);
}

.portal-nav__link:hover {
  color: var(--color-accent);
  background: rgba(99, 102, 241, 0.08);
}

.portal-nav__link--current {
  color: #fff;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-deep) 100%);
  border-color: rgba(13, 92, 86, 0.35);
  box-shadow: 0 1px 2px rgba(15, 118, 110, 0.25);
}

.portal-nav__link--current:hover {
  color: #fff;
  filter: brightness(1.05);
}

.portal-nav__link--logout {
  border-color: rgba(28, 25, 23, 0.12);
  background: rgba(255, 255, 255, 0.75);
}

.portal-nav__link--logout:hover {
  background: rgba(254, 242, 242, 0.95);
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.2);
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: opacity 0.15s var(--ease-out);
}

.brand:hover {
  opacity: 0.92;
}

.brand__logo {
  display: block;
  flex-shrink: 0;
  width: clamp(2.75rem, 8vw, 3.25rem);
  height: clamp(2.75rem, 8vw, 3.25rem);
  object-fit: contain;
  border-radius: 0.4rem;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.brand__copy strong {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand__tagline {
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.88;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .brand__tagline {
    display: none;
  }
}

nav.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  margin-left: auto;
}

nav.top a {
  color: rgba(250, 250, 249, 0.92);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}

nav.top a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-xs), var(--shadow);
  border: 1px solid var(--color-border);
}

.card--muted {
  background: rgba(255, 255, 255, 0.72);
  border-style: dashed;
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow: var(--shadow-xs);
}

.card--nested {
  margin: 1rem 0;
  border-radius: var(--radius);
}

.card--pre {
  white-space: pre-wrap;
}

h1,
h2,
h3 {
  color: var(--color-teal-deep);
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.65rem, 4vw, 2.1rem);
}

h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  margin-top: 1.75rem;
}

h3 {
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.62rem 1.15rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out),
    filter 0.12s var(--ease-out), background 0.12s var(--ease-out);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(180deg, #14b8a6 0%, var(--color-teal) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 2px 8px rgba(15, 118, 110, 0.35);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 4px 14px rgba(15, 118, 110, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-teal-deep);
  border: 1px solid rgba(15, 118, 110, 0.2);
  box-shadow: var(--shadow-xs);
}

.btn-ghost:hover:not(:disabled) {
  background: #fff;
  border-color: rgba(15, 118, 110, 0.35);
}

.btn-danger {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.3);
}

.btn-danger:hover:not(:disabled) {
  filter: brightness(1.05);
}

.btn-google {
  width: 100%;
  max-width: 520px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-google:hover:not(:disabled) {
  background: #f9fafb;
  border-color: rgba(28, 25, 23, 0.22);
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.85rem 0 0.4rem;
  color: var(--color-charcoal);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  max-width: 520px;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  font: inherit;
  background: var(--color-bg-elevated);
  color: var(--color-charcoal);
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(15, 118, 110, 0.25);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: #f5f5f4;
}

.flash {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  border: 1px solid var(--color-border-strong);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.flash--success {
  background: linear-gradient(
    135deg,
    rgba(204, 251, 241, 0.95),
    rgba(236, 253, 245, 0.98)
  );
  border-color: rgba(15, 118, 110, 0.22);
  color: var(--color-charcoal);
}

.flash--error {
  background: linear-gradient(
    135deg,
    rgba(254, 242, 242, 0.98),
    rgba(255, 247, 247, 0.99)
  );
  border-color: rgba(220, 38, 38, 0.22);
  color: var(--color-charcoal);
}

.flash--warning {
  background: linear-gradient(
    135deg,
    rgba(254, 252, 232, 0.98),
    rgba(255, 251, 235, 0.99)
  );
  border-color: rgba(217, 119, 6, 0.25);
  color: var(--color-charcoal);
}

.flash--info {
  background: linear-gradient(
    135deg,
    rgba(240, 253, 250, 0.95),
    rgba(245, 245, 244, 0.98)
  );
  border-color: rgba(15, 118, 110, 0.2);
  color: var(--color-charcoal);
}

.flash--compact {
  font-size: 0.9rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mb-0 {
  margin-bottom: 0;
}

.badge {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(99, 102, 241, 0.12);
  color: var(--color-slate);
}

.badge--success {
  background: rgba(15, 118, 110, 0.12);
  color: var(--color-teal-deep);
}

.badge--danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1.25rem;
  align-items: start;
  margin-top: 1rem;
}

.contact-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.contact-sidebar {
  margin: 0;
  height: fit-content;
}

.contact-sidebar__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-sidebar__address {
  font-style: normal;
  line-height: 1.55;
  color: var(--color-muted-fg);
}

.contact-sidebar__line {
  display: block;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-sidebar {
    order: 2;
  }
}

table.simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

table.simple th,
table.simple td {
  border-bottom: 1px solid var(--color-border);
  padding: 0.65rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

table.simple th {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted-fg);
}

table.simple tbody tr {
  transition: background 0.12s var(--ease-out);
}

table.simple tbody tr:hover {
  background: rgba(15, 118, 110, 0.04);
}

.muted {
  color: var(--color-muted-fg);
  font-size: 0.9375rem;
}

.footer {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.footer .footer-meta a {
  color: var(--color-muted-fg);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.footer .footer-meta a:hover {
  color: var(--color-teal-deep);
}

.footer-uptimerobot {
  margin: 1rem 0 0;
  padding: 0;
}

.footer-uptimerobot__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-muted-fg);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-uptimerobot__link:hover {
  color: var(--color-teal-deep);
}

.footer-uptimerobot__logo {
  display: block;
  height: 20px;
  width: auto;
  max-width: min(140px, 42vw);
  flex-shrink: 0;
}

:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline-offset: 3px;
}

nav.top a:focus-visible {
  outline-color: #fff;
}

/* ——— Blog (public) ——— */
.blog-index-header h1 {
  margin-top: 0;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.blog-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
}

.blog-card-image-wrap {
  display: block;
  background: linear-gradient(
    145deg,
    rgba(15, 118, 110, 0.1),
    rgba(99, 102, 241, 0.08)
  );
}

.blog-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: middle;
}

.blog-card-body {
  padding: 1rem 1.15rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--color-muted-fg);
}

.blog-card-title {
  font-size: 1.15rem;
  margin: 0.35rem 0 0.5rem;
  line-height: 1.35;
}

.blog-card-title a {
  color: var(--color-charcoal);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--color-teal);
  text-decoration: underline;
}

.blog-card-excerpt {
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}

.blog-card-footer {
  margin: 1rem 0 0;
}

.blog-read-more {
  font-weight: 600;
  font-size: 0.92rem;
}

.blog-article {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  overflow: hidden;
}

.blog-back {
  margin: 0;
  padding: 1rem 1.25rem 0;
}

.blog-hero {
  margin: 0;
  line-height: 0;
  background: var(--color-charcoal);
}

.blog-hero-img {
  width: 100%;
  height: auto;
  max-height: min(52vh, 420px);
  object-fit: cover;
  display: block;
}

.blog-article-header {
  padding: 1.25rem 1.5rem 0.5rem;
}

.blog-article-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0.5rem 0 0.25rem;
  letter-spacing: -0.02em;
}

.blog-byline {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.blog-prose {
  padding: 1rem 1.5rem 1.75rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-charcoal);
}

.blog-article-footer {
  padding: 0 1.5rem 1.25rem;
  border-top: 1px solid var(--color-border);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

/* ——— Homepage impact stats ——— */
.impact-stats {
  margin: 1.25rem 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    rgba(15, 118, 110, 0.96) 0%,
    rgba(13, 92, 86, 0.98) 48%,
    rgba(79, 70, 229, 0.88) 100%
  );
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.impact-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 100% 0%,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.impact-stats__inner {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
}

.impact-stats__headline {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
}

.impact-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
}

.impact-stats__item {
  margin: 0;
  padding: 1rem 0.85rem;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.impact-stats__label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.impact-stats__value {
  margin: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.impact-stats__footnote {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 720px) {
  .impact-stats__grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .impact-stats__item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    text-align: left;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .impact-stats__label {
    margin: 0;
  }

  .impact-stats__value {
    font-size: 1.5rem;
  }
}

/* ——— Reviews (public + applicant form) ——— */
.reviews-page-header h1 {
  margin-top: 0;
}

.reviews-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card {
  padding: 1.15rem 1.25rem;
}

.review-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}

.review-stars {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: rgba(28, 25, 23, 0.28);
}

.review-star--on {
  color: #d97706;
}

.review-handle {
  font-weight: 600;
  color: var(--color-charcoal);
}

.review-date {
  font-size: 0.88rem;
  margin-left: auto;
}

.review-quote {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(28, 25, 23, 0.92);
}

.review-rating-fieldset {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  padding: 0.75rem 1rem 1rem;
  margin: 0 0 1rem;
}

.review-rating-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.review-rating-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.review-rating-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  cursor: pointer;
  padding: 0.35rem 0.25rem;
  border-radius: var(--radius-sm);
}

.review-rating-label:hover {
  background: rgba(15, 118, 110, 0.06);
}

.review-rating-label input {
  margin: 0;
  accent-color: var(--color-teal);
}

.review-rating-stars {
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #d97706;
}

.review-rating-stars .muted {
  color: rgba(28, 25, 23, 0.28);
}

.review-rating-num {
  font-size: 0.88rem;
  color: var(--color-muted-fg);
}

@media (min-width: 560px) {
  .review-rating-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ——— Emergency cost guides (public + staff) ——— */
.ec-header h1 {
  margin-top: 0;
}

.ec-grid {
  margin-top: 1.25rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.ec-card {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
}

.ec-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.ec-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  flex: 1;
  min-width: 12rem;
}

.ec-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.6rem;
  border-radius: 8px;
  white-space: nowrap;
}

.ec-badge--calm {
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
}

.ec-badge--soon {
  background: rgba(15, 118, 110, 0.12);
  color: var(--color-teal-deep);
}

.ec-badge--urgent {
  background: rgba(234, 88, 12, 0.14);
  color: #9a3412;
}

.ec-badge--now {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

.ec-cost {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.ec-criticality-line {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.ec-subh {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-teal-deep);
}

.ec-body {
  font-size: 0.98rem;
  line-height: 1.65;
  flex: 1;
}

.ec-updated {
  margin-top: 1rem;
}

/* ——— Public About Us ——— */
.about-page .about-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-charcoal);
}

.about-team-list {
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about-team-item {
  margin: 0;
  padding: 0;
}

.about-team-card {
  margin: 0;
}

.about-team-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
}

.about-team-photo-wrap {
  flex: 0 0 auto;
}

.about-team-photo {
  display: block;
  width: 8.5rem;
  height: 8.5rem;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.about-team-text {
  flex: 1;
  min-width: 0;
}

.about-team-name {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.about-team-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-teal-deep);
}

.about-team-bio {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 520px) {
  .about-team-row {
    flex-direction: column;
    align-items: stretch;
  }

  .about-team-photo {
    width: 100%;
    max-width: 12rem;
    height: auto;
    aspect-ratio: 1;
  }
}

.staff-edit-photo-preview-wrap {
  margin: 0.5rem 0 0;
}

.staff-edit-photo-preview {
  display: block;
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

/* Applicant application wizard — chevron progress bar */
.app-wizard {
  margin: 1.25rem 0 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
}

.app-wizard__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  min-width: 100%;
  filter: drop-shadow(0 1px 2px rgba(15, 118, 110, 0.12));
}

.app-wizard__step {
  flex: 1 1 0;
  min-width: 4.5rem;
  margin: 0;
}

.app-wizard__link {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3rem;
  padding: 0.45rem 0.55rem 0.45rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  color: var(--color-teal-deep);
  background: rgba(15, 118, 110, 0.12);
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%, 11px 50%);
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out), filter 0.15s var(--ease-out);
}

.app-wizard__step:first-child .app-wizard__link {
  padding-left: 0.5rem;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%);
}

.app-wizard__step + .app-wizard__step .app-wizard__link {
  margin-left: -9px;
}

.app-wizard__link:hover {
  filter: brightness(0.97);
  background: rgba(15, 118, 110, 0.2);
}

.app-wizard__step--done .app-wizard__link {
  background: rgba(15, 118, 110, 0.24);
}

.app-wizard__step--current {
  z-index: 2;
}

.app-wizard__step--current .app-wizard__link {
  z-index: 3;
  color: #fff;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-deep) 100%);
}

.app-wizard__step--current .app-wizard__link:hover {
  color: #fff;
  filter: brightness(1.05);
}

.app-wizard__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.28);
}

.app-wizard__step:not(.app-wizard__step--current) .app-wizard__num {
  background: rgba(15, 118, 110, 0.14);
  color: var(--color-teal-deep);
}

.app-wizard__label {
  max-width: 5.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .app-wizard__link {
    flex-direction: row;
    gap: 0.35rem;
    min-height: 2.65rem;
    padding: 0.5rem 0.75rem 0.5rem 1.1rem;
    font-size: 0.78rem;
  }

  .app-wizard__step:first-child .app-wizard__link {
    padding-left: 0.75rem;
  }

  .app-wizard__label {
    max-width: none;
    white-space: normal;
  }
}

.fpl-check {
  margin: 0.35rem 0 1rem;
  padding: 0.75rem 0.9rem;
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: opacity 0.15s var(--ease-out);
}

.fpl-check p {
  margin: 0.35rem 0;
}

.fpl-check p:first-child {
  margin-top: 0;
}

.fpl-check p:last-child {
  margin-bottom: 0;
}

.fpl-check--loading {
  opacity: 0.65;
}

.donate-unavailable {
  margin-top: 1.25rem;
  padding: 2rem 1.5rem 2.25rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    165deg,
    rgba(15, 118, 110, 0.06) 0%,
    rgba(99, 102, 241, 0.04) 55%,
    var(--color-bg-elevated) 100%
  );
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.donate-unavailable__icon {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.25rem;
  width: 4.5rem;
  height: 4.5rem;
  color: var(--color-teal);
}

.donate-unavailable__icon svg {
  width: 100%;
  height: 100%;
}

.donate-unavailable__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal-deep);
}

.donate-unavailable__title {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-charcoal);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.donate-unavailable__lead {
  margin: 0 auto 1rem;
  max-width: 32rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-muted-fg);
}

.donate-unavailable__note {
  margin: 0 auto 1.5rem;
  max-width: 30rem;
  font-size: 0.9375rem;
}

.donate-unavailable__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0;
}

.registration-closed {
  margin-top: 0.5rem;
}

.audit-table__summary {
  max-width: 28rem;
  line-height: 1.45;
}

.audit-table__link {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
}

.audit-table__details {
  max-width: 16rem;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: normal;
}

.audit-table__when {
  white-space: nowrap;
}

.donate-page .donate-zeffy {
  margin-top: 1rem;
}

.donate-zeffy__fallback[hidden] {
  display: none !important;
}

.donate-zeffy__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 450px;
  height: 450px;
}

.donate-zeffy__iframe {
  position: absolute;
  border: 0;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.cookie-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 200;
  padding: 0.75rem 1rem 1rem;
  background: rgba(28, 25, 23, 0.92);
  color: #fafaf9;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__inner {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.cookie-consent__text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-consent__text a {
  color: var(--color-teal-muted);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.app-step-heading {
  margin-top: 0.25rem;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
}

.app-step-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.app-review {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0.75rem 0 1.25rem;
}

.app-review__section {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.app-review__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.app-review__title {
  margin: 0;
  font-size: 1.05rem;
}

.app-review__edit {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: none;
}

.app-review__edit:hover {
  text-decoration: underline;
}

.app-review__subtitle {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95rem;
}

.app-review__dl {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}

.app-review__dl dt {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-muted-fg);
}

.app-review__dl dd {
  margin: 0;
}

.app-review__narrative {
  margin-top: 0.35rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.app-review__empty {
  margin: 0.25rem 0 0;
}

.app-review__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.app-review__table th,
.app-review__table td {
  padding: 0.4rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.app-review__table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-muted-fg);
}

.app-review__block + .app-review__block {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--color-border);
}

.app-review__line {
  margin: 0.5rem 0 0;
  padding: 0.55rem 0.65rem;
  background: rgba(15, 118, 110, 0.05);
  border-radius: var(--radius-sm);
}

.app-review__line-head {
  margin: 0;
  font-size: 0.9rem;
}

.app-review__line-detail {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.app-review__total {
  margin: 0.85rem 0 0;
  text-align: right;
  font-size: 0.95rem;
}

.app-review__ready {
  margin: 0.25rem 0 0.5rem;
  font-size: 1rem;
}

.app-review-checklist {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1.25rem;
  line-height: 1.65;
}

.app-review-checklist li {
  margin: 0.35rem 0;
}
