/* ===================================================================
   SHARED FIXES (generic, from shared-fixes.css, verified on preconsultancybkk + 3 Bricks sites)
   Paste in ACSS > Global SCSS. The pinnpain site block follows at the end.
   =================================================================== */
/* shared: V4 removed --section-padding-x (renamed to --gutter, no alias). Etch page CSS uses it ~36x (container widths, decor, gradients) -> home "Why Work With PRE" collapse, about hero lost portrait */
:root {
  --section-padding-x: var(--gutter);
}

/* shared: V4 removed the named width tokens (--width-l/m/xl...); only --width-10..90/-full remain. Headings lost max-width 768/1024px */
:root {
  --width-xs: calc(var(--content-width) * 0.1);
  --width-s: calc(var(--content-width) * 0.2);
  --width-m: calc(var(--content-width) * 0.4);
  --width-l: calc(var(--content-width) * 0.6);
  --width-xl: calc(var(--content-width) * 0.8);
  --width-xxl: calc(var(--content-width) * 0.9);
  --width-content: var(--content-width);
  --width-vp-max: var(--content-width);
}

/* shared: V4 removed --black-trans-* / --white-trans-*; carried-over V3 settings border-color-dark/light + divider-color-dark/light = var(--black-trans-20)/var(--white-trans-20) now resolve empty. (Preferred: reset those 4 settings to V4 defaults instead.) */
:root {
  --black-trans-10: rgba(0,0,0,.1);
  --black-trans-20: rgba(0,0,0,.2);
  --black-trans-30: rgba(0,0,0,.3);
  --black-trans-40: rgba(0,0,0,.4);
  --black-trans-50: rgba(0,0,0,.5);
  --black-trans-60: rgba(0,0,0,.6);
  --black-trans-70: rgba(0,0,0,.7);
  --black-trans-80: rgba(0,0,0,.8);
  --black-trans-90: rgba(0,0,0,.9);
  --white-trans-10: rgba(255,255,255,.1);
  --white-trans-20: rgba(255,255,255,.2);
  --white-trans-30: rgba(255,255,255,.3);
  --white-trans-40: rgba(255,255,255,.4);
  --white-trans-50: rgba(255,255,255,.5);
  --white-trans-60: rgba(255,255,255,.6);
  --white-trans-70: rgba(255,255,255,.7);
  --white-trans-80: rgba(255,255,255,.8);
  --white-trans-90: rgba(255,255,255,.9);
}

/* shared: V4 no longer generates text alignment / text color utilities (gated by option-basic-text-classes / option-text-color, no dashboard toggle). Client logo captions lost centering + white */
.text--center {
  text-align: center;
}

.text--left {
  text-align: left;
}

.text--right {
  text-align: right;
}

.text--white, .text--white :where(h1, h2, h3, h4, h5, h6) {
  color: var(--white);
}

.text--black, .text--black :where(h1, h2, h3, h4, h5, h6) {
  color: var(--black);
}

/* shared: new V4 default :where(body > footer){padding-inline:var(--gutter)} (V3 had none) -- footer content narrowed, mobile +71px. (V4 also adds :where(body > header){padding-inline:var(--gutter)} -- add padding-inline:0 there too if a site's header has no class padding) */
:where(body > footer) {
  padding-inline: 0;
}

/* shared: V4 buttons get inline-size:var(--btn-width) with --btn-width:max-content (V3: no width rule). Full-width/stretched CTAs shrank to content width */
:root {
  --btn-width: auto;
}

/* shared: v4 removed the coloured v3 "-trans-NN" alpha variables (primary/neutral/shade); overlays, card borders and link colours using them vanished. Same rgba as v3 via color-mix. --shade-trans-* only resolve if --shade is defined (pinnpain does not use them) */
:root:root {
  --primary-trans-10: color-mix(in srgb, var(--primary) 10%, transparent);
  --primary-trans-20: color-mix(in srgb, var(--primary) 20%, transparent);
  --primary-trans-50: color-mix(in srgb, var(--primary) 50%, transparent);
  --primary-trans-60: color-mix(in srgb, var(--primary) 60%, transparent);
  --primary-trans-80: color-mix(in srgb, var(--primary) 80%, transparent);
  --primary-trans-90: color-mix(in srgb, var(--primary) 90%, transparent);
  --neutral-trans-30: color-mix(in srgb, var(--neutral) 30%, transparent);
  --neutral-trans-40: color-mix(in srgb, var(--neutral) 40%, transparent);
  --neutral-trans-90: color-mix(in srgb, var(--neutral) 90%, transparent);
  --shade-trans-10: color-mix(in srgb, var(--shade) 10%, transparent);
  --shade-trans-20: color-mix(in srgb, var(--shade) 20%, transparent);
  --shade-trans-40: color-mix(in srgb, var(--shade) 40%, transparent);
  --shade-trans-70: color-mix(in srgb, var(--shade) 70%, transparent);
  --shade-trans-80: color-mix(in srgb, var(--shade) 80%, transparent);
  --shade-trans-90: color-mix(in srgb, var(--shade) 90%, transparent);
}

/* ===================================================================
   pinnpain.caredigital.work (Etch 1.6.4) -- ACSS 3.3.6 -> 4.0.1, built 2026-11-03
   Paste AFTER shared-fixes in ACSS > Global SCSS (prints after automatic.css core).
   Built from the real V4 "after" capture vs the v3 baseline (headless replay).
   Assumes the 4a dashboard settings are saved (gutter 24/30 etc.).
   =================================================================== */
/* site: pinnpain -- v4 removed the coloured -trans- vars; Etch CSS uses these ones,
   which shared-fixes does not define (borders, splide arrows, cert hover shadow) */
:root:root {
  --primary-trans-30: color-mix(in srgb, var(--primary) 30%, transparent);
  --primary-trans-40: color-mix(in srgb, var(--primary) 40%, transparent);
  --secondary-trans-10: color-mix(in srgb, var(--secondary) 10%, transparent);
  --secondary-trans-20: color-mix(in srgb, var(--secondary) 20%, transparent);
  --secondary-trans-40: color-mix(in srgb, var(--secondary) 40%, transparent);
}

/* site: pinnpain -- v4 removed .clickable-parent (used on conditions/services/latest-posts
   cards, 36 elements). Restores the v3 rules, classes doubled for specificity */
.clickable-parent.clickable-parent:not(a),
.clickable-parent.clickable-parent:not(a) a {
  position: static;
}

.clickable-parent.clickable-parent:not(a) > a::after,
a.clickable-parent.clickable-parent::after {
  content: "";
  position: absolute;
  inset: 0;
  cursor: pointer !important;
  display: flex;
}

a.clickable-parent.clickable-parent {
  position: static;
}

/* site: pinnpain -- v4 core now prints after Etch styles, so its heading rule
   (text-wrap: var(--heading-text-wrap) = pretty) beats Etch's :is(h1,h2,h3,h4){text-wrap:balance}.
   html prefix = 0,0,2: beats the core, Etch class rules still win */
html :is(h1, h2, h3, h4) {
  text-wrap: balance;
}

/* site: pinnpain -- v3 had p, li { line-height: calc(6px + 2ex) }; v4 keeps only :where(p).
   List links (contact list, footer menu) changed 26px -> 30.5px / 23px.
   Kept at v3 specificity (0,0,1) on purpose so Etch class rules still win */
li {
  line-height: var(--text-line-height, calc(6px + 2ex));
}

/* site: pinnpain -- v3 had section > div { align-items: flex-start }; v4 dropped it, so
   Etch containers without their own align-items stretched. Same v3 specificity */
section > div:where(:not(.bricks-shape-divider)) {
  align-items: flex-start;
}

/* site: pinnpain -- new v4 :where(body > footer) padding-block adds 120px (desktop) /
   75px (mobile) under .site-footer, which only sets padding-block-start */
body > footer:where(.site-footer) {
  padding-block-end: 0;
}

/* site: pinnpain -- v4 rule button:not(nav button,[class*="btn--"]) (0,1,1) beats Etch's
   .certs__trigger { font: inherit; text-align: start } and the splide arrows' inherited font
   (weight 400 -> 500, line-height 30.5px -> 18px, cert captions centred); splide arrows + dots too. Classes doubled */
.certs__trigger.certs__trigger,
.splide__arrow.splide__arrow,
.splide__pagination__page.splide__pagination__page {
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  font-family: inherit;
}

.certs__trigger.certs__trigger {
  text-align: start;
}

/* site: pinnpain -- v4 adds a styled blockquote component (box, left border, padding, flex gap,
   smaller p text) that v3 did not have; /about-us/ founder quote grew +54px. Restores plain v3
   blockquotes site-wide (0,0,1 / 0,0,2 so Etch class rules still win; -card quotes are untouched by v4) */
blockquote {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

blockquote > p {
  color: inherit;
  font-family: inherit;
  font-style: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: inherit;
  text-transform: inherit;
  line-height: var(--text-line-height, calc(6px + 2ex)); /* v3 p rule value */
}

/* site: pinnpain -- v3 settings had inverted fluid clamps (text-s min 14 > max 13.5; h5, h6 and
   space-xs from the scale), so v3 always rendered the MIN value. v4 orders min/max, so at desktop
   text-s 14 -> 13.5px (eyebrows, btn--s, footer links), h5 18.33 -> 18px (card titles), h6 15.28 -> 13.5px,
   space-xs 13.51 -> 13.33px. Pins the v3 rendered values at every viewport */
:root:root {
  --text-s: 1.4rem;
  --h5: 1.8333333333rem;
  --h6: 1.5277777778rem;
  --space-xs: 1.3506752532rem;
}

/* site: pinnpain -- v3 custom colour "shade" (#000000) is not in the v4 palette; defined so the
   shared --shade-trans-* resolve. (v3 had the action and tertiary colours switched off, so
   --action was undefined in v3 too: nothing to restore) */
:root:root {
  --shade: #000000;
}

/* site: pinnpain -- v3 .btn--white set --focus-color: var(--action), and --action was undefined
   (action colour off), so the focus ring fell back to currentColor (green on solid, white on outline).
   v4 has no .btn--white, so the ring became the gold --focus-color. Restores the v3 ring */
.btn--white.btn--white {
  --focus-color: currentColor;
}

/* ===================================================================
   SITE: pinnpain -- v3 PARITY ADDENDUM (QA #277 L1-L3, approved 2026-11-03)
   =================================================================== */
/* L1: mobile menu close button. v4 `button:not(nav button,[class*="btn--"])` sets
   line-height: var(--btn-line-height) (1) and font-weight 500, so the button shrank 55.2 -> 43.6px.
   Restores the v3 1.7 line-height (label inherits it) and weight 400 */
#mobile-menu-close {
  line-height: 1.7;
  font-weight: 400;
}

/* L3: blockquote cite. v4 sets font-style: var(--blockquote-cite-font-style) (inherit -> normal);
   v3 kept the browser default italic */
blockquote cite {
  font-style: italic;
}

/* L2: skip link. v4 styles .skip-link as a primary button (padding 0.8em/1.5em, weight 500,
   line-height 1, inline-flex, centred, --focus-color: var(--primary-dark), hover bg/colour).
   v3 had no ACSS skip-link rule: plain block text link (141x31 at 1440), weight 400, gold
   --secondary focus ring. Etch's .header-wrapper .skip-link still handles position, white bg and colour */
.skip-link.skip-link {
  display: block;
  padding: 0;
  min-inline-size: 0;
  font-weight: 400;
  line-height: 1.7;
  text-align: start;
  justify-content: normal;
  align-items: normal;
  --focus-color: var(--secondary);
}

.skip-link.skip-link:hover {
  background: var(--white);
  color: var(--primary);
}