/* v2 production extras — additions on top of the canonical handoff CSS
   (brand.css / home.css / inner.css are adopted as-is; keep them untouched). */

/* Imagery inside migrated blog articles (mirrored Wix media) */
.article-body figure { margin-block: 2rem 0; }
.article-body img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Tables inside migrated blog articles */
.article-body .table-wrap { margin-top: 1.2rem; overflow-x: auto; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.55;
}
.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
  color: var(--ink-2);
}
.article-body tr:first-child th,
.article-body tr:first-child td {
  font-weight: 650;
  color: var(--ink);
  background: var(--surface);
}

/* Blog index: reuse the homepage evidence-card grid for post cards */
.blog-index .cases-grid { margin-top: 0; }
.blog-index .case-card .case-body { padding-bottom: 0.4rem; }

/* Case-card thumbnail (hub grids + related sections) — same border/radius treatment as
   migrated body imagery, reusing the canonical tokens. */
.case-card .case-thumb {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Case-card Problem/Solution rows: home.css makes .case-body a grid (gap 0.9rem)
   but leaves the inner <dl> as a plain block, and the global reset (* { margin: 0 })
   zeroes the default <dl> margin — so the two .case-row blocks stacked flush. Make
   the <dl> a grid so Problem→Solution carries the same rhythm as h3→Problem. */
.case-card dl { display: grid; gap: 0.9rem; }

/* Contact form (Slice B). Two-column info+form layout (D-10) with a single-column responsive
   collapse, input/textarea styling, the canonical .btn.btn--primary submit, and full
   idle/submitting/success/error status visuals — all from canonical tokens, append-only.
   brand.css / home.css / inner.css are NEVER edited (D-11). */

/* Two-column grid: contact info LEFT, form RIGHT. Collapses to one column at the inner.css
   880px breakpoint (matches existing .split / article breakpoints). */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* LEFT column — verbatim contact info. */
.contact-info { display: grid; gap: 0.4rem; }
.contact-info__lead { margin: 0; color: var(--ink-2); line-height: 1.6; }
.contact-info__lead:not(:first-child) { margin-top: 1.2rem; }
.contact-info__value { margin: 0; font-size: 1.2rem; font-weight: 650; color: var(--ink); }
.contact-info__value a { color: var(--accent-text); }
.contact-info__value a:hover { color: var(--ink); }

/* RIGHT column — form fields. */
.contact-grid .field { margin-bottom: 1rem; display: grid; gap: 0.35rem; }
.contact-grid .field label { font-size: 0.9rem; color: var(--ink-2); font-weight: 650; }
.contact-grid input,
.contact-grid textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-grid input:focus,
.contact-grid textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.contact-grid textarea { min-height: 9rem; resize: vertical; }
.contact-grid button[type="submit"] { margin-top: 0.4rem; }

/* Verbatim privacy text below submit (D-03 — static, no consent checkbox). */
.contact-privacy { margin-top: 1rem; font-size: 0.85rem; line-height: 1.6; color: var(--ink-2); }
.contact-privacy a { color: var(--accent-text); text-decoration: underline; }
.contact-privacy a:hover { color: var(--ink); }

/* Off-screen honeypot — visually hidden but still focusable/fillable by bots (do NOT
   use display:none / type=hidden, which bots skip). */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Submit status — idle is empty (no box); the three live states reuse the tokens. */
.form-status { margin-top: 1rem; font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.submitting {
  color: var(--ink-2);
}
.form-status.success {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.7rem 0.9rem;
}
.form-status.error {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.7rem 0.9rem;
}

/* Footer legal links (privacy / terms / cookie settings) — append-only, canonical tokens. */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.2rem;
  font-size: 0.85rem;
}
.footer-legal a { color: var(--ink-2); }
.footer-legal a:hover { color: var(--ink); }

/* Cookie-consent banner (self-hosted). Hidden by default; consent.js adds .is-visible when there's
   no stored choice. Fixed to the viewport bottom, above all content. */
.cookie-consent {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
}
.cookie-consent.is-visible { display: block; }
.cc-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.cc-text {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 64ch;
}
.cc-text a { color: var(--accent-text); }
.cc-text a:hover { color: var(--ink); }
.cc-actions {
  display: flex;
  gap: 0.7rem;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .cc-inner { flex-direction: column; align-items: flex-start; }
  .cc-actions { width: 100%; }
  .cc-actions .btn { flex: 1; text-align: center; }
}
