/* ==========================================================================
   Carbotech — wp.css
   WordPress-only additions. site.css stays byte-identical to the static
   prototype; anything the CMS needs that the prototype did not lives here.
   ========================================================================== */

[hidden] { display: none !important; }

/* Logged-in admin bar sits above the sticky header */
.admin-bar .hdr { top: 32px; }
@media (max-width: 782px) { .admin-bar .hdr { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hdr { top: 0; } }

/* Ink-band prose (static: inline color on each <p>) */
.band--ink .prose--muted p { color: #a9bfd2; }

/* ------------------------------------------------------------- rich text
   Editor-authored content (blog posts, Free text blocks, legal pages). */
.entry { font-size: 1.02rem; }
.entry > :first-child { margin-top: 0; }
.entry h2 {
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  letter-spacing: -.02em;
  margin: 1.8em 0 .6em;
}
.entry h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.entry h4 { font-size: 1.02rem; margin: 1.4em 0 .4em; }
.entry ul, .entry ol { margin: 0 0 1.2em; padding-left: 1.3em; max-width: 72ch; }
.entry li { margin-bottom: .4em; }
.entry li::marker { color: var(--red); }
.entry a { color: var(--blue-dk); text-decoration: underline; text-underline-offset: 2px; }
.entry a:hover { color: var(--red); }
.entry blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--red);
  font-family: var(--display);
  font-size: 1.2rem; font-weight: 600; line-height: 1.4;
  color: var(--ink);
}
.entry blockquote p { max-width: 60ch; }
.entry img { height: auto; }
.entry figure, .entry .wp-caption { margin: 1.8em 0; max-width: 100%; }
.entry figcaption, .entry .wp-caption-text {
  font-size: .8rem; color: var(--muted); margin-top: 8px;
}
.entry .alignleft  { float: left;  margin: .3em 1.6em 1em 0; }
.entry .alignright { float: right; margin: .3em 0 1em 1.6em; }
.entry .aligncenter { margin-inline: auto; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .94rem; }
.entry th, .entry td { border: 1px solid var(--rule); padding: 10px 14px; text-align: left; }
.entry th { background: var(--paper); font-family: var(--display); font-weight: 700; }
.entry hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.entry iframe { max-width: 100%; }

/* ------------------------------------------------------------------ blog */
.blog-cats {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 clamp(26px, 3vw, 40px);
}
.blog-cats a {
  font-family: var(--display); font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 9px 14px;
  border: 1px solid var(--rule); background: var(--white);
  color: var(--ink); text-decoration: none;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.blog-cats a:hover { border-color: var(--ink); }
.blog-cats a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.blog-grid .svc h3 { font-size: 1.2rem; }

.pager {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin-top: clamp(30px, 4vw, 52px);
}
.pager .page-numbers {
  min-width: 42px; padding: 10px 14px; text-align: center;
  border: 1px solid var(--rule); background: var(--white);
  font-family: var(--display); font-weight: 700; font-size: .85rem;
  color: var(--ink); text-decoration: none;
}
.pager a.page-numbers:hover { border-color: var(--ink); }
.pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .dots { border-color: transparent; background: none; }

.post-nav { margin-top: clamp(38px, 4.5vw, 62px); }
@media (min-width: 620px) { .post-nav { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------ Contact Form 7
   The form templates reproduce the static .field markup; these rules only
   neutralise the wrappers CF7 adds around it. */
.wpcf7 { margin: 0; }
.wpcf7 form.form-grid > p { margin: 0; }
.wpcf7 .hidden-fields-container { display: none; }
.field .wpcf7-form-control-wrap { display: block; }
.field .wpcf7-form-control-wrap input,
.field .wpcf7-form-control-wrap select,
.field .wpcf7-form-control-wrap textarea { width: 100%; display: block; }
.wpcf7-not-valid-tip { display: none !important; }    /* the static .err text is used instead */
.wpcf7-spinner { display: none; }
.wpcf7 form.submitting [type="submit"] { opacity: .55; pointer-events: none; }
.screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wpcf7 .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid var(--red);
  border-left-width: 3px;
  background: rgba(239, 69, 78, .06);
  font-size: .92rem;
}
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output,
.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output { display: none; }
.form-grid .form-ok { grid-column: 1 / -1; }
