/* =====================================================================
   Blog: hero + enquiry form, article body, sidebar product carousel.
   Loaded only on posts and the blog archive.
   ===================================================================== */

.ttc-crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; color: var(--muted); margin-bottom: .9rem; }
.ttc-crumbs a { color: var(--muted); text-decoration: none; }
.ttc-crumbs a:hover { color: var(--cta); text-decoration: underline; }

/* ---------- Hero ---------- */
.ttc-posthero { background: linear-gradient(180deg, #fff 0%, #F4F9FD 100%); border-bottom: 1px solid var(--line); }
.ttc-posthero__grid {
  display: grid; grid-template-columns: 1.35fr .95fr; gap: clamp(1.5rem,3vw,3rem);
  align-items: start; padding-block: clamp(2rem,4vw,3.5rem);
}
.ttc-posthero__title { font-size: clamp(1.8rem,1.2rem+2.6vw,3rem); font-weight: 800; letter-spacing: -.02em; }
.ttc-posthero__lead { color: var(--muted); font-size: 1.08rem; margin-top: 1rem; max-width: 60ch; }
.ttc-posthero__meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .84rem; color: var(--muted); margin: 1rem 0 0; }

.ttc-posthero__form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 1.4rem; box-shadow: var(--sh-lg); position: sticky; top: 96px;
}
.ttc-enq__title { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 800; color: var(--navy); font-size: 1.15rem; margin: 0 0 .3rem; }
.ttc-enq__text { font-size: .88rem; color: var(--muted); margin-bottom: .9rem; }
.ttc-enq__phone { font-size: .85rem; color: var(--muted); margin: .8rem 0 0; }
.ttc-posthero__form .wpcf7 { margin: 0; }
.ttc-posthero__form .wpcf7 p { margin-bottom: .5rem; }

@media (max-width: 980px) {
  .ttc-posthero__grid { grid-template-columns: 1fr; }
  .ttc-posthero__form { position: static; }
}

/* ---------- Body + sidebar ---------- */
.ttc-post__grid {
  display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: clamp(1.5rem,3vw,3rem);
  align-items: start; padding-block: clamp(2rem,4vw,3.5rem);
}
.ttc-post__main { min-width: 0; }
.ttc-post__body { max-width: 72ch; }
.ttc-post__thumb { margin: 0 0 1.5rem; }
.ttc-post__thumb img { width: 100%; border-radius: var(--r-xl); }
.ttc-post__side { display: grid; gap: 1.25rem; position: sticky; top: 96px; }
@media (max-width: 1024px) {
  .ttc-post__grid { grid-template-columns: 1fr; }
  .ttc-post__side { position: static; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); }
}

/* ---------- Table of contents ---------- */
.ttc-toc { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.3rem; margin-bottom: 1.75rem; }
.ttc-toc__label { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 800; color: var(--navy); margin: 0 0 .6rem; font-size: .95rem; }
.ttc-toc ol { list-style: decimal; padding-left: 1.2rem; display: grid; gap: .35rem; margin: 0; }
.ttc-toc a { color: var(--cta); text-decoration: none; font-size: .92rem; }
.ttc-toc a:hover { text-decoration: underline; }

/* ---------- Quick answer (AEO block) ---------- */
.ttc-qa {
  background: var(--lightblue); border-left: 4px solid var(--cta);
  border-radius: 0 var(--r-lg) var(--r-lg) 0; padding: 1.15rem 1.35rem; margin: 0 0 1.75rem;
}
.ttc-qa__label {
  font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cta); margin: 0 0 .4rem;
}
.ttc-qa__body p { margin: 0 0 .6rem; font-size: 1.04rem; color: var(--ink); }
.ttc-qa__body p:last-child { margin-bottom: 0; }

/* ---------- Key facts ---------- */
.ttc-keyfacts {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: 0 var(--r-lg) var(--r-lg) 0; padding: 1.1rem 1.3rem; margin: 1.75rem 0;
}
.ttc-keyfacts__label { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin: 0 0 .5rem; }
.ttc-keyfacts ul { margin: 0; }

/* ---------- FAQs ---------- */
.ttc-faqs { margin: 2.5rem 0; }
.ttc-faqs__title { font-size: 1.6rem; margin-bottom: 1rem; }
.ttc-faq { border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: .6rem; }
.ttc-faq__q {
  cursor: pointer; list-style: none; padding: .95rem 1.1rem; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.ttc-faq__q::-webkit-details-marker { display: none; }
.ttc-faq__q::after { content: "+"; font-size: 1.3rem; color: var(--cta); line-height: 1; flex: 0 0 auto; }
.ttc-faq[open] .ttc-faq__q::after { content: "-"; }
.ttc-faq__q:hover { color: var(--cta); }
.ttc-faq__a { padding: 0 1.1rem 1rem; color: var(--ink); }
.ttc-faq__a p:last-child { margin-bottom: 0; }

/* ---------- Post CTA ---------- */
.ttc-post__cta { margin-top: 2.5rem; text-align: center; }

/* ---------- Sidebar product carousel ---------- */
.ttc-pcar { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.2rem; box-shadow: var(--sh-sm); }
.ttc-pcar__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.ttc-pcar__title { font-size: 1.05rem; margin: 0; }
.ttc-pcar__nav { display: flex; gap: .3rem; }
.ttc-pcar__btn {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--navy); cursor: pointer;
}
.ttc-pcar__btn:hover:not(:disabled) { background: var(--lightblue); color: var(--cta); }
.ttc-pcar__btn:disabled { opacity: .35; cursor: default; }
.ttc-pcar__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: .9rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.ttc-pcar__track::-webkit-scrollbar { display: none; }
.ttc-pcar__item { scroll-snap-align: start; }
.ttc-pcar__card { display: grid; gap: .6rem; text-decoration: none; color: inherit; }
.ttc-pcar__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r); }
.ttc-pcar__body { display: grid; gap: .25rem; }
.ttc-pcar__name { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 700; color: var(--navy); line-height: 1.3; }
.ttc-pcar__price { font-weight: 800; color: var(--navy); font-size: .95rem; }
.ttc-pcar__price del { color: var(--muted); font-weight: 500; }
.ttc-pcar__cta { color: var(--cta); font-weight: 700; font-size: .88rem; }
.ttc-pcar__all { width: 100%; margin-top: 1rem; font-size: .88rem; }

/* ---------- Sidebar CTA card ---------- */
.ttc-sidecta { background: var(--navy); color: #C5D5E0; border-radius: var(--r-xl); padding: 1.35rem; }
.ttc-sidecta__eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #7FC4E8; margin: 0 0 .35rem; }
.ttc-sidecta__title { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 1.15rem; font-weight: 800; color: #fff; margin: 0 0 .5rem; }
.ttc-sidecta__text { font-size: .88rem; margin-bottom: 1rem; }
.ttc-sidecta__btn { width: 100%; }
.ttc-sidecta__phone { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; color: #fff; font-weight: 700; text-decoration: none; }
.ttc-sidecta__phone:hover { color: var(--teal); }

/* ---------- Tables inside post content ---------- */
/* Wrapped by blog.js so a wide table scrolls instead of breaking the page. */
.ttc-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }
.ttc-post__body table {
  border-collapse: collapse; width: 100%; min-width: 30rem;
  font-size: .95rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.ttc-post__body th,
.ttc-post__body td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); }
.ttc-post__body th { background: var(--soft); font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 700; color: var(--navy); }
.ttc-post__body tr:last-child td { border-bottom: 0; }
