/* c-Rock (children's church) pages. Loaded after site.css, inside the main
   site layout. Hand-written; not part of the Mix build. */

:root {
  /* Names kept from the first c-Rock design; values follow the main site. */
  --navy: #111418;
  --navy-2: #2a3038;
  --navy-deep: #111418;
  --gold: #dc4225;
  --gold-bright: #ff6a4d;
  --gold-tint: #f3f4f5;
  --gold-ink: #111418;
  --flame: #c8391d;
  --flame-2: #dc4f33;
  --flame-tint: #fdeee9;
  --flame-ink: #8f2410;
  --flame-line: #f3cfc5;
  --sky: #0077a3;
  --sky-2: #0a8dbd;
  --sky-tint: #e6f4fa;
  --sky-ink: #00506e;
  --sky-line: #bfe0ee;
  --ink: #111418;
  --body: #3a4048;
  --muted: #555b63;
  --line: #d5d8dc;
  --soft: #f3f4f5;
  --white: #ffffff;

  /* Theme colours; overridden per age group below. */
  --c: var(--navy);
  --c-2: var(--navy-2);
  --c-tint: var(--soft);
  --c-ink: var(--navy);
  --c-line: var(--line);
  --c-link: #00678d;
}

.theme-flame {
  --c: var(--flame);
  --c-2: var(--flame-2);
  --c-tint: var(--flame-tint);
  --c-ink: var(--flame-ink);
  --c-line: var(--flame-line);
  --c-link: #a82d15;
}

.theme-sky {
  --c: var(--sky);
  --c-2: var(--sky-2);
  --c-tint: var(--sky-tint);
  --c-ink: var(--sky-ink);
  --c-line: var(--sky-line);
  --c-link: #00678d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.cr {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}

.cr img {
  max-width: 100%;
}

.cr a {
  color: var(--c-link);
}

.cr a:hover {
  color: var(--navy);
}

.cr :focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}

/* :where() keeps this reset at zero specificity so component margins win. */
:where(.cr) :where(h1, h2, h3, p) {
  margin: 0;
}

.cr-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.cr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cr-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--white);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 800;
  z-index: 10;
}

.cr-skip:focus {
  left: 8px;
}

.cr-lift {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cr-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 47, 75, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .cr-lift {
    transition: none;
  }

  .cr-lift:hover {
    transform: none;
  }
}

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

.cr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.cr .cr-btn--white {
  background: var(--white);
  color: var(--navy);
}

.cr .cr-btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  font-weight: 800;
}

.cr .cr-btn--ghost:hover {
  color: var(--white);
  border-color: var(--white);
}

.cr .cr-btn--theme {
  background: var(--c);
  color: var(--white);
}

.cr .cr-btn--navy {
  background: var(--navy);
  color: var(--white);
}

.cr .cr-btn--outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.cr-btn--sm {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
}

.cr-icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header / nav ---------- */

.cr-top {
  background: var(--navy);
  color: var(--white);
}

.cr-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.cr .cr-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  text-decoration: none;
}

.cr-brand img {
  height: 52px;
  width: auto;
}

.cr-brand span {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 14px;
}

.cr-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.cr .cr-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 12px;
  border-radius: 999px;
}

.cr .cr-links a:hover {
  color: var(--gold-bright);
}

.cr .cr-links a.cr-give {
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 900;
  padding: 12px 24px;
  margin-left: 8px;
}

.cr-tabs {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.cr .cr-tab {
  background: var(--navy-2);
  color: #d5e2ea;
  text-decoration: none;
  font-weight: 900;
  font-size: 17px;
  padding: 13px 28px 14px;
  border-radius: 18px 18px 0 0;
}

.cr .cr-tab:hover {
  color: var(--white);
}

.cr .cr-tab.is-active {
  background: var(--c);
  color: var(--white);
  font-size: 20px;
  padding: 18px 34px 20px;
  border-radius: 20px 20px 0 0;
}

/* ---------- Home hero ---------- */

.cr-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.cr-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cr-hero .cr-blob--a {
  width: 520px;
  height: 520px;
  background: var(--navy-2);
  right: -180px;
  top: 30px;
}

.cr-hero .cr-blob--b {
  width: 220px;
  height: 220px;
  background: var(--gold);
  left: -90px;
  bottom: 120px;
  opacity: 0.9;
}

.cr-hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 40px;
  padding-bottom: 150px;
}

.cr-hero__copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cr-hero h1 {
  font-weight: 900;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.cr-hero__copy p {
  font-size: 19px;
  line-height: 1.6;
  color: #d5e2ea;
  max-width: 520px;
}

.cr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.cr-hero__photo {
  flex: 1 1 420px;
  min-width: 0;
  position: relative;
}

.cr-hero__photo img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: 60% 70%;
  border-radius: 28px;
  border: 6px solid var(--white);
  transform: rotate(1.5deg);
}

.cr-hero__badge {
  position: absolute;
  left: -10px;
  bottom: -22px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 900;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 16px;
  transform: rotate(-3deg);
}

/* ---------- Age cards ---------- */

.cr-agecards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: -100px;
}

.cr .cr-agecard {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 36px;
  border-radius: 28px;
  background: var(--c);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 47, 75, 0.14);
}

.cr-agecard .cr-blob {
  width: 190px;
  height: 190px;
  right: -40px;
  top: -40px;
  background: var(--c-2);
}

.cr-agecard > *:not(.cr-blob) {
  position: relative;
}

.cr-agecard__kicker {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cr-agecard__title {
  font-weight: 900;
  font-size: clamp(44px, 6vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.cr-agecard p {
  font-size: 17px;
  max-width: 420px;
}

.cr-agecard__cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--c-ink);
  font-weight: 900;
  font-size: 15px;
}

/* ---------- Sections ---------- */

.cr-section {
  padding-top: 88px;
}

.cr-section--soft {
  background: var(--soft);
  margin-top: 88px;
  padding: 80px 0;
}

.cr-sectionhead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.cr-eyebrow {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b5321a;
}

.cr-h2 {
  margin-top: 6px;
  font-weight: 900;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.cr-sectionhead p {
  margin-top: 8px;
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
}

.cr-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* "This Sunday" cards on the home page */

.cr-week {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
}

.cr .cr-week__main {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}

.cr-week__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 30px;
  background: var(--c-tint);
}

.cr-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--c);
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cr-pill--white {
  background: var(--white);
  color: var(--c-ink);
}

.cr-pill--ink {
  background: var(--c-ink);
  color: var(--white);
}

.cr-ref {
  font-weight: 900;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--c-ink);
  overflow-wrap: anywhere;
}

.cr-week__body {
  padding: 24px 30px 8px;
}

.cr-week__body h3 {
  font-weight: 900;
  font-size: 26px;
  line-height: 1.2;
  color: var(--navy);
}

.cr-week__body p {
  margin-top: 8px;
  color: var(--muted);
}

.cr-week__list {
  display: flex;
  flex-direction: column;
  padding: 8px 30px 22px;
}

.cr .cr-week__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.cr-week__item strong {
  display: block;
  font-weight: 800;
  font-size: 17px;
  color: var(--navy);
}

.cr-week__item small {
  font-size: 14px;
  color: var(--muted);
}

.cr-week__item .cr-icon {
  color: var(--c);
}

.cr-week__empty {
  padding: 28px 30px;
  color: var(--muted);
}

/* Resource-type tiles */

.cr-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.cr .cr-type {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
}

.cr-type__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.cr-type__icon .cr-icon {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.cr-tint-flame {
  background: var(--flame-tint);
  color: var(--flame-ink);
}

.cr-tint-sky {
  background: var(--sky-tint);
  color: var(--sky-ink);
}

.cr-tint-gold {
  background: var(--gold-tint);
  color: var(--gold-ink);
}

.cr-type strong {
  display: block;
  font-weight: 900;
  font-size: 18px;
}

.cr-type small {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.cr-type__ages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.cr .cr-type__ages a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--c);
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

.cr .cr-type__ages a:hover {
  background: var(--c-ink);
  color: var(--white);
}

/* ---------- Verse ---------- */

.cr-verse {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 84px 0;
}

.cr-verse--soft {
  background: var(--soft);
  color: var(--navy);
  padding: 64px 0;
}

.cr-verse .cr-wrap {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cr-verse svg {
  width: 44px;
  height: 44px;
  fill: var(--gold);
}

.cr-verse p {
  font-weight: 800;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.cr-verse--soft p {
  font-size: clamp(21px, 2.6vw, 30px);
}

.cr-verse cite {
  font-style: normal;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.cr-verse--soft cite {
  color: var(--c-link);
}

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

.cr-footer {
  background: var(--navy-deep);
  color: #c3d0d9;
}

.cr-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.cr-footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.cr-footer__brand img {
  height: 56px;
  width: auto;
}

.cr-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.cr .cr-footer__links a {
  color: #c3d0d9;
  text-decoration: none;
  padding: 10px 0;
}

.cr .cr-footer__links a:hover {
  color: var(--white);
}

/* ---------- Age / lesson header band ---------- */

.cr-band {
  position: relative;
  overflow: hidden;
  background: var(--c);
  color: var(--white);
}

.cr-band .cr-blob--a {
  width: 420px;
  height: 420px;
  background: var(--c-2);
  right: -120px;
  top: -160px;
}

.cr-band .cr-blob--b {
  width: 120px;
  height: 120px;
  background: var(--gold-bright);
  right: 260px;
  bottom: -50px;
}

.cr-band__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 40px;
  padding-bottom: 44px;
}

.cr-band--lesson .cr-band__inner {
  padding-bottom: 110px;
}

.cr-crumbs {
  font-size: 14px;
  font-weight: 700;
}

.cr .cr-crumbs a,
.cr .cr-crumbs a:hover {
  color: var(--white);
}

.cr-band h1 {
  font-weight: 900;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.cr-band__lead {
  font-size: 19px;
  max-width: 640px;
}

.cr-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  max-width: 560px;
}

.cr-search input {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 50px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.cr-search input::placeholder {
  color: #5f6b76;
}

.cr-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Resource-type chips */

.cr-chipbar {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.cr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.cr .cr-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}

.cr-chip .cr-icon {
  color: var(--c);
  stroke-width: 2.2;
}

.cr .cr-chip.is-active {
  background: var(--c);
  color: var(--white);
}

.cr-chip.is-active .cr-icon {
  color: var(--white);
}

/* ---------- Listing layout ---------- */

.cr-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 80px;
}

.cr-side {
  flex: 1 1 220px;
  max-width: 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cr-main {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cr-side__title {
  margin-bottom: 10px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cr-topics {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cr .cr-topics a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px 10px 32px;
  border-radius: 12px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.cr .cr-topics a:hover {
  background: var(--soft);
}

.cr .cr-topics a.is-active {
  padding-left: 14px;
  background: var(--c-tint);
  color: var(--c-ink);
  font-weight: 800;
}

.cr-topics a.is-active::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.cr-sidecard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
  border-radius: 22px;
  background: var(--navy);
  color: var(--white);
}

.cr-sidecard--other {
  background: var(--c);
}

.cr-sidecard--soft {
  background: var(--soft);
  color: var(--body);
}

.cr-sidecard strong {
  font-weight: 900;
  font-size: 20px;
  line-height: 1.2;
}

.cr-sidecard--soft strong {
  color: var(--navy);
}

.cr-sidecard p {
  font-size: 15px;
  color: #d5e2ea;
}

.cr-sidecard--other p {
  color: var(--white);
}

.cr-sidecard ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Featured lesson */

.cr .cr-feature {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--c-line);
  background: var(--c-tint);
  color: var(--ink);
  text-decoration: none;
}

.cr-feature__side {
  position: relative;
  overflow: hidden;
  flex: 1 1 240px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 30px;
  background: var(--c);
  color: var(--white);
}

.cr-feature__side .cr-blob {
  width: 200px;
  height: 200px;
  right: -50px;
  bottom: -50px;
  background: var(--c-2);
}

.cr-feature__side > *:not(.cr-blob) {
  position: relative;
}

.cr-feature__side .cr-ref {
  color: var(--white);
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 0.95;
}

.cr-feature__body {
  flex: 2 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 32px 34px;
}

.cr-feature__body h2 {
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.cr-feature__body p {
  font-size: 17px;
  color: var(--body);
}

.cr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cr-tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
}

.cr-fakebtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--c);
  color: var(--white);
  font-weight: 900;
  font-size: 15px;
}

/* Toolbar and grid */

.cr-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cr-toolbar h2 {
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.cr-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cr-sort label {
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
}

.cr-sort select {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #8794a0;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  font-size: 15px;
}

.cr-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.cr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.cr .cr-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.cr-card__top {
  display: flex;
  align-items: flex-end;
  min-height: 132px;
  padding: 20px 22px;
}

.cr-card__top .cr-ref {
  color: inherit;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.cr-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
}

.cr-card__body h3 {
  font-weight: 900;
  font-size: 20px;
  line-height: 1.2;
  color: var(--navy);
}

.cr-card__body p {
  flex: 1;
  font-size: 15px;
  color: var(--muted);
}

.cr-card__extras {
  padding-top: 6px;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}

.cr-empty {
  padding: 48px 28px;
  border-radius: 24px;
  background: var(--soft);
  text-align: center;
}

.cr-empty h3 {
  font-weight: 900;
  font-size: 24px;
  color: var(--navy);
}

.cr-empty p {
  max-width: 460px;
  margin: 8px auto 20px;
  color: var(--muted);
}

.cr-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cr-pager span {
  font-weight: 700;
  color: var(--muted);
}

/* ---------- Lesson page ---------- */

.cr-lessonlayout {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  margin-top: -70px;
  padding-bottom: 80px;
}

.cr-lessonlayout .cr-side {
  flex: 1 1 280px;
  max-width: 360px;
  gap: 20px;
}

.cr-lessonlayout .cr-main {
  gap: 36px;
}

.cr-video {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 6px solid var(--white);
  background: var(--navy-deep);
  box-shadow: 0 16px 40px rgba(0, 47, 75, 0.18);
  aspect-ratio: 16 / 9;
}

.cr-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cr-novideo {
  height: 70px;
}

.cr-keys {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.cr-key {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 30px;
  border-radius: 24px;
  background: var(--c-tint);
}

.cr-key--gold {
  background: var(--gold-tint);
}

.cr-key__label {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink);
}

.cr-key--gold .cr-key__label,
.cr-key--gold .cr-key__ref {
  color: var(--gold-ink);
}

.cr-key p {
  font-weight: 900;
  font-size: 23px;
  line-height: 1.25;
  color: var(--navy);
}

.cr-key__ref {
  font-weight: 800;
  font-size: 15px;
}

.cr-steps h2,
.cr-block h2 {
  margin-bottom: 14px;
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 32px);
  letter-spacing: -0.02em;
  color: var(--navy);
}

.cr-steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.cr-steps li {
  display: flex;
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.cr-steps__num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c);
  color: var(--white);
  font-weight: 900;
  font-size: 22px;
}

.cr-steps li > div {
  min-width: 0;
}

.cr-steps h3 {
  font-weight: 900;
  font-size: 22px;
  color: var(--navy);
}

.cr-steps p,
.cr-prose {
  margin-top: 6px;
  font-size: 17px;
  color: var(--body);
  overflow-wrap: anywhere;
}

.cr-near {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.cr .cr-near a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
}

.cr-near a.is-next {
  text-align: right;
}

.cr-near small {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cr-near strong {
  font-weight: 900;
  font-size: 19px;
}

.cr-downloads {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 47, 75, 0.1);
}

.cr-downloads > strong {
  margin-bottom: 14px;
  font-weight: 900;
  font-size: 20px;
  color: var(--navy);
}

.cr .cr-download {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
}

.cr-download__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--c-tint);
  color: var(--c);
}

.cr-download__icon .cr-icon {
  width: 22px;
  height: 22px;
}

.cr-download strong {
  display: block;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cr-download small {
  font-size: 14px;
  color: var(--muted);
}

.cr-draftbar {
  background: var(--gold-bright);
  color: var(--navy-deep);
  font-weight: 800;
  text-align: center;
  padding: 10px 16px;
}

.cr .cr-draftbar a {
  color: var(--navy-deep);
}

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  .cr-wrap {
    padding: 0 16px;
  }

  .cr-brand img {
    height: 44px;
  }

  .cr .cr-links a {
    padding: 10px 8px;
    font-size: 13px;
  }

  .cr .cr-links a.cr-give {
    padding: 10px 18px;
    margin-left: 4px;
  }

  .cr-tabs {
    width: 100%;
  }

  .cr .cr-tab,
  .cr .cr-tab.is-active {
    flex: 1;
    padding: 13px 10px 14px;
    font-size: 16px;
    text-align: center;
  }

  .cr-hero__inner {
    gap: 40px;
    padding-top: 24px;
    padding-bottom: 130px;
  }

  .cr-hero__photo img {
    height: 260px;
  }

  .cr-agecard {
    padding: 28px 24px;
  }

  .cr-section {
    padding-top: 64px;
  }

  .cr-section--soft {
    margin-top: 64px;
    padding: 56px 0;
  }

  .cr-layout {
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 56px;
  }

  .cr-side,
  .cr-lessonlayout .cr-side {
    max-width: none;
    flex-basis: 100%;
  }

  .cr-main {
    flex-basis: 100%;
  }

  /* Lessons first, filters after, when stacked. */
  .cr-layout .cr-side {
    order: 2;
  }

  .cr-feature__body,
  .cr-feature__side {
    padding: 24px;
  }

  .cr-feature__side {
    min-height: 0;
  }

  .cr-steps li {
    gap: 14px;
  }

  .cr-steps__num {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .cr-verse {
    padding: 56px 0;
  }
}

/* ---------- Editorial alignment ----------
   Brings c-Rock in line with the main site: Space Grotesk headings, square
   corners, flat blocks, no decorative circles. The two age-group colours
   stay so the groups are easy to tell apart. */

.cr .cr-wrap {
  max-width: 1280px;
  padding-left: 32px;
  padding-right: 32px;
}

.cr :is(h1, h2, h3),
.cr :is(.cr-ref, .cr-agecard__title, .cr-agecard__kicker, .cr-eyebrow, .cr-pill, .cr-steps__num, .cr-key__label, .cr-side__title) {
  font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
}

.cr :is(h1, h2, h3, .cr-ref, .cr-agecard__title) {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.cr :is(.cr-eyebrow, .cr-agecard__kicker, .cr-pill, .cr-key__label, .cr-side__title) {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.cr :is(.cr-eyebrow, .cr-agecard__kicker, .cr-key__label, .cr-side__title) {
  font-size: 15px;
}

.cr :is(strong, .cr-btn, .cr-chip, .cr-tag, .cr-fakebtn, .cr-agecard__cta, .cr-card__extras, .cr-key__ref) {
  font-weight: 600;
}

.cr .cr-key p {
  font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Square everything (pseudo-element dots keep their shape). */
.cr main * {
  border-radius: 0 !important;
}

.cr .cr-blob {
  display: none;
}

.cr .cr-lift:hover {
  transform: none;
  box-shadow: none;
}

.cr .cr-agecard,
.cr .cr-downloads,
.cr .cr-video {
  box-shadow: none;
}

/* Home hero: a dark band, like the main site's dark sections. */
.cr .cr-hero h1 {
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.cr .cr-hero__inner {
  padding-top: 64px;
}

.cr .cr-hero__photo img {
  border: 0;
  transform: none;
}

.cr .cr-hero__badge {
  left: 0;
  bottom: 0;
  transform: none;
  color: var(--ink);
}

.cr .cr-btn {
  min-height: 56px;
  padding: 16px 32px;
  font-size: 17px;
}

.cr .cr-btn--sm {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
}

.cr .cr-h2 {
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1;
}

/* Age pages and lesson header */
.cr .cr-band h1 {
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.cr .cr-band__inner {
  padding-top: 56px;
  padding-bottom: 56px;
}

.cr .cr-band--lesson .cr-band__inner {
  padding-bottom: 120px;
}

.cr .cr-search input {
  min-height: 56px;
}

.cr .cr-week,
.cr .cr-card,
.cr .cr-type,
.cr .cr-feature,
.cr .cr-downloads,
.cr .cr-near a {
  border-color: var(--ink);
}

.cr .cr-card:hover h3,
.cr .cr-week__main:hover h3,
.cr .cr-feature:hover h2 {
  text-decoration: underline;
  text-decoration-color: var(--c);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.cr .cr-video {
  border: 0;
}

.cr .cr-verse {
  background: var(--soft);
  color: var(--ink);
}

.cr .cr-verse p {
  font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cr .cr-verse cite {
  color: #b5321a;
  font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.cr .cr-verse svg {
  display: none;
}

.cr .cr-draftbar {
  background: var(--ink);
  color: #ffffff;
}

.cr .cr-draftbar a {
  color: #ffffff;
}

/* The main site footer follows straight on. */
.cr .st-footer {
  margin-top: 0;
}

@media (max-width: 720px) {
  .cr .cr-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
}
