/* Keel-Haulers modern visual refresh. Scoped to mirrored pages only. */
:root {
  --kh-ink: #12304a;
  --kh-navy: #0a3761;
  --kh-deep: #06243f;
  --kh-teal: #1477b9;
  --kh-teal-dark: #0b5a91;
  --kh-cyan: #39bfe7;
  --kh-gold: #ef6c35;
  --kh-gold-light: #ffab72;
  --kh-mist: #eaf8fc;
  --kh-white: #ffffff;
  --kh-muted: #526d7f;
  --kh-moss: #5f7f3d;
  --kh-sky: #d9f3fb;
  --kh-orange: #ef6c35;
  --kh-border: rgba(10, 55, 97, 0.12);
  --kh-shadow: 0 24px 70px rgba(6, 36, 63, 0.14);
  --kh-shadow-soft: 0 12px 34px rgba(6, 36, 63, 0.09);
  --kh-radius: 26px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body.kh-modern-theme {
  margin: 0;
  background:
    radial-gradient(circle at 4% 7%, rgba(57, 191, 231, 0.12), transparent 25rem),
    linear-gradient(180deg, #ffffff 0%, #f4fbfd 100%);
  color: var(--kh-ink);
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.kh-modern-theme .Site,
body.kh-modern-theme .Site-inner,
body.kh-modern-theme .Content-outer {
  background: transparent;
}

body.kh-modern-theme a {
  color: var(--kh-teal);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

body.kh-modern-theme a:hover {
  color: var(--kh-teal-dark);
}

body.kh-modern-theme :focus-visible {
  outline: 3px solid var(--kh-gold);
  outline-offset: 4px;
}

body.kh-modern-theme h1,
body.kh-modern-theme h2,
body.kh-modern-theme h3,
body.kh-modern-theme h4 {
  color: var(--kh-navy);
  font-family: Cabin, "Libre Franklin", sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

body.kh-modern-theme h1 {
  font-size: clamp(2.55rem, 5vw, 4.7rem);
  line-height: 1.02;
}

body.kh-modern-theme h2 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.08;
}

body.kh-modern-theme h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.18;
}

body.kh-modern-theme p,
body.kh-modern-theme li {
  line-height: 1.72;
}

/* Desktop navigation */
body.kh-modern-theme .Header.Header--top,
body.kh-modern-theme .Header.Header--bottom {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(8, 51, 72, 0.1);
  background: rgba(247, 251, 252, 0.92);
  box-shadow: 0 10px 28px rgba(5, 38, 53, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

body.kh-modern-theme .Header-inner--top,
body.kh-modern-theme .Header-inner--bottom {
  width: min(100% - 40px, 1280px);
  min-height: 90px;
  margin: 0 auto;
  padding: 10px 0;
}

/* Squarespace applies its load fade to anonymous header wrappers. On a static
   mirror that leaves the navigation blank during first paint. */
body.kh-modern-theme .Header-inner > div {
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
  transition: none !important;
}

body.kh-modern-theme .Header-branding-logo {
  max-width: 164px;
  max-height: 70px;
  transition: transform 180ms ease;
}

body.kh-modern-theme .Header-branding a:hover .Header-branding-logo {
  transform: translateY(-2px);
}

body.kh-modern-theme .Header-nav--primary .Header-nav-inner,
body.kh-modern-theme .Header-nav--secondary .Header-nav-inner {
  align-items: center;
  gap: 0.12rem;
}

body.kh-modern-theme .Header-nav-item,
body.kh-modern-theme .Header-nav-folder-title {
  border-radius: 999px;
  color: var(--kh-navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  padding: 0.72rem 0.76rem;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

body.kh-modern-theme .Header-nav-item:hover,
body.kh-modern-theme .Header-nav-folder-title:hover,
body.kh-modern-theme .Header-nav-item--active {
  background: rgba(8, 127, 135, 0.09);
  color: var(--kh-teal-dark);
  transform: translateY(-1px);
}

body.kh-modern-theme .Header-nav-folder {
  min-width: 230px;
  margin-top: 9px;
  padding: 0.55rem;
  border: 1px solid var(--kh-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--kh-shadow-soft);
}

body.kh-modern-theme .Header-nav-folder-item {
  border-radius: 11px;
  color: var(--kh-navy);
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0.68rem 0.78rem;
}

body.kh-modern-theme .Header-nav-folder-item:hover {
  background: var(--kh-mist);
  color: var(--kh-teal-dark);
}

body.kh-modern-theme .Header-nav--secondary .Header-nav-item:not(.Header-cart) {
  background: linear-gradient(135deg, #f47b43, var(--kh-orange));
  box-shadow: 0 9px 24px rgba(199, 73, 24, 0.24);
  color: var(--kh-white);
  padding-inline: 1.05rem;
}

body.kh-modern-theme .Header-nav--secondary .Header-nav-item:not(.Header-cart):hover {
  background: linear-gradient(135deg, #f88d58, #df5722);
  color: var(--kh-white);
}

body.kh-modern-theme .Header-cart {
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: var(--kh-navy);
  color: var(--kh-white);
}

/* Home hero */
body.kh-modern-theme #welcome {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 18%, rgba(43, 186, 243, 0.32), transparent 28rem),
    radial-gradient(circle at 9% 92%, rgba(247, 188, 59, 0.18), transparent 24rem),
    linear-gradient(135deg, #052635 0%, #08465b 56%, #087f87 140%);
}

body.kh-modern-theme #welcome::before,
body.kh-modern-theme #welcome::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

body.kh-modern-theme #welcome::before {
  right: -9rem;
  bottom: -16rem;
  width: 38rem;
  height: 38rem;
}

body.kh-modern-theme #welcome::after {
  top: 5rem;
  left: -7rem;
  width: 19rem;
  height: 19rem;
}

body.kh-modern-theme #welcome .Index-page-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(570px, 71vh, 780px);
  padding: clamp(5rem, 9vw, 8.5rem) clamp(1.35rem, 5vw, 4.5rem);
}

body.kh-modern-theme #welcome .sqs-layout {
  width: min(100%, 940px);
  margin-inline: auto;
  text-align: center;
}

body.kh-modern-theme #welcome h1 {
  margin: 0 auto 1.2rem;
  color: var(--kh-white);
  font-size: clamp(3.15rem, 7.1vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

body.kh-modern-theme #welcome h3 {
  display: inline-flex;
  margin: 0 auto 1.4rem;
  border: 1px solid rgba(255, 212, 111, 0.45);
  border-radius: 999px;
  background: rgba(247, 188, 59, 0.12);
  color: var(--kh-gold-light);
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  padding: 0.62rem 0.88rem;
  text-transform: uppercase;
}

body.kh-modern-theme #welcome p {
  max-width: 760px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

body.kh-modern-theme #welcome .sqs-html-content > p:last-child {
  margin-top: 2rem;
  font-size: 0;
}

body.kh-modern-theme #welcome .sqs-html-content > p:last-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.36rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: var(--kh-white);
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.18rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

body.kh-modern-theme #welcome .sqs-html-content > p:last-child a[href="/members"]:not([target]) {
  border-color: transparent;
  background: linear-gradient(135deg, var(--kh-gold-light), var(--kh-gold));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  color: var(--kh-deep);
}

body.kh-modern-theme #welcome .sqs-html-content > p:last-child a[href="/members"][target=""] {
  display: none;
}

body.kh-modern-theme #welcome .sqs-html-content > p:last-child a:hover {
  background: rgba(255, 255, 255, 0.13);
  color: var(--kh-white);
  transform: translateY(-2px);
}

body.kh-modern-theme #welcome .sqs-html-content > p:last-child a[href="/members"]:not([target]):hover {
  background: linear-gradient(135deg, #ffdc83, #f9c24b);
  color: var(--kh-deep);
}

body.kh-modern-theme #welcome .sqs-html-content > p:last-child a[href*="facebook.com"] {
  display: flex;
  width: fit-content;
  margin: 0.9rem auto 0;
  border: 0;
  padding: 0.35rem 0.7rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.77rem;
}

/* Home sections and cards */
body.kh-modern-theme .Index-page:not(#welcome) .Index-page-content {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.35rem, 4vw, 3.5rem);
}

body.kh-modern-theme #benefits {
  background: linear-gradient(180deg, #f8fcfd 0%, var(--kh-mist) 100%);
}

body.kh-modern-theme #benefits h2,
body.kh-modern-theme #benefits h3 {
  text-wrap: balance;
}

body.kh-modern-theme #benefits .sqs-col-4 {
  box-sizing: border-box;
  padding: 0.65rem;
}

body.kh-modern-theme #benefits .image-block-v2 {
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: var(--kh-white);
  box-shadow: var(--kh-shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

body.kh-modern-theme #benefits .image-block-v2:hover {
  box-shadow: var(--kh-shadow);
  transform: translateY(-6px);
}

body.kh-modern-theme #benefits .image-inset,
body.kh-modern-theme #benefits .image-block-wrapper,
body.kh-modern-theme #benefits .image-card-wrapper {
  border-radius: 0;
}

body.kh-modern-theme #benefits .image-block-wrapper img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 350ms ease;
}

body.kh-modern-theme #benefits .image-block-v2:hover img {
  transform: scale(1.035);
}

body.kh-modern-theme #benefits .image-card {
  min-height: 150px;
  padding: 1.5rem 1.55rem 1.7rem;
  background: var(--kh-white);
  color: var(--kh-muted);
}

body.kh-modern-theme #benefits .image-title,
body.kh-modern-theme #benefits .image-subtitle {
  color: var(--kh-navy);
}

body.kh-modern-theme #benefits .image-title p {
  margin: 0;
  color: var(--kh-navy) !important;
  font-family: Cabin, "Libre Franklin", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

body.kh-modern-theme #benefits .image-subtitle p {
  color: var(--kh-muted) !important;
  line-height: 1.6;
}

body.kh-modern-theme #swag {
  background: var(--kh-mist);
}

body.kh-modern-theme #swag .Index-page-content {
  position: relative;
  overflow: hidden;
  width: min(calc(100% - 2rem), 1160px);
  margin: clamp(2rem, 5vw, 4rem) auto;
  border-radius: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(circle at 90% 15%, rgba(43, 186, 243, 0.22), transparent 18rem),
    linear-gradient(135deg, var(--kh-deep), var(--kh-navy));
  box-shadow: var(--kh-shadow);
}

body.kh-modern-theme #swag h2,
body.kh-modern-theme #swag h3,
body.kh-modern-theme #swag p,
body.kh-modern-theme #swag li {
  color: var(--kh-white);
}

body.kh-modern-theme #upcoming-events {
  background: linear-gradient(180deg, var(--kh-mist), #f8fcfd);
}

body.kh-modern-theme #upcoming-events .sqs-layout {
  padding: clamp(1rem, 3vw, 2.2rem);
  border: 1px solid var(--kh-border);
  border-radius: var(--kh-radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--kh-shadow-soft);
}

/* Interior pages */
body.kh-modern-theme:not(.homepage) .Content-outer {
  padding: clamp(1.5rem, 4.5vw, 4.5rem) clamp(1rem, 3vw, 2.5rem);
}

body.kh-modern-theme:not(.homepage) .Content-outer > .Main-content {
  box-sizing: border-box;
  width: min(100%, 1180px);
  margin-inline: auto;
  border: 1px solid var(--kh-border);
  border-radius: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--kh-shadow);
  padding: clamp(1.5rem, 4vw, 4.25rem);
}

body.kh-modern-theme:not(.homepage) .Main-content h1:first-child,
body.kh-modern-theme:not(.homepage) .Main-content h2:first-child {
  margin-top: 0;
}

body.kh-modern-theme .sqs-block-image img,
body.kh-modern-theme .sqs-gallery-block-grid img,
body.kh-modern-theme .gallery-block-grid img {
  border-radius: 18px;
}

body.kh-modern-theme:not(.homepage) .sqs-block-image img {
  box-shadow: var(--kh-shadow-soft);
}

body.kh-modern-theme blockquote {
  margin-inline: 0;
  border-left: 4px solid var(--kh-gold);
  border-radius: 0 16px 16px 0;
  background: var(--kh-mist);
  color: var(--kh-navy);
  padding: 1.2rem 1.4rem;
}

body.kh-modern-theme hr {
  height: 1px;
  border: 0;
  background: var(--kh-border);
}

body.kh-modern-theme .sqs-block-button-element,
body.kh-modern-theme input[type="submit"],
body.kh-modern-theme button[type="submit"]:not(.Mobile-bar-menu):not(.Mobile-bar-cart) {
  border: 0;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--kh-teal), var(--kh-teal-dark));
  box-shadow: 0 10px 24px rgba(8, 127, 135, 0.2);
  color: var(--kh-white) !important;
  font-weight: 750;
  letter-spacing: 0.035em;
  padding: 0.9rem 1.25rem;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

body.kh-modern-theme .sqs-block-button-element:hover,
body.kh-modern-theme input[type="submit"]:hover,
body.kh-modern-theme button[type="submit"]:not(.Mobile-bar-menu):not(.Mobile-bar-cart):hover {
  box-shadow: 0 13px 30px rgba(8, 127, 135, 0.28);
  transform: translateY(-2px);
}

body.kh-modern-theme input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body.kh-modern-theme select,
body.kh-modern-theme textarea {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid rgba(8, 51, 72, 0.2);
  border-radius: 12px;
  background: #fbfefe;
  color: var(--kh-ink);
  padding: 0.82rem 0.9rem;
}

body.kh-modern-theme input:focus,
body.kh-modern-theme select:focus,
body.kh-modern-theme textarea:focus {
  border-color: var(--kh-teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 135, 0.11);
}

body.kh-modern-theme table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--kh-border);
  border-radius: 16px;
  background: var(--kh-white);
}

body.kh-modern-theme th {
  background: var(--kh-navy);
  color: var(--kh-white);
}

body.kh-modern-theme th,
body.kh-modern-theme td {
  border-bottom: 1px solid var(--kh-border);
  padding: 0.8rem 0.9rem;
  text-align: left;
}

body.kh-modern-theme iframe,
body.kh-modern-theme video {
  max-width: 100%;
  border-radius: 18px;
}

/* Mobile navigation */
body.kh-modern-theme .Mobile {
  background: transparent;
}

body.kh-modern-theme .Mobile-bar {
  min-height: 74px;
  border-bottom: 1px solid rgba(8, 51, 72, 0.1);
  background: rgba(247, 251, 252, 0.94);
  box-shadow: 0 9px 24px rgba(5, 38, 53, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

body.kh-modern-theme .Mobile-bar-branding-logo {
  max-width: 142px;
  max-height: 59px;
}

body.kh-modern-theme .Mobile-bar-menu,
body.kh-modern-theme .Mobile-bar-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--kh-navy);
  color: var(--kh-white);
}

body.kh-modern-theme .Mobile-bar-menu .Icon {
  display: none !important;
}

body.kh-modern-theme .Mobile-bar-menu::before {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--kh-white);
  box-shadow: 0 -7px 0 var(--kh-white), 0 7px 0 var(--kh-white);
  content: "";
}

body.kh-modern-theme .Mobile-overlay {
  background:
    radial-gradient(circle at 100% 0%, rgba(43, 186, 243, 0.24), transparent 20rem),
    linear-gradient(145deg, var(--kh-deep), var(--kh-navy));
  color: var(--kh-white);
}

body.kh-modern-theme .Mobile-overlay-menu,
body.kh-modern-theme .Mobile-overlay-menu-main,
body.kh-modern-theme .Mobile-overlay-menu-folder {
  background: transparent !important;
}

body.kh-modern-theme .Mobile-overlay-close {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--kh-teal);
}

body.kh-modern-theme .Mobile-overlay-close .Icon {
  display: none !important;
}

body.kh-modern-theme .Mobile-overlay-close::before,
body.kh-modern-theme .Mobile-overlay-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: var(--kh-white);
  content: "";
}

body.kh-modern-theme .Mobile-overlay-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

body.kh-modern-theme .Mobile-overlay-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

body.kh-modern-theme .Mobile-overlay-nav-item,
body.kh-modern-theme .Mobile-overlay-folder-item,
body.kh-modern-theme .Mobile-overlay-folder-title,
body.kh-modern-theme .Mobile-overlay-back {
  border-radius: 12px;
  color: var(--kh-white);
  font-weight: 700;
}

body.kh-modern-theme .Mobile-overlay-nav-item,
body.kh-modern-theme .Mobile-overlay-folder-item,
body.kh-modern-theme .Mobile-overlay-folder-title,
body.kh-modern-theme .Mobile-overlay-back {
  color: var(--kh-white) !important;
}

body.kh-modern-theme .Mobile-overlay-nav-item:hover,
body.kh-modern-theme .Mobile-overlay-folder-item:hover,
body.kh-modern-theme .Mobile-overlay-folder-title:hover,
body.kh-modern-theme .Mobile-overlay-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--kh-gold-light);
}

/* Footer */
body.kh-modern-theme .Footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 90% -20%, rgba(43, 186, 243, 0.2), transparent 26rem),
    var(--kh-deep);
  color: rgba(255, 255, 255, 0.72);
}

body.kh-modern-theme .Footer-inner {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

body.kh-modern-theme .Footer h1,
body.kh-modern-theme .Footer h2,
body.kh-modern-theme .Footer h3,
body.kh-modern-theme .Footer h4,
body.kh-modern-theme .Footer-business-name {
  color: var(--kh-white);
}

body.kh-modern-theme .Footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

body.kh-modern-theme .Footer a:hover {
  color: var(--kh-gold-light);
}

/* The copied social sprite loses its symbol fragments outside Squarespace.
   Use dependable text glyphs and proper touch targets instead. */
body.kh-modern-theme .Footer .sqs-svg-icon--list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.45rem !important;
}

body.kh-modern-theme .Footer .sqs-svg-icon--wrapper {
  display: inline-grid !important;
  place-items: center;
  width: 44px !important;
  height: 44px !important;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.11) !important;
  color: var(--kh-white) !important;
  font-family: Cabin, "Libre Franklin", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease !important;
}

body.kh-modern-theme .Footer .sqs-svg-icon--wrapper > div,
body.kh-modern-theme .Footer .sqs-svg-icon--social {
  display: none !important;
}

body.kh-modern-theme .Footer .sqs-svg-icon--wrapper.facebook-unauth::before {
  content: "f";
}

body.kh-modern-theme .Footer .sqs-svg-icon--wrapper.email::before {
  content: "@";
}

body.kh-modern-theme .Footer .sqs-svg-icon--wrapper.instagram-unauth::before {
  content: "◎";
  font-size: 1.45rem;
}

body.kh-modern-theme .Footer .sqs-svg-icon--wrapper:hover,
body.kh-modern-theme .Footer .sqs-svg-icon--wrapper:focus-visible {
  border-color: rgba(255, 171, 114, 0.8) !important;
  background: rgba(239, 108, 53, 0.92) !important;
  color: var(--kh-white) !important;
  transform: translateY(-2px);
}

@media (max-width: 1040px) {
  body.kh-modern-theme .Header-inner--top,
  body.kh-modern-theme .Header-inner--bottom {
    width: min(100% - 24px, 1180px);
  }

  body.kh-modern-theme .Header-nav-item,
  body.kh-modern-theme .Header-nav-folder-title {
    font-size: 0.72rem;
    padding-inline: 0.55rem;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 78px;
  }

  body.kh-modern-theme h1 {
    font-size: clamp(2.25rem, 11vw, 3.45rem);
  }

  body.kh-modern-theme h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.7rem);
  }

  body.kh-modern-theme #welcome .Index-page-content {
    min-height: 610px;
    padding: 4.5rem 1.15rem 5rem;
  }

  body.kh-modern-theme #welcome h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
    line-height: 0.98;
  }

  body.kh-modern-theme #welcome p {
    font-size: 1rem;
    line-height: 1.62;
  }

  body.kh-modern-theme #welcome .sqs-html-content > p:last-child a {
    width: min(100%, 280px);
    box-sizing: border-box;
    margin: 0.35rem auto;
  }

  body.kh-modern-theme #welcome .sqs-html-content > p:last-child a[href*="facebook.com"] {
    width: fit-content;
  }

  body.kh-modern-theme .Index-page:not(#welcome) .Index-page-content {
    padding: 4rem 1rem;
  }

  body.kh-modern-theme #benefits .sqs-col-4,
  body.kh-modern-theme .Main-content .sqs-col-1,
  body.kh-modern-theme .Main-content .sqs-col-2,
  body.kh-modern-theme .Main-content .sqs-col-3,
  body.kh-modern-theme .Main-content .sqs-col-4,
  body.kh-modern-theme .Main-content .sqs-col-5,
  body.kh-modern-theme .Main-content .sqs-col-6,
  body.kh-modern-theme .Main-content .sqs-col-7,
  body.kh-modern-theme .Main-content .sqs-col-8,
  body.kh-modern-theme .Main-content .sqs-col-9,
  body.kh-modern-theme .Main-content .sqs-col-10,
  body.kh-modern-theme .Main-content .sqs-col-11,
  body.kh-modern-theme .Main-content .sqs-col-12 {
    display: block;
    float: none;
    width: 100% !important;
    margin-left: 0 !important;
    padding-inline: 0;
  }

  body.kh-modern-theme #benefits .sqs-col-4 {
    margin-bottom: 1rem;
  }

  body.kh-modern-theme #swag .Index-page-content {
    width: calc(100% - 1rem);
    margin-block: 1.2rem;
    border-radius: 24px;
  }

  body.kh-modern-theme:not(.homepage) .Content-outer {
    padding: 0.8rem 0.55rem 2.5rem;
  }

  body.kh-modern-theme:not(.homepage) .Content-outer > .Main-content {
    border-radius: 21px;
    padding: 1.2rem 0.95rem 2rem;
  }

  body.kh-modern-theme table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  body.kh-modern-theme .Footer-inner {
    width: calc(100% - 2rem);
  }
}

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

  body.kh-modern-theme *,
  body.kh-modern-theme *::before,
  body.kh-modern-theme *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Better Together homepage direction */
body.kh-modern-theme #welcome.kh-community-hero-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 255, 255, 0.92), transparent 18rem),
    linear-gradient(132deg, #e5f7fc 0%, #cfeefa 48%, #f8fcfd 100%);
}

body.kh-modern-theme #welcome.kh-community-hero-section::before,
body.kh-modern-theme #welcome.kh-community-hero-section::after {
  z-index: 0;
  border-color: rgba(20, 119, 185, 0.13);
  border-width: 2px;
}

body.kh-modern-theme #welcome.kh-community-hero-section::before {
  right: -14rem;
  bottom: -23rem;
  width: 50rem;
  height: 40rem;
  transform: rotate(-9deg);
}

body.kh-modern-theme #welcome.kh-community-hero-section::after {
  top: -15rem;
  left: -9rem;
  width: 31rem;
  height: 23rem;
}

body.kh-modern-theme .kh-community-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 6rem);
  box-sizing: border-box;
  width: min(100% - 3rem, 1440px);
  min-height: clamp(690px, 78vh, 850px);
  margin-inline: auto;
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(6.75rem, 9vw, 8.5rem);
}

body.kh-modern-theme .kh-community-hero-copy {
  max-width: 650px;
}

body.kh-modern-theme #welcome .kh-community-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  color: var(--kh-moss);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.kh-modern-theme .kh-community-eyebrow::before {
  width: 2.25rem;
  height: 3px;
  border-radius: 999px;
  background: var(--kh-orange);
  content: "";
}

body.kh-modern-theme #welcome .kh-community-hero-copy h1 {
  max-width: 760px;
  margin: 0 0 1.35rem;
  color: var(--kh-navy);
  font-size: clamp(3.8rem, 6.4vw, 7rem);
  line-height: 0.91;
  letter-spacing: -0.065em;
  text-align: left;
  text-wrap: balance;
}

body.kh-modern-theme #welcome .kh-community-lede {
  max-width: 610px;
  margin: 0 0 0.85rem;
  color: var(--kh-ink);
  font-size: clamp(1.22rem, 2vw, 1.58rem);
  font-weight: 650;
  line-height: 1.45;
}

body.kh-modern-theme #welcome .kh-community-intro {
  max-width: 610px;
  margin: 0;
  color: var(--kh-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

body.kh-modern-theme .kh-community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

body.kh-modern-theme .kh-community-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  box-sizing: border-box;
  border: 2px solid var(--kh-teal);
  border-radius: 13px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1;
  padding: 1rem 1.25rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

body.kh-modern-theme .kh-community-button:hover {
  transform: translateY(-3px);
}

body.kh-modern-theme .kh-community-button--primary {
  border-color: var(--kh-orange);
  background: var(--kh-orange);
  box-shadow: 0 12px 28px rgba(199, 73, 24, 0.23);
  color: var(--kh-white);
}

body.kh-modern-theme .kh-community-button--primary:hover {
  background: #dc5723;
  color: var(--kh-white);
}

body.kh-modern-theme .kh-community-button--secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--kh-teal-dark);
}

body.kh-modern-theme .kh-community-button--secondary:hover {
  background: var(--kh-white);
  color: var(--kh-teal-dark);
}

body.kh-modern-theme .kh-community-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2.15rem 0 0;
}

body.kh-modern-theme .kh-community-facts > div {
  border-left: 2px solid rgba(20, 119, 185, 0.18);
  padding-left: 0.78rem;
}

body.kh-modern-theme .kh-community-facts dt {
  color: var(--kh-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.kh-modern-theme .kh-community-facts dd {
  margin: 0.2rem 0 0;
  color: var(--kh-navy);
  font-family: Cabin, "Libre Franklin", sans-serif;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.25;
}

body.kh-modern-theme .kh-community-collage {
  position: relative;
  min-height: 590px;
}

body.kh-modern-theme .kh-community-photo {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 8px solid rgba(255, 255, 255, 0.92);
  background: var(--kh-white);
  box-shadow: 0 24px 60px rgba(6, 36, 63, 0.17);
}

body.kh-modern-theme .kh-community-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.kh-modern-theme .kh-community-photo figcaption {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  max-width: calc(100% - 1.7rem);
  border-radius: 999px;
  background: rgba(6, 36, 63, 0.88);
  color: var(--kh-white);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.065em;
  line-height: 1.25;
  padding: 0.52rem 0.7rem;
  text-transform: uppercase;
}

body.kh-modern-theme .kh-community-photo--main {
  top: 2.5rem;
  left: 0;
  width: 67%;
  height: 71%;
  border-radius: 88px 28px 82px 32px;
  transform: rotate(-1.8deg);
}

body.kh-modern-theme .kh-community-photo--main img {
  object-position: center 33%;
}

body.kh-modern-theme .kh-community-photo--action {
  top: 0;
  right: 0;
  width: 39%;
  height: 42%;
  border-radius: 26px 68px 34px 52px;
  transform: rotate(2deg);
}

body.kh-modern-theme .kh-community-photo--action img {
  object-position: 55% center;
}

body.kh-modern-theme .kh-community-photo--history {
  right: 1.5%;
  bottom: 0;
  width: 47%;
  height: 46%;
  border-radius: 48px 28px 78px 30px;
  transform: rotate(1.2deg);
}

body.kh-modern-theme .kh-community-photo--history img {
  filter: saturate(0.82) contrast(1.02);
  object-position: center center;
}

body.kh-modern-theme .kh-community-river-line {
  position: absolute;
  right: -4%;
  bottom: -4.2rem;
  left: -4%;
  z-index: 1;
  height: 8rem;
  border-top: 17px solid rgba(57, 191, 231, 0.76);
  border-radius: 50% 50% 0 0;
  transform: rotate(-1.2deg);
}

body.kh-modern-theme .kh-community-river-line::after {
  position: absolute;
  top: 18px;
  right: 0;
  left: 0;
  height: 5rem;
  border-top: 6px solid rgba(20, 119, 185, 0.25);
  border-radius: 50% 50% 0 0;
  content: "";
}

@media (max-width: 1120px) {
  body.kh-modern-theme .kh-community-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
    gap: 2rem;
  }

  body.kh-modern-theme #welcome .kh-community-hero-copy h1 {
    font-size: clamp(3.5rem, 6vw, 5.7rem);
  }

  body.kh-modern-theme .kh-community-collage {
    min-height: 530px;
  }
}

@media (max-width: 900px) {
  body.kh-modern-theme .kh-community-hero {
    grid-template-columns: 1fr;
    width: min(100% - 2rem, 760px);
    padding-top: 4rem;
  }

  body.kh-modern-theme .kh-community-hero-copy {
    max-width: 680px;
  }

  body.kh-modern-theme .kh-community-collage {
    min-height: 590px;
  }
}

@media (max-width: 600px) {
  body.kh-modern-theme .kh-community-hero {
    width: min(100% - 1.35rem, 540px);
    gap: 2.25rem;
    padding: 3.15rem 0 6rem;
  }

  body.kh-modern-theme #welcome .kh-community-hero-copy h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
    line-height: 0.94;
  }

  body.kh-modern-theme .kh-community-actions {
    display: grid;
  }

  body.kh-modern-theme .kh-community-facts {
    grid-template-columns: 1fr;
  }

  body.kh-modern-theme .kh-community-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    min-height: 0;
  }

  body.kh-modern-theme .kh-community-photo {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    border-width: 5px;
    border-radius: 22px;
    aspect-ratio: 1 / 1;
    transform: none;
  }

  body.kh-modern-theme .kh-community-photo--main {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  body.kh-modern-theme .kh-community-photo figcaption {
    right: 0.55rem;
    bottom: 0.55rem;
    font-size: 0.59rem;
  }
}

/* Site-wide Better Together page families */
body.kh-modern-theme.kh-page:not(.kh-page--home) .Content-outer {
  padding: clamp(1.1rem, 3.8vw, 3.75rem) clamp(0.75rem, 2.8vw, 2.25rem) clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 7% 2%, rgba(57, 191, 231, 0.15), transparent 23rem),
    radial-gradient(circle at 94% 18%, rgba(239, 108, 53, 0.08), transparent 18rem),
    linear-gradient(180deg, #edf9fc 0, #f8fcfd 24rem, #f7fbfc 100%);
}

body.kh-modern-theme.kh-page:not(.kh-page--home) .Content-outer .Main-content {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 1180px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(10, 55, 97, 0.11);
  border-top: 0;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 64px rgba(6, 36, 63, 0.12);
  padding: clamp(1.4rem, 2.75vw, 2.75rem);
}

body.kh-modern-theme.kh-page:not(.kh-page--home) .Content-outer .Main-content::before {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--kh-cyan), var(--kh-teal), var(--kh-orange));
  content: "";
}

body.kh-modern-theme.kh-page:not(.kh-page--home) .Main-content h1,
body.kh-modern-theme.kh-page:not(.kh-page--home) .Main-content h2 {
  text-wrap: balance;
}

body.kh-modern-theme.kh-page:not(.kh-page--home) .Main-content h1:first-child,
body.kh-modern-theme.kh-page:not(.kh-page--home) .Main-content h2:first-child,
body.kh-modern-theme.kh-page:not(.kh-page--home) .Main-content .sqs-html-content > h1:first-child,
body.kh-modern-theme.kh-page:not(.kh-page--home) .Main-content .sqs-html-content > h2:first-child {
  margin-top: 0;
  font-size: clamp(2.2rem, 4.7vw, 4.25rem);
  line-height: 1.02;
}

body.kh-modern-theme.kh-page:not(.kh-page--home) .Main-content .sqs-html-content > h1:first-child::after,
body.kh-modern-theme.kh-page:not(.kh-page--home) .Main-content .sqs-html-content > h2:first-child::after {
  display: block;
  width: 4.25rem;
  height: 5px;
  margin: 1rem auto 0;
  border-radius: 99px;
  background: var(--kh-orange);
  content: "";
}

body.kh-modern-theme.kh-page:not(.kh-page--home) .Main-content .sqs-html-content p,
body.kh-modern-theme.kh-page:not(.kh-page--home) .Main-content .sqs-html-content li {
  color: #294b64;
  font-size: clamp(1rem, 1.25vw, 1.075rem);
}

/* Remove layout debris inherited from Squarespace's editor grid. Empty
   paragraphs and full-width spacer blocks should not create page-sized gaps. */
body.kh-modern-theme.kh-page:not(.kh-page--home) .Main-content .sqs-html-content > p:empty,
body.kh-modern-theme.kh-page:not(.kh-page--home) .Main-content .sqs-html-content > p:has(> br:only-child) {
  display: none;
}

/* Product blocks copied from deleted or unavailable Squarespace products are
   emitted as empty 34px placeholders. Keep real product blocks, remove shells. */
body.kh-modern-theme.kh-page:not(.kh-page--home) .Main-content .sqs-block-website-component[data-definition-name="website.components.product"]:not(:has(.product-block-content > *)) {
  display: none !important;
}

body.kh-modern-theme.kh-page:not(.kh-page--home):not(.kh-tool--integrated) .Main-content .sqs-col-12 > .spacer-block {
  box-sizing: border-box;
  height: clamp(1.25rem, 2.4vw, 2.25rem) !important;
  min-height: 0 !important;
  padding: 0 !important;
}

/* Copied load-effect classes can leave the navigation blank for a beat while
   their original Squarespace runtime initializes. The static mirror is ready
   immediately, so keep the site chrome visible from first paint. */
body.kh-modern-theme .Header-branding,
body.kh-modern-theme .Header-nav,
body.kh-modern-theme .Header-actions,
body.kh-modern-theme .Header-cart,
body.kh-modern-theme .Mobile-bar {
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
  transition: none !important;
}

/* Media frames: remove the inset seam and make images meet their borders. */
body.kh-modern-theme.kh-page .sqs-block-image .sqs-block-content,
body.kh-modern-theme.kh-page .sqs-block-image .image-block-outer-wrapper,
body.kh-modern-theme.kh-page .sqs-block-image figure,
body.kh-modern-theme.kh-page .sqs-block-image .image-block-wrapper,
body.kh-modern-theme.kh-page .sqs-block-image .sqs-image-shape-container-element {
  max-width: 100% !important;
}

body.kh-modern-theme.kh-page .sqs-block-image .image-block-wrapper,
body.kh-modern-theme.kh-page .sqs-block-image .sqs-image-shape-container-element,
body.kh-modern-theme.kh-page .sqs-gallery-block-grid .slide,
body.kh-modern-theme.kh-page .gallery-block-grid .slide {
  overflow: hidden;
  border-radius: 20px;
  background: #dceff4;
}

body.kh-modern-theme.kh-page .sqs-block-image img,
body.kh-modern-theme.kh-page .sqs-gallery-block-grid img,
body.kh-modern-theme.kh-page .gallery-block-grid img,
body.kh-modern-theme.kh-page .eventlist-thumbnail,
body.kh-modern-theme.kh-page .ProductItem-gallery img,
body.kh-modern-theme.kh-page .ProductList-image img {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  object-fit: cover !important;
}

body.kh-modern-theme.kh-page .sqs-block-image .sqs-image-shape-container-element > img {
  transform: scale(1.006);
}

body.kh-modern-theme #benefits .image-block-v2,
body.kh-modern-theme #benefits .image-block-wrapper,
body.kh-modern-theme #benefits .sqs-image-shape-container-element {
  border-radius: 0;
}

body.kh-modern-theme #benefits .image-block-wrapper,
body.kh-modern-theme #benefits .sqs-image-shape-container-element {
  width: 100% !important;
  margin: 0 !important;
}

body.kh-modern-theme #benefits .design-layout-collage.sqs-narrow-width > .intrinsic,
body.kh-modern-theme #benefits .design-layout-collage.sqs-narrow-width > .image-card-wrapper {
  width: 100% !important;
}

body.kh-modern-theme #benefits .image-block-wrapper img,
body.kh-modern-theme #benefits .sqs-image-shape-container-element img {
  transform: scale(1.012);
}

body.kh-modern-theme .kh-community-photo--main {
  width: 78%;
  height: 53%;
}

body.kh-modern-theme .kh-community-photo--main img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 118%;
  height: auto;
  max-width: none;
  clip-path: none;
  object-fit: initial;
  transform: translateX(-50%);
}

/* Standard editorial pages */
body.kh-modern-theme.kh-page--standard .Main-content > .sqs-layout > .sqs-row:first-child {
  margin: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

body.kh-modern-theme.kh-page--standard .Main-content > .sqs-layout > .sqs-row:first-child::before {
  display: none;
}

body.kh-modern-theme.kh-page--standard .Main-content > .sqs-layout > .sqs-row:first-child > .sqs-col-12 > .sqs-block-html:first-child {
  box-sizing: border-box;
  width: min(100%, 900px) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Membership overview: the copied Squarespace shell otherwise leaves a wide
   white canvas behind the content card. Let the site background show through,
   widen the editorial card, and use its opening copy as a real masthead. */
body.kh-modern-theme.kh-content--membership-overview .Content-outer > .Main {
  background: transparent;
}

body.kh-modern-theme.kh-content--membership-overview .Content-outer .Main-content {
  width: min(100%, 1360px) !important;
}

body.kh-modern-theme.kh-content--membership-overview .Main-content > .sqs-layout > .sqs-row:first-child > .sqs-col-12 > .sqs-block-html:first-child {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 clamp(1.75rem, 3vw, 2.75rem);
}

body.kh-modern-theme.kh-content--membership-overview .Main-content > .sqs-layout > .sqs-row:first-child > .sqs-col-12 > .sqs-block-html:first-child .sqs-html-content {
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1rem, 2vw, 1.5rem) clamp(2.5rem, 5vw, 5.25rem);
  align-items: start;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 8%, rgba(57, 191, 231, 0.28), transparent 18rem),
    radial-gradient(circle at 8% 92%, rgba(239, 108, 53, 0.16), transparent 15rem),
    linear-gradient(135deg, var(--kh-deep) 0%, var(--kh-navy) 58%, var(--kh-teal-dark) 100%);
  box-shadow: 0 20px 48px rgba(6, 36, 63, 0.18);
  padding: clamp(2.25rem, 4.6vw, 4.25rem);
}

body.kh-modern-theme.kh-content--membership-overview .Main-content > .sqs-layout > .sqs-row:first-child > .sqs-col-12 > .sqs-block-html:first-child h2 {
  grid-column: 1;
  grid-row: 1 / span 3;
  max-width: 8ch;
  margin: 0;
  color: var(--kh-white);
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 0.98;
  text-align: left !important;
}

body.kh-modern-theme.kh-content--membership-overview .Main-content > .sqs-layout > .sqs-row:first-child > .sqs-col-12 > .sqs-block-html:first-child h2::after {
  width: 4.5rem;
  margin: 1.15rem 0 0;
  background: var(--kh-orange);
}

body.kh-modern-theme.kh-content--membership-overview .Main-content > .sqs-layout > .sqs-row:first-child > .sqs-col-12 > .sqs-block-html:first-child p {
  grid-column: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.68;
}

body.kh-modern-theme.kh-content--membership-overview .Main-content > .sqs-layout > .sqs-row:first-child > .sqs-col-12 > .sqs-block-html:first-child p:last-child {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  color: var(--kh-white);
}

body.kh-modern-theme.kh-content--membership-overview .Main-content > .sqs-layout > .sqs-row:first-child > .sqs-col-12 > .sqs-block-html:first-child a {
  color: #9de8fa;
}

body.kh-modern-theme.kh-content--membership-overview .Main-content > .sqs-layout > .sqs-row:first-child > .sqs-col-12 > .sqs-block-html:first-child a:hover {
  color: var(--kh-white);
}

body.kh-modern-theme.kh-page--standard .Main-content .sqs-block-image {
  margin-bottom: 1.25rem;
}

body.kh-modern-theme.kh-page--standard.kh-content--media-rich .Main-content {
  width: min(100%, 1280px) !important;
}

/* Iframes are content, not a page family. Forms, calendars, videos, and river
   reference sheets retain editorial spacing instead of inheriting tool chrome. */
body.kh-modern-theme.kh-page--standard.kh-content--embedded .Content-outer .Main-content {
  width: min(100%, 1280px) !important;
}

body.kh-modern-theme.kh-page--standard.kh-content--embedded .sqs-block-code,
body.kh-modern-theme.kh-page--standard.kh-content--embedded .code-block,
body.kh-modern-theme.kh-page--standard.kh-content--embedded .sqs-code-container {
  box-sizing: border-box;
  max-width: 100%;
}

body.kh-modern-theme.kh-page--standard.kh-content--embedded iframe {
  display: block;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(10, 55, 97, 0.11) !important;
  border-radius: 20px;
  background: var(--kh-white);
  box-shadow: 0 12px 34px rgba(6, 36, 63, 0.09);
}

body.kh-modern-theme.kh-page--standard.kh-content--calendar-embed iframe,
body.kh-modern-theme.kh-page--standard.kh-content--reference iframe {
  width: 100% !important;
}

/* Calendar list */
body.kh-modern-theme.kh-page--events.kh-view--list .Content-outer .Main-content {
  width: min(100%, 1280px) !important;
  background: rgba(247, 252, 253, 0.98);
  padding: clamp(1.15rem, 3vw, 2.75rem);
}

body.kh-modern-theme.kh-page--events .eventlist-past-upcoming-divider {
  margin: 0 0 2rem;
}

body.kh-modern-theme.kh-page--events .eventlist-event {
  display: grid !important;
  grid-template-columns: minmax(150px, 205px) minmax(92px, 112px) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(1rem, 2.4vw, 2rem);
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(10, 55, 97, 0.11);
  border-radius: 22px;
  background: var(--kh-white);
  box-shadow: 0 10px 30px rgba(6, 36, 63, 0.075);
  padding: 1rem;
}

body.kh-modern-theme.kh-page--events .eventlist-column-thumbnail {
  display: block !important;
  width: 100% !important;
  min-height: 190px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--kh-sky);
}

body.kh-modern-theme.kh-page--events .eventlist-column-date {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--kh-navy);
  color: var(--kh-white);
  text-decoration: none;
}

body.kh-modern-theme.kh-page--events .eventlist-datetag,
body.kh-modern-theme.kh-page--events .eventlist-datetag-inner {
  color: inherit;
  text-align: center;
}

body.kh-modern-theme.kh-page--events .eventlist-datetag-startdate--month {
  color: #92e3f5;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.kh-modern-theme.kh-page--events .eventlist-datetag-startdate--day {
  font-family: Cabin, sans-serif;
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1;
}

body.kh-modern-theme.kh-page--events .eventlist-column-info {
  min-width: 0;
  padding: 0.4rem 0.35rem 0.4rem 0;
}

body.kh-modern-theme.kh-page--events .eventlist-title {
  margin: 0 0 0.65rem !important;
  font-size: clamp(1.45rem, 2.2vw, 2rem) !important;
  line-height: 1.13 !important;
}

body.kh-modern-theme.kh-page--events .eventlist-title-link {
  color: var(--kh-navy);
  text-decoration: none;
}

body.kh-modern-theme.kh-page--events .eventlist-meta {
  color: var(--kh-muted);
  font-size: 0.88rem;
}

body.kh-modern-theme.kh-page--events .eventlist-description {
  color: #31536b;
}

body.kh-modern-theme.kh-page--events .kh-events-empty {
  box-sizing: border-box;
  width: min(100%, 760px);
  margin: 0 auto;
  border: 1px solid rgba(10, 55, 97, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(57, 191, 231, 0.2), transparent 20rem),
    var(--kh-white);
  box-shadow: var(--kh-shadow-soft);
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

body.kh-modern-theme.kh-page--events .kh-events-empty-eyebrow {
  margin: 0 0 0.55rem;
  color: var(--kh-teal-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.kh-modern-theme.kh-page--events .kh-events-empty h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

body.kh-modern-theme.kh-page--events .kh-events-empty > p:not(.kh-events-empty-eyebrow) {
  max-width: 570px;
  margin: 0 auto;
  color: var(--kh-muted);
}

body.kh-modern-theme.kh-page--events .kh-events-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

/* Calendar details */
body.kh-modern-theme.kh-page--events.kh-view--item .Content-outer .Main-content {
  width: min(100%, 1240px) !important;
}

body.kh-modern-theme.kh-page--events .eventitem-backlink {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--kh-teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
}

body.kh-modern-theme.kh-page--events .eventitem {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.55fr);
  gap: clamp(1.5rem, 4vw, 4.25rem);
}

body.kh-modern-theme.kh-page--events .eventitem-column-meta {
  align-self: start;
  box-sizing: border-box;
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 22px;
  background:
    radial-gradient(circle at 95% 0, rgba(57, 191, 231, 0.22), transparent 14rem),
    linear-gradient(145deg, var(--kh-deep), var(--kh-navy));
  box-shadow: 0 18px 44px rgba(6, 36, 63, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: clamp(1.35rem, 2.6vw, 2.25rem);
}

body.kh-modern-theme.kh-page--events .eventitem-title {
  margin: 0 0 1.25rem;
  color: var(--kh-white);
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1.04;
}

body.kh-modern-theme.kh-page--events .eventitem-meta,
body.kh-modern-theme.kh-page--events .eventitem-meta a {
  color: rgba(255, 255, 255, 0.82);
}

body.kh-modern-theme.kh-page--events .eventitem-column-content {
  min-width: 0;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

body.kh-modern-theme.kh-page--events .eventitem-pager {
  margin-top: clamp(2.5rem, 5vw, 4rem) !important;
  border-top: 1px solid var(--kh-border);
  padding-top: 1.25rem;
}

/* Galleries */
body.kh-modern-theme.kh-page--gallery .Content-outer .Main-content {
  width: min(100%, 1360px) !important;
  background: rgba(255, 255, 255, 0.94);
  padding: clamp(1.1rem, 3vw, 3rem);
}

body.kh-modern-theme.kh-page--gallery .sqs-gallery-block-grid .sqs-gallery-design-grid-slide,
body.kh-modern-theme.kh-page--gallery .sqs-gallery-block-grid .slide,
body.kh-modern-theme.kh-page--gallery .gallery-block-grid .slide {
  box-sizing: border-box;
  border: 5px solid var(--kh-white);
  border-radius: 18px;
  box-shadow: 0 9px 24px rgba(6, 36, 63, 0.11);
}

body.kh-modern-theme.kh-page--gallery .sqs-gallery-block-grid .content-fill,
body.kh-modern-theme.kh-page--gallery .gallery-block-grid .content-fill {
  position: relative !important;
  display: block !important;
  overflow: hidden;
  border-radius: 13px;
}

body.kh-modern-theme.kh-page--gallery .sqs-gallery-block-grid img,
body.kh-modern-theme.kh-page--gallery .gallery-block-grid img {
  position: absolute !important;
  inset: 0 !important;
  border-radius: 13px;
}

body.kh-modern-theme.kh-page--gallery .sqs-system-gallery,
body.kh-modern-theme.kh-page--gallery .gallery-wrapper {
  overflow: hidden;
  border-radius: 24px;
  background: #e6f5f8;
}

/* Store and registration products */
body.kh-modern-theme.kh-page--products .Content-outer .Main-content {
  width: min(100%, 1220px) !important;
}

body.kh-modern-theme.kh-page--products .ProductList-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

body.kh-modern-theme.kh-page--products .ProductList-item {
  overflow: hidden;
  border: 1px solid var(--kh-border);
  border-radius: 20px;
  background: var(--kh-white);
  box-shadow: 0 12px 32px rgba(6, 36, 63, 0.09);
}

body.kh-modern-theme.kh-page--products .ProductItem {
  display: block;
}

body.kh-modern-theme.kh-page--products .ProductItem-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 1.5rem !important;
  border-bottom: 1px solid var(--kh-border);
  padding: 0 0 1rem;
}

body.kh-modern-theme.kh-page--products .ProductItem-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(2rem, 5vw, 5rem);
}

body.kh-modern-theme.kh-page--products .ProductItem-gallery,
body.kh-modern-theme.kh-page--products .ProductItem-details {
  min-width: 0;
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
}

body.kh-modern-theme.kh-page--products .ProductItem-details {
  align-self: start;
  border-radius: 22px;
  background: linear-gradient(145deg, #eef9fb, #ffffff);
  box-shadow: 0 14px 38px rgba(6, 36, 63, 0.09);
  padding: clamp(1.35rem, 3vw, 2.5rem);
}

body.kh-modern-theme.kh-page--products .ProductItem-details-title {
  color: var(--kh-navy);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

body.kh-modern-theme.kh-page--products .sqs-add-to-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 13px;
  background: linear-gradient(135deg, #1789ca, var(--kh-teal-dark));
  box-shadow: 0 10px 24px rgba(20, 119, 185, 0.22);
  color: var(--kh-white);
  font-weight: 800;
  letter-spacing: 0.045em;
  padding: 0 1.3rem;
}

body.kh-modern-theme .sqs-system-error {
  display: none !important;
}

/* Data tools and embedded calculators keep their own UI, framed by the site. */
body.kh-modern-theme.kh-page--tools .Content-outer .Main-content {
  width: min(100%, 1320px) !important;
  background: rgba(255, 255, 255, 0.78);
  padding: clamp(0.65rem, 2vw, 1.4rem);
}

body.kh-modern-theme.kh-page--tools .Main-content > .sqs-layout,
body.kh-modern-theme.kh-page--tools .Main-content > .sqs-layout > .sqs-row,
body.kh-modern-theme.kh-page--tools .Main-content > .sqs-layout > .sqs-row > .sqs-col-12 {
  width: 100%;
}

body.kh-modern-theme.kh-page--tools .sqs-block-code,
body.kh-modern-theme.kh-page--tools .code-block,
body.kh-modern-theme.kh-page--tools .sqs-code-container {
  max-width: 100%;
  padding: 0;
}

body.kh-modern-theme.kh-page--tools iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
  border-radius: 20px;
  background: var(--kh-white);
  box-shadow: 0 12px 34px rgba(6, 36, 63, 0.09);
}

/* Search and 404 */
body.kh-modern-theme.kh-page--system .Content-outer .Main-content {
  width: min(100%, 780px) !important;
  min-height: 380px;
  display: grid;
  align-content: center;
  background:
    radial-gradient(circle at 100% 0, rgba(57, 191, 231, 0.19), transparent 17rem),
    var(--kh-white);
}

body.kh-modern-theme.kh-page--system .Main-content::after {
  display: block;
  width: 5rem;
  height: 5px;
  margin-top: 1.5rem;
  border-radius: 99px;
  background: var(--kh-orange);
  content: "";
}

body.kh-modern-theme.kh-page--system .sqs-search-page-input,
body.kh-modern-theme.kh-page--system .sqs-search-page-output {
  overflow: hidden;
  border: 1px solid var(--kh-border);
  border-radius: 18px;
  background: #f5fbfc;
  padding: 1rem;
}

@media (max-width: 900px) {
  body.kh-modern-theme.kh-page--events .eventlist-event {
    grid-template-columns: minmax(130px, 0.7fr) 88px minmax(0, 1.4fr);
  }

  body.kh-modern-theme.kh-page--events .eventitem,
  body.kh-modern-theme.kh-page--products .ProductItem-summary {
    grid-template-columns: 1fr;
  }

  body.kh-modern-theme.kh-page--products .ProductList-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.kh-modern-theme .kh-community-photo--main {
    width: auto;
    height: auto;
    aspect-ratio: 1.88 / 1;
  }

  body.kh-modern-theme .kh-community-photo--main img {
    width: 100%;
  }

  body.kh-modern-theme.kh-page:not(.kh-page--home) .Content-outer {
    padding: 0.65rem 0.45rem 2.75rem;
  }

  body.kh-modern-theme.kh-page:not(.kh-page--home) .Content-outer .Main-content {
    border-radius: 20px;
    padding: 1.25rem 0.8rem 2rem;
  }

  /* Squarespace uses spacer-only columns as desktop gutters. Once its grid
     stacks on a phone those columns become empty horizontal bands. */
  body.kh-modern-theme.kh-page:not(.kh-page--home) .Main-content [class*="sqs-col-"]:has(> .spacer-block:only-child) {
    display: none !important;
  }

  body.kh-modern-theme.kh-page:not(.kh-page--home):not(.kh-tool--integrated) .Main-content .sqs-col-12 > .spacer-block {
    height: 1.1rem !important;
  }

  /* The copied template injects an empty fixed bottom bar and an inline body
     margin for it. The active controls are in Mobile-bar--top. */
  body.kh-modern-theme {
    margin-bottom: 0 !important;
  }

  body.kh-modern-theme .Mobile-bar--bottom {
    display: none !important;
  }

  body.kh-modern-theme.kh-page--standard .Main-content > .sqs-layout > .sqs-row:first-child {
    margin: 0;
    border-radius: 0;
    padding: 0;
  }

  body.kh-modern-theme.kh-content--membership-overview .Main-content > .sqs-layout > .sqs-row:first-child > .sqs-col-12 > .sqs-block-html:first-child {
    padding-bottom: 1.5rem;
  }

  body.kh-modern-theme.kh-content--membership-overview .Main-content > .sqs-layout > .sqs-row:first-child > .sqs-col-12 > .sqs-block-html:first-child .sqs-html-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
    border-radius: 17px;
    padding: clamp(1.5rem, 7vw, 2.25rem);
  }

  body.kh-modern-theme.kh-content--membership-overview .Main-content > .sqs-layout > .sqs-row:first-child > .sqs-col-12 > .sqs-block-html:first-child h2,
  body.kh-modern-theme.kh-content--membership-overview .Main-content > .sqs-layout > .sqs-row:first-child > .sqs-col-12 > .sqs-block-html:first-child p {
    grid-column: 1;
  }

  body.kh-modern-theme.kh-content--membership-overview .Main-content > .sqs-layout > .sqs-row:first-child > .sqs-col-12 > .sqs-block-html:first-child h2 {
    grid-row: auto;
    max-width: none;
    font-size: clamp(2.6rem, 13vw, 3.5rem);
  }

  body.kh-modern-theme.kh-page--standard.kh-content--embedded .sqs-block-code,
  body.kh-modern-theme.kh-page--standard.kh-content--embedded .code-block,
  body.kh-modern-theme.kh-page--standard.kh-content--embedded .sqs-code-container {
    width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }

  body.kh-modern-theme.kh-page--standard.kh-content--embedded iframe {
    width: 100% !important;
  }

  body.kh-modern-theme.kh-page--events .eventlist-event {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 0.8rem;
    border-radius: 17px;
    padding: 0.72rem;
  }

  body.kh-modern-theme.kh-page--events .eventlist-column-thumbnail {
    grid-column: 1 / -1;
    min-height: 210px;
  }

  body.kh-modern-theme.kh-page--events .eventlist-column-date {
    min-height: 88px;
  }

  body.kh-modern-theme.kh-page--events .eventlist-column-info {
    padding: 0.1rem 0;
  }

  body.kh-modern-theme.kh-page--events .eventlist-description {
    display: none;
  }

  body.kh-modern-theme.kh-page--events .kh-events-empty {
    border-radius: 18px;
    padding: 1.5rem 1rem;
  }

  body.kh-modern-theme.kh-page--events .kh-events-empty-actions {
    display: grid;
  }

  body.kh-modern-theme.kh-page--events .kh-events-empty-actions a {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }

  body.kh-modern-theme.kh-page--events .eventitem-column-meta,
  body.kh-modern-theme.kh-page--products .ProductItem-details {
    border-radius: 17px;
    padding: 1.2rem;
  }

  body.kh-modern-theme.kh-page--products .ProductList-grid {
    grid-template-columns: 1fr;
  }

  body.kh-modern-theme.kh-page--products .ProductItem-nav {
    display: grid;
    align-items: stretch;
    gap: 0.7rem;
  }

  body.kh-modern-theme.kh-page--products .ProductItem-nav-breadcrumb {
    min-width: 0;
  }

  body.kh-modern-theme.kh-page--products .ProductItem-nav-breadcrumb-separator,
  body.kh-modern-theme.kh-page--products .ProductItem-nav-breadcrumb-link:last-child,
  body.kh-modern-theme.kh-page--products .ProductItem-nav-pagination-separator,
  body.kh-modern-theme.kh-page--products .ProductItem-nav-pagination-link-title {
    display: none !important;
  }

  body.kh-modern-theme.kh-page--products .ProductItem-nav-breadcrumb-link:first-child,
  body.kh-modern-theme.kh-page--products .ProductItem-nav-pagination-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid rgba(10, 55, 97, 0.12);
    border-radius: 12px;
    background: var(--kh-white);
    color: var(--kh-teal-dark);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.65rem 0.8rem;
    text-decoration: none;
  }

  body.kh-modern-theme.kh-page--products .ProductItem-nav-pagination {
    display: flex;
    justify-content: space-between;
    gap: 0.55rem;
    width: 100%;
  }

  body.kh-modern-theme.kh-page--products .ProductItem-nav-pagination-link--next {
    margin-left: auto;
  }

  body.kh-modern-theme.kh-page--tools iframe {
    min-height: 440px;
    border-radius: 14px;
  }
}

/* Better Together system carried through the remaining site */
body.kh-modern-theme .Header.Header--top,
body.kh-modern-theme .Header.Header--bottom {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(6, 36, 63, 0.07);
}

body.kh-modern-theme .Header-branding-logo {
  max-width: 178px;
}

body.kh-modern-theme .Header-nav-item:hover,
body.kh-modern-theme .Header-nav-folder-title:hover,
body.kh-modern-theme .Header-nav-item--active {
  background: var(--kh-sky);
  color: var(--kh-teal-dark);
}

body.kh-modern-theme .Index-nav {
  display: none;
}

body.kh-modern-theme #benefits {
  position: relative;
  overflow: hidden;
  background: var(--kh-white);
}

body.kh-modern-theme #benefits::before {
  position: absolute;
  top: 3.5rem;
  left: -5rem;
  width: 17rem;
  height: 9rem;
  border: 3px solid rgba(57, 191, 231, 0.22);
  border-right: 0;
  border-bottom: 0;
  border-radius: 70% 0 0 0;
  content: "";
  transform: rotate(9deg);
}

body.kh-modern-theme #benefits .Index-page-content {
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

body.kh-modern-theme #benefits h2 {
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  color: var(--kh-navy);
  font-size: clamp(2.35rem, 4.8vw, 4.4rem);
  text-align: center;
  text-wrap: balance;
}

body.kh-modern-theme #benefits h2::after {
  display: block;
  width: 4rem;
  height: 5px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: var(--kh-orange);
  content: "";
}

body.kh-modern-theme #benefits .row:nth-child(2) {
  display: flex;
  align-items: stretch;
  gap: 1.15rem;
}

body.kh-modern-theme #benefits .row:nth-child(2) > .sqs-col-4 {
  display: flex;
  float: none;
  width: calc((100% - 2.3rem) / 3);
  padding: 0;
}

body.kh-modern-theme #benefits .image-block-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-color: rgba(10, 55, 97, 0.1);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(6, 36, 63, 0.1);
}

body.kh-modern-theme #benefits .sqs-col-4:nth-child(1) .image-block-v2 {
  border-top: 6px solid var(--kh-teal);
}

body.kh-modern-theme #benefits .sqs-col-4:nth-child(2) .image-block-v2 {
  border-top: 6px solid var(--kh-moss);
}

body.kh-modern-theme #benefits .sqs-col-4:nth-child(3) .image-block-v2 {
  border-top: 6px solid var(--kh-orange);
}

body.kh-modern-theme #benefits .intrinsic,
body.kh-modern-theme #benefits .image-inset,
body.kh-modern-theme #benefits .sqs-image-shape-container-element {
  height: 240px;
}

body.kh-modern-theme #benefits .image-block-wrapper img,
body.kh-modern-theme #benefits .sqs-image-shape-container-element img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover !important;
}

body.kh-modern-theme #benefits .image-card-wrapper {
  display: flex;
  flex: 1;
}

body.kh-modern-theme #benefits .image-card {
  min-height: 0;
  padding: 1.5rem 1.55rem 1.7rem;
}

body.kh-modern-theme #benefits .image-title p {
  font-size: 1.55rem;
}

body.kh-modern-theme #benefits .image-subtitle p {
  margin: 0 0 0.78rem;
  font-size: 0.93rem;
  line-height: 1.58;
}

body.kh-modern-theme #benefits .image-subtitle p:last-child {
  margin-bottom: 0;
}

body.kh-modern-theme .kh-community-history {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 10%, rgba(57, 191, 231, 0.22), transparent 22rem),
    linear-gradient(145deg, #082d4d 0%, #0a4777 62%, #11669a 100%);
}

body.kh-modern-theme .kh-community-history-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  box-sizing: border-box;
  width: min(100% - 3rem, 1240px);
  margin-inline: auto;
  padding: clamp(5rem, 9vw, 8rem) 0;
}

body.kh-modern-theme .kh-community-history-photos {
  position: relative;
  min-height: 530px;
}

body.kh-modern-theme .kh-community-history-photo {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 7px solid rgba(255, 255, 255, 0.94);
  background: var(--kh-white);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.27);
}

body.kh-modern-theme .kh-community-history-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.kh-modern-theme .kh-community-history-photo figcaption {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  left: 0.8rem;
  border-radius: 12px;
  background: rgba(6, 36, 63, 0.88);
  color: var(--kh-white);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  line-height: 1.35;
  padding: 0.58rem 0.7rem;
  text-align: center;
  text-transform: uppercase;
}

body.kh-modern-theme .kh-community-history-photo--archive {
  top: 0;
  left: 0;
  width: 76%;
  height: 77%;
  border-radius: 28px 82px 34px 66px;
  transform: rotate(-2deg);
}

body.kh-modern-theme .kh-community-history-photo--today {
  right: 0;
  bottom: 0;
  width: 52%;
  height: 48%;
  border-radius: 66px 26px 54px 28px;
  transform: rotate(2.4deg);
}

body.kh-modern-theme .kh-community-section-label {
  margin: 0 0 1rem;
  color: #86dcf2;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.kh-modern-theme .kh-community-history-copy h2 {
  margin: 0 0 1.35rem;
  color: var(--kh-white);
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  line-height: 0.98;
  text-wrap: balance;
}

body.kh-modern-theme .kh-community-history-copy > p:not(.kh-community-section-label) {
  max-width: 590px;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.03rem;
  line-height: 1.72;
}

body.kh-modern-theme .kh-community-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  color: var(--kh-white);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

body.kh-modern-theme .kh-community-text-link span {
  color: var(--kh-gold-light);
  font-size: 1.25rem;
  transition: transform 160ms ease;
}

body.kh-modern-theme .kh-community-text-link:hover {
  color: var(--kh-gold-light);
}

body.kh-modern-theme .kh-community-text-link:hover span {
  transform: translateX(4px);
}

body.kh-modern-theme #swag {
  background: #f4fbfd;
}

body.kh-modern-theme #swag .Index-page-content {
  border-radius: 36px;
  background:
    radial-gradient(circle at 91% 3%, rgba(255, 255, 255, 0.2), transparent 18rem),
    linear-gradient(132deg, #0b5f9e, var(--kh-teal) 64%, #2aaed5);
  box-shadow: 0 22px 60px rgba(6, 36, 63, 0.18);
}

body.kh-modern-theme #swag .sqs-block-button-element {
  background: var(--kh-orange);
  box-shadow: 0 11px 26px rgba(135, 43, 10, 0.26);
}

body.kh-modern-theme #upcoming-events,
body.kh-modern-theme #upcoming-events-mobile {
  background: linear-gradient(180deg, #f4fbfd, var(--kh-white));
}

body.kh-modern-theme #upcoming-events .sqs-layout,
body.kh-modern-theme #upcoming-events-mobile .sqs-layout {
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(6, 36, 63, 0.08);
}

body.kh-modern-theme:not(.homepage) .Content-outer {
  background:
    linear-gradient(180deg, rgba(217, 243, 251, 0.54), transparent 20rem),
    #f7fcfd;
}

body.kh-modern-theme:not(.homepage) .Content-outer > .Main-content {
  border-top: 6px solid var(--kh-cyan);
  border-radius: 26px;
  box-shadow: 0 18px 52px rgba(6, 36, 63, 0.1);
}

body.kh-modern-theme:not(.homepage) .Main-content h1:first-child::after,
body.kh-modern-theme:not(.homepage) .Main-content h2:first-child::after {
  display: block;
  width: 3.6rem;
  height: 5px;
  margin-top: 0.9rem;
  border-radius: 999px;
  background: var(--kh-orange);
  content: "";
}

body.kh-modern-theme .sqs-block-button-element,
body.kh-modern-theme input[type="submit"],
body.kh-modern-theme button[type="submit"]:not(.Mobile-bar-menu):not(.Mobile-bar-cart) {
  border-radius: 13px !important;
  background: linear-gradient(135deg, #1789ca, var(--kh-teal-dark));
  box-shadow: 0 10px 24px rgba(20, 119, 185, 0.22);
}

body.kh-modern-theme .Footer {
  background:
    radial-gradient(circle at 90% -20%, rgba(57, 191, 231, 0.24), transparent 28rem),
    var(--kh-deep);
}

@media (max-width: 900px) {
  body.kh-modern-theme #benefits .row:nth-child(2) {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.kh-modern-theme #benefits .row:nth-child(2) > .sqs-col-4 {
    width: 100%;
  }

  body.kh-modern-theme .kh-community-history-inner {
    grid-template-columns: 1fr;
    width: min(100% - 2rem, 760px);
  }

  body.kh-modern-theme .kh-community-history-copy {
    max-width: 680px;
  }
}

@media (max-width: 600px) {
  body.kh-modern-theme #benefits .intrinsic,
  body.kh-modern-theme #benefits .image-inset,
  body.kh-modern-theme #benefits .sqs-image-shape-container-element {
    height: 215px;
  }

  body.kh-modern-theme .kh-community-history-inner {
    width: min(100% - 1.35rem, 540px);
    gap: 2.75rem;
  }

  body.kh-modern-theme .kh-community-history-photos {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0.65rem;
    min-height: 0;
  }

  body.kh-modern-theme .kh-community-history-photo {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    border-width: 5px;
    border-radius: 22px;
    aspect-ratio: 4 / 5;
    transform: none;
  }

  body.kh-modern-theme .kh-community-history-photo--today {
    align-self: end;
    aspect-ratio: 1 / 1;
  }

  body.kh-modern-theme .kh-community-history-photo figcaption {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    font-size: 0.58rem;
  }
}

/* Integrated river tools
   The copied calculators retain their data and event logic, while this shared
   shell owns their layout, type, controls, cards, and responsive behavior. */
body.kh-modern-theme.kh-tool--integrated .Content-outer {
  padding: clamp(0.85rem, 2vw, 1.65rem) clamp(0.65rem, 2vw, 1.5rem) clamp(3rem, 6vw, 5rem);
}

body.kh-modern-theme.kh-tool--integrated .Content-outer .Main-content {
  width: min(100%, 1440px) !important;
  max-width: 1440px !important;
  overflow: visible;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.kh-modern-theme.kh-tool--integrated .Content-outer .Main-content::before {
  display: none;
}

body.kh-modern-theme.kh-tool--integrated .Main-content > .sqs-layout,
body.kh-modern-theme.kh-tool--integrated .Main-content > .sqs-layout > .sqs-row,
body.kh-modern-theme.kh-tool--integrated .Main-content > .sqs-layout > .sqs-row > [class*="sqs-col-"] {
  box-sizing: border-box;
  float: none;
  width: 100% !important;
  margin: 0;
}

body.kh-modern-theme.kh-tool--integrated .Main-content .spacer-block {
  display: none;
}

body.kh-modern-theme.kh-tool--integrated .sqs-block-code,
body.kh-modern-theme.kh-tool--integrated .code-block,
body.kh-modern-theme.kh-tool--integrated .sqs-code-container {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0;
}

body.kh-modern-theme .kh-tool-family {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  width: 100%;
  margin: 0 0 clamp(1rem, 2vw, 1.4rem);
  overflow: hidden;
  border: 1px solid rgba(10, 55, 97, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 13px 38px rgba(6, 36, 63, 0.1);
  padding: 0.7rem;
}

body.kh-modern-theme .kh-tool-family-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.7rem;
  min-width: max-content;
  color: var(--kh-navy);
  text-decoration: none;
}

body.kh-modern-theme .kh-tool-family-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--kh-orange), #ff9761);
  box-shadow: 0 8px 18px rgba(205, 75, 26, 0.2);
  color: var(--kh-white);
  font-family: Cabin, sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
}

body.kh-modern-theme .kh-tool-family-brand small,
body.kh-modern-theme .kh-tool-family-brand strong {
  display: block;
}

body.kh-modern-theme .kh-tool-family-brand small {
  margin-bottom: 0.12rem;
  color: var(--kh-muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.kh-modern-theme .kh-tool-family-brand strong {
  color: var(--kh-navy);
  font-family: Cabin, sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

body.kh-modern-theme .kh-tool-family-links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  overflow-x: auto;
  padding: 0.25rem;
  scrollbar-color: rgba(10, 55, 97, 0.25) transparent;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
}

body.kh-modern-theme .kh-tool-family-links a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #31536b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  padding: 0.62rem 0.78rem;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
}

body.kh-modern-theme .kh-tool-family-links a:hover {
  border-color: rgba(20, 119, 185, 0.16);
  background: var(--kh-mist);
  color: var(--kh-teal-dark);
}

body.kh-modern-theme .kh-tool-family-links a[aria-current="page"] {
  border-color: rgba(20, 119, 185, 0.18);
  background: linear-gradient(135deg, var(--kh-teal), var(--kh-teal-dark));
  box-shadow: 0 7px 18px rgba(20, 119, 185, 0.19);
  color: var(--kh-white);
}

body.kh-modern-theme.kh-tool--integrated :is(
  .kh-nrg-calc,
  .kh-cheat-calc,
  .kh-uy,
  #kh-weather-dashboard,
  #kh-river-gauges,
  #kh-rain-gauges,
  #kh-river-gauges-wvmdpa
) {
  --kh-bg: #eef9fc !important;
  --kh-bg-2: #f8fcfd !important;
  --kh-panel: #ffffff !important;
  --kh-panel-soft: #f3fafc !important;
  --kh-card: #ffffff !important;
  --kh-text: #12304a !important;
  --kh-muted: #526d7f !important;
  --kh-line: rgba(10, 55, 97, 0.14) !important;
  --kh-link: #0b6fae !important;
  --kh-accent: #1477b9 !important;
  --kh-accent-2: #ef6c35 !important;
  --kh-shadow: 0 13px 36px rgba(6, 36, 63, 0.09) !important;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  color: var(--kh-ink);
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

body.kh-modern-theme.kh-tool--integrated :is(
  .kh-nrg-calc,
  .kh-cheat-calc,
  .kh-uy,
  #kh-weather-dashboard,
  #kh-river-gauges,
  #kh-rain-gauges,
  #kh-river-gauges-wvmdpa
) *,
body.kh-modern-theme.kh-tool--integrated :is(
  .kh-nrg-calc,
  .kh-cheat-calc,
  .kh-uy,
  #kh-weather-dashboard,
  #kh-river-gauges,
  #kh-rain-gauges,
  #kh-river-gauges-wvmdpa
) *::before,
body.kh-modern-theme.kh-tool--integrated :is(
  .kh-nrg-calc,
  .kh-cheat-calc,
  .kh-uy,
  #kh-weather-dashboard,
  #kh-river-gauges,
  #kh-rain-gauges,
  #kh-river-gauges-wvmdpa
) *::after {
  box-sizing: border-box;
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) {
  overflow: visible;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) .wrap,
body.kh-modern-theme.kh-tool--integrated .kh-uy .wrap {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) > header,
body.kh-modern-theme.kh-tool--integrated :is(
  #kh-weather-dashboard .kh-weather-header,
  #kh-river-gauges .kh-gauge-header,
  #kh-rain-gauges .kh-rain-header,
  #kh-river-gauges-wvmdpa .kh-gauge-header
) {
  position: relative;
  overflow: hidden;
  margin: 0 0 1rem;
  border: 1px solid rgba(20, 119, 185, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(57, 191, 231, 0.22), transparent 19rem),
    linear-gradient(135deg, #ffffff, #eef9fc);
  box-shadow: 0 14px 38px rgba(6, 36, 63, 0.08);
  padding: clamp(1.25rem, 3vw, 2.15rem);
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) > header {
  border-bottom: 1px solid rgba(20, 119, 185, 0.16);
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) h1,
body.kh-modern-theme.kh-tool--integrated :is(
  #kh-weather-dashboard,
  #kh-river-gauges,
  #kh-rain-gauges,
  #kh-river-gauges-wvmdpa
) h2 {
  color: var(--kh-navy);
  font-family: Cabin, "Libre Franklin", sans-serif;
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) h1 {
  max-width: 930px;
  font-size: clamp(2.15rem, 4.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) .sub {
  max-width: 900px;
  color: var(--kh-muted);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
}

body.kh-modern-theme.kh-tool--integrated .kh-cheat-calc .links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

body.kh-modern-theme.kh-tool--integrated .kh-cheat-calc .links a {
  display: inline-flex;
  border: 1px solid rgba(20, 119, 185, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--kh-teal-dark);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) .grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.15rem);
  padding-top: 0;
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) .card,
body.kh-modern-theme.kh-tool--integrated :is(
  #kh-weather-dashboard .kh-weather-panel,
  #kh-weather-dashboard .kh-qpf-card,
  #kh-weather-dashboard .kh-forecast-card,
  #kh-river-gauges .kh-card,
  #kh-rain-gauges .kh-rain-card,
  #kh-river-gauges-wvmdpa .kh-card
) {
  border: 1px solid rgba(10, 55, 97, 0.12);
  border-radius: 20px;
  background: var(--kh-white);
  box-shadow: 0 13px 36px rgba(6, 36, 63, 0.085);
  color: var(--kh-ink);
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) .card {
  grid-column: span 6;
  min-height: 0;
  padding: clamp(1.1rem, 2.2vw, 1.55rem);
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) .card.wide {
  grid-column: span 12;
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) .card h2 {
  color: var(--kh-navy);
  font-family: Cabin, "Libre Franklin", sans-serif;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) .big {
  color: var(--kh-navy);
  font-size: clamp(2.8rem, 6.5vw, 5.25rem);
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) :is(.units, .k, .note, .status-line, footer) {
  color: var(--kh-muted);
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) .row {
  border-color: rgba(10, 55, 97, 0.1);
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) .val {
  color: var(--kh-ink);
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) footer {
  padding: 1.1rem 0 0;
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc, .kh-uy) button,
body.kh-modern-theme.kh-tool--integrated :is(
  #kh-weather-dashboard,
  #kh-river-gauges,
  #kh-rain-gauges,
  #kh-river-gauges-wvmdpa
) .kh-refresh {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: linear-gradient(135deg, #1789ca, var(--kh-teal-dark));
  box-shadow: 0 9px 22px rgba(20, 119, 185, 0.2);
  color: var(--kh-white);
  font-family: inherit;
  font-weight: 800;
  padding: 0.68rem 0.95rem;
}

body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc, .kh-uy) button:hover,
body.kh-modern-theme.kh-tool--integrated :is(
  #kh-weather-dashboard,
  #kh-river-gauges,
  #kh-rain-gauges,
  #kh-river-gauges-wvmdpa
) .kh-refresh:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

body.kh-modern-theme.kh-tool--integrated :is(
  #kh-weather-dashboard,
  #kh-river-gauges,
  #kh-rain-gauges,
  #kh-river-gauges-wvmdpa
) :is(.kh-filter, .kh-link-button),
body.kh-modern-theme.kh-tool--integrated .kh-uy :is(button.ghost, .card button.secondary) {
  min-height: 40px;
  border: 1px solid rgba(10, 55, 97, 0.14);
  border-radius: 12px;
  background: var(--kh-white);
  box-shadow: none;
  color: var(--kh-navy);
  font-family: inherit;
  font-weight: 750;
}

body.kh-modern-theme.kh-tool--integrated :is(
  #kh-weather-dashboard,
  #kh-river-gauges,
  #kh-rain-gauges,
  #kh-river-gauges-wvmdpa
) .kh-filter.is-active {
  border-color: var(--kh-orange);
  background: var(--kh-orange);
  color: var(--kh-white);
}

body.kh-modern-theme.kh-tool--integrated :is(
  #kh-weather-dashboard,
  #kh-river-gauges,
  #kh-rain-gauges,
  #kh-river-gauges-wvmdpa
) :is(.kh-search, .kh-select),
body.kh-modern-theme.kh-tool--integrated .kh-uy :is(input, select) {
  min-height: 46px;
  border: 1px solid rgba(10, 55, 97, 0.15);
  border-radius: 13px;
  background: var(--kh-white);
  color: var(--kh-ink);
  font: inherit;
  padding: 0.7rem 0.85rem;
}

body.kh-modern-theme.kh-tool--integrated .kh-uy .hero {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 9% 10%, rgba(57, 191, 231, 0.34), transparent 27rem),
    radial-gradient(circle at 94% 9%, rgba(239, 108, 53, 0.24), transparent 22rem),
    linear-gradient(135deg, var(--kh-deep), var(--kh-teal-dark));
  box-shadow: 0 18px 48px rgba(6, 36, 63, 0.16);
}

body.kh-modern-theme.kh-tool--integrated .kh-uy .hero :is(h1, h2, h3) {
  color: var(--kh-white);
}

body.kh-modern-theme.kh-tool--integrated .kh-uy .hero button.secondary {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: var(--kh-white);
}

body.kh-modern-theme.kh-tool--integrated .kh-uy .content {
  margin-top: clamp(0.9rem, 2vw, 1.25rem);
}

body.kh-modern-theme.kh-tool--integrated .kh-uy .card {
  border-color: rgba(10, 55, 97, 0.12);
  border-radius: 20px;
  box-shadow: 0 13px 36px rgba(6, 36, 63, 0.085);
}

body.kh-modern-theme.kh-tool--integrated :is(
  #kh-weather-dashboard,
  #kh-river-gauges,
  #kh-rain-gauges,
  #kh-river-gauges-wvmdpa
) {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

body.kh-modern-theme.kh-tool--integrated :is(
  #kh-weather-dashboard,
  #kh-river-gauges,
  #kh-rain-gauges,
  #kh-river-gauges-wvmdpa
) :is(.kh-gauge-grid, .kh-rain-grid, .kh-forecast-grid, .kh-qpf-grid) {
  gap: clamp(0.75rem, 1.6vw, 1.15rem);
}

body.kh-modern-theme.kh-tool--integrated :is(
  #kh-river-gauges,
  #kh-rain-gauges,
  #kh-river-gauges-wvmdpa
) :is(.kh-value, .kh-summary-value) {
  color: var(--kh-navy);
  font-family: Cabin, "Libre Franklin", sans-serif;
}

body.kh-modern-theme.kh-tool--integrated iframe {
  display: block;
  width: 100%;
  min-height: 640px;
  border: 1px solid rgba(10, 55, 97, 0.12);
  border-radius: 22px;
  background: var(--kh-white);
  box-shadow: 0 13px 36px rgba(6, 36, 63, 0.09);
}

body.kh-modern-theme.kh-tool--check-the-weather .Main-content .sqs-block-html:has(+ .sqs-block-code),
body.kh-modern-theme.kh-tool--rainfall-wv-pa .Main-content .sqs-block-html:has(+ .sqs-block-code),
body.kh-modern-theme.kh-tool--usgs-gauges-of-interest .Main-content .sqs-block-html:has(+ .sqs-block-code) {
  display: none;
}

body.kh-modern-theme.kh-tool--water-gauges .Main-content .sqs-block-html:first-child .sqs-html-content,
body.kh-modern-theme.kh-tool--river-levelwvmdpa .Main-content .sqs-block-html:first-child .sqs-html-content {
  margin: 0 0 1rem;
  border: 1px solid rgba(10, 55, 97, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.8rem 1rem;
}

body.kh-modern-theme.kh-tool--water-gauges .Main-content .sqs-block-html:first-child h3,
body.kh-modern-theme.kh-tool--river-levelwvmdpa .Main-content .sqs-block-html:first-child h2 {
  display: none;
}

body.kh-modern-theme.kh-tool--water-gauges .Main-content .sqs-block-html:first-child ul,
body.kh-modern-theme.kh-tool--river-levelwvmdpa .Main-content .sqs-block-html:first-child ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.kh-modern-theme.kh-tool--water-gauges .Main-content .sqs-block-html:first-child li,
body.kh-modern-theme.kh-tool--river-levelwvmdpa .Main-content .sqs-block-html:first-child li {
  display: block;
  margin: 0;
  list-style: none !important;
}

body.kh-modern-theme.kh-tool--water-gauges .Main-content .sqs-block-html:first-child li::marker,
body.kh-modern-theme.kh-tool--river-levelwvmdpa .Main-content .sqs-block-html:first-child li::marker {
  content: "";
  font-size: 0;
}

body.kh-modern-theme.kh-tool--water-gauges .Main-content .sqs-block-html:first-child li p,
body.kh-modern-theme.kh-tool--river-levelwvmdpa .Main-content .sqs-block-html:first-child li p {
  margin: 0;
}

body.kh-modern-theme.kh-tool--water-gauges .Main-content .sqs-block-html:first-child li p::before,
body.kh-modern-theme.kh-tool--river-levelwvmdpa .Main-content .sqs-block-html:first-child li p::before {
  display: none !important;
  content: none !important;
}

body.kh-modern-theme.kh-tool--water-gauges .Main-content .sqs-block-html:first-child li a,
body.kh-modern-theme.kh-tool--river-levelwvmdpa .Main-content .sqs-block-html:first-child li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--kh-mist);
  color: var(--kh-teal-dark);
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.5rem 0.7rem;
  text-decoration: none;
}

body.kh-modern-theme.kh-tool--usgs-gauges-of-interest .sqs-block-code {
  overflow-x: auto;
  border: 1px solid rgba(10, 55, 97, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 13px 36px rgba(6, 36, 63, 0.08);
  padding: clamp(0.7rem, 2vw, 1.25rem);
}

body.kh-modern-theme.kh-tool--usgs-gauges-of-interest table {
  width: 100%;
  min-width: 760px;
  border: 0;
  border-collapse: separate;
  border-spacing: 0 0.38rem;
  color: var(--kh-ink);
}

body.kh-modern-theme.kh-tool--usgs-gauges-of-interest :is(th, td) {
  border: 0;
  background: var(--kh-white);
  padding: 0.75rem 0.85rem;
  text-align: left;
  white-space: normal;
}

body.kh-modern-theme.kh-tool--usgs-gauges-of-interest th {
  background: var(--kh-deep);
  color: var(--kh-white);
  font-size: 0.76rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

body.kh-modern-theme.kh-tool--usgs-gauges-of-interest tr > :first-child {
  border-radius: 12px 0 0 12px;
}

body.kh-modern-theme.kh-tool--usgs-gauges-of-interest tr > :last-child {
  border-radius: 0 12px 12px 0;
}

body.kh-modern-theme.kh-tool--usgs-gauges-of-interest td[colspan] {
  border-radius: 12px;
  background: var(--kh-mist);
  color: var(--kh-navy);
  font-family: Cabin, "Libre Franklin", sans-serif;
  font-size: 1.05rem;
}

@media (max-width: 820px) {
  body.kh-modern-theme .kh-tool-family {
    display: block;
  }

  body.kh-modern-theme .kh-tool-family-brand {
    padding: 0.2rem 0.25rem 0.7rem;
  }

  body.kh-modern-theme .kh-tool-family-links {
    margin-inline: -0.2rem;
    padding-bottom: 0.35rem;
  }

  body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) .card,
  body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) .card.wide {
    grid-column: span 12;
  }

  body.kh-modern-theme.kh-tool--integrated :is(
    #kh-weather-dashboard .kh-weather-header,
    #kh-river-gauges .kh-gauge-header,
    #kh-rain-gauges .kh-rain-header,
    #kh-river-gauges-wvmdpa .kh-gauge-header
  ) {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body.kh-modern-theme.kh-tool--integrated .Content-outer {
    padding: 0.55rem 0.42rem 2.75rem;
  }

  body.kh-modern-theme.kh-tool--integrated .Content-outer .Main-content {
    border-radius: 0;
    padding: 0;
  }

  body.kh-modern-theme .kh-tool-family {
    border-radius: 18px;
    padding: 0.55rem;
  }

  body.kh-modern-theme.kh-tool--integrated :is(.kh-nrg-calc, .kh-cheat-calc) > header,
  body.kh-modern-theme.kh-tool--integrated :is(
    #kh-weather-dashboard .kh-weather-header,
    #kh-river-gauges .kh-gauge-header,
    #kh-rain-gauges .kh-rain-header,
    #kh-river-gauges-wvmdpa .kh-gauge-header
  ),
  body.kh-modern-theme.kh-tool--integrated .kh-uy .hero {
    border-radius: 19px;
  }

  body.kh-modern-theme.kh-tool--integrated :is(
    #kh-weather-dashboard,
    #kh-river-gauges,
    #kh-rain-gauges,
    #kh-river-gauges-wvmdpa
  ) :is(.kh-filter-row, .kh-resource-links) {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  body.kh-modern-theme.kh-tool--integrated iframe {
    min-height: 520px;
    border-radius: 16px;
  }
}

/* Roll-session details: keep schedule and registration information as real
   text instead of flattening it into inaccessible flyer images. */
body.kh-modern-theme.kh-content--roll-sessions .Main-content .sqs-html-content > h2:first-child {
  margin: clamp(2.4rem, 5vw, 4.5rem) 0 1.25rem;
  color: var(--kh-navy);
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.05;
  text-align: center;
}

body.kh-modern-theme.kh-content--roll-sessions .Main-content .sqs-col-12 > .sqs-block-html:first-child .sqs-html-content > h2:first-child {
  margin-top: 0;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-block {
  box-sizing: border-box;
  width: min(100%, 980px);
  margin: 0 auto 1.5rem;
  padding: 0;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session {
  overflow: hidden;
  border: 1px solid rgba(10, 55, 97, 0.13);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(57, 191, 231, 0.1), transparent 17rem),
    var(--kh-white);
  box-shadow: 0 14px 38px rgba(6, 36, 63, 0.09);
  color: var(--kh-ink);
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-updated {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin: 1.25rem 1.25rem 0;
  border-radius: 999px;
  background: rgba(239, 108, 53, 0.12);
  color: #a84219;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  padding: 0.45rem 0.7rem;
  text-transform: uppercase;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  padding: 1.25rem;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-summary > section {
  border: 1px solid rgba(10, 55, 97, 0.1);
  border-radius: 18px;
  background: rgba(241, 250, 252, 0.88);
  padding: clamp(1rem, 2.2vw, 1.4rem);
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-label {
  margin: 0 0 0.55rem;
  color: var(--kh-teal-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session address,
body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-time {
  margin: 0;
  color: var(--kh-navy);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  font-style: normal;
  line-height: 1.55;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session address strong,
body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-time strong {
  font-family: Cabin, "Libre Franklin", sans-serif;
  font-size: 1.2em;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-dates {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-dates > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.44fr) minmax(0, 1fr);
  gap: 0.65rem;
  border-top: 1px solid rgba(10, 55, 97, 0.09);
  padding-top: 0.35rem;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-dates :is(dt, dd) {
  margin: 0;
  line-height: 1.45;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-dates dt {
  color: #4c687d;
  font-weight: 750;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-dates dd {
  color: var(--kh-navy);
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  border-top: 1px solid rgba(10, 55, 97, 0.1);
  background: #fbfefe;
  padding: 1.25rem;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-details-grid > section {
  border-radius: 16px;
  background: var(--kh-white);
  padding: 1rem;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-details-grid > .kh-roll-session-wide {
  grid-column: 1 / -1;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-details-grid > .kh-roll-session-price {
  background: linear-gradient(135deg, rgba(245, 179, 53, 0.17), rgba(239, 108, 53, 0.08));
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session h3 {
  margin: 0 0 0.55rem;
  color: var(--kh-navy);
  font-size: 1.05rem;
  line-height: 1.25;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session :is(p, li) {
  color: #294b64;
  font-size: 0.98rem;
  line-height: 1.6;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-details-grid p {
  margin: 0.45rem 0 0;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-details-grid ul {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding-left: 1.2rem;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session a {
  color: #087f87;
  font-weight: 750;
  overflow-wrap: anywhere;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.14em;
}

body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session a:hover {
  color: var(--kh-orange);
}

@media (max-width: 700px) {
  body.kh-modern-theme.kh-content--roll-sessions .Main-content .sqs-html-content > h2:first-child {
    margin-top: 2.5rem;
    font-size: clamp(1.75rem, 9vw, 2.45rem);
  }

  body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session {
    border-radius: 18px;
  }

  body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-updated {
    margin: 0.9rem 0.9rem 0;
  }

  body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-summary,
  body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-details-grid {
    grid-template-columns: 1fr;
    padding: 0.9rem;
  }

  body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-details-grid > .kh-roll-session-wide {
    grid-column: auto;
  }

  body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-summary > section,
  body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-details-grid > section {
    border-radius: 14px;
    padding: 0.9rem;
  }

  body.kh-modern-theme.kh-content--roll-sessions .kh-roll-session-dates > div {
    grid-template-columns: minmax(5.7rem, 0.45fr) minmax(0, 1fr);
  }
}
