/* ==========================================================================
   Smudge WP — main stylesheet (Pangea design)
   Sections: Fonts · Tokens · Base · Typography · Layout · Components
   Values follow common-elements.md (section 5 decisions take priority).
   ========================================================================== */


/* Fonts
   ========================================================================== */

@font-face {
    font-family: "Google Sans Flex";
    font-style: normal;
    font-weight: 1 1000;
    font-display: swap;
    src: url("../fonts/google-sans-flex-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Google Sans Flex";
    font-style: normal;
    font-weight: 1 1000;
    font-display: swap;
    src: url("../fonts/google-sans-flex-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* Tokens
   ========================================================================== */

:root {
    /* Brand colours */
    --color-navy: #333f50;
    --color-gold: #c7b272;
    --color-white: #ffffff;
    --color-ghost: #f4f4f9;
    --color-slate: #4f5d75;
    --color-boat-blue: #2c5784;
    --color-champagne: #f3e3d0;
    --color-charcoal: #333333;

    /* Tints used as backgrounds */
    --color-gold-tint: rgba(199, 178, 114, 0.1);
    --color-champagne-tint: rgba(243, 227, 208, 0.45);
    --color-navy-25: rgba(51, 63, 80, 0.25);
    --color-navy-55: rgba(51, 63, 80, 0.55);
    --color-navy-85: rgba(51, 63, 80, 0.85);

    /* Typography */
    --font-sans: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --weight-thin: 200;
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    --text-stat: clamp(3.5rem, 2.6rem + 3.8vw, 5rem);       /* 80px */
    --text-h1: clamp(2.25rem, 1.85rem + 1.6vw, 3.125rem);   /* 50px */
    --text-h2: clamp(1.75rem, 1.5rem + 1vw, 2.1875rem);     /* 35px */
    --text-lg: 1.5625rem;                                   /* 25px */
    --text-card-title: 1.375rem;                            /* 22px */
    --text-md: 1.25rem;                                     /* 20px */
    --text-nav: 1rem;                                       /* 16px */
    --text-body: 1rem;                                      /* 16px: paragraphs */
    --text-label: 0.875rem;                                 /* 14px: text links, form labels, job titles */
    --text-sm: 0.75rem;                                     /* 12px */
    --text-xs: 0.625rem;                                    /* 10px */
    --text-copyright: 0.6875rem;                            /* 11px: footer copyright line */

    --leading-body: 1.75;                                   /* 28px on 16px */
    --paragraph-space: 1.25rem;                             /* 20px between paragraphs */
    --leading-sm: 1.667;                                    /* 20px on 12px */
    --tracking-label: 0.2em;
    --text-link-draw-speed: 0.4s;                           /* the underline drawing itself on hover */

    /* Shape */
    --radius-lg: 15px;
    --radius-md: 12px;
    --radius-sm: 6px;
    --radius-xs: 3px;
    --radius-pill: 30px;

    /* Layout */
    --header-height: 100px;
    --header-height-sm: 80px;
    --container-max: 1302px;
    --tap-target: 44px;
    --tap-target-sm: 24px;                                  /* smallest target size in WCAG 2.2 AA */

    /* Header and menu */
    --logo-width: 230px;
    --logo-width-sm: 179px;
    --header-gap: 2rem;                                     /* logo to menu, from 1200px */
    --header-gap-xxl: 3.375rem;                             /* logo to menu, from 1400px (Figma: 54px) */
    --nav-gap: 1.5rem;                                      /* smallest space between menu items */
    --menu-line: rgba(255, 255, 255, 0.15);
    --nav-row-gap: 0.75rem;
    --nav-line: 1.25rem;                                    /* 20px menu line height */
    --dropdown-rule: 2px;
    --dropdown-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    --dropdown-offset: calc((var(--header-height) - var(--nav-line)) / 2);
    --header-speed: 0.3s;
    --z-header: 100;

    /* Cookie banner */
    --z-cookie-banner: 90;                                  /* under the header and its phone menu; pop-ups are above both */
    --cookie-banner-padding-y: 1rem;
    --cookie-banner-padding-y-lg: 1.25rem;                  /* from 1200px */
    --cookie-banner-gap: 2.5rem;                            /* message to links, from 768px */
    --cookie-banner-links-gap: 2rem;                        /* Accept to Decline */
    --cookie-banner-message-min: 22rem;                     /* narrower than this, the links go under the message */

    /* Footer */
    --footer-line: 1.25rem;                                 /* 20px footer text line height */
    --copyright-line: 0.9375rem;                            /* 15px copyright line height */
    --footer-column-width: 18.0625rem;                      /* 289px: second column starts here (Figma) */
    --footer-globe-width-sm: 120px;
    --footer-globe-width-md: 180px;
    --footer-globe-width: 230px;                            /* Figma: 230 × 215 */
    --footer-globe-opacity: 0.25;
    --social-icon: 26px;
    --social-gap-sm: 0.25rem;                               /* between 44px tap areas */
    --social-gap: 0.75rem;                                  /* between icons, from 1200px */

    /* Page hero (heights are below the header: 635px and 796px from the top of the page in Figma) */
    --hero-height: 535px;
    --hero-height-home: 696px;
    --hero-photo-ratio: 1920 / 715;                         /* every page but Home: the photo's own shape */
    --hero-box-width: 693px;
    --hero-box-height: 246px;
    --hero-box-width-home: 657px;                           /* Figma 110:647 */
    --hero-box-height-home: 328px;
    --hero-box-bg: rgba(51, 63, 80, 0.55);                  /* navy at 55% */
    --hero-box-bg-home: rgba(51, 63, 80, 0.45);             /* navy at 45% (Figma 110:647) */
    --hero-shade: rgba(51, 51, 51, 0.065);                  /* Figma overlay: #333 at 65%, layer at 10% */
    --text-subheading: clamp(1.25rem, 1.05rem + 0.55vw, 1.5625rem); /* 25px */

    /* Logo tiles and carousels */
    --logo-tile-width: 195px;
    --logo-tile-height: 70px;
    --logo-tile-padding-y: 9px;                             /* with the 1px border, leaves a 165 × 50 logo area */
    --logo-tile-padding-x: 14px;
    --logo-tile-gap: 0.625rem;                              /* 10px */
    --logo-tile-border: rgba(255, 255, 255, 0.5);           /* white at 50% */
    --carousel-arrow: 36px;
    --carousel-arrow-gap: 1.25rem;                          /* 24px from circle to row, inside the 44px button */

    /* Intro and stats (overview sections) */
    --overview-min-height: 258px;                           /* shortest band in the sector designs */
    --overview-padding-y: 2.5rem;
    --overview-padding-y-lg: 2rem;
    --overview-intro-width: 525px;
    --overview-text-min: 360px;                             /* text beside the stats, 1200–1399px */
    --overview-intro-width-navy: 1013px;
    --overview-text-to-divider: 78px;                       /* intro column to divider (Figma: 606 → 684) */
    --overview-divider-to-stats: 65px;                      /* divider to first stat (Figma: 684 → 749) */
    --overview-divider-top: 54px;                           /* where the line bends towards the top edge */
    --overview-divider-slope: 113.65px;                     /* angled part: 100px across, 54px up */
    --overview-divider-angle: -28.37deg;
    --overview-divider-line: 1px;
    --overview-globe-width-sm: 180px;
    --overview-globe-width: 273px;                          /* Figma: 273 × 255 */
    --overview-globe-width-navy: 395px;                     /* Figma: 395 × 369, one at each edge */
    --overview-globe-offset-navy: -70px;
    --overview-globe-opacity: 0.07;
    --overview-globe-opacity-navy: 0.05;
    --stat-gap-sm: 2rem;
    --stat-gap: 3rem;                                       /* 48px between stats, from 768px */
    --stat-gap-navy: 4.625rem;                              /* 74px between stats on About */
    --stat-row-gap: 2.5rem;
    --stat-rule: 3px;
    --stat-number-space: 1.75rem;                           /* number to rule */
    --stat-label-space: 1.5rem;                             /* rule to label */
    --stat-label-max: 190px;                                /* labels wrap at this width */
    --text-stat-label: clamp(1.125rem, 1rem + 0.35vw, 1.25rem); /* 20px; 18px on phones so stats fit two-up */

    /* Our services (Home) */
    --services-heading-space: 2.625rem;                     /* heading to cards: cards start 84px below the heading's top */
    --service-card-max: 480px;                              /* widest card in the one-row layout (4 cards fill 1920px) */
    --service-card-photo-ratio: 960 / 840;                  /* the uploaded photo's shape: 360 × 315 at 1440 (Figma) */
    --service-card-strip-height: 110px;
    --service-card-title-width: 15rem;                      /* names wrap as in the design ("Project Supply Chain / Management") */
    --service-card-line: 1px;                               /* white line between cards */
    --service-card-zoom: 1.04;
    --service-card-speed: 0.4s;

    /* PMO Solutions (Home, PMO Solutions page) */
    --pmo-height: 737px;                                    /* Figma section, from 768px */
    --pmo-heading-top: 21px;
    --pmo-heading-width: 284px;                             /* glass card: 284 × 62 */
    --pmo-heading-height: 62px;
    --pmo-glass: rgba(51, 63, 80, 0.3);                     /* navy at 30%: white text needs a darker photo behind it */
    --pmo-glass-edge: rgba(255, 255, 255, 0.35);
    --pmo-glass-blur: 16px;
    --pmo-glass-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    --pmo-wheel: 588px;                                     /* widest the wheel image is shown */
    --pmo-wheel-space: 41px;                                /* card to wheel: wheel starts 124px from the top */

    /* Sectors (Home) */
    --sectors-padding-y-lg: 2.25rem;                        /* 36px above and below the row, from 1200px */
    --sectors-text-width: 299px;                            /* heading, intro and arrows column */
    --sectors-column-gap: 30px;                             /* text column to the row (Figma: 350 → 380) */
    --sectors-arrow-gap: 1.375rem;                          /* 30px between the circles, inside 44px buttons */
    --sector-card-width: 380px;                             /* photos are uploaded at exactly 380 × 300 */
    --sector-card-peek: 82cqw;                              /* card width on phones: the next card shows at the edge */
    --sector-card-gap: 22px;
    --sector-card-title-space: 10px;                        /* photo to title */
    --sector-card-text-space: 0.9375rem;                    /* title to description: 15px */
    --sector-card-link-space: 2.6875rem;                    /* description to link: 43px */
    --text-sector-title: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem); /* 30px */
    --sector-card-speed: 0.3s;

    /* Testimonials (Home) */
    --testimonials-padding-y: 2.5rem;
    --testimonials-padding-y-lg: 3.125rem;                  /* 50px above and below, from 1200px */
    --testimonials-space: 1.5rem;                           /* heading to arrows, arrows to row */
    --testimonial-width: 1134px;
    --testimonial-border: 4px;
    --testimonial-border-colour: var(--color-navy);         /* design: black (#000) */
    --testimonial-gap: 1rem;
    --testimonial-gap-md: 1.5rem;
    --testimonial-gap-lg: 61px;
    --testimonial-peek: 1.5rem;                             /* the neighbouring cards show this much */
    --testimonial-peek-md: 2.5rem;
    --testimonial-peek-lg: 92px;                            /* design: 98px left, 86px right at 1440 */
    --testimonial-padding: 1.25rem;                         /* inside the border */
    --testimonial-padding-md: 2.25rem;
    --testimonial-padding-lg: 56px;                         /* text 60px from the card's edge */
    --testimonial-padding-right-lg: 65px;                   /* circle 69px from the card's edge */
    --testimonial-logo: 120px;                              /* white circle */
    --testimonial-logo-md: 160px;
    --testimonial-logo-lg: 196px;
    --testimonial-logo-space-lg: 44px;                      /* quote to circle */
    --testimonial-logo-fill: 79%;                           /* logo area 155 × 110 in the 196px circle */
    --text-quote: 1rem;                                     /* 16px on phones, 20px from 768px */
    --leading-quote: 1.75;                                  /* 28px on 16px */
    --text-quote-attribution: var(--text-label);            /* 14px on phones, 16px from 768px */
    --leading-quote-md: 1.75;                               /* 35px on 20px */

    /* Featured insights, Insights grid (Pangea Insights page) and articles */
    --insights-padding-y: 2.5rem;                           /* 40px: link to the next section */
    --insights-padding-y-lg: 3.125rem;                      /* 50px above the heading, from 1200px */
    --insights-heading-space: 1.875rem;                     /* heading to cards */
    --insights-gap: 1.875rem;                               /* 30px between cards */
    --insights-more-space: 2rem;                            /* cards to "Visit Pangea Insights" */
    --insight-large-share: 5fr;                             /* columns from 1200px: 520 / 728 at 1440 */
    --insight-side-share: 7fr;
    --insight-card-width: 520px;                            /* card photo: uploaded at exactly 520 × 300 */
    --insight-image-ratio: 520 / 300;
    --insight-side-image: 282px;                            /* side cards from 1200px: photo 282 × 163 */
    --insight-padding: 1.5rem;
    --insight-padding-lg: 1.875rem;                         /* 30px */
    --insight-tag-square: 10px;
    --insight-tag-gap: 10px;
    --insight-tag-space: 1.1875rem;                         /* tag to title: 19px */
    --insight-link-space: 1.5rem;                           /* summary to link */
    --insight-card-speed: 0.3s;
    --insights-grid-gap-x: 1rem;                            /* 16px between grid columns */
    --insights-grid-gap-y: 1.25rem;                         /* 20px between grid rows */
    --insights-grid-padding-bottom: 3.5rem;                 /* last row to the footer: 56px */
    --insights-filter-space: 1.875rem;                      /* filter to grid: 30px */
    --insights-filter-height: 60px;
    --insights-filter-width: 141px;
    --insights-filter-padding: 52px;                        /* text 52px in from the pill's left */
    --insights-filter-list-space: 0.5rem;                   /* pill to the open list: 8px */
    --insights-filter-list-padding: 0.5rem;
    --insights-filter-option-padding: 1.5rem;               /* option text to the list's right edge */
    --insights-filter-option-hover: rgba(255, 255, 255, 0.08);
    --insights-filter-speed: 0.2s;

    /* Courses (Training page): the Insights grid's gaps, the course photo's shape */
    --course-card-width: 430px;                             /* course photo: uploaded at exactly 430 × 300 */
    --course-image-ratio: 430 / 300;
    --courses-padding-y: 1.875rem;                          /* 30px below the hero and above the footer */

    --article-padding-y: 3rem;
    --article-photo-width: 1280px;                          /* article photo: uploaded at exactly 1280 × 480 */
    --gallery-gap: 1rem;                                    /* 16px between gallery photos */
    --share-size: 44px;                                     /* each round share link (a full tap target) */
    --share-icon: 18px;
    --share-gap: 0.625rem;                                  /* 10px between share links */
    --share-rule: rgba(51, 63, 80, 0.15);                   /* navy at 15%: the line above "Share this article" */
    --share-speed: 0.2s;
    /* Enquiry form (Home, Contact) */
    --enquiry-photo-width: 720px;                           /* Home photo: uploaded at exactly 720 × 540 */
    --enquiry-padding-y: 2.5rem;
    --enquiry-panel-padding-top: 27px;                      /* Home, from 1200px: heading 27px from the top */
    --enquiry-panel-padding-x: 42px;                        /* Home, from 1200px: 42px into the navy half */
    --enquiry-panel-padding-bottom: 2.75rem;
    --enquiry-form-width: 636px;                            /* three 200px fields and two 18px gaps */
    --enquiry-heading-width-home: 630px;                    /* Bomi: wider than the design's 439px */
    --enquiry-heading-width-contact: 580px;
    --enquiry-heading-space: 0.875rem;                      /* heading to the first labels */
    --enquiry-intro-space: 1.3125rem;                       /* Contact: heading to intro, 21px */
    --enquiry-photo-space: 0.875rem;                        /* Contact: intro to photo, 14px */
    --enquiry-contact-photo-width: 550px;                   /* Contact photo: uploaded at exactly 550 × 325 */
    --enquiry-contact-padding-top: 1rem;                    /* Contact: heading 16px below the hero */
    --enquiry-contact-padding-bottom: 3.5rem;
    --enquiry-gap: 18px;                                    /* between fields, across and down */
    --enquiry-label-space: 6px;                             /* label to box (Home: 24px from label top) */
    --enquiry-label-space-light: 10px;                      /* Contact: 28px from label top */
    --enquiry-input-height: var(--tap-target);              /* 44px below 1200px */
    --enquiry-input-height-lg: 30px;
    --enquiry-check-size: 24px;                             /* tick box: WCAG 2.2 minimum target */
    --enquiry-input-padding: 10px;
    --enquiry-message-height: 108px;                        /* Home */
    --enquiry-message-height-light: 201px;                  /* Contact */
    --enquiry-country-width: 5.5rem;                         /* "ZA +27" and the arrow */
    --enquiry-submit-space: 30px;                           /* message box to "Submit" */
    --enquiry-submit-space-sm: 0.625rem;                    /* below 1200px: the 44px tap area adds the rest */
    --enquiry-globe-width-sm: 180px;
    --enquiry-globe-width: 312px;                           /* Home, Figma: 312 × 292, 32px past the page edge */
    --enquiry-globe-offset: -32px;
    --enquiry-globe-opacity: 0.1;
    --enquiry-globe-width-light: 491px;                     /* Contact, Figma: 491 × 459, 57px past the page edge */
    --enquiry-globe-offset-light: -57px;
    --enquiry-globe-opacity-light: 0.05;
    --enquiry-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%23333f50' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    /* Enquiry form colours that fail contrast (common-elements.md 2.1a): built as designed, one line each to fix */
    --enquiry-placeholder: var(--color-navy-25);            /* navy at 25% on white: 1.6:1 (fix: #6e7783, 4.5:1) */
    --enquiry-input-border: var(--color-navy-25);           /* design: 0.25px navy; field edge 1.6:1 (3:1 needed) */
    --enquiry-gold-on-white: var(--color-gold);             /* Contact asterisks and "Submit": 2.1:1 (fix: #83754b, 4.6:1) */
    --enquiry-error-dark: var(--color-gold);                /* error text and edge on navy: 5.1:1 */
    --enquiry-error-light: var(--color-navy);

    /* Capabilities accordion (Sector pages) */
    --capability-tab-width: 79px;
    --capability-height: 450px;                             /* panel and tabs at least this tall */
    --capability-tab-bg: var(--color-navy-25);
    --capability-tab-bg-hover: rgba(51, 63, 80, 0.35);
    --capability-tab-border: var(--color-white);
    --capability-tab-text: var(--text-md);                  /* 20px Bold (common-elements 5.5) */
    --capability-tab-padding-top: 24px;                     /* +/− 26px from the top in the design */
    --capability-tab-padding-bottom: 10px;                  /* label ends 10px above the bottom */
    --capability-tab-gap: 1rem;                             /* at least this between the +/− and a long title */
    --capability-padding: 70px 46px 48px;                   /* panel: title 70px from the top, 46px from the left */
    --capability-padding-sm: 1.75rem 1.25rem 2rem;
    --capability-padding-md: 2.5rem 2.25rem;
    --capability-title: clamp(1.625rem, 1.3rem + 1.1vw, 2.1875rem); /* 35px Regular */
    --capability-title-width: 510px;
    --capability-text-width: 458px;
    --capability-title-space: 1.125rem;                     /* title to text */
    --capability-link-space: 30px;                          /* text to "Get in touch with us" */
    --capability-art-width: 320px;                          /* illustrations: at most 320 × 200 */
    --capability-art-height: 200px;
    --capability-art-height-sm: 120px;
    --capability-art-gap: 2.5rem;
    --capability-art-min: 8rem;
    --capability-open-speed: 450ms;                         /* the panel unfolding from its tab */
    --capability-fade-speed: 300ms;                         /* then its contents fading in */
    --capability-open-ease: cubic-bezier(0.22, 0.61, 0.36, 1); /* fast start, gentle stop */                             /* narrowest the illustration column gets (6 tabs at 1200px) */
    --capabilities-space: 40px;                             /* above and below the section */

    /* Service rows (Service pages; common-elements 4.2, 5.4) */
    --service-row-photo-width: 580px;                       /* photos exactly 580 × 520 */
    --service-row-edge: min(4.1667cqw, 60px);               /* 60px from the page edge at 1440 and wider */
    --service-row-max: 1440px;                              /* rows stop growing here and stay centred */
    --service-row-padding: 40px;                            /* above and below each row */
    --service-row-padding-sm: 2rem;
    --service-row-heading-space: 18px;                      /* heading to text */
    --service-row-stack-gap: 1.5rem;                        /* photo to heading below 992px */
    --service-row-no-photo-width: 800px;                    /* text in a row without a photo */

    /* Experts (Sector and Service pages) */
    --experts-padding-top: 40px;
    --experts-padding-bottom: 39px;
    --experts-heading-space: 21px;                          /* heading to photos (photos 105px from the top) */
    --expert-photo: 180px;
    --expert-photo-sm: 140px;
    --expert-card-width: 216px;
    --expert-card-gap: 54px;                                /* cards 270px apart */
    --expert-badge: 45px;
    --expert-badge-right: 21.1%;                            /* badge 38px in from the photo's right edge at 180px */
    --expert-badge-bg: #b0c4de;                             /* Light Cloud Blue (palette); navy arrow 5.9:1 */
    --expert-name-space: 18px;
    --expert-role-space: 18px;
    --expert-initials: 2.5rem;

    /* Expert enquiry pop-up */
    --expert-dialog-width: 760px;
    --expert-dialog-margin: 16px;
    --expert-dialog-padding: 40px 46px;
    --expert-dialog-padding-sm: 1.5rem 1rem 2rem;
    --expert-dialog-backdrop: rgba(51, 63, 80, 0.7);
    --lightbox-bg: rgba(33, 41, 52, 0.96);                   /* the gallery lightbox: navy, darkened */
    --lightbox-gutter: 72px;                                /* room for the arrows beside the photo from 768px */
    --lightbox-caption-space: 80px;                         /* room under the photo for its caption */

    /* Leadership team (About; common-elements 4.9) */
    --team-padding: 40px;                                   /* above and below the section */
    --team-heading-space: 28px;                             /* cards 70px below the heading's top, as designed */
    --team-card-width: 270px;                               /* photos exactly 270 × 290 */
    --team-card-gap: 20px;
    --team-card-gap-lg: 12px;                               /* 1200–1399: four 270px cards fill the 1116px container */
    --team-card-border: rgba(51, 63, 80, 0.2);              /* faint navy edge */
    --team-strip-bg: var(--color-navy-85);
    --team-strip-padding: 7px 13px 13px;                    /* strip at least 63px: name 7px from its top */
    --team-name-line: 1.25rem;                              /* 20px on 16px */
    --team-role-line: 1.125rem;                             /* 18px on 14px */
    --team-role-space: 5px;
    --team-initials: 3.5rem;
    --team-strip-min: 63px;                                 /* keeps initials centred above a one-line strip */

    /* Careers (Contact; common-elements 6) */
    --careers-padding: 40px;                                /* above and below the band */
    --careers-text-width: 600px;
    --careers-gap: 48px;                                    /* 600 + 48 + 630 = the 1278px container */
    --careers-image-width: 630px;                           /* photo exactly 630 × 380 */
    --careers-text-share: 600fr;                            /* columns from 992px: 600 / 630 at 1440 */
    --careers-photo-share: 630fr;
    --careers-tag-space: 36px;                              /* tag to heading */
    --careers-heading-space: 24px;                          /* heading to text */
    --careers-link-space: 48px;                             /* text to the email link */
    --careers-stack-gap: 2rem;                              /* text to photo below 992px */

    /* Our offices (Contact; common-elements 6) */
    --offices-padding: 40px;                                /* above and below the band */
    --offices-heading-space: 25px;                          /* heading to the map and list */
    --offices-map-width: 580px;                             /* the map is 580 × 512 at 1440 */
    --province-fill: #7a7a7a;                               /* provinces without an office (design's grey) */
    --province-line: var(--color-navy);
    --province-line-width: 1.5;                             /* in the map's own units (about 1.75px at 580 wide) */
    --province-office: var(--color-navy);
    --province-active: var(--color-gold);                   /* the open or pointed-at office's province */
    --province-speed: 0.2s;
    --offices-map-share: 580fr;                             /* columns from 992px: 580 / 165 / 533 at 1440 */
    --offices-gap-share: 165fr;
    --offices-list-share: 533fr;
    --offices-stack-gap: 2rem;                              /* list to map below 992px */
    --office-active: var(--color-boat-blue);
    --office-inactive: rgba(51, 63, 80, 0.5);               /* navy at 50%: fails contrast, as designed (common-elements 2.1a) */
    --office-name-line: 1.24;                               /* 31px on 25px */
    --office-detail-size: 1.125rem;                         /* 18px */
    --office-detail-line: 1.278;                            /* 23px on 18px */
    --office-detail-space: 18px;                            /* name to phone */
    --office-line-space: 19px;                              /* phone to address */
    --office-rule-space: 16px;                              /* name or details to the rule below */
    --office-gap: 20px;                                     /* rule to the next office */
}


/* Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-height);
}

/* Stops the page scrolling behind the open small-screen menu (header.js). */
.scroll-lock {
    overflow: hidden;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-body);
    font-weight: var(--weight-light);
    line-height: var(--leading-body);
    color: var(--color-navy);
    background: var(--color-white);
}

img,
video,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    color: var(--color-white);
    background: var(--color-navy);
}

.skip-link:focus {
    top: 1rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

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


/* Typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
    margin: 0 0 0.75em;
    font-weight: var(--weight-light);
    line-height: 1.2;
}

h1 {
    font-size: var(--text-h1);
    font-weight: var(--weight-regular);
}

h2 {
    font-size: var(--text-h2);
}

p {
    margin: 0 0 var(--paragraph-space);
}


/* Layout
   ========================================================================== */

@media (min-width: 1400px) {
    .container {
        max-width: var(--container-max);
    }
}

.page-content {
    padding-top: 3rem;
    padding-bottom: 3rem;
}


/* Components: text link
   The site's only button style. Uppercase label with an underline.
   ========================================================================== */

.text-link {
    display: inline-block;
    padding-bottom: 0.35em;
    font-size: var(--text-label);
    font-weight: var(--weight-regular);
    line-height: 1.2;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-navy);
    border-bottom: 1px solid currentColor;
}

.text-link--sm {
    font-size: var(--text-sm);
}

.text-link--xs {
    font-size: var(--text-xs);
}

.text-link--gold {
    color: var(--color-gold);
}

.text-link--white {
    color: var(--color-white);
}

/* On hover the underline draws itself from left to right: the border hides
   and a 1px line in its place grows to full width. The buttons styled as text
   links (Submit, the course links, the cookie banner's) share it. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .text-link:hover,
    .cookie-banner__button:hover {
        border-bottom-color: transparent;
        background-image: linear-gradient(currentColor, currentColor);
        background-repeat: no-repeat;
        background-position: left bottom;
        background-origin: border-box;
        background-size: 100% 1px;
        animation: text-link-draw var(--text-link-draw-speed) ease-out;
    }
}

@keyframes text-link-draw {
    from {
        background-size: 0 1px;
    }
}


/* Components: site header
   Navy bar with the logo and main menu, on every page. It sticks to the top;
   header.js hides it on scroll down and adds the dropdown and menu behaviour.
   Below 1200px the menu opens as a full-height panel from the menu button.
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    color: var(--color-white);
    background: var(--color-navy);
    transition: transform var(--header-speed) ease;
}

.site-header--hidden {
    transform: translateY(-100%);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height-sm);
}

/* Logo */

.site-logo {
    display: block;
    flex-shrink: 0;
}

.site-logo__image {
    width: var(--logo-width-sm);
    height: auto;
}

/* Menu button (small screens) */

.site-header__menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tap-target);
    height: var(--tap-target);
    margin-right: -0.625rem;
    padding: 0;
    color: var(--color-white);
    background: none;
    border: 0;
    cursor: pointer;
}

.site-header__menu-icon,
.site-header__menu-icon::before,
.site-header__menu-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform var(--header-speed) ease, background-color var(--header-speed) ease;
}

.site-header__menu-icon {
    position: relative;
}

.site-header__menu-icon::before,
.site-header__menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.site-header__menu-icon::before {
    top: -7px;
}

.site-header__menu-icon::after {
    top: 7px;
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-icon {
    background-color: transparent;
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-icon::before {
    transform: translateY(7px) rotate(45deg);
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-icon::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* Main menu: small screens (full-height panel) */

.site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-height-sm));
    height: calc(100dvh - var(--header-height-sm));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--color-navy);
    border-top: 1px solid var(--menu-line);
}

.site-header--menu-open .site-nav {
    display: block;
}

.site-nav__list {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0.5rem;
    padding-bottom: 3rem;
    list-style: none;
}

.site-nav__item {
    border-bottom: 1px solid var(--menu-line);
}

.site-nav__item--has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.site-nav__link {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 0;
    font-family: inherit;
    font-size: var(--text-md);
    font-weight: var(--weight-regular);
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    color: var(--color-white);
    background: none;
    border: 0;
    cursor: pointer;
}

.site-nav__toggle--icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: var(--tap-target);
    height: var(--tap-target);
    margin-right: -0.625rem;
    padding: 0;
    color: var(--color-white);
    background: none;
    border: 0;
    cursor: pointer;
}

.site-nav__chevron {
    flex-shrink: 0;
    width: 14px;
    height: auto;
    transition: transform var(--header-speed) ease;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__chevron {
    transform: rotate(180deg);
}

.site-nav__submenu {
    display: none;
    width: 100%;
    margin: 0;
    padding: 0 0 1rem 1rem;
    list-style: none;
}

.site-nav__item--open > .site-nav__submenu {
    display: block;
}

.site-nav__sublink {
    display: block;
    padding: 0.625rem 0;
    font-size: var(--text-nav);
    font-weight: var(--weight-regular);
    line-height: 1.25;
    text-decoration: none;
    color: var(--color-white);
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__toggle:hover,
.site-nav__toggle:focus-visible,
.site-nav__sublink:hover,
.site-nav__sublink:focus-visible {
    color: var(--color-gold);
}

/* The page being shown is gold: its own item, or the Services or Sectors
   item for one of their pages, and the page itself in the dropdown. */
.site-nav__item--current > .site-nav__link,
.site-nav__item--current > .site-nav__toggle,
.site-nav__sublink[aria-current="page"] {
    color: var(--color-gold);
}

/* Main menu: desktop (bar with dropdowns) */

@media (min-width: 1200px) {
    /* The menu fills the space beside the logo, with its items spread evenly
       across it (as in the design). With more items, the spaces shrink;
       only when they reach --nav-gap do items wrap onto a second line,
       and the bar grows taller instead of items overlapping. */
    .site-header__inner {
        gap: var(--header-gap);
        height: auto;
        min-height: var(--header-height);
    }

    .site-logo__image {
        width: var(--logo-width);
    }

    .site-header__menu-toggle {
        display: none;
    }

    .site-nav {
        display: block;
        position: static;
        flex: 1 1 auto;
        min-width: 0;
        height: auto;
        overflow: visible;
        background: none;
        border-top: 0;
    }

    .site-nav__list {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: var(--nav-row-gap) var(--nav-gap);
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .site-nav__item {
        position: relative;
        display: flex;
        flex-shrink: 0;
        align-items: center;
        border-bottom: 0;
    }

    .site-nav__item--has-children {
        flex-wrap: nowrap;
    }

    .site-nav__link {
        flex: none;
        justify-content: flex-start;
        gap: 0.4375rem;
        padding: 0;
        font-size: var(--text-nav);
        line-height: var(--nav-line);
        white-space: nowrap;
    }

    .site-nav__toggle--icon {
        width: 1.5rem;
        height: var(--nav-line);
        margin-right: -0.5rem;
    }

    .site-nav__chevron {
        width: 8px;
    }

    .site-nav__submenu {
        position: absolute;
        top: calc(100% + var(--dropdown-offset));
        left: -1.5rem;
        width: max-content;
        min-width: 16rem;
        padding: 0.75rem 0;
        background: var(--color-navy);
        border-top: var(--dropdown-rule) solid var(--color-gold);
        box-shadow: var(--dropdown-shadow);
    }

    /* Fills the gap between the menu label and the dropdown, so the
       dropdown stays open while the pointer moves down to it. */
    .site-nav__submenu::before {
        content: "";
        position: absolute;
        right: 0;
        bottom: 100%;
        left: 0;
        height: calc(var(--dropdown-offset) + var(--dropdown-rule));
    }

    .site-nav__sublink {
        padding: 0.625rem 1.5rem;
    }

    /* Without header.js, dropdowns open on hover and keyboard focus. */
    .site-header:not(.site-header--js) .site-nav__item--has-children:hover > .site-nav__submenu,
    .site-header:not(.site-header--js) .site-nav__item--has-children:focus-within > .site-nav__submenu {
        display: block;
    }
}

@media (min-width: 1400px) {
    .site-header__inner {
        gap: var(--header-gap-xxl);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header__menu-icon,
    .site-header__menu-icon::before,
    .site-header__menu-icon::after,
    .site-nav__chevron {
        transition: none;
    }
}

/* Without JavaScript on small screens, the menu is shown open below the logo
   and the header scrolls away with the page. */
@media (scripting: none) and (max-width: 1199.98px) {
    .site-header {
        position: static;
    }

    .site-header__inner {
        flex-wrap: wrap;
        height: auto;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .site-header__menu-toggle,
    .site-nav__chevron {
        display: none;
    }

    .site-nav {
        display: block;
        position: static;
        width: 100%;
        height: auto;
        margin-top: 0.75rem;
        overflow: visible;
    }

    .site-nav__list {
        padding-right: 0;
        padding-left: 0;
    }

    .site-nav__submenu {
        display: block;
    }
}


/* Components: site footer
   Charcoal band on every page: contact details, social and legal links,
   copyright line, and the globe mark at the right edge. Columns
   stack on small screens, where links get full-size tap targets; from
   1200px the spacing follows the Figma footer exactly (224px tall).
   ========================================================================== */

.site-footer {
    position: relative;
    overflow: hidden;
    font-size: var(--text-sm);
    font-weight: var(--weight-light);
    line-height: var(--footer-line);
    color: var(--color-white);
    background: var(--color-charcoal);
}

.site-globe {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--footer-globe-width-sm);
    height: auto;
    opacity: var(--footer-globe-opacity);
    pointer-events: none;
}

.site-footer__inner {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}

.site-footer__columns {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.site-footer__heading {
    margin: 0 0 0.75rem;
    font-size: var(--text-md);
    font-weight: var(--weight-medium);
    line-height: 1.25;
}

.site-footer__contact {
    padding-top: 0.25rem;
}

.site-footer__address {
    margin: 0 0 1rem;
}

.site-footer__list,
.site-footer__legal-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.25em;
}

.site-footer__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-target);
    color: inherit;
    text-decoration: none;
}

.site-footer__link--underlined {
    text-decoration: underline;
}

/* Contact lines stay close together, as in the design; 24px targets. */
.site-footer__line .site-footer__link {
    min-height: var(--tap-target-sm);
}

/* The list's negative margin lines the first icon up with the text. */
.site-footer__social-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--social-gap-sm);
    margin: 0 0 0 calc((var(--social-icon) - var(--tap-target)) / 2);
    padding: 0;
    list-style: none;
}

.site-footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tap-target);
    height: var(--tap-target);
    color: var(--color-white);
}

/* The tap area already surrounds the icon; this keeps the focus outline
   inside the footer at the page edge. */
.site-footer__social:focus-visible {
    outline-offset: 0;
}

.site-footer__social-icon {
    width: var(--social-icon);
    height: var(--social-icon);
}

.site-footer__link:hover,
.site-footer__link:focus-visible,
.site-footer__social:hover,
.site-footer__social:focus-visible {
    color: var(--color-gold);
}

.site-footer__legal-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-left: -0.5rem;
}

.site-footer__legal-item {
    display: flex;
    align-items: center;
}

/* Divider between legal links, drawn as a line so screen readers skip it. */
.site-footer__legal-item + .site-footer__legal-item::before {
    content: "";
    width: 1px;
    height: 0.9em;
    background: currentColor;
}

.site-footer__link--legal {
    justify-content: center;
    min-width: var(--tap-target);
    padding: 0 0.5rem;
}

/* "Cookie settings": shown by consent.js (the item is display: flex, so
   [hidden] needs its own rule). */
.site-footer__legal-item[hidden] {
    display: none;
}

/* No divider when it starts a line of its own (marked by consent.js). */
.site-footer__legal-item + .site-footer__legal-item--line-start::before {
    display: none;
}

/* A button (it reopens the cookie banner) that looks like the links beside it. */
.site-footer__cookies {
    margin: 0;
    font: inherit;
    background: none;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

.site-footer__copyright {
    margin: 0;
    font-size: var(--text-copyright);
    font-weight: var(--weight-regular);
    line-height: var(--copyright-line);
}

.site-footer__columns + .site-footer__copyright {
    margin-top: 2rem;
}

/* With no columns above it, the copyright line keeps clear of the globe. */
.site-footer__copyright:first-child {
    padding-right: var(--footer-globe-width-sm);
}

@media (min-width: 768px) {
    .site-globe {
        width: var(--footer-globe-width-md);
    }

    .site-footer__columns {
        flex-direction: row;
        gap: 0;
        padding-right: var(--footer-globe-width-md);
    }

    .site-footer__column--contact {
        flex: 0 0 var(--footer-column-width);
        padding-right: 1.5rem;
    }

    .site-footer__copyright:first-child {
        padding-right: var(--footer-globe-width-md);
    }
}

@media (min-width: 1200px) {
    .site-globe {
        top: 1px;
        width: var(--footer-globe-width);
    }

    .site-footer__inner {
        padding-top: 1.1875rem;
        padding-bottom: 0.8125rem;
    }

    .site-footer__columns {
        padding-right: 0;
    }

    /* 24px lines for every link: WCAG 2.2's smallest target size. */
    .site-footer__link,
    .site-footer__line .site-footer__link {
        min-height: var(--tap-target-sm);
    }

    .site-footer__legal-list {
        margin-left: 0;
    }

    .site-footer__legal-item + .site-footer__legal-item::before {
        margin: 0 0.3em;
    }

    .site-footer__link--legal {
        min-width: 0;
        padding: 0;
    }

    .site-footer__social-list {
        gap: var(--social-gap);
        margin-left: 0;
    }

    .site-footer__social {
        width: var(--social-icon);
        height: var(--social-icon);
    }

    .site-footer__social:focus-visible {
        outline-offset: 3px;
    }

    .site-footer__legal {
        margin-top: 0.5625rem;
    }

    .site-footer__columns + .site-footer__copyright {
        margin-top: 1.25rem;
    }

    .site-footer__copyright:first-child {
        padding-right: 0;
    }
}


/* Components: cookie banner
   A navy bar fixed to the bottom of every page while the site has tracking
   to ask about (inc/consent.php, template-parts/cookie-banner.php). Shown by
   consent.js; being fixed, it moves nothing on the page when it appears.
   While it shows, the footer gets space at the bottom of the bar's height
   (--cookie-banner-height, set by consent.js), so it never hides the footer.
   - Below 768px: the message, then Accept and Decline under it.
   - From 768px: one row on the site container, the links on the right.
   It sits under the header and its phone menu; the enquiry pop-up and the
   gallery lightbox open above it. No animation.
   ========================================================================== */

.cookie-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: var(--z-cookie-banner);
    padding: var(--cookie-banner-padding-y) 0;
    color: var(--color-white);
    background: var(--color-navy);
}

.cookie-banner-open .site-footer {
    padding-bottom: var(--cookie-banner-height, 0px);
}

/* Links and fields reached with the keyboard scroll clear of the bar. */
.cookie-banner-open {
    scroll-padding-bottom: var(--cookie-banner-height, 0px);
}

.cookie-banner__inner {
    display: flex;
    flex-direction: column;
}

.cookie-banner__message {
    margin: 0;
    font-size: var(--text-body);
    font-weight: var(--weight-light);
    line-height: var(--leading-body);
}

.cookie-banner__privacy {
    color: inherit;
    text-decoration: underline;
}

.cookie-banner__privacy:hover {
    color: var(--color-gold);
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    column-gap: var(--cookie-banner-links-gap);
}

/* The text link style (14px) on a button, with a 44px tap area below 1200px. */
.cookie-banner__button {
    display: inline-flex;
    align-items: flex-end;
    min-height: var(--tap-target);
    margin: 0;
    padding: 0 0 0.35em;
    font-family: inherit;
    font-size: var(--text-label);
    font-weight: var(--weight-regular);
    line-height: 1.2;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--color-white);
    background: none;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    cursor: pointer;
}

.cookie-banner__button--accept {
    color: var(--color-gold);
}

/* From 768px the links sit beside the message, or drop under it when long
   wording leaves the message too narrow. */
@media (min-width: 768px) {
    .cookie-banner__inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        column-gap: var(--cookie-banner-gap);
    }

    .cookie-banner__message {
        flex: 1 1 var(--cookie-banner-message-min);
    }

    .cookie-banner__actions {
        flex: 0 0 auto;
        flex-wrap: nowrap;
    }
}

@media (min-width: 1200px) {
    .cookie-banner {
        padding: var(--cookie-banner-padding-y-lg) 0;
    }

    .cookie-banner__button {
        min-height: var(--tap-target-sm);
    }
}


/* Components: page hero
   Top of every page: background image (video on Home) with the h1 on a
   navy box. Phones: the image sits above the box, which is solid navy so the
   text stays readable. From 768px the box sits on the image, bottom left.
   Markup: template-parts/page-hero.php.
   ========================================================================== */

.page-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    color: var(--color-white);
    background: var(--color-navy);
}

.page-hero__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.page-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-shade);
}

.page-hero__image,
.page-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero__video {
    display: none;
}

/* Home with a video but no still image: no empty band on phones. */
.page-hero--no-image .page-hero__media {
    display: none;
}

.page-hero__box {
    position: relative;
    padding: 1.5rem 0.75rem 2rem;
}

.page-hero__title {
    margin: 0 0 1.125rem;
    overflow-wrap: break-word;
}

.page-hero__subheading {
    margin: 0 0 0.625rem;
    font-size: var(--text-subheading);
    font-weight: var(--weight-regular);
    line-height: 1.25;
}

.page-hero__intro p {
    margin: 0 0 var(--paragraph-space);
}

.page-hero__intro p:last-child {
    margin-bottom: 0;
}

.page-hero__link {
    margin-top: 1.5rem;
}

.page-hero--home .page-hero__title {
    margin-bottom: 0.8125rem;
}

/* From 768px the hero is its set height, but never taller than the screen
   below the header, so the box shows in full on short laptop screens. It
   still grows when its text needs more room. */
@media (min-width: 768px) {
    .page-hero {
        min-height: min(var(--hero-height), calc(100vh - var(--header-height-sm)));
        min-height: min(var(--hero-height), calc(100svh - var(--header-height-sm)));
        justify-content: flex-end;
    }

    .page-hero__media,
    .page-hero--no-image .page-hero__media {
        position: absolute;
        inset: 0;
        display: block;
        aspect-ratio: auto;
    }

    .page-hero__video {
        display: block;
    }

    .page-hero__box {
        width: var(--hero-box-width);
        max-width: 100%;
        min-height: var(--hero-box-height);
        padding: 2.125rem 2.25rem 2.1875rem 2.3125rem;
        background: var(--hero-box-bg);
    }

    .page-hero--home .page-hero__box {
        width: var(--hero-box-width-home);
        min-height: var(--hero-box-height-home);
        padding: 0.75rem 1.875rem 1.25rem 1.75rem;
        background: var(--hero-box-bg-home);
    }

    .page-hero--home .page-hero__link {
        margin-top: 1rem;
    }
}

@media (min-width: 1200px) {
    .page-hero--home {
        min-height: min(var(--hero-height-home), calc(100vh - var(--header-height)));
        min-height: min(var(--hero-height-home), calc(100svh - var(--header-height)));
    }
}

/* Every page but Home, with a photo: the photo is uploaded at exactly
   1920 × 715 and always shown whole, the band as tall as the photo at the
   screen's width (536px at 1440). Below 1200px the photo sits above the
   solid navy box (the band would be too short for the box); from 1200px
   the box sits on the photo, bottom left. A photo of another shape is shown
   whole too, with navy around it. */
.page-hero--photo .page-hero__media {
    aspect-ratio: var(--hero-photo-ratio);
}

.page-hero--photo .page-hero__image {
    object-fit: contain;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .page-hero--photo {
        min-height: 0;
    }

    .page-hero--photo .page-hero__media {
        position: relative;
        inset: auto;
        aspect-ratio: var(--hero-photo-ratio);
    }

    .page-hero--photo .page-hero__box {
        width: 100%;
        min-height: 0;
        background: var(--color-navy);
    }
}

@media (min-width: 1200px) {
    .page-hero--photo {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
        min-height: 0;
    }

    .page-hero--photo .page-hero__media,
    .page-hero--photo .page-hero__box {
        grid-area: 1 / 1;
    }

    .page-hero--photo .page-hero__media {
        position: relative;
        inset: auto;
        align-self: start;
        aspect-ratio: var(--hero-photo-ratio);
    }

    .page-hero--photo .page-hero__box {
        align-self: end;
        justify-self: start;
    }
}


/* Components: carousel
   A sideways-scrolling row with arrow buttons (gold circles). The row
   scrolls by touch, trackpad and keyboard on its own; carousel.js shows
   the arrows when there's more than fits. Phones: arrows centred below the
   row. From 768px: arrows either side, their circles on the container edges.
   Markup: template-parts/logo-carousel.php, template-parts/carousel-arrow.php.
   ========================================================================== */

.carousel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem var(--carousel-arrow-gap);
}

.carousel__track {
    display: flex;
    flex: 0 0 100%;
    order: -1;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    list-style: none;
}

.carousel__track > * {
    flex: none;
    scroll-snap-align: start;
}

/* With the arrows available, the row's own scrollbar is hidden. */
.carousel--js .carousel__track {
    scrollbar-width: none;
}

.carousel--js .carousel__track::-webkit-scrollbar {
    display: none;
}

.carousel__arrow {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: var(--tap-target);
    height: var(--tap-target);
    padding: 0;
    color: var(--color-white);
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.carousel__arrow[hidden] {
    display: none;
}

.carousel__arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--carousel-arrow);
    height: var(--carousel-arrow);
    background: var(--color-gold);
    border-radius: 50%;
}

.carousel__arrow-icon {
    width: 8px;
    height: 14px;
}

@media (min-width: 768px) {
    .carousel {
        flex-wrap: nowrap;
    }

    .carousel__track {
        flex: 1 1 0;
        order: 0;
    }

    .carousel__arrow--prev {
        margin-left: calc((var(--carousel-arrow) - var(--tap-target)) / 2);
    }

    .carousel__arrow--next {
        margin-right: calc((var(--carousel-arrow) - var(--tap-target)) / 2);
    }
}


/* Components: logo tile
   A logo fitted and centred in a 195 × 70 bordered box (165 × 50 logo
   area), whatever the logo's shape. Used in the Home carousel and the
   Partnerships grids. Markup: template-parts/logo-tile.php.
   ========================================================================== */

.logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--logo-tile-width);
    height: var(--logo-tile-height);
    padding: var(--logo-tile-padding-y) var(--logo-tile-padding-x);
    border: 1px solid var(--logo-tile-border);
    border-radius: var(--radius-md);
}

.logo-tile__image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
}

/* A logo with a website: the whole tile is the link (new tab). The focus
   ring is drawn inside the tile, as a scrolling row clips anything outside. */
.logo-tile--link {
    padding: 0;
    transition: border-color 0.2s ease;
}

.logo-tile__link {
    position: relative;                                     /* keeps the hidden "(opens in a new tab)" inside the scrolling row */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: var(--logo-tile-padding-y) var(--logo-tile-padding-x);
    border-radius: inherit;
}

.logo-tile__link:focus-visible {
    outline-offset: -4px;
}

.logo-tile--link:hover {
    border-color: var(--color-gold);
}

@media (prefers-reduced-motion: reduce) {
    .logo-tile--link {
        transition: none;
    }
}


/* Components: Trusted by (Home)
   Navy band with a heading and the logo carousel.
   Markup: template-parts/logo-carousel.php.
   ========================================================================== */

.logo-carousel {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    color: var(--color-white);
    background: var(--color-navy);
}

.logo-carousel__heading {
    margin-bottom: 1.875rem;
}

/* The row is a whole number of logos wide, so no logo is ever cut off at
   its edge; each arrow press moves by exactly the logos in view. The row is
   centred in the space it has (below the arrows on phones, between them
   from 768px) and its logos are centred when they all fit. Browsers
   without CSS round() show the full-width row instead. */
.logo-carousel .carousel {
    --logo-step: calc(var(--logo-tile-width) + var(--logo-tile-gap));
    --logo-space: 100cqw;
    container-type: inline-size;
}

.logo-carousel__list {
    --logo-row: calc(round(down, var(--logo-space) + var(--logo-tile-gap), var(--logo-step)) - var(--logo-tile-gap));
    flex: 0 0 var(--logo-row);
    justify-content: safe center;
    gap: var(--logo-tile-gap);
    margin-inline: calc((var(--logo-space) - var(--logo-row)) / 2);
}

@media (min-width: 768px) {
    .logo-carousel .carousel {
        --logo-space: calc(100cqw - var(--tap-target) - var(--carousel-arrow) - 2 * var(--carousel-arrow-gap));
    }
}


/* Components: logo groups (Partnerships)
   Navy band holding the Partners and Associations groups: a heading and a
   grid of logo tiles each. Columns: 2, 3 from 768px, 4 from 992px, 6 from
   1200px. Tiles are at most 195px wide and narrower only where the screen
   is too tight. Markup: templates/partnerships.php, template-parts/logo-grid.php.
   ========================================================================== */

.logo-band {
    padding-top: 1.5rem;
    padding-bottom: 1.875rem;
    color: var(--color-white);
    background: var(--color-navy);
}

.logo-group + .logo-group {
    margin-top: 1.875rem;
}

.logo-group__heading {
    margin-bottom: 2rem;
}

.logo-group__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, var(--logo-tile-width)));
    gap: var(--logo-tile-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.logo-group__grid .logo-tile {
    width: auto;
}

@media (min-width: 768px) {
    .logo-group__grid {
        grid-template-columns: repeat(3, minmax(0, var(--logo-tile-width)));
    }
}

@media (min-width: 992px) {
    .logo-group__grid {
        grid-template-columns: repeat(4, minmax(0, var(--logo-tile-width)));
    }
}

@media (min-width: 1200px) {
    .logo-group__grid {
        grid-template-columns: repeat(6, minmax(0, var(--logo-tile-width)));
    }
}


/* Components: intro and stats (overview)
   Home "Welcome", Sector "Overview" and About "Who is Pangea".
   Light (Home, Sector): gold-tinted band; text, then stats. From 1200px the
   text sits on the left (525px), a divider runs up the band and bends to the
   top edge, and the stats sit on the right. Navy (About): centred, gold.
   Stats flow in a row and wrap by their own width. Each stat's rule spans
   the wider of its number and label. Markup: template-parts/overview.php.
   ========================================================================== */

.overview {
    position: relative;
    overflow: hidden;
    color: var(--color-navy);
    background: var(--color-gold-tint);
}

.overview__globe {
    position: absolute;
    top: 1px;
    left: 0;
    width: var(--overview-globe-width-sm);
    height: auto;
    opacity: var(--overview-globe-opacity);
    pointer-events: none;
}

.overview__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--stat-row-gap);
    padding-top: var(--overview-padding-y);
    padding-bottom: var(--overview-padding-y);
}

.overview__text {
    max-width: var(--overview-intro-width);
}

.overview__heading {
    margin-bottom: 1rem;
}

.overview__intro {
    font-size: var(--text-body);
    font-weight: var(--weight-light);
    line-height: var(--leading-body);
}

.overview__intro p {
    margin-bottom: var(--paragraph-space);
}

.overview__intro p:last-child {
    margin-bottom: 0;
}

.overview__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--stat-row-gap) var(--stat-gap-sm);
    margin: 0;
    padding: 0;
    color: var(--color-boat-blue);
    list-style: none;
}

.overview__stat {
    display: flex;
    flex-direction: column;
}

.overview__number {
    padding-bottom: var(--stat-number-space);
    border-bottom: var(--stat-rule) solid currentColor;
    font-size: var(--text-stat);
    font-weight: var(--weight-regular);
    line-height: 1;
    white-space: nowrap;
}

.overview__label {
    max-width: var(--stat-label-max);
    padding-top: var(--stat-label-space);
    font-size: var(--text-stat-label);
    font-weight: var(--weight-regular);
    line-height: 1;
}

@media (min-width: 768px) {
    .overview__stats {
        column-gap: var(--stat-gap);
    }
}

/* Navy (About): everything centred, gold heading and stats, white text.
   Below 768px, where stats wrap onto their own rows, each stat is centred
   too; from 768px they sit in one row with their text left-aligned. */
.overview--navy {
    color: var(--color-white);
    background: var(--color-navy);
}

.overview--navy .overview__globe {
    top: 5px;
    opacity: var(--overview-globe-opacity-navy);
}

.overview--navy .overview__globe--start {
    left: calc(var(--overview-globe-offset-navy) / 2);
}

.overview--navy .overview__globe--end {
    right: 0;
    left: auto;
}

.overview--navy .overview__inner {
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.overview--navy .overview__text {
    max-width: var(--overview-intro-width-navy);
}

.overview--navy .overview__heading {
    color: var(--color-gold);
}

.overview--navy .overview__stats {
    justify-content: center;
    color: var(--color-gold);
}

.overview--navy .overview__label {
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 768px) {
    .overview--navy .overview__stats {
        column-gap: var(--stat-gap-navy);
        text-align: left;
    }
}

@media (min-width: 1200px) {
    .overview__globe {
        width: var(--overview-globe-width);
    }

    .overview__inner {
        flex-direction: row;
        align-items: center;
        gap: 0;
        min-height: var(--overview-min-height);
        padding-top: var(--overview-padding-y-lg);
        padding-bottom: var(--overview-padding-y-lg);
    }

    /* The text keeps at least this width; extra stats wrap instead. */
    .overview__text {
        flex: 1 0 var(--overview-text-min);
    }

    .overview__stats {
        flex: 0 1 auto;
        margin-left: calc(var(--overview-text-to-divider) + var(--overview-divider-to-stats));
    }

    /* With no text beside them, the stats start at the container edge. */
    .overview__stats:first-child {
        margin-left: 0;
    }

    /* Divider: a line from the bottom of the band up to the bend, then an
       angled line to the top edge. Both are placed against the first stat
       (their static position) and span the band's height (the inner box). */
    .overview--divided .overview__stats::before,
    .overview--divided .overview__stats::after {
        content: "";
        position: absolute;
        top: var(--overview-divider-top);
        margin-left: calc(var(--overview-divider-to-stats) * -1);
        background: currentColor;
    }

    .overview--divided .overview__stats::before {
        bottom: 0;
        width: var(--overview-divider-line);
    }

    .overview--divided .overview__stats::after {
        width: var(--overview-divider-slope);
        height: var(--overview-divider-line);
        transform: rotate(var(--overview-divider-angle));
        transform-origin: 0 0;
    }

    .overview--navy .overview__globe {
        width: var(--overview-globe-width-navy);
    }

    .overview--navy .overview__globe--start {
        left: var(--overview-globe-offset-navy);
    }

    .overview--navy .overview__inner {
        flex-direction: column;
        gap: 2rem;
    }

    .overview--navy .overview__text {
        flex: none;
    }

    .overview--navy .overview__stats {
        margin-left: 0;
    }
}

@media (min-width: 1400px) {
    .overview__text {
        flex-basis: var(--overview-intro-width);
    }
}


/* Components: Our services (Home)
   A heading and a row of service cards that runs edge to edge: a photo
   above a navy strip with the name and a "View service" link. One column on
   phones, two from 768px, one row from 1200px (cards share the width, up to
   480px each). The photo is shown whole, scaled down (uploaded at exactly
   960 × 840: 360 × 315 at 1440). The link covers the whole card. Without a
   photo the card is plain navy. Markup: template-parts/services-grid.php, service-card.php.
   ========================================================================== */

.services-grid {
    padding-top: 2.5rem;
    background: var(--color-white);
}

.services-grid__heading {
    margin-bottom: var(--services-heading-space);
    text-align: center;
}

.services-grid__list {
    display: flex;
    flex-direction: column;
    gap: var(--service-card-line);
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--color-white);
    background: var(--color-navy);
}

.service-card__media {
    aspect-ratio: var(--service-card-photo-ratio);
    overflow: hidden;
    background: var(--color-navy);
}

.service-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--service-card-speed) ease;
}

.service-card__body {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.875rem;
    min-height: var(--service-card-strip-height);
    padding: 1.125rem 1.5rem 1rem;
    text-align: center;
}

.service-card__title {
    max-width: var(--service-card-title-width);
    margin: 0;
    font-size: var(--text-nav);
    font-weight: var(--weight-light);
    line-height: 1.25;
}

.service-card__link {
    transition: color var(--service-card-speed) ease;
}

/* Stretches the link over the whole card: one click target, one tab stop. */
.service-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.service-card__link:focus-visible {
    outline: none;
}

/* Gold ring inside the card, with a navy edge so it shows on any photo. */
.service-card__link:focus-visible::after {
    box-shadow:
        inset 0 0 0 2px var(--color-gold),
        inset 0 0 0 4px var(--color-navy);
}

.service-card:hover .service-card__image,
.service-card:focus-within .service-card__image {
    transform: scale(var(--service-card-zoom));
}

.service-card:hover .service-card__link,
.service-card:focus-within .service-card__link {
    color: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
    .service-card__image,
    .service-card__link {
        transition: none;
    }

    .service-card:hover .service-card__image,
    .service-card:focus-within .service-card__image {
        transform: none;
    }
}

@media (min-width: 768px) {
    .services-grid__list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .services-grid__item {
        flex: 0 0 calc(50% - var(--service-card-line) / 2);
    }
}

@media (min-width: 1200px) {
    .services-grid__list {
        flex-wrap: nowrap;
    }

    .services-grid__item {
        flex: 1 1 0;
        max-width: var(--service-card-max);
    }
}


/* Components: PMO Solutions (Home, PMO Solutions page)
   A heading on a navy glass card above the PMO wheel image, over a background
   photo (a gold-tinted band without one). The wheel image is supplied
   ready-made and scales down to fit on smaller screens.
   Markup: template-parts/pmo-wheel.php.
   ========================================================================== */

.pmo {
    position: relative;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    overflow: hidden;
    background: var(--color-navy);
}

.pmo--plain {
    background: var(--color-gold-tint);
}

.pmo__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pmo__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pmo__heading {
    min-width: min(var(--pmo-heading-width), 100%);
    max-width: 100%;
    min-height: var(--pmo-heading-height);
    margin: 0 0 1.5rem;
    padding: 0.625rem 2rem;
    border: 1px solid var(--pmo-glass-edge);
    border-radius: var(--radius-md);
    color: var(--color-white);
    text-align: center;
    background: var(--pmo-glass);
    box-shadow: var(--pmo-glass-shadow);
    -webkit-backdrop-filter: blur(var(--pmo-glass-blur));
    backdrop-filter: blur(var(--pmo-glass-blur));
}

.pmo__wheel {
    width: 100%;
    max-width: var(--pmo-wheel);
}

/* When the wheel links to a page: it zooms in a little on hover and focus,
   as the Services and Sector cards' photos do. */
.pmo__link {
    display: block;
    width: 100%;
    max-width: var(--pmo-wheel);
    border-radius: var(--radius-md);
}

.pmo__link .pmo__wheel {
    transition: transform var(--service-card-speed) ease;
}

.pmo__link:hover .pmo__wheel,
.pmo__link:focus-visible .pmo__wheel {
    transform: scale(var(--service-card-zoom));
}

/* Gold ring with a navy edge, so it shows on any photo. */
.pmo__link:focus-visible {
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--color-navy);
}

@media (prefers-reduced-motion: reduce) {
    .pmo__link .pmo__wheel {
        transition: none;
    }
}

@media (min-width: 768px) {
    .pmo {
        min-height: var(--pmo-height);
        padding-top: var(--pmo-heading-top);
    }

    .pmo__heading {
        margin-bottom: var(--pmo-wheel-space);
    }
}


/* Components: Sectors (Home)
   Navy band: heading, intro and arrow buttons, then a sideways-scrolling
   row of sector cards that runs to the right page edge. Each card: a photo
   (a slate panel without one), the name, a short description and a
   "View sector solutions" link that covers the whole card.
   Below 1200px the text sits above the row and the arrows are centred
   below it; from 1200px the text and arrows are a column beside the row.
   The section measures its own width (container query units), so the text
   and the row's start line up with the site container at every size.
   Markup: template-parts/sectors-carousel.php, sector-card.php.
   ========================================================================== */

.sectors {
    container-type: inline-size;
    --sectors-container: 100cqw;
    --sectors-edge: calc((100cqw - var(--sectors-container)) / 2 + 0.75rem);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    color: var(--color-white);
    background: var(--color-navy);
}

.sectors__text {
    padding-right: var(--sectors-edge);
    padding-left: var(--sectors-edge);
}

.sectors__heading {
    margin-bottom: 1rem;
}

.sectors__intro p:last-child {
    margin-bottom: 0;
}

.sectors__list {
    gap: var(--sector-card-gap);
    margin-top: 2rem;
    padding-right: var(--sectors-edge);
    padding-left: var(--sectors-edge);
    scroll-padding-inline: var(--sectors-edge);
}

.sectors__item {
    display: flex;
    width: min(var(--sector-card-width), var(--sector-card-peek));
}

.sectors__arrows {
    display: flex;
    justify-content: center;
    gap: var(--sectors-arrow-gap);
    padding-right: var(--sectors-edge);
    padding-left: var(--sectors-edge);
}

/* Space only once carousel.js has shown the arrows. */
.carousel--scrollable .sectors__arrows {
    margin-top: 1rem;
}

.sector-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sector-card__media {
    aspect-ratio: 380 / 300;
    overflow: hidden;
    background: var(--color-slate);
    border-radius: var(--radius-md);
}

.sector-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--sector-card-speed) ease;
}

.sector-card__body {
    flex: 1 0 auto;
    padding-top: var(--sector-card-title-space);
    padding-bottom: var(--sector-card-link-space);
}

.sector-card__title {
    margin: 0;
    font-size: var(--text-sector-title);
    font-weight: var(--weight-regular);
    line-height: 1.2;
}

.sector-card__text {
    margin: var(--sector-card-text-space) 0 0;
}

.sector-card__link {
    align-self: flex-start;
    transition: color var(--sector-card-speed) ease;
}

/* Stretches the link over the whole card: one click target, one tab stop. */
.sector-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: var(--radius-md);
}

.sector-card__link:focus-visible {
    outline: none;
}

/* Gold ring around the card, with a navy edge so it shows over the photo. */
.sector-card__link:focus-visible::after {
    box-shadow:
        inset 0 0 0 2px var(--color-gold),
        inset 0 0 0 4px var(--color-navy);
}

/* The photo zooms in a little, as on the Services grid (inside its rounded
   frame, which clips it). */
.sector-card:hover .sector-card__image,
.sector-card:focus-within .sector-card__image {
    transform: scale(var(--service-card-zoom));
}

.sector-card:hover .sector-card__link,
.sector-card:focus-within .sector-card__link {
    color: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
    .sector-card__image,
    .sector-card__link {
        transition: none;
    }
}

@media (min-width: 576px) {
    .sectors {
        --sectors-container: 540px;
    }
}

@media (min-width: 768px) {
    .sectors {
        --sectors-container: 720px;
    }

    .sectors__item {
        width: var(--sector-card-width);
    }
}

@media (min-width: 992px) {
    .sectors {
        --sectors-container: 960px;
    }
}

@media (min-width: 1200px) {
    .sectors {
        --sectors-container: 1140px;
        padding-top: var(--sectors-padding-y-lg);
        padding-bottom: var(--sectors-padding-y-lg);
    }

    .sectors__inner {
        display: grid;
        grid-template-columns: var(--sectors-text-width) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        align-items: start;
        column-gap: var(--sectors-column-gap);
        padding-left: var(--sectors-edge);
    }

    .sectors__text {
        grid-column: 1;
        grid-row: 1;
        padding-right: 0;
        padding-left: 0;
    }

    .sectors__list {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin-top: 0;
        padding-left: 0;
        scroll-padding-inline: 0 var(--sectors-edge);
    }

    .sectors__arrows {
        grid-column: 1;
        grid-row: 2;
        padding-right: 0;
        padding-left: 0;
    }

    .carousel--scrollable .sectors__arrows {
        margin-top: 1.5rem;
    }
}

@media (min-width: 1400px) {
    .sectors {
        --sectors-container: var(--container-max);
    }
}


/* Components: Testimonials (Home)
   White section: a centred heading, arrow buttons centred above the row,
   then a sideways-scrolling row of testimonial cards. One card sits in the
   middle with its neighbours showing at both edges; cards snap to the
   centre, and the row's side padding lets the first and last cards centre
   too. Each card: Ghost Stone White with a 4px border, the quote and who
   said it, and the company logo on a white circle (above the quote below
   1200px, on the right from 1200px, centred). Every card takes the
   height of the tallest card's content plus its padding. The arrows' row is reserved while scripts run, so nothing
   moves when carousel.js shows them; without scripts it isn't output.
   Markup: template-parts/testimonials-carousel.php, testimonial-card.php.
   ========================================================================== */

.testimonials {
    container-type: inline-size;
    --testimonials-card: min(var(--testimonial-width), 100cqw - 2 * (var(--testimonial-gap) + var(--testimonial-peek)));
    padding-top: var(--testimonials-padding-y);
    padding-bottom: var(--testimonials-padding-y);
    color: var(--color-navy);
    background: var(--color-white);
}

.testimonials__heading {
    margin-bottom: var(--testimonials-space);
    text-align: center;
}

.testimonials__arrows {
    display: none;
}

@media (scripting: enabled) {
    .testimonials__arrows {
        display: flex;
        justify-content: center;
        gap: var(--sectors-arrow-gap);
        min-height: var(--tap-target);
        margin-bottom: var(--testimonials-space);
    }
}

.testimonials__list {
    gap: var(--testimonial-gap);
    padding-right: calc((100cqw - var(--testimonials-card)) / 2);
    padding-left: calc((100cqw - var(--testimonials-card)) / 2);
}

.testimonials__list > * {
    scroll-snap-align: center;
}

/* Navy ring: the site's gold focus ring is too faint on white. Drawn
   inside the row, which clips anything outside it. */
.testimonials__list:focus-visible {
    outline-color: var(--color-navy);
    outline-offset: -2px;
}

.testimonials__item {
    display: flex;
    width: var(--testimonials-card);
}

.testimonial {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: var(--testimonial-padding);
    background: var(--color-ghost);
    border: var(--testimonial-border) solid var(--testimonial-border-colour);
}

.testimonial__logo {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: var(--testimonial-logo);
    height: var(--testimonial-logo);
    margin-bottom: 1.5rem;
    background: var(--color-white);
    border-radius: 50%;
}

.testimonial__image {
    width: var(--testimonial-logo-fill);
    height: auto;
}

.testimonial__quote {
    margin: 0;
    font-size: var(--text-quote);
    font-weight: var(--weight-light);
    line-height: var(--leading-quote);
}

.testimonial__quote p {
    margin: 0;
}

.testimonial__attribution {
    margin-top: 0.75rem;
    font-size: var(--text-quote-attribution);
    font-weight: var(--weight-medium);
    line-height: 1.5;
}

@media (min-width: 768px) {
    .testimonials {
        --testimonial-gap: var(--testimonial-gap-md);
        --testimonial-peek: var(--testimonial-peek-md);
        --testimonial-logo: var(--testimonial-logo-md);
        --testimonial-padding: var(--testimonial-padding-md);
        --text-quote: var(--text-md);
        --leading-quote: var(--leading-quote-md);
        --text-quote-attribution: var(--text-nav);
    }
}

@media (min-width: 1200px) {
    .testimonials {
        --testimonial-gap: var(--testimonial-gap-lg);
        --testimonial-peek: var(--testimonial-peek-lg);
        --testimonial-logo: var(--testimonial-logo-lg);
        padding-top: var(--testimonials-padding-y-lg);
        padding-bottom: var(--testimonials-padding-y-lg);
    }

    /* Quote and attribution centred in the left column; the circle in its
       own column, so it counts towards the card's height. */
    .testimonial {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 1fr auto auto 1fr;
        column-gap: var(--testimonial-logo-space-lg);
        padding: var(--testimonial-padding-lg);
    }

    .testimonial--logo {
        grid-template-columns: minmax(0, 1fr) var(--testimonial-logo);
        padding-right: var(--testimonial-padding-right-lg);
    }

    .testimonial__logo {
        grid-column: 2;
        grid-row: 1 / -1;
        align-self: center;
        margin-bottom: 0;
    }

    .testimonial__quote {
        grid-column: 1;
        grid-row: 2;
    }

    .testimonial__attribution {
        grid-column: 1;
        grid-row: 3;
    }
}


/* Components: Featured insights (Home, Pangea Insights page)
   White section: a centred heading, three insight cards and a centred
   "Visit Pangea Insights" link (Home). On the Pangea Insights page the
   cards sit under the hero with no visible heading and no link.
   From 1200px the large card (photo on top) is on the left and the other
   two sit on the right, each with a smaller copy of its photo beside the
   text, set in from the card's edges; the two side cards share one height
   and together match the large card. Below 1200px all three have the photo
   on top, one below the other, no wider than the photo (520px), so photos
   are never enlarged or cropped. Card heights follow their content. Without
   a photo the card has a slate panel. The link covers the whole card.
   Markup: template-parts/insights-featured.php, insight-card.php.
   ========================================================================== */

.insights-featured {
    padding-top: var(--insights-padding-y);
    padding-bottom: var(--insights-padding-y);
    color: var(--color-navy);
    background: var(--color-white);
}

/* Testimonials above already leave the 50px gap. */
.testimonials + .insights-featured {
    padding-top: 0;
}

/* Pangea Insights page: straight under the hero, 40px below it. */
.insights-featured--page {
    --insights-padding-y-lg: var(--insights-padding-y);
}

.insights-featured__heading {
    margin-bottom: var(--insights-heading-space);
    text-align: center;
}

.insights-featured__list {
    display: grid;
    justify-items: center;
    gap: var(--insights-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.insights-featured__item {
    display: flex;
    width: 100%;
    max-width: var(--insight-card-width);
    min-width: 0;
}

.insights-featured__more {
    margin: var(--insights-more-space) 0 0;
    text-align: center;
}

/* Category label with a small square before it (cards and articles). */
.insight-tag {
    display: flex;
    align-items: center;
    gap: var(--insight-tag-gap);
    margin: 0 0 var(--insight-tag-space);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    line-height: 1.2;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
}

.insight-tag::before {
    content: "";
    flex: none;
    width: var(--insight-tag-square);
    height: var(--insight-tag-square);
    background: currentColor;
}

.insight-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    color: var(--color-white);
    border-radius: var(--radius-sm);
}

.insight-card__media {
    flex: none;
    aspect-ratio: var(--insight-image-ratio);
    background: var(--color-slate);
}

.insight-card__image {
    width: 100%;
    height: 100%;
}

/* The navy is on the text area, not the card, so none of it shows round the
   photo's rounded corners (side cards, with the photo set in, keep it on
   the card). */
.insight-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: var(--insight-padding);
    background: var(--color-navy);
}

/* Tag, title and summary; the link sits at the bottom of the card. */
.insight-card__text {
    align-self: stretch;
    margin-bottom: var(--insight-link-space);
    overflow-wrap: break-word;
}

.insight-card__title {
    margin: 0 0 0.5rem;
    font-size: var(--text-card-title);
    font-weight: var(--weight-light);
    line-height: 1.3;
}

/* Grid cards: 22 Regular, as in the Pangea Insights grid design. */
.insight-card--grid .insight-card__title {
    font-weight: var(--weight-regular);
}

.insight-card__summary {
    margin: 0;
}

.insight-card__link {
    margin-top: auto;
    transition: color var(--insight-card-speed) ease;
}

/* Stretches the link over the whole card: one click target, one tab stop. */
.insight-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.insight-card__link:focus-visible {
    outline: none;
}

/* Gold ring inside the card, with a navy edge so it shows over the photo. */
.insight-card__link:focus-visible::after {
    border-radius: var(--radius-sm);
    box-shadow:
        inset 0 0 0 2px var(--color-gold),
        inset 0 0 0 4px var(--color-navy);
}

.insight-card:hover .insight-card__link,
.insight-card:focus-within .insight-card__link {
    color: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
    .insight-card__link {
        transition: none;
    }
}

@media (min-width: 1200px) {
    .insights-featured {
        padding-top: var(--insights-padding-y-lg);
    }

    .insights-featured__list--2,
    .insights-featured__list--3 {
        grid-template-columns: minmax(0, var(--insight-large-share)) minmax(0, var(--insight-side-share));
        justify-items: stretch;
    }

    .insights-featured__list--2 .insights-featured__item,
    .insights-featured__list--3 .insights-featured__item {
        max-width: none;
    }

    /* Two side cards: equal heights, together as tall as the large card. */
    .insights-featured__list--3 {
        grid-template-rows: repeat(2, 1fr);
    }

    .insights-featured__list--3 .insights-featured__item:first-child {
        grid-row: 1 / span 2;
    }

    /* Side cards: the photo, scaled down to 282 × 163, beside the text and
       set in from the card's edges by the card's padding. */
    .insight-card--side {
        flex-direction: row;
        gap: var(--insight-padding-lg);
        padding: var(--insight-padding-lg);
        background: var(--color-navy);
    }

    .insight-card--side .insight-card__media {
        align-self: flex-start;
        width: var(--insight-side-image);
        overflow: hidden;
        border-radius: var(--radius-sm);
    }

    .insight-card--side .insight-card__body {
        padding: 0;
    }

    .insight-card--large .insight-card__body {
        padding: var(--insight-padding-lg);
    }
}


/* Components: Insights grid (Pangea Insights page)
   A category filter (a navy pill, "All" by default), then every insight as
   a card, newest first: one column on phones (no wider than the photo),
   two from 768px, three from 992px. Cards in a row share the tallest
   card's height. "All" leaves out the cards already in the featured block;
   insights-filter.js shows the filter, opens its list and switches the
   cards. The list is the theme's own (not the browser's dropdown), so it
   looks the same everywhere: a rounded navy panel 8px below the pill,
   options gold on hover and focus, the chosen one marked with the tag's
   square. Without the script the filter stays hidden.
   Markup: template-parts/insights-grid.php, insight-card.php.
   ========================================================================== */

.insights-grid {
    padding-bottom: var(--insights-grid-padding-bottom);
    color: var(--color-navy);
    background: var(--color-white);
}

.insights-grid__filter {
    margin-bottom: var(--insights-filter-space);
}

/* The filter: a navy pill that opens a rounded navy list just below it. */
.insights-filter {
    position: relative;
    z-index: 3;                                             /* above the cards' full-card links */
    display: inline-block;
}

.insights-filter[hidden] {
    display: none;
}

.insights-filter__toggle {
    position: relative;
    min-width: var(--insights-filter-width);
    min-height: var(--insights-filter-height);
    margin: 0;
    padding: 0 3.5rem 0 var(--insights-filter-padding);
    font-family: inherit;
    font-size: var(--text-md);
    font-weight: var(--weight-regular);
    line-height: 1.2;
    text-align: left;
    color: var(--color-white);
    background: var(--color-navy);
    border: 0;
    border-radius: var(--radius-pill);
    cursor: pointer;
}

/* The chevron turns over while the list is open. */
.insights-filter__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.75rem;
    width: 10px;
    height: 6px;
    margin-top: -3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    transition: transform var(--insights-filter-speed) ease;
}

.insights-filter--open .insights-filter__toggle::after {
    transform: rotate(180deg);
}

.insights-filter__toggle:focus-visible {
    outline-color: var(--color-navy);
}

.insights-filter__options {
    position: absolute;
    top: calc(100% + var(--insights-filter-list-space));
    left: 0;
    min-width: 100%;
    margin: 0;
    padding: var(--insights-filter-list-padding);
    list-style: none;
    background: var(--color-navy);
    border-radius: var(--radius-lg);
    box-shadow: var(--dropdown-shadow);
}

.insights-filter__options[hidden] {
    display: none;
}

/* Each option: the text lines up with the pill's; the chosen one has the
   insight tag's small square before it, in gold. */
.insights-filter__option {
    display: flex;
    align-items: center;
    gap: var(--insight-tag-gap);
    width: 100%;
    min-height: var(--tap-target);
    margin: 0;
    padding: 0 var(--insights-filter-option-padding) 0 calc(var(--insights-filter-padding) - var(--insights-filter-list-padding) - var(--insight-tag-square) - var(--insight-tag-gap));
    font-family: inherit;
    font-size: var(--text-nav);
    font-weight: var(--weight-regular);
    line-height: 1.25;
    text-align: left;
    white-space: nowrap;
    color: var(--color-white);
    background: transparent;
    border: 0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: color var(--insights-filter-speed) ease, background-color var(--insights-filter-speed) ease;
}

.insights-filter__option::before {
    content: "";
    flex: none;
    width: var(--insight-tag-square);
    height: var(--insight-tag-square);
}

.insights-filter__option[aria-pressed="true"]::before {
    background: var(--color-gold);
}

.insights-filter__option:hover,
.insights-filter__option:focus-visible {
    color: var(--color-gold);
    background: var(--insights-filter-option-hover);
}

.insights-filter__option:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
    .insights-filter__toggle::after,
    .insights-filter__option {
        transition: none;
    }
}

.insights-grid__list {
    display: grid;
    justify-items: center;
    gap: var(--insights-grid-gap-y) var(--insights-grid-gap-x);
    margin: 0;
    padding: 0;
    list-style: none;
}

.insights-grid__item {
    display: flex;
    width: 100%;
    max-width: var(--insight-card-width);
    min-width: 0;
}

.insights-grid__item[hidden] {
    display: none;
}

.insights-grid__empty {
    margin: 0;
}

@media (min-width: 768px) {
    .insights-grid__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: stretch;
    }

    .insights-grid__item {
        max-width: none;
    }
}

@media (min-width: 992px) {
    .insights-grid__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* Components: courses (Training page)
   Every course as a card (the insight card's "course" layout: no tag, the
   course photo's shape), in the order entered: one column on phones (no
   wider than the photo, centred), two from 768px, three from 992px, with the
   Insights grid's gaps. Cards in a row share the tallest card's height, the
   links lined up at the bottom. Each card's link opens the enquiry pop-up
   (experts.js turns it into a button); without the script it goes to the
   Contact page.
   Markup: template-parts/courses.php, insight-card.php, expert-dialog.php.
   ========================================================================== */

.courses {
    padding-top: var(--courses-padding-y);
    padding-bottom: var(--courses-padding-y);
    color: var(--color-navy);
    background: var(--color-white);
}

.courses__list {
    display: grid;
    justify-items: center;
    gap: var(--insights-grid-gap-y) var(--insights-grid-gap-x);
    margin: 0;
    padding: 0;
    list-style: none;
}

.courses__item {
    display: flex;
    width: 100%;
    max-width: var(--course-card-width);
    min-width: 0;
}

.insight-card--course .insight-card__media {
    aspect-ratio: var(--course-image-ratio);
}

.insight-card--course .insight-card__title {
    font-weight: var(--weight-regular);
}

/* The link once experts.js has made it a button: no button look, same
   text link (underline included). */
button.insight-card__link {
    padding: 0 0 0.35em;
    font-family: inherit;
    text-align: left;
    background: none;
    border-width: 0 0 1px;
    border-style: solid;
    border-color: currentColor;
    border-radius: 0;
    cursor: pointer;
    appearance: none;
}

@media (min-width: 768px) {
    .courses__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: stretch;
    }

    .courses__item {
        max-width: none;
    }
}

@media (min-width: 992px) {
    .courses__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* Components: article (one insight)
   The category tag and title, the article photo at the width of the site
   container (never enlarged or cropped), then the article text, also the
   container's width, and a link back to the Pangea Insights page.
   Markup: templates/single.php.
   ========================================================================== */

.article {
    padding-top: var(--article-padding-y);
    padding-bottom: var(--article-padding-y);
}

.article__title {
    margin-bottom: 0;
}

.article__photo {
    width: 100%;
    max-width: var(--article-photo-width);
    margin-top: 2rem;
    border-radius: var(--radius-lg);
}

.article__body {
    margin-top: 2.5rem;
}

.article__body > :first-child {
    margin-top: 0;
}

.article__body h2,
.article__body h3 {
    margin-top: 1.5em;
}

.article__body h3 {
    font-size: var(--text-card-title);
}

.article__body figure {
    margin: 2rem 0;
}

.article__body img {
    border-radius: var(--radius-sm);
}

.article__body figcaption {
    margin-top: 0.5rem;
    font-size: var(--text-sm);
    line-height: var(--leading-sm);
}

.article__more {
    margin: 2.5rem 0 0;
}

/* "Share this article": round navy links (white marks), gold with a navy mark
   on hover and focus. A line above sets it apart from the article text.
   Markup: template-parts/article-share.php. */
.article-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--share-rule);
}

.article-share__heading {
    margin: 0;
    font-size: var(--text-nav);
    font-weight: var(--weight-medium);
    line-height: 1.25;                                      /* 20px on 16px, as the nav */
}

.article-share__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--share-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-share__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--share-size);
    height: var(--share-size);
    border-radius: 50%;
    color: var(--color-white);
    background: var(--color-navy);
    transition: color var(--share-speed), background-color var(--share-speed);
}

.article-share__link:hover,
.article-share__link:focus-visible {
    color: var(--color-navy);
    background: var(--color-gold);
}

.article-share__icon {
    width: var(--share-icon);
    height: var(--share-icon);
}

@media (prefers-reduced-motion: reduce) {
    .article-share__link {
        transition: none;
    }
}

/* Galleries in an article: the block editor's Gallery block (.wp-block-gallery)
   and the classic editor's [gallery] (.gallery), laid out the same way.
   The editor's columns are followed (block: blank is three, or fewer when
   there are fewer photos; classic: three unless set). Every photo keeps its
   own shape: the block's "Crop images to fit" is ignored, as photos are
   never trimmed. Phones show at most two per row. Captions sit under their
   photo. */
.article__body .wp-block-gallery,
.article__body .gallery {
    --gallery-columns: 3;
    display: grid;
    grid-template-columns: repeat(min(var(--gallery-columns), 2), minmax(0, 1fr));
    align-items: start;
    gap: var(--gallery-gap);
    margin: 2rem 0;
    padding: 0;
}

.article__body .wp-block-gallery.columns-1,
.article__body .wp-block-gallery.columns-default:not(:has(> figure:nth-of-type(2))),
.article__body .gallery-columns-1 {
    --gallery-columns: 1;
}

.article__body .wp-block-gallery.columns-2,
.article__body .wp-block-gallery.columns-default:not(:has(> figure:nth-of-type(3))),
.article__body .gallery-columns-2 {
    --gallery-columns: 2;
}

.article__body .wp-block-gallery.columns-4,
.article__body .gallery-columns-4 {
    --gallery-columns: 4;
}

.article__body .wp-block-gallery.columns-5,
.article__body .gallery-columns-5 {
    --gallery-columns: 5;
}

.article__body .wp-block-gallery.columns-6,
.article__body .gallery-columns-6 {
    --gallery-columns: 6;
}

.article__body .wp-block-gallery.columns-7,
.article__body .gallery-columns-7 {
    --gallery-columns: 7;
}

.article__body .wp-block-gallery.columns-8,
.article__body .gallery-columns-8 {
    --gallery-columns: 8;
}

.article__body .gallery-columns-9 {
    --gallery-columns: 9;
}

.article__body .wp-block-gallery > figure,
.article__body .gallery-item {
    margin: 0;
}

.article__body .wp-block-gallery a,
.article__body .gallery a {
    display: block;
}

.article__body .wp-block-gallery img,
.article__body .gallery img {
    display: block;
    width: 100%;
    height: auto;
}

/* The block gallery's own caption, under the whole grid. */
.article__body .wp-block-gallery > figcaption {
    grid-column: 1 / -1;
    margin-top: 0;
}

/* The classic gallery puts a line break between rows: not needed in a grid. */
.article__body .gallery > br {
    display: none;
}

@media (min-width: 576px) {
    .article__body .wp-block-gallery,
    .article__body .gallery {
        grid-template-columns: repeat(var(--gallery-columns), minmax(0, 1fr));
    }
}


/* Components: enquiry form (Home, Contact)
   One form in two settings. Home: a photo on the left (from 1200px; the
   photo keeps its own shape, never wider than 720px, with navy around it on
   wider screens) and the heading and form on a navy panel with the globe.
   Contact: on white, heading, intro and photo beside the form from 1200px,
   stacked below. Fields: one column on phones, two from 768px, three from
   1200px. Inputs are 44px tall below 1200px (tap targets), 30px from 1200px.
   Messages after sending are in the page already: CSS shows them for
   #enquiry-sent / #enquiry-incomplete / #enquiry-failed (no scripts), and
   enquiry-form.js shows them in place.
   Markup: template-parts/enquiry-section.php, enquiry-form.php.
   ========================================================================== */

.enquiry {
    position: relative;
    overflow: hidden;
}

.enquiry__globe {
    position: absolute;
    top: 0;
    right: var(--enquiry-globe-offset);
    width: var(--enquiry-globe-width-sm);
    opacity: var(--enquiry-globe-opacity);
    pointer-events: none;
}

.enquiry__heading {
    position: relative;
    margin: 0;
}

.enquiry__image {
    width: 100%;
}

/* Home: navy panel beside the photo. */

.enquiry--home {
    color: var(--color-white);
    background: var(--color-navy);
}

.enquiry--home .enquiry__photo {
    display: none;
}

.enquiry__panel {
    position: relative;
    padding: var(--enquiry-padding-y) max(1rem, calc((100% - 696px) / 2));
}

.enquiry--home .enquiry__heading {
    max-width: var(--enquiry-heading-width-home);
    margin-bottom: var(--enquiry-heading-space);
}

/* Contact: on white. */

.enquiry--contact {
    padding: var(--enquiry-padding-y) 0 var(--enquiry-contact-padding-bottom);
    color: var(--color-navy);
    background: var(--color-white);
}

.enquiry--contact .enquiry__globe {
    right: var(--enquiry-globe-offset-light);
    opacity: var(--enquiry-globe-opacity-light);
}

.enquiry__inner {
    position: relative;
    display: grid;
    gap: var(--enquiry-padding-y);
}

.enquiry--contact .enquiry__heading {
    max-width: var(--enquiry-heading-width-contact);
}

.enquiry__intro {
    margin: var(--enquiry-intro-space) 0 0;
}

.enquiry--contact .enquiry__photo {
    max-width: var(--enquiry-contact-photo-width);
    margin-top: var(--enquiry-photo-space);
}

.enquiry--contact .enquiry__image {
    border-radius: var(--radius-lg);
}

/* The form. */

.enquiry-form-wrap {
    position: relative;
    max-width: var(--enquiry-form-width);
}

.enquiry-form {
    margin: 0;
}

.enquiry-form[hidden] {
    display: none;
}

.enquiry-form__fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--enquiry-gap);
}

.enquiry-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* A field set to "Full row" in Site settings (the message, as designed). */
.enquiry-field--full {
    grid-column: 1 / -1;
}

.enquiry-field__label {
    display: block;
    margin-bottom: var(--enquiry-label-space);
    font-size: var(--text-label);
    font-weight: var(--weight-regular);
    line-height: 1.25;
}

.enquiry-form--light .enquiry-field__label {
    margin-bottom: var(--enquiry-label-space-light);
}

.enquiry-field__required {
    color: var(--color-gold);
}

.enquiry-form--light .enquiry-field__required {
    color: var(--enquiry-gold-on-white);
}

.enquiry-field__input,
.enquiry-field__country {
    width: 100%;
    min-height: var(--enquiry-input-height);
    margin: 0;
    padding: 0 var(--enquiry-input-padding);
    font-family: inherit;
    font-size: 1rem;                                        /* 16px below 1200px, so phones don't zoom in */
    font-weight: var(--weight-regular);
    color: var(--color-navy);
    background-color: var(--color-white);
    border: 1px solid var(--enquiry-input-border);
    border-radius: var(--radius-xs);
}

.enquiry-field__input::placeholder {
    color: var(--enquiry-placeholder);
    opacity: 1;
}

.enquiry-field__select,
.enquiry-field__country {
    padding-right: 1.75rem;
    background-image: var(--enquiry-chevron);
    background-repeat: no-repeat;
    background-position: right 0.625rem center;
    cursor: pointer;
    appearance: none;
}

textarea.enquiry-field__input {
    min-height: var(--enquiry-message-height);
    padding-top: var(--enquiry-input-padding);
    padding-bottom: var(--enquiry-input-padding);
    line-height: 1.4;
    resize: vertical;
}

.enquiry-form--light textarea.enquiry-field__input {
    min-height: var(--enquiry-message-height-light);
}

/* Tick box (a field type editors can add; not in the design): the box
   beside its label, the label's own colours, a 24px target at least. */

.enquiry-field__check {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
}

.enquiry-field__checkbox {
    flex: none;
    width: var(--enquiry-check-size);
    height: var(--enquiry-check-size);
    margin: 0;
    accent-color: var(--color-gold);
    cursor: pointer;
}

.enquiry-form--light .enquiry-field__checkbox {
    accent-color: var(--color-navy);
}

.enquiry-field__label--check {
    margin-bottom: 0;
    padding-top: 0.125rem;
    cursor: pointer;
}

.enquiry-form--light .enquiry-field__label--check {
    margin-bottom: 0;
}

.enquiry-field__checkbox:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.enquiry-form--light .enquiry-field__checkbox:focus-visible {
    outline-color: var(--color-navy);
}

.enquiry-field--invalid .enquiry-field__checkbox {
    outline: 2px solid var(--enquiry-error-dark);
    outline-offset: 1px;
}

.enquiry-form--light .enquiry-field--invalid .enquiry-field__checkbox {
    outline-color: var(--enquiry-error-light);
}

/* Contact number: country code and number in one box, as designed. */

.enquiry-field__phone {
    display: flex;
    background: var(--color-white);
    border: 1px solid var(--enquiry-input-border);
    border-radius: var(--radius-xs);
}

.enquiry-field__phone .enquiry-field__country {
    flex: none;
    width: var(--enquiry-country-width);
    background-color: transparent;
    border: 0;
}

.enquiry-field__phone .enquiry-field__input {
    min-width: 0;
    background-color: transparent;
    border: 0;
}

/* Focus: gold ring on navy, navy ring on white (the gold ring is faint there). */

.enquiry-field__input:focus-visible,
.enquiry-field__country:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.enquiry-field__phone .enquiry-field__input:focus-visible,
.enquiry-field__phone .enquiry-field__country:focus-visible {
    outline-offset: -2px;
}

.enquiry-form--light .enquiry-field__input:focus-visible,
.enquiry-form--light .enquiry-field__country:focus-visible {
    outline-color: var(--color-navy);
}

/* Errors: text under the field, and a thicker edge in the error colour. */

.enquiry-field__error {
    display: flex;
    gap: 0.375rem;
    align-items: flex-start;
    margin: 0.375rem 0 0;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-sm);
    color: var(--enquiry-error-dark);
}

.enquiry-field__error:empty {
    display: none;
}

.enquiry-field__error::before {
    content: "!";
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    color: var(--color-navy);
    background: var(--enquiry-error-dark);
    border-radius: 50%;
}

.enquiry-form--light .enquiry-field__error {
    color: var(--enquiry-error-light);
}

.enquiry-form--light .enquiry-field__error::before {
    color: var(--color-white);
    background: var(--enquiry-error-light);
}

.enquiry-field--invalid .enquiry-field__input,
.enquiry-field--invalid .enquiry-field__phone {
    border-color: var(--enquiry-error-dark);
    box-shadow: inset 0 0 0 1px var(--enquiry-error-dark);
}

.enquiry-form--light .enquiry-field--invalid .enquiry-field__input,
.enquiry-form--light .enquiry-field--invalid .enquiry-field__phone {
    border-color: var(--enquiry-error-light);
    box-shadow: inset 0 0 0 1px var(--enquiry-error-light);
}

/* The number inside the contact-number box: the box shows the error edge. */
.enquiry-field--invalid .enquiry-field__phone .enquiry-field__input {
    box-shadow: none;
}

/* The alert box above the fields (filled in by enquiry-form.js) and the
   messages shown after sending. */

.enquiry-form__summary,
.enquiry-result--problem {
    margin-bottom: var(--enquiry-gap);
    padding: 0.75rem 1rem;
    font-size: var(--text-label);
    font-weight: var(--weight-regular);
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--enquiry-error-dark);
}

.enquiry-form__summary:empty {
    display: none;
}

.enquiry-form--light .enquiry-form__summary,
.enquiry-form-wrap--light .enquiry-result--problem {
    background: var(--color-ghost);
    border-left-color: var(--enquiry-error-light);
}

.enquiry-result {
    display: none;
}

.enquiry-result:target,
.enquiry-result--shown {
    display: block;
}

.enquiry-result--sent:target ~ .enquiry-form {
    display: none;
}

/* Focused by the script or the #link so screen readers start there; not a control. */
.enquiry-result:focus {
    outline: none;
}

.enquiry-result__heading {
    margin: 0 0 0.5rem;
    font-size: var(--text-card-title);
}

.enquiry-result__text {
    margin: 0;
    line-height: var(--leading-body);
}

.enquiry-result--problem .enquiry-result__text {
    line-height: 1.5;
}

/* The hidden "website" field: out of sight for people and screen readers. */

.enquiry-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.enquiry-form__check {
    margin-top: var(--enquiry-gap);
}

.enquiry-form__check:empty {
    display: none;
}

/* "Submit": a real button styled as the site's text link. */

.enquiry-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    align-items: flex-end;
    margin-top: var(--enquiry-submit-space-sm);
}

.enquiry-form__submit {
    display: inline-flex;
    align-items: flex-end;
    min-height: var(--tap-target);
    margin: 0;
    padding: 0 0 0.35em;
    font-family: inherit;
    color: var(--color-white);
    background: none;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    cursor: pointer;
}

.enquiry-form--light .enquiry-form__submit {
    color: var(--enquiry-gold-on-white);
}

.enquiry-form__submit[aria-disabled="true"] {
    cursor: progress;
    opacity: 0.7;
}

.enquiry-form--light .enquiry-form__submit:focus-visible {
    outline-color: var(--color-navy);
}

.enquiry-form__note {
    flex: 1 1 16rem;
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--leading-sm);
}

.enquiry-form__privacy {
    display: inline-block;
}

@media (min-width: 768px) {
    .enquiry-form__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .enquiry__globe {
        width: var(--enquiry-globe-width);
    }
}

@media (min-width: 1200px) {
    .enquiry {
        --enquiry-input-height: var(--enquiry-input-height-lg);
    }

    .enquiry--home {
        display: grid;
        grid-template-columns: min(50%, var(--enquiry-photo-width)) minmax(0, 1fr);
        align-items: start;
    }

    .enquiry--home .enquiry__photo {
        display: block;
        grid-column: 1;
    }

    .enquiry__panel {
        grid-column: 2;
        padding: var(--enquiry-panel-padding-top) var(--enquiry-panel-padding-x) var(--enquiry-panel-padding-bottom);
    }

    .enquiry--contact {
        padding-top: var(--enquiry-contact-padding-top);
    }

    .enquiry--contact .enquiry__globe {
        width: var(--enquiry-globe-width-light);
    }

    .enquiry__inner {
        grid-template-columns: minmax(0, var(--enquiry-heading-width-contact)) minmax(0, var(--enquiry-form-width));
        justify-content: space-between;
        gap: 2rem;
    }

    .enquiry-form-wrap--light {
        max-width: none;
    }

    .enquiry-form__fields {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .enquiry-field__input,
    .enquiry-field__country {
        font-size: var(--text-label);
    }

    .enquiry-form__actions {
        margin-top: var(--enquiry-submit-space);
    }

    .enquiry-form__submit {
        min-height: var(--tap-target-sm);
    }
}


/* Components: capabilities (Sector pages)
   A navy panel per capability (title, text, optional "Systems:" line, the
   "Get in touch with us" link and an illustration) with a narrow tab each.
   - Below 1200px: a stacked accordion; each tab is a full-width header bar
     with the title and +/−, its panel opens below it (illustration above
     the text on phones, beside it from 768px).
   - From 1200px: the open capability's panel sits left of its own tab and
     the closed tabs follow, their labels running bottom to top. The group
     fills the site container: tabs 79px, the panel takes the rest. Panel
     and tabs are at least 450px tall and grow with longer text or a title
     too long for the tab.
   - Without JavaScript: the tabs are hidden and every panel is shown.
   Markup: template-parts/capabilities.php; behaviour: assets/js/capabilities.js.
   ========================================================================== */

.capabilities {
    padding-top: var(--capabilities-space);
    padding-bottom: var(--capabilities-space);
}

.capability__tab {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: var(--tap-target);
    margin: 0;
    padding: 0.875rem 1.25rem;
    font: inherit;
    font-size: 1.125rem;
    font-weight: var(--weight-bold);
    line-height: 1.3;
    text-align: left;
    color: var(--color-navy);
    background: var(--capability-tab-bg);
    border: 0;
    border-bottom: 1px solid var(--capability-tab-border);
    border-radius: 0;
    cursor: pointer;
}

.capability__tab:hover {
    background: var(--capability-tab-bg-hover);
}

/* Navy ring inside the tab: the gold ring is too faint on the light tab. */
.capability__tab:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: -4px;
}

.capability__toggle {
    flex: none;
    font-size: var(--capability-tab-text);
    line-height: 1;
}

/* The "/ ''" hides the sign from screen readers (aria-expanded says it);
   the line before it is for browsers without that syntax. */
.capability__toggle::before {
    content: "+";
    content: "+" / "";
}

.capability--open .capability__toggle::before {
    content: "\2212";
    content: "\2212" / "";
}

.capability__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: var(--capability-padding-sm);
    color: var(--color-white);
    background: var(--color-navy);
}

.capability__art {
    order: -1;
}

.capability__image {
    width: auto;
    max-height: var(--capability-art-height-sm);
}

.capability__title {
    max-width: var(--capability-title-width);
    margin: 0 0 var(--capability-title-space);
    font-size: var(--capability-title);
    font-weight: var(--weight-regular);
    line-height: 1.15;
    text-transform: capitalize;
}

.capability__text,
.capability__systems {
    max-width: var(--capability-text-width);
}

.capability__text p {
    margin: 0 0 var(--paragraph-space);
}

.capability__text p:last-child {
    margin-bottom: 0;
}

.capability__systems {
    margin: 1.25rem 0 0;
}

.capability__systems strong {
    font-weight: var(--weight-bold);
}

.capability__link {
    margin-top: var(--capability-link-space);
}

/* With scripts, only the open capability's panel shows. The first one is
   open in the page already, so nothing moves when the script starts. */
@media (scripting: enabled) {
    .capability:not(.capability--open) .capability__panel {
        display: none;
    }
}

/* Opening a capability (capabilities.js adds capability--opening on a press,
   not on load): the panel unfolds downwards below 1200px; from 1200px it
   unfolds from the side the pressed tab was on (from the right, or from the
   left with capability--from-left), and its contents fade in just after. Nothing moves
   for visitors who've asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    .capability--opening .capability__panel {
        animation: capability-unfold-down var(--capability-open-speed) var(--capability-open-ease);
    }

    .capability--opening .capability__body,
    .capability--opening .capability__art {
        animation: capability-fade-in var(--capability-fade-speed) ease-out calc(var(--capability-open-speed) / 3) backwards;
    }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 1200px) {
    .capability--opening .capability__panel {
        animation-name: capability-unfold-left;
    }

    /* The pressed tab was left of the open panel: unfold from the left. */
    .capability--opening.capability--from-left .capability__panel {
        animation-name: capability-unfold-right;
    }
}

@keyframes capability-unfold-down {
    from {
        clip-path: inset(0 0 100% 0);
    }

    to {
        clip-path: inset(0);
    }
}

@keyframes capability-unfold-left {
    from {
        clip-path: inset(0 0 0 100%);
    }

    to {
        clip-path: inset(0);
    }
}

@keyframes capability-unfold-right {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0);
    }
}

@keyframes capability-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Without scripts: no tabs, every panel shown, one under another. */
@media (scripting: none) {
    .capability__tab {
        display: none;
    }

    .capability + .capability {
        margin-top: 1rem;
    }
}

/* From 768px the illustration sits beside the text. */
@media (min-width: 768px) {
    .capability__panel {
        grid-template-columns: minmax(0, var(--capability-title-width)) minmax(var(--capability-art-min), 1fr);
        align-items: start;
        column-gap: var(--capability-art-gap);
        padding: var(--capability-padding-md);
    }

    .capability__panel--no-art {
        grid-template-columns: minmax(0, var(--capability-title-width));
    }

    .capability__art {
        order: 0;
        align-self: center;
        justify-self: center;
    }

    .capability__image {
        max-width: min(100%, var(--capability-art-width));
        max-height: var(--capability-art-height);
    }
}

@media (min-width: 1200px) {
    .capability__panel {
        min-height: var(--capability-height);
        padding: var(--capability-padding);
    }
}

@media (min-width: 1200px) and (scripting: enabled) {
    .capabilities__group {
        display: flex;
    }

    .capability {
        display: flex;
        flex: none;
        flex-direction: row-reverse;
    }

    .capability--open {
        flex: 1 1 auto;
        min-width: 0;
    }

    .capability__panel {
        flex: 1 1 auto;
        min-width: 0;
    }

    .capability__tab {
        flex: none;
        flex-direction: column;
        justify-content: space-between;
        width: var(--capability-tab-width);
        min-height: var(--capability-height);
        padding: var(--capability-tab-padding-top) 0 var(--capability-tab-padding-bottom);
        gap: var(--capability-tab-gap);
        font-size: var(--capability-tab-text);
        line-height: 1.25;
        border: 1px solid var(--capability-tab-border);
    }

    /* Reads bottom to top; still real text for selecting and screen readers. */
    .capability__label {
        white-space: nowrap;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
    }
}


/* Components: service rows (Service pages)
   Alternating photo and text rows, each its own band. Odd rows white with
   the photo on the left, even rows (--alt) slate with white text and the
   photo on the right. From 992px the photo and text sit side by side, both
   from the top of the row: at 1440 the photo is 60px from the page edge,
   then a 60px gap and the text (up to 600px), leaving 140px on the text
   side (580 : 60 : 600 : 80); narrower screens scale it all down in
   proportion, and wider ones keep it centred. Below 992px one column, the
   photo above the text on every row. Heights follow the text.
   Markup: template-parts/service-rows.php.
   ========================================================================== */

.service-row {
    container-type: inline-size;
    color: var(--color-navy);
    background: var(--color-white);
}

.service-row--alt {
    color: var(--color-white);
    background: var(--color-slate);
}

.service-row__inner {
    display: grid;
    gap: var(--service-row-stack-gap);
    align-items: start;
    max-width: calc(var(--service-row-photo-width) + 1.5rem);
    margin-inline: auto;
    padding: var(--service-row-padding-sm) 0.75rem;
}

.service-row__photo {
    width: 100%;
    max-width: var(--service-row-photo-width);
    height: auto;
    border-radius: var(--radius-lg);
}

.service-row__heading {
    margin-bottom: var(--service-row-heading-space);
    overflow-wrap: break-word;
}

.service-row__text p,
.service-row__text ul,
.service-row__text ol {
    margin: 0 0 var(--paragraph-space);
}

.service-row__text ul,
.service-row__text ol {
    padding-left: 1.25em;
}

.service-row__text > :last-child {
    margin-bottom: 0;
}

.service-row__text strong,
.service-row__text b {
    font-weight: var(--weight-bold);
}

/* Navy on white, white on slate: gold would fail contrast on white. */
.service-row__text a:focus-visible {
    outline-color: currentColor;
}

@media (min-width: 992px) {
    .service-row__inner {
        grid-template-columns: 29fr 3fr 30fr 4fr;
        gap: 0;
        max-width: var(--service-row-max);
        padding: var(--service-row-padding) var(--service-row-edge);
    }

    .service-row__media {
        grid-column: 1;
        grid-row: 1;
    }

    .service-row__body {
        grid-column: 3;
        grid-row: 1;
    }

    .service-row--alt .service-row__inner {
        grid-template-columns: 4fr 30fr 3fr 29fr;
    }

    .service-row--alt .service-row__media {
        grid-column: 4;
    }

    .service-row--alt .service-row__body {
        grid-column: 2;
    }

    .service-row--no-photo .service-row__inner,
    .service-row--alt.service-row--no-photo .service-row__inner {
        grid-template-columns: minmax(0, var(--service-row-no-photo-width));
    }

    .service-row--no-photo .service-row__body,
    .service-row--alt.service-row--no-photo .service-row__body {
        grid-column: 1;
    }
}


/* Components: experts (Sector and Service pages)
   Champagne band: heading, then 1–4 experts, left-aligned. Each: a round
   photo (navy circle with initials without one), the arrow badge over its
   bottom right, name and job title. Two per row on phones (photos 140px),
   one row from 768px (cards 270px apart).
   Markup: template-parts/experts.php, expert-card.php.
   ========================================================================== */

.experts {
    padding-top: var(--experts-padding-top);
    padding-bottom: var(--experts-padding-bottom);
    background: var(--color-champagne-tint);
}

.experts__heading {
    margin: 0 0 var(--experts-heading-space);
}

.experts__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.expert {
    text-align: center;
}

.expert__media {
    position: relative;
    width: min(100%, var(--expert-photo-sm));
    margin: 0 auto;
}

.expert__photo,
.expert__initials {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
}

.expert__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--expert-initials);
    font-weight: var(--weight-medium);
    color: var(--color-white);
    background: var(--color-navy);
}

.expert__contact {
    position: absolute;
    right: var(--expert-badge-right);
    bottom: 0;
    display: block;
    width: var(--expert-badge);
    height: var(--expert-badge);
    margin: 0;
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.expert__badge {
    width: 100%;
    height: 100%;
}

.expert__badge circle {
    fill: var(--expert-badge-bg);
    transition: fill 0.2s ease;
}

.expert__badge path {
    stroke: var(--color-navy);
}

.expert__contact:hover .expert__badge circle {
    fill: var(--color-white);
}

.expert__contact:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 2px;
}

.expert__name {
    margin: var(--expert-name-space) 0 0;
    font-size: var(--text-md);
    font-weight: var(--weight-medium);
    line-height: 1.25;
}

.expert__role {
    margin: var(--expert-role-space) 0 0;
    font-size: var(--text-label);
    font-weight: var(--weight-regular);
    line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
    .expert__badge circle {
        transition: none;
    }
}

@media (min-width: 768px) {
    .experts__list {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem var(--expert-card-gap);
    }

    .experts__item {
        width: var(--expert-card-width);
    }

    .expert__media {
        width: var(--expert-photo);
    }
}


/* Components: expert enquiry pop-up (Sector and Service pages)
   A native <dialog> with the expert's name as its heading and the site's
   enquiry form (white version) inside. Centred, up to 760px wide; full
   screen on phones. Scrolls inside itself when taller than the screen.
   Markup: template-parts/expert-dialog.php; behaviour: assets/js/experts.js.
   ========================================================================== */

.expert-dialog {
    width: min(var(--expert-dialog-width), calc(100% - 2 * var(--expert-dialog-margin)));
    max-width: none;
    max-height: calc(100% - 2 * var(--expert-dialog-margin));
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    color: var(--color-navy);
    background: var(--color-white);
    border: 0;
    border-radius: var(--radius-sm);
}

.expert-dialog::backdrop {
    background: var(--expert-dialog-backdrop);
}

.expert-dialog__inner {
    position: relative;
    padding: var(--expert-dialog-padding-sm);
}

.expert-dialog__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tap-target);
    height: var(--tap-target);
    padding: 0;
    color: var(--color-navy);
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.expert-dialog__close:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 0;
}

.expert-dialog__heading {
    margin: 0 var(--tap-target) 0 0;
}

/* Focused by the script so screen readers start here; not a control. */
.expert-dialog__heading:focus {
    outline: none;
}

.expert-dialog__role {
    margin: 0.25rem 0 0;
    font-size: var(--text-label);
    font-weight: var(--weight-regular);
}

.expert-dialog .enquiry-form-wrap {
    max-width: none;
    margin-top: 1.5rem;
}

@media (max-width: 575.98px) {
    .expert-dialog {
        width: 100%;
        height: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;
    }
}


/* Components: gallery lightbox (articles)
   One photo at a time, as large as the screen allows, on dark navy; its
   caption and "3 of 15" underneath; the site's gold arrows beside it from
   768px and below it on phones; a white close button at the top right.
   Markup: template-parts/gallery-lightbox.php; behaviour: assets/js/gallery.js.
   ========================================================================== */

.lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    color: var(--color-white);
    background: var(--lightbox-bg);
    border: 0;
    overscroll-behavior: contain;
}

.lightbox::backdrop {
    background: var(--lightbox-bg);
}

.lightbox__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: var(--tap-target) 0.75rem calc(var(--tap-target) + 1.5rem);
    touch-action: pan-y pinch-zoom;
}

.lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin: 0;
}

.lightbox__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 2 * var(--tap-target) - var(--lightbox-caption-space));
    max-height: calc(100dvh - 2 * var(--tap-target) - var(--lightbox-caption-space));
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox__caption {
    display: flex;
    gap: 1rem;
    max-width: 50rem;
    margin-top: 0.75rem;
    font-size: var(--text-sm);
    line-height: var(--leading-sm);
    text-align: center;
}

.lightbox__count {
    flex: none;
    font-weight: var(--weight-semibold);
}

.lightbox__count[hidden],
.lightbox__text[hidden] {
    display: none;
}

.lightbox__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tap-target);
    height: var(--tap-target);
    padding: 0;
    color: var(--color-white);
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.lightbox__arrow {
    position: absolute;
    bottom: 0.5rem;
}

.lightbox__arrow--prev {
    left: calc(50% - var(--tap-target) - 0.5rem);
}

.lightbox__arrow--next {
    right: calc(50% - var(--tap-target) - 0.5rem);
}

/* A photo without a link in a block gallery: the script wraps it in this
   button, which opens the lightbox. */
.gallery-open {
    display: block;
    width: 100%;
    padding: 0;
    background: none;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: zoom-in;
}

.article__body .gallery a {
    cursor: zoom-in;
}

@media (min-width: 768px) {
    .lightbox__stage {
        padding: var(--tap-target) var(--lightbox-gutter);
    }

    .lightbox__image {
        max-height: calc(100vh - 2 * var(--tap-target) - var(--lightbox-caption-space) + 1.5rem);
        max-height: calc(100dvh - 2 * var(--tap-target) - var(--lightbox-caption-space) + 1.5rem);
    }

    .lightbox__arrow {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }

    .lightbox__arrow--prev {
        left: 1rem;
    }

    .lightbox__arrow--next {
        right: 1rem;
    }
}

@media (min-width: 576px) {
    .expert-dialog__inner {
        padding: var(--expert-dialog-padding);
    }
}


/* Components: leadership team (About)
   A centred heading, then one card per person, each row centred on the site
   container (a short last row too): 1 per row on phones, 2 from 576px,
   3 from 992px, 4 from 1200px. Cards share the row's width up to 270px.
   Each card has the photo's shape (270 × 290, never wider) with a navy strip
   over its bottom for the name and job title. The strip grows upward for long
   text and the card grows with it if needed, so nothing is cut off. Without a
   photo the card is navy with the person's initials.
   Markup: template-parts/leadership-team.php.
   ========================================================================== */

.team {
    padding-top: var(--team-padding);
    padding-bottom: var(--team-padding);
}

.team__heading {
    margin: 0 0 var(--team-heading-space);
    text-align: center;
}

.team__list {
    --team-per-row: 1;
    --team-column-gap: var(--team-card-gap);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--team-card-gap) var(--team-column-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.team__list > .team-card {
    flex: 0 0 min(var(--team-card-width), calc((100% - (var(--team-per-row) - 1) * var(--team-column-gap)) / var(--team-per-row)));
}

.team-card {
    position: relative;
    display: grid;
    aspect-ratio: 270 / 290;
    border-radius: var(--radius-sm);
    background: var(--color-navy);
}

/* The faint edge is drawn over the photo, so the photo keeps its full size. */
.team-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--team-card-border);
    border-radius: inherit;
    pointer-events: none;
}

.team-card__photo,
.team-card__initials,
.team-card__strip {
    grid-area: 1 / 1;
}

.team-card__photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}

.team-card__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: var(--team-strip-min);
    font-size: var(--team-initials);
    font-weight: var(--weight-medium);
    color: var(--color-white);
}

.team-card__strip {
    align-self: end;
    padding: var(--team-strip-padding);
    color: var(--color-white);
    background: var(--team-strip-bg);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    overflow-wrap: anywhere;
}

.team-card__name {
    margin: 0;
    font-size: var(--text-nav);
    font-weight: var(--weight-semibold);
    line-height: var(--team-name-line);
}

.team-card__role {
    margin: var(--team-role-space) 0 0;
    font-size: var(--text-label);
    font-weight: var(--weight-regular);
    line-height: var(--team-role-line);
}

@media (min-width: 576px) {
    .team__list {
        --team-per-row: 2;
    }
}

@media (min-width: 992px) {
    .team__list {
        --team-per-row: 3;
    }
}

@media (min-width: 1200px) {
    .team__list {
        --team-per-row: 4;
        --team-column-gap: var(--team-card-gap-lg);
    }
}

@media (min-width: 1400px) {
    .team__list {
        --team-column-gap: var(--team-card-gap);
    }
}


/* Components: careers (Contact page)
   Navy band: the tag, heading, text and the careers email as a white text
   link, with the photo beside them from 992px (600 : 48 : 630 at 1440, the
   photo flush with the container's right edge) and below them on smaller
   screens, never cropped or enlarged. Left out until the page has its own
   text, email or photo.
   Markup: template-parts/careers.php.
   ========================================================================== */

.careers {
    padding-top: var(--careers-padding);
    padding-bottom: var(--careers-padding);
    color: var(--color-white);
    background: var(--color-navy);
}

.careers__inner {
    display: grid;
    row-gap: var(--careers-stack-gap);
}

.careers__text {
    max-width: var(--careers-text-width);
    min-width: 0;
}

.careers__tag {
    margin-bottom: var(--careers-tag-space);
}

.careers__heading {
    margin: 0 0 var(--careers-heading-space);
}

.careers__body > :last-child {
    margin-bottom: 0;
}

.careers__link-wrap {
    margin: var(--careers-link-space) 0 0;
}

.careers__heading + .careers__link-wrap {
    margin-top: 0;
}

.careers__link {
    overflow-wrap: anywhere;
}

.careers__photo {
    max-width: var(--careers-image-width);
    min-width: 0;
}

.careers__image {
    width: 100%;
    border-radius: var(--radius-lg);
}

@media (min-width: 992px) {
    .careers__inner {
        grid-template-columns: minmax(0, var(--careers-text-share)) minmax(0, var(--careers-photo-share));
        column-gap: var(--careers-gap);
        align-items: start;
    }

    .careers__inner--text {
        grid-template-columns: minmax(0, var(--careers-text-width));
    }
}


/* Components: our offices (Contact page)
   Champagne band: the heading, then the list of offices and the map of
   provinces (from 992px the map on the left and the list on the right,
   580 : 165 : 533 at 1440; below, the list first and the map under it).
   Each office: name (h3), then its phone and address. With two or more
   offices, offices.js makes each name a button and only the open office
   shows its details, in Boat Blue; the others' names are navy at 50%. The
   closed details are hidden only when scripts run, so the page arrives as
   the script leaves it; without the script every office shows its details.
   Map: provinces grey, those with an office navy, the open office's
   province Boat Blue (with the script; one office: always). Pointing at an
   office's province opens it (offices.js).
   Markup: template-parts/offices.php (outlines: inc/provinces.php);
   behaviour: assets/js/offices.js.
   ========================================================================== */

.offices {
    padding-top: var(--offices-padding);
    padding-bottom: var(--offices-padding);
    color: var(--color-navy);
    background: var(--color-champagne-tint);
}

.offices__heading {
    margin: 0 0 var(--offices-heading-space);
}

.offices__list {
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.office {
    padding-bottom: var(--office-rule-space);
    color: var(--office-active);
    border-bottom: 1px solid currentColor;
}

.office + .office {
    margin-top: var(--office-gap);
}

.office__name {
    margin: 0;
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
    line-height: var(--office-name-line);
    overflow-wrap: anywhere;
}

/* The name once offices.js has made it a button: the heading's look. */
.office__toggle {
    display: block;
    width: 100%;
    padding: 0;
    font: inherit;
    line-height: inherit;
    color: inherit;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    appearance: none;
}

.office__toggle:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 2px;
}

.office__details {
    margin-top: var(--office-detail-space);
    font-size: var(--office-detail-size);
    line-height: var(--office-detail-line);
}

.office__line {
    margin: 0;
}

.office__line + .office__line {
    margin-top: var(--office-line-space);
}

.office__phone {
    color: inherit;
    text-underline-offset: 0.15em;
}

.offices__map {
    max-width: var(--offices-map-width);
    margin-top: var(--offices-stack-gap);
}

.offices__svg {
    width: 100%;
    height: auto;
}

.offices__province {
    fill: var(--province-fill);
    stroke: var(--province-line);
    stroke-width: var(--province-line-width);
    stroke-linejoin: round;
    transition: fill var(--province-speed);
}

.offices__province--office {
    fill: var(--province-office);
}

.offices:not(.offices--choice) .offices__province--active,
.offices--js .offices__province--active,
.offices--js .offices__province--hover {
    fill: var(--province-active);
}

.offices--js .offices__province--office {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;               /* the province's own colour shows the tap */
}

@media (prefers-reduced-motion: reduce) {
    .offices__province {
        transition: none;
    }
}

@media (scripting: enabled) {
    .offices--choice .office:not(.office--open) {
        color: var(--office-inactive);
    }

    .offices--choice .office:not(.office--open) .office__details {
        display: none;
    }

    .offices--choice .office:not(.office--open) .office__toggle:hover {
        color: var(--office-active);
    }
}

@media (min-width: 992px) {
    .offices__inner {
        display: grid;
        grid-template-columns: minmax(0, var(--offices-map-share)) minmax(0, var(--offices-gap-share)) minmax(0, var(--offices-list-share));
        grid-template-areas:
            "heading heading heading"
            "map . list";
        align-items: start;
    }

    .offices__heading {
        grid-area: heading;
    }

    .offices__list {
        grid-area: list;
    }

    .offices__map {
        grid-area: map;
        margin-top: 0;
    }
}
