/* =========================================================
   CWH Prototype Sitewide + Page Styling — CLEANED
   Purpose: sitewide Canvas pages, library pages, detail pages,
   and specific non-home page polish.
   Keep navigation in cwh-navigation.css and homepage-only layout in cwh-homepage.css.
   ========================================================= */
:root {
  --cwh-navy: #063b5c;
  --cwh-navy-dark: #042f49;
  --cwh-light-blue: #a8cfdb;
  --cwh-soft-blue: #dceef3;
  --cwh-orange: #f49a45;
  --cwh-cream: #f2eadc;
  --cwh-green: #6f8f3f;
  --cwh-text: #17384d;
  --cwh-muted: #536b78;
  --cwh-border: #b8d5df;
  --cwh-white: #ffffff;
  --cwh-max-width: 1120px;
}

/* ---------- Base readability ---------- */

body.canvas-page {
  background: #ffffff;
  color: var(--cwh-text);
}

body.canvas-page main {
  background: #ffffff;
  color: var(--cwh-text);
}

body.canvas-page main p,
body.canvas-page main li {
  line-height: 1.65;
}

body.canvas-page main a {
  color: var(--cwh-navy);
  text-underline-offset: 3px;
}

body.canvas-page main a:hover,
body.canvas-page main a:focus {
  color: var(--cwh-orange);
}

body.canvas-page .stwl-container {
  box-sizing: border-box;
}

/* Keep the breadcrumb/white strip hidden globally, as requested earlier. */
body .breadcrumb,
body nav.breadcrumb,
body .breadcrumb-wrapper,
body .breadcrumb__list,
body .block-system-breadcrumb-block,
body [id*="breadcrumb"],
body [class*="breadcrumb"],
body .region-breadcrumb,
body .region--breadcrumb,
body header[role="banner"] + .stwl-container.py-3 {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
/* =========================================================
   Canvas landing pages
   These are the pages that do NOT start with the homepage hero image.
   ========================================================= */

body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10 {
  padding: 4.5rem 0 !important;
  background: #ffffff !important;
}

body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10 > .stwl-container {
  max-width: var(--cwh-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* First section = page hero/introduction */
body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:first-of-type {
  background:
    linear-gradient(135deg, rgba(6, 59, 92, 0.96), rgba(4, 47, 73, 0.88)),
    linear-gradient(90deg, var(--cwh-navy), var(--cwh-navy-dark)) !important;
  color: #ffffff !important;
  padding: 5.5rem 0 5rem !important;
}

body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:first-of-type .stwl-container {
  max-width: 980px;
}

body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:first-of-type h1,
body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:first-of-type h2,
body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:first-of-type h3,
body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:first-of-type p,
body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:first-of-type a {
  color: #ffffff !important;
}

body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:first-of-type h2,
body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:first-of-type h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem) !important;
  line-height: 1.02;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1.1rem !important;
}

body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:first-of-type .stwl-text-content,
body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:first-of-type p {
  max-width: 780px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.94) !important;
}

/* Alternating section tones for landing pages */
body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:nth-of-type(2) {
  background: #ffffff !important;
}

body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:nth-of-type(3) {
  background: var(--cwh-soft-blue) !important;
}

body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:nth-of-type(4) {
  background: #ffffff !important;
}

/* Section headings */
body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:not(:first-of-type) h2 {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--cwh-navy) !important;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem) !important;
  line-height: 1.15;
  font-weight: 700 !important;
  margin: 0 0 2rem !important;
}

body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:not(:first-of-type) h2::after {
  content: "";
  flex: 1;
  min-width: 80px;
  height: 1px;
  background: var(--cwh-border);
}

/* Text content width */
body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) .stwl-text-content {
  max-width: 760px;
}

/* ---------- Buttons / CTAs ---------- */

body.canvas-page main a[class*="bg-yellow"],
body.canvas-page main a[class*="bg-primary"],
body.canvas-page main button[class*="bg-primary"],
body.canvas-page main button[class*="bg-secondary"],
body.canvas-page main .button,
body.canvas-page main a.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  padding: 0.62rem 1.35rem !important;
  background: var(--cwh-orange) !important;
  color: var(--cwh-navy) !important;
  border: 1px solid var(--cwh-orange) !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.canvas-page main a[class*="bg-yellow"]:hover,
body.canvas-page main a[class*="bg-primary"]:hover,
body.canvas-page main button[class*="bg-primary"]:hover,
body.canvas-page main button[class*="bg-secondary"]:hover {
  background: #ffffff !important;
  color: var(--cwh-navy) !important;
  border-color: var(--cwh-navy) !important;
}

/* ---------- Canvas cards ---------- */

body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) article.stwl-offset-shadow--static,
body.canvas-page main article.stwl-offset-shadow--static {
  border: 1px solid var(--cwh-border) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 20px rgba(6, 59, 92, 0.08) !important;
  overflow: hidden;
  height: 100%;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

body.canvas-page main article.stwl-offset-shadow--static:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 59, 92, 0.14) !important;
}

body.canvas-page main article.stwl-offset-shadow--static .p-5 {
  padding: 1.35rem !important;
}

body.canvas-page main article.stwl-offset-shadow--static h3 {
  color: var(--cwh-navy) !important;
  font-size: 1rem !important;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem !important;
}

body.canvas-page main article.stwl-offset-shadow--static h3 a {
  color: var(--cwh-navy) !important;
  text-decoration: none;
}

body.canvas-page main article.stwl-offset-shadow--static h3 a:hover,
body.canvas-page main article.stwl-offset-shadow--static h3 a:focus {
  color: var(--cwh-orange) !important;
}

body.canvas-page main article.stwl-offset-shadow--static p {
  color: var(--cwh-muted) !important;
  font-size: 0.98rem;
}

body.canvas-page main article.stwl-offset-shadow--static img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Better grid/card rhythm */
body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) .grid[class*="grid-cols"] {
  gap: 1.5rem !important;
}

/* When one-card sections are being used as content blocks, don't let them feel cramped */
body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) .grid-cols-1 > article:only-child {
  max-width: 850px;
}

/* ---------- Landing page variation blocks ---------- */

/* Third sections usually work well as callouts */
body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:nth-of-type(3) article.stwl-offset-shadow--static {
  background: rgba(255, 255, 255, 0.92) !important;
}

/* Fourth sections can handle secondary card collections */
body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:nth-of-type(4) article.stwl-offset-shadow--static {
  background: #ffffff !important;
}

/* Resources page often has more collection cards, let them breathe */
body.canvas-page main a[href^="/resources/"] {
  font-weight: 700;
}

/* Donate page: donation form placeholder should look like an intentional module */
body.canvas-page main article.stwl-offset-shadow--static:has(h3:nth-child(1)) {
  min-height: 0;
}

body.canvas-page main section.py-10:has(h2, h3) article:has(h3) {
  min-height: 145px;
}

/* ---------- Views / library pages ---------- */

body.canvas-page .view,
body.canvas-page .views-element-container,
.cwh-card-list,
.cwh-card-list.view,
.cwh-card-list.views-element-container {
  max-width: var(--cwh-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1.5rem 4rem;
}

body.canvas-page .views-exposed-form,
body.canvas-page .view-filters,
.cwh-card-list .views-exposed-form {
  border: 1px solid var(--cwh-border);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  background: var(--cwh-soft-blue);
  box-shadow: 0 8px 20px rgba(6, 59, 92, 0.08);
}

body.canvas-page .views-exposed-form form,
.cwh-card-list .views-exposed-form form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
}

body.canvas-page .views-exposed-form label,
.cwh-card-list .views-exposed-form label {
  display: block;
  font-weight: 700;
  color: var(--cwh-navy);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

body.canvas-page .views-exposed-form input,
body.canvas-page .views-exposed-form select,
.cwh-card-list .views-exposed-form input,
.cwh-card-list .views-exposed-form select {
  min-height: 42px;
  border: 1px solid var(--cwh-border);
  background: #ffffff;
  color: var(--cwh-text);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
}

body.canvas-page .view-content,
.cwh-card-list .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

body.canvas-page .views-row,
.cwh-card-list .views-row {
  border: 1px solid var(--cwh-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(6, 59, 92, 0.08);
  overflow: hidden;
}

body.canvas-page .views-row article,
.cwh-card-list .views-row article {
  border: 0 !important;
  box-shadow: none !important;
  height: 100%;
}

body.canvas-page .views-row img,
.cwh-card-list .views-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

body.canvas-page .views-row .field,
.cwh-card-list .views-row .field {
  margin-bottom: 0.75rem;
}

body.canvas-page .views-row .field__label,
.cwh-card-list .views-row .field__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--cwh-navy);
  margin-bottom: 0.2rem;
}

/* ---------- Detail pages ---------- */

body.canvas-page main article[class*="node--type"],
body.canvas-page main .node {
  max-width: var(--cwh-max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

body.canvas-page .field {
  margin-bottom: 1rem;
}

body.canvas-page .field__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--cwh-navy);
  margin-bottom: 0.25rem;
}

body.canvas-page .field--name-field-file a,
body.canvas-page .field--name-field-media a,
body.canvas-page .field--name-field-external-url a,
body.canvas-page .field--name-field-eventbrite-link a,
body.canvas-page .field--name-field-virtual-event-link a,
body.canvas-page .field--name-field-map-url a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--cwh-orange);
  color: var(--cwh-navy);
  border: 1px solid var(--cwh-orange);
  padding: 0.65rem 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

/* ---------- Map / data embeds ---------- */

body.canvas-page iframe,
body.canvas-page iframe[src*="arcgis"],
body.canvas-page iframe[src*="esri"],
.cwh-card-list iframe,
.cwh-card-list iframe[src*="arcgis"],
.cwh-card-list iframe[src*="esri"] {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--cwh-border);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(6, 59, 92, 0.1);
  background: #ffffff;
}

/* ---------- Tables ---------- */

body.canvas-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #ffffff;
  border: 1px solid var(--cwh-border);
}

body.canvas-page th {
  background: var(--cwh-navy);
  color: #ffffff;
  text-align: left;
  padding: 0.75rem;
}

body.canvas-page td {
  border-top: 1px solid var(--cwh-border);
  padding: 0.75rem;
}

/* ---------- Footer ---------- */

body.canvas-page footer.stwl-footer {
  background: var(--cwh-navy-dark) !important;
  color: #ffffff !important;
  margin-top: 0;
}

body.canvas-page footer.stwl-footer a {
  color: #ffffff;
}

/* ---------- Mobile ---------- */

@media (max-width: 800px) {
  body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10,
  body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:first-of-type {
    padding: 3rem 0 !important;
  }

  body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:not(:first-of-type) h2 {
    display: block;
  }

  body.canvas-page #block-consistent-content:not(:has(> .stwl-container:first-child > .grid > img[data-component-id="canvas:image"])) > section.py-10:not(:first-of-type) h2::after {
    margin-top: 0.75rem;
    display: block;
    width: 120px;
  }

  body.canvas-page .view,
  body.canvas-page .views-element-container,
  .cwh-card-list,
  .cwh-card-list.view,
  .cwh-card-list.views-element-container {
    padding: 1.5rem 1rem 3rem;
  }

  body.canvas-page .views-exposed-form form,
  .cwh-card-list .views-exposed-form form {
    display: block;
  }

  body.canvas-page .views-exposed-form .form-item,
  body.canvas-page .views-exposed-form input,
  body.canvas-page .views-exposed-form select,
  body.canvas-page .views-exposed-form button,
  .cwh-card-list .views-exposed-form .form-item,
  .cwh-card-list .views-exposed-form input,
  .cwh-card-list .views-exposed-form select,
  .cwh-card-list .views-exposed-form button {
    width: 100%;
    margin-bottom: 0.75rem;
  }

  body.canvas-page iframe,
  body.canvas-page iframe[src*="arcgis"],
  body.canvas-page iframe[src*="esri"] {
    min-height: 360px;
  }
}
/* =========================================================
   CWH Resources Page Search Form — SPACIOUS CHECKBOX LAYOUT
   Applies to:
   - /resources search/filter block
   - /resource/search results page

   Layout:
   - Search bar across the top
   - Apply button beside it
   - Roomier checkbox groups underneath
   ========================================================= */

/* Main exposed search block wrapper */
body.canvas-page #block-consistent-exposedformcwh-resource-searchpage-1 {
  max-width: 1240px;
  margin: 2.5rem auto 3.5rem;
  padding: 0 1.5rem;
}

/* Block title */
body.canvas-page #block-consistent-exposedformcwh-resource-searchpage-1 > h2 {
  color: var(--cwh-navy);
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Form shell */
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 {
  background: var(--cwh-soft-blue);
  border: 1px solid var(--cwh-border);
  border-radius: 22px;
  padding: 1.75rem;
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.75fr);
  grid-template-areas:
    "search search search actions"
    "theme theme type language"
    "format format format format";
  gap: 1.75rem 2rem;
  align-items: start;
  box-shadow: 0 8px 20px rgba(6, 59, 92, 0.08);
}

/* Search bar placement */
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 .form-item-keywords {
  grid-area: search;
  margin: 0;
}

/* Submit button placement */
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 .form-actions {
  grid-area: actions;
  align-self: end;
  margin: 0;
}

/* Filter group placement — supports both possible Resource Type IDs */
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-theme--wrapper {
  grid-area: theme;
}

body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-resource-type--wrapper,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-field-resource-type-target-id--wrapper {
  grid-area: type;
}

body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-resource-format--wrapper {
  grid-area: format;
}

body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-language--wrapper {
  grid-area: language;
}

/* Fieldsets */
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

body.canvas-page #views-exposed-form-cwh-resource-search-page-1 .fieldset-wrapper {
  margin: 0;
}

/* Group titles */
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 legend,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 > .form-item > label {
  display: block;
  color: var(--cwh-navy);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

/* Search input */
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 input[type="text"],
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 input[type="search"] {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--cwh-border);
  border-radius: 999px;
  background: var(--cwh-white);
  color: var(--cwh-text);
  font-size: 1rem;
  padding: 0.8rem 1.15rem;
  box-sizing: border-box;
}

/* Checkbox/radio group containers */
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 .form-checkboxes,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 .bef-checkboxes,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 .form-radios {
  display: grid;
  gap: 0.65rem 1rem;
}

/* Theme gets extra horizontal room and two readable columns */
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-theme,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-theme .form-checkboxes,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-theme .bef-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.65rem 1.25rem;
}

/* Resource Format spans the full width and becomes short columns */
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-resource-format,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-resource-format .form-checkboxes,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-resource-format .bef-checkboxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 0.65rem 1.25rem;
}

/* Resource Type supports both possible field IDs */
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-resource-type,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-field-resource-type-target-id,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-resource-type .form-checkboxes,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-field-resource-type-target-id .form-checkboxes,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-resource-type .bef-checkboxes,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-field-resource-type-target-id .bef-checkboxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

/* Checkbox/radio rows */
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 .form-type-checkbox,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 .js-form-type-checkbox,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 .form-type-radio,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 .js-form-type-radio {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 0.6rem;
  align-items: start;
  margin: 0;
  color: var(--cwh-text);
  font-size: 0.93rem;
  line-height: 1.38;
  min-width: 0;
}

/* Checkbox/radio inputs */
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 input[type="checkbox"],
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0.18rem 0 0;
  accent-color: var(--cwh-orange);
  justify-self: start;
}

/* Option labels: undo the uppercase group-label styling so options wrap cleanly */
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 label.option,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 .form-type-checkbox label,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 .js-form-type-checkbox label,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 .form-type-radio label,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 .js-form-type-radio label {
  display: block;
  margin: 0;
  color: var(--cwh-text);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.38;
  text-transform: none;
  overflow-wrap: normal;
  word-break: normal;
}

/* Submit button */
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 input[type="submit"],
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 button[type="submit"] {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--cwh-orange);
  color: var(--cwh-navy);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.35rem;
  cursor: pointer;
}

body.canvas-page #views-exposed-form-cwh-resource-search-page-1 input[type="submit"]:hover,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 button[type="submit"]:hover,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 input[type="submit"]:focus,
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 button[type="submit"]:focus {
  background: var(--cwh-white);
  color: var(--cwh-navy);
  outline: 2px solid var(--cwh-orange);
  outline-offset: 2px;
}

/* Select fallback, in case a filter temporarily renders as dropdown */
body.canvas-page #views-exposed-form-cwh-resource-search-page-1 select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--cwh-border);
  border-radius: 8px;
  background: var(--cwh-white);
  color: var(--cwh-text);
  padding: 0.65rem 0.8rem;
}

/* Hidden search results page layout */
body.canvas-page .view-cwh-resource-search {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

body.canvas-page .view-cwh-resource-search .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

body.canvas-page .view-cwh-resource-search .views-row article,
body.canvas-page .view-cwh-resource-search .view-content article {
  background: var(--cwh-white);
  border: 1px solid var(--cwh-border) !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(6, 59, 92, 0.08);
}

body.canvas-page .view-cwh-resource-search .view-empty {
  background: var(--cwh-cream);
  border: 1px solid #e3d5bd;
  border-radius: 14px;
  padding: 1.25rem;
  color: var(--cwh-text);
}

/* Tablet: keep breathing room without forcing too many columns */
@media (max-width: 1100px) {
  body.canvas-page #views-exposed-form-cwh-resource-search-page-1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "search search"
      "actions actions"
      "theme theme"
      "type language"
      "format format";
  }

  body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-resource-format,
  body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-resource-format .form-checkboxes,
  body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-resource-format .bef-checkboxes {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

/* Mobile */
@media (max-width: 700px) {
  body.canvas-page #block-consistent-exposedformcwh-resource-searchpage-1 {
    padding: 0 1rem;
  }

  body.canvas-page #views-exposed-form-cwh-resource-search-page-1 {
    display: block !important;
    padding: 1.25rem;
  }

  body.canvas-page #views-exposed-form-cwh-resource-search-page-1 .form-item,
  body.canvas-page #views-exposed-form-cwh-resource-search-page-1 fieldset,
  body.canvas-page #views-exposed-form-cwh-resource-search-page-1 .form-actions {
    margin-bottom: 1.25rem;
  }

  body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-theme,
  body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-theme .form-checkboxes,
  body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-theme .bef-checkboxes,
  body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-resource-format,
  body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-resource-format .form-checkboxes,
  body.canvas-page #views-exposed-form-cwh-resource-search-page-1 #edit-resource-format .bef-checkboxes {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   CWH Project Library Polish
   Applies to /projects View page
   Fixes: page spacing, filter layout, project card styling,
   and hides Drupal author/submitted clutter.
   ========================================================= */

/* Project Library page shell */
#main-content:has(#views-exposed-form-cwh-project-library-page-1) {
  background: #ffffff;
  color: var(--cwh-text, #17384d);
}

/* Hide breadcrumb on this library page if it makes the layout feel crowded */
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .stwl-breadcrumb {
  display: none;
}

/* Make the generated Views page title look like the other CWH section pages */
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .page-title {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.75rem 1.5rem 1rem;
  color: var(--cwh-navy, #063b5c);
  font-size: clamp(2.7rem, 5vw, 4.75rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Keep the whole View aligned with the rest of the site */
#main-content:has(#views-exposed-form-cwh-project-library-page-1) #block-consistent-content,
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-element-container,
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .js-view-dom-id-6f61c3b73086b42dd4f7273c81220d4d42ac3b6da45072a6ef9caf475d5144b0 {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* Views wrapper */
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-element-container {
  padding: 0 1.5rem 5rem;
}

/* Header intro box */
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-element-container header {
  background: var(--cwh-soft-blue, #dceef3);
  border: 1px solid var(--cwh-border, #b8d5df);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  margin: 0 0 1.5rem;
  box-shadow: 0 8px 20px rgba(6, 59, 92, 0.08);
}

#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-element-container header p:first-child {
  margin: 0 0 0.55rem;
  color: var(--cwh-navy, #063b5c);
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-element-container header p:not(:first-child) {
  max-width: 850px;
  margin: 0;
  color: var(--cwh-text, #17384d);
  font-size: 1rem;
  line-height: 1.65;
}

/* Project results grid */
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  clear: both;
}

#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal .views-row {
  display: contents;
}

#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal .views-col {
  width: auto !important;
  float: none !important;
  padding: 0 !important;
}

/* Project cards */
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal .views-col > article {
  height: 100%;
  min-height: 100%;
  background: #ffffff;
  border: 1px solid var(--cwh-border, #b8d5df);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(6, 59, 92, 0.08);
  padding: 1.35rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal .views-col > article:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(6, 59, 92, 0.14);
}

/* Hide Drupal author/submitted footer clutter on the card */
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal .views-col > article > footer {
  display: none !important;
}

/* Card title */
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal article > h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--cwh-border, #b8d5df);
  color: var(--cwh-navy, #063b5c);
  font-size: 1.05rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal article > h2 a {
  color: var(--cwh-navy, #063b5c);
  text-decoration: none;
}

#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal article > h2 a:hover,
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal article > h2 a:focus {
  color: var(--cwh-orange, #f49a45);
}

/* Card body */
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal article > div {
  color: var(--cwh-text, #17384d);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Hide the standalone project date if it appears as an unlabeled time field in the card */
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal article > div > div:has(> time):not(:has(div)) {
  display: none;
}

/* Field labels inside cards */
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal article > div > div > div:first-child {
  color: var(--cwh-navy, #063b5c);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.3rem;
}

/* Field spacing */
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal article > div > div {
  margin-bottom: 0.9rem;
}

/* Project overview text */
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal article p {
  color: var(--cwh-muted, #536b78);
  line-height: 1.55;
  margin: 0;
}

/* Taxonomy links as compact chips */
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal article > div a[href*="/taxonomy/term/"] {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0.15rem 0.25rem 0.15rem 0;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--cwh-soft-blue, #dceef3);
  color: var(--cwh-navy, #063b5c);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal article > div a[href*="/taxonomy/term/"]:hover,
#main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal article > div a[href*="/taxonomy/term/"]:focus {
  background: var(--cwh-orange, #f49a45);
  color: var(--cwh-navy, #063b5c);
}
/* Mobile project results */
@media (max-width: 900px) {
  #main-content:has(#views-exposed-form-cwh-project-library-page-1) .page-title {
    padding-top: 3rem;
  }

  #main-content:has(#views-exposed-form-cwh-project-library-page-1) .views-view-grid.horizontal {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   CWH Project Library Filter Layout — FINAL EVEN ROW PATCH
   Purpose:
   - Keep a long search bar above all checkbox groups
   - Keep Apply beside the search bar
   - Put all checkbox groups into evenly spaced side-by-side columns
   - Keep group titles slightly above and centered over each group
   - Avoid oversized boxes while still scaling as filters grow
   ========================================================= */

/* Main filter panel: fixed logical rows */
#views-exposed-form-cwh-project-library-page-1 {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-template-areas:
    "search search search search actions"
    "program project-type status theme location" !important;
  gap: 1.15rem 1.15rem !important;
  align-items: stretch !important;
  padding: 1.2rem 1.25rem 1.3rem !important;
  margin: 0 0 2.25rem !important;
  background: var(--cwh-cream, #f2eadc) !important;
  border: 1px solid #e3d5bd !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 20px rgba(6, 59, 92, 0.08) !important;
}

/* Search row */
#views-exposed-form-cwh-project-library-page-1 .form-item-keywords {
  grid-area: search !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  align-self: end !important;
}

#views-exposed-form-cwh-project-library-page-1 .form-item-keywords input[type="text"],
#views-exposed-form-cwh-project-library-page-1 .form-item-keywords input[type="search"] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 52px !important;
  border-radius: 999px !important;
}

#views-exposed-form-cwh-project-library-page-1 .form-actions {
  grid-area: actions !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  align-self: end !important;
}

#views-exposed-form-cwh-project-library-page-1 .form-actions input[type="submit"],
#views-exposed-form-cwh-project-library-page-1 .form-actions button[type="submit"] {
  width: 100% !important;
  min-height: 52px !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  white-space: nowrap !important;
}

/* Explicit equal filter column placement */
#views-exposed-form-cwh-project-library-page-1 #edit-field-program-area-target-id--wrapper {
  grid-area: program !important;
}

#views-exposed-form-cwh-project-library-page-1 #edit-field-project-type-target-id--wrapper {
  grid-area: project-type !important;
}

#views-exposed-form-cwh-project-library-page-1 #edit-field-project-status-target-id--wrapper {
  grid-area: status !important;
}

#views-exposed-form-cwh-project-library-page-1 #edit-field-theme-target-id--wrapper {
  grid-area: theme !important;
}

#views-exposed-form-cwh-project-library-page-1 #edit-field-location-target-id--wrapper {
  grid-area: location !important;
}

/* Equal compact cards for each group */
#views-exposed-form-cwh-project-library-page-1 #edit-field-program-area-target-id--wrapper,
#views-exposed-form-cwh-project-library-page-1 #edit-field-project-type-target-id--wrapper,
#views-exposed-form-cwh-project-library-page-1 #edit-field-project-status-target-id--wrapper,
#views-exposed-form-cwh-project-library-page-1 #edit-field-theme-target-id--wrapper,
#views-exposed-form-cwh-project-library-page-1 #edit-field-location-target-id--wrapper {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0.62rem 0.72rem 0.72rem !important;
  border: 1px solid rgba(184, 213, 223, 0.95) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-sizing: border-box !important;
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
}

#views-exposed-form-cwh-project-library-page-1 fieldset {
  min-width: 0 !important;
}

#views-exposed-form-cwh-project-library-page-1 .fieldset-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 1 auto !important;
}

/* Group titles: centered, lifted slightly, and closer to their own group */
#views-exposed-form-cwh-project-library-page-1 legend,
#views-exposed-form-cwh-project-library-page-1 .fieldset-legend {
  display: block !important;
  width: 100% !important;
  margin: -0.12rem 0 0.5rem !important;
  padding: 0 !important;
  color: var(--cwh-navy, #063b5c) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.075em !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

/* Keep every group using the same internal proportions */
#views-exposed-form-cwh-project-library-page-1 .form-checkboxes,
#views-exposed-form-cwh-project-library-page-1 .bef-checkboxes,
#views-exposed-form-cwh-project-library-page-1 #edit-field-theme-target-id .form-checkboxes,
#views-exposed-form-cwh-project-library-page-1 #edit-field-theme-target-id .bef-checkboxes,
#views-exposed-form-cwh-project-library-page-1 #edit-field-location-target-id .form-checkboxes,
#views-exposed-form-cwh-project-library-page-1 #edit-field-location-target-id .bef-checkboxes {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.34rem !important;
  align-content: start !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Checkbox rows stay compact but readable */
#views-exposed-form-cwh-project-library-page-1 .form-type-checkbox,
#views-exposed-form-cwh-project-library-page-1 .js-form-type-checkbox {
  display: grid !important;
  grid-template-columns: 15px minmax(0, 1fr) !important;
  column-gap: 0.42rem !important;
  align-items: start !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  color: var(--cwh-text, #17384d) !important;
  font-size: 0.82rem !important;
  line-height: 1.22 !important;
}

#views-exposed-form-cwh-project-library-page-1 input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
  margin: 0.1rem 0 0 !important;
  accent-color: var(--cwh-orange, #f49a45) !important;
  justify-self: start !important;
}

#views-exposed-form-cwh-project-library-page-1 .form-type-checkbox label,
#views-exposed-form-cwh-project-library-page-1 .js-form-type-checkbox label,
#views-exposed-form-cwh-project-library-page-1 label.option {
  display: block !important;
  margin: 0 !important;
  color: var(--cwh-text, #17384d) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  line-height: 1.22 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-transform: none !important;
  overflow-wrap: anywhere !important;
}

/* Tablet: three columns, still even */
@media (max-width: 1050px) {
  #views-exposed-form-cwh-project-library-page-1 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-areas:
      "search search search"
      "actions actions actions"
      "program project-type status"
      "theme location location" !important;
  }

  #views-exposed-form-cwh-project-library-page-1 .form-actions {
    max-width: 220px !important;
    justify-self: end !important;
  }
}

/* Mobile: one clean column */
@media (max-width: 700px) {
  #views-exposed-form-cwh-project-library-page-1 {
    display: block !important;
    padding: 1rem !important;
  }

  #views-exposed-form-cwh-project-library-page-1 .form-item-keywords,
  #views-exposed-form-cwh-project-library-page-1 .form-actions,
  #views-exposed-form-cwh-project-library-page-1 #edit-field-program-area-target-id--wrapper,
  #views-exposed-form-cwh-project-library-page-1 #edit-field-project-type-target-id--wrapper,
  #views-exposed-form-cwh-project-library-page-1 #edit-field-project-status-target-id--wrapper,
  #views-exposed-form-cwh-project-library-page-1 #edit-field-theme-target-id--wrapper,
  #views-exposed-form-cwh-project-library-page-1 #edit-field-location-target-id--wrapper {
    margin-bottom: 0.9rem !important;
  }

  #views-exposed-form-cwh-project-library-page-1 .form-actions {
    max-width: none !important;
  }
}
/* =========================================================
   CWH River Resources Library
   Long title search + Format/Language checkbox filters
   Applies to /resources/river-resources
   ========================================================= */

#main-content:has(#views-exposed-form-cwh-river-resources-page-1) {
  background: #ffffff;
  color: var(--cwh-text, #17384d);
}

/* Page title */
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) .page-title {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.75rem 1.5rem 1rem;
  color: var(--cwh-navy, #063b5c);
  font-size: clamp(2.7rem, 5vw, 4.75rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* View wrapper */
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) .views-element-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* Exposed filter shell */
#views-exposed-form-cwh-river-resources-page-1 {
  background: var(--cwh-cream, #f2eadc);
  border: 1px solid #e3d5bd;
  border-radius: 20px;
  padding: 1.5rem;
  margin: 0 0 2.25rem;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "search actions"
    "format language";
  gap: 1.35rem 1.5rem;
  align-items: start;
  box-shadow: 0 8px 20px rgba(6, 59, 92, 0.08);
}

/* Search bar */
#views-exposed-form-cwh-river-resources-page-1 .form-item-keywords {
  grid-area: search;
  margin: 0;
}

#views-exposed-form-cwh-river-resources-page-1 .form-actions {
  grid-area: actions;
  align-self: end;
  margin: 0;
}

/* Filter groups */
#views-exposed-form-cwh-river-resources-page-1 #edit-format--wrapper,
#views-exposed-form-cwh-river-resources-page-1 #edit-resource-format--wrapper,
#views-exposed-form-cwh-river-resources-page-1 #edit-field-resource-format-target-id--wrapper {
  grid-area: format;
}

#views-exposed-form-cwh-river-resources-page-1 #edit-language--wrapper,
#views-exposed-form-cwh-river-resources-page-1 #edit-field-language-target-id--wrapper,
#views-exposed-form-cwh-river-resources-page-1 #edit-field-language-availability-target-id--wrapper {
  grid-area: language;
}

/* Fieldset cleanup */
#views-exposed-form-cwh-river-resources-page-1 fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

#views-exposed-form-cwh-river-resources-page-1 .fieldset-wrapper {
  margin: 0;
}

/* Group titles */
#views-exposed-form-cwh-river-resources-page-1 legend,
#views-exposed-form-cwh-river-resources-page-1 .fieldset-legend,
#views-exposed-form-cwh-river-resources-page-1 > .form-item > label {
  display: block;
  color: var(--cwh-navy, #063b5c);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.7rem;
  text-align: center;
}

/* Search input */
#views-exposed-form-cwh-river-resources-page-1 input[type="text"],
#views-exposed-form-cwh-river-resources-page-1 input[type="search"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--cwh-border, #b8d5df);
  border-radius: 999px;
  background: #ffffff;
  color: var(--cwh-text, #17384d);
  font-size: 1rem;
  padding: 0.75rem 1.1rem;
  box-sizing: border-box;
}

/* Checkbox groups */
#views-exposed-form-cwh-river-resources-page-1 .form-checkboxes,
#views-exposed-form-cwh-river-resources-page-1 .bef-checkboxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.1rem;
}

/* Checkbox rows */
#views-exposed-form-cwh-river-resources-page-1 .form-type-checkbox,
#views-exposed-form-cwh-river-resources-page-1 .js-form-type-checkbox {
  display: inline-grid;
  grid-template-columns: 16px auto;
  align-items: start;
  column-gap: 0.45rem;
  margin: 0;
  color: var(--cwh-text, #17384d);
  font-size: 0.92rem;
  line-height: 1.35;
}

#views-exposed-form-cwh-river-resources-page-1 input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 0.12rem;
  accent-color: var(--cwh-orange, #f49a45);
}

/* Checkbox labels */
#views-exposed-form-cwh-river-resources-page-1 label.option,
#views-exposed-form-cwh-river-resources-page-1 .form-type-checkbox label,
#views-exposed-form-cwh-river-resources-page-1 .js-form-type-checkbox label {
  margin: 0;
  color: var(--cwh-text, #17384d);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

/* Apply button */
#views-exposed-form-cwh-river-resources-page-1 input[type="submit"],
#views-exposed-form-cwh-river-resources-page-1 button[type="submit"] {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--cwh-orange, #f49a45);
  color: var(--cwh-navy, #063b5c);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.6rem;
  cursor: pointer;
}

#views-exposed-form-cwh-river-resources-page-1 input[type="submit"]:hover,
#views-exposed-form-cwh-river-resources-page-1 button[type="submit"]:hover {
  background: #ffffff;
  outline: 1px solid var(--cwh-navy, #063b5c);
}

/* Results grid */
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

/* Result cards */
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) .views-row {
  background: #ffffff;
  border: 1px solid var(--cwh-border, #b8d5df);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(6, 59, 92, 0.08);
}

/* Mobile */
@media (max-width: 800px) {
  #views-exposed-form-cwh-river-resources-page-1 {
    display: block !important;
  }

  #views-exposed-form-cwh-river-resources-page-1 .form-item,
  #views-exposed-form-cwh-river-resources-page-1 fieldset,
  #views-exposed-form-cwh-river-resources-page-1 .form-actions {
    margin-bottom: 1rem;
  }

  #views-exposed-form-cwh-river-resources-page-1 input[type="submit"],
  #views-exposed-form-cwh-river-resources-page-1 button[type="submit"] {
    width: 100%;
  }
}
/* =========================================================
   CWH River Resources Results Grid Revamp
   Adds the same modern card treatment used on /projects
   Applies to /resources/river-resources
   Form ID: #views-exposed-form-cwh-river-resources-page-1
   ========================================================= */

/* Keep the River Resources page aligned with the rest of the library pages */
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) .views-element-container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem 5rem;
}

/* Results grid: override Drupal's older 4-column table-like Views grid */
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) .views-view-grid.horizontal {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)) !important;
  gap: 1.5rem !important;
  clear: both !important;
  margin-top: 1.75rem !important;
}

/* Remove the old Views row/column behavior */
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) .views-view-grid.horizontal .views-row {
  display: contents !important;
}

#main-content:has(#views-exposed-form-cwh-river-resources-page-1) .views-view-grid.horizontal .views-col {
  width: auto !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Modern resource cards */
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) .views-view-grid.horizontal .views-col > article,
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) .view-content > .views-row > article,
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) .views-row article {
  height: 100%;
  min-height: 100%;
  background: #ffffff !important;
  border: 1px solid var(--cwh-border, #b8d5df) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 20px rgba(6, 59, 92, 0.08) !important;
  padding: 1.35rem !important;
  transition: transform 160ms ease, box-shadow 160ms ease !important;
}

#main-content:has(#views-exposed-form-cwh-river-resources-page-1) .views-view-grid.horizontal .views-col > article:hover,
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) .view-content > .views-row > article:hover,
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) .views-row article:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(6, 59, 92, 0.14) !important;
}

/* Hide default Drupal submitted-by/author clutter */
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) article > footer {
  display: none !important;
}

/* Card title */
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) article > h2 {
  margin: 0 0 1rem !important;
  padding: 0 0 0.85rem !important;
  border-bottom: 1px solid var(--cwh-border, #b8d5df) !important;
  color: var(--cwh-navy, #063b5c) !important;
  font-size: 1.05rem !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

#main-content:has(#views-exposed-form-cwh-river-resources-page-1) article > h2 a {
  color: var(--cwh-navy, #063b5c) !important;
  text-decoration: none !important;
}

#main-content:has(#views-exposed-form-cwh-river-resources-page-1) article > h2 a:hover,
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) article > h2 a:focus {
  color: var(--cwh-orange, #f49a45) !important;
}

/* Card body */
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) article > div {
  color: var(--cwh-text, #17384d) !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
}

/* Field groups inside cards */
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) article > div > div {
  margin-bottom: 0.9rem !important;
}

/* Field labels inside cards */
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) article > div > div > div:first-child {
  color: var(--cwh-navy, #063b5c) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  margin-bottom: 0.3rem !important;
}

/* Resource overview/body text */
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) article p {
  color: var(--cwh-muted, #536b78) !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* Taxonomy links as compact chips */
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) article a[href*="/taxonomy/term/"] {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  margin: 0.15rem 0.25rem 0.15rem 0 !important;
  padding: 0.22rem 0.55rem !important;
  border-radius: 999px !important;
  background: var(--cwh-soft-blue, #dceef3) !important;
  color: var(--cwh-navy, #063b5c) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

#main-content:has(#views-exposed-form-cwh-river-resources-page-1) article a[href*="/taxonomy/term/"]:hover,
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) article a[href*="/taxonomy/term/"]:focus {
  background: var(--cwh-orange, #f49a45) !important;
  color: var(--cwh-navy, #063b5c) !important;
}

/* Make normal resource links feel intentional */
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) article a:not([href*="/taxonomy/term/"]) {
  color: var(--cwh-navy, #063b5c);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* Empty result state */
#main-content:has(#views-exposed-form-cwh-river-resources-page-1) .view-empty {
  background: var(--cwh-cream, #f2eadc) !important;
  border: 1px solid #e3d5bd !important;
  border-radius: 14px !important;
  padding: 1.25rem !important;
  color: var(--cwh-text, #17384d) !important;
}

/* Mobile */
@media (max-width: 900px) {
  #main-content:has(#views-exposed-form-cwh-river-resources-page-1) .views-view-grid.horizontal {
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   Project Overview — What This Work Supports Pop-Out Paragraphs
   File to edit: cwh-homepage.css
   Purpose: style the actual Canvas paragraph output, not an <ol>
   ========================================================= */

/* Scope only to Project Overview page */
body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) {
  background:
    radial-gradient(circle at top left, rgba(244, 154, 69, 0.18), transparent 34%),
    linear-gradient(180deg, var(--cwh-soft-blue, #dceef3), #ffffff) !important;
}

/* The text wrapper for What This Work Supports */
body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content {
  max-width: 980px !important;
  margin: 0 auto !important;
  counter-reset: support-item;
}

/* Intro paragraph */
body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:first-child {
  max-width: 780px !important;
  margin: 0 0 2rem !important;
  color: var(--cwh-text, #17384d) !important;
  font-size: 1.08rem !important;
  line-height: 1.65 !important;
}

/* Each support item paragraph becomes a pop-out bullet row */
body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child) {
  counter-increment: support-item;
  position: relative !important;
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) !important;
  gap: 1rem !important;
  align-items: center !important;
  min-height: 86px !important;
  margin: 0 0 1rem !important;
  padding: 1rem 1.25rem 1rem 0 !important;
  color: var(--cwh-muted, #536b78) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Large numbered circle */
body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child)::before {
  content: counter(support-item, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cwh-orange, #f49a45);
  color: var(--cwh-navy, #063b5c);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 22px rgba(6, 59, 92, 0.16);
}

/* Hide line break spacing so the title/description behave like a designed block */
body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child) br {
  display: none !important;
}

/* Title line */
body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child) strong:first-child {
  grid-column: 2;
  display: block !important;
  color: var(--cwh-navy, #063b5c) !important;
  font-size: clamp(1rem, 1.6vw, 1.25rem) !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.055em !important;
  margin: 0 0 0.3rem !important;
}

/* Description line, even though Drupal made it bold */
body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child) strong:last-child {
  grid-column: 2;
  display: block !important;
  color: var(--cwh-muted, #536b78) !important;
  font-size: 0.98rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Divider line */
body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child)::after {
  content: "";
  position: absolute;
  left: 72px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--cwh-border, #b8d5df),
    rgba(184, 213, 223, 0)
  );
}

/* Staggered pop-out effect */
@media (min-width: 850px) {
  body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child):nth-child(even) {
    margin-left: 4rem !important;
  }

  body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child):nth-child(odd) {
    margin-right: 4rem !important;
  }
}

/* Mobile */
@media (max-width: 700px) {
  body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child) {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 0.85rem !important;
    min-height: 0 !important;
    padding: 0.9rem 0 !important;
  }

  body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child)::before {
    width: 48px !important;
    height: 48px !important;
    font-size: 0.86rem !important;
  }

  body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child)::after {
    left: 54px !important;
  }
}
/* =========================================================
   Project Overview — Larger / More Spacious Pop-Out Bullets
   File to edit: cwh-homepage.css
   Purpose: make What This Work Supports items larger and less stacked
   ========================================================= */

/* Give the whole list more breathing room */
body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content {
  max-width: 1080px !important;
}

/* Larger spacing between each support item */
body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child) {
  grid-template-columns: 96px minmax(0, 1fr) !important;
  gap: 1.5rem !important;
  min-height: 118px !important;
  margin-bottom: 1.85rem !important;
  padding: 1.35rem 1.5rem 1.35rem 0 !important;
}

/* Bigger numbered circle */
body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child)::before {
  width: 82px !important;
  height: 82px !important;
  font-size: 1.25rem !important;
  box-shadow: 0 14px 28px rgba(6, 59, 92, 0.2) !important;
}

/* Bigger title */
body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child) strong:first-child {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem) !important;
  margin-bottom: 0.45rem !important;
}

/* Bigger description text */
body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child) strong:last-child {
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
}

/* Move divider to match larger number circle */
body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child)::after {
  left: 96px !important;
}

/* Increase stagger spacing so they don't feel stacked */
@media (min-width: 850px) {
  body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child):nth-child(even) {
    margin-left: 5.5rem !important;
  }

  body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child):nth-child(odd) {
    margin-right: 5.5rem !important;
  }
}

/* Mobile fallback */
@media (max-width: 700px) {
  body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child) {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 1rem !important;
    min-height: 0 !important;
    margin-bottom: 1.35rem !important;
    padding: 1rem 0 !important;
  }

  body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child)::before {
    width: 56px !important;
    height: 56px !important;
    font-size: 0.95rem !important;
  }

  body.canvas-page:has(a[href*="/project-overview"].is-active) #block-consistent-content > section:nth-of-type(3) .stwl-text-content > p:not(:first-child)::after {
    left: 64px !important;
  }
}
/* =========================================================
   CWH Event Library Pages — Search UI + Event Card Polish
   File to edit: cwh-homepage.css
   Applies to:
   /events/upcoming
   /events/past
   ========================================================= */

/* Page shell */
#main-content:has(#views-exposed-form-cwh-events-library-page-2),
#main-content:has(#views-exposed-form-cwh-events-library-page-3) {
  background:
    radial-gradient(circle at top left, rgba(244, 154, 69, 0.13), transparent 30%),
    linear-gradient(180deg, var(--cwh-soft-blue, #dceef3) 0%, #ffffff 34%, #ffffff 100%) !important;
  color: var(--cwh-text, #17384d) !important;
}

/* Hide breadcrumb if it appears */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .stwl-breadcrumb,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .stwl-breadcrumb {
  display: none !important;
}

/* Page title */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .page-title,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .page-title {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 4.75rem 1.5rem 1rem !important;
  color: var(--cwh-navy, #063b5c) !important;
  font-size: clamp(2.7rem, 5vw, 4.75rem) !important;
  line-height: 1.02 !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

/* Main view wrapper */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-element-container,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-element-container {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 1.5rem 5rem !important;
}

/* Search/filter form shell */
#views-exposed-form-cwh-events-library-page-2,
#views-exposed-form-cwh-events-library-page-3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto !important;
  gap: 1rem !important;
  align-items: end !important;
  margin: 0 0 2rem !important;
  padding: 1.35rem !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid var(--cwh-border, #b8d5df) !important;
  border-radius: 22px !important;
  box-shadow: 0 12px 30px rgba(6, 59, 92, 0.12) !important;
}

/* Labels */
#views-exposed-form-cwh-events-library-page-2 label,
#views-exposed-form-cwh-events-library-page-3 label {
  display: block !important;
  margin: 0 0 0.45rem !important;
  color: var(--cwh-navy, #063b5c) !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

/* Text/autocomplete inputs */
#views-exposed-form-cwh-events-library-page-2 input[type="text"],
#views-exposed-form-cwh-events-library-page-2 input[type="search"],
#views-exposed-form-cwh-events-library-page-3 input[type="text"],
#views-exposed-form-cwh-events-library-page-3 input[type="search"] {
  width: 100% !important;
  min-height: 52px !important;
  border: 1px solid var(--cwh-border, #b8d5df) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: var(--cwh-text, #17384d) !important;
  font-size: 1rem !important;
  padding: 0.75rem 1.1rem !important;
  box-sizing: border-box !important;
}

/* Submit button */
#views-exposed-form-cwh-events-library-page-2 input[type="submit"],
#views-exposed-form-cwh-events-library-page-2 button[type="submit"],
#views-exposed-form-cwh-events-library-page-3 input[type="submit"],
#views-exposed-form-cwh-events-library-page-3 button[type="submit"] {
  min-height: 52px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--cwh-orange, #f49a45) !important;
  color: var(--cwh-navy, #063b5c) !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 0.75rem 1.55rem !important;
  cursor: pointer !important;
}

#views-exposed-form-cwh-events-library-page-2 input[type="submit"]:hover,
#views-exposed-form-cwh-events-library-page-2 button[type="submit"]:hover,
#views-exposed-form-cwh-events-library-page-3 input[type="submit"]:hover,
#views-exposed-form-cwh-events-library-page-3 button[type="submit"]:hover {
  background: #ffffff !important;
  outline: 1px solid var(--cwh-navy, #063b5c) !important;
}

/* Results grid */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)) !important;
  gap: 1.5rem !important;
  clear: both !important;
}

/* Remove default Views row/column behavior */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal .views-row,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal .views-row {
  display: contents !important;
}

#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal .views-col,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal .views-col {
  width: auto !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Event cards */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal .views-col > article,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal .views-col > article {
  position: relative !important;
  height: 100% !important;
  min-height: 100% !important;
  background: #ffffff !important;
  border: 1px solid var(--cwh-border, #b8d5df) !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 26px rgba(6, 59, 92, 0.1) !important;
  padding: 1.45rem !important;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease !important;
}

/* Event card labels */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal .views-col > article::before {
  content: "UPCOMING EVENT";
  display: inline-flex;
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: var(--cwh-orange, #f49a45);
  color: var(--cwh-navy, #063b5c);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal .views-col > article::before {
  content: "PAST EVENT";
  display: inline-flex;
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: var(--cwh-soft-blue, #dceef3);
  color: var(--cwh-navy, #063b5c);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Card hover */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal .views-col > article:hover,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal .views-col > article:hover {
  transform: translateY(-3px) !important;
  border-color: var(--cwh-orange, #f49a45) !important;
  box-shadow: 0 18px 38px rgba(6, 59, 92, 0.16) !important;
}

/* Hide submitted/admin clutter */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article > footer,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article > footer {
  display: none !important;
}

/* Card title */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article h2,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article h2 {
  margin: 0 0 1rem !important;
  padding: 0 !important;
  font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
}

/* Title link */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article h2 a,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article h2 a {
  color: var(--cwh-navy, #063b5c) !important;
  text-decoration: none !important;
}

#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article h2 a:hover,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article h2 a:hover {
  color: var(--cwh-orange, #f49a45) !important;
}

/* CTA buttons */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article h2 a::after {
  content: "View Event Details";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 1.15rem;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  background: var(--cwh-orange, #f49a45);
  color: var(--cwh-navy, #063b5c);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article h2 a::after {
  content: "View Event Materials";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 1.15rem;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  background: var(--cwh-orange, #f49a45);
  color: var(--cwh-navy, #063b5c);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Field wrapper */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article > div,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article > div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.6rem !important;
  margin-top: 1.25rem !important;
}

/* Metadata chips */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article > div > div,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article > div > div {
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 0.18rem !important;
  max-width: 100% !important;
  padding: 0.55rem 0.7rem !important;
  border: 1px solid rgba(184, 213, 223, 0.9) !important;
  border-radius: 14px !important;
  background: #f7fbfc !important;
  color: var(--cwh-text, #17384d) !important;
}

/* Field labels */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article > div > div > div:first-child,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article > div > div > div:first-child {
  color: var(--cwh-navy, #063b5c) !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.075em !important;
  text-transform: uppercase !important;
}

/* Field values */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article > div > div > div:last-child,
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article > div > div a,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article > div > div > div:last-child,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article > div > div a {
  color: var(--cwh-text, #17384d) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* Mobile/tablet */
@media (max-width: 980px) {
  #views-exposed-form-cwh-events-library-page-2,
  #views-exposed-form-cwh-events-library-page-3 {
    grid-template-columns: 1fr 1fr !important;
  }

  #views-exposed-form-cwh-events-library-page-2 .form-actions,
  #views-exposed-form-cwh-events-library-page-3 .form-actions {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 700px) {
  #main-content:has(#views-exposed-form-cwh-events-library-page-2) .page-title,
  #main-content:has(#views-exposed-form-cwh-events-library-page-3) .page-title {
    padding-top: 3.5rem !important;
  }

  #views-exposed-form-cwh-events-library-page-2,
  #views-exposed-form-cwh-events-library-page-3 {
    display: block !important;
    padding: 1.1rem !important;
  }

  #views-exposed-form-cwh-events-library-page-2 .form-item,
  #views-exposed-form-cwh-events-library-page-2 .form-actions,
  #views-exposed-form-cwh-events-library-page-3 .form-item,
  #views-exposed-form-cwh-events-library-page-3 .form-actions {
    margin-bottom: 1rem !important;
  }

  #main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal,
  #main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal {
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   CWH Event Library Pages — Replace Metadata Bubbles with Detail List
   File to edit: cwh-homepage.css
   Applies to:
   /events/upcoming
   /events/past
   Purpose: remove bubble/chip event details and organize them as clean info rows
   ========================================================= */

/* Event details wrapper inside each card */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article > div,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article > div {
  display: block !important;
  margin-top: 1.35rem !important;
  padding-top: 1.15rem !important;
  border-top: 1px solid var(--cwh-border, #b8d5df) !important;
}

/* Remove bubble/chip styling from each detail field */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article > div > div,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article > div > div {
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr) !important;
  gap: 0.9rem !important;
  align-items: start !important;

  max-width: none !important;
  width: 100% !important;

  margin: 0 !important;
  padding: 0.6rem 0 !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  border-bottom: 1px solid rgba(184, 213, 223, 0.55) !important;
}

/* Remove bottom border from the last detail row */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article > div > div:last-child,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article > div > div:last-child {
  border-bottom: 0 !important;
}

/* Detail labels: Date, Event Type, Location, Partners, etc. */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article > div > div > div:first-child,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article > div > div > div:first-child {
  color: var(--cwh-navy, #063b5c) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.075em !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

/* Detail values */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article > div > div > div:last-child,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article > div > div > div:last-child {
  color: var(--cwh-text, #17384d) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

/* Detail links */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article > div > div a,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article > div > div a {
  color: var(--cwh-navy, #063b5c) !important;
  font-size: 0.95rem !important;
  font-weight: 750 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* Add a subtle “Event Details” label above the info rows */
#main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article > div::before,
#main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article > div::before {
  content: "Event Details";
  display: block;
  margin: 0 0 0.45rem;
  color: var(--cwh-orange, #f49a45);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Mobile: stack label and value */
@media (max-width: 700px) {
  #main-content:has(#views-exposed-form-cwh-events-library-page-2) .views-view-grid.horizontal article > div > div,
  #main-content:has(#views-exposed-form-cwh-events-library-page-3) .views-view-grid.horizontal article > div > div {
    grid-template-columns: 1fr !important;
    gap: 0.25rem !important;
    padding: 0.7rem 0 !important;
  }
}
/* =========================================================
   CWH Water 101 Library — Match Event Card Style
   Mimics Upcoming/Past Event card structure:
   label, title, CTA, clean details rows
   ========================================================= */

body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)) !important;
  gap: 1.5rem !important;
  clear: both !important;
  margin-top: 2rem !important;
}

body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal .views-row {
  display: contents !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal .views-col {
  width: auto !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Card shell — same feel as Past/Upcoming Event cards */
body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal .views-col > article {
  position: relative !important;
  height: 100% !important;
  min-height: 100% !important;
  padding: 1.45rem !important;
  border-radius: 22px !important;
  border: 1px solid var(--cwh-border, #b8d5df) !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(6, 59, 92, 0.1) !important;
  overflow: hidden !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
}

body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal .views-col > article::before {
  content: "Water 101 Resource";
  display: inline-flex;
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: var(--cwh-soft-blue, #dceef3);
  color: var(--cwh-navy, #063b5c);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal .views-col > article:hover {
  transform: translateY(-3px) !important;
  border-color: var(--cwh-orange, #f49a45) !important;
  box-shadow: 0 18px 38px rgba(6, 59, 92, 0.16) !important;
}

/* Hide Drupal author/submitted footer */
body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article > footer {
  display: none !important;
}

/* Title */
body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article h2 {
  margin: 0 0 1rem !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
}

body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article h2 a {
  color: var(--cwh-navy, #063b5c) !important;
  text-decoration: none !important;
}

body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article h2 a:hover {
  color: var(--cwh-orange, #f49a45) !important;
}

/* CTA button under title, matching Event cards */
body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article h2 a::after {
  content: "View Resource";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 1.15rem;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  background: var(--cwh-orange, #f49a45);
  color: var(--cwh-navy, #063b5c);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Details wrapper — same as event pages */
body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article > div {
  display: block !important;
  margin-top: 1.35rem !important;
  padding-top: 1.15rem !important;
  border-top: 1px solid var(--cwh-border, #b8d5df) !important;
  background: transparent !important;
}

/* Add section label */
body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article > div::before {
  content: "Resource Details";
  display: block;
  margin: 0 0 0.45rem;
  color: var(--cwh-orange, #f49a45);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Detail rows */
body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article > div > div {
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr) !important;
  gap: 0.9rem !important;
  align-items: start !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0.6rem 0 !important;
  background: transparent !important;
  border-width: 0 0 1px !important;
  border-style: none none solid !important;
  border-color: rgba(184, 213, 223, 0.55) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Hide unlabeled relationship rows */
body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article > div > div:not(:has(> div:nth-child(2))) {
  display: none !important;
}

/* Hide CTA Label row because CTA is now handled visually under the title */
body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article > div > div:nth-of-type(4) {
  display: none !important;
}

/* Hide redundant Water 101 collection row */
body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article > div > div:has(a[href*="/taxonomy/term/142"]) {
  display: none !important;
}

body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article > div > div:last-child {
  border-bottom: 0 !important;
}

/* Labels */
body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article > div > div > div:first-child {
  color: var(--cwh-navy, #063b5c) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.075em !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

/* Values */
body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article > div > div > div:last-child {
  color: var(--cwh-text, #17384d) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

/* Multiple values inline with bullets */
body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article > div > div > div:last-child > div {
  display: inline !important;
}

body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article > div > div > div:last-child > div + div::before {
  content: " • ";
  color: var(--cwh-muted, #536b78) !important;
}

/* Links should look like event-page detail links, not pills */
body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article > div > div a {
  display: inline !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--cwh-navy, #063b5c) !important;
  font-size: 0.95rem !important;
  font-weight: 750 !important;
  line-height: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  transform: none !important;
}

body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article > div > div a:hover,
body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article > div > div a:focus {
  color: var(--cwh-orange, #f49a45) !important;
}

/* Mobile */
@media (max-width: 700px) {
  body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal {
    grid-template-columns: 1fr !important;
  }

  body:has(a[data-drupal-link-system-path="resources/water-101"].is-active) #block-consistent-content .cwh-card-list .views-view-grid.horizontal article > div > div {
    grid-template-columns: 1fr !important;
    gap: 0.25rem !important;
    padding: 0.7rem 0 !important;
  }
}
/* =========================================================
   CWH EPA How's My Waterway Search
   Replaces standalone EPA button with compact search form
   ========================================================= */

.cwh-epa-waterway-search {
  width: 100%;
  max-width: 560px;
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(6, 59, 92, 0.16);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(6, 59, 92, 0.1);
}

.cwh-epa-waterway-search label {
  display: block;
  margin: 0 0 0.65rem;
  color: var(--cwh-navy, #063b5c);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cwh-epa-waterway-search__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.cwh-epa-waterway-search input {
  min-height: 46px;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--cwh-border, #b8d5df);
  border-radius: 999px;
  background: #f8fbfc;
  color: var(--cwh-text, #17384d);
  font-size: 0.98rem;
  outline: none;
}

.cwh-epa-waterway-search input:focus {
  border-color: var(--cwh-orange, #f49a45);
  box-shadow: 0 0 0 3px rgba(244, 154, 69, 0.22);
  background: #ffffff;
}

.cwh-epa-waterway-search button {
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--cwh-orange, #f49a45);
  border-radius: 999px;
  background: var(--cwh-orange, #f49a45);
  color: var(--cwh-navy, #063b5c);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.cwh-epa-waterway-search button:hover,
.cwh-epa-waterway-search button:focus {
  background: var(--cwh-navy, #063b5c);
  border-color: var(--cwh-navy, #063b5c);
  color: #ffffff;
}

.cwh-epa-waterway-search p {
  margin: 0.7rem 0 0;
  color: var(--cwh-muted, #536b78);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .cwh-epa-waterway-search__row {
    grid-template-columns: 1fr;
  }

  .cwh-epa-waterway-search button {
    width: 100%;
  }
}
/* =========================================================
   CWH What Is a Watershed Page — Educational UX Polish
   Improves typography, spacing, hierarchy, and content scanning
   Does NOT affect top navigation or the first deep-blue hero section
   ========================================================= */

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) {
  --wiaw-navy: var(--cwh-navy, #063b5c);
  --wiaw-blue: var(--cwh-blue, #0d5a78);
  --wiaw-soft-blue: var(--cwh-soft-blue, #dceef3);
  --wiaw-orange: var(--cwh-orange, #f49a45);
  --wiaw-cream: var(--cwh-cream, #f7f3ea);
  --wiaw-border: var(--cwh-border, #b8d5df);
  --wiaw-text: var(--cwh-text, #17384d);
}

/* Overall rhythm below the hero */
body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:not(:first-of-type) {
  padding-block: clamp(4rem, 7vw, 6.5rem) !important;
}

/* Keep sections visually distinct without making them noisy */
body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(2),
body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(4),
body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(6) {
  background:
    radial-gradient(circle at 12% 10%, rgba(244, 154, 69, 0.08), transparent 32%),
    #ffffff !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(3),
body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(5),
body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(7) {
  background: linear-gradient(180deg, #f8fbfc, #ffffff) !important;
}

/* Section headings: larger, cleaner, more editorial */
body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:not(:first-of-type) h2 {
  max-width: 860px;
  color: var(--wiaw-navy) !important;
  font-size: clamp(2.1rem, 4vw, 3.45rem) !important;
  line-height: 1.02 !important;
  font-weight: 850 !important;
  letter-spacing: -0.035em !important;
  text-transform: none !important;
  margin-bottom: 1.5rem !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:not(:first-of-type) h2::after {
  max-width: 160px !important;
  background: linear-gradient(90deg, var(--wiaw-orange), rgba(244, 154, 69, 0)) !important;
}

/* Body text: bigger and easier to read */
body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:not(:first-of-type) .stwl-text-content {
  max-width: 780px !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:not(:first-of-type) .stwl-text-content p {
  color: var(--wiaw-text) !important;
  font-size: clamp(1.08rem, 1.5vw, 1.24rem) !important;
  line-height: 1.75 !important;
  font-weight: 480 !important;
}

/* ---------- Section 2: Definition / More Than a River ---------- */

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr) !important;
  gap: clamp(2rem, 5vw, 4.5rem) !important;
  align-items: stretch !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content {
  align-self: center;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-left: 6px solid var(--wiaw-orange);
  border-radius: 24px;
  background: #fffaf1;
  box-shadow: 0 14px 34px rgba(6, 59, 92, 0.08);
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content p:first-child {
  color: var(--wiaw-navy) !important;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem) !important;
  line-height: 1.45 !important;
  font-weight: 750 !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article {
  min-height: 320px;
  border: 1px solid rgba(6, 59, 92, 0.16) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 75% 18%, rgba(244, 154, 69, 0.28), transparent 25%),
    linear-gradient(135deg, #dceef3, #ffffff) !important;
  box-shadow: 0 18px 44px rgba(6, 59, 92, 0.12) !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article .p-5 {
  justify-content: end !important;
  padding: 2rem !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article h3 {
  max-width: 300px;
  color: var(--wiaw-navy) !important;
  font-size: 1.15rem !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
}

/* ---------- Section 3: Rain Falls / Water Moves / Everything Connects ---------- */

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) .grid {
  counter-reset: wiaw-step;
  gap: 1.35rem !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) article {
  position: relative;
  min-height: 260px;
  padding-top: 4.75rem;
  border: 1px solid rgba(6, 59, 92, 0.14) !important;
  border-radius: 28px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(6, 59, 92, 0.09) !important;
  overflow: hidden;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) article::before {
  counter-increment: wiaw-step;
  content: "0" counter(wiaw-step);
  position: absolute;
  top: 1.35rem;
  left: 1.35rem;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--wiaw-orange);
  color: var(--wiaw-navy);
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.03em;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) article::after {
  content: "";
  position: absolute;
  inset: auto -30px -42px auto;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(220, 238, 243, 0.9);
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) article .p-5 {
  padding: 0 1.45rem 1.55rem !important;
  position: relative;
  z-index: 1;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) article h3 {
  color: var(--wiaw-navy) !important;
  font-size: clamp(1.45rem, 2vw, 2rem) !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  text-transform: none !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) article p {
  color: var(--wiaw-text) !important;
  font-size: 1.02rem !important;
  line-height: 1.6 !important;
}

/* ---------- Section 4: Why Watersheds Matter ---------- */

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) > .stwl-container > .grid:first-of-type .stwl-text-content {
  max-width: 920px !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) > .stwl-container > .grid:first-of-type .stwl-text-content p {
  color: var(--wiaw-navy) !important;
  font-size: clamp(1.35rem, 2.4vw, 2rem) !important;
  line-height: 1.45 !important;
  font-weight: 760 !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) .mt-6 .stwl-text-content {
  max-width: none !important;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) .mt-6 .stwl-text-content p {
  margin: 0 !important;
  min-height: 220px;
  padding: 1.35rem;
  border-radius: 24px;
  border: 1px solid rgba(6, 59, 92, 0.14);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(6, 59, 92, 0.08);
  font-size: 0.98rem !important;
  line-height: 1.58 !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) .mt-6 .stwl-text-content p strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--wiaw-blue);
  font-size: 1.1rem;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* ---------- Section 5: LA Region ---------- */

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(5) .grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr) !important;
  gap: clamp(2rem, 5vw, 4rem) !important;
  align-items: stretch !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(5) .stwl-text-content {
  align-self: center;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(5) article {
  min-height: 360px;
  border-radius: 30px !important;
  border: 1px solid rgba(6, 59, 92, 0.14) !important;
  background:
    linear-gradient(135deg, rgba(6, 59, 92, 0.9), rgba(13, 90, 120, 0.84)),
    radial-gradient(circle at 20% 80%, rgba(244, 154, 69, 0.35), transparent 34%) !important;
  color: #ffffff !important;
  box-shadow: 0 22px 50px rgba(6, 59, 92, 0.18) !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(5) article .p-5 {
  justify-content: end !important;
  padding: 2rem !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(5) article h3 {
  color: #ffffff !important;
  max-width: 360px;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem) !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  text-transform: none !important;
  letter-spacing: -0.03em !important;
}

/* ---------- Section 6: EPA Search Module ---------- */

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(6) .grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr) !important;
  gap: clamp(1.5rem, 4vw, 3rem) !important;
  align-items: center !important;
  padding: clamp(1.5rem, 4vw, 2.3rem);
  border-radius: 30px;
  background: var(--wiaw-soft-blue);
  border: 1px solid rgba(6, 59, 92, 0.12);
  box-shadow: 0 16px 36px rgba(6, 59, 92, 0.1);
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(6) .stwl-text-content p {
  margin: 0 !important;
  color: var(--wiaw-navy) !important;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem) !important;
  line-height: 1.55 !important;
  font-weight: 700 !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) .cwh-epa-waterway-search {
  max-width: none !important;
  margin-top: 0 !important;
  border-radius: 24px !important;
}

/* ---------- Section 7: Keep Learning ---------- */

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(7) article {
  border-radius: 26px !important;
  border: 1px solid rgba(6, 59, 92, 0.14) !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(6, 59, 92, 0.08) !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(7) article .p-5 {
  padding: 1.55rem !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(7) article h3 a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wiaw-navy) !important;
  font-size: 1.12rem !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(7) article h3 a::after {
  content: "→";
  color: var(--wiaw-orange);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 180ms ease;
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(7) article:hover h3 a::after {
  transform: translateX(4px);
}

body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(7) article p {
  color: var(--wiaw-text) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

/* Mobile */
@media (max-width: 900px) {
  body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .grid,
  body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(5) .grid,
  body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(6) .grid {
    grid-template-columns: 1fr !important;
  }

  body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) .mt-6 .stwl-text-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:not(:first-of-type) {
    padding-block: 3.25rem !important;
  }

  body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) .mt-6 .stwl-text-content {
    grid-template-columns: 1fr;
  }

  body.canvas-page:has(a[href$="/what-is-a-watershed"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) .mt-6 .stwl-text-content p {
    min-height: 0;
  }
}
/* =========================================================
   CWH Page Load Fade-In
   Fades in page content while keeping the top navigation stable
   ========================================================= */

@keyframes cwh-page-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   CWH Refined Page Load Fade-In
   Keeps hero/header backgrounds stable, fades inner content only
   ========================================================= */

/* Stop the earlier broad animation from fading whole page sections */
@media (prefers-reduced-motion: no-preference) {
  main,
  .main-content,
  .layout-main-wrapper,
  #main-content,
  #block-consistent-content,
  #block-consistent-content > section {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  /* Fade only the actual content inside each page section */
  #block-consistent-content > section > .stwl-container > *,
  #block-consistent-content .view-header,
  #block-consistent-content .view-filters,
  #block-consistent-content .view-content,
  #block-consistent-content article,
  #block-consistent-content .stwl-text-content,
  #block-consistent-content .grid > *,
  #block-consistent-content .views-row {
    animation: cwh-page-fade-in 560ms ease-out both;
  }

  /* Slight stagger so it feels smoother */
  #block-consistent-content > section:nth-of-type(1) > .stwl-container > * {
    animation-delay: 40ms;
  }

  #block-consistent-content > section:nth-of-type(2) > .stwl-container > * {
    animation-delay: 100ms;
  }

  #block-consistent-content > section:nth-of-type(3) > .stwl-container > * {
    animation-delay: 140ms;
  }

  #block-consistent-content > section:nth-of-type(4) > .stwl-container > * {
    animation-delay: 180ms;
  }
}

/* Keep nav/header fully visible immediately */
.site-header,
header,
nav,
.region-header,
.region-primary-menu,
#block-consistent-main-menu,
#block-consistent-site-branding {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  main,
  .main-content,
  .layout-main-wrapper,
  #main-content,
  #block-consistent-content,
  #block-consistent-content *,
  #block-consistent-content > section {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
/* =========================================================
   CWH Modern Detail Pages
   Applies to individual Resource/Event-style Drupal node pages
   ========================================================= */

main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) {
  --cwh-detail-navy: #08324f;
  --cwh-detail-blue: #0d5a78;
  --cwh-detail-teal: #2f8f83;
  --cwh-detail-orange: #f28c28;
  --cwh-detail-cream: #f7f3ea;
  --cwh-detail-border: rgba(8, 50, 79, 0.14);

  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: clamp(1.75rem, 4vw, 3rem) 1.25rem 5rem !important;
}

/* Modern hero title card */
main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) > h1.page-title {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 0 1.75rem !important;
  padding: clamp(2.4rem, 5vw, 4.2rem) clamp(1.6rem, 5vw, 4rem) !important;
  border-radius: 32px;
  background:
    radial-gradient(circle at 85% 15%, rgba(242, 140, 40, 0.34), transparent 32%),
    linear-gradient(135deg, var(--cwh-detail-navy), var(--cwh-detail-blue) 58%, var(--cwh-detail-teal));
  color: #fff !important;
  box-shadow: 0 24px 60px rgba(8, 50, 79, 0.22);
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}

main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) > h1.page-title::before {
  content: "CWH Detail";
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) > h1.page-title span {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 900px;
  font-size: clamp(2.35rem, 5.4vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #fff !important;
}

/* Hide old Drupal author/date output */
main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > footer {
  display: none !important;
}

/* Main detail card */
main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--cwh-detail-border);
  background: #fff;
  box-shadow: 0 20px 55px rgba(8, 50, 79, 0.12);
}

/* Content wrapper */
main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  gap: 1rem;
}

/* If page has an intro/description paragraph, make it the main left column */
main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div:has(> div > p) {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.75fr);
  align-items: start;
}

/* Description panel */
main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div:has(> div > p) > div:has(> p) {
  grid-column: 1;
  grid-row: 1 / span 30;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: 24px;
  border: 1px solid rgba(242, 140, 40, 0.22);
  border-left: 6px solid var(--cwh-detail-orange);
  background: linear-gradient(180deg, #fffaf1, #ffffff);
}

main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div:has(> div > p) > div:has(> p) p {
  margin: 0;
  color: #22313d;
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  line-height: 1.75;
}

/* Metadata fields go in right column when there is a description */
main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div:has(> div > p) > div:not(:has(> p)) {
  grid-column: 2;
}

/* Pages without a description become a clean two-column metadata layout */
main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div:not(:has(> div > p)) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Field cards */
main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div > div:not(:has(> p)) {
  min-width: 0;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(8, 50, 79, 0.12);
  background: #f8fbfa;
  box-shadow: 0 8px 22px rgba(8, 50, 79, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div > div:not(:has(> p)):hover {
  transform: translateY(-2px);
  border-color: rgba(13, 90, 120, 0.24);
  box-shadow: 0 14px 30px rgba(8, 50, 79, 0.075);
}

/* Field labels */
main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div > div:not(:has(> p)) > div:first-child {
  margin-bottom: 0.58rem;
  color: var(--cwh-detail-blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Field values */
main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div > div:not(:has(> p)) > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.5rem;
  color: #142b3c;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.5;
}

/* Taxonomy/value links as modern pills */
main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div > div:not(:has(> p)) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 90, 120, 0.18);
  background: #fff;
  color: var(--cwh-detail-blue);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div > div:not(:has(> p)) a:hover,
main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div > div:not(:has(> p)) a:focus {
  border-color: var(--cwh-detail-blue);
  background: var(--cwh-detail-blue);
  color: #fff;
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 820px) {
  main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) {
    padding-inline: 1rem !important;
  }

  main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) > h1.page-title {
    border-radius: 24px;
  }

  main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div,
  main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div:has(> div > p),
  main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div:not(:has(> div > p)) {
    display: grid;
    grid-template-columns: 1fr;
  }

  main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div:has(> div > p) > div:has(> p),
  main#main-content > .stwl-container.py-10:has(> h1.page-title):has(#block-consistent-content > article) #block-consistent-content > article > div:has(> div > p) > div:not(:has(> p)) {
    grid-column: 1;
    grid-row: auto;
  }
}
/* =========================================================
   CWH Purpose-Based Page UX Polish
   Contact, Volunteer, Partner, Donate, Board, Resources, Events
   Enhances each page based on its primary user goal
   ========================================================= */

/* ---------- Shared page polish for these section pages ---------- */

:where(
  body.canvas-page:has(a[href$="/contact-us"].is-active),
  body.canvas-page:has(a[href$="/volunteer-internship"].is-active),
  body.canvas-page:has(a[href$="/partner-with-cwh"].is-active),
  body.canvas-page:has(a[href$="/donate"].is-active),
  body.canvas-page:has(a[href$="/board-of-directors"].is-active),
  body.canvas-page:has(a[href$="/resources"].is-active),
  body.canvas-page:has(a[href$="/events"].is-active)
) {
  --cwh-purpose-navy: var(--cwh-navy, #063b5c);
  --cwh-purpose-blue: var(--cwh-blue, #0d5a78);
  --cwh-purpose-orange: var(--cwh-orange, #f49a45);
  --cwh-purpose-soft-blue: var(--cwh-soft-blue, #dceef3);
  --cwh-purpose-cream: var(--cwh-cream, #f7f3ea);
  --cwh-purpose-border: var(--cwh-border, #b8d5df);
  --cwh-purpose-text: var(--cwh-text, #17384d);
}

/* Keep the first hero section stable; polish sections below it */
:where(
  body.canvas-page:has(a[href$="/contact-us"].is-active),
  body.canvas-page:has(a[href$="/volunteer-internship"].is-active),
  body.canvas-page:has(a[href$="/partner-with-cwh"].is-active),
  body.canvas-page:has(a[href$="/donate"].is-active),
  body.canvas-page:has(a[href$="/board-of-directors"].is-active),
  body.canvas-page:has(a[href$="/resources"].is-active),
  body.canvas-page:has(a[href$="/events"].is-active)
) #block-consistent-content > section.py-10:not(:first-of-type) {
  padding-block: clamp(4rem, 7vw, 6.25rem) !important;
}

:where(
  body.canvas-page:has(a[href$="/contact-us"].is-active),
  body.canvas-page:has(a[href$="/volunteer-internship"].is-active),
  body.canvas-page:has(a[href$="/partner-with-cwh"].is-active),
  body.canvas-page:has(a[href$="/donate"].is-active),
  body.canvas-page:has(a[href$="/board-of-directors"].is-active),
  body.canvas-page:has(a[href$="/resources"].is-active),
  body.canvas-page:has(a[href$="/events"].is-active)
) #block-consistent-content > section.py-10:not(:first-of-type) h2,
:where(
  body.canvas-page:has(a[href$="/contact-us"].is-active),
  body.canvas-page:has(a[href$="/volunteer-internship"].is-active),
  body.canvas-page:has(a[href$="/partner-with-cwh"].is-active),
  body.canvas-page:has(a[href$="/donate"].is-active),
  body.canvas-page:has(a[href$="/board-of-directors"].is-active),
  body.canvas-page:has(a[href$="/resources"].is-active),
  body.canvas-page:has(a[href$="/events"].is-active)
) #block-consistent-content > section.py-10:not(:first-of-type) h3 {
  color: var(--cwh-purpose-navy) !important;
  letter-spacing: -0.025em !important;
}

:where(
  body.canvas-page:has(a[href$="/contact-us"].is-active),
  body.canvas-page:has(a[href$="/volunteer-internship"].is-active),
  body.canvas-page:has(a[href$="/partner-with-cwh"].is-active),
  body.canvas-page:has(a[href$="/donate"].is-active),
  body.canvas-page:has(a[href$="/board-of-directors"].is-active),
  body.canvas-page:has(a[href$="/resources"].is-active),
  body.canvas-page:has(a[href$="/events"].is-active)
) #block-consistent-content > section.py-10:not(:first-of-type) h2 {
  font-size: clamp(2.15rem, 4vw, 3.35rem) !important;
  line-height: 1.04 !important;
  font-weight: 900 !important;
  margin-bottom: 1.35rem !important;
}

:where(
  body.canvas-page:has(a[href$="/contact-us"].is-active),
  body.canvas-page:has(a[href$="/volunteer-internship"].is-active),
  body.canvas-page:has(a[href$="/partner-with-cwh"].is-active),
  body.canvas-page:has(a[href$="/donate"].is-active),
  body.canvas-page:has(a[href$="/board-of-directors"].is-active),
  body.canvas-page:has(a[href$="/resources"].is-active),
  body.canvas-page:has(a[href$="/events"].is-active)
) #block-consistent-content > section.py-10:not(:first-of-type) p {
  color: var(--cwh-purpose-text) !important;
  font-size: clamp(1.03rem, 1.4vw, 1.17rem) !important;
  line-height: 1.68 !important;
}

/* Shared modern card behavior */
:where(
  body.canvas-page:has(a[href$="/contact-us"].is-active),
  body.canvas-page:has(a[href$="/donate"].is-active),
  body.canvas-page:has(a[href$="/board-of-directors"].is-active),
  body.canvas-page:has(a[href$="/resources"].is-active),
  body.canvas-page:has(a[href$="/events"].is-active)
) #block-consistent-content article {
  border-radius: 24px !important;
  border: 1px solid rgba(6, 59, 92, 0.14) !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(6, 59, 92, 0.08) !important;
  overflow: hidden !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
}

:where(
  body.canvas-page:has(a[href$="/contact-us"].is-active),
  body.canvas-page:has(a[href$="/donate"].is-active),
  body.canvas-page:has(a[href$="/board-of-directors"].is-active),
  body.canvas-page:has(a[href$="/resources"].is-active),
  body.canvas-page:has(a[href$="/events"].is-active)
) #block-consistent-content article:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(244, 154, 69, 0.48) !important;
  box-shadow: 0 18px 38px rgba(6, 59, 92, 0.14) !important;
}
/* =========================================================
   CONTACT PAGE
   Purpose: make contact information and next action obvious
   ========================================================= */

body.canvas-page:has(a[href$="/contact-us"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) {
  background: linear-gradient(180deg, #f8fbfc, #ffffff) !important;
}

body.canvas-page:has(a[href$="/contact-us"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .grid {
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr) !important;
  gap: clamp(1.5rem, 4vw, 3rem) !important;
  align-items: stretch !important;
}

/* Contact info becomes a strong contact card */
body.canvas-page:has(a[href$="/contact-us"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content {
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 12%, rgba(244, 154, 69, 0.32), transparent 28%),
    linear-gradient(135deg, var(--cwh-purpose-navy), var(--cwh-purpose-blue));
  box-shadow: 0 18px 42px rgba(6, 59, 92, 0.18);
}

body.canvas-page:has(a[href$="/contact-us"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content p {
  margin: 0 0 1rem !important;
  padding: 0.85rem 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  font-size: 1.08rem !important;
  font-weight: 700 !important;
}

body.canvas-page:has(a[href$="/contact-us"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content p:first-child {
  font-size: clamp(1.25rem, 2vw, 1.6rem) !important;
  line-height: 1.45 !important;
}

/* Contact form placeholder reads as next build item */
body.canvas-page:has(a[href$="/contact-us"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article {
  min-height: 100%;
  border-style: dashed !important;
  border-width: 2px !important;
  border-color: rgba(244, 154, 69, 0.55) !important;
  background: #fffaf1 !important;
}

body.canvas-page:has(a[href$="/contact-us"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article h3::before {
  content: "Next Integration";
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: var(--cwh-purpose-orange);
  color: var(--cwh-purpose-navy);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Learn more cards */
body.canvas-page:has(a[href$="/contact-us"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) article h3 a::after {
  content: " →";
  color: var(--cwh-purpose-orange);
}
/* =========================================================
   VOLUNTEER / INTERNSHIP PAGE
   Purpose: make paths to involvement feel clear and approachable
   ========================================================= */

body.canvas-page:has(a[href$="/volunteer-internship"].is-active) #block-consistent-content > section.py-10:nth-of-type(2),
body.canvas-page:has(a[href$="/volunteer-internship"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) {
  background: linear-gradient(180deg, #ffffff, #f8fbfc) !important;
}

body.canvas-page:has(a[href$="/volunteer-internship"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content,
body.canvas-page:has(a[href$="/volunteer-internship"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content {
  position: relative;
  max-width: 980px !important;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 28px;
  border: 1px solid rgba(6, 59, 92, 0.14);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(6, 59, 92, 0.09);
}

/* Give Volunteer and Internship two different accent colors */
body.canvas-page:has(a[href$="/volunteer-internship"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content {
  border-left: 7px solid var(--cwh-purpose-orange);
}

body.canvas-page:has(a[href$="/volunteer-internship"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content {
  border-left: 7px solid var(--cwh-purpose-blue);
}

/* Make the intro sentence the lead, then make the following points easier to scan */
body.canvas-page:has(a[href$="/volunteer-internship"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content p:first-child,
body.canvas-page:has(a[href$="/volunteer-internship"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content p:first-child {
  color: var(--cwh-purpose-navy) !important;
  font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
  line-height: 1.48 !important;
  font-weight: 760 !important;
}

body.canvas-page:has(a[href$="/volunteer-internship"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content p:not(:first-child):not(:empty),
body.canvas-page:has(a[href$="/volunteer-internship"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content p:not(:first-child):not(:empty) {
  margin-top: 0.9rem !important;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: #f8fbfc;
  border: 1px solid rgba(6, 59, 92, 0.1);
}

/* Final CTA — light section with normal dark CWH text */
body.canvas-page:has(a[href$="/volunteer-internship"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) {
  background: #fffaf1 !important;
  color: var(--cwh-text, #17384d) !important;
}

body.canvas-page:has(a[href$="/volunteer-internship"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) h2 {
  color: var(--cwh-navy, #063b5c) !important;
}

body.canvas-page:has(a[href$="/volunteer-internship"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) p {
  color: var(--cwh-text, #17384d) !important;
}
/* =========================================================
   PARTNER WITH CWH PAGE
   Purpose: make partnership options feel credible and structured
   ========================================================= */

body.canvas-page:has(a[href$="/partner-with-cwh"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content {
  max-width: 1040px !important;
}

body.canvas-page:has(a[href$="/partner-with-cwh"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content p:first-child {
  color: var(--cwh-purpose-navy) !important;
  font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
  font-weight: 760 !important;
  line-height: 1.5 !important;
}

/* Turn partnership headings into clear option labels */
body.canvas-page:has(a[href$="/partner-with-cwh"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content p:nth-of-type(2),
body.canvas-page:has(a[href$="/partner-with-cwh"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content p:nth-of-type(4),
body.canvas-page:has(a[href$="/partner-with-cwh"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content p:nth-of-type(6),
body.canvas-page:has(a[href$="/partner-with-cwh"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content p:nth-of-type(8) {
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
  color: var(--cwh-purpose-blue) !important;
  font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

body.canvas-page:has(a[href$="/partner-with-cwh"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content p:nth-of-type(3),
body.canvas-page:has(a[href$="/partner-with-cwh"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content p:nth-of-type(5),
body.canvas-page:has(a[href$="/partner-with-cwh"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content p:nth-of-type(7),
body.canvas-page:has(a[href$="/partner-with-cwh"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content p:nth-of-type(9) {
  margin-top: 0.55rem !important;
  padding: 1.15rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(6, 59, 92, 0.12);
  border-left: 6px solid var(--cwh-purpose-orange);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(6, 59, 92, 0.07);
}

/* Who we work with becomes a credibility panel */
body.canvas-page:has(a[href$="/partner-with-cwh"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) {
  background: linear-gradient(180deg, #f8fbfc, #ffffff) !important;
}

body.canvas-page:has(a[href$="/partner-with-cwh"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content {
  max-width: 960px !important;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 16%, rgba(244, 154, 69, 0.24), transparent 30%),
    var(--cwh-purpose-soft-blue);
  border: 1px solid rgba(6, 59, 92, 0.12);
}

/* Final partner CTA — light section with normal dark CWH text */
body.canvas-page:has(a[href$="/partner-with-cwh"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) {
  background: #fffaf1 !important;
  color: var(--cwh-text, #17384d) !important;
}

body.canvas-page:has(a[href$="/partner-with-cwh"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) h2 {
  color: var(--cwh-navy, #063b5c) !important;
}

body.canvas-page:has(a[href$="/partner-with-cwh"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) .stwl-text-content,
body.canvas-page:has(a[href$="/partner-with-cwh"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) .stwl-text-content p,
body.canvas-page:has(a[href$="/partner-with-cwh"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) .stwl-text-content p * {
  color: var(--cwh-text, #17384d) !important;
}
/* =========================================================
   DONATE PAGE
   Purpose: make the giving action feel central and purposeful
   ========================================================= */

body.canvas-page:has(a[href$="/donate"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) {
  background:
    radial-gradient(circle at 90% 10%, rgba(244, 154, 69, 0.24), transparent 30%),
    #fffaf1 !important;
}

body.canvas-page:has(a[href$="/donate"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content,
body.canvas-page:has(a[href$="/donate"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) p {
  max-width: 900px !important;
  color: var(--cwh-purpose-navy) !important;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem) !important;
  line-height: 1.48 !important;
  font-weight: 760 !important;
}

/* Donation placeholder gets highest visual priority */
body.canvas-page:has(a[href$="/donate"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) .grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr) !important;
  gap: 1.5rem !important;
  align-items: stretch !important;
}

body.canvas-page:has(a[href$="/donate"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) article:first-child {
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 154, 69, 0.32), transparent 26%),
    linear-gradient(135deg, var(--cwh-purpose-navy), var(--cwh-purpose-blue)) !important;
  color: #ffffff !important;
  border: 0 !important;
}

body.canvas-page:has(a[href$="/donate"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) article:first-child h3,
body.canvas-page:has(a[href$="/donate"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) article:first-child p {
  color: #ffffff !important;
}

body.canvas-page:has(a[href$="/donate"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) article:first-child h3::before {
  content: "PayPal Placeholder";
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: var(--cwh-purpose-orange);
  color: var(--cwh-purpose-navy);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Other ways to support = secondary cards */
body.canvas-page:has(a[href$="/donate"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) article h3 a::after {
  content: " →";
  color: var(--cwh-purpose-orange);
}
/* =========================================================
   BOARD OF DIRECTORS PAGE
   Purpose: make leadership and governance easy to scan
   ========================================================= */

body.canvas-page:has(a[href$="/board-of-directors"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) {
  background: linear-gradient(180deg, #f8fbfc, #ffffff) !important;
}

/* Officers are featured leadership cards */
body.canvas-page:has(a[href$="/board-of-directors"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article {
  border-top: 6px solid var(--cwh-purpose-orange) !important;
}

body.canvas-page:has(a[href$="/board-of-directors"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article h3 {
  font-size: 0.85rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  color: var(--cwh-purpose-blue) !important;
}

body.canvas-page:has(a[href$="/board-of-directors"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article p {
  color: var(--cwh-purpose-navy) !important;
  font-size: 1.12rem !important;
  font-weight: 760 !important;
}

/* Directors become compact, readable directory cards */
body.canvas-page:has(a[href$="/board-of-directors"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) article {
  min-height: 150px;
  box-shadow: 0 8px 20px rgba(6, 59, 92, 0.07) !important;
}

body.canvas-page:has(a[href$="/board-of-directors"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) article h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem) !important;
  line-height: 1.18 !important;
  font-weight: 900 !important;
}

body.canvas-page:has(a[href$="/board-of-directors"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) article p {
  font-size: 0.96rem !important;
  line-height: 1.45 !important;
  color: var(--cwh-purpose-text) !important;
}

/* About CWH crosslinks */
body.canvas-page:has(a[href$="/board-of-directors"].is-active) #block-consistent-content > section.py-10:nth-of-type(4) article h3 a::after {
  content: " →";
  color: var(--cwh-purpose-orange);
}
/* =========================================================
   RESOURCES PAGE
   Purpose: help users choose the right entry point quickly
   ========================================================= */

body.canvas-page:has(a[href$="/resources"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) {
  background: linear-gradient(180deg, #f8fbfc, #ffffff) !important;
}

body.canvas-page:has(a[href$="/resources"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content:first-of-type,
body.canvas-page:has(a[href$="/resources"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) > .stwl-container > p:first-of-type {
  max-width: 860px !important;
  color: var(--cwh-purpose-navy) !important;
  font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
  font-weight: 760 !important;
  line-height: 1.5 !important;
}

body.canvas-page:has(a[href$="/resources"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article {
  position: relative;
  min-height: 260px;
}

body.canvas-page:has(a[href$="/resources"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article:first-of-type::before {
  content: "Start Here";
}

body.canvas-page:has(a[href$="/resources"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article:nth-of-type(2)::before {
  content: "Learning Hub";
}

body.canvas-page:has(a[href$="/resources"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article::before {
  display: inline-flex;
  width: fit-content;
  margin: 1.35rem 1.35rem 0;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: var(--cwh-purpose-soft-blue);
  color: var(--cwh-purpose-navy);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.canvas-page:has(a[href$="/resources"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article h3 a::after {
  content: " →";
  color: var(--cwh-purpose-orange);
}
/* =========================================================
   EVENTS PAGE
   Purpose: push users to upcoming events, then archive/materials
   ========================================================= */

body.canvas-page:has(a[href$="/events"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) {
  background: linear-gradient(180deg, #f8fbfc, #ffffff) !important;
}

/* Upcoming Events should be the strongest next action */
body.canvas-page:has(a[href$="/events"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article:first-of-type {
  background:
    radial-gradient(circle at 86% 10%, rgba(244, 154, 69, 0.34), transparent 28%),
    linear-gradient(135deg, var(--cwh-purpose-navy), var(--cwh-purpose-blue)) !important;
  color: #ffffff !important;
  border: 0 !important;
}

body.canvas-page:has(a[href$="/events"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article:first-of-type h3,
body.canvas-page:has(a[href$="/events"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article:first-of-type h3 a,
body.canvas-page:has(a[href$="/events"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article:first-of-type p {
  color: #ffffff !important;
}

body.canvas-page:has(a[href$="/events"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article:first-of-type h3::before {
  content: "Primary";
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: var(--cwh-purpose-orange);
  color: var(--cwh-purpose-navy);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.canvas-page:has(a[href$="/events"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) article h3 a::after {
  content: " →";
  color: var(--cwh-purpose-orange);
}

/* Event resources + registration become paired support modules */
body.canvas-page:has(a[href$="/events"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) {
  background: #fffaf1 !important;
}

body.canvas-page:has(a[href$="/events"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) article {
  border-left: 6px solid var(--cwh-purpose-orange) !important;
}

body.canvas-page:has(a[href$="/events"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) article h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem) !important;
  font-weight: 900 !important;
}

body.canvas-page:has(a[href$="/events"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) article h3 a::after {
  content: " →";
  color: var(--cwh-purpose-orange);
}

/* ---------- Mobile cleanup ---------- */

@media (max-width: 900px) {
  body.canvas-page:has(a[href$="/contact-us"].is-active) #block-consistent-content > section.py-10:nth-of-type(2) .grid,
  body.canvas-page:has(a[href$="/donate"].is-active) #block-consistent-content > section.py-10:nth-of-type(3) .grid {
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   CWH Purpose-Based Page UX Polish — Get Involved + Mission
   Enhances each page based on what the page is supposed to do.
   Does NOT affect nav or first deep-blue hero section.
   ========================================================= */

:where(
  body.path-get-involved,
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"]),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) {
  --cwh-purpose-navy: var(--cwh-navy, #063b5c);
  --cwh-purpose-blue: var(--cwh-blue, #0d5a78);
  --cwh-purpose-orange: var(--cwh-orange, #f49a45);
  --cwh-purpose-soft-blue: var(--cwh-soft-blue, #dceef3);
  --cwh-purpose-cream: var(--cwh-cream, #f7f3ea);
  --cwh-purpose-border: var(--cwh-border, #b8d5df);
  --cwh-purpose-text: var(--cwh-text, #17384d);
}

/* Shared spacing below the hero */
:where(
  body.path-get-involved,
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"]),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:not(:first-of-type) {
  padding-block: clamp(4rem, 7vw, 6.5rem) !important;
}

:where(
  body.path-get-involved,
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"]),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:not(:first-of-type) h2 {
  color: var(--cwh-purpose-navy) !important;
  font-size: clamp(2.2rem, 4vw, 3.45rem) !important;
  line-height: 1.04 !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em !important;
  margin-bottom: 1.35rem !important;
}

:where(
  body.path-get-involved,
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"]),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:not(:first-of-type) p {
  color: var(--cwh-purpose-text) !important;
  font-size: clamp(1.04rem, 1.45vw, 1.18rem) !important;
  line-height: 1.68 !important;
}
/* =========================================================
   GET INVOLVED PAGE
   Purpose: turn interest into action paths.
   ========================================================= */

/* Make the main options feel like clear pathways */
:where(
  body.path-get-involved,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) {
  background:
    radial-gradient(circle at 90% 12%, rgba(244, 154, 69, 0.14), transparent 30%),
    linear-gradient(180deg, #f8fbfc, #ffffff) !important;
}

:where(
  body.path-get-involved,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) .grid {
  gap: 1.35rem !important;
}

/* Pathway cards */
:where(
  body.path-get-involved,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) article {
  position: relative;
  min-height: 280px;
  border-radius: 28px !important;
  border: 1px solid rgba(6, 59, 92, 0.14) !important;
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(6, 59, 92, 0.1) !important;
  overflow: hidden !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
}

:where(
  body.path-get-involved,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) article:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(244, 154, 69, 0.5) !important;
  box-shadow: 0 20px 44px rgba(6, 59, 92, 0.16) !important;
}

/* Add labels to the two user pathways */
:where(
  body.path-get-involved,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) article:first-of-type::before {
  content: "For Organizations";
}

:where(
  body.path-get-involved,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) article:nth-of-type(2)::before {
  content: "For Individuals";
}

:where(
  body.path-get-involved,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) article::before {
  display: inline-flex;
  width: fit-content;
  margin: 1.35rem 1.35rem 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--cwh-purpose-soft-blue);
  color: var(--cwh-purpose-navy);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:where(
  body.path-get-involved,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) article .p-5 {
  padding: 1.35rem !important;
}

:where(
  body.path-get-involved,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) article h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem) !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em !important;
}

:where(
  body.path-get-involved,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) article h3 a {
  color: var(--cwh-purpose-navy) !important;
  text-decoration: none !important;
}

:where(
  body.path-get-involved,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) article h3 a::after {
  content: " →";
  color: var(--cwh-purpose-orange);
}

/* Stay Connected should feel like a follow-up action, not a generic block */
:where(
  body.path-get-involved,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) {
  background: #fffaf1 !important;
}

:where(
  body.path-get-involved,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) .grid {
  align-items: stretch !important;
  gap: 1.5rem !important;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 30px;
  border: 1px solid rgba(6, 59, 92, 0.12);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(6, 59, 92, 0.1);
}

:where(
  body.path-get-involved,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content p:first-child {
  color: var(--cwh-purpose-navy) !important;
  font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
  font-weight: 780 !important;
  line-height: 1.45 !important;
}

:where(
  body.path-get-involved,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) article {
  border-radius: 24px !important;
  border: 2px dashed rgba(244, 154, 69, 0.55) !important;
  background: #fffaf1 !important;
  box-shadow: none !important;
}

:where(
  body.path-get-involved,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) article h3::before {
  content: "Integration Pending";
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: var(--cwh-purpose-orange);
  color: var(--cwh-purpose-navy);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Bottom donate strip should feel like a strong final action */
:where(
  body.path-get-involved,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > .stwl-container:last-child > .flex {
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 86% 18%, rgba(244, 154, 69, 0.32), transparent 30%),
    linear-gradient(135deg, var(--cwh-purpose-navy), var(--cwh-purpose-blue)) !important;
  box-shadow: 0 20px 48px rgba(6, 59, 92, 0.18) !important;
}
/* =========================================================
   MISSION AND HISTORY PAGE
   Purpose: communicate credibility, origin, and long-term mission.
   ========================================================= */

/* Mission section: make the mission feel like a statement, not normal copy */
:where(
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) {
  background:
    radial-gradient(circle at 90% 12%, rgba(244, 154, 69, 0.12), transparent 30%),
    #ffffff !important;
}

:where(
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content {
  max-width: 980px !important;
  padding: clamp(1.7rem, 4vw, 2.6rem);
  border-radius: 30px;
  border: 1px solid rgba(6, 59, 92, 0.12);
  border-left: 8px solid var(--cwh-purpose-orange);
  background: #fffaf1;
  box-shadow: 0 16px 38px rgba(6, 59, 92, 0.1);
}

:where(
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content p:first-child {
  color: var(--cwh-purpose-navy) !important;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem) !important;
  line-height: 1.42 !important;
  font-weight: 820 !important;
  letter-spacing: -0.02em !important;
}

/* History section: image + narrative should feel editorial */
:where(
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) {
  background: linear-gradient(180deg, #f8fbfc, #ffffff) !important;
}

:where(
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) .grid {
  gap: clamp(2rem, 5vw, 4rem) !important;
  align-items: start !important;
}

/* Make history copy easier to consume */
:where(
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content {
  position: relative;
  max-width: 780px !important;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(6, 59, 92, 0.12);
  box-shadow: 0 14px 34px rgba(6, 59, 92, 0.09);
}

:where(
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content::before {
  content: "CWH History";
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--cwh-purpose-soft-blue);
  color: var(--cwh-purpose-navy);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:where(
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content p {
  font-size: clamp(1.08rem, 1.5vw, 1.22rem) !important;
  line-height: 1.78 !important;
}

:where(
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content p + p {
  margin-top: 1rem !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(6, 59, 92, 0.1);
}

/* Keep the history image polished and natural-height */
:where(
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) article.stwl-offset-shadow--static:has(img) {
  align-self: start !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 24px !important;
  overflow: hidden !important;
}

:where(
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) article.stwl-offset-shadow--static:has(img) > .p-5 {
  display: none !important;
}

:where(
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) article.stwl-offset-shadow--static:has(img) img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 42px rgba(6, 59, 92, 0.16) !important;
}

/* Final crosslinks / related About pages should feel like next steps */
:where(
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(4) {
  background: #fffaf1 !important;
}

:where(
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(4) article {
  border-radius: 24px !important;
  border: 1px solid rgba(6, 59, 92, 0.14) !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(6, 59, 92, 0.08) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
}

:where(
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(4) article:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(244, 154, 69, 0.5) !important;
  box-shadow: 0 18px 38px rgba(6, 59, 92, 0.14) !important;
}

:where(
  body.path-mission-and-history,
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(4) article h3 a::after {
  content: " →";
  color: var(--cwh-purpose-orange);
}

/* Mobile */
@media (max-width: 900px) {
  :where(
    body.path-get-involved,
    body.path-mission-and-history,
    body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
    body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"]),
    body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
    body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
  ) #block-consistent-content > section.py-10 .grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  :where(
    body.path-get-involved,
    body.path-mission-and-history,
    body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"].is-active),
    body.canvas-page:has(#block-consistent-mainnavigation a[href$="/get-involved"][aria-current="page"]),
    body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"].is-active),
    body.canvas-page:has(#block-consistent-mainnavigation a[href$="/mission-and-history"][aria-current="page"])
  ) #block-consistent-content > section.py-10:not(:first-of-type) {
    padding-block: 3.25rem !important;
  }
}
/* =========================================================
   MISSION AND HISTORY
   Fix Our History composition + remove "CWH History" label
   ========================================================= */

/* Remove the inserted "CWH History" pill */
:where(
  body.path-mission-and-history,
  body.canvas-page:has(a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content::before {
  display: none !important;
  content: none !important;
}

/* Better balance between long text and image */
:where(
  body.path-mission-and-history,
  body.canvas-page:has(a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) .grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr) !important;
  gap: clamp(2rem, 5vw, 4.5rem) !important;
  align-items: stretch !important;
}

/* Let the text feel more editorial, less cramped */
:where(
  body.path-mission-and-history,
  body.canvas-page:has(a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  max-width: none !important;
  min-height: 100% !important;
}

/* Make the image visually hold its side of the layout */
:where(
  body.path-mission-and-history,
  body.canvas-page:has(a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) article:has(img) {
  height: 100% !important;
  min-height: 520px !important;
  border-radius: 28px !important;
  overflow: hidden !important;
}

:where(
  body.path-mission-and-history,
  body.canvas-page:has(a[href$="/mission-and-history"].is-active),
  body.canvas-page:has(a[href$="/mission-and-history"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) article:has(img) img {
  width: 100% !important;
  height: 100% !important;
  min-height: 520px !important;
  object-fit: cover !important;
  object-position: center !important;
}
/* =========================================================
   EVENTS
   Remove redundant "Start Here" / "Primary" labels
   ========================================================= */

:where(
  body.path-events,
  body.canvas-page:has(a[href$="/events"].is-active),
  body.canvas-page:has(a[href$="/events"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) article:first-of-type::before,
:where(
  body.path-events,
  body.canvas-page:has(a[href$="/events"].is-active),
  body.canvas-page:has(a[href$="/events"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) article:first-of-type h3::before {
  display: none !important;
  content: none !important;
}
/* =========================================================
   GET INVOLVED
   Swap labels for Partner and Volunteer cards
   ========================================================= */

/* First card should be Individual path */
:where(
  body.path-get-involved,
  body.canvas-page:has(a[href$="/get-involved"].is-active),
  body.canvas-page:has(a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) article:first-of-type::before {
  content: "For Individuals" !important;
}

/* Second card should be Organization path */
:where(
  body.path-get-involved,
  body.canvas-page:has(a[href$="/get-involved"].is-active),
  body.canvas-page:has(a[href$="/get-involved"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) article:nth-of-type(2)::before {
  content: "For Organizations" !important;
}
/* =========================================================
   PARTNER WITH CWH
   Rework Who We Work With + fix final CTA text color
   ========================================================= */

/* Remove the single big bubble treatment */
:where(
  body.path-partner-with-cwh,
  body.canvas-page:has(a[href$="/partner-with-cwh"].is-active),
  body.canvas-page:has(a[href$="/partner-with-cwh"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr) !important;
  gap: clamp(1.5rem, 4vw, 3rem) !important;
  align-items: center !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Left-side partner list */
:where(
  body.path-partner-with-cwh,
  body.canvas-page:has(a[href$="/partner-with-cwh"].is-active),
  body.canvas-page:has(a[href$="/partner-with-cwh"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content p:not(:last-child) {
  grid-column: 1 !important;
  margin: 0 0 0.75rem !important;
  padding: 0.85rem 1rem !important;
  border-radius: 16px !important;
  border: 1px solid rgba(6, 59, 92, 0.1) !important;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(6, 59, 92, 0.055) !important;
}

/* Final "Together..." sentence: side statement, no bubble */
:where(
  body.path-partner-with-cwh,
  body.canvas-page:has(a[href$="/partner-with-cwh"].is-active),
  body.canvas-page:has(a[href$="/partner-with-cwh"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content p:last-child {
  grid-column: 2 !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--cwh-navy, #063b5c) !important;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem) !important;
  line-height: 1.22 !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em !important;
}

/* =========================================================
   VOLUNTEER / INTERNSHIP
   Remove nested bubbles + fix final CTA text color
   ========================================================= */

/* Remove internal nested bubbles from Volunteer and Internship panels */
:where(
  body.path-volunteer-internship,
  body.canvas-page:has(a[href$="/volunteer-internship"].is-active),
  body.canvas-page:has(a[href$="/volunteer-internship"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content p:not(:first-child):not(:empty),
:where(
  body.path-volunteer-internship,
  body.canvas-page:has(a[href$="/volunteer-internship"].is-active),
  body.canvas-page:has(a[href$="/volunteer-internship"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content p:not(:first-child):not(:empty) {
  margin: 0 !important;
  padding: 0.85rem 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-top: 1px solid rgba(6, 59, 92, 0.12) !important;
}

/* Keep first sentence as strong lead inside the main bubble */
:where(
  body.path-volunteer-internship,
  body.canvas-page:has(a[href$="/volunteer-internship"].is-active),
  body.canvas-page:has(a[href$="/volunteer-internship"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(2) .stwl-text-content p:first-child,
:where(
  body.path-volunteer-internship,
  body.canvas-page:has(a[href$="/volunteer-internship"].is-active),
  body.canvas-page:has(a[href$="/volunteer-internship"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content p:first-child {
  margin-bottom: 1rem !important;
}

/* =========================================================
   DONATE
   Fix white text issue by restoring dark site-wide text color
   ========================================================= */

:where(
  body.path-donate,
  body.canvas-page:has(a[href$="/donate"].is-active),
  body.canvas-page:has(a[href$="/donate"][aria-current="page"])
) #block-consistent-content > section.py-10:not(:first-of-type) {
  background-color: #fffaf1 !important;
}

/* Donation placeholder should not force white text */
:where(
  body.path-donate,
  body.canvas-page:has(a[href$="/donate"].is-active),
  body.canvas-page:has(a[href$="/donate"][aria-current="page"])
) #block-consistent-content > section.py-10:nth-of-type(3) article:first-child {
  background: #ffffff !important;
  color: var(--cwh-navy, #063b5c) !important;
  border: 1px solid rgba(6, 59, 92, 0.14) !important;
}

/* Force dark text throughout donate content sections */
:where(
  body.path-donate,
  body.canvas-page:has(a[href$="/donate"].is-active),
  body.canvas-page:has(a[href$="/donate"][aria-current="page"])
) #block-consistent-content > section.py-10:not(:first-of-type) h2,
:where(
  body.path-donate,
  body.canvas-page:has(a[href$="/donate"].is-active),
  body.canvas-page:has(a[href$="/donate"][aria-current="page"])
) #block-consistent-content > section.py-10:not(:first-of-type) h3,
:where(
  body.path-donate,
  body.canvas-page:has(a[href$="/donate"].is-active),
  body.canvas-page:has(a[href$="/donate"][aria-current="page"])
) #block-consistent-content > section.py-10:not(:first-of-type) p,
:where(
  body.path-donate,
  body.canvas-page:has(a[href$="/donate"].is-active),
  body.canvas-page:has(a[href$="/donate"][aria-current="page"])
) #block-consistent-content > section.py-10:not(:first-of-type) a {
  color: var(--cwh-navy, #063b5c) !important;
}

/* Mobile cleanup */
@media (max-width: 900px) {
  :where(
    body.path-mission-and-history,
    body.canvas-page:has(a[href$="/mission-and-history"].is-active),
    body.canvas-page:has(a[href$="/mission-and-history"][aria-current="page"])
  ) #block-consistent-content > section.py-10:nth-of-type(3) .grid,
  :where(
    body.path-partner-with-cwh,
    body.canvas-page:has(a[href$="/partner-with-cwh"].is-active),
    body.canvas-page:has(a[href$="/partner-with-cwh"][aria-current="page"])
  ) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content {
    grid-template-columns: 1fr !important;
  }

  :where(
    body.path-partner-with-cwh,
    body.canvas-page:has(a[href$="/partner-with-cwh"].is-active),
    body.canvas-page:has(a[href$="/partner-with-cwh"][aria-current="page"])
  ) #block-consistent-content > section.py-10:nth-of-type(3) .stwl-text-content p:last-child {
    grid-column: 1 !important;
    padding-top: 1rem !important;
  }

  :where(
    body.path-mission-and-history,
    body.canvas-page:has(a[href$="/mission-and-history"].is-active),
    body.canvas-page:has(a[href$="/mission-and-history"][aria-current="page"])
  ) #block-consistent-content > section.py-10:nth-of-type(3) article:has(img),
  :where(
    body.path-mission-and-history,
    body.canvas-page:has(a[href$="/mission-and-history"].is-active),
    body.canvas-page:has(a[href$="/mission-and-history"][aria-current="page"])
  ) #block-consistent-content > section.py-10:nth-of-type(3) article:has(img) img {
    min-height: 320px !important;
  }
}
/* =========================================================
   CWH Our Team — Recenter Page Fix
   Fixes broad homepage layout rules leaking onto /our-team.
   Keeps Our Team centered with normal section/container widths.
   ========================================================= */

body.canvas-page:has(a[href$="/our-team"].is-active) #block-consistent-content,
body.canvas-page:has(a[data-drupal-link-system-path="page/13"].is-active) #block-consistent-content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Restore normal full-width page sections */
body.canvas-page:has(a[href$="/our-team"].is-active) #block-consistent-content > section.py-10,
body.canvas-page:has(a[data-drupal-link-system-path="page/13"].is-active) #block-consistent-content > section.py-10 {
  display: block !important;
  width: 100% !important;
  grid-column: auto !important;
  padding: 3rem 0 !important;
}

/* Recenter the actual content container */
body.canvas-page:has(a[href$="/our-team"].is-active) #block-consistent-content > section.py-10 > .stwl-container,
body.canvas-page:has(a[data-drupal-link-system-path="page/13"].is-active) #block-consistent-content > section.py-10 > .stwl-container {
  width: calc(100% - 3rem) !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Keep headers aligned inside the centered container */
body.canvas-page:has(a[href$="/our-team"].is-active) #block-consistent-content .mb-6,
body.canvas-page:has(a[data-drupal-link-system-path="page/13"].is-active) #block-consistent-content .mb-6 {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

/* Staff grid centered and normal width */
body.canvas-page:has(a[href$="/our-team"].is-active) #block-consistent-content section.py-10:nth-of-type(3) .grid,
body.canvas-page:has(a[data-drupal-link-system-path="page/13"].is-active) #block-consistent-content section.py-10:nth-of-type(3) .grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
  width: 100% !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Normal staff card sizing */
body.canvas-page:has(a[href$="/our-team"].is-active) #block-consistent-content article,
body.canvas-page:has(a[data-drupal-link-system-path="page/13"].is-active) #block-consistent-content article {
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(6, 59, 92, 0.08) !important;
}

/* Keep images consistent without stretching the whole page */
body.canvas-page:has(a[href$="/our-team"].is-active) #block-consistent-content article .aspect-video,
body.canvas-page:has(a[data-drupal-link-system-path="page/13"].is-active) #block-consistent-content article .aspect-video {
  height: 230px !important;
  min-height: 230px !important;
  max-height: 230px !important;
}

body.canvas-page:has(a[href$="/our-team"].is-active) #block-consistent-content article img,
body.canvas-page:has(a[data-drupal-link-system-path="page/13"].is-active) #block-consistent-content article img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Mobile/tablet cleanup */
@media (max-width: 900px) {
  body.canvas-page:has(a[href$="/our-team"].is-active) #block-consistent-content section.py-10:nth-of-type(3) .grid,
  body.canvas-page:has(a[data-drupal-link-system-path="page/13"].is-active) #block-consistent-content section.py-10:nth-of-type(3) .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body.canvas-page:has(a[href$="/our-team"].is-active) #block-consistent-content > section.py-10 > .stwl-container,
  body.canvas-page:has(a[data-drupal-link-system-path="page/13"].is-active) #block-consistent-content > section.py-10 > .stwl-container {
    width: calc(100% - 2rem) !important;
  }

  body.canvas-page:has(a[href$="/our-team"].is-active) #block-consistent-content section.py-10:nth-of-type(3) .grid,
  body.canvas-page:has(a[data-drupal-link-system-path="page/13"].is-active) #block-consistent-content section.py-10:nth-of-type(3) .grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   MISSION & HISTORY — OUR HISTORY TIMELINE LAYOUT
   New composition:
   - Centered natural-ratio image
   - Three-part history timeline beneath
   - No side-by-side text/image competition
   - Image never enlarged beyond 640px
   ========================================================= */

@media (min-width: 901px) {

  /* Main section layout becomes vertical */
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  > .stwl-container
  > .grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    gap: 2rem !important;

    width: 100% !important;
  }


  /* =====================================================
     IMAGE FIRST
     ===================================================== */

  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  article:has(
    img[alt="Arundo Education Oros Street Tour"]
  ) {
    order: 1 !important;

    display: block !important;

    /*
     * Source image is 2048px wide.
     * We deliberately display it much smaller.
     */
    width: min(100%, 640px) !important;
    max-width: 640px !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 auto !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 20px !important;

    background: transparent !important;

    box-shadow:
      0 12px 28px rgba(6, 59, 92, 0.12) !important;

    overflow: hidden !important;
  }


  /* Remove empty Canvas body beneath image */
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  article:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  > .p-5 {
    display: none !important;
  }


  /* Allow original photograph ratio instead of Canvas 16:9 */
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  article:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  > .aspect-video {
    display: block !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    aspect-ratio: auto !important;

    overflow: hidden !important;
  }


  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  img[alt="Arundo Education Oros Street Tour"] {
    position: static !important;

    display: block !important;

    width: 100% !important;
    height: auto !important;

    max-width: 640px !important;
    min-height: 0 !important;

    aspect-ratio: auto !important;

    object-fit: contain !important;

    margin: 0 auto !important;
  }


  /* =====================================================
     HISTORY TIMELINE
     ===================================================== */

  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  .stwl-text-content {
    order: 2 !important;

    display: grid !important;

    grid-template-columns:
      repeat(3, minmax(0, 1fr)) !important;

    width: 100% !important;
    max-width: 1120px !important;

    margin: 0 auto !important;
    padding: 0 !important;

    background: #ffffff !important;

    border:
      1px solid rgba(6, 59, 92, 0.12) !important;

    border-radius: 22px !important;

    box-shadow:
      0 10px 26px rgba(6, 59, 92, 0.08) !important;

    overflow: hidden !important;
  }


  /* Remove any old generated history label */
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  .stwl-text-content::before {
    display: none !important;
    content: none !important;
  }


  /* Each stage */
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  .stwl-text-content p {
    position: relative !important;

    margin: 0 !important;

    padding:
      4rem
      clamp(1.5rem, 2.2vw, 2rem)
      2rem !important;

    color:
      var(--cwh-text, #17384d) !important;

    font-size: 1rem !important;
    line-height: 1.65 !important;

    background: #ffffff !important;
  }


  /* Vertical separators between eras */
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  .stwl-text-content p + p {
    border-left:
      1px solid rgba(6, 59, 92, 0.14) !important;
  }


  /* Shared era-label styling */
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  .stwl-text-content p::before {
    position: absolute !important;

    top: 1.6rem !important;
    left: clamp(1.5rem, 2.2vw, 2rem) !important;

    color:
      var(--cwh-navy, #063b5c) !important;

    font-size: 0.82rem !important;

    line-height: 1 !important;

    font-weight: 800 !important;

    letter-spacing: 0.08em !important;

    text-transform: uppercase !important;
  }


  /* Labels come directly from the existing history wording */
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  .stwl-text-content p:nth-child(1)::before {
    content: "1996" !important;
  }


  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  .stwl-text-content p:nth-child(2)::before {
    content: "Since Then" !important;
  }


  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  .stwl-text-content p:nth-child(3)::before {
    content: "Today" !important;
  }


  /* Orange timeline markers */
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  .stwl-text-content p::after {
    content: "" !important;

    position: absolute !important;

    top: 3rem !important;
    left: clamp(1.5rem, 2.2vw, 2rem) !important;

    width: 34px !important;
    height: 3px !important;

    border-radius: 999px !important;

    background:
      var(--cwh-orange, #f49a45) !important;
  }
}


/* =========================================================
   TABLET / MOBILE
   Image first, history stages stacked underneath.
   ========================================================= */

@media (max-width: 900px) {

  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  > .stwl-container
  > .grid {
    display: flex !important;

    flex-direction: column !important;

    align-items: stretch !important;

    gap: 1.5rem !important;
  }


  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  article:has(
    img[alt="Arundo Education Oros Street Tour"]
  ) {
    order: 1 !important;

    width: min(100%, 640px) !important;

    height: auto !important;

    margin: 0 auto !important;
  }


  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  article:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  > .p-5 {
    display: none !important;
  }


  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  img[alt="Arundo Education Oros Street Tour"] {
    width: 100% !important;
    height: auto !important;

    object-fit: contain !important;
  }


  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  .stwl-text-content {
    order: 2 !important;

    display: grid !important;

    grid-template-columns: 1fr !important;

    width: 100% !important;

    padding: 0 !important;

    border-radius: 18px !important;

    overflow: hidden !important;
  }


  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  .stwl-text-content p {
    padding:
      3.75rem 1.5rem 1.5rem !important;
  }


  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/mission-and-history"][aria-current="page"]
  )
  #block-consistent-content
  > section.py-10.bg-muted:has(
    img[alt="Arundo Education Oros Street Tour"]
  )
  .stwl-text-content p + p {
    border-left: 0 !important;

    border-top:
      1px solid rgba(6, 59, 92, 0.14) !important;
  }
}

/* =========================================================
   PARTNER WITH CWH — WHO WE WORK WITH
   Clean structured partner panel + impact statement
   ========================================================= */

:where(
  body.path-partner-with-cwh,
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"].is-active
  ),
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"][aria-current="page"]
  )
)
#block-consistent-content
> section.py-10:has(.stwl-text-content ul) {

  background:
    linear-gradient(
      180deg,
      #dceef3 0%,
      #edf7f9 100%
    ) !important;

  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}


/* =========================================================
   MAIN TWO-COLUMN LAYOUT
   ========================================================= */

:where(
  body.path-partner-with-cwh,
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"].is-active
  ),
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"][aria-current="page"]
  )
)
#block-consistent-content
> section.py-10:has(.stwl-text-content ul)
.grid {

  display: grid !important;

  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(300px, 0.75fr) !important;

  gap: clamp(2rem, 4vw, 3.5rem) !important;

  align-items: stretch !important;
}


/* =========================================================
   LEFT PARTNER PANEL
   ========================================================= */

:where(
  body.path-partner-with-cwh,
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"].is-active
  ),
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"][aria-current="page"]
  )
)
#block-consistent-content
> section.py-10:has(.stwl-text-content ul)
.grid
> .stwl-text-content:first-child {

  display: block !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;

  padding:
    clamp(1.75rem, 3vw, 2.5rem) !important;

  background: #ffffff !important;

  border:
    1px solid rgba(6, 59, 92, 0.12) !important;

  border-radius: 22px !important;

  box-shadow:
    0 10px 28px rgba(6, 59, 92, 0.08) !important;

  box-sizing: border-box !important;
}


/* Reset the old individual paragraph-card treatment */

:where(
  body.path-partner-with-cwh,
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"].is-active
  ),
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"][aria-current="page"]
  )
)
#block-consistent-content
> section.py-10:has(.stwl-text-content ul)
.grid
> .stwl-text-content:first-child
p {

  width: auto !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;

  border: 0 !important;
  border-radius: 0 !important;

  box-shadow: none !important;

  color:
    var(--cwh-text, #17384d) !important;
}


/* Main introduction */

:where(
  body.path-partner-with-cwh,
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"].is-active
  ),
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"][aria-current="page"]
  )
)
#block-consistent-content
> section.py-10:has(.stwl-text-content ul)
.grid
> .stwl-text-content:first-child
p:first-of-type {

  max-width: 650px !important;

  color:
    var(--cwh-text, #17384d) !important;

  font-size:
    clamp(1.05rem, 1.4vw, 1.2rem) !important;

  line-height: 1.65 !important;
}


/* "Our partners may include" becomes a proper subheading */

:where(
  body.path-partner-with-cwh,
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"].is-active
  ),
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"][aria-current="page"]
  )
)
#block-consistent-content
> section.py-10:has(.stwl-text-content ul)
.grid
> .stwl-text-content:first-child
p:nth-of-type(2) {

  margin-top: 2rem !important;
  margin-bottom: 1rem !important;

  color:
    var(--cwh-navy, #063b5c) !important;

  font-size: 0.85rem !important;

  line-height: 1.2 !important;

  font-weight: 800 !important;

  letter-spacing: 0.08em !important;

  text-transform: uppercase !important;
}


/* =========================================================
   PARTNER TYPES
   Turn the ordinary bullet list into an organized 2x4 grid.
   ========================================================= */

:where(
  body.path-partner-with-cwh,
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"].is-active
  ),
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"][aria-current="page"]
  )
)
#block-consistent-content
> section.py-10:has(.stwl-text-content ul)
.grid
> .stwl-text-content:first-child
ul {

  display: grid !important;

  grid-template-columns:
    repeat(2, minmax(0, 1fr)) !important;

  gap: 0.8rem !important;

  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  list-style: none !important;
}


/* Individual partner type */

:where(
  body.path-partner-with-cwh,
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"].is-active
  ),
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"][aria-current="page"]
  )
)
#block-consistent-content
> section.py-10:has(.stwl-text-content ul)
.grid
> .stwl-text-content:first-child
li {

  position: relative !important;

  display: flex !important;

  align-items: center !important;

  min-height: 52px !important;

  margin: 0 !important;

  padding:
    0.8rem
    1rem
    0.8rem
    2.35rem !important;

  background:
    rgba(220, 238, 243, 0.52) !important;

  border:
    1px solid rgba(6, 59, 92, 0.10) !important;

  border-radius: 12px !important;

  color:
    var(--cwh-text, #17384d) !important;

  font-size: 0.96rem !important;

  line-height: 1.35 !important;

  font-weight: 650 !important;

  box-sizing: border-box !important;
}


/* Small CWH-orange marker */

:where(
  body.path-partner-with-cwh,
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"].is-active
  ),
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"][aria-current="page"]
  )
)
#block-consistent-content
> section.py-10:has(.stwl-text-content ul)
.grid
> .stwl-text-content:first-child
li::before {

  content: "" !important;

  position: absolute !important;

  left: 1rem !important;

  width: 9px !important;
  height: 9px !important;

  border-radius: 50% !important;

  background:
    var(--cwh-orange, #f49a45) !important;

  box-shadow:
    0 0 0 4px rgba(244, 154, 69, 0.14) !important;
}


/* =========================================================
   RIGHT IMPACT STATEMENT
   ========================================================= */

:where(
  body.path-partner-with-cwh,
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"].is-active
  ),
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"][aria-current="page"]
  )
)
#block-consistent-content
> section.py-10:has(.stwl-text-content ul)
.grid
> .stwl-text-content:last-child {

  display: flex !important;

  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  max-width: none !important;

  min-height: 100% !important;

  margin: 0 !important;

  padding:
    clamp(2rem, 4vw, 3rem) !important;

  background:
    linear-gradient(
      145deg,
      var(--cwh-navy, #063b5c),
      var(--cwh-navy-dark, #042f49)
    ) !important;

  border: 0 !important;

  border-radius: 22px !important;

  box-shadow:
    0 14px 32px rgba(6, 59, 92, 0.16) !important;

  box-sizing: border-box !important;
}


/* Reset any old paragraph styling */

:where(
  body.path-partner-with-cwh,
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"].is-active
  ),
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"][aria-current="page"]
  )
)
#block-consistent-content
> section.py-10:has(.stwl-text-content ul)
.grid
> .stwl-text-content:last-child
p {

  width: 100% !important;
  max-width: 390px !important;

  margin: 0 auto !important;
  padding: 0 !important;

  background: transparent !important;

  border: 0 !important;
  border-radius: 0 !important;

  box-shadow: none !important;

  text-align: left !important;
}


/* Impact statement typography */

:where(
  body.path-partner-with-cwh,
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"].is-active
  ),
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"][aria-current="page"]
  )
)
#block-consistent-content
> section.py-10:has(.stwl-text-content ul)
.grid
> .stwl-text-content:last-child
strong {

  display: block !important;

  color: #ffffff !important;

  font-size:
    clamp(1.55rem, 2.5vw, 2.15rem) !important;

  line-height: 1.2 !important;

  font-weight: 750 !important;

  letter-spacing: -0.015em !important;

  text-transform: none !important;
}


/* Orange accent above statement */

:where(
  body.path-partner-with-cwh,
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"].is-active
  ),
  body.canvas-page:has(
    #block-consistent-mainnavigation
    a[href$="/partner-with-cwh"][aria-current="page"]
  )
)
#block-consistent-content
> section.py-10:has(.stwl-text-content ul)
.grid
> .stwl-text-content:last-child
p::before {

  content: "" !important;

  display: block !important;

  width: 52px !important;
  height: 5px !important;

  margin-bottom: 1.35rem !important;

  background:
    var(--cwh-orange, #f49a45) !important;

  border-radius: 999px !important;
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 800px) {

  :where(
    body.path-partner-with-cwh,
    body.canvas-page:has(
      #block-consistent-mainnavigation
      a[href$="/partner-with-cwh"].is-active
    ),
    body.canvas-page:has(
      #block-consistent-mainnavigation
      a[href$="/partner-with-cwh"][aria-current="page"]
    )
  )
  #block-consistent-content
  > section.py-10:has(.stwl-text-content ul)
  .grid {

    grid-template-columns: 1fr !important;

    gap: 1.25rem !important;
  }


  :where(
    body.path-partner-with-cwh,
    body.canvas-page:has(
      #block-consistent-mainnavigation
      a[href$="/partner-with-cwh"].is-active
    ),
    body.canvas-page:has(
      #block-consistent-mainnavigation
      a[href$="/partner-with-cwh"][aria-current="page"]
    )
  )
  #block-consistent-content
  > section.py-10:has(.stwl-text-content ul)
  .grid
  > .stwl-text-content:first-child
  ul {

    grid-template-columns: 1fr !important;
  }


  :where(
    body.path-partner-with-cwh,
    body.canvas-page:has(
      #block-consistent-mainnavigation
      a[href$="/partner-with-cwh"].is-active
    ),
    body.canvas-page:has(
      #block-consistent-mainnavigation
      a[href$="/partner-with-cwh"][aria-current="page"]
    )
  )
  #block-consistent-content
  > section.py-10:has(.stwl-text-content ul)
  .grid
  > .stwl-text-content:last-child {

    min-height: 0 !important;

    padding: 2rem 1.5rem !important;
  }
}

/* =========================================================
   CWH PROJECT DETAIL — LAYOUT BUILDER POLISH
   Applies to project pages using the 67/33 Full Content layout.
   ========================================================= */

main#main-content
> .stwl-container.py-10:has(
  #block-consistent-content > article .layout--twocol-section--67-33
) {
  --cwh-project-navy: #063b5c;
  --cwh-project-blue: #0d5a78;
  --cwh-project-soft-blue: #dceef3;
  --cwh-project-orange: #f49a45;
  --cwh-project-cream: #f7f3ea;
  --cwh-project-text: #17384d;
  --cwh-project-border: #b8d5df;
}


/* ---------------------------------------------------------
   Title
   --------------------------------------------------------- */

main#main-content
> .stwl-container.py-10:has(
  #block-consistent-content > article .layout--twocol-section--67-33
)
> h1.page-title::before {
  content: "Project" !important;
}


/* ---------------------------------------------------------
   Hide default Drupal author/submitted information
   --------------------------------------------------------- */

main#main-content
> .stwl-container.py-10:has(
  #block-consistent-content > article .layout--twocol-section--67-33
)
#block-consistent-content
> article
> footer {
  display: none !important;
}


/* ---------------------------------------------------------
   Reset the old generic detail-page styling that accidentally
   treats the Layout Builder wrapper like a card.
   --------------------------------------------------------- */

main#main-content
> .stwl-container.py-10:has(
  #block-consistent-content > article .layout--twocol-section--67-33
)
#block-consistent-content
> article
> div
> .layout--twocol-section--67-33 {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr) !important;
  gap: clamp(1.5rem, 3vw, 2.5rem) !important;

  width: 100% !important;
  min-width: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  transform: none !important;
}


/* ---------------------------------------------------------
   LEFT COLUMN — project content
   --------------------------------------------------------- */

main#main-content
> .stwl-container.py-10:has(
  #block-consistent-content > article .layout--twocol-section--67-33
)
.layout--twocol-section--67-33
> .layout__region--first {
  min-width: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}


/* Space between blocks such as Featured Image + Overview */
main#main-content
> .stwl-container.py-10:has(
  #block-consistent-content > article .layout--twocol-section--67-33
)
.layout__region--first
> div {
  margin: 0 0 1.5rem !important;
}


/* Overview treatment */
main#main-content
> .stwl-container.py-10:has(
  #block-consistent-content > article .layout--twocol-section--67-33
)
.layout__region--first p {
  margin: 0 !important;
  color: var(--cwh-project-text) !important;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem) !important;
  line-height: 1.75 !important;
}


/* Featured image, when one exists */
main#main-content
> .stwl-container.py-10:has(
  #block-consistent-content > article .layout--twocol-section--67-33
)
.layout__region--first img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;

  object-fit: cover !important;

  border-radius: 20px !important;
}


/* ---------------------------------------------------------
   RIGHT COLUMN — project information sidebar
   --------------------------------------------------------- */

main#main-content
> .stwl-container.py-10:has(
  #block-consistent-content > article .layout--twocol-section--67-33
)
.layout--twocol-section--67-33
> .layout__region--second {
  min-width: 0 !important;
  align-self: start !important;

  padding: 1.5rem !important;

  background: var(--cwh-project-soft-blue) !important;
  border: 1px solid var(--cwh-project-border) !important;
  border-radius: 20px !important;

  box-shadow: 0 10px 28px rgba(6, 59, 92, 0.08) !important;
}


/* Sidebar heading */
main#main-content
> .stwl-container.py-10:has(
  #block-consistent-content > article .layout--twocol-section--67-33
)
.layout__region--second::before {
  content: "Project Information";

  display: block;

  margin: 0 0 1rem !important;
  padding: 0 0 0.9rem !important;

  border-bottom: 2px solid var(--cwh-project-orange);

  color: var(--cwh-project-navy);
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* Each metadata row */
main#main-content
> .stwl-container.py-10:has(
  #block-consistent-content > article .layout--twocol-section--67-33
)
.layout__region--second
> div {
  margin: 0 !important;
  padding: 0.85rem 0 !important;

  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(6, 59, 92, 0.14) !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  transform: none !important;
}


/* Remove divider after final field */
main#main-content
> .stwl-container.py-10:has(
  #block-consistent-content > article .layout--twocol-section--67-33
)
.layout__region--second
> div:last-child {
  border-bottom: 0 !important;
}


/* Field labels */
main#main-content
> .stwl-container.py-10:has(
  #block-consistent-content > article .layout--twocol-section--67-33
)
.layout__region--second
> div
> div
> div:first-child {
  margin: 0 0 0.35rem !important;

  color: var(--cwh-project-navy) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;

  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}


/* Field values */
main#main-content
> .stwl-container.py-10:has(
  #block-consistent-content > article .layout--twocol-section--67-33
)
.layout__region--second
> div
> div
> div:last-child {
  color: var(--cwh-project-text) !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}


/* Taxonomy links */
main#main-content
> .stwl-container.py-10:has(
  #block-consistent-content > article .layout--twocol-section--67-33
)
.layout__region--second a {
  color: var(--cwh-project-blue) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

main#main-content
> .stwl-container.py-10:has(
  #block-consistent-content > article .layout--twocol-section--67-33
)
.layout__region--second a:hover,
main#main-content
> .stwl-container.py-10:has(
  #block-consistent-content > article .layout--twocol-section--67-33
)
.layout__region--second a:focus {
  color: var(--cwh-project-orange) !important;
}


/* ---------------------------------------------------------
   TABLET / PHONE
   --------------------------------------------------------- */

@media (max-width: 800px) {

  main#main-content
  > .stwl-container.py-10:has(
    #block-consistent-content > article .layout--twocol-section--67-33
  )
  #block-consistent-content
  > article
  > div
  > .layout--twocol-section--67-33 {
    grid-template-columns: 1fr !important;
  }

  main#main-content
  > .stwl-container.py-10:has(
    #block-consistent-content > article .layout--twocol-section--67-33
  )
  .layout__region--second {
    margin-top: 0.5rem !important;
  }
}