/* Content Cucumber research library (cc_research). Loaded only on research views
   by inc/cc-research.php. Pattern from runningdiversity.com/research (hero,
   ticker, one full-width colored band per report with an inline form), in
   Content Cucumber colors. Everything is scoped under .cc-rs. */

.cc-rs {
  --rs-ink: #1a1a2e;
  --rs-forest: #15803d;
  --rs-forest-2: #16a34a;
  --rs-cucumber: #58c558;
  --rs-lime: #8bd44f;
  --rs-mist: #e8ebe2;
  --rs-paper: #ffffff;
  --rs-text: #2b2d3a;
  --rs-muted: #5b6070;
  --rs-wrap: 1240px;
  --rs-pad: clamp(20px, 4vw, 48px);
  /* Per-band colors, overridden by .cc-rs-band--<color> */
  --band-bg: var(--rs-paper);
  --band-fg: var(--rs-ink);
  --band-soft: var(--rs-muted);
  --band-btn-bg: var(--rs-ink);
  --band-btn-fg: #fff;
  --band-field-bg: #fff;
  --band-field-line: rgba(26, 26, 46, .25);
  --band-strip: rgba(26, 26, 46, .06);
  /* .site-main is a grid on this theme; without min-width:0 the ticker's
     max-content track widens the whole column past the viewport. */
  min-width: 0;
  width: 100%;
  color: var(--rs-text);
  font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  line-height: 1.6;
  font-size: 18px;
}
.cc-rs *, .cc-rs *::before, .cc-rs *::after { box-sizing: border-box; }
.cc-rs :is(a, button, input, summary):focus-visible { outline: 3px solid var(--rs-cucumber); outline-offset: 3px; }

/* GeneratePress and the theme give the content area a max width, side
   padding and a left margin. The bands are full-bleed, so every wrapper
   between <body> and .cc-rs goes edge to edge on research views only.
   !important because the theme's own .site-main rules are more specific. */
body:is(.post-type-archive-cc_research, .single-cc_research) :is(.site.grid-container, .site-content, .content-area, .site-main, .inside-article) {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
/* The theme lays archive .site-main out as a two-column blog grid with an
   !important display (style.css, body.archive.separate-containers ...), so
   this selector has to outrank it. */
body.post-type-archive-cc_research.archive.separate-containers .site-content .site-main.site-main,
body:is(.post-type-archive-cc_research, .single-cc_research) :is(.site-content, .site-main) { display: block !important; }

.cc-rs-wrap { max-width: var(--rs-wrap); margin: 0 auto; padding: 0 var(--rs-pad); }

.cc-rs-eyebrow {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rs-lime);
}

/* ---------- 1. Hero ---------- */
.cc-rs-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  background: var(--rs-ink) center / cover no-repeat;
  color: #fff;
}
.cc-rs-hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.cc-rs-hero__wash {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(26, 26, 46, .35) 0%, rgba(26, 26, 46, .82) 70%, rgba(26, 26, 46, .95) 100%);
}
.cc-rs-hero__inner { width: 100%; padding-top: 140px; padding-bottom: clamp(56px, 9vh, 96px); }
.cc-rs-hero__title {
  margin: 0 0 24px;
  max-width: 14ch;
  color: #fff;
  font-size: clamp(2.75rem, 7.4vw, 6.25rem);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.cc-rs-hero__sub {
  margin: 0 0 32px;
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
}
.cc-rs-hero__jump {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 15px;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border-bottom: 2px solid var(--rs-cucumber); padding-bottom: 4px;
}
.cc-rs-hero__jump::after { content: "\2193"; }
.cc-rs-hero__jump:hover { color: var(--rs-lime); border-color: var(--rs-lime); }

/* ---------- 2. Ticker ---------- */
.cc-rs-ticker {
  overflow: hidden;
  background: var(--rs-cucumber);
  color: var(--rs-ink);
  border-block: 1px solid rgba(26, 26, 46, .15);
}
.cc-rs-ticker__track {
  display: flex; width: max-content;
  animation: cc-rs-marquee 38s linear infinite;
}
.cc-rs-ticker__item {
  padding: 16px 28px;
  font-size: 15px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.cc-rs-ticker__item::after { content: "\2726"; margin-left: 56px; font-weight: 400; }
@keyframes cc-rs-marquee { to { transform: translateX(-50%); } }

/* ---------- 3. Filters ---------- */
.cc-rs-filters { padding-top: 40px; padding-bottom: 28px; display: grid; gap: 12px; }
.cc-rs-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cc-rs-chip {
  display: inline-block;
  padding: 9px 18px;
  border: 1.5px solid rgba(26, 26, 46, .22);
  border-radius: 999px;
  color: var(--rs-ink); background: #fff;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.cc-rs-chip:hover { border-color: var(--rs-forest); color: var(--rs-forest); }
.cc-rs-chip.is-on { background: var(--rs-ink); border-color: var(--rs-ink); color: #fff; }
.cc-rs-chips--topics .cc-rs-chip { font-size: 14px; padding: 6px 14px; }

/* ---------- 4. Bands ---------- */
.cc-rs-band {
  background: var(--band-bg);
  color: var(--band-fg);
  padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px);
}
.cc-rs-band--ink {
  --band-bg: var(--rs-ink); --band-fg: #fff; --band-soft: rgba(255, 255, 255, .78);
  --band-btn-bg: var(--rs-cucumber); --band-btn-fg: var(--rs-ink);
  --band-field-line: transparent; --band-strip: rgba(255, 255, 255, .08);
}
.cc-rs-band--forest {
  --band-bg: var(--rs-forest); --band-fg: #fff; --band-soft: rgba(255, 255, 255, .85);
  --band-btn-bg: var(--rs-ink); --band-btn-fg: #fff;
  --band-field-line: transparent; --band-strip: rgba(0, 0, 0, .14);
}
.cc-rs-band--cucumber { --band-bg: var(--rs-cucumber); --band-soft: rgba(26, 26, 46, .82); --band-strip: rgba(26, 26, 46, .1); }
.cc-rs-band--lime     { --band-bg: var(--rs-lime);     --band-soft: rgba(26, 26, 46, .82); --band-strip: rgba(26, 26, 46, .1); }
.cc-rs-band--mist     { --band-bg: var(--rs-mist); }
.cc-rs-band--paper    { --band-bg: var(--rs-paper); border-top: 1px solid rgba(26, 26, 46, .08); }

.cc-rs-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.cc-rs-band__meta {
  margin: 0 0 16px;
  font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--band-soft);
}
.cc-rs-band__meta a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.cc-rs-band__title {
  margin: 0 0 24px;
  color: var(--band-fg);
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.cc-rs-band__title a { color: inherit; text-decoration: none; }
.cc-rs-band__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.cc-rs-band__lede {
  margin: 0 0 20px;
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: var(--band-soft);
}
.cc-rs-sponsor { margin: 0 0 20px; font-size: 1.05rem; color: var(--band-fg); }
.cc-rs-sponsor a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.cc-rs-band__read {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--band-fg); font-weight: 700; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.cc-rs-band__read::after { content: "\2192"; transition: transform .15s; }
.cc-rs-band__read:hover::after { transform: translateX(4px); }

.cc-rs-band__cover { margin: 0; justify-self: end; width: 100%; max-width: 560px; }
.cc-rs-band__cover a { display: block; }
.cc-rs-band__cover img {
  display: block; width: 100%; height: auto;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45);
}
.cc-rs-funded {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: var(--band-strip);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--band-soft);
}
.cc-rs-funded img { max-height: 28px; width: auto; }
.cc-rs-funded strong { font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--band-fg); }

/* The get-it row */
.cc-rs-get { margin-top: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.cc-rs-get__label {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 700; letter-spacing: -.01em;
  color: var(--band-fg);
}
.cc-rs-btn,
.cc-rs-form .hs-button {
  display: inline-block;
  padding: 16px 30px;
  border: 0; border-radius: 0;
  background: var(--band-btn-bg); color: var(--band-btn-fg);
  font: inherit; font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .12s, filter .12s;
}
.cc-rs-btn:hover, .cc-rs-form .hs-button:hover { filter: brightness(1.08); transform: translateY(-1px); color: var(--band-btn-fg); }

/* HubSpot v2 form laid out as one row: First, Last, Email, button */
.cc-rs-form { flex: 1 1 560px; min-width: 0; }
.cc-rs-form form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0; }
.cc-rs-form fieldset { display: contents; max-width: none !important; }
.cc-rs-form .hs-form-field { flex: 1 1 170px; margin: 0; min-width: 0; }
.cc-rs-form .hs-form-field.hs_campaign_code,
.cc-rs-form .hs-form-field[style*="display: none"],
.cc-rs-form input[type="hidden"] { display: none; }
.cc-rs-form .hs-form-field > label {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--band-soft);
}
.cc-rs-form .hs-form-required { color: inherit; margin-left: 2px; }
.cc-rs-form .input { margin: 0 !important; }
.cc-rs-form .hs-input:not([type="checkbox"]):not([type="radio"]) {
  width: 100% !important;
  height: 56px; padding: 0 18px;
  border: 1px solid var(--band-field-line); border-radius: 0;
  background: var(--band-field-bg); color: var(--rs-ink);
  font: inherit; font-size: 16px;
}
.cc-rs-form .hs_submit { flex: 0 0 auto; }
.cc-rs-form .hs_submit .actions { margin: 0; padding: 0; }
.cc-rs-form .hs-button { height: 56px; }
.cc-rs-form .hs-error-msgs { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; color: inherit; }
.cc-rs-form .hs-error-msgs label { color: inherit; font-weight: 600; }
.cc-rs-band--ink .cc-rs-form .hs-error-msgs label,
.cc-rs-news .cc-rs-form .hs-error-msgs label { color: #ffb4a8; }
.cc-rs-form .legal-consent-container,
.cc-rs-form .hs-richtext { flex: 1 1 100%; font-size: 13px; color: var(--band-soft); }
.cc-rs-form .submitted-message { font-size: 1.15rem; font-weight: 600; color: var(--band-fg); }

/* Pagination + empty state */
.cc-rs-pages { padding-top: 48px; padding-bottom: 48px; }
.cc-rs-pages ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.cc-rs-pages a, .cc-rs-pages span {
  display: inline-block; padding: 10px 16px; border: 1.5px solid rgba(26, 26, 46, .2);
  color: var(--rs-ink); text-decoration: none; font-weight: 700;
}
.cc-rs-pages .current { background: var(--rs-ink); color: #fff; border-color: var(--rs-ink); }
.cc-rs-empty { padding-top: 48px; padding-bottom: 96px; }

/* ---------- 5. Newsletter ---------- */
.cc-rs-news {
  --band-bg: var(--rs-ink); --band-fg: #fff; --band-soft: rgba(255, 255, 255, .78);
  --band-btn-bg: var(--rs-cucumber); --band-btn-fg: var(--rs-ink); --band-field-line: transparent;
  background: var(--rs-ink); color: #fff;
  padding: clamp(56px, 8vw, 104px) 0;
  border-top: 6px solid var(--rs-cucumber);
}
.cc-rs-news__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.cc-rs-news__title {
  margin: 0 0 12px; color: #fff;
  font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 300; line-height: 1; letter-spacing: -.02em; text-transform: uppercase;
}
.cc-rs-news p { margin: 0 0 8px; color: rgba(255, 255, 255, .82); }
.cc-rs-news .cc-rs-news__trust { font-size: 15px; color: var(--rs-lime); }
.cc-rs-news .cc-rs-get { margin-top: 0; }

/* ---------- Single ---------- */
.cc-rs-single__hero { padding-top: clamp(56px, 7vw, 96px); }
.cc-rs-single__hero .cc-rs-band__title { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.cc-rs-single__hero .cc-rs-get { margin-top: 28px; }
.cc-rs-asof {
  display: inline-block; margin: 0;
  padding: 6px 12px; background: var(--band-strip);
  font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--band-fg);
}

.cc-rs-section-title {
  margin: 0 0 28px; color: var(--rs-ink);
  font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
}

.cc-rs-findings { padding: clamp(56px, 7vw, 88px) 0; background: var(--rs-mist); }
.cc-rs-findings__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px;
  margin: 0; padding: 0; list-style: none;
  background: rgba(26, 26, 46, .12); border: 2px solid rgba(26, 26, 46, .12);
}
.cc-rs-finding { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: #fff; }
.cc-rs-finding__value {
  font-size: clamp(3rem, 5vw, 4.25rem); font-weight: 300; line-height: 1; letter-spacing: -.04em;
  color: var(--rs-forest);
  font-variant-numeric: tabular-nums;
}
.cc-rs-finding__label { font-size: 1.05rem; font-weight: 600; line-height: 1.4; color: var(--rs-ink); }
.cc-rs-finding__note { font-size: 14px; color: var(--rs-muted); }
.cc-rs-sample { margin: 18px 0 0; font-size: 15px; color: var(--rs-muted); }

.cc-rs-body { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.cc-rs-body--nav { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cc-rs-jump { position: sticky; top: 110px; font-size: 15px; }
.cc-rs-jump__title { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rs-muted); }
.cc-rs-jump ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--rs-mist); }
.cc-rs-jump a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--rs-text); text-decoration: none; line-height: 1.35; }
.cc-rs-jump a:hover { color: var(--rs-forest); border-left-color: var(--rs-cucumber); }

.cc-rs-prose { max-width: 72ch; }
.cc-rs-prose > * + * { margin-top: 1.1em; }
.cc-rs-prose p, .cc-rs-prose li { color: var(--rs-text); }
.cc-rs-prose h2 { margin: 2em 0 .6em; color: var(--rs-ink); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; scroll-margin-top: 110px; }
.cc-rs-prose h3 { margin: 1.6em 0 .5em; color: var(--rs-ink); font-size: 1.3rem; font-weight: 700; }
.cc-rs-prose h2:first-child { margin-top: 0; }
.cc-rs-prose a { color: var(--rs-forest); text-underline-offset: 3px; }
.cc-rs-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--rs-cucumber); font-size: 1.15rem; color: var(--rs-ink); }
.cc-rs-prose img { max-width: 100%; height: auto; }
.cc-rs-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.cc-rs-prose th, .cc-rs-prose td { padding: 10px 12px; border-bottom: 1px solid rgba(26, 26, 46, .12); text-align: left; }

.cc-rs-method { margin-top: 2.5em; border: 2px solid var(--rs-mist); }
.cc-rs-method summary { cursor: pointer; padding: 18px 22px; font-weight: 800; color: var(--rs-ink); list-style: none; }
.cc-rs-method summary::-webkit-details-marker { display: none; }
.cc-rs-method summary::after { content: "+"; float: right; font-weight: 400; font-size: 1.3em; line-height: 1; }
.cc-rs-method[open] summary::after { content: "\2212"; }
.cc-rs-method > :not(summary) { padding: 0 22px; }
.cc-rs-method > :last-child { padding-bottom: 18px; }
.cc-rs-byline { margin-top: 2em; font-size: 15px; color: var(--rs-muted); }

.cc-rs-related { padding: clamp(56px, 7vw, 88px) 0; background: var(--rs-mist); }
.cc-rs-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.cc-rs-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 0 0 20px; background: #fff; }
.cc-rs-card img { width: 100%; height: 200px; object-fit: cover; object-position: top; display: block; }
.cc-rs-card__meta, .cc-rs-card__title { padding: 0 20px; }
.cc-rs-card--text { padding-top: 20px; }
.cc-rs-card__meta { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rs-muted); }
.cc-rs-card__title { color: var(--rs-ink); font-size: 1.15rem; font-weight: 700; line-height: 1.3; text-decoration: none; }
.cc-rs-card__title::after { content: ""; position: absolute; inset: 0; }
.cc-rs-card:hover .cc-rs-card__title { color: var(--rs-forest); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cc-rs-band__grid, .cc-rs-news__grid, .cc-rs-body--nav { grid-template-columns: minmax(0, 1fr); }
  .cc-rs-band__cover { justify-self: start; max-width: 440px; order: -1; }
  .cc-rs-jump { position: static; }
  .cc-rs-hero { min-height: 0; }
  .cc-rs-hero__inner { padding-top: 96px; }
}
@media (max-width: 600px) {
  .cc-rs { font-size: 17px; }
  .cc-rs-form .hs-form-field { flex-basis: 100%; }
  .cc-rs-form .hs_submit, .cc-rs-form .hs-button, .cc-rs-get .cc-rs-btn { width: 100%; text-align: center; }
  .cc-rs-ticker__item { padding: 12px 18px; font-size: 13px; }
  .cc-rs-ticker__item::after { margin-left: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-rs-ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .cc-rs-ticker__item--dup { display: none; }
  .cc-rs-hero__video { display: none; }
  .cc-rs-btn, .cc-rs-band__read::after { transition: none; }
}

/* If HubSpot fails to load (blocked, offline), don't leave "Download here"
   pointing at nothing. */
.cc-rs-get__label:has(+ .cc-rs-form:empty) { display: none; }

/* Download modal. A native <dialog>, always on paper so the HubSpot labels
   read the same on every band color. Fields stack; the form is built on
   first open. */
.cc-rs-modal {
  --band-bg: var(--rs-paper); --band-fg: var(--rs-ink); --band-soft: var(--rs-muted);
  --band-btn-bg: var(--rs-forest); --band-btn-fg: #fff;
  --band-field-bg: #fff; --band-field-line: rgba(26, 26, 46, .3);
  width: min(880px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 16px; overflow: auto;
  background: var(--rs-paper); color: var(--rs-ink);
  box-shadow: 0 30px 80px rgba(10, 12, 24, .45);
}
.cc-rs-modal::backdrop { background: rgba(10, 12, 24, .66); }
.cc-rs-modal[open] { animation: cc-rs-modal-in .22s cubic-bezier(.2, .7, .2, 1); }
@keyframes cc-rs-modal-in { from { opacity: 0; transform: translateY(12px); } }
.cc-rs-modal__box { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.cc-rs-modal__cover { background: var(--rs-mist); padding: clamp(20px, 3vw, 36px); display: flex; align-items: center; justify-content: center; }
.cc-rs-modal__cover img { width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 6px; box-shadow: 0 14px 34px rgba(10, 12, 24, .28); }
.cc-rs-modal__body { padding: clamp(24px, 3.4vw, 44px); min-width: 0; }
.cc-rs-modal__box:not(:has(.cc-rs-modal__cover)) { grid-template-columns: minmax(0, 1fr); }
.cc-rs-modal__meta { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rs-forest); }
.cc-rs-modal__title { margin: 0 0 22px; padding-right: 36px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; font-weight: 700; color: var(--rs-ink); }
.cc-rs-modal__close {
  position: absolute; top: 10px; right: 10px; z-index: 1; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: var(--rs-ink);
  font-size: 30px; line-height: 1; cursor: pointer;
}
.cc-rs-modal__close:hover { background: var(--rs-mist); }
.cc-rs-modal .cc-rs-form { min-height: 220px; }
.cc-rs-modal .cc-rs-form form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cc-rs-modal .cc-rs-form .hs-form-field { grid-column: 1 / -1; }
.cc-rs-modal .cc-rs-form .hs_firstname, .cc-rs-modal .cc-rs-form .hs_lastname { grid-column: auto; }
.cc-rs-modal .cc-rs-form .hs-form-field > label { color: var(--rs-ink); }
.cc-rs-modal .cc-rs-form .hs_submit { grid-column: 1 / -1; }
.cc-rs-modal .cc-rs-form .hs-button { width: 100%; }
@media (max-width: 720px) {
  .cc-rs-modal__box { grid-template-columns: minmax(0, 1fr); }
  .cc-rs-modal__cover { display: none; }
  .cc-rs-modal .cc-rs-form .hs_firstname, .cc-rs-modal .cc-rs-form .hs_lastname { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .cc-rs-modal[open] { animation: none; } }

/* Tools and checklists: the unlisted items, one compact row under the bands. */
.cc-rs-tools { background: var(--rs-paper); padding: clamp(48px, 6vw, 88px) 0; }
.cc-rs-tools__title { margin: 0 0 28px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -.01em; color: var(--rs-ink); }
.cc-rs-tools__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.cc-rs-tools__item { display: block; height: 100%; background: var(--rs-mist); color: var(--rs-ink); text-decoration: none; transition: transform .14s; }
.cc-rs-tools__item:hover { transform: translateY(-3px); color: var(--rs-ink); }
.cc-rs-tools__item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.cc-rs-tools__name { display: block; padding: 16px 18px 20px; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.cc-rs-tools__item:hover .cc-rs-tools__name { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .cc-rs-tools__item { transition: none; } }
