/* Crystal Bridge – Education & Research */
:root {
  --navy: #0f2347;
  --navy-2: #152d57;
  --navy-3: #1c3a63;
  --teal: #0d8a7f;
  --teal-2: #0a6e66;
  --teal-soft: #e2f4f1;
  --blue: #1f6fd1;
  --blue-soft: #e5effb;
  --orange: #f5901e;
  --orange-2: #c9620c;
  --orange-soft: #fdf0e3;
  --ink: #16202e;
  --muted: #5a6577;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 8px 24px rgba(11, 31, 58, .07);
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--navy); color: #d6deea; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.dark .eyebrow { color: var(--orange); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s; font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-2); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-2); }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; flex: none; align-items: center; gap: 10px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand img { flex: none; width: auto; height: 42px; }
.site-header .container { max-width: 1360px; }
.brand-name { white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.1; letter-spacing: .02em; }
.brand-sub { display: block; font-size: .66rem; font-weight: 600; color: var(--teal); letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 9px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .86rem; white-space: nowrap;
}
.nav-links a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--teal-2); background: var(--teal-soft); }
.nav-cta { white-space: nowrap; padding: 10px 18px; font-size: .88rem; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }

@media (max-width: 1380px) {
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 1rem; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1000px 500px at 85% 10%, rgba(13,138,127,.45), transparent 60%),
              radial-gradient(700px 400px at 0% 100%, rgba(242,140,40,.18), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .22em; color: var(--orange); margin-bottom: 18px; }
.hero p.lead { color: #c9d4e3; margin-bottom: 32px; }
.hero-art-wrap { position: relative; justify-self: end; width: 100%; max-width: 480px; }
.hero-art-wrap::before {
  content: ""; position: absolute; inset: -14px; border-radius: 40px; filter: blur(26px); opacity: .55;
  background: conic-gradient(from var(--glow-angle, 0deg), #17b39a, #1f6fd1, #f5901e, #17b39a);
}
.hero-art {
  position: relative; background: #fff; border-radius: 28px; padding: 36px 32px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08);
}
.hero-art img { width: 100%; height: auto; }
.hero-pillars { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: .85rem; font-weight: 600;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; }
  .hero-art-wrap { justify-self: center; max-width: 320px; }
}

.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%); color: #c9d4e3; padding: 72px 0 64px; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .lead { color: #c9d4e3; }
.crumbs { font-size: .85rem; margin-bottom: 16px; color: #9fb0c7; }
.crumbs a { color: #cfe9e9; }

/* Grid & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 56px 0; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11,31,58,.06), 0 16px 36px rgba(11,31,58,.1); }
.card p { color: var(--muted); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
}
.icon.teal { background: var(--teal-soft); color: var(--teal); }
.icon.orange { background: var(--orange-soft); color: var(--orange-2); }
.icon.navy { background: #e6ebf3; color: var(--navy); }
.card-link { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }

.pillar { border-top: 4px solid var(--teal); }
.pillar.orange { border-top-color: var(--orange); }
.pillar.navy { border-top-color: var(--navy); }

.service-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-card .banner { height: 150px; display: grid; place-items: center; }
.service-card .body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.service-card .body .card-link { margin-top: auto; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d8a7f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}

.quote-box {
  background: var(--navy); color: #d6deea; border-radius: var(--radius); padding: 36px; position: relative;
}
.quote-box h3 { color: #fff; }
.quote-box + .quote-box { margin-top: 20px; }
.quote-box.teal { background: var(--teal-2); }

/* Course list */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: .88rem; color: var(--ink); font-family: inherit;
}
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.course-card { display: flex; flex-direction: column; }
.course-card h3 a { color: var(--navy); }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag {
  font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-2);
}
.tag.orange { background: var(--orange-soft); color: var(--orange-2); }
.tag.navy { background: #e6ebf3; color: var(--navy); }
.course-card .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 8px; }
.course-card .btn { padding: 10px 18px; font-size: .85rem; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-alt); color: var(--navy); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }

/* Course detail */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-block { margin-bottom: 40px; }
.syllabus { counter-reset: mod; list-style: none; padding: 0; }
.syllabus li {
  counter-increment: mod; position: relative; padding: 16px 18px 16px 64px; border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 10px; background: #fff;
}
.syllabus li::before {
  content: counter(mod, decimal-leading-zero); position: absolute; left: 18px; top: 15px;
  font-family: var(--font-display); font-weight: 800; color: var(--teal);
}
.facts { position: sticky; top: 96px; }
.facts dl { margin: 0; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-top: 16px; }
.facts dd { margin: 4px 0 0; font-weight: 600; color: var(--navy); }
.facts .btn { width: 100%; justify-content: center; margin-top: 12px; }
.tba { color: var(--orange-2); font-weight: 600; }

/* Calendar */
.calendar { display: grid; gap: 12px; }
.cal-item {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px;
}
.cal-date {
  text-align: center; border-radius: 10px; background: var(--navy); color: #fff; padding: 10px 6px; line-height: 1.2;
  font-family: var(--font-display);
}
.cal-date .m { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); font-weight: 700; }
.cal-date .d { font-size: .95rem; font-weight: 800; }
.cal-item h3 { font-size: 1.02rem; margin: 0 0 2px; }
.cal-item p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .cal-item { grid-template-columns: 72px 1fr; } .cal-item .btn { grid-column: 1 / -1; justify-content: center; } }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .9rem; color: var(--navy); display: block; margin-bottom: 6px; }
label .req { color: var(--orange-2); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cdd5e0; border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(13,138,127,.25); border-color: var(--teal); }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { display: none; padding: 14px 16px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-2); font-weight: 600; }
.form-status.show { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.consent input { width: auto; margin-top: 5px; }

/* Team */
.person { text-align: center; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--navy)); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
}
.person .role { color: var(--teal); font-weight: 600; font-size: .9rem; margin-bottom: 8px; }

/* Notice */
.notice {
  border-left: 4px solid var(--orange); background: var(--orange-soft); padding: 16px 20px; border-radius: 0 10px 10px 0; color: #6a3d0d; font-size: .95rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--teal-2), var(--teal) 50%, #17b39a); color: #fff; border-radius: 20px;
  padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #e0f4f4; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--orange); line-height: 1; }
.stat .lbl { color: #b9c6d8; font-size: .9rem; margin-top: 8px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Footer */
.site-footer { background: #071528; color: #a8b6c9; padding: 64px 0 28px; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: #cfd9e6; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Print / brochure */
@media print {
  .site-header, .site-footer, .no-print, .facts .btn { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0 0 16px; border-bottom: 3px solid var(--teal); }
  .page-hero h1 { color: var(--navy); }
  .page-hero .lead, .crumbs { color: #333; }
  .detail-grid { grid-template-columns: 1fr; }
  .facts { position: static; box-shadow: none; }
  .card { box-shadow: none; }
  .section { padding: 16px 0; }
}

/* Logo usage */
.site-footer .brand-chip { background: #fff; border-radius: 12px; padding: 6px 10px; display: inline-flex; }
.site-footer .brand-chip img { height: 34px; max-width: none; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #7fd3c6; }
.brand-sub span { color: var(--orange); }
.logo-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.logo-panel img { width: 100%; height: auto; }

/* Blog */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card .cover { aspect-ratio: 16/9; object-fit: cover; width: 100%; height: auto; }
.post-card .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { margin-top: 12px; }
.post-card h3 a { color: var(--navy); }
.prose { max-width: 760px; font-size: 1.06rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: 12px; margin: 1.5em 0; height: auto; }
.prose blockquote { border-left: 4px solid var(--teal); margin: 1.5em 0; padding: 4px 0 4px 20px; color: var(--muted); }
.prose code { background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.empty { text-align: center; color: var(--muted); padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Forms */
.form-status.error { background: var(--orange-soft); color: #8a3d05; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Motion ---------- */
.has-molecules { position: relative; overflow: hidden; }
.has-molecules > :not(.molecules) { position: relative; z-index: 1; }
.molecules { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
/* keep the busiest area away from the headline */
.molecules-hero { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.22) 45%, #000 70%); mask-image: linear-gradient(90deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.22) 45%, #000 70%); }
.molecules-page { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.12), rgba(0,0,0,.35) 45%, #000 80%); mask-image: linear-gradient(90deg, rgba(0,0,0,.12), rgba(0,0,0,.35) 45%, #000 80%); }
@media (max-width: 860px) {
  .molecules-hero, .molecules-page { -webkit-mask-image: none; mask-image: none; opacity: .55; }
}

@property --glow-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .hero-art-wrap { animation: rise 1s .25s cubic-bezier(.2,.7,.2,1) both; }
  .hero-art { animation: float 7s 1.2s ease-in-out infinite; }
  .hero-art-wrap::before { animation: glow-spin 10s linear infinite; }
  .page-hero .container > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .page-hero .container > :nth-child(2) { animation-delay: .06s; }
  .page-hero .container > :nth-child(3) { animation-delay: .12s; }
  .page-hero .container > :nth-child(4) { animation-delay: .18s; }
  .pill .dot { animation: pulse 2.6s ease-in-out infinite; }
  .pill:nth-child(2) .dot { animation-delay: .4s; }
  .pill:nth-child(3) .dot { animation-delay: .8s; }
  .card .icon { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .card:hover .icon { transform: rotate(-8deg) scale(1.08); }
  .service-card .banner svg { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .service-card:hover .banner svg { transform: scale(1.1) rotate(4deg); }

  /* Reveal on scroll (browsers with scroll-driven animations; others just show content) */
  @supports (animation-timeline: view()) {
    .section .card, .cal-item, .section .center, .table-wrap, .cta-band, .split > * {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes reveal { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-.7deg); } }
@keyframes glow-spin { to { --glow-angle: 360deg; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 currentColor; } 50% { box-shadow: 0 0 0 4px transparent; } }
.molecules-soft { opacity: .5; }
.molecules-faint { opacity: .4; }

/* ---------- WordPress ---------- */
[hidden] { display: none !important; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); text-align: center; }
.prose .alignwide, .prose .alignfull { max-width: 100%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose pre { background: var(--bg-alt); padding: 16px; border-radius: 10px; overflow-x: auto; }
.prose a { text-decoration: underline; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Block editor content ---------- */
.section-intro { margin-bottom: 44px; }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.section-head h2 { margin: 0; }
.section.flush-top { padding-top: 0; }
.container.narrow { max-width: 820px; }
.split.align-start { align-items: start; }
.hero-art figure, .logo-panel figure { margin: 0; }
.logo-panel { margin-bottom: 20px; }
.quote-box .eyebrow { color: var(--orange); }
.quote-box p:last-child, .card p:last-child { margin-bottom: 0; }
.checklist { margin-top: 16px; }
.wp-block-group.prose { max-width: 760px; }
p.card-link { margin-bottom: 0; }
p.card-link a { display: inline-flex; gap: 6px; align-items: center; }
.cta-band .wp-block-buttons, .section-head .wp-block-buttons { margin: 0; }

/* Button block: default = orange; styles Teal, Outline, Outline (on dark) */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button > .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700;
  font-size: .95rem; line-height: 1.4; border: 2px solid transparent; background: var(--orange); color: #fff;
  font-family: inherit; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.wp-block-button > .wp-block-button__link:hover { background: var(--orange-2); color: #fff; transform: translateY(-1px); text-decoration: none; }
.wp-block-button.is-style-teal > .wp-block-button__link { background: var(--teal); }
.wp-block-button.is-style-teal > .wp-block-button__link:hover { background: var(--teal-2); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border-color: currentColor; color: var(--navy); padding: 13px 24px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: transparent; color: var(--navy); }
.wp-block-button.is-style-outline-light > .wp-block-button__link { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.wp-block-button.is-style-outline-light > .wp-block-button__link:hover { background: rgba(255,255,255,.1); }

/* Colour palette classes */
.has-navy-color { color: var(--navy); } .has-navy-background-color { background-color: var(--navy); }
.has-teal-color { color: var(--teal); } .has-teal-background-color { background-color: var(--teal); }
.has-orange-color { color: var(--orange); } .has-orange-background-color { background-color: var(--orange); }
.has-light-color { color: var(--bg-alt); } .has-light-background-color { background-color: var(--bg-alt); }
.has-white-color { color: #fff; } .has-white-background-color { background-color: #fff; }


/* Navigation refresh v1.0.1 — original navy/teal/orange palette retained */
.site-header {
  box-shadow: 0 5px 24px rgba(15,35,71,.055);
  transition: box-shadow .25s ease;
}
.site-header.cb-scrolled { box-shadow: 0 9px 30px rgba(15,35,71,.13); }
.site-header .nav { gap: 22px; }
.nav-links { align-items: center; gap: 4px; }
.nav-links li { margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  border-radius: 999px;
  padding: 10px 14px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-ancestor > a {
  background: var(--teal-soft);
  color: var(--teal-2);
  text-decoration: none;
}
.nav-links a:focus-visible,
.menu-toggle:focus-visible,
.nav-cta:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.nav-cta {
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(245,144,30,.18);
}
.nav-cta:hover { box-shadow: 0 10px 22px rgba(245,144,30,.28); }
.menu-toggle {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: 12px;
  min-width: 46px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1380px) {
  .menu-toggle { display: flex; }
  .nav-links {
    top: 72px;
    align-items: stretch;
    gap: 4px;
    padding: 15px max(20px, calc((100vw - 1180px)/2)) 22px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    border-top: 1px solid var(--line);
  }
  .nav-links.open { animation: cb-menu-in .22s ease-out; }
  .nav-links a { border-radius: 12px; padding: 13px 16px; }
}
@keyframes cb-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links.open { animation: none; }
  .site-header, .nav-links a { transition: none; }
}
