/*
 Theme Name:   J.P. Hemp Company Child
 Theme URI:    https://jphemp.com
 Description:  Child theme for J.P. Hemp Company — Divi parent.
               Loads all Design System v3.12 CSS variables, typography,
               and global overrides. All visual decisions governed by
               JP_Hemp_DesignSystem_v3_12.html. Do not alter CSS variable
               names or font stack without a Design System governance review.
               Fonts served locally — see Part 1 @font-face declarations.
 Author:       J.P. Hemp Company
 Template:     Divi
 Version:      1.3.0
 Last Updated: October 2026
 Cross-ref:    Design System v3.12 · Charter v3.21 · Architecture v1.6

 CHANGE LOG v1.3.0:
   Consolidated remaining J.P. Hemp global CSS from Divi Theme Options
   into the child theme so the child theme is the single CSS authority.
   Added --parchment-warm and --rule-light design tokens.
   Changed default Divi row max-width from 740px to 820px.
   Preserved botanical divider/motif, figure, header-responsive, loading,
   focus, and legacy homepage support rules previously stored in Divi.
   Removed dependence on duplicated Theme Options / Customizer CSS.

 CHANGE LOG v1.2.0:
   Removed !important from all properties that Divi's visual builder
   legitimately needs to override per-module (button colours, section
   backgrounds, row/column backgrounds, padding).
   Retained !important ONLY on properties that must never be overridden:
     — border-radius: 0 on buttons (square corners are a brand requirement)
     — box-shadow: none (no shadows anywhere in the design system)
     — All animation/transform overrides (no scroll effects — design system)
     — Accessibility: prefers-reduced-motion block
     — Header: height and padding overrides that prevent shrink on scroll
   Result: developer can now change button colours, section backgrounds,
   padding, and most visual properties directly in the Divi builder
   without editing this file.
*/


/* ─────────────────────────────────────────────────────────────────
   PART 1 — LOCAL FONT DECLARATIONS
   Fonts are served from /wp-content/themes/jp-hemp-child/fonts/
   Download files from: https://gwfh.makkuske.fi
   Required files — place all in the /fonts/ folder:
     Playfair Display:  playfair-display-v37-latin-regular.woff2
                        playfair-display-v37-latin-500.woff2
     Crimson Pro:       crimson-pro-v23-latin-300.woff2
                        crimson-pro-v23-latin-regular.woff2
     Courier Prime:     courier-prime-v9-latin-regular.woff2
   font-display: swap — text shows in fallback font immediately
   while custom font loads, preventing invisible text flash.
   ───────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-display-v37-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-display-v37-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Crimson Pro';
  src: url('fonts/crimson-pro-v23-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Crimson Pro';
  src: url('fonts/crimson-pro-v23-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Courier Prime';
  src: url('fonts/courier-prime-v9-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ─────────────────────────────────────────────────────────────────
   PART 2 — CSS CUSTOM PROPERTIES (Design System v3.12 Color Palette)
   ───────────────────────────────────────────────────────────────── */

:root {
  /* Parchment family — backgrounds */
  --parchment:      #f5f0e8;   /* Primary background — all pages */
  --parchment-dark: #ede6d6;   /* Panels, field notes, callout boxes */
  --parchment-mid:  #e8e0ce;   /* Secondary panels, study panel bodies */
  --parchment-warm: #f0e8d8;   /* Warm archival panel / emphasis background */

  /* Ink family — text */
  --ink:            #2a2318;   /* Primary text — headlines, strong labels */
  --ink-light:      #4a3f30;   /* Body text — all running prose */

  /* Plant tones — navigation, accents */
  --olive:          #5c6340;   /* Navigation links, section labels, tags */
  --olive-light:    #7a8555;   /* Subtitles, hover state for olive elements */
  --charcoal:       #3a3530;   /* H1 headlines, panel cell titles */

  /* Document tones — borders, meta */
  --rule:           #b8a882;   /* All borders, dividers, meta text */
  --rule-light:     #d4c9a8;   /* Light dividers and subtle borders */
  --rule-text:      #6b5c40;   /* Meta text, labels, captions — AA-compliant on parchment */
  --accent:         #8b6914;   /* Field note labels, warning markers */

  /* CBG identity — restricted use only */
  --cbg-green:      #3a5220;   /* CBG compound cards, tier badges, CBG hub */
  --cbg-light:      #e8edd8;   /* CBG panel backgrounds */
}


/* ─────────────────────────────────────────────────────────────────
   PART 3 — TYPOGRAPHY (Design System v3.12 Font Stack)
   ───────────────────────────────────────────────────────────────── */

/* Global body — Crimson Pro 19px / 1.78 */
body {
  font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.78;
  font-weight: 300;
  color: var(--ink-light);
  background-color: var(--parchment);
}

/* Headlines — Playfair Display */
h1, h2, h3, h4, h5, h6,
.et_pb_module h1,
.et_pb_module h2,
.et_pb_module h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
}

/* Monospace labels — Courier Prime */
.et_pb_text .label,
.breadcrumb,
.article-meta,
.page-label,
.hub-section-label,
code,
pre {
  font-family: 'Courier Prime', 'Courier New', monospace;
}

/* Body text in Divi text modules */
.et_pb_text,
.et_pb_text p {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 19px;
  line-height: 1.78;
  font-weight: 300;
  color: var(--ink-light);
}

/* Type scale */
h1, .et_pb_slide_title { font-size: clamp(26px, 3.8vw, 48px); }
h2                      { font-size: clamp(20px, 2.6vw, 28px); }
h3                      { font-size: clamp(18px, 2.2vw, 22px); }


/* ─────────────────────────────────────────────────────────────────
   PART 4 — GLOBAL BACKGROUND & NOISE TEXTURE
   ───────────────────────────────────────────────────────────────── */

html,
body,
#page-container,
.et_pb_section,
.et-l--body {
  background-color: var(--parchment);
}

/* Noise texture overlay — sits above background, below content */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Ensure all page content sits above the texture */
#main-content,
#page-container .et_pb_row,
.et_pb_section > .et_pb_row {
  position: relative;
  z-index: 1;
}


/* ─────────────────────────────────────────────────────────────────
   PART 5 — BUTTONS (Design System v3.12 Part Eleven)

   WHAT CAN NOW BE CHANGED IN THE DIVI BUILDER:
     Button background colour, text colour, border colour,
     padding, font size — all adjustable per-module in builder.

   WHAT CANNOT BE CHANGED (enforced here with !important):
     border-radius — must remain 0 (square corners are a brand
       requirement and must never become rounded)
     box-shadow — must remain none (no shadows in design system)
     text-shadow — must remain none
     focus outline — accessibility requirement

   DEFAULT VALUES below are the brand defaults. Override
   per-module in the Divi builder as needed.
   ───────────────────────────────────────────────────────────────── */

.et_pb_button,
.et_pb_button_0,
a.et_pb_button,
input[type="submit"] {
  font-family: 'Courier Prime', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background-color: var(--charcoal);
  color: var(--parchment);
  border: 1px solid var(--charcoal);
  border-radius: 0 !important;    /* ENFORCE: square corners — brand requirement */
  padding: 12px 28px;
  transition: background-color 200ms ease;
  box-shadow: none !important;    /* ENFORCE: no shadows anywhere */
  text-shadow: none !important;   /* ENFORCE: no text shadows */
}

.et_pb_button:hover,
a.et_pb_button:hover,
input[type="submit"]:hover {
  background-color: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
  box-shadow: none !important;    /* ENFORCE: no shadows on hover either */
}

.et_pb_button:active,
a.et_pb_button:active {
  background-color: var(--olive);
  transition: background-color 80ms ease;
}

.et_pb_button:focus-visible,
a.et_pb_button:focus-visible {
  outline: 2px solid var(--olive) !important;   /* ENFORCE: accessibility */
  outline-offset: 3px !important;
}

/* Remove Divi's default button arrow icon */
.et_pb_button::after {
  display: none !important;
}


/* ─────────────────────────────────────────────────────────────────
   PART 6 — LINKS
   ───────────────────────────────────────────────────────────────── */

a {
  color: var(--olive);
  text-decoration: underline;
  transition: color 150ms ease;
}

a:hover {
  color: var(--olive-light);
  text-decoration: underline;
}

/* Navigation links — no underline in resting state */
#top-header a,
#main-header a,
.et_pb_menu a,
#et-secondary-nav a,
#et-top-navigation a {
  text-decoration: none;
  transition: color 150ms ease;
}

#top-header a:hover,
#main-header a:hover,
.et_pb_menu a:hover,
#et-secondary-nav a:hover,
#et-top-navigation a:hover {
  color: var(--ink);
  text-decoration: none;
}


/* ─────────────────────────────────────────────────────────────────
   PART 7 — DIVI STRUCTURAL OVERRIDES

   WHAT CAN NOW BE CHANGED IN THE DIVI BUILDER:
     Section background colours — set per-section in builder.
     Row and column backgrounds — set per-row/column in builder.
     Row max-width — adjust per-row in builder (default 820px).
     Module padding — adjust per-module in builder.

   WHAT CANNOT BE CHANGED (enforced here with !important):
     box-shadow on modules — no shadows anywhere
     transform on module hover — no lift effects
     Animation overrides — no scroll animations (design system)
     Header height — must not shrink on scroll

   To set a section background in the Divi builder:
     Section Settings → Background → Color → set to desired value
     (Do not use this stylesheet — it no longer forces parchment
     on sections, so the builder setting will take effect.)

   Default/fallback backgrounds come from body and html rules
   in Part 4, which remain without !important.
   ───────────────────────────────────────────────────────────────── */

/* Remove Divi's default box shadows on modules */
.et_pb_module {
  box-shadow: none !important;    /* ENFORCE: no shadows in design system */
}

/* No hover lift effects on any module */
.et_pb_module:hover {
  transform: none !important;     /* ENFORCE: no movement on hover */
  box-shadow: none !important;
}

/* Default outer reading row — 820px allows ~740px usable text with 40px side padding.
   Can be overridden per-row in the Divi builder for 900px archive/illustration
   frames and 1000–1100px hero layouts. */
.et_pb_row {
  max-width: 820px;
}

/* Header — must not shrink on scroll */
#main-header.et-fixed-header {
  height: auto !important;        /* ENFORCE: no shrink */
}

.et-fixed-header #logo {
  max-height: none !important;    /* ENFORCE: logo stays full size */
}


/* ─────────────────────────────────────────────────────────────────
   PART 8 — SCROLL & MOTION OVERRIDES

   These !important rules are correct and must stay.
   They enforce the design system's no-animation requirement
   and cannot be achieved any other way in Divi.
   ───────────────────────────────────────────────────────────────── */

/* Disable ALL Divi scroll animations globally */
.et_pb_module.et_animated,
[data-et-multi-view] {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* No entrance animations */
.et-waypoint,
.et-waypoint.et_pb_animation_top,
.et-waypoint.et_pb_animation_bottom,
.et-waypoint.et_pb_animation_left,
.et-waypoint.et_pb_animation_right,
.et-waypoint.et_pb_animation_fade {
  opacity: 1 !important;
  transform: none !important;
}

/* No image hover overlays */
.et_pb_image .et_pb_image_wrap:hover::after,
.et_overlay {
  display: none !important;
}

/* Smooth scroll for anchor links only */
html {
  scroll-behavior: smooth;
}


/* ─────────────────────────────────────────────────────────────────
   PART 9 — ACCESSIBILITY: REDUCED MOTION
   These !important rules are correct and must stay.
   Accessibility requirement — do not remove.
   ───────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ─────────────────────────────────────────────────────────────────
   PART 10 — MOBILE RESPONSIVE OVERRIDES
   ───────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
  body {
    font-size: 17px;
    line-height: 1.72;
  }

  .et_pb_text,
  .et_pb_text p {
    font-size: 17px;
    line-height: 1.72;
  }

  .et_pb_row {
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 479px) {
  body {
    font-size: 16px;
  }
}


/* ─────────────────────────────────────────────────────────────────
   PART 11 — RESEARCH ARCHIVE ARTICLE CLASSES
   These classes are used in the HTML article files and must be
   available as global styles for any Divi Custom HTML modules.
   ───────────────────────────────────────────────────────────────── */

.page-label {
  font-family: 'Courier Prime', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 20px;
  display: block;
}

.subtitle {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 300;
  font-style: italic;
  color: var(--olive-light);
  margin-bottom: 20px;
  line-height: 1.5;
}

.article-meta {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rule);
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.breadcrumb {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 48px;
}

.breadcrumb a {
  color: var(--olive);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}

.breadcrumb a:hover {
  border-bottom-color: var(--olive-light);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--rule);
}

/*
  END OF CHILD THEME STYLESHEET v1.2.0
  Design System v3.12 — J.P. Hemp Company — August 2026

  DEVELOPER NOTES:
  Section backgrounds:  Set in Divi builder per-section
  Row max-width:        Set in Divi builder per-row (default 740px)
  Button colours:       Set in Divi builder per-module
  Button corners:       ALWAYS 0px — enforced, do not override
  Animations:           ALL disabled — enforced, do not enable
*/
.article-body strong, .article-body b, .honest-box strong, .honest-box b, .study-block strong, .study-block b, .experience-note strong, .experience-note b, .field-note strong, .field-note b { font-weight: 700 !important; font-size: 1em !important; }

/* UPDATED FONT DECLARATIONS — September 2026 */
/* Playfair Display — variable font (all weights 400-900) */
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-VariableFont_wght.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-Italic-VariableFont_wght.woff2') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
/* Crimson Pro — variable font (all weights 200-900) */
@font-face {
  font-family: 'Crimson Pro';
  src: url('fonts/CrimsonPro-VariableFont_wght.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Crimson Pro';
  src: url('fonts/CrimsonPro-Italic-VariableFont_wght.woff2') format('woff2');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
/* Courier Prime — bold weights */
@font-face {
  font-family: 'Courier Prime';
  src: url('fonts/CourierPrime-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Courier Prime';
  src: url('fonts/CourierPrime-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ─────────────────────────────────────────────────────────────────
   PART 12 — DIVI SUPPORT & ARCHIVAL COMPONENTS

   Migrated from Divi Theme Options in October 2026 so the child
   theme is the single CSS authority. These are reusable site-level
   behaviors/components, not page-specific presentation.
   ───────────────────────────────────────────────────────────────── */

/* Light text utility retained for the global footer and dark panels. */
.light-font {
  color: var(--parchment-dark) !important;
}

/* Keep Divi's generated section divider shapes disabled. */
.et_pb_top_inside_divider,
.et_pb_bottom_inside_divider {
  display: none !important;
}

/* No shadows anywhere, including rows and sections. */
.et_pb_section,
.et_pb_row {
  box-shadow: none !important;
}

/* Additional no-motion safeguards for Divi scroll/image effects. */
[data-et-pb-scroll-speed],
[data-et-pb-scroll-offset] {
  transform: none !important;
  transition: none !important;
}

.et_pb_image img:hover,
.et_pb_blurb_image img:hover {
  transform: none !important;
  transition: none !important;
}

/* Prevent sticky header geometry/background changes on scroll. */
#main-header.et-fixed-header,
.et-fixed-header #main-header {
  height: auto !important;
  padding-top: inherit !important;
  padding-bottom: inherit !important;
}

.et-fixed-header #logo,
.et-fixed-header .et_pb_image_wrap img {
  max-height: none !important;
  height: auto !important;
  transition: none !important;
}

.et-fixed-header {
  background-color: var(--parchment) !important;
  transition: none !important;
}

/* Divi loading state — content should display without animated spinner. */
#et-main-area #main-content .container {
  opacity: 1 !important;
}

#et_loadingdiv {
  display: none !important;
}

/* Mobile menu: restrained reveal and parchment background. */
#et_mobile_nav_menu .et_mobile_menu {
  transition: max-height 200ms ease, opacity 200ms ease !important;
  animation: none !important;
}

#et_mobile_nav_menu,
.et_mobile_menu {
  background-color: var(--parchment) !important;
}

/* Accessible focus treatment for interactive controls. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--olive) !important;
  outline-offset: 3px !important;
}

.et_pb_button:focus {
  outline: 2px solid var(--olive) !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}


/* STRUCTURAL DIVIDER SYSTEM — locked assets */
.jp-divider {
  display: flex;
  justify-content: center;
  margin: 48px 0;
  color: var(--rule);
}

.jp-divider img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
}

.jp-divider .divider-micro { display: none !important; }

@media (max-width: 520px) {
  .jp-divider .divider-full  { display: none !important; }
  .jp-divider .divider-micro { display: block !important; max-width: 480px; }
}

/* Botanical background motif */
.with-motif { position: relative; overflow: hidden; }
.with-motif::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  width: 300px;
  height: 375px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 200' fill='none'%3E%3Cg stroke='%235c6340' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M80 195 C80 195 80 10 80 10' stroke-width='1.8'/%3E%3Ccircle cx='80' cy='10' r='3.5' stroke-width='1.5'/%3E%3Cpath d='M80 22 C80 22 72 16 68 10 C72 14 80 16 80 16' stroke-width='1.2'/%3E%3Cpath d='M80 22 C80 22 88 16 92 10 C88 14 80 16 80 16' stroke-width='1.2'/%3E%3Cpath d='M80 50 C80 50 58 38 46 22 C60 32 80 38 80 38' stroke-width='1.4'/%3E%3Cpath d='M80 50 C80 50 102 38 114 22 C100 32 80 38 80 38' stroke-width='1.4'/%3E%3Cpath d='M80 80 C80 80 52 65 36 44 C54 58 80 65 80 65' stroke-width='1.5'/%3E%3Cpath d='M80 80 C80 80 108 65 124 44 C106 58 80 65 80 65' stroke-width='1.5'/%3E%3Cpath d='M80 112 C80 112 46 93 26 66 C48 84 80 93 80 93' stroke-width='1.6'/%3E%3Cpath d='M80 112 C80 112 114 93 134 66 C112 84 80 93 80 93' stroke-width='1.6'/%3E%3Cpath d='M80 145 C80 145 40 122 16 90 C42 110 80 122 80 122' stroke-width='1.7'/%3E%3Cpath d='M80 145 C80 145 120 122 144 90 C118 110 80 122 80 122' stroke-width='1.7'/%3E%3Cpath d='M80 170 C80 170 52 155 34 136 C56 150 80 158 80 158' stroke-width='1.5'/%3E%3Cpath d='M80 170 C80 170 108 155 126 136 C104 150 80 158 80 158' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  opacity: 0.05;
}
.with-motif-left::after { right: auto; left: 4%; }
.with-motif-dark::after { opacity: 0.06; filter: invert(1) brightness(1.5); }

/* Drop caps */
.drop-cap::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 4.2em;
  font-weight: 400;
  color: var(--olive);
  float: left;
  line-height: 0.76;
  margin-right: 0.07em;
  margin-top: 0.08em;
  margin-bottom: -0.05em;
  padding-right: 0.02em;
}
.drop-cap::after { content: ''; display: table; clear: both; }

/* Article figures */
figure {
  margin: 32px 0;
}
figure img {
  max-width: 100%;
  height: auto;
  display: block;
}
figcaption {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--rule);
  margin-top: 8px;
  line-height: 1.5;
}

figure.jp-plate {
  border: 1px solid var(--rule);
  padding: 4px;
  background: var(--parchment);
}
figure.jp-plate figcaption {
  padding: 0 4px;
}

/* Legacy homepage responsive helpers + native Divi header helpers.
   Retained while legacy pages are migrated; safe for native pages. */
@media (max-width: 980px) {
  .jp-homepage-nav,
  .jp-homepage-hero,
  .jp-homepage-structure,
  .jp-homepage-research,
  .jp-homepage-preparations,
  .jp-homepage-field,
  .jp-homepage-closing,
  .jp-homepage-footer,
  .jp-divider-major {
    padding-left: 24px;
    padding-right: 24px;
  }

  .jp-homepage-hero-inner,
  .jp-research-grid,
  .jp-field-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .jp-homepage-footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .jp-homepage-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .jp-homepage-nav-links {
    gap: 14px;
  }

  .jp-homepage-title {
    font-size: 34px;
  }

  .jp-homepage-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .jp-btn {
    width: 100%;
  }
}
/* ──────────────────────────────────────────────────────────────
   J.P. HEMP — PRIMARY NAVIGATION
   Keep full menu visible on tablet; hamburger on phone
   ────────────────────────────────────────────────────────────── */

@media (min-width: 768px) and (max-width: 980px) {
  .jp-tablet-menu .et_pb_menu__menu {
    display: flex !important;
  }

  .jp-tablet-menu .et_mobile_nav_menu {
    display: none !important;
  }
}

/* J.P. Hemp — keep header columns side-by-side on tablet */
@media (min-width: 768px) and (max-width: 980px) {

  .jp-header-row {
    display: flex !important;
    align-items: center !important;
  }

  .jp-header-row .et_pb_column:nth-child(1) {
    width: 25% !important;
    margin-right: 0 !important;
  }

  .jp-header-row .et_pb_column:nth-child(2) {
    width: 58% !important;
    margin-right: 0 !important;
  }

  .jp-header-row .et_pb_column:nth-child(3) {
    width: 17% !important;
    margin-right: 0 !important;
  }
}

 /* =========================================================
   JP NATIVE DIVI SYSTEM — MOBILE HEADER
   ========================================================= */

@media (max-width: 767px) {

  .jp-mobile-header {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 92% !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .jp-mobile-header > .et_pb_column:nth-child(1) {
    width: 50% !important;
    margin: 0 !important;
  }

  .jp-mobile-header > .et_pb_column:nth-child(2) {
    width: 20% !important;
    margin: 0 !important;
  }

  .jp-mobile-header > .et_pb_column:nth-child(3) {
    width: 30% !important;
    margin: 0 !important;
  }

  .jp-mobile-header .et_pb_module {
    margin-bottom: 0 !important;
  }

  .jp-mobile-header .et_pb_menu__wrap {
    justify-content: center !important;
  }

  .jp-mobile-header .et_pb_button_module_wrapper {
    text-align: right !important;
  }
}

