:root {
  --navy: #061a33;
  --deep: #092544;
  --blue: #0f6fae;
  --aqua: #35d6ff;
  --sky: #dff7ff;
  --gold: #f6c95f;
  --paper: #f6fbff;
  --ink: #102033;
  --muted: #5d7187;
  --card: rgba(255, 255, 255, 0.94);
  --shadow: 0 18px 55px rgba(0, 23, 57, 0.18);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(53, 214, 255, 0.24), transparent 30rem),
    radial-gradient(circle at top left, rgba(246, 201, 95, 0.16), transparent 28rem),
    linear-gradient(180deg, #eefaff 0%, #ffffff 44%, #eef8ff 100%);
  line-height: 1.6;
}
a { color: inherit; }
.network-strip {
  background: linear-gradient(90deg, #041425, #0b4972, #041425);
  color: #fff;
  text-align: center;
  padding: 0.72rem 1rem;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.network-strip a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}
.page-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.site-nav {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,111,174,.16);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(53,214,255,.28), rgba(246,201,95,.28));
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}
.nav-links a {
  color: var(--deep);
  font-weight: 800;
  text-decoration: none;
  font-size: .92rem;
  padding: .42rem .62rem;
  border-radius: 999px;
}
.nav-links a:hover,
.nav-links a:focus {
  background: rgba(15,111,174,.11);
}
.hero { padding: 1.25rem 0 2.5rem; }
.banner-frame {
  background: #041425;
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(53, 214, 255, 0.28);
}
.banner-frame img {
  width: 100%;
  display: block;
  height: auto;
}
.intro-card,
.subject-hero-card {
  margin: 1.6rem auto 0;
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - 24px));
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 2.3rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 111, 174, 0.16);
  text-align: center;
}
.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}
h1, h2, h3 { line-height: 1.12; margin-top: 0; }
h1 {
  font-size: clamp(2rem, 5.2vw, 4rem);
  margin-bottom: 0.85rem;
  color: var(--navy);
}
h2 {
  color: var(--navy);
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: #243c55;
  max-width: 920px;
  margin: 0 auto 1.25rem;
}
.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.78rem 1.1rem;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 32, 78, 0.18);
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), #0aa7d4);
  color: #fff;
}
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid rgba(15, 111, 174, 0.22);
}
section { padding: 2.5rem 0; }
.section-heading {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 1.65rem;
}
.section-heading h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
  margin-bottom: 0.6rem;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.grid,
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card,
.subject-card,
.resource-card,
.domain-card {
  background: var(--card);
  border: 1px solid rgba(15, 111, 174, 0.14);
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: 0 10px 32px rgba(0, 26, 61, 0.09);
  min-height: 100%;
}
.subject-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.subject-card:hover,
.subject-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 26, 61, 0.15);
  border-color: rgba(53, 214, 255, .55);
}
.icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(53, 214, 255, 0.22), rgba(246, 201, 95, 0.22));
  font-size: 1.55rem;
  margin-bottom: 0.85rem;
}
.subject-card .icon { margin-bottom: .95rem; }
.card h3,
.subject-card h3,
.resource-card h3,
.domain-card h3 {
  margin-bottom: 0.55rem;
  color: var(--deep);
  font-size: 1.2rem;
}
.card p,
.subject-card p,
.resource-card p,
.domain-card p {
  margin: 0;
  color: #43586e;
}
.card-link {
  color: var(--blue);
  font-weight: 900;
  margin-top: auto;
  padding-top: 1rem;
}
.feature-band {
  background:
    linear-gradient(135deg, rgba(6, 26, 51, 0.95), rgba(9, 37, 68, 0.92)),
    radial-gradient(circle at 15% 20%, rgba(53, 214, 255, 0.22), transparent 22rem);
  color: #fff;
  border-radius: 30px;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.feature-band:after {
  content: "";
  position: absolute;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  right: -9rem;
  top: -9rem;
  border: 1px solid rgba(53, 214, 255, 0.24);
  box-shadow: 0 0 80px rgba(53, 214, 255, 0.17) inset;
}
.feature-band h2 {
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.feature-band p {
  color: #dbefff;
  max-width: 900px;
  margin: 0;
  font-size: 1.08rem;
  position: relative;
  z-index: 1;
}
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
  position: relative;
  z-index: 1;
}
.pill {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
}
.domains {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.3rem;
}
.domain-card strong {
  display: block;
  color: var(--deep);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.domain-card span { color: var(--muted); }
.callout {
  background: linear-gradient(135deg, #fff, #effbff);
  border: 1px solid rgba(246, 201, 95, 0.5);
  border-left: 7px solid var(--gold);
  border-radius: 22px;
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: 0 14px 36px rgba(0, 26, 61, 0.1);
}
.callout h2 { color: var(--navy); margin-bottom: 0.5rem; }
.callout p { margin: 0; color: #43586e; font-size: 1.05rem; }
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.breadcrumb {
  font-size: .95rem;
  margin: 0 0 1rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--blue); font-weight: 900; text-decoration: none; }
.placeholder-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: #43586e;
}
.placeholder-list li { margin: .35rem 0; }
footer {
  margin-top: 2rem;
  background: var(--navy);
  color: #dcefff;
  text-align: center;
  padding: 2rem 1rem;
}
footer a { color: #fff; font-weight: 900; text-decoration: none; }
@media (max-width: 980px) {
  .grid,
  .subject-grid,
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-card,
  .subject-hero-card { margin-top: 1.25rem; }
  .nav-inner { align-items: flex-start; flex-direction: column; padding: .75rem 0; }
  .nav-links { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .page-wrap { width: min(100% - 22px, 1180px); }
  .network-strip { font-size: 0.86rem; }
  .banner-frame { border-radius: 18px; }
  .intro-card,
  .subject-hero-card {
    width: calc(100% - 8px);
    border-radius: 20px;
  }
  .grid,
  .subject-grid,
  .resource-grid,
  .domains { grid-template-columns: 1fr; }
  section { padding: 1.85rem 0; }
  .btn { width: 100%; }
}

/* ==========================================================
   Cape Cod Science Network - directory readability patch
   ----------------------------------------------------------
   Several of the large resource-directory pages use inline
   styles that were originally written for dark panels. On the
   lighter site background, those inline heading/description
   colors can become too pale. These !important rules safely
   override those inline colors across the Space, AI, STEM/STEAM,
   Chemistry, Physics, Robotics, and Marine pages while keeping
   the overall CCAN science design intact.
   ========================================================== */

.directory-section {
  color: var(--ink) !important;
}

.directory-section:nth-of-type(even),
.directory-section:nth-child(even),
.resource-section:nth-of-type(even),
.resource-section:nth-child(even) {
  background: rgba(15, 111, 174, 0.045) !important;
}

.directory-heading,
.directory-section .directory-heading,
.directory-section h2.directory-heading,
.resource-heading h2,
.resource-section .section-heading h2,
.directory-section .section-heading h2 {
  color: var(--navy) !important;
  text-shadow: none !important;
}

.directory-intro,
.directory-section .directory-intro,
.directory-section p.directory-intro,
.resource-section .section-heading p,
.directory-section .section-heading p,
.resource-heading p,
.link-note {
  color: #43586e !important;
  text-shadow: none !important;
}

.directory-eyebrow,
.eyebrow-line,
.small-caps-note {
  color: var(--blue) !important;
  background: rgba(53, 214, 255, 0.14) !important;
  border: 1px solid rgba(15, 111, 174, 0.22) !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  padding: 0.35rem 0.8rem !important;
  text-shadow: none !important;
}

.link-section h4 {
  color: var(--deep) !important;
  border-bottom-color: rgba(15, 111, 174, 0.22) !important;
  text-shadow: none !important;
}

.resource-link-card,
.link-card,
.agency-link,
.ai-link-card,
.mini-resource-card,
.guidance-card {
  background: rgba(255, 255, 255, 0.97) !important;
  color: var(--ink) !important;
  border-color: rgba(15, 111, 174, 0.16) !important;
  box-shadow: 0 14px 34px rgba(0, 26, 61, 0.10) !important;
}

.resource-link-card:hover,
.resource-link-card:focus,
.link-card:hover,
.link-card:focus,
.agency-link:hover,
.agency-link:focus,
.ai-link-card:hover,
.ai-link-card:focus {
  background: #eefaff !important;
  border-color: rgba(15, 111, 174, 0.42) !important;
  box-shadow: 0 18px 44px rgba(0, 26, 61, 0.16) !important;
}

.resource-link-card h3,
.link-card h3,
.agency-link strong,
.ai-link-card strong,
.mini-resource-card h3,
.guidance-card h3 {
  color: var(--deep) !important;
  text-shadow: none !important;
}

.resource-link-card p,
.link-card p,
.agency-link span,
.ai-link-card span,
.mini-resource-card p,
.guidance-card p,
.tagline-strip {
  color: #43586e !important;
  text-shadow: none !important;
}

.resource-link-card .visit,
.link-card .visit,
.agency-link .visit,
.ai-link-card .visit,
.visit {
  color: var(--blue) !important;
}

.resource-link-card .tag,
.resource-link-card .resource-meta,
.link-card .tag,
.tag,
.resource-meta {
  color: #075f82 !important;
  background: #eaf8ff !important;
  border-color: #cdeffc !important;
}

.quick-nav a,
.quick-jump a,
.jump-pills a.pill {
  color: var(--deep) !important;
  background: #ffffff !important;
  border-color: rgba(15, 111, 174, 0.22) !important;
}

.quick-nav a:hover,
.quick-jump a:hover,
.jump-pills a.pill:hover {
  background: #eaf8ff !important;
}


/* SEO/public launch polish */
.nav-links a[aria-current="page"] {
  background: rgba(15,111,174,.14);
  color: var(--navy);
}
.resource-link-card,
.resource-card-link,
.local-anchor-card,
.guidance-card,
.student-note {
  color: var(--ink);
}
.resource-link-card h3,
.resource-card-link h3,
.local-anchor-card h3,
.guidance-card h3,
.student-note h3 {
  color: var(--deep);
}
.resource-link-card p,
.resource-card-link p,
.local-anchor-card p,
.guidance-card p,
.student-note p {
  color: #43586e;
}
.resource-link-card a,
.resource-card-link a {
  color: var(--blue);
  font-weight: 900;
}
@media (max-width: 1120px) {
  .nav-links a { font-size: .88rem; padding: .38rem .52rem; }
}

/* =========================================================
   Cape Cod Arts Network Gateway Section
   Paste this CSS into your site stylesheet, or keep it as
   /assets/css/ccan-network-section.css and link it in <head>:
   <link rel="stylesheet" href="assets/css/ccan-network-section.css">
   ========================================================= */

.ccan-network-section {
  --ccan-navy: #061a33;
  --ccan-blue: #0f6fae;
  --ccan-gold: #d8a13f;
  --ccan-soft-gold: #fff7e6;
  --ccan-soft-blue: #eefaff;
  --ccan-border: rgba(11, 49, 95, 0.14);
  --ccan-text: #102033;
  --ccan-muted: #5c6f82;
  --ccan-white: #ffffff;

  max-width: 1180px;
  margin: 3rem auto;
  padding: 0 1rem;
  color: var(--ccan-text);
}

.ccan-network-card-wrap {
  background:
    radial-gradient(circle at top left, rgba(216, 161, 63, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, var(--ccan-soft-blue) 100%);
  border: 1px solid var(--ccan-border);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(11, 49, 95, 0.12);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  overflow: hidden;
}

.ccan-network-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.ccan-network-head h2 {
  margin: 0.15rem 0 0.6rem;
  color: var(--ccan-navy);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.05;
}

.ccan-network-eyebrow {
  margin: 0;
  color: var(--ccan-blue);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.ccan-network-muted {
  margin: 0;
  color: var(--ccan-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 760px;
}

.ccan-network-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4c76a, var(--ccan-gold));
  color: #1d2430;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(216, 161, 63, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ccan-network-button:hover,
.ccan-network-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(216, 161, 63, 0.36);
}

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

.ccan-network-link {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 185px;
  padding: 1.15rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(11, 49, 95, 0.12);
  color: var(--ccan-text);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(11, 49, 95, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ccan-network-link:hover,
.ccan-network-link:focus {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(11, 49, 95, 0.13);
  border-color: rgba(216, 161, 63, 0.62);
}

.ccan-network-link strong {
  color: var(--ccan-navy);
  font-size: 1.08rem;
  line-height: 1.25;
}

.ccan-network-link p {
  margin: 0;
  color: var(--ccan-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.ccan-network-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--ccan-soft-gold);
  font-size: 1.55rem;
}

.ccan-network-feature {
  grid-column: span 2;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.ccan-network-feature-image {
  display: block;
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 18px;
  padding: 0.45rem;
  border: 1px solid rgba(11, 49, 95, 0.1);
}

.ccan-network-feature-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

@media (max-width: 760px) {
  .ccan-network-section {
    margin: 2rem auto;
  }

  .ccan-network-head {
    flex-direction: column;
  }

  .ccan-network-button {
    width: 100%;
  }

  .ccan-network-feature {
    grid-column: span 1;
  }

  .ccan-network-link {
    min-height: auto;
  }
}

