/* ==========================================================================
   JMA Attachments - Buyer's Guide block (.jma-guide)  - v2
   File: storefront-child-theme-master/assets/css/buyer-guide.css
   Scope: every rule starts with .jma-guide so nothing leaks into the theme.
   Fonts: none loaded here - the theme self-hosts DM Sans (inc/jma/cwv-fixes.php).
   Spec: /buyer-guide/DESIGN-SPEC.md (section 8 = v2 visual layer:
         green chip eyebrow, tinted panels, green table header, icon tiles,
         centered FAQ, full-bleed CTA band).
   ========================================================================== */

.jma-guide {
  /* tokens (v1) */
  --jg-green: #20842D;
  --jg-green-dark: #186A23;
  --jg-green-tint: #EEF6EF;
  --jg-text: #000;
  --jg-muted: #4A4A4A;
  --jg-border: #E3E3E3;
  --jg-surface: #fff;
  --jg-surface-alt: #F7F8F7;
  --jg-radius: 8px;
  --jg-focus: 0 0 0 3px #fff, 0 0 0 5px var(--jg-green);
  --jg-s1: 4px; --jg-s2: 8px; --jg-s3: 12px; --jg-s4: 16px; --jg-s5: 24px;
  --jg-s6: 32px; --jg-s7: 40px; --jg-s8: 48px; --jg-s9: 64px; --jg-s10: 80px;
  --jg-fs-eyebrow: 13px;
  --jg-fs-body: 16px;
  --jg-fs-small: 14px;
  --jg-fs-h3: 24px;
  --jg-fs-h2: 36px;
  --jg-fs-title: 40px;
  --jg-ease: 220ms ease;
  /* tokens (v2 additions) */
  --jg-surface-tint: #F1F8F2;        /* filled panel bg: key facts card, "Why buy" panel               */
  --jg-tile: #EAF4EC;                /* 40px icon tile bg on job cards; white CTA button hover          */
  --jg-border-tint: #CFE3D2;         /* borders / dividers inside tinted panels                        */
  --jg-green-text: #186A23;          /* green TEXT on tinted surfaces + white-button label (>= 6:1)    */
  --jg-band-start: #1B6F26;          /* CTA band gradient start (white text 6.3:1)                     */
  --jg-band-end: #20842D;            /* CTA band gradient end   (white text 4.8:1)                     */
  --jg-shadow-hover: 0 8px 20px rgba(32, 132, 45, 0.12);
  --jg-focus-on-green: 0 0 0 3px var(--jg-band-end), 0 0 0 5px #fff;

  font-family: "DM Sans", "DM Sans Fallback Roboto", "DM Sans Fallback Arial", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--jg-text);
  font-size: var(--jg-fs-body);
  line-height: 1.6;
  padding: 0;
  margin-top: var(--jg-s9);
  scroll-margin-top: 96px;
}
/* CHANGE 019: the divider line sits on the first block (inside the container padding) so it ends exactly where
   the cards above end; on the container it ran 59px past the content on both sides. */
.jma-guide > .container { padding-top: 0; }
.jma-guide__head { border-top: 1px solid var(--jg-border); padding-top: var(--jg-s9); }
/* The CTA band is normally the last child and carries its own spacing; when no CTA is authored the
   container is last and keeps the v1 bottom padding before the footer. */
.jma-guide > .container:last-child { padding-bottom: var(--jg-s10); }
.jma-guide *, .jma-guide *::before, .jma-guide *::after { box-sizing: border-box; }
/* Element resets wrapped in :where() so they have (0,0,0) specificity and never beat a single-class
   BEM rule such as .jma-guide__eyebrow { margin-bottom } or .jma-guide__pills { padding: 0 }. */
:where(.jma-guide) :where(h2, h3, p) { margin: 0; text-transform: none; color: var(--jg-text); }
:where(.jma-guide) p + p { margin-top: var(--jg-s3); }
:where(.jma-guide) :where(ul, ol) { margin: var(--jg-s3) 0 0; padding-left: 1.25em; }
.jma-guide a { color: var(--jg-green); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.jma-guide a:hover { color: var(--jg-green-dark); text-decoration-thickness: 2px; }
/* Generic focus ring at (0,1,0) so the element-specific rings below (table region 8px, button 8px, CTA 6px) win. */
:where(.jma-guide a, .jma-guide button, .jma-guide [tabindex]):focus-visible { outline: none; box-shadow: var(--jg-focus); border-radius: 4px; }

/* -- heading scale (site: section h2 36/700, card h3 24/700) -- */
.jma-guide__title { font-size: var(--jg-fs-title); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.jma-guide__h2 { font-size: var(--jg-fs-h2); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.jma-guide__h3 { font-size: var(--jg-fs-h3); font-weight: 700; line-height: 1.25; }
/* v2: eyebrow is a solid green chip (white on #20842D = 4.77:1) with a 6px white dot */
.jma-guide__eyebrow {
  display: inline-flex; align-items: center; gap: var(--jg-s2);
  font-size: var(--jg-fs-eyebrow); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: var(--jg-green); padding: 6px 12px; border-radius: 999px; line-height: 1.2;
  margin-bottom: var(--jg-s4);
}
.jma-guide__eyebrow::before { content: ""; width: 6px; height: 6px; background: #fff; border-radius: 50%; opacity: .9; flex: 0 0 auto; }

/* -- 1. header row -- */
.jma-guide__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--jg-s6); align-items: start; }
.jma-guide__head--single { grid-template-columns: minmax(0, 1fr); }
.jma-guide__intro { font-size: 18px; line-height: 1.6; max-width: 66ch; margin-top: var(--jg-s5); }
/* v3 (Johan, 2026-09-14): key facts = full-width horizontal strip under the intro (no empty column),
   tinted surface + solid 6px green bar on the left edge, facts as 4 x 2 label-over-value tiles */
.jma-guide__facts {
  background: var(--jg-surface-tint); border: 1px solid var(--jg-border-tint); border-radius: var(--jg-radius);
  padding: var(--jg-s5) var(--jg-s6) var(--jg-s5) calc(var(--jg-s6) + 6px); position: relative; overflow: hidden;
}
.jma-guide__facts::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--jg-green); }
.jma-guide__facts-title {
  display: flex; align-items: center; gap: var(--jg-s2);
  font-size: var(--jg-fs-eyebrow); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--jg-green-text); margin: 0 0 var(--jg-s4);
}
.jma-guide__facts-title svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--jg-green); }
.jma-guide__facts dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--jg-s4) var(--jg-s6); }
.jma-guide__fact { min-width: 0; padding-left: var(--jg-s4); border-left: 2px solid var(--jg-border-tint); }
.jma-guide__facts dt, .jma-guide__facts dd { margin: 0; padding: 0; border: 0; }
.jma-guide__facts dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--jg-green-text); margin-bottom: var(--jg-s1); white-space: normal; }
.jma-guide__facts dd { color: var(--jg-text); font-size: 15px; line-height: 1.5; }

/* -- 2. text sections (two column: heading | prose) -- */
.jma-guide__sections { margin-top: var(--jg-s9); border-top: 1px solid var(--jg-border); }
.jma-guide__section {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); gap: var(--jg-s8);
  padding: var(--jg-s8) 0; border-bottom: 1px solid var(--jg-border);
}
.jma-guide__section .jma-guide__h2 { font-size: 30px; }
/* v2: short green rule above each section heading */
.jma-guide__section .jma-guide__h2::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--jg-green); margin-bottom: var(--jg-s3); }
.jma-guide__prose { max-width: 72ch; }
.jma-guide__prose p + p { margin-top: var(--jg-s4); }
.jma-guide__prose h3, .jma-guide__prose h4 { font-size: 22px; font-weight: 700; line-height: 1.25; margin: var(--jg-s5) 0 var(--jg-s2); }
.jma-guide__prose img { max-width: 100%; height: auto; }

/* -- table (tonnage -> pin size). `.jma-guide__prose table` is the alias for tables pasted into the wysiwyg --
   v2: white caption bar, green header row with white caps text, zebra rows; the wrapper clips to the radius. */
.jma-guide__table-wrap { margin-top: var(--jg-s5); border: 1px solid var(--jg-border); border-radius: var(--jg-radius); overflow: hidden; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.jma-guide__table-wrap + p { margin-top: var(--jg-s4); }
.jma-guide__table-wrap:focus-visible { box-shadow: var(--jg-focus); border-radius: var(--jg-radius); }
.jma-guide__table,
.jma-guide__prose table { width: 100%; border-collapse: collapse; font-size: var(--jg-fs-body); min-width: 520px; margin: 0; border: 0; }
.jma-guide__table caption,
.jma-guide__prose table caption { text-align: left; font-weight: 700; padding: var(--jg-s3) var(--jg-s4); background: var(--jg-surface); color: var(--jg-text); caption-side: top; }
.jma-guide__table th, .jma-guide__table td,
.jma-guide__prose table th, .jma-guide__prose table td { text-align: left; padding: var(--jg-s3) var(--jg-s4); border: 0; border-bottom: 1px solid var(--jg-border); vertical-align: top; }
/* Storefront paints backgrounds on td / tbody th; keep the rows white (zebra rule below adds the tint). */
.jma-guide__table td, .jma-guide__table tbody th,
.jma-guide__prose table td, .jma-guide__prose table tbody th { background: transparent; color: var(--jg-text); }
.jma-guide__table thead th,
.jma-guide__prose table thead th { font-size: var(--jg-fs-small); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; background: var(--jg-green); border-bottom: 0; }
.jma-guide__table tbody tr:nth-child(even) th, .jma-guide__table tbody tr:nth-child(even) td,
.jma-guide__prose table tbody tr:nth-child(even) th, .jma-guide__prose table tbody tr:nth-child(even) td { background: var(--jg-surface-alt); }
.jma-guide__table tbody tr:last-child td, .jma-guide__table tbody tr:last-child th,
.jma-guide__prose table tbody tr:last-child td, .jma-guide__prose table tbody tr:last-child th { border-bottom: 0; }
.jma-guide__table tbody th,
.jma-guide__prose table tbody th { font-weight: 700; white-space: nowrap; }
.jma-guide__table-note { font-size: var(--jg-fs-small); color: var(--jg-muted); margin-top: var(--jg-s2); }
.jma-guide__table-wrap + .jma-guide__table-note { margin-top: var(--jg-s2); }

/* -- 3. jobs grid (mirrors Shop the Essentials cards) -- v2: icon tile + hover lift -- */
.jma-guide__jobs { margin-top: var(--jg-s9); }
.jma-guide__jobs-head { margin-bottom: var(--jg-s5); }
.jma-guide__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--jg-s4); }
.jma-guide__card {
  display: flex; flex-direction: column; gap: var(--jg-s3);
  background: var(--jg-surface); border: 1px solid var(--jg-border); border-radius: var(--jg-radius);
  padding: var(--jg-s5); transition: border-color var(--jg-ease), box-shadow var(--jg-ease), transform var(--jg-ease);
}
.jma-guide__card:hover { border-color: var(--jg-green); box-shadow: var(--jg-shadow-hover); transform: translateY(-3px); }
.jma-guide__tile {
  width: 40px; height: 40px; border-radius: var(--jg-radius); background: var(--jg-tile); color: var(--jg-green);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-bottom: var(--jg-s1);
}
.jma-guide__tile svg { width: 26px; height: 26px; stroke-width: 2; display: block; }
.jma-guide__card .jma-guide__h3 { font-size: 22px; }
.jma-guide__card p { font-size: 15px; line-height: 1.55; flex: 1 1 auto; }
.jma-guide__card p a { color: var(--jg-green); }
/* `.jma-guide .jma-guide__more` so it beats the `.jma-guide a` underline; the last word and the arrow share a
   no-wrap span (PHP splits the label) so the arrow is never orphaned on its own line. */
.jma-guide .jma-guide__more {
  display: inline-block; align-self: flex-start; font-weight: 700; text-decoration: none; margin-top: var(--jg-s2);
  min-height: 24px; line-height: 24px;
}
.jma-guide .jma-guide__more:hover { text-decoration: underline; }
.jma-guide__more-end { white-space: nowrap; }
.jma-guide__more svg { width: 18px; height: 18px; vertical-align: -4px; margin-left: 6px; transition: transform var(--jg-ease); }
.jma-guide__more:hover svg { transform: translateX(3px); }

/* -- 4. why JMA panel (mirrors "We Stand by Our Products") -- v2: filled green-tinted panel, white pills on top -- */
.jma-guide__why {
  margin-top: var(--jg-s9);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr); gap: var(--jg-s8); align-items: start;
  background: var(--jg-surface-tint); border: 1px solid var(--jg-border-tint); border-radius: var(--jg-radius); padding: var(--jg-s7);
}
.jma-guide__why .jma-guide__h2 { margin-bottom: var(--jg-s4); }
.jma-guide__why-body { max-width: 68ch; }
.jma-guide__why a { color: var(--jg-green-text); }
.jma-guide__pills { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--jg-s2); }
.jma-guide__pill {
  display: flex; align-items: center; gap: var(--jg-s3);
  border: 1px solid var(--jg-border-tint); border-radius: var(--jg-radius); padding: var(--jg-s3) var(--jg-s4);
  font-weight: 700; font-size: var(--jg-fs-body); background: var(--jg-surface); min-height: 48px;
}
.jma-guide__pill svg { width: 24px; height: 24px; flex: 0 0 auto; color: var(--jg-green); }

/* -- 5. FAQ accordion -- v2: centered 880px column, subtitle, green left accent on the open item -- */
.jma-guide__faq { margin-top: var(--jg-s9); }
.jma-guide__faq-head { margin: 0 auto var(--jg-s6); max-width: 880px; text-align: center; }
.jma-guide__faq-head .jma-guide__h2::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--jg-green); margin: var(--jg-s4) auto 0; }
.jma-guide__faq-sub { margin: var(--jg-s4) auto 0; font-size: 17px; color: var(--jg-muted); max-width: 64ch; }
.jma-guide__faq-list { display: grid; gap: var(--jg-s2); max-width: 880px; margin: 0 auto; }
.jma-guide__faq-item { border: 1px solid var(--jg-border); border-radius: var(--jg-radius); background: var(--jg-surface); overflow: hidden; transition: border-color var(--jg-ease), box-shadow var(--jg-ease); }
.jma-guide__faq-item.is-open { border-color: var(--jg-green); box-shadow: inset 4px 0 0 var(--jg-green); }
.jma-guide__faq-item .jma-guide__h3 { font-size: 18px; margin: 0; }
.jma-guide__faq-btn {
  all: unset; box-sizing: border-box; display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: var(--jg-s4);
  padding: var(--jg-s4) var(--jg-s5); cursor: pointer; font: inherit; color: inherit; border-radius: var(--jg-radius); min-height: 56px;
  text-align: left; text-transform: none; transition: background-color var(--jg-ease);
}
.jma-guide__faq-btn:hover { background: var(--jg-surface-alt); }
/* The item clips to its radius (overflow:hidden), so the button ring is drawn inset (1px inside the item edge). */
.jma-guide__faq-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--jg-green), inset 0 0 0 5px #fff; border-radius: var(--jg-radius); }
.jma-guide__faq-icon { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--jg-green); color: var(--jg-green); position: relative; margin-top: 1px; transition: background-color var(--jg-ease), color var(--jg-ease); }
.jma-guide__faq-icon::before, .jma-guide__faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); transition: transform var(--jg-ease), opacity var(--jg-ease); }
.jma-guide__faq-icon::before { width: 12px; height: 2px; }
.jma-guide__faq-icon::after  { width: 2px; height: 12px; }
.jma-guide__faq-btn[aria-expanded="true"] .jma-guide__faq-icon { background: var(--jg-green); color: #fff; }
.jma-guide__faq-btn[aria-expanded="true"] .jma-guide__faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.jma-guide__faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--jg-ease); }
/* Collapsed answers are visibility:hidden (removed from the accessibility tree and the Tab order) while
   staying in the DOM for crawlers and find-in-page. The 220ms visibility delay lets the close animation
   finish; prefers-reduced-motion below zeroes it. */
.jma-guide__faq-panel > div { overflow: hidden; visibility: hidden; transition: visibility 0s linear 220ms; }
.jma-guide__faq-item.is-open .jma-guide__faq-panel { grid-template-rows: 1fr; }
.jma-guide__faq-item.is-open .jma-guide__faq-panel > div { visibility: visible; transition-delay: 0s; }
.jma-guide__faq-answer { padding: 0 var(--jg-s5) var(--jg-s5) var(--jg-s5); max-width: 76ch; }
/* Links inside an open answer: a 2px outline fits inside the line box, so the overflow:hidden wrapper never clips it. */
.jma-guide .jma-guide__faq-answer a:focus-visible { box-shadow: none; outline: 2px solid var(--jg-green); outline-offset: 0; border-radius: 2px; }

/* -- 6. CTA -- v2: full-bleed dark-green band. `.jma-guide__cta` sits OUTSIDE the block's .container (sibling
   after it, still inside <section class="jma-guide">) and carries its own `.container.jma-guide__cta-inner`. -- */
.jma-guide__cta {
  margin-top: var(--jg-s10);
  background: linear-gradient(100deg, var(--jg-band-start) 0%, var(--jg-band-end) 100%);
  color: #fff; padding: var(--jg-s9) 0;
}
.jma-guide__cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--jg-s6); }
.jma-guide__cta--button-only .jma-guide__cta-inner { justify-content: flex-start; }
.jma-guide__cta-text { max-width: 64ch; }
.jma-guide__cta .jma-guide__h2 { color: #fff; margin-bottom: var(--jg-s3); }
.jma-guide__cta p { color: #fff; }
.jma-guide__cta p a { color: #fff; text-decoration-color: rgba(255, 255, 255, .7); }
.jma-guide__cta p a:hover { color: #fff; text-decoration-color: #fff; }
.jma-guide__cta p a:focus-visible { box-shadow: var(--jg-focus-on-green); }
/* selector is `.jma-guide .jma-guide__btn` so it beats the `.jma-guide a` link colour */
.jma-guide .jma-guide__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--jg-s2);
  background: #fff; color: var(--jg-green-text); font-weight: 700; font-size: var(--jg-fs-body); text-decoration: none;
  padding: 14px 28px; border-radius: 6px; min-height: 52px; text-align: center; border: 0; flex: 0 0 auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
  transition: background-color var(--jg-ease), transform var(--jg-ease), box-shadow var(--jg-ease);
}
.jma-guide .jma-guide__btn:hover { background: var(--jg-tile); color: var(--jg-green-text); text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.jma-guide .jma-guide__btn:active { transform: translateY(1px); }
.jma-guide .jma-guide__btn:focus-visible { outline: none; box-shadow: var(--jg-focus-on-green); border-radius: 6px; }
.jma-guide .jma-guide__btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* -- legacy fallback (term description printed as-is during migration) - untouched by v2 -- */
.jma-guide--legacy > .container { padding-bottom: var(--jg-s10); }
.jma-guide--legacy .jma-seo-copy,
.jma-guide--legacy > .container > :not(.jma-seo-copy) { max-width: 900px; }
.jma-guide--legacy h2 { font-size: 26px; font-weight: 700; margin: var(--jg-s6) 0 var(--jg-s3); }
.jma-guide--legacy h3 { font-size: 19px; font-weight: 700; margin: var(--jg-s5) 0 var(--jg-s2); }
.jma-guide--legacy p { margin-top: var(--jg-s2); }
.jma-guide--legacy details { border: 1px solid var(--jg-border); border-radius: var(--jg-radius); padding: var(--jg-s3) var(--jg-s4); margin-top: var(--jg-s2); }
.jma-guide--legacy summary { font-weight: 700; cursor: pointer; }
.jma-guide--legacy summary:focus-visible { outline: none; box-shadow: var(--jg-focus); border-radius: 4px; }

/* -- responsive -- */
@media (max-width: 1279px) {
  .jma-guide__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jma-guide__title { font-size: 36px; }
}
@media (max-width: 1023px) {
  .jma-guide { margin-top: var(--jg-s8); }
  .jma-guide__head { padding-top: var(--jg-s8); }
  .jma-guide > .container:last-child { padding-bottom: var(--jg-s9); }
  .jma-guide__title { font-size: 34px; }
  .jma-guide__h2 { font-size: 30px; }
  .jma-guide__section .jma-guide__h2 { font-size: 26px; }
  .jma-guide__facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--jg-s4) var(--jg-s5); }
  .jma-guide__section { grid-template-columns: minmax(0, 1fr); gap: var(--jg-s4); padding: var(--jg-s7) 0; }
  .jma-guide__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jma-guide__why { grid-template-columns: minmax(0, 1fr); padding: var(--jg-s6); gap: var(--jg-s5); }
  .jma-guide__jobs, .jma-guide__why, .jma-guide__faq, .jma-guide__sections { margin-top: var(--jg-s8); }
  .jma-guide__cta { margin-top: var(--jg-s9); padding: var(--jg-s8) 0; }
}
@media (max-width: 767px) {
  .jma-guide__grid { grid-template-columns: minmax(0, 1fr); }
  .jma-guide__table, .jma-guide__prose table { min-width: 0; font-size: 15px; }
  .jma-guide__table th, .jma-guide__table td,
  .jma-guide__prose table th, .jma-guide__prose table td { padding: 10px 10px; }
  .jma-guide__table caption, .jma-guide__prose table caption { padding: 10px 10px; }
  .jma-guide__table tbody th, .jma-guide__prose table tbody th { white-space: normal; }
  .jma-guide__intro { font-size: 17px; }
  .jma-guide__facts { padding-right: var(--jg-s5); padding-left: calc(var(--jg-s5) + 6px); }
  .jma-guide__cta-inner { flex-direction: column; align-items: stretch; }
  /* button: block + inline arrow so a wrapped label keeps the arrow after the last word */
  .jma-guide .jma-guide__btn { display: block; width: 100%; padding: 14px 20px; line-height: 1.4; }
  .jma-guide .jma-guide__btn svg { vertical-align: -3px; margin-left: 6px; }
}
@media (max-width: 479px) {
  .jma-guide { margin-top: var(--jg-s7); }
  .jma-guide__head { padding-top: var(--jg-s7); }
  .jma-guide > .container:last-child { padding-bottom: var(--jg-s8); }
  .jma-guide__title { font-size: 30px; }
  .jma-guide__h2 { font-size: 26px; }
  .jma-guide__section .jma-guide__h2 { font-size: 24px; }
  .jma-guide__card .jma-guide__h3 { font-size: 20px; }
  .jma-guide__facts, .jma-guide__card, .jma-guide__why { padding: var(--jg-s4); }
  .jma-guide__facts { padding-left: calc(var(--jg-s4) + 6px); }
  .jma-guide__facts dl { grid-template-columns: minmax(0, 1fr); gap: var(--jg-s3); }
  .jma-guide__faq-btn { padding: var(--jg-s3) var(--jg-s4); }
  .jma-guide__faq-answer { padding: 0 var(--jg-s4) var(--jg-s4); }
  .jma-guide__faq-sub { font-size: 16px; }
  .jma-guide__jobs, .jma-guide__why, .jma-guide__faq, .jma-guide__sections { margin-top: var(--jg-s7); }
  .jma-guide__cta { margin-top: var(--jg-s8); padding: var(--jg-s7) 0; }
}
@media (prefers-reduced-motion: reduce) {
  .jma-guide *, .jma-guide *::before, .jma-guide *::after { transition: none !important; }
  .jma-guide__card:hover { transform: none; }
}

/* CHANGE 020 (Johan, 2026-09-14): the section headings above the card rows on machine-type pages match the
   FAQ heading - centered, same size, short green rule underneath. (Loaded only on machine-type archives.) */
.feature-products__heading h2,
.essentials__heading .h3,
.shop-by-brand__heading .h3,
.shop-by-machine-type__heading .h3 {
  text-align: center; font-size: 36px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em;
}
.feature-products__heading h2::after,
.essentials__heading .h3::after,
.shop-by-brand__heading .h3::after,
.shop-by-machine-type__heading .h3::after {
  content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: #20842D; margin: 16px auto 0;
}
@media (max-width: 1023px) {
  .feature-products__heading h2, .essentials__heading .h3, .shop-by-brand__heading .h3, .shop-by-machine-type__heading .h3 { font-size: 30px; }
}
@media (max-width: 479px) {
  .feature-products__heading h2, .essentials__heading .h3, .shop-by-brand__heading .h3, .shop-by-machine-type__heading .h3 { font-size: 26px; }
  .feature-products__heading h2::after, .essentials__heading .h3::after, .shop-by-brand__heading .h3::after, .shop-by-machine-type__heading .h3::after { margin-top: 12px; }
}

/* ── W4 (2026-09-21): brand page product rows ───────────────────────────── */
.brand-products { padding: var(--jg-s6, 3rem) 0 0; }
.brand-products__head { text-align: center; margin-bottom: var(--jg-s5, 2rem); }
.brand-products__sub { margin-top: .35rem; font-size: var(--jg-fs-small, .875rem); color: var(--jg-muted, #5b6b5e); opacity: .8; }
.brand-products__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.brand-products__item { display: flex; }
.brand-products__link {
  display: flex; flex-direction: column; width: 100%;
  border: 1px solid var(--jg-border, #e3e6e3); border-radius: var(--jg-radius, 12px);
  padding: 1rem; text-decoration: none; color: inherit; background: #fff;
  transition: box-shadow .18s ease, transform .18s ease;
}
.brand-products__link:hover { box-shadow: 0 6px 22px rgba(0,0,0,.09); transform: translateY(-2px); }
.brand-products__link:focus-visible { box-shadow: var(--jg-focus, 0 0 0 3px rgba(30,122,50,.45)); outline: none; }
.brand-products__media { display: block; aspect-ratio: 1 / 1; margin-bottom: .75rem; }
.brand-products__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-products__name { font-weight: 600; line-height: 1.35; font-size: .95rem; }
.brand-products__meta { margin-top: auto; padding-top: .6rem; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.brand-products__price { font-weight: 700; }
.brand-products__stock { font-size: .78rem; color: var(--jg-accent, #1e7a32); white-space: nowrap; }
@media (max-width: 767.98px) {
  .brand-products__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .85rem; }
  .brand-products__link { padding: .75rem; }
  .brand-products__name { font-size: .85rem; }
}

/* ── W4 (2026-09-21): collapsible brand model finder ────────────────────── */
.equipment-brand__browse { margin-top: 1.25rem; border-top: 1px solid var(--jg-border, #e3e6e3); }
.equipment-brand__browse-summary {
  cursor: pointer; list-style: none; padding: .9rem .25rem;
  font-weight: 600; display: flex; align-items: center; gap: .5rem;
}
.equipment-brand__browse-summary::-webkit-details-marker { display: none; }
.equipment-brand__browse-summary::after {
  content: ""; width: .55rem; height: .55rem; margin-left: .15rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .18s ease;
}
.equipment-brand__browse[open] > .equipment-brand__browse-summary::after { transform: rotate(-135deg) translateY(-2px); }
.equipment-brand__browse-summary:focus-visible { box-shadow: var(--jg-focus, 0 0 0 3px rgba(30,122,50,.45)); border-radius: 6px; outline: none; }

/* Series chip strip: scrolls sideways in its own container, never the page. */
.equipment-brand__wrapper { max-width: 100%; }
.equipment-brand__list {
  display: flex; flex-wrap: wrap; gap: .35rem;
  max-height: 5.2rem; overflow: hidden;
}
@media (max-width: 767.98px) {
  .equipment-brand__list {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    max-height: none; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; padding-bottom: .35rem;
  }
  .equipment-brand__list > .equipment-brand__item { flex: 0 0 auto; }
  .equipment-brand__browse-summary { padding: .8rem .25rem; }
}

/* ── W4 (2026-09-22): mobile + desktop standard ─────────────────────────── */

/* 3. Chip strip: right-edge fade on phone so it reads as scrollable.
      At tablet, chips wrap to at most 2 rows. */
@media (max-width: 767.98px) {
  .equipment-brand__wrapper { position: relative; }
  .equipment-brand__wrapper::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0;
    width: 2.25rem; pointer-events: none;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, #fff 85%);
  }
  .equipment-brand__list { padding-right: 2.25rem; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .equipment-brand__list {
    flex-wrap: wrap; overflow: hidden;
    max-height: calc((44px + .35rem) * 2); /* exactly 2 rows of 44px chips */
  }
}

/* 5. Tap targets: 44px minimum on phone. */
@media (max-width: 767.98px) {
  .equipment-brand__item label,
  .equipment-brand__browse-summary,
  .jma-guide__faq-q,
  .gform_wrapper .gfield input:not([type="checkbox"]):not([type="radio"]),
  .gform_wrapper .gfield select,
  .gform_wrapper .gform_button,
  .gform_wrapper .gform_drop_area .gform_button_select_files {
    min-height: 44px;
  }
  .equipment-brand__item label,
  .equipment-brand__browse-summary { display: flex; align-items: center; }
  .jma-guide__faq-q { padding-top: .8rem; padding-bottom: .8rem; }
  .gform_wrapper .gfield input[type="checkbox"],
  .gform_wrapper .gfield input[type="radio"] { min-width: 22px; min-height: 22px; }
  .gform_wrapper .gchoice { min-height: 44px; display: flex; align-items: center; gap: .5rem; }
}

/* 6. Warranty form on phone: one column, labels above, errors beside the field. */
@media (max-width: 767.98px) {
  .jma-guide--policy .gform_wrapper .gform_fields { grid-template-columns: 1fr !important; display: grid; gap: 1rem; }
  .jma-guide--policy .gform_wrapper .gfield { grid-column: 1 / -1 !important; width: 100% !important; }
  .jma-guide--policy .gform_wrapper .gfield_label { display: block; margin-bottom: .35rem; }
  .jma-guide--policy .gform_wrapper .ginput_container { width: 100%; }
  .jma-guide--policy .gform_wrapper .gfield_validation_message,
  .jma-guide--policy .gform_wrapper .validation_message {
    display: block; margin-top: .35rem; font-size: .875rem;
  }
  .jma-guide--policy .gform_wrapper .gform_drop_area { padding: 1rem; text-align: center; }
}

/* 2. Keep content clear of the sticky header and the LiveChat bubble. */
.jma-guide [id], .brand-products [id], .equipment-brand [id] { scroll-margin-top: 96px; }
@media (max-width: 767.98px) {
  .jma-guide__cta, .brand-products, .jma-guide__faq { padding-bottom: 5.5rem; }
}

/* W4 (2026-09-22): tap-target fixes found by the 390px audit.
   The theme sets an explicit height on the chip labels and Gravity Forms ships
   a 20px datepicker button, so both need a more specific rule than the block above. */
@media (max-width: 767.98px) {
  .equipment-brand__wrapper .equipment-brand__list .equipment-brand__item label {
    min-height: 44px; height: auto; display: inline-flex; align-items: center;
    padding-top: .55rem; padding-bottom: .55rem;
  }
  .jma-guide--policy .gform_wrapper .gform-datepicker-toggle,
  .jma-guide--policy .gform_wrapper .gform-theme-datepicker-toggle,
  .jma-guide--policy .gform_wrapper button.ui-datepicker-trigger,
  .jma-guide--policy .gform_wrapper img.ui-datepicker-trigger {
    min-width: 44px; min-height: 44px; width: 44px; height: 44px;
  }
}

/* ── Offers rows: always a full row, left aligned (2026-09-22) ──────────── */
.jma-offers__row .swiper-wrapper { justify-content: flex-start; }
/* A row that fits without arrows is a plain grid, so short rows cannot centre. */
.jma-offers__row--static .swiper-wrapper {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; transform: none !important;
}
.jma-offers__row--static .swiper-slide { width: auto !important; margin: 0 !important; }
@media (max-width: 1023.98px) {
  .jma-offers__row--static .swiper-wrapper { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .jma-offers__row--static .swiper-wrapper { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* "Shop all" tile - same footprint as a product card, JMA green */
.jma-offers__shop-all {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: .4rem; height: 100%; min-height: 260px; padding: 1.25rem; text-align: center;
  border-radius: var(--jg-radius, 12px); text-decoration: none;
  background: var(--jg-accent, #1e7a32); color: #fff;
  transition: filter .18s ease, transform .18s ease;
}
.jma-offers__shop-all:hover { filter: brightness(1.07); transform: translateY(-2px); color: #fff; }
.jma-offers__shop-all:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(30,122,50,.45); }
.jma-offers__shop-all-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.jma-offers__shop-all-name { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.jma-offers__shop-all-arrow svg { width: 26px; height: 26px; margin-top: .35rem; }

/* Static offer rows: equal tracks, override Swiper's inline slide widths. */
.jma-offers__row--static .swiper-wrapper > .swiper-slide,
.jma-offers__row--static .swiper-wrapper > .jma-offers__tile-slide {
  width: auto !important; max-width: none !important; margin-right: 0 !important; height: auto;
}

/* ── Guide page fixes, Cowork review 2026-09-22 ─────────────────────────── */

/* 2. The green CTA band should sit against the footer. The theme footer carries
      margin-top:100px, which left a white strip under the band on every guide
      page. Only collapse it where the band is the last thing on the page. */
.jma-guide__cta + * ,
body:has(.jma-guide__cta) footer.footer { margin-top: 0; }

/* 3. Job cards: FLEX, not grid. CSS grid leaves a partial last row ragged;
      flex-wrap with a grow factor lets the last row's cards expand to fill the
      width, so 6, 7 and 8 cards all end flush with no per-count special cases. */
.jma-guide__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.jma-guide__grid > * { flex: 1 1 300px; min-width: 0; }
@media (min-width: 1024px) {
  /* never wider than half the row, so a single trailing card cannot span it */
  .jma-guide__grid > * { flex: 1 1 260px; max-width: calc(50% - 8px); }
}
@media (max-width: 1023.98px) and (min-width: 768px) {
  .jma-guide__grid > * { flex: 1 1 calc(50% - 8px); max-width: none; }
}
@media (max-width: 767.98px) {
  .jma-guide__grid > * { flex: 1 1 100%; max-width: none; }
}

/* 1. Essentials tile with no resolvable image: no empty picture box. */
.essentials__category--no-image .essentials__category-image { display: none; }
.essentials__category--no-image .essentials__category-inner { justify-content: flex-start; }

/* UI/UX review Oct 14 2026: the policy-page FAQ questions are bare <h3> (templates-jma/page-policy.php) and
   took the theme's global 36px h3, bigger than the 30px section H2s. DESIGN.md sub-head size: 28 / 22 px.
   The machine-type guide FAQ (.jma-guide__h3, 18px) is not touched. */
.jma-guide__faq-item > h3:not(.jma-guide__h3) { margin: 0; font-size: 28px; line-height: 1.25; }
@media (max-width: 899.98px) {
  .jma-guide__faq-item > h3:not(.jma-guide__h3) { font-size: 22px; }
}
