/*
Theme Name: Raw Canvas
Theme URI: https://example.com/raw-canvas
Author: You
Description: A blank-canvas theme for pasting hand-written HTML sections and rendering them byte-for-byte. Strips all WordPress front-end JavaScript, block CSS, emoji, and content auto-formatting.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: raw-canvas
*/

/*
 * Deliberately empty.
 *
 * This file exists only so WordPress recognises the theme. It is NOT enqueued
 * on the front end, so nothing here can interfere with your pasted markup.
 *
 * Put your own CSS in assets/app.css — it is auto-enqueued if present.
 */

/* ==========================================================================
   CONCEPCIÓN GLOBAL — GLOBAL STYLESHEET
   --------------------------------------------------------------------------
   Design system extracted from the live Squarespace 7.1 build.
   Palette, layout, grid and component values are EXACT unless marked.

   PASTE BELOW your theme's existing  /* Theme Name: ... *​/  header comment.
   Never delete that header — WordPress needs it.

   Contents
     01  Fonts
     02  Design tokens
     03  Type scale
     04  Section colour themes
     05  Section shell, backgrounds, overlays
     06  Fluid-Engine grid + containers
     07  Typography
     08  Links
     09  Buttons
     10  Form fields
     11  Newsletter block
     12  Accordion
     13  Media + cards
     14  Section divider
     15  Carousel
     16  Global header
     17  Mobile menu overlay
     18  Global footer
     19  Cookie banner
     20  Utilities
     21  Accessibility + motion
     22  Print
   ========================================================================== */


/* ==========================================================================
   01  FONTS
   Raleway 800 confirmed as the heading face (self-hosted on the original,
   weight 800 only). Body face is an unidentified Adobe Typekit family —
   see §03 for where to slot it in.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@800&display=swap');


/* ==========================================================================
   02  DESIGN TOKENS
   ========================================================================== */

:root {

  /* ---- Palette — exact, extracted from site.css ------------------------ */
  --cg-white-hsl:   0, 0%, 100%;
  --cg-black-hsl:   0, 0%, 0.78%;
  --cg-blue-hsl:    207.18, 85.4%, 26.86%;   /* darkAccent  */
  --cg-navy-hsl:    206, 48.39%, 12.16%;     /* accent      */
  --cg-surface-hsl: 220, 15.79%, 96.27%;     /* lightAccent */

  --cg-white:        #FFFFFF;
  --cg-black:        #020202;  /* near-black body text, not pure           */
  --cg-blue:         #0A4A7F;  /* header bg, rules, image overlays         */
  --cg-navy:         #10212E;  /* buttons, links, bright + footer bg       */
  --cg-surface:      #F4F5F7;  /* cards, newsletter, default page bg       */

  --cg-field-fill:   #FAFAFA;
  --cg-field-ink:    #000000;
  --cg-footer-label: #FDFDFF;

  /* ---- Layout — exact, from tweakJSON ---------------------------------- */
  --cg-max-width:        1800px;
  --cg-gutter:           4vw;
  --cg-gutter-mobile:    6vw;
  --cg-grid-cols:        24;
  --cg-grid-cols-mobile: 8;
  --cg-grid-gap:         11px;
  --cg-row-scale:        0.0215;

  /* ---- Header — exact --------------------------------------------------- */
  --cg-logo-height:         42px;
  --cg-logo-height-mobile:  27px;
  --cg-header-pad-y:        1.9vw;
  --cg-header-pad-y-mobile: 6vw;
  --cg-header-height:       72px;   /* refreshed at runtime by header JS    */

  /* ---- Shape — consolidated from 20px / 15px / 0 ----------------------- */
  --cg-radius-card:    20px;
  --cg-radius-media:   15px;
  --cg-radius-button:  0px;
  --cg-radius-field:   0px;

  /* ---- Section vertical rhythm ----------------------------------------- */
  --cg-pad-none:   calc(1vmax / 10);
  --cg-pad-small:  3.3vmax;
  --cg-pad-medium: 6vmax;
  --cg-pad-large:  9vmax;

  /* ---- Image overlay opacities — exact, per section -------------------- */
  --cg-overlay-hero-home:      0.15;
  --cg-overlay-icon-blue:      0.28;
  --cg-overlay-default:        0.50;
  --cg-overlay-statement:      0.67;
  --cg-overlay-hero-about:     0.70;
  --cg-overlay-newsletter:     0.83;
  --cg-overlay-newsletter-alt: 0.87;
  --cg-overlay-hero-bio:       0.90;

  /* ---- Section divider — exact ----------------------------------------- */
  --cg-divider-height: 6vw;

  /* ---- Accordion, Practice Areas config — exact ------------------------ */
  --cg-accordion-pad-y:       30px;
  --cg-accordion-desc-pad-b:  30px;
  --cg-accordion-icon-size:   14px;
  --cg-accordion-icon-stroke: 1px;
  --cg-accordion-desc-width:  70%;
  --cg-accordion-divider:     1px;
  --cg-accordion-divider-opacity: 1;

  /* ---- Carousel — exact, from the bio markup --------------------------- */
  --cg-carousel-title:  2.5rem;
  --cg-carousel-body:   1.3rem;
  --cg-carousel-button: 1rem;
  --cg-carousel-gap:    20px;
  --cg-carousel-pad-y:  3.3vmax;
  --cg-carousel-nav-gap: 30px;

  /* ---- Motion ---------------------------------------------------------- */
  --cg-ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --cg-duration: 0.25s;
  --cg-z-header: 100;
  --cg-z-menu:   200;
  --cg-z-cookie: 300;
}


/* ==========================================================================
   03  TYPE SCALE
   --------------------------------------------------------------------------
   The one block in this file that is NOT extracted. The type-scale rules sit
   past the retrievable portion of site.css, so these are fluid clamps tuned
   to match the original's proportions.

   To make it exact: run the console snippet, then replace the min/max in each
   clamp() with the mobile and desktop px values it reports. Nothing else in
   this file needs to change.
   ========================================================================== */

:root {
  --cg-font-heading: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cg-font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* ^ replace with the Typekit family once identified */

  --cg-weight-heading: 800;   /* Raleway ships at 800 only */
  --cg-weight-body:    400;
  --cg-weight-strong:  700;

  /*                  min          fluid                    max      */
  --cg-h1:      clamp(2.5rem,   1.60rem + 4.00vw,  5.00rem);
  --cg-h2:      clamp(2.0rem,   1.40rem + 2.60vw,  3.50rem);
  --cg-h3:      clamp(1.5rem,   1.20rem + 1.40vw,  2.25rem);
  --cg-h4:      clamp(1.125rem, 1.02rem + 0.50vw,  1.50rem);

  --cg-body-lg: clamp(1.125rem, 1.05rem + 0.35vw,  1.375rem);
  --cg-body:    clamp(1rem,     0.96rem + 0.20vw,  1.125rem);
  --cg-body-sm: 0.875rem;
  --cg-eyebrow: 0.75rem;

  --cg-lh-heading: 1.15;
  --cg-lh-lede:    1.35;
  --cg-lh-body:    1.60;

  --cg-ls-heading: 0;
  --cg-ls-eyebrow: 0.12em;
  --cg-ls-button:  0.05em;

  --cg-measure: 68ch;   /* readable line length for body copy */
}


/* ==========================================================================
   04  SECTION COLOUR THEMES
   --------------------------------------------------------------------------
   white / white-bold / light / light-bold / dark / dark-bold — EXACT.
   bright / black / black-bold — INFERRED (truncated before those blocks).
   Corroborated by markup: bright drives the footer, which is why the office
   labels carry a #FDFDFF override.

   Apply one theme class per .cg-section.
   ========================================================================== */

.cg-theme-white {
  --cg-bg:             var(--cg-white);
  --cg-text:           var(--cg-black);
  --cg-heading:        var(--cg-black);
  --cg-heading-sm:     var(--cg-black);
  --cg-link:           var(--cg-navy);
  --cg-link-hover:     var(--cg-blue);
  --cg-rule:           var(--cg-blue);
  --cg-card-bg:        var(--cg-surface);
  --cg-btn-bg:         var(--cg-navy);
  --cg-btn-fg:         var(--cg-white);
  --cg-accordion-icon: var(--cg-black);
  --cg-accordion-bg:   var(--cg-surface);
  --cg-divider-stroke: var(--cg-navy);
  --cg-newsletter-bg:  var(--cg-surface);
}

.cg-theme-white-bold {
  --cg-bg:             var(--cg-white);
  --cg-text:           var(--cg-black);
  --cg-heading:        var(--cg-navy);
  --cg-heading-sm:     var(--cg-navy);
  --cg-link:           var(--cg-navy);
  --cg-link-hover:     var(--cg-blue);
  --cg-rule:           var(--cg-navy);
  --cg-card-bg:        var(--cg-surface);
  --cg-btn-bg:         var(--cg-navy);
  --cg-btn-fg:         var(--cg-white);
  --cg-accordion-icon: var(--cg-black);
  --cg-accordion-bg:   var(--cg-surface);
  --cg-divider-stroke: var(--cg-navy);
  --cg-newsletter-bg:  var(--cg-surface);
}

/* Squarespace :root default. Background is #F4F5F7, NOT white.
   Only theme whose accordion icon is brand blue. */
.cg-theme-light {
  --cg-bg:             var(--cg-surface);
  --cg-text:           var(--cg-black);
  --cg-heading:        var(--cg-black);
  --cg-heading-sm:     var(--cg-navy);
  --cg-link:           var(--cg-navy);
  --cg-link-hover:     var(--cg-blue);
  --cg-rule:           var(--cg-blue);
  --cg-card-bg:        var(--cg-white);
  --cg-btn-bg:         var(--cg-navy);
  --cg-btn-fg:         var(--cg-white);
  --cg-accordion-icon: var(--cg-blue);
  --cg-accordion-bg:   var(--cg-white);
  --cg-divider-stroke: var(--cg-navy);
  --cg-newsletter-bg:  var(--cg-white);
}

.cg-theme-light-bold {
  --cg-bg:             var(--cg-surface);
  --cg-text:           var(--cg-black);
  --cg-heading:        var(--cg-navy);
  --cg-heading-sm:     var(--cg-navy);
  --cg-link:           var(--cg-navy);
  --cg-link-hover:     var(--cg-blue);
  --cg-rule:           var(--cg-navy);
  --cg-card-bg:        var(--cg-white);
  --cg-btn-bg:         var(--cg-navy);
  --cg-btn-fg:         var(--cg-white);
  --cg-accordion-icon: var(--cg-black);
  --cg-accordion-bg:   var(--cg-white);
  --cg-divider-stroke: var(--cg-navy);
  --cg-newsletter-bg:  var(--cg-white);
}

/* Dark is brand BLUE (#0A4A7F), not black. Buttons invert to white. */
.cg-theme-dark {
  --cg-bg:             var(--cg-blue);
  --cg-text:           var(--cg-white);
  --cg-heading:        var(--cg-white);
  --cg-heading-sm:     var(--cg-white);
  --cg-link:           var(--cg-white);
  --cg-link-hover:     var(--cg-surface);
  --cg-rule:           var(--cg-white);
  --cg-card-bg:        var(--cg-white);
  --cg-btn-bg:         var(--cg-white);
  --cg-btn-fg:         #000000;
  --cg-accordion-icon: var(--cg-white);
  --cg-accordion-bg:   var(--cg-white);
  --cg-divider-stroke: var(--cg-white);
  --cg-newsletter-bg:  var(--cg-white);
}

.cg-theme-dark-bold {
  --cg-bg:             var(--cg-blue);
  --cg-text:           var(--cg-white);
  --cg-heading:        var(--cg-white);
  --cg-heading-sm:     var(--cg-white);
  --cg-link:           var(--cg-white);
  --cg-link-hover:     var(--cg-surface);
  --cg-rule:           var(--cg-white);
  --cg-card-bg:        var(--cg-white);
  --cg-btn-bg:         var(--cg-white);
  --cg-btn-fg:         #000000;
  --cg-accordion-icon: var(--cg-white);
  --cg-accordion-bg:   var(--cg-white);
  --cg-divider-stroke: var(--cg-white);
  --cg-newsletter-bg:  var(--cg-white);
}

/* INFERRED — accent navy background. Used by the footer and About Us body. */
.cg-theme-bright {
  --cg-bg:             var(--cg-navy);
  --cg-text:           var(--cg-white);
  --cg-heading:        var(--cg-white);
  --cg-heading-sm:     var(--cg-white);
  --cg-link:           var(--cg-white);
  --cg-link-hover:     var(--cg-surface);
  --cg-rule:           var(--cg-white);
  --cg-card-bg:        var(--cg-surface);
  --cg-btn-bg:         var(--cg-white);
  --cg-btn-fg:         var(--cg-navy);
  --cg-accordion-icon: var(--cg-white);
  --cg-accordion-bg:   var(--cg-surface);
  --cg-divider-stroke: var(--cg-white);
  --cg-newsletter-bg:  var(--cg-surface);
}

/* INFERRED — sits behind the video heroes. */
.cg-theme-black {
  --cg-bg:             var(--cg-black);
  --cg-text:           var(--cg-white);
  --cg-heading:        var(--cg-white);
  --cg-heading-sm:     var(--cg-white);
  --cg-link:           var(--cg-white);
  --cg-link-hover:     var(--cg-surface);
  --cg-rule:           var(--cg-white);
  --cg-card-bg:        var(--cg-navy);
  --cg-btn-bg:         var(--cg-white);
  --cg-btn-fg:         #000000;
  --cg-accordion-icon: var(--cg-white);
  --cg-accordion-bg:   var(--cg-navy);
  --cg-divider-stroke: var(--cg-white);
  --cg-newsletter-bg:  var(--cg-navy);
}

.cg-theme-black-bold {
  --cg-bg:             var(--cg-black);
  --cg-text:           var(--cg-white);
  --cg-heading:        var(--cg-white);
  --cg-heading-sm:     var(--cg-white);
  --cg-link:           var(--cg-white);
  --cg-link-hover:     var(--cg-surface);
  --cg-rule:           var(--cg-white);
  --cg-card-bg:        var(--cg-navy);
  --cg-btn-bg:         var(--cg-white);
  --cg-btn-fg:         #000000;
  --cg-accordion-icon: var(--cg-white);
  --cg-accordion-bg:   var(--cg-navy);
  --cg-divider-stroke: var(--cg-white);
  --cg-newsletter-bg:  var(--cg-navy);
}


/* ==========================================================================
   05  SECTION SHELL, BACKGROUNDS, OVERLAYS
   ========================================================================== */

.cg-section {
  position: relative;
  width: 100%;
  background-color: var(--cg-bg);
  color: var(--cg-text);
  font-family: var(--cg-font-body);
  font-size: var(--cg-body);
  font-weight: var(--cg-weight-body);
  line-height: var(--cg-lh-body);
  box-sizing: border-box;
}
.cg-section *,
.cg-section *::before,
.cg-section *::after { box-sizing: inherit; }

/* Background media layer */
.cg-section__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.cg-section__bg img,
.cg-section__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

/* Colour wash over background media. Set opacity with a modifier below. */
.cg-section__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--cg-bg);
  opacity: var(--cg-overlay-default);
}
.cg-overlay--hero-home      { opacity: var(--cg-overlay-hero-home); }
.cg-overlay--statement      { opacity: var(--cg-overlay-statement); }
.cg-overlay--hero-about     { opacity: var(--cg-overlay-hero-about); }
.cg-overlay--newsletter     { opacity: var(--cg-overlay-newsletter); }
.cg-overlay--newsletter-alt { opacity: var(--cg-overlay-newsletter-alt); }
.cg-overlay--hero-bio       { opacity: var(--cg-overlay-hero-bio); }

/* Content sits above the background */
.cg-section__inner { position: relative; z-index: 1; }

/* Vertical rhythm */
.cg-pad-none   { padding-block: var(--cg-pad-none); }
.cg-pad-small  { padding-block: var(--cg-pad-small); }
.cg-pad-medium { padding-block: var(--cg-pad-medium); }
.cg-pad-large  { padding-block: var(--cg-pad-large); }

/* Minimum heights */
.cg-h-small  { min-height: 40vh; }
.cg-h-medium { min-height: 60vh; }
.cg-h-large  { min-height: 80vh; }
.cg-h-full   { min-height: 100vh; }

/* Vertical centring */
.cg-v-center { display: flex; flex-direction: column; justify-content: center; }


/* ==========================================================================
   06  FLUID-ENGINE GRID + CONTAINERS
   24 desktop / 8 mobile columns, 11px gaps, 768px breakpoint — exact.
   Place children with grid-column / grid-row. Column 1 is the gutter track,
   so content starts at column 2 (matching the original's coordinates).
   ========================================================================== */

.cg-grid {
  --cg-gutter-track: calc(var(--cg-gutter-mobile) - var(--cg-grid-gap));
  --cg-cell: calc(
    (var(--cg-max-width) - (var(--cg-grid-gap) * (var(--cg-grid-cols-mobile) - 1)))
    / var(--cg-grid-cols-mobile)
  );
  display: grid;
  position: relative;
  grid-template-columns:
    minmax(var(--cg-gutter-track), 1fr)
    repeat(var(--cg-grid-cols-mobile), minmax(0, var(--cg-cell)))
    minmax(var(--cg-gutter-track), 1fr);
  grid-auto-rows: minmax(24px, auto);
  row-gap:    var(--cg-grid-gap);
  column-gap: var(--cg-grid-gap);
  overflow-x: clip;
}

@media (min-width: 768px) {
  .cg-grid {
    --cg-gutter-track: calc(var(--cg-gutter) - var(--cg-grid-gap));
    --cg-cell: calc(
      (var(--cg-max-width) - (var(--cg-grid-gap) * (var(--cg-grid-cols) - 1)))
      / var(--cg-grid-cols)
    );
    --cg-container-w: min(var(--cg-max-width), calc(100vw - var(--cg-gutter) * 2));
    grid-template-columns:
      minmax(var(--cg-gutter-track), 1fr)
      repeat(var(--cg-grid-cols), minmax(0, var(--cg-cell)))
      minmax(var(--cg-gutter-track), 1fr);
    grid-auto-rows: minmax(calc(var(--cg-container-w) * var(--cg-row-scale)), auto);
  }
}

/* Simple centred container for sections that don't need the grid */
.cg-container {
  width: 100%;
  max-width: var(--cg-max-width);
  margin-inline: auto;
  padding-inline: var(--cg-gutter-mobile);
}
@media (min-width: 768px) {
  .cg-container { padding-inline: var(--cg-gutter); }
}
.cg-container--narrow { max-width: 900px; }
.cg-container--text   { max-width: var(--cg-measure); }

/* Full-bleed escape hatch */
.cg-full-bleed {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* Generic responsive columns */
.cg-cols {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .cg-cols--2 { grid-template-columns: repeat(2, 1fr); }
  .cg-cols--3 { grid-template-columns: repeat(3, 1fr); }
  .cg-cols--4 { grid-template-columns: repeat(4, 1fr); }
}


/* ==========================================================================
   07  TYPOGRAPHY
   Headings get their weight from CSS — the original wrapped every heading in
   inline <strong>, which is not carried over.
   ========================================================================== */

.cg-section h1, .cg-section h2, .cg-section h3,
.cg-section h4, .cg-section h5, .cg-section h6,
.cg-h1, .cg-h2, .cg-h3, .cg-h4 {
  font-family: var(--cg-font-heading);
  font-weight: var(--cg-weight-heading);
  line-height: var(--cg-lh-heading);
  letter-spacing: var(--cg-ls-heading);
  color: var(--cg-heading);
  margin: 0;
  text-wrap: balance;
}

.cg-section h1, .cg-h1 { font-size: var(--cg-h1); }
.cg-section h2, .cg-h2 { font-size: var(--cg-h2); }
.cg-section h3, .cg-h3 { font-size: var(--cg-h3); }
.cg-section h4, .cg-h4 { font-size: var(--cg-h4); color: var(--cg-heading-sm); }
.cg-section h5         { font-size: var(--cg-body-lg); }
.cg-section h6         { font-size: var(--cg-body); }

.cg-section p { margin: 0 0 1em; max-width: var(--cg-measure); }
.cg-section p:last-child { margin-bottom: 0; }
.cg-section p.cg-wide { max-width: none; }

/* H4 carried four unrelated jobs on the original. Split into named roles. */

/* 1 — all-caps eyebrow above a section title */
.cg-eyebrow {
  display: block;
  font-family: var(--cg-font-heading);
  font-weight: var(--cg-weight-heading);
  font-size: var(--cg-eyebrow);
  letter-spacing: var(--cg-ls-eyebrow);
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--cg-heading);
  margin: 0 0 0.85em;
}

/* 2 — large statement copy (homepage band, practice-area intros) */
.cg-lede {
  font-family: var(--cg-font-heading);
  font-weight: var(--cg-weight-heading);
  font-size: var(--cg-h4);
  line-height: var(--cg-lh-lede);
  color: var(--cg-heading);
  margin: 0 0 1em;
  max-width: var(--cg-measure);
}
.cg-lede:last-child { margin-bottom: 0; }

/* 3 — sub-section label ("Hours", "Our Services Include:") */
.cg-label {
  font-family: var(--cg-font-heading);
  font-weight: var(--cg-weight-heading);
  font-size: var(--cg-h4);
  line-height: 1.25;
  color: var(--cg-heading-sm);
  margin: 0 0 0.6em;
}

/* 4 — credential / role line under a name */
.cg-credential {
  font-family: var(--cg-font-heading);
  font-weight: var(--cg-weight-heading);
  font-size: var(--cg-body-lg);
  line-height: 1.3;
  color: var(--cg-heading);
  margin: 0.4em 0 0;
}

/* Bold-italic subtitle used on practice-area pages */
.cg-subtitle {
  font-size: var(--cg-body-lg);
  font-style: italic;
  font-weight: var(--cg-weight-strong);
  line-height: 1.4;
  color: var(--cg-text);
  margin: 0 0 1.25em;
  max-width: var(--cg-measure);
}

.cg-small { font-size: var(--cg-body-sm); line-height: 1.5; }
.cg-large { font-size: var(--cg-body-lg); }

/* Lists */
.cg-section ul, .cg-section ol {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
  max-width: var(--cg-measure);
}
.cg-section li { margin-bottom: 0.6em; }
.cg-section li:last-child { margin-bottom: 0; }

.cg-list-unstyled { list-style: none; padding-left: 0; }

/* Horizontal rule — brand blue on light themes, white on dark */
.cg-rule,
.cg-section hr {
  border: 0;
  border-top: 1px solid var(--cg-rule);
  margin: 1.75rem 0;
  width: 100%;
  opacity: 1;
}
.cg-rule--short { max-width: 80px; border-top-width: 2px; }

/* Pull quote */
.cg-quote {
  font-family: var(--cg-font-heading);
  font-weight: var(--cg-weight-heading);
  font-size: var(--cg-body-lg);
  line-height: 1.4;
  color: var(--cg-heading);
  margin: 0 0 0.6em;
}
.cg-quote__source {
  font-family: var(--cg-font-body);
  font-weight: var(--cg-weight-body);
  font-style: italic;
  font-size: var(--cg-body);
  color: var(--cg-text);
}

/* Alignment */
.cg-text-left   { text-align: left; }
.cg-text-center { text-align: center; }
.cg-text-right  { text-align: right; }
.cg-text-center p,
.cg-text-center .cg-lede,
.cg-text-center .cg-subtitle { margin-inline: auto; }


/* ==========================================================================
   08  LINKS
   ========================================================================== */

.cg-section a {
  color: var(--cg-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color var(--cg-duration) var(--cg-ease),
              text-decoration-thickness var(--cg-duration) var(--cg-ease);
}
.cg-section a:hover {
  color: var(--cg-link-hover);
  text-decoration-thickness: 2px;
}
.cg-section a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Links that shouldn't be underlined — nav, logos, cards, buttons */
.cg-link-plain,
.cg-section a.cg-link-plain { text-decoration: none; }
.cg-link-plain:hover { text-decoration: underline; }

/* Inline "Learn more." style */
.cg-link-more {
  font-weight: var(--cg-weight-strong);
  white-space: nowrap;
}


/* ==========================================================================
   09  BUTTONS
   primary solid/square · secondary outline/square · tertiary underline — exact
   ========================================================================== */

.cg-btn {
  display: inline-block;
  font-family: var(--cg-font-heading);
  font-weight: var(--cg-weight-heading);
  font-size: var(--cg-carousel-button);   /* 1rem, matches original */
  line-height: 1;
  letter-spacing: var(--cg-ls-button);
  text-align: center;
  text-decoration: none;
  padding: 1.1em 2em;
  border: 1px solid transparent;
  border-radius: var(--cg-radius-button);
  cursor: pointer;
  transition: background-color var(--cg-duration) var(--cg-ease),
              color            var(--cg-duration) var(--cg-ease),
              border-color     var(--cg-duration) var(--cg-ease),
              opacity          var(--cg-duration) var(--cg-ease);
}
.cg-section a.cg-btn { text-decoration: none; }
.cg-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.cg-btn--primary {
  background-color: var(--cg-btn-bg);
  color: var(--cg-btn-fg);
  border-color: var(--cg-btn-bg);
}
.cg-btn--primary:hover { opacity: 0.85; color: var(--cg-btn-fg); }

.cg-btn--secondary {
  background-color: transparent;
  color: var(--cg-btn-bg);
  border-color: var(--cg-btn-bg);
}
.cg-btn--secondary:hover {
  background-color: var(--cg-btn-bg);
  color: var(--cg-btn-fg);
}

.cg-btn--tertiary {
  background-color: transparent;
  color: var(--cg-link);
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 0.4em 0;
}
.cg-btn--tertiary:hover { border-bottom-width: 2px; color: var(--cg-link-hover); }

.cg-btn--sm    { padding: 0.85em 1.5em; font-size: 0.875rem; }
.cg-btn--lg    { padding: 1.35em 2.5em; font-size: 1.125rem; }
.cg-btn--block { display: block; width: 100%; }

.cg-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}


/* ==========================================================================
   10  FORM FIELDS
   Original hardcodes #000 on #FAFAFA in EVERY theme, including dark.
   Reproduced for fidelity. The theme-aware block at the end is commented out —
   uncomment if you'd rather fields adapt to dark sections.
   ========================================================================== */

.cg-field-group { margin-bottom: 1.25rem; }

.cg-field-label {
  display: block;
  font-size: var(--cg-body-sm);
  line-height: 1.4;
  color: var(--cg-text);
  margin-bottom: 0.45em;
}
.cg-field-label .cg-required { opacity: 0.7; font-weight: var(--cg-weight-body); }

.cg-field,
.cg-section input[type="text"],
.cg-section input[type="email"],
.cg-section input[type="tel"],
.cg-section input[type="url"],
.cg-section input[type="search"],
.cg-section input[type="number"],
.cg-section select,
.cg-section textarea {
  width: 100%;
  font-family: var(--cg-font-body);
  font-size: var(--cg-body);
  line-height: 1.4;
  color: var(--cg-field-ink);
  background-color: var(--cg-field-fill);
  border: 1px solid var(--cg-field-ink);
  border-radius: var(--cg-radius-field);
  padding: 0.9em 1em;
  transition: outline-color var(--cg-duration) var(--cg-ease);
  -webkit-appearance: none;
  appearance: none;
}
.cg-field::placeholder,
.cg-section input::placeholder,
.cg-section textarea::placeholder {
  color: var(--cg-field-ink);
  opacity: 0.55;
}
.cg-field:hover,
.cg-field:focus-visible,
.cg-section input:focus-visible,
.cg-section select:focus-visible,
.cg-section textarea:focus-visible {
  outline: 2px solid var(--cg-blue);
  outline-offset: 2px;
}
.cg-section textarea { min-height: 9rem; resize: vertical; }

.cg-section select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--cg-field-ink) 50%),
    linear-gradient(135deg, var(--cg-field-ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}

/* Checkbox + radio — square checkbox, pill radio, stacked (matches original) */
.cg-choice { display: flex; align-items: flex-start; gap: 0.65em; margin-bottom: 0.6em; }
.cg-choice input[type="checkbox"],
.cg-choice input[type="radio"] {
  flex: 0 0 auto;
  width: 1.05em; height: 1.05em;
  margin-top: 0.28em;
  accent-color: var(--cg-navy);
}
.cg-choice input[type="checkbox"] { border-radius: 0; }
.cg-choice input[type="radio"]    { border-radius: 50%; }

.cg-field-error { color: #B3261E; font-size: var(--cg-body-sm); margin-top: 0.4em; }
.cg-field-help  { font-size: var(--cg-body-sm); opacity: 0.8; margin-top: 0.4em; }

/* Theme-aware fields — uncomment to override the original's hardcoding
.cg-theme-dark  .cg-field,
.cg-theme-bright .cg-field,
.cg-theme-black .cg-field {
  background-color: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
  color: var(--cg-white);
}
.cg-theme-dark  .cg-field::placeholder,
.cg-theme-bright .cg-field::placeholder,
.cg-theme-black .cg-field::placeholder { color: rgba(255,255,255,0.7); }
*/


/* ==========================================================================
   11  NEWSLETTER BLOCK
   Card: 20px radius, 3% padding — exact.
   Background differed between pages on the original (#F4F5F7 vs #FFFFFF);
   unified here to the theme's --cg-newsletter-bg.
   ========================================================================== */

.cg-newsletter {
  background-color: var(--cg-newsletter-bg);
  border-radius: var(--cg-radius-card);
  padding: 3%;
  color: var(--cg-black);
}
.cg-newsletter__title {
  font-family: var(--cg-font-heading);
  font-weight: var(--cg-weight-heading);
  font-size: var(--cg-h2);
  line-height: var(--cg-lh-heading);
  color: var(--cg-black);
  margin: 0 0 0.4em;
}
.cg-newsletter__desc {
  font-size: var(--cg-body);
  color: var(--cg-black);
  margin: 0 0 1.5em;
  max-width: 52ch;
}
.cg-newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}
.cg-newsletter__field { flex: 1 1 260px; }
.cg-newsletter__field .cg-field-label { color: var(--cg-black); }
.cg-newsletter__submit { flex: 0 0 auto; }
.cg-newsletter__submit .cg-btn {
  background-color: var(--cg-navy);
  color: var(--cg-white);
  border-color: var(--cg-navy);
}
.cg-newsletter__footnote {
  font-size: var(--cg-body-sm);
  color: var(--cg-black);
  opacity: 0.75;
  margin: 1rem 0 0;
}
.cg-newsletter__success {
  display: none;
  font-weight: var(--cg-weight-strong);
  color: var(--cg-black);
  margin-top: 1rem;
}
.cg-newsletter.is-submitted .cg-newsletter__form { display: none; }
.cg-newsletter.is-submitted .cg-newsletter__success { display: block; }

@media (max-width: 767px) {
  .cg-newsletter { padding: 8% 6%; }
  .cg-newsletter__form { flex-direction: column; align-items: stretch; }
  .cg-newsletter__submit .cg-btn { width: 100%; }
}


/* ==========================================================================
   12  ACCORDION
   Two configs on the original. Both reproduced.
   Built on <details>/<summary> so it works without JavaScript.
   ========================================================================== */

.cg-accordion { width: 100%; }

.cg-accordion__item {
  border-bottom: var(--cg-accordion-divider) solid var(--cg-rule);
  opacity: 1;
}
.cg-accordion__item:first-child {
  border-top: var(--cg-accordion-divider) solid var(--cg-rule);
}
.cg-accordion__item[open] .cg-accordion__icon::after { transform: rotate(90deg) scaleX(0); }

.cg-accordion__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding-block: var(--cg-accordion-pad-y);
  font-family: var(--cg-font-heading);
  font-weight: var(--cg-weight-heading);
  font-size: var(--cg-h4);
  line-height: 1.3;
  color: var(--cg-heading);
  cursor: pointer;
  list-style: none;
  text-align: left;
}
.cg-accordion__title::-webkit-details-marker { display: none; }
.cg-accordion__title:hover { opacity: 0.75; }
.cg-accordion__title:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }

/* Plus icon — 14px, 1px stroke, collapses to a minus when open */
.cg-accordion__icon {
  position: relative;
  flex: 0 0 auto;
  width:  var(--cg-accordion-icon-size);
  height: var(--cg-accordion-icon-size);
}
.cg-accordion__icon::before,
.cg-accordion__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: var(--cg-accordion-icon-stroke);
  background-color: var(--cg-accordion-icon);
  transform-origin: center;
  transition: transform var(--cg-duration) var(--cg-ease);
}
.cg-accordion__icon::after { transform: rotate(90deg); }

.cg-accordion__body {
  padding-bottom: var(--cg-accordion-desc-pad-b);
  max-width: var(--cg-accordion-desc-width);
  color: var(--cg-text);
}
@media (max-width: 767px) {
  .cg-accordion__body { max-width: 100%; }
  .cg-accordion__title { font-size: var(--cg-body-lg); }
}

/* Second config — tighter padding, arrow icon, no dividers */
.cg-accordion--compact .cg-accordion__item,
.cg-accordion--compact .cg-accordion__item:first-child { border: 0; }
.cg-accordion--compact .cg-accordion__title {
  padding-block: 3px;
  font-size: var(--cg-body);
}
.cg-accordion--compact .cg-accordion__icon::before,
.cg-accordion--compact .cg-accordion__icon::after { height: 3px; }
.cg-accordion--compact .cg-accordion__body { padding-bottom: 15px; }


/* ==========================================================================
   13  MEDIA + CARDS
   ========================================================================== */

.cg-media {
  display: block;
  overflow: hidden;
  border-radius: var(--cg-radius-media);
  line-height: 0;
}
.cg-media--card { border-radius: var(--cg-radius-card); }
.cg-media--flat { border-radius: 0; }

.cg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}
.cg-media--fit img { object-fit: contain; }

/* Aspect helpers */
.cg-ratio-1x1  { aspect-ratio: 1 / 1; }
.cg-ratio-3x2  { aspect-ratio: 3 / 2; }
.cg-ratio-4x3  { aspect-ratio: 4 / 3; }
.cg-ratio-16x9 { aspect-ratio: 16 / 9; }
.cg-ratio-portrait { aspect-ratio: 1132 / 1690; }   /* bio portrait */

/* Tinted overlay on decorative brand-icon imagery */
.cg-media--tinted { position: relative; }
.cg-media--tinted::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: hsla(var(--cg-blue-hsl), var(--cg-overlay-icon-blue));
  pointer-events: none;
}

/* Content card */
.cg-card {
  background-color: var(--cg-card-bg);
  border-radius: var(--cg-radius-card);
  padding: 6%;
  color: var(--cg-black);
  height: 100%;
}
.cg-card h2, .cg-card h3, .cg-card h4 { color: var(--cg-navy); }

/* Award / credential logo strip */
.cg-logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.cg-logo-strip img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}


/* ==========================================================================
   14  SECTION DIVIDER
   Rounded, 6vw tall, full width, no stroke — exact.
   Pure CSS version of the original's SVG clip-path.
   ========================================================================== */

.cg-has-divider { padding-bottom: var(--cg-divider-height); }

.cg-divider {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--cg-divider-height);
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.cg-divider::before {
  content: "";
  position: absolute;
  left: -5%;
  bottom: 0;
  width: 110%;
  height: 200%;
  background-color: var(--cg-next-bg, var(--cg-white));
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: translateY(50%);
}
/* Set --cg-next-bg on the section to match the section that follows */
.cg-divider--to-white   { --cg-next-bg: var(--cg-white); }
.cg-divider--to-surface { --cg-next-bg: var(--cg-surface); }
.cg-divider--to-navy    { --cg-next-bg: var(--cg-navy); }
.cg-divider--to-blue    { --cg-next-bg: var(--cg-blue); }


/* ==========================================================================
   15  CAROUSEL
   Sizes taken verbatim from the bio page markup.
   ========================================================================== */

.cg-carousel { padding-block: var(--cg-carousel-pad-y); }

.cg-carousel__track {
  display: flex;
  gap: var(--cg-carousel-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cg-carousel__track::-webkit-scrollbar { display: none; }

.cg-carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  text-align: center;
}
@media (min-width: 768px) {
  .cg-carousel__slide { flex-basis: calc((100% - var(--cg-carousel-gap)) / 2); }
}

.cg-carousel__title { font-size: var(--cg-carousel-title); margin-bottom: 1%; }
.cg-carousel__body  { font-size: var(--cg-carousel-body); max-width: 100%; }

.cg-carousel__nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: var(--cg-carousel-nav-gap);
}
.cg-carousel__arrow {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--cg-heading);
  cursor: pointer;
  transition: background-color var(--cg-duration) var(--cg-ease),
              color var(--cg-duration) var(--cg-ease);
}
.cg-carousel__arrow:hover {
  background-color: var(--cg-heading);
  color: var(--cg-bg);
}
.cg-carousel__arrow svg { width: 22px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }


/* ==========================================================================
   16  GLOBAL HEADER
   Not fixed, not transparent, solid brand-blue background, white nav — exact.
   Cart and language picker are omitted (both dead on the original).
   ========================================================================== */

.cg-header {
  position: relative;
  z-index: var(--cg-z-header);
  width: 100%;
  background-color: var(--cg-blue);
  color: var(--cg-white);
  font-family: var(--cg-font-heading);
}

.cg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: var(--cg-max-width);
  margin-inline: auto;
  padding-inline: var(--cg-gutter-mobile);
  padding-block: var(--cg-header-pad-y-mobile);
}
@media (min-width: 768px) {
  .cg-header__inner {
    padding-inline: var(--cg-gutter);
    padding-block: var(--cg-header-pad-y);
  }
}

.cg-header__logo { flex: 0 0 auto; line-height: 0; text-decoration: none; }
.cg-header__logo img {
  height: var(--cg-logo-height-mobile);
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .cg-header__logo img { height: var(--cg-logo-height); }
}

/* Desktop nav */
.cg-nav { display: none; }
@media (min-width: 768px) {
  .cg-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2.25rem);
  }
}
.cg-nav__item { position: relative; }
.cg-nav__link {
  display: inline-block;
  font-family: var(--cg-font-heading);
  font-weight: var(--cg-weight-heading);
  font-size: 0.9375rem;
  line-height: 1;
  color: var(--cg-white);
  text-decoration: none;
  padding: 0.5em 0;
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--cg-duration) var(--cg-ease);
}
.cg-nav__link:hover,
.cg-nav__link[aria-expanded="true"] { opacity: 0.7; }
.cg-nav__link:focus-visible { outline: 2px solid var(--cg-white); outline-offset: 4px; }
.cg-nav__item--active > .cg-nav__link { text-decoration: underline; text-underline-offset: 0.4em; }

/* Dropdown */
.cg-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--cg-blue);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--cg-duration) var(--cg-ease),
              transform var(--cg-duration) var(--cg-ease),
              visibility var(--cg-duration);
}
.cg-nav__item:hover > .cg-nav__dropdown,
.cg-nav__item:focus-within > .cg-nav__dropdown,
.cg-nav__dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cg-nav__dropdown a {
  display: block;
  padding: 0.65em 1.25em;
  font-size: 0.9375rem;
  color: var(--cg-white);
  text-decoration: none;
  white-space: nowrap;
}
.cg-nav__dropdown a:hover { background-color: rgba(255,255,255,0.1); }

/* Burger */
.cg-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px; height: 22px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
@media (min-width: 768px) { .cg-burger { display: none; } }
.cg-burger span {
  display: block;
  width: 100%;
  height: 1px;                    /* tripleLineHamburger, 1px — exact */
  background-color: var(--cg-white);
  transition: transform var(--cg-duration) var(--cg-ease),
              opacity   var(--cg-duration) var(--cg-ease);
}
.cg-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cg-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cg-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.cg-burger:focus-visible { outline: 2px solid var(--cg-white); outline-offset: 4px; }


/* ==========================================================================
   17  MOBILE MENU OVERLAY
   Fades in, brand-blue background, white links — matches the original's
   "light" overlay theme (whose menuOverlayBackgroundColor is #0A4A7F).
   ========================================================================== */

.cg-menu {
  position: fixed;
  inset: 0;
  z-index: var(--cg-z-menu);
  background-color: var(--cg-blue);
  color: var(--cg-white);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--cg-duration) var(--cg-ease), visibility var(--cg-duration);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cg-menu.is-open { opacity: 1; visibility: visible; }
body.cg-menu-open { overflow: hidden; }

.cg-menu__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(var(--cg-header-height) + 2rem) var(--cg-gutter-mobile) 3rem;
}
.cg-menu__list { list-style: none; margin: 0; padding: 0; }
.cg-menu__list a,
.cg-menu__list button {
  display: block;
  width: 100%;
  font-family: var(--cg-font-heading);
  font-weight: var(--cg-weight-heading);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--cg-white);
  text-decoration: none;
  text-align: left;
  padding: 0.7em 0;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
}
.cg-menu__folder { display: none; }
.cg-menu__folder.is-open { display: block; }
.cg-menu__back {
  font-size: 0.9375rem !important;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: var(--cg-ls-eyebrow);
}
.cg-menu__sub a { padding-left: 1rem; font-size: 1.25rem; }


/* ==========================================================================
   18  GLOBAL FOOTER
   bright theme. All three office labels use the same colour — the original
   applied #FDFDFF to Miami and Paris but not Madrid.
   ========================================================================== */

.cg-footer {
  background-color: var(--cg-navy);
  color: var(--cg-white);
  font-family: var(--cg-font-body);
  padding-block: var(--cg-pad-small);
}
.cg-footer a { color: var(--cg-white); text-decoration: none; }
.cg-footer a:hover { text-decoration: underline; }

.cg-footer__inner {
  width: 100%;
  max-width: var(--cg-max-width);
  margin-inline: auto;
  padding-inline: var(--cg-gutter-mobile);
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .cg-footer__inner {
    padding-inline: var(--cg-gutter);
    grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 3rem;
  }
}

.cg-footer__logo img { height: 48px; width: auto; display: block; }

.cg-footer__office { font-size: var(--cg-body-sm); line-height: 1.7; }
.cg-footer__office-name {
  display: block;
  font-family: var(--cg-font-heading);
  font-weight: var(--cg-weight-heading);
  font-size: var(--cg-body-sm);
  letter-spacing: var(--cg-ls-eyebrow);
  text-transform: uppercase;
  color: var(--cg-footer-label);
  margin-bottom: 0.35em;
}

.cg-footer__nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: var(--cg-body-sm);
}
.cg-footer__nav span { opacity: 0.5; }

.cg-footer__legal {
  grid-column: 1 / -1;
  text-align: center;
  font-size: var(--cg-body-sm);
  opacity: 0.85;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}


/* ==========================================================================
   19  COOKIE BANNER
   Black bar, bottom, opt-in with Accept + Decline — exact config.
   ========================================================================== */

.cg-cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--cg-z-cookie);
  background-color: var(--cg-black);
  color: var(--cg-white);
  font-family: var(--cg-font-body);
  font-size: var(--cg-body-sm);
  line-height: 1.5;
  padding: 1.25rem var(--cg-gutter-mobile);
  transform: translateY(100%);
  transition: transform var(--cg-duration) var(--cg-ease);
}
.cg-cookie.is-visible { transform: translateY(0); }
@media (min-width: 768px) { .cg-cookie { padding-inline: var(--cg-gutter); } }

.cg-cookie__inner {
  max-width: var(--cg-max-width);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.cg-cookie__text { flex: 1 1 420px; margin: 0; max-width: none; }
.cg-cookie__text a { color: var(--cg-white); }
.cg-cookie__actions { display: flex; gap: 0.75rem; flex: 0 0 auto; }
.cg-cookie__btn {
  font-family: var(--cg-font-heading);
  font-weight: var(--cg-weight-heading);
  font-size: 0.8125rem;
  letter-spacing: var(--cg-ls-button);
  padding: 0.8em 1.6em;
  border-radius: var(--cg-radius-button);
  border: 1px solid var(--cg-white);
  cursor: pointer;
  transition: background-color var(--cg-duration) var(--cg-ease),
              color var(--cg-duration) var(--cg-ease);
}
.cg-cookie__btn--accept { background-color: var(--cg-white); color: var(--cg-black); }
.cg-cookie__btn--accept:hover { opacity: 0.85; }
.cg-cookie__btn--decline { background-color: transparent; color: var(--cg-white); }
.cg-cookie__btn--decline:hover { background-color: var(--cg-white); color: var(--cg-black); }

/* Reopen pill */
.cg-cookie-prefs {
  position: fixed;
  left: 1rem; bottom: 1rem;
  z-index: calc(var(--cg-z-cookie) - 1);
  background-color: var(--cg-black);
  color: var(--cg-white);
  font-size: 0.75rem;
  padding: 0.6em 1.2em;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}


/* ==========================================================================
   20  UTILITIES
   ========================================================================== */

.cg-mt-0 { margin-top: 0; }        .cg-mb-0 { margin-bottom: 0; }
.cg-mt-1 { margin-top: 0.5rem; }   .cg-mb-1 { margin-bottom: 0.5rem; }
.cg-mt-2 { margin-top: 1rem; }     .cg-mb-2 { margin-bottom: 1rem; }
.cg-mt-3 { margin-top: 1.5rem; }   .cg-mb-3 { margin-bottom: 1.5rem; }
.cg-mt-4 { margin-top: 2.5rem; }   .cg-mb-4 { margin-bottom: 2.5rem; }
.cg-mt-5 { margin-top: 4rem; }     .cg-mb-5 { margin-bottom: 4rem; }

.cg-stack       { display: flex; flex-direction: column; gap: 1rem; }
.cg-stack--sm   { gap: 0.5rem; }
.cg-stack--lg   { gap: 2rem; }
.cg-flex        { display: flex; gap: 1rem; }
.cg-flex-center { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.cg-flex-between{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cg-wrap        { flex-wrap: wrap; }

.cg-bg-white   { background-color: var(--cg-white); }
.cg-bg-surface { background-color: var(--cg-surface); }
.cg-bg-blue    { background-color: var(--cg-blue);  color: var(--cg-white); }
.cg-bg-navy    { background-color: var(--cg-navy);  color: var(--cg-white); }

.cg-c-blue  { color: var(--cg-blue); }
.cg-c-navy  { color: var(--cg-navy); }
.cg-c-white { color: var(--cg-white); }
.cg-c-black { color: var(--cg-black); }

@media (max-width: 767px) { .cg-hide-mobile  { display: none !important; } }
@media (min-width: 768px) { .cg-hide-desktop { display: none !important; } }

/* Legal disclaimer — should appear on every practice-area and bio page */
.cg-disclaimer {
  font-size: var(--cg-body-sm);
  line-height: 1.6;
  opacity: 0.8;
  max-width: var(--cg-measure);
  padding-top: 2rem;
  border-top: 1px solid var(--cg-rule);
}


/* ==========================================================================
   21  ACCESSIBILITY + MOTION
   ========================================================================== */

.cg-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Focusable skip link — the original's was not reachable by keyboard */
.cg-skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: calc(var(--cg-z-menu) + 10);
  background-color: var(--cg-navy);
  color: var(--cg-white);
  font-family: var(--cg-font-heading);
  font-weight: var(--cg-weight-heading);
  padding: 1em 1.75em;
  text-decoration: none;
  transition: top var(--cg-duration) var(--cg-ease);
}
.cg-skip-link:focus { top: 0; }

:target { scroll-margin-top: calc(var(--cg-header-height) + 2rem); }
html { scroll-behavior: smooth; }

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


/* ==========================================================================
   22  PRINT
   ========================================================================== */

@media print {
  .cg-header, .cg-menu, .cg-cookie, .cg-cookie-prefs,
  .cg-burger, .cg-carousel__nav, .cg-divider { display: none !important; }
  .cg-section { background: #fff !important; color: #000 !important; }
  .cg-section h1, .cg-section h2,
  .cg-section h3, .cg-section h4 { color: #000 !important; }
  .cg-section a { color: #000 !important; text-decoration: underline; }
  .cg-section a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

html,
body{
    overflow-x:hidden;
    max-width:100%;
}

/* Belt and braces — never let the header itself create scroll */
#cg-hdr,
#cg-hero{
    overflow-x:clip;
}

/* =========================================================
   GLOBAL RESET — full-bleed sections
   ========================================================= */

html,
body{
    margin:0;
    padding:0;
    max-width:100%;
    overflow-x:hidden;
}

/* Theme + plugin wrappers must not constrain sections */
.rawcanvas-main-header,
[data-rawcanvas-site-part],
#page,
.site,
.site-content,
main{
    width:100%;
    max-width:none;
    margin:0;
    padding:0;
}

img{
    max-width:100%;
    height:auto;
}