:root {
  --color-primary: #0F4C4A;
  --color-primary-hover: #0A3836;
  --color-secondary: #DCE7DD;
  --color-secondary-hover: #C9DACB;
  --color-accent: #5F8668;
  --color-accent-hover: #4C6E54;
  --color-text: #1B2928;
  --color-text-muted: #51605D;
  --color-surface: #F2EEE6;
  --color-background: #FBF9F5;
  --color-border: #E2DCD0;
  --font-heading: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
}

/* CannabisCareTX — shared styles for long-form copy (Gutenberg core blocks)
 * Every long-form section is a core/group with class "cct-prose".
 * All rules are scoped to .cct-prose / .cct-* so nothing else on the site is affected.
 */

.cct-prose {
  --cct-measure: 46rem;
  background: var(--color-background, #FBF9F5);
  color: var(--color-text, #1B2928);
  font-family: var(--font-body, Inter, system-ui, sans-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  padding: 3.5rem 1.25rem;
  margin: 0 !important;
}
.cct-prose.is-alt { background: var(--color-surface, #F2EEE6); }
.cct-prose  * {
  max-width: var(--cct-measure);
  margin-left: auto !important;
  margin-right: auto !important;
}
.cct-prose  .wp-block-table,
.cct-prose  figure.wp-block-table { max-width: 60rem; }

.cct-prose h2,
.cct-prose h3,
.cct-prose h4 {
  font-family: var(--font-heading, "Plus Jakarta Sans", Inter, sans-serif);
  color: var(--color-primary, #0F4C4A);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.cct-prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; margin-top: 2.75rem; margin-bottom: 1rem; }
.cct-prose h3 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.6rem; }
.cct-prose  h2:first-child,
.cct-prose  h3:first-child { margin-top: 0; }
.cct-prose p { margin: 0 auto 1.1rem; }
.cct-prose a { color: var(--color-primary, #0F4C4A); text-decoration: underline; text-decoration-color: var(--color-accent, #5F8668); text-underline-offset: 3px; }
.cct-prose a:hover { color: var(--color-accent-hover, #4C6E54); }
.cct-prose strong { color: var(--color-text, #1B2928); font-weight: 650; }
.cct-prose ul,
.cct-prose ol { padding-left: 1.4rem; margin-bottom: 1.25rem; }
.cct-prose li { margin-bottom: 0.5rem; }
.cct-prose ul li::marker { color: var(--color-accent, #5F8668); }
.cct-prose ol li::marker { color: var(--color-primary, #0F4C4A); font-weight: 700; }

/* "Short answer" lead box */
.cct-prose .cct-answer {
  background: var(--color-secondary, #DCE7DD);
  border-left: 4px solid var(--color-primary, #0F4C4A);
  border-radius: 0 var(--radius-md, 0.5rem) var(--radius-md, 0.5rem) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.cct-prose .cct-pullquote {
  border-left: 3px solid var(--color-accent, #5F8668);
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-size: 1.15rem;
  color: var(--color-primary, #0F4C4A);
  font-style: italic;
  margin: 2rem auto;
}
.cct-prose .cct-small { font-size: 0.9rem; color: var(--color-text-muted, #51605D); }

/* Tables */
.cct-prose .wp-block-table { margin: 1.5rem auto 2rem; overflow-x: auto; }
.cct-prose .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid var(--color-border, #E2DCD0);
  border-radius: var(--radius-md, 0.5rem);
}
.cct-prose .wp-block-table th {
  background: var(--color-primary, #0F4C4A);
  color: #fff;
  text-align: left;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border: none;
}
.cct-prose .wp-block-table td {
  padding: 0.75rem 1rem;
  border: none;
  border-top: 1px solid var(--color-border, #E2DCD0);
  vertical-align: top;
}
.cct-prose .wp-block-table tbody tr:nth-child(even) td { background: var(--color-background, #FBF9F5); }
.cct-prose .wp-block-table figcaption { font-size: 0.85rem; color: var(--color-text-muted, #51605D); margin-top: 0.5rem; }

@media (max-width: 640px) {
  .cct-prose { padding: 2.5rem 1.1rem; font-size: 1rem; }
  .cct-prose .wp-block-table table { font-size: 0.85rem; }
  .cct-prose .wp-block-table th,
  .cct-prose .wp-block-table td { padding: 0.6rem 0.65rem; }
}

/* Printable checklist (Questions to Ask Your Doctor) */
.cct-prose.cct-checklist ul { list-style: none; padding-left: 0; }
.cct-prose.cct-checklist li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 3rem;
  margin-bottom: 0.6rem;
  background: #fff;
  border: 1px solid var(--color-border, #E2DCD0);
  border-radius: var(--radius-md, 0.5rem);
}
.cct-prose.cct-checklist li::before {
  content: "";
  position: absolute; left: 1rem; top: 1.05rem;
  width: 1.1rem; height: 1.1rem;
  border: 2px solid var(--color-primary, #0F4C4A);
  border-radius: 4px;
}
@media print {
  .wpc-widget-cct_header, .wpc-widget-cct_footer, .wpc-widget-cct_cta,
  .wpc-widget-cc2_header, .wpc-widget-cc2_footer, .wpc-widget-cc2_cookie_banner, .wpc-widget-cct_hero .cct-hero__actions { display: none !important; }
  .cct-prose { padding: 0 !important; background: #fff !important; }
}

/* Citations (rendered site-wide from [n]) */
sup.cct-cite { font-size: 0.7em; line-height: 0; vertical-align: super; margin-left: 1px; }
sup.cct-cite a {
  color: var(--color-accent, #5F8668) !important;
  text-decoration: none !important;
  font-weight: 600;
}
sup.cct-cite a:hover { color: var(--color-primary, #0F4C4A) !important; text-decoration: underline !important; }

/* ── CC2 design layer: long-form copy matches the homepage redesign ── */
.cct-prose {
  color: #365F5B;
  font-size: 17px;
  line-height: 1.7;
  padding: 80px 24px;
  -webkit-font-smoothing: antialiased;
}
.cct-prose h2,
.cct-prose h3,
.cct-prose h4 { letter-spacing: -0.015em; }
.cct-prose h2 { font-size: 32px; line-height: 1.2; font-weight: 800; margin-top: 56px; margin-bottom: 16px; }
.cct-prose h3 { font-size: 20px; line-height: 1.3; font-weight: 700; margin-top: 32px; margin-bottom: 8px; }
.cct-prose  h2:first-child,
.cct-prose  h3:first-child { margin-top: 0; }
.cct-prose p { margin-bottom: 16px; }
.cct-prose strong { color: var(--color-primary, #0F4C4A); font-weight: 600; }
.cct-prose a { color: var(--color-primary, #0F4C4A); text-decoration-color: #A9C7AE; text-decoration-thickness: 1.5px; transition: color .2s ease, text-decoration-color .2s ease; }
.cct-prose a:hover { color: #B6695B; text-decoration-color: currentColor; }
.cct-prose ul li::marker { color: #649070; }
.cct-prose ol li::marker { color: #649070; font-weight: 700; }
.cct-prose li { margin-bottom: 8px; }

.cct-prose .cct-answer {
  background: var(--color-secondary, #DCE7DD);
  border-left: 0;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 40px;
  color: var(--color-primary, #0F4C4A);
}
.cct-prose .cct-answer,
.cct-prose .cct-pullquote { box-sizing: border-box; }
.cct-prose .cct-answer p:last-child,
.cct-prose  .cct-answer:last-child { margin-bottom: 0; }
.cct-prose .cct-pullquote {
  border-left: 0;
  padding: 28px 32px;
  background: var(--color-surface, #F2EEE6);
  border-radius: 16px;
  font-family: var(--font-heading, "Plus Jakarta Sans", Inter, sans-serif);
  font-size: 20px;
  line-height: 1.45;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.01em;
  color: var(--color-primary, #0F4C4A);
  margin: 40px auto;
}
.cct-prose.is-alt .cct-pullquote { background: var(--color-background, #FBF9F5); }
.cct-prose .cct-small { font-size: 14px; color: #4C706B; }

.cct-prose .wp-block-table { margin: 32px auto 40px; }
.cct-prose .wp-block-table table {
  font-size: 15px;
  background: var(--color-background, #FBF9F5);
  border: 1px solid rgba(15, 76, 74, 0.12);
  border-radius: 16px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.cct-prose .wp-block-table th {
  padding: 16px 20px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cct-prose .wp-block-table td { padding: 16px 20px; border-top-color: rgba(15, 76, 74, 0.12); color: #365F5B; }
.cct-prose .wp-block-table tbody tr:nth-child(even) td { background: var(--color-surface, #F2EEE6); }
.cct-prose .wp-block-table figcaption { font-size: 14px; color: #4C706B; }

.cct-prose.cct-checklist li {
  padding: 16px 20px 16px 52px;
  margin-bottom: 8px;
  background: var(--color-surface, #F2EEE6);
  border: 0;
  border-radius: 12px;
}
.cct-prose.cct-checklist li::before { left: 20px; top: 19px; border-radius: 6px; border-color: #649070; }

sup.cct-cite a { color: #B6695B !important; }

@media (max-width: 1000px) {
  .cct-prose { padding: 64px 20px; }
}
@media (max-width: 640px) {
  .cct-prose { padding: 48px 20px; font-size: 16px; }
  .cct-prose h2 { font-size: 26px; margin-top: 40px; }
  .cct-prose h3 { font-size: 18px; }
  .cct-prose .cct-answer { padding: 20px; }
  .cct-prose .cct-pullquote { padding: 22px 20px; font-size: 18px; }
  .cct-prose .wp-block-table th,
  .cct-prose .wp-block-table td { padding: 12px; }
}

/* One grid: section content uses the same side padding as the header and footer
   (header: min(120px, max(20px, (100vw - 1200px) / 2)) inside a 1440 frame) */
.cct-sec__inner,
.cct-hero__inner,
.cct-src__inner,
.cct-trust__list {
  padding-left: max(20px, min(24px, calc((100vw - 1200px) / 2))) !important;
  padding-right: max(20px, min(24px, calc((100vw - 1200px) / 2))) !important;
}

/* Site-wide design-principles pass
   - long-form column sits on the page's left grid line (same axis as the page hero),
     ~72 characters per line instead of ~89
   - one type scale: citations 12px instead of fractional em sizes
   - balanced headings: no single hanging word */
.cct-prose {
  --cct-measure: 38rem;
  padding-left: max(20px, min(24px, calc((100vw - 1200px) / 2))) !important;
  padding-right: max(20px, min(24px, calc((100vw - 1200px) / 2))) !important;
}
.cct-prose  * {
  margin-left: max(0px, calc((100% - 1200px) / 2)) !important;
  margin-right: auto !important;
}
sup.cct-cite { font-size: 12px; }
main h1, main h2, main h3, .cct-card__title, .cct-step__title { text-wrap: balance; }

/* Article split layout (Figma 58:1389): page hero as a sticky left column,
   long-form text in a ~640px right column. Opt-in via a group with class "cct-split". */
/* Scoped to Gutenberg groups: the cct_split widget uses the same class name */
.wp-block-group.cct-split {
  display: grid !important;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 640px);
  column-gap: 60px;
  align-items: start;
  margin: 0 !important;
  padding: 80px max(20px, calc((100vw - 1200px) / 2)) 96px !important;
  background: var(--color-background, #FBF9F5);
}
/* NB: the theme CSS pipeline drops the child combinator, so these use explicit classes */
.wp-block-group.cct-split .wpc-gutenberg-block,
.wp-block-group.cct-split .cct-prose { margin: 0 !important; max-width: none !important; }
.wp-block-group.cct-split .wpc-gutenberg-block {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 80px + 40px);
}
.wp-block-group.cct-split .cct-prose {
  padding: 0 !important;
  background: transparent;
}
.wp-block-group.cct-split .cct-prose :is(h2, h3, h4, p, ul, ol, figure, blockquote) {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 40rem;
}
@media (max-width: 900px) {
  .wp-block-group.cct-split {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 48px;
    padding-top: 48px !important;
    padding-bottom: 64px !important;
  }
  .wp-block-group.cct-split .wpc-gutenberg-block { position: static; }
}

/* Visible [CONFIRM] / [DRAFT] placeholders for owner review */
mark.cct-confirm {
  background: #FFF1BF;
  color: #6B4E00;
  border: 1px dashed #C99A00;
  border-radius: 4px;
  padding: 0 0.3em;
  font-size: 0.92em;
  font-style: normal;
}
