/* County of Santa Cruz Facilities and Capital Projects.
   Colors from the County seal; see AGENTS.md for where each is used. */
:root {
  --pacific-blue: #5598c7;
  --deep-pacific: #163f5e;
  --mid-blue: #2f6e9c;
  --sky-ring-1: #7fb3d8;
  --sky-ring-2: #a9cce5;
  --pale-blue: #eaf3f9;
  --sand: #f2e6a4;
  --redwood: #4a7b43;
  --deep-forest: #263e22;
  --pale-green: #f4f8f1;
  --divider: #dce3d8;
  --body: #1b241a;
  --secondary: #55604f;
  --gold: #8a7a2e;
  --lake-blue: #3f7fae;

  --head: 'Poppins', system-ui, sans-serif;
  --text: 'Source Sans 3', system-ui, sans-serif;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--body);
  background: #fff;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  font-family: var(--head);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h2 {
  font-size: 1.75rem;
  font-weight: 700;
}
p {
  margin: 0 0 0.6em;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--deep-pacific);
  outline-offset: 3px;
}
.theme-redwoods :focus-visible {
  outline-color: var(--deep-forest);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: var(--body);
  padding: 12px 16px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}

/* Demonstration bar and Spanish review notice */
.demo,
.es-notice {
  color: #fff;
  font-size: 0.875rem;
  padding: 6px 0;
}
.theme-pacific .demo {
  background: var(--deep-pacific);
}
.theme-redwoods .demo {
  background: var(--deep-forest);
}
.es-notice {
  background: var(--body);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
}
.nav--pill a {
  color: var(--deep-pacific);
  border-radius: 999px;
}
.nav--pill a[aria-current='page'],
.nav--pill a:hover {
  background: var(--pale-blue);
}
.nav--line a {
  color: var(--deep-forest);
  border-bottom: 3px solid transparent;
  padding-top: 3px;
}
.nav--line a:hover {
  color: var(--redwood);
}
.nav--line a[aria-current='page'] {
  border-bottom-color: var(--redwood);
}

.lang {
  display: inline-flex;
  border: 1px solid var(--divider);
  border-radius: 8px;
  overflow: hidden;
}
.lang__btn {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: #fff;
  color: var(--body);
  font: 600 0.95rem var(--text);
  cursor: pointer;
}
.theme-pacific .lang__btn[aria-pressed='true'] {
  background: var(--deep-pacific);
  color: #fff;
}
.theme-redwoods .lang__btn[aria-pressed='true'] {
  background: var(--redwood);
  color: #fff;
}

/* Home header */
.hh {
  background: #fff;
  border-bottom: 1px solid var(--divider);
}
.hh__inner,
.ph__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.hh__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--body);
  min-height: 44px;
}
.hh__brand img {
  width: 54px;
  height: 54px;
}
.hh__brand strong {
  display: block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}
.hh__brand span span {
  color: var(--mid-blue);
  font-weight: 600;
}

/* Follow up page header */
.ph {
  background: #fff;
  border-bottom: 1px solid var(--divider);
}
.ph__brand {
  display: block;
  min-height: 44px;
}
.ph__brand img {
  height: 46px;
  width: auto;
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid #fff;
}
.btn--white {
  background: #fff;
  color: var(--deep-pacific);
}
.btn--white:hover {
  background: var(--pale-blue);
}
.btn--outline {
  background: transparent;
  color: #fff;
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}
.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--deep-forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.theme-pacific .textlink {
  color: var(--deep-pacific);
}
.textlink:hover {
  color: var(--redwood);
}
.theme-pacific .textlink:hover {
  color: var(--mid-blue);
}

/* Home hero */
.hero {
  background: var(--pacific-blue);
  color: #fff;
  padding: 56px 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero__panel {
  background: var(--deep-pacific);
  border-radius: 20px;
  padding: 40px;
}
.hero__label {
  color: var(--sand);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  margin: 0.2em 0 0.35em;
}
.hero__text {
  font-size: 1.25rem;
  margin-bottom: 1.4em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__seal {
  display: flex;
  justify-content: center;
}
.hero__seal span {
  width: 340px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 14px var(--sky-ring-1),
    0 0 0 28px var(--sky-ring-2);
  margin: 28px;
}
.hero__seal img {
  width: 82%;
  height: auto;
}

/* Home number strip */
.strip {
  background: var(--sand);
  padding: 28px 0;
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.fig {
  font-family: var(--head);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 0 0 4px;
}
.strip .fig {
  color: var(--deep-pacific);
}
.strip__label,
.tile__label {
  font-weight: 700;
  margin: 0;
}
.source {
  font-size: 0.875rem;
  color: var(--secondary);
  margin: 2px 0 0;
}

/* Sections */
.section {
  padding: 44px 0 0;
}
.section--last {
  padding-bottom: 56px;
}
.theme-pacific h2 {
  color: var(--deep-pacific);
}
.glance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Grids and cards */
.grid {
  display: grid;
  gap: 16px;
}
.grid--1 {
  grid-template-columns: 1fr;
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid--5 {
  grid-template-columns: repeat(5, 1fr);
}
.card {
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px;
}
.muted {
  display: block;
  color: var(--secondary);
  font-size: 0.95rem;
}
.small {
  font-size: 0.95rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--secondary);
  margin: 12px 0 2px;
}

/* Find a facility cards */
.ftype {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--body);
  min-height: 72px;
}
.ftype:hover {
  border-color: var(--pacific-blue);
}
.ftype__dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
}
.ftype strong,
.fbt strong,
.person strong {
  display: block;
}

/* Explore the program panel */
.program {
  background: var(--deep-pacific);
  border-radius: 16px;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.program a {
  display: block;
  border-top: 2px solid var(--sand);
  padding: 16px 0 8px;
  text-decoration: none;
  color: #fff;
  min-height: 44px;
}
.program__num {
  display: block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--sand);
}
.program__title {
  font-weight: 700;
  font-size: 1.1rem;
}
.program a:hover .program__title {
  text-decoration: underline;
}

/* Power BI slots */
.pbi {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
.pbi--home {
  min-height: 300px;
}
.pbi--full {
  min-height: 520px;
}
.pbi iframe {
  display: block;
  width: 100%;
  border: 0;
}
.pbi--home iframe {
  height: 300px;
}
.pbi--full iframe {
  height: 520px;
}
.pbi--empty {
  border: 2px dashed var(--divider);
  background: var(--pale-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--secondary);
}
.theme-pacific .pbi--empty {
  background: var(--pale-blue);
  border-color: var(--sky-ring-2);
}
.pbi__label {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--deep-forest);
}
.theme-pacific .pbi__label {
  color: var(--deep-pacific);
}

/* Home footer */
.hf {
  border-top: 6px solid var(--pacific-blue);
  background: #fff;
  padding: 28px 0;
}
.hf__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.hf img {
  height: 50px;
  width: auto;
}
.hf p {
  margin: 0;
  color: var(--secondary);
}

/* Follow up page footer */
.pf {
  background: var(--deep-forest);
  color: #fff;
  padding: 28px 0;
}
.pf__inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pf__seal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.pf__seal img {
  width: 46px;
  height: 46px;
}
.pf p {
  margin: 0;
}
.pf__name {
  font-weight: 700;
}

/* Follow up page title band */
.band {
  background: var(--pale-green);
  border-bottom: 1px solid var(--divider);
  padding: 40px 0 36px;
}
.band__num {
  font-family: var(--head);
  font-weight: 600;
  color: var(--redwood);
  margin: 0 0 8px;
}
.band h1 {
  font-size: 44px;
  font-weight: 700;
  margin: 0 0 12px;
}
.band__sub {
  font-size: 1.15rem;
  color: var(--secondary);
  max-width: 820px;
  margin: 0;
}

/* Filter and district buttons. Text is 19px bold so white on every district color is large text. */
.chips,
.filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.chips {
  margin: 24px 0 20px;
}
.chip {
  min-height: 44px;
  min-width: 44px;
  padding: 0 18px;
  border: 2px solid var(--c);
  border-radius: 999px;
  background: #fff;
  color: var(--body);
  font: 700 1.2rem var(--text);
  cursor: pointer;
}
.chip--round {
  padding: 0;
  width: 44px;
}
.chip:hover {
  background: var(--pale-green);
}
.chip[aria-pressed='true'] {
  background: var(--c);
  color: #fff;
}
.filters {
  display: grid;
  gap: 12px;
}
.filters__label {
  font-weight: 700;
  min-width: 96px;
}
.count {
  margin: 18px 0 14px;
  color: var(--secondary);
}

/* District map */
.map {
  margin: 0;
}
.map img,
.map__placeholder {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--divider);
}
.map__placeholder {
  aspect-ratio: 16 / 10;
  background: var(--pale-green);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--secondary);
  font-weight: 600;
}
.map figcaption {
  margin-top: 8px;
}

/* Supervisor cards */
.sup {
  border-top: 6px solid var(--c);
  transition: opacity 0.2s, box-shadow 0.2s;
}
.sup__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.4rem;
}
.sup__name {
  font-size: 1.3rem;
  font-weight: 600;
}
.sup.is-faded {
  opacity: 0.4;
}
.sup.is-active {
  box-shadow: 0 0 0 3px var(--c);
}
.about {
  background: var(--pale-green);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 32px;
}

/* Project cards */
.proj {
  border-top: 6px solid var(--c);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.tag {
  background: var(--pale-green);
  border: 1px solid var(--divider);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}
.proj__name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.sources {
  margin-top: 20px;
}

/* Facility Condition tiles and type cards */
.tile {
  background: var(--pale-green);
  border-top: 4px solid var(--c);
  border-radius: var(--radius);
  padding: 20px;
}
.tile .fig {
  color: var(--deep-forest);
}
.fbt {
  border-left: 6px solid var(--c);
}

/* Services */
.services {
  display: grid;
  gap: 20px;
}
.svc {
  display: grid;
  grid-template-columns: 330px 1fr;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.svc__panel {
  color: #fff;
  padding: 28px;
}
.svc__tag {
  font-family: var(--head);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 12px;
}
.svc__name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.svc__firm {
  font-size: 0.95rem;
  margin: 0;
}
.svc__text {
  padding: 28px;
  margin: 0;
}

/* Team */
.team {
  margin-bottom: 28px;
}
.person {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 4px solid var(--c);
}
.team--county .person {
  border-top-width: 1px;
  border-top-color: var(--divider);
}
.person__init {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.2rem;
}
.firm {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
}
.firm__sq {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

/* Tablets */
@media (max-width: 1000px) {
  .grid--4,
  .grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .program {
    grid-template-columns: repeat(3, 1fr);
  }
  .svc {
    grid-template-columns: 1fr;
  }
}

/* Phones: everything stacks in one column, seal above the title */
@media (max-width: 720px) {
  .hero__grid,
  .glance,
  .grid--3,
  .grid--4,
  .grid--5,
  .strip__grid,
  .program {
    grid-template-columns: 1fr;
  }
  .hero__seal {
    order: -1;
  }
  .hero__seal span {
    width: 240px;
  }
  .hero__panel {
    padding: 28px 22px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .band h1 {
    font-size: 34px;
  }
}

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