/* ===== Capital Cables - blog design (n8n posts) =====
   Paste into: WP Admin -> Appearance -> Customize -> Additional CSS -> Publish.
   Only affects elements with "cc-" classes, so existing posts are unchanged. */

:root {
	--cc-red: #ff0103;
  --cc-navy: #737373;
  --cc-black: #212529;
  --cc-orange: #b5520f;
  --cc-orange-dark: #96430c;
  --cc-ink: #1f2a37;
  --cc-muted: #5b6b80;
  --cc-line: #dbe3ee;
  --cc-soft: #f4f7fb;
  --cc-note-bg: #fdf5ee;
  --cc-note-line: #f0d2b6;
  --cc-radius: 12px;
}

/* ---------- Shared ---------- */
.cc-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cc-red);
  margin-bottom: 4px;
}
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cc-btn-primary { background: var(--cc-red); color: #fff !important; border: 1px solid var(--cc-red); }
.cc-btn-primary:hover { background: var(--cc-red); border-color: var(--cc-red); }
.cc-btn-outline { background: #fff; color: var(--cc-black) !important; border: 1px solid var(--cc-black); }
.cc-btn-outline:hover { background: var(--cc-black); color: #fff !important; }
.cc-btn-ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.75); }
.cc-btn-ghost:hover { background: #fff; color: var(--cc-navy) !important; }
.cc-box-title { font-weight: 700; color: var(--cc-black); font-size: 20px; margin: 0 0 10px !important; }

/* ---------- Tag pills ---------- */
.cc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
a.cc-tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1.3; text-decoration: none !important;
  background: var(--cc-soft); color: var(--cc-ink) !important; border: 1px solid var(--cc-line);
}
a.cc-tag-main { background: #fff0f0; color: var(--cc-red) !important; border-color: #ffd0d0; }
a.cc-tag:hover { border-color: currentColor; }

/* ---------- Lead + byline ---------- */
p.cc-lead { font-size: 19px; line-height: 1.6; color: var(--cc-muted); margin: 0 0 18px; }
.cc-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 0 0 22px; margin: 0 0 26px; border-bottom: 1px solid var(--cc-line);
  font-size: 14px; color: var(--cc-muted);
}
.cc-byline-who { display: flex; flex-direction: column; line-height: 1.35; }
.cc-byline-author { font-weight: 700; color: var(--cc-ink); }
.cc-byline-reviewer { font-size: 13px; }
.cc-byline-meta strong { color: var(--cc-ink); font-weight: 700; }
.cc-byline-who + .cc-byline-meta { margin-left: 4px; padding-left: 14px; border-left: 1px solid var(--cc-line); }
.cc-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cc-soft); border: 1px solid var(--cc-line);
  color: var(--cc-navy); font-weight: 700; font-size: 14px; object-fit: cover;
}
.cc-avatar-lg { width: 56px; height: 56px; font-size: 18px; }

/* ---------- Key takeaways ---------- */
.cc-takeaways {
  background: var(--cc-soft); border: 1px solid var(--cc-line); border-radius: var(--cc-radius);
  padding: 20px 24px; margin: 0 0 30px;
}
.cc-takeaways ul { margin: 0; padding-left: 20px; }
.cc-takeaways li { margin: 0 0 6px; color: var(--cc-ink); }
.cc-takeaways li::marker { color: var(--cc-red); }

/* ---------- Tables ---------- */
table.cc-table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0 28px;
  border: 1px solid var(--cc-line); border-radius: var(--cc-radius); overflow: hidden; font-size: 15px;
}
table.cc-table thead td, table.cc-table thead th {
  background: var(--cc-navy) !important; color: #fff; border: 0; padding: 13px 16px; vertical-align: middle;
}
table.cc-table thead td strong { color: #fff; }
table.cc-table tbody td {
  background: #fff !important; border: 0; border-top: 1px solid var(--cc-line);
  padding: 13px 16px; vertical-align: top; color: var(--cc-black);
}
table.cc-table tbody tr:nth-child(even) td { background: #f8fafc !important; }
table.cc-table tbody td:first-child { font-weight: 700; color: var(--cc-black); }

/* ---------- Product card ---------- */
.cc-product {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--cc-line); border-radius: var(--cc-radius); padding: 16px 18px; margin: 6px 0 28px; background: #fff;
}
.cc-product-info { flex: 1 1 260px; min-width: 0; }
.cc-product-title { display: block; font-weight: 700; font-size: 17px; color: var(--cc-black) !important; text-decoration: none !important; line-height: 1.35; }
.cc-product-title:hover { text-decoration: underline !important; }
.cc-product-brands { display: block; font-size: 13px; color: var(--cc-muted); margin-top: 4px; }
.cc-product-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- CTA panel ---------- */
.cc-cta {
  background: var(--cc-navy); color: #fff; border-radius: var(--cc-radius);
  padding: 26px 28px; margin: 10px 0 32px;
}
.cc-cta p { color: #fff; }
p.cc-cta-title { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; }
p.cc-cta-text { font-size: 15px; opacity: .9; margin: 0 0 18px; }
.cc-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Engineer's note ---------- */
.cc-note {
  background: var(--cc-note-bg); border: 1px solid var(--cc-note-line); border-radius: var(--cc-radius);
  padding: 18px 22px; margin: 6px 0 30px;
}
.cc-note .cc-box-title { color: var(--cc-red); }
.cc-note .cc-box-title::before { content: "\1F4A1  "; }
.cc-note p:last-child { margin-bottom: 0; color: var(--cc-ink); }

/* ---------- Read next ---------- */
a.cc-readnext {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 14px;
  border: 1px solid var(--cc-line); border-radius: var(--cc-radius); padding: 14px 18px; margin: 6px 0 30px;
  text-decoration: none !important; background: #fff;
}
a.cc-readnext .cc-label { grid-column: 1; }
.cc-readnext-title { grid-column: 1; font-weight: 700; color: var(--cc-black); line-height: 1.35; }
.cc-readnext-arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--cc-black); font-size: 20px; transition: transform .15s ease; }
a.cc-readnext:hover { border-color: var(--cc-navy); }
a.cc-readnext:hover .cc-readnext-arrow { transform: translateX(4px); }

/* ---------- FAQs ---------- */
details.cc-faq {
  border: 1px solid var(--cc-line); border-radius: 10px; padding: 0; margin: 0 0 10px; background: #fff;
}
details.cc-faq summary {
  list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; position: relative;
  font-weight: 700; color: var(--cc-black); line-height: 1.4;
}
details.cc-faq summary::-webkit-details-marker { display: none; }
details.cc-faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--cc-red); font-size: 22px; font-weight: 400;
}
details.cc-faq[open] summary::after { content: "\2013"; }
details.cc-faq > p { padding: 0 16px 14px; margin: 0; color: var(--cc-ink); }

/* ---------- Author box ---------- */
.cc-author {
  display: flex; gap: 16px; align-items: flex-start;
  border-top: 1px solid var(--cc-line); border-bottom: 1px solid var(--cc-line);
  padding: 22px 0; margin: 36px 0 30px;
}
p.cc-author-name { font-weight: 700; color: var(--cc-navy); margin: 0 0 4px; }
p.cc-author-bio, .cc-author-bio { font-size: 14px; color: var(--cc-muted); margin: 0; }
.cc-author-bio p { margin: 0 0 8px; }
.cc-author-bio p:last-child { margin-bottom: 0; }
.cc-author-bio h1, .cc-author-bio h2, .cc-author-bio h3, .cc-author-bio h4 {
  font-size: 15px !important; font-weight: 700; color: var(--cc-ink) !important; margin: 0 0 6px !important; line-height: 1.4;
}
.cc-author-bio a { color: var(--cc-red); }
.cc-author img.cc-avatar { object-fit: contain; background: #fff; }

/* ---------- Quotation band ---------- */
.cc-quote-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px;
  background: var(--cc-navy); color: #fff; border-radius: var(--cc-radius); padding: 30px 32px; margin: 10px 0 36px;
}
.cc-quote-text { flex: 1 1 320px; }
p.cc-quote-title { color: #fff; font-size: 24px; font-weight: 700; line-height: 1.3; margin: 0 0 12px; }
ul.cc-quote-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: rgba(255,255,255,.88); }
ul.cc-quote-points li { margin: 0; }
ul.cc-quote-points li::before { content: "\2713  "; color: #ffffff; }
.cc-quote-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Related guides ---------- */
.cc-related { margin: 0 0 20px; }
p.cc-related-heading { font-size: 24px; font-weight: 700; color: var(--cc-red); margin: 0 0 16px; }
.cc-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
a.cc-related-card { display: block; text-decoration: none !important; }
a.cc-related-card img, .cc-related-noimg {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 10px; background: var(--cc-soft); border: 1px solid var(--cc-line); margin-bottom: 10px;
}
a.cc-related-card .cc-label { margin: 0 0 4px; }
.cc-related-title { display: block; font-weight: 700; color: var(--cc-black); line-height: 1.35; font-size: 15px; }
a.cc-related-card:hover .cc-related-title { text-decoration: underline; }

/* ---------- Post header (theme template) ---------- */
.cc-post-head { padding: 28px 0 8px; }
.cc-breadcrumb { font-size: 13px; color: var(--cc-muted); margin: 0 0 14px; }
.cc-breadcrumb a { color: var(--cc-muted); text-decoration: none; }
.cc-breadcrumb a:hover { color: var(--cc-red); text-decoration: underline; }
.cc-breadcrumb .cc-sep { margin: 0 8px; color: var(--cc-line); }
h1.cc-post-title { font-size: 40px; line-height: 1.2; font-weight: 700; color: var(--cc-black); margin: 0 0 14px; }
p.cc-post-excerpt { font-size: 16px; line-height: 24px; color: var(--cc-black); margin: 0 0 20px; }
.cc-post-head .cc-byline { margin-bottom: 24px; }
.cc-featured { margin: 0 0 32px; }
.cc-featured img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--cc-radius); }

/* ---------- Sidebar: Talk to our team ---------- */
.cc-side-card {
  margin-top: 20px; padding: 18px 20px; background: #fff;
  border: 1px solid var(--cc-line); border-radius: var(--cc-radius);
}
p.cc-side-title {
  margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cc-black);
}
a.cc-side-link {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  font-weight: 700; color: var(--cc-black) !important; text-decoration: none !important;
}
a.cc-side-link svg { color: var(--cc-red); flex: 0 0 auto; }
/*a.cc-side-link:hover span { text-decoration: underline; }*/

/* ---------- Article layout (Capital Cables Article template) ---------- */
.cc-article-body { padding-top: 8px; }
.cc-article-main #ez-toc-container { display: none; }      /* "On this page" replaces it */
.cc-article-side .cc-side-card { margin: 0 0 20px; }
@media (min-width: 992px) { .cc-article-side { padding-left: 24px; } }

/* Sticky sidebar on tablet/desktop: stays in view while reading.
   If it is taller than the screen, it scrolls on its own. */
@media (min-width: 768px) {
  .cc-article-side {
    position: -webkit-sticky; position: sticky;
    top: 24px; align-self: flex-start;
    max-height: calc(100vh - 48px); overflow-y: auto;
    scrollbar-width: thin; padding-bottom: 4px;
  }
  .admin-bar .cc-article-side { top: 56px; max-height: calc(100vh - 80px); }
}

/* Only our boxes show below the columns (hides other plugins' author boxes / extras) */
.cc-after-columns > .container > :not(.cc-quote-band):not(.cc-related) { display: none !important; }

/* On this page */
.cc-toc ol { list-style: none; margin: 0; padding: 10px 0 0; border-top: 2px solid var(--cc-line); }
.cc-toc li { margin: 0; padding: 0; }
.cc-toc li::before { content: none !important; }
.cc-toc a {
  display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; line-height: 1.4;
  color: var(--cc-black) !important; text-decoration: none !important;
}
.cc-toc a:hover { background: var(--cc-soft); }
.cc-toc a.is-active { background: #fff0f0; color: var(--cc-red) !important; font-weight: 700; }

/* Get a quick quotation */
.cc-side-card.cc-quote-form { background: var(--cc-navy); border-color: var(--cc-navy); color: #fff; scroll-margin-top: 110px; }
p.cc-quote-form-title { color: #fff; font-size: 20px; font-weight: 700; margin: 0 0 6px; }
p.cc-quote-form-text { color: rgba(255,255,255,.9); font-size: 14px; margin: 0 0 12px; }
.cc-quote-form label { display: block; color: #fff; font-size: 13px; font-weight: 700; margin: 10px 0 4px; }
.cc-quote-form input, .cc-quote-form select {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--cc-line);
  background: #fff; color: var(--cc-ink); font-size: 15px; line-height: 1.3;
}
.cc-quote-form .cc-btn { width: 100%; margin-top: 16px; cursor: pointer; }
p.cc-quote-form-note { color: rgba(255,255,255,.85); font-size: 12px; text-align: center; margin: 12px 0 0; }
.cc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cc-form-msg { padding: 10px 12px; border-radius: 8px; font-size: 14px; margin: 0 0 8px; }p.cc-side-title
.cc-form-ok { background: #e8f7ee; color: #13603a; }
.cc-form-err { background: #fff0f0; color: #a40002; }

/* Below the 2 columns: full-width quotation band + related guides */
.cc-after-columns { padding: 10px 0 20px; }
.cc-after-columns .cc-quote-band {
  border-radius: 0; margin: 30px 0 50px; padding: 44px 0;
  box-shadow: 0 0 0 100vmax var(--cc-navy); clip-path: inset(0 -100vmax);   /* edge to edge */
}


.cc-single {
    width: 1320px !important;
    max-width: 1320px !important;
}


.cc-takeaways ul {
    padding-left: 0px;
}p.cc-side-title


/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  p.cc-lead { font-size: 17px; }
  .cc-cta, .cc-quote-band { padding: 22px 20px; }
  p.cc-cta-title { font-size: 19px; }
  p.cc-quote-title { font-size: 20px; }
  .cc-btn { white-space: normal; text-align: center; }
  .cc-product-actions .cc-btn, .cc-cta-actions .cc-btn, .cc-quote-actions .cc-btn { flex: 1 1 auto; }
  .cc-related-grid { grid-template-columns: 1fr; gap: 14px; }
  a.cc-related-card { display: grid; grid-template-columns: 112px 1fr; column-gap: 12px; align-items: start; }
  a.cc-related-card img, .cc-related-noimg { grid-row: 1 / span 2; margin: 0; aspect-ratio: 4 / 3; }
  a.cc-related-card .cc-label, .cc-related-title { grid-column: 2; }
  table.cc-table { display: block; overflow-x: auto; white-space: normal; }
  .cc-byline-who + .cc-byline-meta { margin-left: 0; padding-left: 0; border-left: 0; }
  h1.cc-post-title { font-size: 28px; }
  p.cc-post-excerpt { font-size: 17px; }
  .cc-post-head { padding-top: 18px; }
  .cc-after-columns .cc-quote-band { padding: 30px 0; }
}