/* ==========================================================================
   Cleartwo — Single post template
   Layout / type / spacing follow the reference design ("Is SEO Dead? AI SEO
   Blog Post"); ONLY the colour scheme is Cleartwo's.
   Scoped under .c2p — header/footer come from the live theme, untouched.

   Colour map (reference -> Cleartwo)
     navy  #0E1726 -> ink   #080E10     lime accent #C8F03C -> sky  #36A9E2
     link  #2B4BF2 -> blue  #0390D7     soft blue   #F1F4FF -> #EAF5FC
   ========================================================================== */

.c2p {
  --c2p-ink: #080E10;
  --c2p-ink-2: #101828;
  --c2p-acc: #36A9E2;
  --c2p-blue: #0390D7;
  --c2p-blue-hover: #38558D;
  --c2p-soft: #EAF5FC;
  --c2p-text: #080E10;
  --c2p-muted: #4A5568;
  --c2p-line: #DCE1E7;
  --c2p-line-2: #E8ECF1;
  --c2p-page: #F4F6F8;
  --c2p-chip: #121A26;
  --c2p-dline: #2F3B4C;
  --c2p-dtext: #C9D2E0;
  --c2p-dmute: #9AA8BD;
  --c2p-header-h: 100px;

  --c2p-display: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
  --c2p-body: 'Public Sans', 'Helvetica Neue', Helvetica, sans-serif;
  --c2p-mono: 'IBM Plex Mono', ui-monospace, monospace;

  font-family: var(--c2p-body);
  color: var(--c2p-text);
  background: var(--c2p-page);
  -webkit-font-smoothing: antialiased;
}

/* the live theme pads every <main> (vw based) — hero must start under the fixed header */
main.c2p { padding: 0 !important; margin: 0 !important; display: block; }

.c2p *, .c2p *::before, .c2p *::after { box-sizing: border-box; }
.c2p img { max-width: 100%; height: auto; }
.c2p svg { flex: none; }

.c2p__wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* shared bits */
.c2p-mono {
  font-family: var(--c2p-mono);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.c2p-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--c2p-body);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.c2p-btn:hover { transform: translateY(-1px); }

/* ---------- HERO ---------- */
.c2p-hero {
  background: var(--c2p-ink);
  color: #fff;
  padding: calc(var(--c2p-header-h) + 64px) 0 88px;
}
.c2p-hero__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}
.c2p-hero__text {
  flex: 1 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.c2p-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-family: var(--c2p-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.c2p-tags a, .c2p-tags span { text-decoration: none; line-height: 1.3; }
.c2p-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--c2p-acc);
  color: var(--c2p-ink) !important;
}
.c2p-tag--ghost {
  background: transparent;
  border: 1px solid var(--c2p-dline);
  color: var(--c2p-dtext) !important;
}
.c2p-tags__read { color: var(--c2p-dmute); }

.c2p-hero h1.c2p-title {
  margin: 0;
  padding: 0;
  font-family: var(--c2p-display);
  font-weight: 800;
  font-size: clamp(38px, 4.72vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
}
.c2p-title em { font-style: normal; color: var(--c2p-acc); }
.c2p-hero .c2p-lead {
  margin: 0;
  max-width: 600px;
  font-size: 21px;
  line-height: 1.55;
  color: var(--c2p-dtext);
}
.c2p-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.c2p-hero__cta .c2p-btn--main {
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--c2p-acc);
  color: var(--c2p-ink);
  font-size: 17px;
}
.c2p-hero__cta .c2p-btn--main:hover { background: #fff; color: var(--c2p-ink); }
.c2p-hero__cta .c2p-btn--ghost {
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid var(--c2p-dline);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}
.c2p-hero__cta .c2p-btn--ghost:hover { border-color: var(--c2p-acc); color: var(--c2p-acc); }

.c2p-byline { display: flex; align-items: center; gap: 14px; padding-top: 12px; }
.c2p-byline__avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  background: #1B2636;
  border: 2px solid var(--c2p-acc);
}
.c2p-byline__info { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.4; }
.c2p-byline__name { font-weight: 600; color: #fff; text-decoration: none; }
.c2p-byline__sub { color: var(--c2p-dmute); }

/* hero illustration card */
.c2p-hero__visual { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.c2p-ai {
  background: #fff;
  color: var(--c2p-ink);
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.c2p-ai__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.c2p-ai__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--c2p-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c2p-muted);
}
.c2p-ai__note { font-size: 12px; color: var(--c2p-muted); }
.c2p-ai__q {
  align-self: flex-end;
  max-width: 85%;
  background: #EEF1F5;
  border-radius: 16px 16px 4px 16px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.45;
}
.c2p-ai__a { display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.55; }
.c2p-ai__a p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--c2p-ink); }
.c2p-ai__row { display: flex; gap: 12px; align-items: flex-start; padding: 0 12px; color: var(--c2p-muted); }
.c2p-ai__row--hit {
  padding: 12px;
  border-radius: 12px;
  background: var(--c2p-soft);
  outline: 2px solid var(--c2p-blue);
  color: var(--c2p-ink);
}
.c2p-ai__n {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #E3E8EF;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c2p-ink);
}
.c2p-ai__row--hit .c2p-ai__n { background: var(--c2p-blue); color: #fff; }
.c2p-ai__src {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid #E3E8EF;
}
.c2p-ai__src span { font-size: 12px; color: var(--c2p-muted); padding-top: 10px; }
.c2p-ai__src span.c2p-chip { padding: 5px 10px; border-radius: 999px; background: #EEF1F5; margin-top: 10px; color: var(--c2p-ink); }
.c2p-hero__caption {
  margin: 0;
  text-align: center;
  font-family: var(--c2p-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

/* ---------- MAIN: ARTICLE + STICKY SIDEBAR ---------- */
.c2p-main { padding: 64px 0 24px; }
.c2p-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;        /* needed so the sidebar can stick */
}
.c2p-article {
  flex: 999 1 640px;
  min-width: 0;
  max-width: 780px;
}

/* the WHOLE sidebar is sticky. If the viewport is shorter than the sidebar it scrolls inside itself. */
.c2p-aside {
  flex: 1 1 300px;
  min-width: 0;
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--c2p-header-h) + 16px);
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - var(--c2p-header-h) - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #C9D2DD transparent;
}

/* ---------- ARTICLE CONTENT (the_content) ---------- */
.c2p-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 19px;
  line-height: 1.72;
  color: var(--c2p-text);
}
.c2p-content > * { margin-top: 0; margin-bottom: 0; }
.c2p-content p { margin: 0; font-size: 19px; line-height: 1.72; color: var(--c2p-text); }
.c2p-content strong { font-weight: 700; }
.c2p-content a { color: var(--c2p-blue); }
.c2p-content a:hover { color: var(--c2p-blue-hover); }

.c2p-content h2 {
  margin: 24px 0 0;
  padding: 0;
  font-family: var(--c2p-display);
  font-weight: 800;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--c2p-ink);
  scroll-margin-top: calc(var(--c2p-header-h) + 16px);
}
.c2p-content h3 {
  margin: 12px 0 0;
  padding: 0;
  font-family: var(--c2p-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c2p-ink);
  scroll-margin-top: calc(var(--c2p-header-h) + 16px);
}
.c2p-content ul, .c2p-content ol { margin: 0; padding-left: 1.4em; }
.c2p-content ul { list-style: disc; }
.c2p-content ol { list-style: decimal; }
.c2p-content li { margin: 0 0 10px; font-size: 19px; line-height: 1.72; }
.c2p-content ul li::marker { color: var(--c2p-blue); }
.c2p-content figure { margin: 0; }
.c2p-content figure img, .c2p-content > img { display: block; width: 100%; border-radius: 20px; }
.c2p-content figcaption { margin-top: 10px; font-size: 14px; color: var(--c2p-muted); text-align: center; }
.c2p-content hr { border: 0; height: 1px; background: var(--c2p-line); margin: 12px 0; }
.c2p-content code {
  padding: 2px 7px;
  border-radius: 6px;
  background: #E3E9F0;
  font-family: var(--c2p-mono);
  font-size: 0.85em;
}
.c2p-content pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  border-radius: 16px;
  background: var(--c2p-ink);
  color: #D9E4F2;
  font-size: 14px;
  line-height: 1.7;
}
.c2p-content pre code { padding: 0; background: none; color: inherit; }

/* TL;DR */
.c2p-tldr {
  background: #fff;
  border: 1px solid var(--c2p-line);
  border-radius: 20px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.c2p-tldr__label { font-family: var(--c2p-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c2p-blue); }
.c2p-tldr__item { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.55; }
.c2p-tldr__item svg { margin-top: 3px; }
.c2p-tldr__item span { font-size: 17px; }

/* pull quote */
.c2p-content blockquote {
  margin: 12px 0;
  padding: 36px 0;
  border: 0;
  border-top: 2px solid var(--c2p-ink);
  border-bottom: 2px solid var(--c2p-ink);
  background: none;
  font-family: var(--c2p-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c2p-ink);
}
.c2p-content blockquote p { margin: 0; font: inherit; color: inherit; letter-spacing: inherit; }

/* comparison table */
.c2p-table {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--c2p-line);
  background: #fff;
}
.c2p-table table { width: 100%; min-width: 600px; margin: 0; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.c2p-table th, .c2p-table td { padding: 16px 22px; text-align: left; border: 0; border-bottom: 1px solid var(--c2p-line-2); vertical-align: top; background: none; }
.c2p-table thead th {
  padding: 18px 22px;
  border-bottom: 1px solid var(--c2p-line);
  font-family: var(--c2p-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c2p-ink);
}
.c2p-table thead th:first-child { width: 24%; }
.c2p-table thead th.is-hit { background: var(--c2p-ink); color: var(--c2p-acc); }
.c2p-table tbody th { font-weight: 600; color: var(--c2p-ink); }
.c2p-table tbody td { color: var(--c2p-muted); }
.c2p-table tbody td.is-hit { background: var(--c2p-soft); color: var(--c2p-ink); font-weight: 500; }
.c2p-table tbody tr:last-child th, .c2p-table tbody tr:last-child td { border-bottom: 0; }

/* 4 benefit cards */
.c2p-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.c2p-cardx {
  background: #fff;
  border: 1px solid var(--c2p-line);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.c2p-cardx__n { font-family: var(--c2p-mono); font-size: 14px; color: var(--c2p-blue); }
.c2p-content .c2p-cardx h3 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: 0; }
.c2p-content .c2p-cardx p { font-size: 16px; line-height: 1.6; color: var(--c2p-muted); }

/* dark "path" panel */
.c2p-path {
  background: var(--c2p-ink);
  color: #fff;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.c2p-path__label { font-family: var(--c2p-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c2p-acc); }
.c2p-path__flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 16px; font-weight: 600; line-height: 1.3; }
.c2p-path__step { padding: 12px 16px; border-radius: 12px; background: var(--c2p-chip); border: 1px solid var(--c2p-dline); color: #fff; }
.c2p-path__step--end { background: var(--c2p-acc); border-color: var(--c2p-acc); color: var(--c2p-ink); }
.c2p-content .c2p-path p { font-size: 16px; line-height: 1.6; color: var(--c2p-dtext); }

/* numbered plan */
.c2p-content ol.c2p-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: c2p-step;
}
.c2p-content ol.c2p-steps > li {
  counter-increment: c2p-step;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 0;
  background: #fff;
  border: 1px solid var(--c2p-line);
  border-radius: 18px;
  padding: 22px 24px;
}
.c2p-content ol.c2p-steps > li::before {
  content: counter(c2p-step);
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--c2p-ink);
  color: var(--c2p-acc);
  font-family: var(--c2p-display);
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.c2p-steps__body { display: flex; flex-direction: column; gap: 4px; font-size: 16px; line-height: 1.6; color: var(--c2p-muted); }
.c2p-steps__body strong { font-size: 19px; color: var(--c2p-ink); }

/* FAQ */
.c2p-faqs { display: flex; flex-direction: column; border-top: 1px solid #C9D2DD; }
.c2p-faq { border-bottom: 1px solid #C9D2DD; }
.c2p-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.4;
  color: var(--c2p-ink);
  cursor: pointer;
  list-style: none;
}
.c2p-faq summary::-webkit-details-marker { display: none; }
.c2p-faq summary::marker { content: ""; }
.c2p-faq__plus { flex: none; font-size: 28px; line-height: 1; transition: transform 0.2s; }
.c2p-faq[open] .c2p-faq__plus { transform: rotate(45deg); }
.c2p-content .c2p-faq p { margin: 0 0 22px; font-size: 17px; line-height: 1.65; color: var(--c2p-muted); }

/* author bio + share */
.c2p-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  margin-top: 28px;
  border-top: 1px solid #C9D2DD;
}
.c2p-bio { display: flex; gap: 16px; align-items: center; flex: 1 1 320px; }
.c2p-bio__avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--c2p-ink);
  border: 2px solid var(--c2p-acc);
}
.c2p-bio__text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.5; }
.c2p-bio__text strong { font-size: 17px; }
.c2p-bio__text span { color: var(--c2p-muted); }
.c2p-share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.c2p-share__label { font-size: 14px; color: var(--c2p-muted); margin-right: 4px; }
.c2p-share__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #B8C2CF;
  background: #fff;
  color: var(--c2p-ink);
  text-decoration: none;
  font: 600 14px/1 var(--c2p-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.c2p-share__pill:hover { background: var(--c2p-ink); border-color: var(--c2p-ink); color: #fff; }
.c2p-share__pill--icon { width: 44px; padding: 0; }
.c2p-share__pill svg { width: 18px; height: 18px; }
.c2p-share__pill.is-copied { background: var(--c2p-blue); border-color: var(--c2p-blue); color: #fff; }

/* ---------- SIDEBAR CARDS ---------- */
.c2p-toc {
  background: #fff;
  border: 1px solid var(--c2p-line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.c2p-toc__label {
  margin: 0;
  padding: 0 0 6px;
  font-family: var(--c2p-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c2p-muted);
}
.c2p-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100vh - var(--c2p-header-h) - 130px);   /* long TOCs scroll inside the sticky card */
  overflow-y: auto;
}
.c2p-toc__list li { margin: 0; padding: 0; list-style: none; }
.c2p-toc__list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--c2p-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.c2p-toc__list a:hover { color: var(--c2p-blue); }
.c2p-toc__list a.is-active { color: var(--c2p-ink); font-weight: 600; }

.c2p-report {
  background: var(--c2p-ink);
  color: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.c2p-report__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--c2p-acc);
  display: flex;
  align-items: center;
  justify-content: center;
}
.c2p-report__title { font-family: var(--c2p-display); font-weight: 800; font-size: 26px; line-height: 1.15; }
.c2p-report p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--c2p-dtext); }
.c2p-report label { font-size: 13px; font-weight: 600; color: var(--c2p-dtext); }
.c2p-report input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--c2p-dline);
  background: var(--c2p-chip);
  color: #fff;
  font: inherit;
  font-size: 15px;
}
.c2p-report input::placeholder { color: #6B7684; }
.c2p-report input:focus { outline: 2px solid var(--c2p-acc); outline-offset: 1px; }
.c2p-report button {
  min-height: 52px;
  border-radius: 12px;
  border: none;
  background: var(--c2p-acc);
  color: var(--c2p-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.c2p-report button:hover { background: #fff; }
.c2p-report__note { font-size: 13px; color: var(--c2p-dmute); text-align: center; }

.c2p-talk {
  background: #fff;
  border: 1px solid var(--c2p-line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.c2p-talk__title { font-family: var(--c2p-display); font-weight: 700; font-size: 20px; line-height: 1.2; }
.c2p-talk p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--c2p-muted); }
.c2p-talk a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--c2p-ink);
  color: var(--c2p-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}
.c2p-talk a:hover { background: var(--c2p-ink); color: #fff; }

/* ---------- RELATED ---------- */
.c2p-related { padding: 72px 0; }
.c2p-related__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
}
.c2p-related__head h2 {
  margin: 0;
  padding: 0;
  font-family: var(--c2p-display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--c2p-ink);
}
.c2p-related__all { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 16px; text-decoration: none; color: var(--c2p-blue); }
.c2p-related__all:hover { color: var(--c2p-blue-hover); }
.c2p-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.c2p-rcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c2p-line);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--c2p-ink);
  transition: transform 0.25s, box-shadow 0.25s;
}
.c2p-rcard:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(8, 14, 16, 0.12); color: var(--c2p-ink); }
.c2p-rcard__tile {
  height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  font-family: var(--c2p-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
}
.c2p-rcard__tile--dark { background: var(--c2p-ink); color: var(--c2p-acc); }
.c2p-rcard__tile--acc { background: var(--c2p-acc); color: var(--c2p-ink); }
.c2p-rcard__tile--blue { background: var(--c2p-blue); color: #fff; }
.c2p-rcard__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.c2p-rcard__meta { font-family: var(--c2p-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c2p-blue); }
.c2p-rcard__title { font-family: var(--c2p-display); font-weight: 700; font-size: 21px; line-height: 1.25; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
  .c2p { --c2p-header-h: 116px; }   /* fallback; single-post.js measures the real header height */
  .c2p-hero { padding: calc(var(--c2p-header-h) + 40px) 0 56px; }
  .c2p-hero__grid { gap: 40px; }
  .c2p-main { padding-top: 40px; }
  .c2p-layout { gap: 32px; }
  /* sidebar un-sticks on tablet/mobile and flows below the article */
  .c2p-aside { flex: 1 1 100%; position: static; max-height: none; overflow: visible; }
  .c2p-content h2 { font-size: 34px; }
  .c2p-content blockquote { font-size: 28px; }
}
@media (max-width: 600px) {
  .c2p__wrap { padding: 0 18px; }
  .c2p-hero .c2p-lead { font-size: 18px; }
  .c2p-hero__cta .c2p-btn { width: 100%; justify-content: center; }
  .c2p-ai { padding: 20px; }
  .c2p-content, .c2p-content p, .c2p-content li { font-size: 17px; }
  .c2p-content h2 { font-size: 28px; margin-top: 16px; }
  .c2p-content h3 { font-size: 22px; }
  .c2p-content blockquote { font-size: 23px; padding: 28px 0; }
  .c2p-tldr { padding: 22px 20px; }
  .c2p-path { padding: 24px 20px; }
  .c2p-content ol.c2p-steps > li { padding: 18px; gap: 14px; }
  .c2p-faq summary { font-size: 17px; }
  .c2p-related { padding: 48px 0; }
  .c2p-related__head h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .c2p *, .c2p *::before, .c2p *::after { transition: none !important; }
}

/* ---------- WordPress additions ---------- */
/* hero featured image (used when the AI card is off) */
.c2p-hero__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--c2p-dline);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
/* sidebar report form */
.c2p-report form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
/* shortcode blocks sit directly in the flex column */
.c2p-content .c2p-cards, .c2p-content .c2p-path, .c2p-content .c2p-faqs, .c2p-content ol.c2p-steps { margin: 0; }

/* the theme caps .content_wrapper (vw based) — the hero must run edge to edge */
.c2p-wrapper { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }

/* holding area for the category posts that JS moves into the footer "Latest News" block */
.related-posts-sec { display: none; }

/* never let an empty paragraph add a gap in the flex column */
.c2p-content > p:empty { display: none; }

/* client result / case study */
.c2p-case {
  background: #fff;
  border: 1px solid var(--c2p-line);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}
.c2p-case__stat {
  flex: 1 1 260px;
  background: var(--c2p-acc);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.c2p-case__label { font-family: var(--c2p-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c2p-ink); }
.c2p-case__big { display: flex; flex-direction: column; gap: 4px; }
.c2p-case__num { font-family: var(--c2p-display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -0.04em; color: var(--c2p-ink); }
.c2p-case__cap { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--c2p-ink); }
.c2p-case__body { flex: 2 1 360px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.c2p-content .c2p-case__body h3 { margin: 0; font-size: 24px; line-height: 1.25; letter-spacing: 0; }
.c2p-content .c2p-case__body p { font-size: 16px; line-height: 1.6; color: var(--c2p-muted); }
.c2p-content .c2p-case__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: var(--c2p-blue);
}
.c2p-content .c2p-case__link:hover { color: var(--c2p-blue-hover); }
@media (max-width: 600px) {
  .c2p-case__stat, .c2p-case__body { padding: 24px 20px; }
  .c2p-case__num { font-size: 52px; }
}

/* inline CTA boxes */
.c2p-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.c2p-cta {
  border-radius: 20px;
  padding: 28px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.c2p-cta__text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.c2p-cta__title { font-family: var(--c2p-display); font-weight: 800; font-size: 24px; line-height: 1.2; color: var(--c2p-ink); }
.c2p-cta__sub { font-size: 16px; line-height: 1.5; color: var(--c2p-muted); }
.c2p-cta--form { background: #fff; border: 2px solid var(--c2p-ink); }
.c2p-cta--banner { background: var(--c2p-soft); }
.c2p-cta__form { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.c2p-cta__form input {
  flex: 1 1 180px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid #B8C2CF;
  background: #fff;
  color: var(--c2p-ink);
  font: inherit;
  font-size: 16px;
}
.c2p-cta__form input:focus { outline: 2px solid var(--c2p-blue); outline-offset: 1px; }
.c2p-cta__form button {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: none;
  background: var(--c2p-ink);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.c2p-cta__form button:hover { background: var(--c2p-blue); }
.c2p-content .c2p-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--c2p-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s;
}
.c2p-content .c2p-cta__btn:hover { background: var(--c2p-blue-hover); color: #fff; }
@media (max-width: 600px) { .c2p-cta { padding: 22px 20px; } .c2p-cta__title { font-size: 21px; } }

/* sidebar report card: the button is now a plain CTA link (no input field) */
.c2p-report .c2p-report__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 12px;
  background: var(--c2p-acc);
  color: var(--c2p-ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.c2p-report .c2p-report__btn:hover { background: #fff; color: var(--c2p-ink); }

/* compact sidebar cards (so TOC + report + talk fit one screen on a normal laptop) */
.c2p-toc { padding: 20px 22px; gap: 2px; }
.c2p-toc__list { gap: 0; max-height: none; overflow: visible; }
.c2p-toc__list a { min-height: 36px; }
.c2p-report { padding: 22px; gap: 12px; }
.c2p-report__icon { width: 40px; height: 40px; }
.c2p-report__title { font-size: 24px; }
.c2p-talk { padding: 20px 22px; gap: 10px; }
.c2p-talk__title { font-size: 19px; }

/* long headings wrap in the sidebar TOC: give each link vertical padding so lines do not touch */
.c2p-toc__list a { padding: 6px 0; line-height: 1.35; }

/* sidebar report card: icon and title sit on one line */
.c2p-report__head { display: flex; align-items: center; gap: 12px; }
.c2p-report__head .c2p-report__icon { flex: none; width: 38px; height: 38px; border-radius: 10px; }
.c2p-report__head .c2p-report__icon svg { width: 20px; height: 20px; }
.c2p-report__head .c2p-report__title { flex: 1 1 auto; min-width: 0; font-size: 21px; line-height: 1.15; }

/* sidebar TOC: slightly smaller text so long headings take less room */
.c2p-toc__list a { font-size: 13.5px; line-height: 1.35; padding: 5px 0; min-height: 0; }

/* WPBakery "Single image" element inside the article: same look as an inline figure */
.c2p-content .wpb_single_image, .c2p-content .wpb_single_image .vc_figure, .c2p-content .wpb_single_image .vc_single_image-wrapper { display: block; width: 100%; max-width: 100%; margin: 0; }
.c2p-content .wpb_single_image img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: none; }

/* comparison table: the whole header row is dark, like the highlighted column */
.c2p-table thead th { background: var(--c2p-ink); color: var(--c2p-acc); border-bottom-color: var(--c2p-ink); }   /* all header cells: same font, size and colour */
