/* ==========================================================================
   WEBICIOUS CHERRY: DESIGN SYSTEM (1.0.0)
   ==========================================================================
   One stylesheet, enqueued by inc/enqueue.php after Hello Elementor's and
   Elementor's CSS. Also loaded into the Classic Editor (inc/setup.php).

   Sections
     1. Tokens
     2. Elementor globals lock
     3. Base: body, headings, buttons
     4. Accessibility base: focus, skip link, landmark, motion
     5. wb-prose: Classic Editor content
     6. Components (class contract, docs/class-contract.md section 4)
     7. Header classes inherited from 1.0.0 (reworked in roadmap phase 3)

   Design source: the agreed Cherry design specification (Webicious project
   doc "claude/cherry-design-spec.md", 8 November 2026) and the Cherry
   boards on the design canvas: a faithful copy of the Randalstown Medical
   Practice site, whose look lived in per-widget Elementor settings. Here
   it is drawn from theme classes and tokens, with every Style tab empty.

   Built on Webicious Birch 1.0.0's stylesheet (itself Alder 1.5.2's), so
   every shared class in the class contract (docs/class-contract.md) is
   styled. Rules Cherry inherits unchanged keep their notes; a number such
   as "1.3.1" in those notes is the Alder release that introduced the rule.
   Rules Cherry styles its own way are marked "Cherry:". Layout-specific
   tokens use the cherry- prefix.

   Specificity strategy (no !important except where commented):
   - Base rules are scoped "body.wb-theme", which outranks the Elementor
     kit's ".elementor-kit-N h3" but loses to per-widget settings
     (".elementor-N .elementor-element.elementor-element-x ..."). So the
     theme sets the defaults and any widget setting still wins until the
     widget settings are removed (roadmap principle 2).
   - Prose rules are prefixed "html" for the same reason.
   - Component rules are scoped ".wb-theme" and, on containers, ".e-con":
     ".wb-theme .e-con.wb-card" (0,3,0) outranks Elementor's own container
     rules such as ".e-con-full, .e-con > .e-con-inner" whatever the load
     order. Container spacing is set through Elementor's own variables
     (--padding-top, --row-gap, --content-width) so editor and theme agree.
   - Accent edges and notice icons are background layers, not ::before:
     Elementor uses ".e-con::before" for background overlays.

   Breakpoints: tablet ≤1023px, mobile ≤767px (decision, 31 October 2026).
   Elementor's tablet breakpoint must be 1023 to match: Appearance ›
   Webicious Cherry sets it.

   Every colour is an NHS identity colour (decisions 9.3), one of the pale
   background tints agreed in decision 12.4, or (Cherry) the NHS website's
   footer grey and a Warm Yellow tint, noted where defined. Contrast ratios
   are noted next to the role tokens.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {

  /* --- NHS identity palette. Fixed: identical in every Webicious theme. --- */
  --nhs-dark-blue:   #003087;
  --nhs-blue:        #005EB8;
  --nhs-bright-blue: #0072CE;
  --nhs-light-blue:  #41B6E6;
  --nhs-aqua-blue:   #00A9CE;
  --nhs-black:       #231F20;
  --nhs-dark-grey:   #425563;
  --nhs-mid-grey:    #768692;   /* Borders and decoration only: 3.75:1 on white */
  --nhs-pale-grey:   #E8EDEE;
  --nhs-dark-green:  #006747;
  --nhs-green:       #009639;   /* Icons and large text only: 3.87:1 on white */
  --nhs-aqua-green:  #00A499;
  --nhs-red:         #DA291C;   /* Emergency and High notices only */
  --nhs-warm-yellow: #FFB81C;   /* Medium notices, black text only */
  --white:           #FFFFFF;

  /* --- Background tints (decision 12.4). Backgrounds only: never text,
         icons or accents. NHS Black on any tint is above 14:1. --- */
  --wb-tint-blue:        #EBF2F9;  /* NHS Blue 8%. NHS Blue text on it 5.80:1 */
  --wb-tint-blue-strong: #DBE8F5;  /* NHS Blue 14%. Reserved */
  --wb-tint-aqua:        #EBF8F7;  /* Aqua Green 8%. Reserved */
  --wb-tint-yellow:      #FFF7E4;  /* Warm Yellow 12%. Reserved */
  --wb-tint-blue-faint:  #F5F9FC;  /* NHS Blue 4%. Cherry: table of contents fade */

  /* --- Colour roles. Use these in rules, not the palette directly. --- */
  --wb-color-primary:      var(--nhs-blue);       /* 6.38:1 on white */
  --wb-color-primary-dark: var(--nhs-dark-blue);  /* 11.85:1 on white */
  --wb-color-text:         var(--nhs-black);      /* 16.1:1 on white */
  --wb-color-text-muted:   var(--nhs-dark-grey);  /* 7.75:1 on white, 6.56:1 on pale grey */
  --wb-color-accent:       var(--nhs-dark-green); /* 6.93:1 on white */
  --wb-color-surface:      var(--white);
  --wb-color-surface-alt:  var(--nhs-pale-grey);
  --wb-color-border:       var(--nhs-pale-grey);
  --wb-color-border-strong: var(--nhs-mid-grey);
  --wb-color-on-dark:      var(--white);          /* 11.85:1 on Dark Blue */
  --wb-color-on-dark-muted: var(--nhs-pale-grey); /* 10.03:1 on Dark Blue */
  --wb-color-urgent:       var(--nhs-red);        /* White text 4.87:1 */
  --wb-border:             var(--wb-color-border); /* 1.0.0 name, kept */

  /* Translucent white for rules and hover fills on dark backgrounds. */
  --wb-on-dark-rule:       rgba(255, 255, 255, 0.22);
  --wb-on-dark-hover:      rgba(255, 255, 255, 0.14);

  /* --- Buttons (base Elementor buttons; wb-button roles in section 6) --- */
  --wb-btn-bg:          var(--nhs-blue);      /* White text 6.38:1 */
  --wb-btn-bg-hover:    var(--nhs-dark-blue); /* White text 11.85:1 */
  --wb-btn-text:        var(--white);
  --wb-btn-border:      var(--nhs-dark-blue);

  /* --- Focus: a dark ring with a white gap, visible on light and dark. --- */
  --wb-focus-ring:   var(--nhs-black);
  --wb-focus-gap:    var(--white);
  --wb-focus-width:  3px;
  --wb-focus-offset: 3px;

  /* --- Links (spec 3.6). Body-text links are underlined (WCAG 1.4.1). --- */
  --wb-link-underline:       1px;
  --wb-link-underline-hover: 3px;
  --wb-link-offset:          3px;

  /* --- Gradients. White text only on the hero gradient (Dark Blue → Blue →
         Bright Blue, lowest 4.89:1). The accent is decoration only, never
         behind text (decision 12.1, option C "NHS spectrum"). --- */
  --wb-gradient-brand:  linear-gradient(135deg, var(--nhs-dark-blue), var(--nhs-blue));
  --wb-gradient-hero:   linear-gradient(120deg, var(--nhs-dark-blue) 0%, var(--nhs-blue) 58%, var(--nhs-bright-blue) 100%);
  --wb-gradient-hero-texture: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 46px);
  /* Cherry: no multi-colour accent. Solid NHS Blue where a shared rule asks
     for the accent. Decoration only, never behind text. */
  --wb-gradient-accent: linear-gradient(var(--nhs-blue), var(--nhs-blue));
  /* Cherry: every section is flat white, as Randalstown (D6). */
  --wb-gradient-section-tint: linear-gradient(var(--white), var(--white));
  --wb-gradient-section-soft: linear-gradient(var(--white), var(--white));

  /* --- Shadows. Cherry: flat, as Randalstown: no shadow at rest (D6). The
         lifted shadow is kept for the emergency call buttons' parent rules
         that reference it; cards change border colour on hover instead. --- */
  --wb-shadow:        none;
  --wb-shadow-lifted: none;

  /* --- Fonts. Frutiger is only defined when the practice's licensed files
         are in uploads/fonts (inc/fonts.php); otherwise Arial is used. --- */
  --wb-font-family:  "Frutiger", Arial, sans-serif;
  --wb-font-body:    var(--wb-font-family);
  --wb-font-heading: var(--wb-font-family);
  --wb-weight-regular: 400;
  --wb-weight-bold:    700;

  /* --- Type scale, desktop (≥1024px). 15px is the floor for any text. --- */
  /* Cherry: Randalstown's smaller scale (D12): body 17px, titles 40px. */
  --wb-size-h1:     40px;  /* Page title in the inner-page banner */
  --wb-size-h2:     26px;  /* Content heading */
  --wb-size-h3:     21px;  /* Content subheading */
  --wb-size-h4:     19px;
  --wb-size-h5:     17px;
  --wb-size-h6:     15px;
  --wb-size-body:   17px;  /* Cherry: as Randalstown (Alder and Birch 19px) */
  --wb-size-text:   17px;  /* Card text, lists, notice text */
  --wb-size-meta:   16px;  /* Dates, breadcrumbs, labels in buttons */
  --wb-size-small:  15px;  /* Smallest: notes and pill labels */
  --wb-size-nav:    17px;
  --wb-size-button: 18px;
  --wb-size-hero:          40px;  /* Cherry: hero panel H1, as Randalstown */
  --wb-size-lead:          21px;
  --wb-size-section-title: 28px;
  --wb-size-card-title:    19px;  /* Sidebar cards, emergency card, quick-link and news titles */
  --wb-size-notice-title:  19px;
  --wb-size-notice-low-title: 17px;
  --wb-size-call:          30px;  /* 999 and 111 */
  --wb-size-practice-name: 26px;  /* Header band (1.2.1) */

  --wb-leading-tight:   1.15;
  --wb-leading-heading: 1.2;
  --wb-leading-snug:    1.25;
  --wb-leading-normal:  1.55;  /* Generous for older and low-vision readers */
  --wb-leading-relaxed: 1.7;
  --wb-tracking-normal: normal;
  --wb-tracking-wide:   0.02em;

  /* --- Spacing scale: 4, 8, 12, 16, 24, 32, 40, 48, 64px --- */
  --wb-space-0-5: 4px;
  --wb-space-1:   8px;
  --wb-space-1-5: 12px;
  --wb-space-2:   16px;
  --wb-space-3:   24px;
  --wb-space-4:   32px;
  --wb-space-5:   40px;
  --wb-space-6:   48px;
  --wb-space-8:   64px;

  /* --- Layout --- */
  --wb-container-max: 1200px;
  --wb-gutter:        32px;
  /* Width of a Boxed container's content: the container less its gutters. */
  --wb-content-max:   calc(var(--wb-container-max) - 2 * var(--wb-gutter));
  --wb-grid-gap:      var(--wb-space-3);  /* Cards, sidebar cards, news */
  --wb-content-gap:   var(--wb-space-4);  /* Content and sidebar */
  --wb-section-pad:   56px;  /* Cherry: Randalstown's tighter page */
  --wb-radius:        10px;  /* Cherry: content boxes, sidebar cards, news cards (Randalstown 10px) */
  --wb-radius-square: 0;     /* Cherry: panel, quick-link cards, notices (square, as Randalstown) */
  --wb-radius-small:  8px;
  --wb-radius-pill:   999px;
  --wb-border-width:  1px;
  --wb-measure:       70ch;  /* Comfortable line length for prose */
  --wb-sticky-offset: 0px;   /* Set to the sticky header height if one is added */

  /* --- Component measures --- */
  --wb-edge:            6px;   /* Accent edge: cards, news, footer, hero */
  --wb-edge-thin:       5px;   /* Accent edge: sidebar cards; title rule */
  --wb-edge-notice:     6px;   /* Cherry: Medium box and Low card left edge */
  --wb-title-rule:      72px;  /* Section-title underline length */
  --wb-button-height:   52px;
  --wb-button-border:   2px;
  --wb-row-height:      48px;  /* Sidebar link rows */
  --wb-toc-row-height:  32px;  /* 1.3.2: was 40px. Above the 24px target minimum (WCAG 2.5.8) */
  --wb-toc-marker:      var(--wb-icon-inline);  /* 1.4.0: em-dash column, under the title icon */
  --wb-call-height:     64px;  /* 999 and out-of-hours buttons */
  --wb-icon-circle:     56px;
  --wb-icon-size:       28px;  /* Card icons, notice icons */
  --wb-icon-inline:     22px;  /* Icons beside titles and in rows */
  --wb-icon-small:      18px;  /* Date icon */
  --wb-hero-lead-max:   600px;

  --wb-card-padding:         18px 22px 24px;  /* Cherry: quick-link card body under the photo */
  --wb-content-box-padding:  32px 36px;
  --wb-sidebar-card-padding: 30px 24px 22px;
  --wb-notice-padding-y:     20px;
  --wb-notice-padding-x:     24px;
  --wb-notice-low-padding:   16px 20px 18px;
  --wb-card-edge-color:      var(--wb-color-border);  /* Cherry: 1px Pale Grey edge on boxes and sidebar cards */
  --wb-toc-padding:          22px 28px 18px;
  --wb-emergency-head-padding: 14px 20px;
  --wb-emergency-body-padding: 18px 20px 20px;
  --wb-hero-padding-top:     76px;
  --wb-hero-padding-bottom:  88px;
  --wb-banner-padding-top:   28px;
  --wb-banner-padding-bottom: 40px;
  --wb-footer-padding-top:   56px;  /* Cherry: below the 5px black top rule */
  --wb-footer-bottom-padding: 20px 0 28px;
  --wb-footer-card-padding:   30px 28px 26px;  /* 1.4.0: practice card */
  --wb-footer-rule-width:     40px;  /* 1.4.0: Warm Yellow rule under column headings */
  --wb-footer-rule-height:    3px;
  --wb-credit-logo-height:    20px;  /* 1.4.0: Webicious logo in the bottom bar */
  /* Header band and nav (1.2.1) */
  --wb-header-padding-y:     22px;
  --wb-logo-height:          56px;   /* Cherry: fits a 160 x 56px box, room for the taller HSC mark */
  --wb-logo-max-width:       160px;
  --wb-search-width:         380px;
  --wb-brand-min:            280px;  /* Below this the search wraps under */
  --wb-search-height:        48px;
  --wb-nav-item-padding:     16px 14px;
  --wb-nav-indicator:        4px;    /* Active item: Warm Yellow bar */
  --wb-toggle-height:        52px;
  --wb-toggle-icon:          24px;
  --wb-search-border:        var(--nhs-mid-grey);  /* 1.2.2: 3.75:1, meets WCAG 1.4.11 (3:1) */
  --wb-notice-gap:           var(--wb-space-2);    /* 1.2.2: notices 16px apart */
  /* Notices section (1.2.1): tighter than a standard section */
  --wb-notices-pad-top:      var(--wb-space-5);
  --wb-notices-pad-bottom:   var(--wb-space-1);

  /* --- Cherry layout (cherry- tokens: this layout only) --- */
  /* Colours outside the NHS identity palette, each kept for Randalstown's
     look (D9, D4). */
  --cherry-footer-bg:      #D8DDE0;  /* The NHS website's footer grey. NHS Black 11.91:1, Dark Blue 8.65:1, NHS Blue 4.66:1 */
  --cherry-tint-yellow:    #FFF4DD;  /* Warm Yellow 15%: the "Important" box. NHS Black 14.93:1 */
  --cherry-strip:          6px;      /* NHS Blue strip along the top of the header band */
  --cherry-footer-rule:    5px;      /* NHS Black rule along the top of the footer */
  /* Photo behind the hero and banner panel. inc/banner-photo.php sets the
     two image properties from the featured image; with no photo the
     fallback, an NHS Blue tint with fine diagonal lines, shows instead.
     Randalstown: one 210px band on every page, the square panel starting
     137px down it and overhanging onto the page (D2). */
  --cherry-photo-image:        none;
  --cherry-photo-image-small:  none;
  --cherry-photo-fallback:     repeating-linear-gradient(135deg, rgba(0, 94, 184, 0.08) 0 2px, transparent 2px 22px), linear-gradient(var(--wb-tint-blue-strong), var(--wb-tint-blue-strong));
  --cherry-photo-position:     center 35%;
  --cherry-hero-photo-height:   210px;
  --cherry-hero-panel-top:      137px;
  --cherry-banner-photo-height: 210px;
  --cherry-banner-panel-top:    137px;
  --cherry-hero-panel-max:      780px;
  --cherry-banner-panel-max:    780px;
  --cherry-hero-panel-padding:   34px 40px 36px;
  --cherry-banner-panel-padding: 30px 40px 34px;
  --cherry-size-hero-phone:     22px;
  /* Quick-link card (D5): Dark Blue frame, 6px top edge, photo strip. */
  --cherry-card-frame:          var(--nhs-dark-blue);
  --cherry-card-edge:           6px;
  --cherry-card-media-height:   64px;
  --cherry-card-icon:           26px;
  --cherry-icon-arrow-circle:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23006747'/%3E%3Cpath d='M7 12h9M12.5 8l4 4-4 4' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* Notice labels ("Urgent", "Important"): pills (D4). */
  --cherry-pill-padding:        3px 14px;
  --cherry-notice-item-gap:     18px;  /* Between notices inside the "Important" box */
  /* Footer icons (address, phone, email) in Dark Green, as Randalstown. */
  --cherry-icon-location-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006747' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
  --cherry-icon-phone-green:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006747' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2Z'/%3E%3C/svg%3E");

  /* --- Motion --- */
  --wb-transition: 0.2s ease;
  --wb-lift:       0px;  /* Cherry: flat, nothing rises on hover */
  --wb-nudge:      4px;  /* Arrows slide on hover */
  --wb-hover-dim:  brightness(0.92);  /* 999 and 111 buttons on hover */

  /* --- Icons: SVG masks, painted in currentColor or a token colour by the
         component. Stroke icons on a 24px grid. --- */
  --wb-icon-arrow:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
  --wb-icon-chevron:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  --wb-icon-warning:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
  --wb-icon-info:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
  --wb-icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  --wb-icon-link:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E");
  --wb-icon-document: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E");
  --wb-icon-clock:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
  --wb-icon-list:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E");
  --wb-icon-phone:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2Z'/%3E%3C/svg%3E");
  /* Notice icons are background images (no pseudo-element is free on an
     Elementor container), so their colour is part of the image. */
  --wb-icon-warning-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
  --wb-icon-info-black:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231F20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
  --wb-icon-arrow-blue:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005EB8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
}

/* Tablet: ≤1023px */
@media (max-width: 1023px) {
  :root {
    --wb-size-h1:   36px;
    --wb-size-hero: 36px;
    --wb-size-nav:  16px;
    --cherry-hero-photo-height:   180px;
    --cherry-hero-panel-top:      110px;
    --cherry-banner-photo-height: 180px;
    --cherry-banner-panel-top:    110px;
    --wb-section-pad: 48px;
    --wb-hero-padding-top:    60px;
    --wb-hero-padding-bottom: 72px;
  }
}

/* Mobile: ≤767px. Body 17px; nothing below 15px. */
@media (max-width: 767px) {
  :root {
    --wb-size-h1:     30px;
    --wb-size-h2:     23px;
    --wb-size-h3:     19px;
    --wb-size-h4:     18px;
    --wb-size-h5:     16px;
    --wb-size-body:   17px;
    --wb-size-hero:   30px;
    --wb-size-lead:   19px;
    --wb-size-section-title: 24px;
    --wb-gutter:      20px;
    --wb-section-pad: 40px;
    --wb-card-padding:        16px 18px 20px;
    --cherry-hero-photo-height:   150px;
    --cherry-hero-panel-top:      96px;
    --cherry-banner-photo-height: 150px;
    --cherry-banner-panel-top:    96px;
    --cherry-hero-panel-padding:   24px 22px 26px;
    --cherry-banner-panel-padding: 22px 20px 24px;
    --cherry-size-hero-phone:     20px;
    --wb-content-box-padding: 24px 20px;
    --wb-notice-padding-y:    18px;
    --wb-notice-padding-x:    18px;
    --wb-hero-padding-top:    44px;
    --wb-hero-padding-bottom: 56px;
    --wb-banner-padding-top:    20px;
    --wb-banner-padding-bottom: 32px;
    --wb-size-practice-name: 21px;
    --wb-header-padding-y:   16px;
    --wb-logo-height:        44px;
    --wb-notices-pad-top:    var(--wb-space-3);
    --wb-notices-pad-bottom: 0px;
  }
}



/* --------------------------------------------------------------------------
   2. ELEMENTOR GLOBALS LOCK (decisions 7.1)
   Forces Elementor's system colours and fonts to the theme tokens, so the
   site is right even if Site Settings hold other values. The attribute
   selector outranks the kit's own ".elementor-kit-N" rule. Only the four
   system colours and fonts are locked: custom globals have site-specific
   IDs until the kit importer gives every site shared IDs (roadmap 1.3).
   Turn off with the webicious_cherry_lock_elementor_globals filter.
   -------------------------------------------------------------------------- */

body.wb-lock-globals[class*="elementor-kit-"] {
  --e-global-color-primary:   var(--wb-color-primary);
  --e-global-color-secondary: var(--wb-color-primary-dark);
  --e-global-color-text:      var(--wb-color-text);
  --e-global-color-accent:    var(--wb-color-accent);

  /* Elementor appends ", Sans-serif" after these, so the full stack applies. */
  --e-global-typography-primary-font-family:   "Frutiger", Arial;
  --e-global-typography-secondary-font-family: "Frutiger", Arial;
  --e-global-typography-text-font-family:      "Frutiger", Arial;
  --e-global-typography-accent-font-family:    "Frutiger", Arial;
  --e-global-typography-primary-font-weight:   700;
  --e-global-typography-text-font-weight:      400;
}


/* --------------------------------------------------------------------------
   3. BASE
   -------------------------------------------------------------------------- */

body.wb-theme {
  font-family: var(--wb-font-body);
  font-size: var(--wb-size-body);
  font-weight: var(--wb-weight-regular);
  line-height: var(--wb-leading-normal);
  letter-spacing: var(--wb-tracking-normal);
  color: var(--wb-color-text);
  background: var(--wb-color-surface);
}

/* Headings. Fixes the kit's H3/H4 (Source Sans 3, with H4 larger than H3)
   and keeps one scale across the site. */
body.wb-theme :is(h1, h2, h3, h4, h5, h6),
body.wb-theme .wb-heading {
  font-family: var(--wb-font-heading);
  font-weight: var(--wb-weight-bold);
  color: var(--wb-color-primary-dark);
  margin: 0 0 0.5em;
}
body.wb-theme h1 { font-size: var(--wb-size-h1); line-height: var(--wb-leading-tight); }
body.wb-theme h2 { font-size: var(--wb-size-h2); line-height: var(--wb-leading-snug); }
body.wb-theme h3 { font-size: var(--wb-size-h3); line-height: var(--wb-leading-snug); }
body.wb-theme h4 { font-size: var(--wb-size-h4); line-height: 1.3; }
body.wb-theme h5 { font-size: var(--wb-size-h5); line-height: 1.4; }
body.wb-theme h6 { font-size: var(--wb-size-h6); line-height: 1.4; }

/* Buttons. The kit made every button NHS Green with white text, 3.87:1,
   which fails AA (audit section 4.3). Each selector mirrors the kit's
   selector plus one type selector ("body"), so it just outranks the kit
   while per-widget button settings and components such as tabs still win. */
body[class*="elementor-kit-"] button,
body[class*="elementor-kit-"] .elementor-button,
body[class*="elementor-kit-"] input[type="button"],
body[class*="elementor-kit-"] input[type="submit"] {
  background-color: var(--wb-btn-bg);
  color: var(--wb-btn-text);
  border-color: var(--wb-btn-border);
  font-family: var(--wb-font-heading);
}
body[class*="elementor-kit-"] button:hover,
body[class*="elementor-kit-"] button:focus,
body[class*="elementor-kit-"] .elementor-button:hover,
body[class*="elementor-kit-"] .elementor-button:focus,
body[class*="elementor-kit-"] input[type="button"]:hover,
body[class*="elementor-kit-"] input[type="button"]:focus,
body[class*="elementor-kit-"] input[type="submit"]:hover,
body[class*="elementor-kit-"] input[type="submit"]:focus {
  background-color: var(--wb-btn-bg-hover);
  color: var(--wb-btn-text);
  border-color: var(--wb-btn-border);
}


/* --------------------------------------------------------------------------
   4. ACCESSIBILITY BASE (roadmap 1.4)
   -------------------------------------------------------------------------- */

/* Anchor targets and focused elements clear any sticky header (WCAG 2.4.11). */
html { scroll-padding-top: calc(var(--wb-sticky-offset) + var(--wb-space-2)); }

/* Focus: 3px dark ring, 3px white gap. The gap is a box-shadow filling the
   outline offset, so the ring shows on white, blue and dark-blue
   backgrounds alike. !important is needed because Elementor and its add-ons
   set "outline: none" in widget CSS with higher specificity; a visible focus
   indicator is a WCAG requirement (2.4.7), so it must always win.
   Elements focused only by script (tabindex="-1", such as <main> after the
   skip link) are excluded. The admin bar keeps WordPress's own styling. */
body.wb-theme :focus-visible:not([tabindex="-1"]):not(:where(#wpadminbar *)) {
  outline: var(--wb-focus-width) solid var(--wb-focus-ring) !important;
  outline-offset: var(--wb-focus-offset) !important;
  box-shadow: 0 0 0 var(--wb-focus-offset) var(--wb-focus-gap) !important;
}
body.wb-theme [tabindex="-1"]:focus { outline: none; }

/* Skip link: Hello prints it; it now has a target (<main id="content">,
   inc/accessibility.php). NHS pattern: yellow with black text, 9.41:1. */
body.wb-theme .skip-link:focus {
  position: fixed;
  top: var(--wb-space-1);
  left: var(--wb-space-1);
  z-index: 100000;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  padding: var(--wb-space-1) var(--wb-space-2);
  background: var(--nhs-warm-yellow);
  color: var(--nhs-black);
  font-family: var(--wb-font-heading);
  font-size: var(--wb-size-body);
  font-weight: var(--wb-weight-bold);
  text-decoration: underline;
}

/* Elementor entrance animations. Elementor hides animated elements until
   its script runs the animation, so with a slow or failed script the
   content (including the hero H1) never shows. Show them immediately and
   skip the animation. Turn off with the
   webicious_cherry_disable_entrance_animations filter. */
body.wb-no-entrance-animations .elementor-invisible { visibility: visible; }
body.wb-no-entrance-animations .elementor-element.animated { animation-name: none; }

/* Respect a reduced-motion preference everywhere (WCAG 2.3.3).
   !important overrides animation and transition values set by any widget. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* --------------------------------------------------------------------------
   5. wb-prose: CLASSIC EDITOR CONTENT (roadmap 1.2, decisions section 3)
   Staff can't add classes, so bare tags are styled here, and only inside
   this scope. Add the "wb-prose" class to Post Content and Text Editor
   widgets. Also covers Hello's fallback ".page-content" and the Classic
   Editor itself (".mce-content-body"), so the editor matches the site.
   -------------------------------------------------------------------------- */

html :is(.wb-prose, .page-content, .mce-content-body) {
  font-family: var(--wb-font-body);
  font-size: var(--wb-size-body);
  line-height: var(--wb-leading-normal);
  color: var(--wb-color-text);
}

html :is(.wb-prose, .page-content, .mce-content-body) :is(h2, h3, h4) {
  font-family: var(--wb-font-heading);
  font-weight: var(--wb-weight-bold);
  color: var(--wb-color-primary-dark);
  margin: 1.5em 0 0.5em;
}
html :is(.wb-prose, .page-content, .mce-content-body) h2 { font-size: var(--wb-size-h2); line-height: var(--wb-leading-snug); }
html :is(.wb-prose, .page-content, .mce-content-body) h3 { font-size: var(--wb-size-h3); line-height: var(--wb-leading-snug); }
html :is(.wb-prose, .page-content, .mce-content-body) h4 { font-size: var(--wb-size-h4); line-height: 1.3; }
html :is(.wb-prose, .page-content, .mce-content-body) > :first-child { margin-top: 0; }

html :is(.wb-prose, .page-content, .mce-content-body) p {
  margin: 0 0 var(--wb-space-2);
  max-width: var(--wb-measure);
}

/* Lists. Hello's reset sets list margin-bottom to 0, so a paragraph after a
   list sat right against it (learnings 4.4). */
html :is(.wb-prose, .page-content, .mce-content-body) :is(ul, ol) {
  margin: 0 0 var(--wb-space-2);
  padding-left: 1.5em;
  max-width: var(--wb-measure);
}
html :is(.wb-prose, .page-content, .mce-content-body) ul { list-style: disc; }
/* Cherry: NHS Blue bullets and numbers, as Randalstown (6.38:1). */
html :is(.wb-prose, .page-content, .mce-content-body) li::marker { color: var(--wb-color-primary); }
html :is(.wb-prose, .page-content, .mce-content-body) ol { list-style: decimal; }
html :is(.wb-prose, .page-content, .mce-content-body) li { margin-bottom: var(--wb-space-1); }
html :is(.wb-prose, .page-content, .mce-content-body) li > :is(ul, ol) { margin: var(--wb-space-1) 0 0; }

/* Links: underlined in body text, so they don't rely on colour (WCAG 1.4.1). */
html :is(.wb-prose, .page-content, .mce-content-body) a {
  color: var(--wb-color-primary);
  text-decoration: underline;
  text-decoration-thickness: var(--wb-link-underline);
  text-underline-offset: var(--wb-link-offset);
}
html :is(.wb-prose, .page-content, .mce-content-body) a:hover {
  color: var(--wb-color-primary-dark);
  text-decoration-thickness: var(--wb-link-underline-hover);
}

html :is(.wb-prose, .page-content, .mce-content-body) strong { font-weight: var(--wb-weight-bold); }

/* Images and WordPress alignment classes. On phones every alignment stacks. */
html :is(.wb-prose, .page-content, .mce-content-body) img { max-width: 100%; height: auto; }
html :is(.wb-prose, .page-content, .mce-content-body) .alignleft {
  float: left;
  margin: 0.25em var(--wb-space-3) var(--wb-space-2) 0;
}
html :is(.wb-prose, .page-content, .mce-content-body) .alignright {
  float: right;
  margin: 0.25em 0 var(--wb-space-2) var(--wb-space-3);
}
html :is(.wb-prose, .page-content, .mce-content-body) .aligncenter {
  display: block;
  margin: 0 auto var(--wb-space-2);
}
html :is(.wb-prose, .page-content) .alignnone { margin: 0 0 var(--wb-space-2); }
html :is(.wb-prose, .page-content)::after { content: ""; display: table; clear: both; }

html :is(.wb-prose, .page-content, .mce-content-body) .wp-caption { max-width: 100%; }
html :is(.wb-prose, .page-content, .mce-content-body) :is(.wp-caption-text, figcaption) {
  margin-top: var(--wb-space-1);
  font-size: var(--wb-size-small);
  color: var(--wb-color-text-muted);
}

@media (max-width: 767px) {
  html :is(.wb-prose, .page-content) :is(.alignleft, .alignright) {
    float: none;
    display: block;
    margin: 0 0 var(--wb-space-2);
  }
}

/* Cherry: the Classic Editor's quote button makes a callout (D7), in the
   same style as a Low notice: blue tint with a 6px NHS Blue left edge.
   Staff select a paragraph and click Blockquote; no classes needed. */
html :is(.wb-prose, .page-content, .mce-content-body) blockquote {
  margin: var(--wb-space-3) 0;
  padding: var(--wb-space-2) var(--wb-space-3);
  border: 0;
  border-left: var(--wb-edge-notice) solid var(--wb-color-primary);
  border-radius: 0 var(--wb-radius) var(--wb-radius) 0;
  background: var(--wb-tint-blue);
  font-size: var(--wb-size-text);
  font-style: normal;
  max-width: var(--wb-measure);
}
html :is(.wb-prose, .page-content, .mce-content-body) blockquote > :last-child { margin-bottom: 0; }

/* Tables. inc/content.php wraps each table in .wb-table-wrap so wide tables
   scroll on phones instead of squashing (WCAG 1.4.10). The table resets
   undo Hello's zebra stripes and hover tints. */
html :is(.wb-prose, .page-content) .wb-table-wrap {
  margin: 0 0 var(--wb-space-3);
  overflow-x: auto;
}
html :is(.wb-prose, .page-content, .mce-content-body) table {
  width: 100%;
  min-width: 480px;
  margin: 0 0 var(--wb-space-3);
  border-collapse: collapse;
  font-size: var(--wb-size-body);
}
html :is(.wb-prose, .page-content) .wb-table-wrap > table { margin-bottom: 0; }
/* Cherry: rows divided by Pale Grey lines, no side borders; header cells
   NHS Blue with white text (6.38:1). */
html :is(.wb-prose, .page-content, .mce-content-body) :is(th, td) {
  padding: var(--wb-space-1) var(--wb-space-2);
  border: 0;
  border-bottom: 1px solid var(--wb-color-border);
  text-align: left;
  vertical-align: top;
  background: var(--wb-color-surface);
}
html :is(.wb-prose, .page-content, .mce-content-body) th {
  font-weight: var(--wb-weight-bold);
  color: var(--white);
  background: var(--wb-color-primary);
}
html :is(.wb-prose, .page-content, .mce-content-body) tr:hover > :is(th, td) { background-color: inherit; }
/* 1.2.1: Hello's zebra and hover tints (table tbody > tr:nth-child(odd) > td,
   specificity 0,1,4) outranked the cell rules above (0,1,2). These repeat
   the cell backgrounds at 0,1,5 so odd rows and hovered rows stay plain. */
html :is(.wb-prose, .page-content, .mce-content-body) table tbody > tr > td { background-color: var(--wb-color-surface); }
html :is(.wb-prose, .page-content, .mce-content-body) table tbody > tr > th { background-color: var(--wb-color-primary); }

html :is(.wb-prose, .page-content, .mce-content-body) hr {
  margin: var(--wb-space-4) 0;
  border: 0;
  border-top: 1px solid var(--wb-color-border-strong);
}


/* --------------------------------------------------------------------------
   6. COMPONENTS (class contract, docs/class-contract.md section 4)
   Built from the agreed design specification, 1.2.0. Every widget's Style
   tab stays empty: Elementor holds layout and content, this file the look.
   Classes go in Advanced › CSS Classes. Elementor puts a widget's class on
   its outer wrapper, so rules target Elementor's inner elements (for
   example ".wb-button .elementor-button"). Rules use descendant selectors,
   so they work with and without Elementor's ".elementor-widget-container"
   wrapper (removed by the "optimised markup" feature).
   -------------------------------------------------------------------------- */

/* Shared icon helper. An icon is a pseudo-element painted in currentColor
   through an SVG mask; each component sets --wb-icon. */
/* Cherry: no icons before sidebar-card or table-of-contents titles. */
.wb-theme .wb-link-list .menu-item > a::after,
.wb-theme .wb-link-list .e-loop-item .elementor-heading-title > a::after,
.wb-theme .wb-post-meta .elementor-icon-list-item::before,
.wb-theme .wb-emergency__head::before,
.wb-theme .wb-footer__phone .elementor-heading-title > a::before {
  content: "";
  flex: none;
  display: inline-block;
  width: var(--wb-icon-inline);
  height: var(--wb-icon-inline);
  background-color: currentColor;
  -webkit-mask: var(--wb-icon) center / contain no-repeat;
          mask: var(--wb-icon) center / contain no-repeat;
}


/* 6.1 SECTION ------------------------------------------------------------- */
/* On a Boxed container. Spacing comes from the class: leave Elementor's
   padding empty. The content width follows the 1200px container. */
.wb-theme .e-con.wb-section {
  --padding-top: var(--wb-section-pad);
  --padding-bottom: var(--wb-section-pad);
  --padding-left: var(--wb-gutter);
  --padding-right: var(--wb-gutter);
  --content-width: min(100%, var(--wb-content-max));
}
.wb-theme .e-con.wb-section--white { background-color: var(--wb-color-surface); }
.wb-theme .e-con.wb-section--tint  { background-image: var(--wb-gradient-section-tint); }
.wb-theme .e-con.wb-section--soft  { background-image: var(--wb-gradient-section-soft); }
/* Notices 16px apart (1.2.2). Elementor Pro's Loop Grid gap is a Style-tab
   setting (default 30px), read from --grid-row-gap; any Loop Grid whose
   items are notices gets the gap from the theme, wherever it is placed. */
.wb-theme .elementor-loop-container:has(> .e-loop-item > .wb-notice) {
  --grid-row-gap: var(--wb-notice-gap);
}
/* High and Medium notices are two Loop Grids, one above the other (1.4.1).
   In the main column they would sit the column gap apart (24px); pull the
   second grid up so they are 16px apart, the same as notices in one grid.
   Both grids must hold notices: an empty grid is display:none (6.20) but is
   still the next grid's sibling, so the rule tests each grid for items. */
.wb-theme .wb-content-grid__main > .elementor-widget-loop-grid:has(.e-loop-item > .wb-notice)
  + .elementor-widget-loop-grid:has(.e-loop-item > .wb-notice) {
  margin-block-start: calc(var(--wb-notice-gap) - var(--wb-grid-gap));
}

/* Notices section (1.2.1): 40px top, 8px bottom (24px and 0 on mobile), so
   the notices sit close to the hero and the cards below. Use with
   wb-section--white. The extra class outranks Elementor's per-element CSS.
   1.4.1: the High and Medium grids inside it sit 16px apart (Elementor's
   container gap is 20px by default). */
.wb-theme .e-con.wb-section.wb-section--notices {
  --padding-top: var(--wb-notices-pad-top);
  --padding-bottom: var(--wb-notices-pad-bottom);
  --row-gap: var(--wb-notice-gap);
}

/* Section head: a row holding the title and an optional button. */
.wb-theme .e-con.wb-section__head {
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
  --container-widget-width: auto;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--wb-space-2);
  margin-block-end: var(--wb-space-4);
}

/* Section title (Heading widget, H2). Cherry: plain, no underline rule
   (Alder draws its spectrum rule with ::after). */
.wb-theme .wb-section__title .elementor-heading-title {
  margin: 0;
  font-size: var(--wb-size-section-title);
  line-height: var(--wb-leading-heading);
  color: var(--wb-color-primary-dark);
}



/* 6.2 CONTENT AND SIDEBAR GRID -------------------------------------------- */
/* Put .wb-content-grid on the section's container (Boxed or Full Width),
   with two child containers: .wb-content-grid__main and
   .wb-content-grid__sidebar. A Boxed container wraps its children in a
   hidden .e-con-inner, so the grid goes on that wrapper; a Full Width
   container holds its children directly (1.1.1). Stacks below 1024px. */
.wb-theme .e-con-full.wb-content-grid,
.wb-theme .e-con-boxed.wb-content-grid > .e-con-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--wb-content-gap);
  align-items: start;
}

/* Main column and sidebar: cards stacked 24px apart. */
.wb-theme .e-con.wb-content-grid__main,
.wb-theme .e-con.wb-content-grid__sidebar {
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
}
.wb-theme .e-con-full:is(.wb-content-grid__main, .wb-content-grid__sidebar),
.wb-theme .e-con-boxed:is(.wb-content-grid__main, .wb-content-grid__sidebar) > .e-con-inner {
  display: flex;
  flex-direction: column;
  gap: var(--wb-grid-gap);
}

@media (max-width: 1023px) {
  .wb-theme .e-con-full.wb-content-grid,
  .wb-theme .e-con-boxed.wb-content-grid > .e-con-inner { grid-template-columns: minmax(0, 1fr); }

  /* Tablet: sidebar cards two across. */
  .wb-theme .e-con-full.wb-content-grid__sidebar,
  .wb-theme .e-con-boxed.wb-content-grid__sidebar > .e-con-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
@media (max-width: 767px) {
  .wb-theme .e-con-full.wb-content-grid__sidebar,
  .wb-theme .e-con-boxed.wb-content-grid__sidebar > .e-con-inner { grid-template-columns: minmax(0, 1fr); }
}


/* 6.3 NOTICES ------------------------------------------------------------- */
/* Loop Item container: .wb-notice plus --high, --medium or --low.
   Elements: Post Title .wb-notice__title, Post Excerpt .wb-notice__text.
   Cherry (D4): Randalstown's look, with three priorities you can tell apart.
   - High: an NHS Red box with a white "Urgent" pill.
   - Medium: Randalstown's yellow "Important" box. The whole Medium Loop
     Grid is drawn as ONE box (Warm Yellow tint, 6px Warm Yellow left edge)
     with the pill on the first notice only, as Randalstown showed every
     notice in one box.
   - Low (sidebar): a blue-tint card with a 6px NHS Blue left edge, as
     Randalstown's sidebar notices.
   Notices are square, as Randalstown; no icons. The pill text is CSS
   content: it is read once, on the first notice's title. */
.wb-theme .e-con.wb-notice {
  --padding-top: var(--wb-notice-padding-y);
  --padding-bottom: var(--wb-notice-padding-y);
  --padding-left: var(--wb-notice-padding-x);
  --padding-right: var(--wb-notice-padding-x);
  --border-radius: var(--wb-radius-square);
  border-radius: var(--wb-radius-square);
  gap: var(--wb-space-0-5);
  color: var(--wb-color-text);
}

/* High: NHS Red, white text (4.87:1). Elementor's widget defaults read the
   global colours, so they are re-pointed to white here. */
.wb-theme .e-con.wb-notice--high {
  --e-global-color-primary: var(--white);
  --e-global-color-text: var(--white);
  background-color: var(--wb-color-urgent);
  color: var(--white);
}

/* Medium: the Loop Grid holding Medium notices is the box. Its items are
   transparent and sit --cherry-notice-item-gap apart inside it. */
.wb-theme .elementor-loop-container:has(> .e-loop-item > .wb-notice--medium) {
  --grid-row-gap: var(--cherry-notice-item-gap);
  row-gap: var(--cherry-notice-item-gap);
  padding: var(--wb-notice-padding-y) var(--wb-notice-padding-x);
  border-left: var(--wb-edge-notice) solid var(--nhs-warm-yellow);
  background-color: var(--cherry-tint-yellow);
}
.wb-theme .e-con.wb-notice--medium {
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
  padding: 0;
  background: none;
}

/* Low: the sidebar card. */
.wb-theme .e-con.wb-notice--low {
  --border-radius: var(--wb-radius);
  padding: var(--wb-notice-low-padding);
  border-left: var(--wb-edge-notice) solid var(--wb-color-primary);
  border-radius: var(--wb-radius);
  background-color: var(--wb-tint-blue);
}

.wb-theme .wb-notice__title .elementor-heading-title {
  margin: 0;
  font-size: var(--wb-size-notice-title);
  line-height: var(--wb-leading-heading);
  color: var(--wb-color-text);              /* 14.93:1 on the yellow tint */
}
.wb-theme .wb-notice--high .wb-notice__title .elementor-heading-title { color: var(--white); }
.wb-theme .wb-notice--low .wb-notice__title .elementor-heading-title {
  font-size: var(--wb-size-notice-low-title);
  color: var(--wb-color-primary-dark);      /* 10.49:1 on the blue tint */
}

/* The pills: "Urgent" on every High notice, "Important" on the first
   Medium notice. A block-level box that shrinks to its text sits above the
   title. */
.wb-theme .wb-notice--high .wb-notice__title .elementor-heading-title::before,
.wb-theme .e-loop-item:first-child > .wb-notice--medium .wb-notice__title .elementor-heading-title::before {
  display: table;
  margin: 0 0 var(--wb-space-1-5);
  padding: var(--cherry-pill-padding);
  border-radius: var(--wb-radius-pill);
  font-size: var(--wb-size-small);
  font-weight: var(--wb-weight-bold);
  line-height: 1.4;
}
.wb-theme .wb-notice--high .wb-notice__title .elementor-heading-title::before {
  content: "Urgent";
  background: var(--white);
  color: var(--wb-color-urgent);            /* 4.87:1, bold 15px */
}
.wb-theme .e-loop-item:first-child > .wb-notice--medium .wb-notice__title .elementor-heading-title::before {
  content: "Important";
  background: var(--nhs-warm-yellow);
  color: var(--wb-color-text);              /* 9.41:1 */
}

.wb-theme .wb-notice__text {
  font-size: var(--wb-size-text);
  line-height: var(--wb-leading-normal);
  color: inherit;
}
.wb-theme .wb-notice--high .wb-notice__text { color: var(--white); }
/* The excerpt's own paragraph margin would unbalance the padding. */
.wb-theme .wb-notice__text :where(*):last-child { margin-bottom: 0; }


/* 6.4 QUICK-LINK CARD ----------------------------------------------------- */
/* Grid: .wb-card-grid (1.1.1) on the container holding the cards.
   Card: a container with HTML Tag "a (link)" and the link set on it, class
   .wb-card, holding one Icon Box with NO link. The whole card is one link
   and one tab stop. */
.wb-theme .e-con-full.wb-card-grid,
.wb-theme .e-con-boxed.wb-card-grid > .e-con-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--wb-grid-gap);
}
.wb-theme .e-con-full.wb-card-grid {
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
}
@media (max-width: 1023px) {
  .wb-theme .e-con-full.wb-card-grid,
  .wb-theme .e-con-boxed.wb-card-grid > .e-con-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .wb-theme .e-con-full.wb-card-grid,
  .wb-theme .e-con-boxed.wb-card-grid > .e-con-inner { grid-template-columns: minmax(0, 1fr); }
}

/* Cherry (D5): Randalstown's cards. A square card with a 1px Dark Blue
   frame and a 6px Dark Blue top edge; the photo (wb-card__media) as a strip
   across the top; then a Dark Green arrow circle before the title, and the
   text below. The structure is the contract's: a linked container holding
   an optional Image widget and an unlinked Icon Box. The Icon Box's own
   icon is not shown: every card gets the same arrow, as Randalstown, and
   the icon a site chose still shows if it switches to Alder or Birch. */
.wb-theme .e-con.wb-card {
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
  --row-gap: 0;
  --gap: 0;
  --border-radius: var(--wb-radius-square);
  gap: 0;
  padding: 0;
  border: var(--wb-border-width) solid var(--cherry-card-frame);
  border-top-width: var(--cherry-card-edge);
  border-radius: var(--wb-radius-square);
  background: var(--wb-color-surface);
  color: var(--wb-color-text);
  text-decoration: none;
  transition: border-color var(--wb-transition);
}
.wb-theme .e-con.wb-card:hover { border-color: var(--wb-color-primary); }

/* The photo strip. Decorative: empty alternative text, no link. */
.wb-theme .e-con.wb-card .wb-card__media { width: 100%; margin: 0; line-height: 0; }
.wb-theme .e-con.wb-card .wb-card__media img {
  display: block;
  width: 100%;
  height: var(--cherry-card-media-height);
  max-width: none;
  object-fit: cover;
  border-radius: 0;
}

.wb-theme .e-con.wb-card .elementor-widget-icon-box { width: 100%; }
.wb-theme .e-con.wb-card .elementor-icon-box-wrapper {
  display: block;
  padding: var(--wb-card-padding);
  text-align: start;
}
.wb-theme .e-con.wb-card .elementor-icon-box-icon { display: none; }
.wb-theme .e-con.wb-card .elementor-icon-box-content { width: 100%; }
.wb-theme .e-con.wb-card .elementor-icon-box-title {
  display: flex;
  align-items: center;
  gap: var(--wb-space-1-5);
  margin: 0 0 var(--wb-space-1-5);
  font-size: var(--wb-size-card-title);
  font-weight: var(--wb-weight-bold);
  line-height: var(--wb-leading-heading);
  color: var(--wb-color-primary-dark);
}
/* The Dark Green arrow circle (6.93:1 on white). Decorative. */
.wb-theme .e-con.wb-card .elementor-icon-box-title::before {
  content: "";
  flex: none;
  width: var(--cherry-card-icon);
  height: var(--cherry-card-icon);
  background: var(--cherry-icon-arrow-circle) center / contain no-repeat;
}
.wb-theme .e-con.wb-card:hover .elementor-icon-box-title > * {
  text-decoration: underline;
  text-decoration-thickness: var(--wb-link-underline);
  text-underline-offset: var(--wb-link-offset);
}
.wb-theme .e-con.wb-card .elementor-icon-box-description {
  margin: 0;
  font-size: var(--wb-size-text);
  line-height: var(--wb-leading-normal);
  color: var(--wb-color-text);
}


/* 6.5 PAGE CONTENT BLOCK -------------------------------------------------- */
/* Loop Item container .wb-content-box; Post Title .wb-content-box__title
   (H2, no link); Post Content .wb-prose.
   Cherry (D7): Home shows each post in a flat white box with a 1px Pale
   Grey edge and 10px corners, as Randalstown. Every other page runs its
   content straight down the white page with no box, as Randalstown's inner
   pages. "home" is WordPress's body class on the front page. */
.wb-theme .e-con.wb-content-box {
  --border-radius: var(--wb-radius);
  padding: var(--wb-content-box-padding);
  border: var(--wb-border-width) solid var(--wb-card-edge-color);
  border-radius: var(--wb-radius);
  background: var(--wb-color-surface);
  gap: var(--wb-space-2);
}
.wb-theme:not(.home) .e-con.wb-content-box {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
/* Unboxed posts sit a little further apart than boxes, so each reads as
   its own section. */
.wb-theme:not(.home) .elementor-loop-container:has(> .e-loop-item > .wb-content-box) {
  --grid-row-gap: var(--wb-space-5);
  row-gap: var(--wb-space-5);
}
.wb-theme .wb-content-box__title .elementor-heading-title {
  margin: 0;
  font-size: var(--wb-size-h2);
  line-height: var(--wb-leading-heading);
  color: var(--wb-color-primary-dark);
}


/* 6.6 TABLE OF CONTENTS --------------------------------------------------- */
/* Elementor Pro Table of Contents widget, class .wb-toc. Cherry (D10):
   Randalstown's contents box: a 1px Pale Grey edge, 10px corners and a
   faint white-to-blue fade, with each entry an underlined NHS Blue link on
   its own row. No markers or numbers. The widget is styled through its
   own variables and its inner classes. */
.wb-theme .wb-toc {
  --box-background-color: transparent;
  --box-border-width: 0px;
  --box-border-radius: var(--wb-radius);
  --box-padding: 0px;
  --separator-width: 0px;
  --header-color: var(--wb-color-primary-dark);
  --item-text-color: var(--wb-color-primary);
  --item-text-hover-color: var(--wb-color-primary-dark);
  --item-text-decoration: underline;
  --item-text-hover-decoration: underline;
  /* Pro colours the links of headings on screen with this variable and its
     selector outranks the theme's; unset, those links fell back to black
     (Alder 1.4.0). Active links look like the others. */
  --item-text-active-color: var(--wb-color-primary);
  --item-text-active-decoration: underline;
  --marker-color: var(--wb-color-primary);
  --toc-body-max-height: none;
  padding: var(--wb-toc-padding);
  border-radius: var(--wb-radius);
  background: linear-gradient(135deg, var(--white) 0%, var(--wb-tint-blue-faint) 100%);
}
/* The edge. Pro draws its own border from --box-border-width (kept at 0)
   with a selector as specific as ".wb-theme .wb-toc"; the widget class
   lifts this rule above Pro's. */
.wb-theme .elementor-widget-table-of-contents.wb-toc {
  border: var(--wb-border-width) solid var(--wb-card-edge-color);
}
.wb-theme .wb-toc .elementor-toc__header {
  display: flex;
  padding: 0;
  margin: 0 0 var(--wb-space-1);
  border: 0;
}
.wb-theme .wb-toc .elementor-toc__header-title {
  margin: 0;
  font-size: var(--wb-size-h5);
  line-height: var(--wb-leading-heading);
  color: var(--wb-color-primary-dark);
}
.wb-theme .wb-toc .elementor-toc__body {
  padding: 0;
  max-height: none;
  overflow: visible;
}
.wb-theme .wb-toc .elementor-toc__list-wrapper {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wb-theme .wb-toc .elementor-toc__list-item { margin: 0; padding: 0; list-style: none; }
/* Nested (H3) entries sit under their H2, slightly indented. */
.wb-theme .wb-toc .elementor-toc__list-item .elementor-toc__list-wrapper { padding-inline-start: var(--wb-space-2); }
.wb-theme .wb-toc .elementor-toc__list-item-text-wrapper {
  display: flex;
  align-items: center;
  min-height: var(--wb-toc-row-height);
  padding: 0;
}
/* Pro's marker (bullet icon or number counter) is removed. */
.wb-theme .wb-toc .elementor-toc__list-item-text-wrapper::before { content: none; }
.wb-theme .wb-toc .elementor-toc__list-item-text-wrapper > :is(i, svg) { display: none; }
.wb-theme .wb-toc .elementor-toc__list-item-text {
  font-size: var(--wb-size-text);
  font-weight: var(--wb-weight-regular);
  line-height: var(--wb-leading-snug);
  color: var(--wb-color-primary);
  text-decoration: underline;
  text-decoration-thickness: var(--wb-link-underline);
  text-underline-offset: var(--wb-link-offset);
}
.wb-theme .wb-toc .elementor-toc__list-item-text:hover {
  color: var(--wb-color-primary-dark);
  text-decoration-thickness: var(--wb-link-underline-hover);
}

/* 1.3.2: the TOC is a saved Container template ("Table of contents")
   placed with the Template widget, so it is edited in one place. The
   template's container adds no padding of its own, and when the TOC hides
   itself (no headings, 1.3.1) the Template widget around it goes too, so
   it leaves no gap in the column. */
.wb-theme .e-con:has(> .wb-toc) {
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
}


/* 6.7 SIDEBAR CARD AND LINK LIST ------------------------------------------ */
/* Container .wb-sidebar-card plus --links, --related or --hours. Heading
   H2 .wb-sidebar-card__title. Links: .wb-link-list on a WordPress
   "Navigation Menu" widget or on a Loop Grid.
   Cherry (D8): plain, as Randalstown's sidebar lists: no box, a Dark Blue
   title and a list of NHS Blue links between Pale Grey dividers. */
.wb-theme .e-con.wb-sidebar-card {
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
  padding: 0;
  background: none;
  gap: var(--wb-space-0-5);
}
.wb-theme .wb-sidebar-card__title .elementor-heading-title {
  margin: 0;
  font-size: var(--wb-size-card-title);
  line-height: var(--wb-leading-heading);
  color: var(--wb-color-primary-dark);
}
/* Opening hours show in Cherry's footer, as Randalstown, so a sidebar copy
   (the "Opening hours" saved template, which Birch shows) is hidden with
   its Template widget, leaving no gap (decisions action 55). */
.wb-theme .wb-content-grid__sidebar .elementor-widget-template:has(.wb-sidebar-card--hours),
.wb-theme .wb-content-grid__sidebar .e-con.wb-sidebar-card--hours { display: none; }

/* Link list: 48px rows, dividers, chevron, no underline. */
.wb-theme .wb-link-list :is(.menu, .elementor-loop-container) {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wb-theme .wb-link-list :is(.menu-item, .e-loop-item) { margin: 0; }
.wb-theme .wb-link-list :is(.menu-item, .e-loop-item) + :is(.menu-item, .e-loop-item) {
  border-top: var(--wb-border-width) solid var(--wb-color-border);
}
.wb-theme .wb-link-list .menu-item > a,
.wb-theme .wb-link-list .e-loop-item .elementor-heading-title > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wb-space-1-5);
  min-height: var(--wb-row-height);
  margin: 0;
  padding: var(--wb-space-1) 0;
  border-radius: 0;
  font-size: var(--wb-size-text);
  font-weight: var(--wb-weight-regular);
  line-height: var(--wb-leading-snug);
  color: var(--wb-color-primary);
  text-decoration: none;
}
/* Cherry: a divider under every row, the last included, as Randalstown. */
.wb-theme .wb-link-list :is(.menu-item, .e-loop-item):last-child { border-bottom: var(--wb-border-width) solid var(--wb-color-border); }
.wb-theme .wb-link-list .menu-item > a:hover,
.wb-theme .wb-link-list .e-loop-item .elementor-heading-title > a:hover {
  color: var(--wb-color-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: var(--wb-link-underline);
  text-underline-offset: var(--wb-link-offset);
}
.wb-theme .wb-link-list .menu-item > a::after,
.wb-theme .wb-link-list .e-loop-item .elementor-heading-title > a::after {
  --wb-icon: var(--wb-icon-chevron);
}
/* Loop Grid inside a link list: the Loop Item's own container adds no space. */
.wb-theme .wb-link-list .e-loop-item .e-con {
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
}


/* 6.8 EMERGENCY CARD ------------------------------------------------------ */
/* Container .wb-emergency holding an HTML widget with the fixed markup in
   docs/class-contract.md (replaced by the gp-core shortcode later). */
.wb-theme .e-con.wb-emergency {
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
  --border-radius: var(--wb-radius);
  --overflow: hidden;
  overflow: hidden;
  border: var(--wb-border-width) solid var(--wb-card-edge-color);
  border-radius: var(--wb-radius);
  background: var(--wb-color-surface);
  box-shadow: var(--wb-shadow);
}
.wb-theme .wb-emergency__head {
  display: flex;
  align-items: center;
  gap: var(--wb-space-1-5);
  padding: var(--wb-emergency-head-padding);
  background: var(--wb-color-urgent);
  color: var(--white);
}
.wb-theme .wb-emergency__head::before { --wb-icon: var(--wb-icon-warning); }
.wb-theme .wb-emergency__title {
  margin: 0;
  font-size: var(--wb-size-card-title);
  line-height: var(--wb-leading-heading);
  color: var(--white);
}
.wb-theme .wb-emergency__body {
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-1-5);
  padding: var(--wb-emergency-body-padding);
}
.wb-theme .wb-emergency__call {
  display: flex;
  align-items: center;
  gap: var(--wb-space-2);
  min-height: var(--wb-call-height);
  padding: var(--wb-space-1-5) var(--wb-space-2);
  border-radius: var(--wb-radius-square);  /* Cherry: square, as the panel */
  color: var(--white);
  text-decoration: none;
}
.wb-theme .wb-emergency__call:hover,
.wb-theme .wb-emergency__call:focus { color: var(--white); filter: var(--wb-hover-dim); }
.wb-theme .wb-emergency__call--999 { background-color: var(--wb-color-urgent); }  /* 4.87:1 */
.wb-theme .wb-emergency__call--111 { background-color: var(--wb-color-primary); } /* 6.38:1 */
.wb-theme .wb-emergency__number {
  font-size: var(--wb-size-call);
  font-weight: var(--wb-weight-bold);
  line-height: 1;
}
.wb-theme .wb-emergency__label {
  font-size: var(--wb-size-meta);
  font-weight: var(--wb-weight-bold);
  line-height: var(--wb-leading-snug);
}
.wb-theme .wb-emergency__text {
  margin: 0;
  font-size: var(--wb-size-text);
  line-height: var(--wb-leading-normal);
  color: var(--wb-color-text);
}
.wb-theme .wb-emergency__link {
  color: var(--wb-color-primary);
  text-decoration: underline;
  text-decoration-thickness: var(--wb-link-underline);
  text-underline-offset: var(--wb-link-offset);
}
.wb-theme .wb-emergency__link:hover {
  color: var(--wb-color-primary-dark);
  text-decoration-thickness: var(--wb-link-underline-hover);
}


/* 6.9 OPENING HOURS ------------------------------------------------------- */
/* Table .wb-hours, output by the gp-core [webicious_gp_hours] shortcode
   (task 2.4). Cherry shows opening hours in the footer, as Randalstown
   (D9); a sidebar copy is hidden (6.7). The resets undo Hello's table
   borders, zebra stripes and hover tints. */
.wb-theme .wb-hours {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: var(--wb-size-text);
}
.wb-theme .wb-hours :is(.wb-hours__day, .wb-hours__time) {
  padding: var(--wb-space-1);
  border: 0;
  border-top: var(--wb-border-width) solid var(--wb-color-border);
  background: transparent;
  line-height: var(--wb-leading-snug);
  color: var(--wb-color-text);
  text-align: start;
  vertical-align: top;
}
.wb-theme .wb-hours .wb-hours__day { font-weight: var(--wb-weight-bold); }
.wb-theme .wb-hours .wb-hours__time { font-weight: var(--wb-weight-regular); text-align: end; }
.wb-theme .wb-hours .wb-hours__row:first-child :is(.wb-hours__day, .wb-hours__time) { border-top: 0; }
.wb-theme .wb-hours .wb-hours__row--today :is(.wb-hours__day, .wb-hours__time) { background: var(--wb-tint-blue); }
.wb-theme .wb-hours__note {
  margin: var(--wb-space-1-5) 0 0;
  font-size: var(--wb-size-small);
  color: var(--wb-color-text-muted);
}


/* 6.10 NEWS CARD ---------------------------------------------------------- */
/* Loop Item container .wb-news-card; Post Info (date) .wb-news-card__date;
   Post Title (H3, linked) .wb-news-card__title; Post Excerpt
   .wb-news-card__text. The title link covers the card; "Read more" comes
   from CSS.
   Cherry (D11): Randalstown's news cards: a flat white box with a 1px Pale
   Grey edge, the title in NHS Blue above a plain date, and "Read more »".
   The title is moved above the date with flex order; both are short, so
   reading order is unaffected in practice. */
.wb-theme .e-con.wb-news-card {
  --border-radius: var(--wb-radius);
  --height: 100%;
  padding: var(--wb-space-3);
  border: var(--wb-border-width) solid var(--wb-card-edge-color);
  border-radius: var(--wb-radius);
  background: var(--wb-color-surface);
  gap: var(--wb-space-1);
  transition: border-color var(--wb-transition);
}
.wb-theme .e-con.wb-news-card:hover { border-color: var(--wb-color-primary); }
.wb-theme .e-con.wb-news-card > .wb-news-card__title { order: -1; }
/* "Read more »", pinned to the bottom of the card. Decorative: the title
   link already names the article, so screen readers skip it. */
.wb-theme .e-con.wb-news-card::after {
  content: "Read more \00BB";
  content: "Read more \00BB" / "";
  display: block;
  width: fit-content;
  margin-top: auto;
  padding-top: var(--wb-space-1);
  font-size: var(--wb-size-meta);
  font-weight: var(--wb-weight-bold);
  color: var(--wb-color-primary);
}

.wb-theme .wb-news-card__date :is(.elementor-post-info, .elementor-icon-list-items) {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wb-theme .wb-news-card__date .elementor-icon-list-item {
  margin: 0;
  padding: 0;
  font-size: var(--wb-size-meta);
  color: var(--wb-color-text-muted);
}
/* No date icon in Cherry. */
.wb-theme .wb-news-card__date .elementor-icon-list-icon { display: none; }
.wb-theme .wb-news-card__date .elementor-icon-list-text {
  padding: 0;
  font-size: var(--wb-size-meta);
  color: var(--wb-color-text-muted);     /* 7.75:1 */
}

.wb-theme .wb-news-card__title .elementor-heading-title {
  margin: 0;
  font-size: var(--wb-size-card-title);
  line-height: var(--wb-leading-heading);
  color: var(--wb-color-primary);
}
.wb-theme .wb-news-card__title .elementor-heading-title a {
  color: inherit;
  text-decoration: none;
}
.wb-theme .e-con.wb-news-card:hover .wb-news-card__title .elementor-heading-title a {
  text-decoration: underline;
  text-decoration-thickness: var(--wb-link-underline);
  text-underline-offset: var(--wb-link-offset);
}
/* Stretched link: the whole card is clickable through the title link.
   1.3.2: Elementor makes every widget wrapper position: relative, which
   trapped the overlay inside the title widget, so only the title was
   clickable. The title widget is made static so the overlay reaches the
   card (the card itself is the positioned container). */
.wb-theme .e-con:is(.wb-news-card, .wb-result) :is(.wb-news-card__title, .wb-result__title) { position: static; }
.wb-theme .wb-news-card__title .elementor-heading-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.wb-theme .wb-news-card__text {
  font-size: var(--wb-size-text);
  line-height: var(--wb-leading-normal);
  color: var(--wb-color-text);
}
.wb-theme .wb-news-card__text :where(*):last-child { margin-bottom: 0; }


/* 6.11 BUTTONS ------------------------------------------------------------ */
/* Button widget with .wb-button plus one role. The rules style
   ".elementor-button" inside the widget. Each hover rule outranks the base
   button rule in section 3 ("body[class*=elementor-kit-] ...:hover"). */
.wb-theme .wb-button .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wb-space-1-5);
  min-height: var(--wb-button-height);
  padding: var(--wb-space-1-5) var(--wb-space-3);
  border: var(--wb-button-border) solid transparent;
  border-radius: var(--wb-radius-square);  /* Cherry: square, as Randalstown */
  font-family: var(--wb-font-heading);
  font-size: var(--wb-size-button);
  font-weight: var(--wb-weight-bold);
  line-height: var(--wb-leading-heading);
  text-decoration: none;
  transition: background-color var(--wb-transition), color var(--wb-transition);
}
.wb-theme .wb-button .elementor-button-icon svg { width: 1em; height: 1em; fill: currentColor; }

/* Primary: NHS Blue, white text (6.38:1); hover Dark Blue (11.85:1). */
.wb-theme .wb-button--primary .elementor-button {
  background-color: var(--wb-color-primary);
  border-color: var(--wb-color-primary);
  color: var(--white);
}
.wb-theme .wb-button--primary .elementor-button:is(:hover, :focus) {
  background-color: var(--wb-color-primary-dark);
  border-color: var(--wb-color-primary-dark);
  color: var(--white);
}

/* Secondary: white, NHS Blue border and text; hover blue tint. */
.wb-theme .wb-button--secondary .elementor-button {
  background-color: var(--wb-color-surface);
  border-color: var(--wb-color-primary);
  color: var(--wb-color-primary);
}
.wb-theme .wb-button--secondary .elementor-button:is(:hover, :focus) {
  background-color: var(--wb-tint-blue);
  border-color: var(--wb-color-primary);
  color: var(--wb-color-primary-dark);
}

/* On dark (hero): white, Dark Blue text; hover Pale Grey. */
.wb-theme .wb-button--on-dark .elementor-button {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--wb-color-primary-dark);
}
.wb-theme .wb-button--on-dark .elementor-button:is(:hover, :focus) {
  background-color: var(--nhs-pale-grey);
  border-color: var(--nhs-pale-grey);
  color: var(--wb-color-primary-dark);
}

/* On dark, outline: white border and text; hover translucent white. */
.wb-theme .wb-button--on-dark-outline .elementor-button {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}
.wb-theme .wb-button--on-dark-outline .elementor-button:is(:hover, :focus) {
  background-color: var(--wb-on-dark-hover);
  border-color: var(--white);
  color: var(--white);
}


/* 6.12 HERO (Home) AND BANNER (inner pages) ------------------------------- */
/* Cherry: a full-width photo band with the square blue title panel
   overlapping its lower edge (D2), the same header templates as Birch
   (contract section 4b; Cherry design spec 5.2 and 5.3):
     Container (Boxed)            .wb-hero   or  .wb-banner
     └── Container (Full Width)   .wb-hero__panel  or  .wb-banner__panel
         Home:  Heading H1 .wb-hero__title, Heading p (Link tel:) .wb-hero__phone
         Inner: Shortcode [wb_breadcrumbs] .wb-banner__crumbs, Page Title H1 .wb-banner__title
   The outer container's background is three layers: white from the band's
   lower edge down (so the panel overhangs onto the page), the featured
   image (inc/banner-photo.php) and, under it, the tint pattern shown when
   there is no photo. The container's top padding sets where the panel
   starts, so no negative margins are needed. */
.wb-theme .e-con:is(.wb-hero, .wb-banner) {
  --cherry-photo-height: var(--cherry-banner-photo-height);
  --padding-top: var(--cherry-banner-panel-top);
  --padding-bottom: 0;
  --padding-left: var(--wb-gutter);
  --padding-right: var(--wb-gutter);
  --content-width: min(100%, var(--wb-content-max));
  background:
    linear-gradient(var(--wb-color-surface), var(--wb-color-surface)) 0 var(--cherry-photo-height) / 100% 100% no-repeat,
    var(--cherry-photo-image) var(--cherry-photo-position) / cover no-repeat,
    var(--cherry-photo-fallback);
}
.wb-theme .e-con.wb-hero {
  --cherry-photo-height: var(--cherry-hero-photo-height);
  --padding-top: var(--cherry-hero-panel-top);
}
@media (max-width: 767px) {
  .wb-theme .e-con:is(.wb-hero, .wb-banner) {
    background:
      linear-gradient(var(--wb-color-surface), var(--wb-color-surface)) 0 var(--cherry-photo-height) / 100% 100% no-repeat,
      var(--cherry-photo-image-small) var(--cherry-photo-position) / cover no-repeat,
      var(--cherry-photo-fallback);
  }
}

/* The panel: NHS Blue, white text (6.38:1), square, as Randalstown.
   Elementor's widget defaults read the global colours, so they are
   re-pointed to white inside it. The panel classes are shared (contract
   "Hero and banner"), so a Cherry or Cherry header works with either theme. */
.wb-theme .e-con:is(.wb-hero__panel, .wb-banner__panel) {
  --e-global-color-primary: var(--white);
  --e-global-color-text: var(--white);
  --width: min(100%, var(--cherry-banner-panel-max));
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
  --row-gap: var(--wb-space-1-5);
  width: min(100%, var(--cherry-banner-panel-max));
  padding: var(--cherry-banner-panel-padding);
  border-radius: var(--wb-radius-square);  /* Cherry: square, no edge or shadow, as Randalstown */
  background: var(--wb-color-primary);
  color: var(--white);
}
.wb-theme .e-con.wb-hero__panel {
  --width: min(100%, var(--cherry-hero-panel-max));
  --row-gap: var(--wb-space-2);
  width: min(100%, var(--cherry-hero-panel-max));
  padding: var(--cherry-hero-panel-padding);
}

.wb-theme .wb-hero__title .elementor-heading-title {
  margin: 0;
  font-size: var(--wb-size-hero);
  line-height: var(--wb-leading-tight);
  color: var(--white);
}
/* Home: the phone number only, no buttons (D2). Heading widget, HTML Tag p,
   Link tel:…, with a phone icon from CSS. */
.wb-theme .wb-hero__phone .elementor-heading-title {
  margin: 0;
  font-size: var(--cherry-size-hero-phone);
  font-weight: var(--wb-weight-bold);
  line-height: var(--wb-leading-heading);
  color: var(--white);
}
.wb-theme .wb-hero__phone .elementor-heading-title > a {
  display: inline-flex;
  align-items: center;
  gap: var(--wb-space-1-5);
  min-height: var(--wb-row-height);
  color: var(--white);
  text-decoration: none;
}
.wb-theme .wb-hero__phone .elementor-heading-title > a:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: var(--wb-link-underline-hover);
  text-underline-offset: var(--wb-link-offset);
}
.wb-theme .wb-hero__phone .elementor-heading-title > a::before {
  content: "";
  flex: none;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: var(--wb-icon-phone) center / contain no-repeat;
          mask: var(--wb-icon-phone) center / contain no-repeat;
}

/* Alder's hero lead and buttons, kept so its header template still reads
   if a site uses it with Cherry. Cherry's own header has neither. */
.wb-theme .wb-hero__lead {
  max-width: var(--wb-hero-lead-max);
  margin-bottom: var(--wb-space-2);
  font-size: var(--wb-size-lead);
  line-height: var(--wb-leading-normal);
  color: var(--white);
}
.wb-theme .wb-hero__lead :where(*):last-child { margin-bottom: 0; }
.wb-theme .e-con.wb-hero__actions {
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
  --container-widget-width: auto;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--wb-space-2);
}

.wb-theme .wb-banner__title .elementor-heading-title {
  margin: 0;
  font-size: var(--wb-size-h1);
  line-height: var(--wb-leading-heading);
  color: var(--white);
}
/* Breadcrumb links in the banner are white. "a" is targeted so this also
   covers SEOPress's breadcrumbs, whose links have no classes (documented
   exception to contract rule 2), until a site switches to [wb_breadcrumbs]. */
.wb-theme .wb-banner__crumbs {
  font-size: var(--wb-size-meta);
  color: var(--white);
}
.wb-theme .wb-banner__crumbs a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: var(--wb-link-underline);
  text-underline-offset: var(--wb-link-offset);
}
.wb-theme .wb-banner__crumbs a:hover {
  color: var(--white);
  text-decoration-thickness: var(--wb-link-underline-hover);
}

/* Breadcrumbs (1.5.0): markup from webicious-gp-core's [wb_breadcrumbs]
   shortcode (gp-core 1.0.0): nav.wb-breadcrumbs > ol.wb-breadcrumbs__list >
   li.wb-breadcrumbs__item > a.wb-breadcrumbs__link or
   span.wb-breadcrumbs__current. The list loses its numbers and runs in a
   row that wraps. The "›" separator is drawn here, not in the markup, and
   its "/ ''" alternative text keeps screen readers from announcing it
   (browsers without that syntax use the first declaration and still show
   it). Links are NHS Blue and underlined in body text; in the banner the
   .wb-banner__crumbs rules above make them white. */
.wb-theme .wb-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--wb-space-0-5) var(--wb-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--wb-size-meta);
  line-height: var(--wb-leading-normal);
}
.wb-theme .wb-breadcrumbs__item {
  display: inline-flex;
  align-items: baseline;
  gap: var(--wb-space-1);
  margin: 0;
}
.wb-theme .wb-breadcrumbs__item + .wb-breadcrumbs__item::before {
  content: "\203A";
  content: "\203A" / "";
}
.wb-theme .wb-breadcrumbs__link {
  color: var(--wb-color-primary);
  text-decoration: underline;
  text-decoration-thickness: var(--wb-link-underline);
  text-underline-offset: var(--wb-link-offset);
}
.wb-theme .wb-breadcrumbs__link:hover {
  text-decoration-thickness: var(--wb-link-underline-hover);
}

@media (max-width: 767px) {
  /* Hero buttons run full width on phones. */
  .wb-theme .e-con.wb-hero__actions > .wb-button,
  .wb-theme .e-con.wb-hero__actions .wb-button .elementor-button { width: 100%; }
}


/* 6.13 FOOTER ------------------------------------------------------------- */
/* Boxed container .wb-footer. Cherry (D9): Randalstown's footer, a recorded
   exception to the NHS Dark Blue footer standard: the NHS website's grey
   (--cherry-footer-bg) with a 5px NHS Black rule along the top, four
   columns (practice details, Opening hours, Policies, Quick links), NHS
   Black text and Dark Blue links (8.65:1), then a full-width NHS Dark Blue
   bottom bar with the © line and the Webicious credit. Children:
   .wb-footer__columns, whose first column is .wb-footer__card, and
   .wb-footer__bottom.
   Menus are WordPress "Navigation Menu" widgets; footer text links are
   targeted as "a" because widget markup has no link classes (documented
   exception to contract rule 2). */
.wb-theme .e-con.wb-footer {
  --e-global-color-primary: var(--wb-color-text);
  --e-global-color-text: var(--wb-color-text);
  --padding-top: var(--wb-footer-padding-top);
  --padding-bottom: 0;
  --padding-left: var(--wb-gutter);
  --padding-right: var(--wb-gutter);
  --content-width: min(100%, var(--wb-content-max));
  --row-gap: 0;
  --overflow: hidden;
  overflow: hidden;   /* clips the bottom bar's full-width fill to the page */
  border-top: var(--cherry-footer-rule) solid var(--wb-color-text);
  background: var(--cherry-footer-bg);
  color: var(--wb-color-text);             /* 11.91:1 on the grey */
  font-size: var(--wb-size-text);
}
.wb-theme .wb-footer a:where(:not(.elementor-button)) {
  color: var(--wb-color-primary-dark);     /* 8.65:1 on the grey */
  text-decoration: none;
}
.wb-theme .wb-footer a:where(:not(.elementor-button)):hover {
  color: var(--wb-color-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: var(--wb-link-underline);
  text-underline-offset: var(--wb-link-offset);
}
.wb-theme .wb-footer .elementor-widget-text-editor { color: var(--wb-color-text); }
.wb-theme .wb-footer .menu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wb-theme .wb-footer .menu-item { margin: 0 0 var(--wb-space-1-5); }

.wb-theme .e-con:is(.wb-footer__columns, .wb-footer__bottom) {
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
}
.wb-theme .e-con-full.wb-footer__columns,
.wb-theme .e-con-boxed.wb-footer__columns > .e-con-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--wb-space-4);
}
/* Column containers inside the grid add no space of their own. */
.wb-theme .wb-footer__columns .e-con {
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
  --row-gap: var(--wb-space-2);
}
/* Column headings: NHS Black, bold, sentence case (Randalstown's were
   upper case: decision 3). */
.wb-theme .wb-footer__title .elementor-heading-title {
  margin: 0;
  font-size: var(--wb-size-h5);
  line-height: var(--wb-leading-heading);
  color: var(--wb-color-text);
}

/* The practice column (.wb-footer__card) is plain, like the other columns,
   with Randalstown's Dark Green icons beside the address and phone. */
.wb-theme .wb-footer__columns .e-con.wb-footer__card {
  align-self: start;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.wb-theme .wb-footer__card .elementor-widget-text-editor {
  padding-inline-start: calc(var(--wb-icon-inline) + var(--wb-space-1-5));
  background: var(--cherry-icon-location-green) 0 0.2em / var(--wb-icon-inline) no-repeat;
}
.wb-theme .wb-footer__card .elementor-widget-text-editor :where(p):last-child { margin-bottom: 0; }

/* Phone: Heading widget (HTML Tag p, Link tel:) with a Dark Green phone
   icon, a background so it keeps its colour. */
.wb-theme .wb-footer__phone .elementor-heading-title {
  margin: 0;
  font-size: var(--wb-size-text);
  font-weight: var(--wb-weight-bold);
  line-height: var(--wb-leading-heading);
}
.wb-theme .wb-footer__phone .elementor-heading-title > a {
  display: inline-flex;
  align-items: center;
  gap: var(--wb-space-1-5);
  min-height: var(--wb-row-height);
}
.wb-theme .wb-footer__phone .elementor-heading-title > a::before {
  background: var(--cherry-icon-phone-green) center / contain no-repeat;
  -webkit-mask: none;
          mask: none;
}

/* Opening hours in the footer (D9): day on the left, time on the right, no
   dividers or tint. "Closed" is plain NHS Black: Randalstown's red failed
   contrast on the grey (3.55:1). */
.wb-theme .wb-footer .wb-hours :is(.wb-hours__day, .wb-hours__time) {
  padding: var(--wb-space-0-5) 0;
  border: 0;
  background: transparent;
  font-weight: var(--wb-weight-regular);
  color: var(--wb-color-text);
}
/* A time stays on one line; the column is wide enough at every width. */
.wb-theme .wb-footer .wb-hours .wb-hours__time { white-space: nowrap; padding-inline-start: var(--wb-space-2); }
.wb-theme .wb-footer .wb-hours__note { color: var(--wb-color-text); }

/* Bottom bar: NHS Dark Blue across the full page width. The bar sits in
   the Boxed footer's 1200px inner box, so its fill reaches the page edges
   with a wide box-shadow, clipped by the footer's overflow. */
.wb-theme .e-con.wb-footer__bottom {
  --e-global-color-primary: var(--white);
  --e-global-color-text: var(--wb-color-on-dark-muted);
  --container-widget-width: auto;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--wb-space-2);
  margin-block-start: var(--wb-space-6);
  padding: var(--wb-space-3) 0;
  background: var(--nhs-dark-blue);
  box-shadow: 0 0 0 100vmax var(--nhs-dark-blue);
  clip-path: inset(0 -100vmax);
  font-size: var(--wb-size-meta);
  color: var(--wb-color-on-dark-muted);    /* Pale Grey, 10.03:1 */
  text-align: start;
}
.wb-theme .wb-footer__bottom .elementor-widget-text-editor { color: var(--wb-color-on-dark-muted); }
.wb-theme .wb-footer__bottom a:where(:not(.elementor-button)),
.wb-theme .wb-footer__bottom a:where(:not(.elementor-button)):hover { color: var(--white); }
.wb-theme .wb-footer__bottom :where(p):last-child { margin-bottom: 0; }
.wb-theme .wb-footer__small-print .menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wb-space-1) var(--wb-space-3);
}
.wb-theme .wb-footer__small-print .menu-item { margin: 0; }

/* 1.4.0: the © line (and the Small print menu, if a site keeps it) on the
   left. The group takes the space the credit leaves and wraps inside
   itself, so the credit stays at the right on desktop and tablet. */
.wb-theme .e-con.wb-footer__legal {
  flex: 1 1 0%;
  min-width: 0;
  --container-widget-width: auto;
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wb-space-1) var(--wb-space-3);
  --width: auto;
  width: auto;
}

/* 1.4.0: "Website by" and the white Webicious logo, one link, on the
   right. HTML widget markup (class contract, "Footer"); the logo's alt text
   completes the link's name: "Website by Webicious". */
.wb-theme .wb-footer__credit {
  display: inline-flex;
  align-items: center;
  gap: var(--wb-space-1-5);
  min-height: var(--wb-row-height);
}
.wb-theme .wb-footer__credit-logo {
  display: block;
  width: auto;
  height: var(--wb-credit-logo-height);
}

@media (max-width: 1023px) {
  /* Tablet: two columns. */
  .wb-theme .e-con-full.wb-footer__columns,
  .wb-theme .e-con-boxed.wb-footer__columns > .e-con-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .wb-theme .e-con-full.wb-footer__columns,
  .wb-theme .e-con-boxed.wb-footer__columns > .e-con-inner { grid-template-columns: minmax(0, 1fr); }
  /* Mobile: © line, then the credit beneath it. */
  .wb-theme .e-con.wb-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .wb-theme .e-con.wb-footer__legal { flex: none; }
}


/* 6.14 HEADER BAND (1.2.1) ------------------------------------------------ */
/* White band: logo, practice name and address on the left, search on the
   right. Structure (class contract, "Header band"):
     Container (Boxed, Row, Wrap)              .wb-header
     ├── Container (Full Width)                .wb-header__brand
     │   ├── Image                             .wb-header__logo
     │   ├── Heading (HTML Tag: div)           .wb-practice-name
     │   └── Heading (HTML Tag: div)           .wb-practice-address
     └── Search (Elementor Pro)                .wb-search
   The brand container is a grid: the logo spans two rows, the name sits
   above the address, so no extra container is needed for the text.
   Selectors include .wb-header so they outrank Elementor's per-element CSS
   (0,3,0) if a width was set in the editor. */
.wb-theme .e-con.wb-header {
  --padding-top: var(--wb-header-padding-y);
  --padding-bottom: var(--wb-header-padding-y);
  --padding-left: var(--wb-gutter);
  --padding-right: var(--wb-gutter);
  --content-width: min(100%, var(--wb-content-max));
  --row-gap: var(--wb-space-2);
  --column-gap: var(--wb-space-3);
  /* Cherry: Randalstown's thin NHS Blue strip along the top. */
  border-top: var(--cherry-strip) solid var(--wb-color-primary);
  background-color: var(--wb-color-surface);
}

/* Brand: logo | name / address. */
.wb-theme .wb-header .e-con.wb-header__brand {
  --display: grid;
  --width: auto;
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --padding-right: 0;
  /* Cherry: logo above the name, the name above the address, as
     Randalstown (Alder and Birch put the logo beside them). */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-items: start;
  column-gap: var(--wb-space-2);
  row-gap: var(--wb-space-1);
  /* Grows into the space the search leaves; a long practice name wraps
     onto a second line rather than pushing the search below. */
  flex: 1 1 var(--wb-brand-min);
  width: auto;
  min-width: 0;
}
.wb-theme .wb-header .e-con.wb-header__brand > .elementor-widget {
  width: auto;
  max-width: 100%;
  margin: 0;
}
.wb-theme .wb-header .wb-header__logo {
  grid-column: 1;
  grid-row: 1;
  line-height: 0;
}
/* Width and height both auto with two maximums: the logo keeps its shape
   and fits a 160 x 56px box (44px high on phones), room for a practice's
   own logo such as the taller HSC mark. A high-resolution
   (retina) file is scaled down to fit, never shown at its natural size. */
.wb-theme .wb-header .wb-header__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: var(--wb-logo-max-width);
  max-height: var(--wb-logo-height);
}
.wb-theme .wb-header .wb-practice-name { grid-column: 1; }
.wb-theme .wb-header .wb-practice-address { grid-column: 1; }
/* Elementor colours and sizes the Heading's inner title, not its wrapper,
   so the rules target .elementor-heading-title. */
.wb-theme .wb-practice-name .elementor-heading-title {
  margin: 0;
  font-family: var(--wb-font-heading);
  font-size: var(--wb-size-practice-name);
  font-weight: var(--wb-weight-bold);
  line-height: var(--wb-leading-heading);
  color: var(--wb-color-text);
}
.wb-theme .wb-practice-address .elementor-heading-title {
  margin: 0;
  font-family: var(--wb-font-body);
  font-size: var(--wb-size-meta);
  font-weight: var(--wb-weight-regular);
  line-height: var(--wb-leading-snug);
  color: var(--wb-color-primary-dark);     /* Cherry: Dark Blue, as Randalstown (11.85:1) */
}

/* Search: Elementor Pro's Search widget (Elementor 3.24+; it replaced the
   Search Form widget). The widget is styled through its own custom
   properties, declared on .elementor-widget-search; these declarations sit
   on the same element with higher specificity. Input and button join into
   one control: 2px Dark Grey border, NHS Blue button.
   1.5.1: the look (colours, corners, padding) applies to every .wb-search,
   so a Search widget outside the header (for example on Page Not Found)
   matches the header one. Only the width and flex rules stay header-only. */
.wb-theme .elementor-widget-search.wb-search {
  --e-search-input-color: var(--wb-color-text);
  --e-search-input-border-color: var(--wb-search-border);
  --e-search-input-border-radius: 0;   /* Cherry: square, as Randalstown */
  --e-search-input-padding-block-start: var(--wb-space-1);
  --e-search-input-padding-block-end: var(--wb-space-1);
  --e-search-input-padding-inline-start: var(--wb-space-1-5);
  --e-search-input-padding-inline-end: var(--wb-space-1-5);
  --e-search-placeholder-color: var(--wb-color-text-muted);
  --e-search-icon-label-color: var(--wb-color-text-muted);
  --e-search-submit-color: var(--white);
  --e-search-icon-submit-color: var(--white);
  --e-search-submit-background-color: var(--wb-color-primary);
  --e-search-submit-border-radius: 0;
  --e-search-submit-padding: 0 var(--wb-space-2);
  --e-search-submit-margin-inline-start: 0px;
}
/* Header only: fixed width on the right of the brand (full width on mobile,
   below). */
.wb-theme .wb-header .elementor-widget-search.wb-search {
  --container-widget-width: var(--wb-search-width);
  --container-widget-flex-grow: 0;
  flex: 0 1 var(--wb-search-width);
  width: var(--wb-search-width);
  max-width: 100%;
}
.wb-theme .wb-search .e-search-form { display: flex; width: 100%; }
.wb-theme .wb-search .e-search-input-wrapper { flex: 1 1 auto; min-width: 0; }
.wb-theme .wb-search .e-search-input {
  width: 100%;
  min-height: var(--wb-search-height);
  border: var(--wb-border-width) solid var(--wb-search-border);
  border-right-width: 0;
  background-color: var(--wb-color-surface);
  font-family: var(--wb-font-body);
  font-size: var(--wb-size-text);
  /* Hello's reset animates "all" on inputs; focus shows at once instead. */
  transition: none;
}
/* 1.2.2: focus turns the field's border NHS Blue and 2px thick (1px border
   plus a 1px inner line, so nothing moves), in place of the theme's
   black-and-white focus ring on this one field. The change from 1px Mid
   Grey to 2px NHS Blue (6.38:1) keeps focus clearly visible (WCAG 2.4.7).
   !important and the extra classes beat the theme-wide focus rule, which
   is itself !important (section 4). */
body.wb-theme .wb-search .e-search-input:is(:focus, :focus-visible) {
  border-color: var(--wb-color-primary);
  outline: none !important;
  box-shadow: inset 0 0 0 var(--wb-border-width) var(--wb-color-primary) !important;
}
.wb-theme .wb-search .e-search-submit {
  flex: 0 0 auto;
  min-height: var(--wb-search-height);
  border: 0;
  font-family: var(--wb-font-heading);
  font-size: var(--wb-size-text);
  font-weight: var(--wb-weight-bold);
  transition: background-color var(--wb-transition);
}
.wb-theme .wb-search .e-search-submit:is(:hover, :focus-visible) {
  background-color: var(--wb-color-primary-dark);
  color: var(--white);
}
/* 1.3.1: the widget prints its live-results container (<output
   tabindex="0" aria-label="Results for search">) even when results only
   show after Submit, so keyboard users met an empty extra tab stop.
   Removed while it holds no results. */
.wb-theme .wb-search .e-search-results-container:not(:has(.e-search-results > *)) { display: none; }

@media (max-width: 767px) {
  /* Search drops under the brand and runs full width. */
  .wb-theme .wb-header .elementor-widget-search.wb-search {
    --container-widget-width: 100%;
    flex-basis: 100%;
    width: 100%;
  }
}


/* 6.15 MAIN NAVIGATION (1.2.1) -------------------------------------------- */
/* Boxed container .wb-nav holding Elementor Pro's Nav Menu widget (not the
   newer "Menu" widget). NHS Blue bar, 7 items spread across the width,
   white bold text, Dark Blue on hover, a 4px Warm Yellow bar under the
   current page. Below the Nav Menu's breakpoint (Tablet, 1023px) the
   widget shows its toggle, labelled "Menu". */
.wb-theme .e-con.wb-nav {
  --padding-top: 0;
  --padding-bottom: 0;
  --padding-left: var(--wb-gutter);
  --padding-right: var(--wb-gutter);
  --content-width: min(100%, var(--wb-content-max));
  background-color: var(--wb-color-primary);
}
.wb-theme .wb-nav .elementor-widget-nav-menu { width: 100%; }
.wb-theme .wb-nav .elementor-nav-menu--main { width: 100%; }
.wb-theme .wb-nav .elementor-nav-menu--main > .elementor-nav-menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
}
/* !important: Elementor Pro prints the link colour from the kit's global
   colours, with hover and active variants of varying specificity. */
.wb-theme .wb-nav .elementor-nav-menu--main .elementor-item {
  padding: var(--wb-nav-item-padding);
  border-bottom: var(--wb-nav-indicator) solid transparent;
  background-color: transparent;
  color: var(--white) !important;
  font-family: var(--wb-font-heading);
  font-size: var(--wb-size-nav);
  font-weight: var(--wb-weight-regular);  /* 1.2.2: regular, was bold */
  line-height: var(--wb-leading-heading);
  text-decoration: none;
  transition: background-color var(--wb-transition), border-color var(--wb-transition);
}
.wb-theme .wb-nav .elementor-nav-menu--main .elementor-item:is(:hover, :focus-visible) {
  background-color: var(--wb-color-primary-dark);
}
.wb-theme .wb-nav .elementor-nav-menu--main .elementor-item.elementor-item-active {
  border-bottom-color: var(--nhs-warm-yellow);
}
/* Elementor's hover "pointer" lines are pseudo-elements; the theme's
   indicator is the border, so whatever Pointer is set to is hidden. */
.wb-theme .wb-nav .elementor-item::before,
.wb-theme .wb-nav .elementor-item::after { display: none; }

/* Toggle (tablet and mobile): white icon plus the word "Menu". The
   widget's own aria-label stays the accessible name. */
/* 1.2.2: on the left, as in the wireframe. The widget's Toggle Align
   default prints "margin: 0 auto" in the page CSS at 0,4,0; body.wb-theme
   lifts this rule to 0,4,1. */
body.wb-theme .wb-nav .elementor-widget-nav-menu .elementor-menu-toggle {
  margin-left: 0;
  margin-right: auto;
}
.wb-theme .wb-nav .elementor-menu-toggle {
  --nav-menu-icon-size: var(--wb-toggle-icon);
  --nav-menu-icon-color: var(--white);
  justify-content: flex-start;
  gap: var(--wb-space-1-5);
  min-height: var(--wb-toggle-height);
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  color: var(--white);
}
.wb-theme .wb-nav .elementor-menu-toggle :is(svg, .e-font-icon-svg) { fill: currentColor; }
.wb-theme .wb-nav .elementor-menu-toggle::after {
  content: "Menu";
  font-family: var(--wb-font-heading);
  font-size: var(--wb-size-button);
  font-weight: var(--wb-weight-bold);
  line-height: 1;
}

/* Dropdown (opened by the toggle): Dark Blue list, white items with dividers,
   the current page marked by a Warm Yellow bar on the left. */
.wb-theme .wb-nav .elementor-nav-menu--dropdown {
  background-color: var(--wb-color-primary-dark);
}
.wb-theme .wb-nav .elementor-nav-menu--dropdown .elementor-item {
  display: block;
  padding: var(--wb-space-2) var(--wb-space-3);
  border-bottom: var(--wb-border-width) solid var(--wb-on-dark-rule);
  background-color: transparent;
  color: var(--white) !important; /* Beats the widget's dropdown link colour. */
  font-family: var(--wb-font-heading);
  font-size: var(--wb-size-nav);
  font-weight: var(--wb-weight-regular);  /* 1.2.2: regular, as the main nav */
  text-decoration: none;
}
.wb-theme .wb-nav .elementor-nav-menu--dropdown .elementor-item:is(:hover, :focus-visible) {
  background-color: var(--wb-color-primary);
}
.wb-theme .wb-nav .elementor-nav-menu--dropdown .elementor-item.elementor-item-active {
  box-shadow: inset var(--wb-nav-indicator) 0 0 var(--nhs-warm-yellow);
}
/* 1.3.1: below 1024px the nav band was 30px taller than the "Menu" toggle.
   The WordPress Menu widget lays out its toggle and (closed, zero-height)
   dropdown with a 20px flex gap, and the dropdown has Elementor's default
   10px top margin ("Distance"). Both removed: the closed band is the
   toggle's height and the open dropdown starts directly under it. */
.wb-theme .wb-nav .elementor-widget-nav-menu { gap: 0; }
.wb-theme .wb-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container { margin-top: 0; }


/* 6.16 POST META (1.3.0) -------------------------------------------------- */
/* Single post: the date under the banner, inside the content box. Post Info
   widget with one item (Date) and class .wb-post-meta. As the news card's
   date: 16px Dark Grey with a calendar icon from CSS; the widget's own icon
   is hidden, whatever it is set to. */
.wb-theme .wb-post-meta :is(.elementor-post-info, .elementor-icon-list-items) {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wb-space-1) var(--wb-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.wb-theme .wb-post-meta .elementor-icon-list-item {
  display: flex;
  align-items: center;
  gap: var(--wb-space-1);
  margin: 0;
  font-size: var(--wb-size-meta);
  color: var(--wb-color-text-muted);
}
.wb-theme .wb-post-meta .elementor-icon-list-item::before {
  --wb-icon: var(--wb-icon-calendar);
  width: var(--wb-icon-small);
  height: var(--wb-icon-small);
}
.wb-theme .wb-post-meta .elementor-icon-list-icon { display: none; }
.wb-theme .wb-post-meta .elementor-icon-list-text {
  padding: 0;
  font-size: var(--wb-size-meta);
  color: var(--wb-color-text-muted);   /* 7.75:1 on white */
}
/* If the item's Link is left on, the date stays meta text, not a body link. */
.wb-theme .wb-post-meta a {
  color: inherit;
  text-decoration: none;
}
.wb-theme .wb-post-meta a:hover { text-decoration: underline; }


/* 6.17 POST NAVIGATION (1.3.0) -------------------------------------------- */
/* Elementor Pro "Post Navigation" widget, class .wb-post-nav (single post,
   In same Term: Posts › Categories). Previous and next as two white boxes,
   label above title, chevron on the outer side; stacked on mobile.
   Pro's own CSS lays the links out as a no-wrap flex row with ellipsis and
   a 1px separator: replaced here by a grid so long titles wrap (WCAG
   1.4.10). The Arrows and Borders settings are switched off in the widget;
   the separator and Pro's arrows are hidden here too, whatever they are set
   to. An empty side (first or last post) keeps its column on desktop and
   is removed on mobile. */
.wb-theme .wb-post-nav .elementor-post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--wb-grid-gap);
  overflow: visible;
  border: 0;
  padding: 0;
}
.wb-theme .wb-post-nav .elementor-post-navigation__separator-wrapper,
.wb-theme .wb-post-nav .post-navigation__arrow-wrapper { display: none; }
.wb-theme .wb-post-nav .elementor-post-navigation__link {
  width: auto;
  overflow: visible;
  white-space: normal;
}
/* The next link is always the right-hand column, even when there is no
   previous link (the first post). */
.wb-theme .wb-post-nav .elementor-post-navigation__next { grid-column: 2; }
.wb-theme .wb-post-nav .elementor-post-navigation__link a {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--wb-space-1-5);
  min-height: 100%;
  padding: var(--wb-space-3);
  border: var(--wb-border-width) solid var(--wb-card-edge-color);
  border-radius: var(--wb-radius);
  background: var(--wb-color-surface);
  box-shadow: var(--wb-shadow);
  color: var(--wb-color-primary);
  text-decoration: none;
  transition: box-shadow var(--wb-transition), transform var(--wb-transition);
}
.wb-theme .wb-post-nav .elementor-post-navigation__link a:hover {
  box-shadow: var(--wb-shadow-lifted);
  transform: translateY(calc(-1 * var(--wb-lift)));
}
.wb-theme .wb-post-nav .elementor-post-navigation__next a {
  justify-content: flex-end;
  text-align: end;
}
/* Chevrons: left of "Previous", right of "Next". */
.wb-theme .wb-post-nav .elementor-post-navigation__prev a::before,
.wb-theme .wb-post-nav .elementor-post-navigation__next a::after {
  content: "";
  flex: none;
  width: var(--wb-icon-inline);
  height: var(--wb-icon-inline);
  background-color: currentColor;
  -webkit-mask: var(--wb-icon-chevron) center / contain no-repeat;
          mask: var(--wb-icon-chevron) center / contain no-repeat;
}
.wb-theme .wb-post-nav .elementor-post-navigation__prev a::before { transform: scaleX(-1); }
.wb-theme .wb-post-nav :is(.elementor-post-navigation__link__prev, .elementor-post-navigation__link__next) {
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-0-5);
  min-width: 0;
  overflow: visible;
}
/* Label: sentence case (Pro sets uppercase; no all-capitals text). */
.wb-theme .wb-post-nav :is(.post-navigation__prev--label, .post-navigation__next--label) {
  font-size: var(--wb-size-small);
  font-weight: var(--wb-weight-bold);
  text-transform: none;
  letter-spacing: var(--wb-tracking-wide);
  color: var(--wb-color-text-muted);   /* 7.75:1 on white */
  overflow: visible;
  white-space: normal;
}
.wb-theme .wb-post-nav :is(.post-navigation__prev--title, .post-navigation__next--title) {
  font-size: var(--wb-size-text);
  font-weight: var(--wb-weight-bold);
  line-height: var(--wb-leading-snug);
  color: var(--wb-color-primary);      /* 6.38:1 on white */
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}
.wb-theme .wb-post-nav .elementor-post-navigation__link a:hover :is(.post-navigation__prev--title, .post-navigation__next--title) {
  color: var(--wb-color-primary-dark);
}
@media (max-width: 767px) {
  .wb-theme .wb-post-nav .elementor-post-navigation { grid-template-columns: minmax(0, 1fr); }
  .wb-theme .wb-post-nav .elementor-post-navigation__next { grid-column: auto; }
  .wb-theme .wb-post-nav .elementor-post-navigation__link:not(:has(a)) { display: none; }
}


/* 6.18 PAGINATION (1.3.0) ------------------------------------------------- */
/* Any paginated Loop Grid (News page, Archive): add .wb-pagination to the
   Loop Grid widget, next to nothing else. Pagination: Numbers + Previous/
   Next, Load Type: Page Reload. 48px targets (WCAG 2.5.8 asks 24px), NHS
   Blue outline buttons, the current page filled. Pro prints the disabled
   end of Previous/Next as a plain span: hidden, as it does nothing. */
.wb-theme .wb-pagination .elementor-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--wb-space-1);
  margin-top: var(--wb-space-5);
  text-align: center;
}
.wb-theme .wb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--wb-row-height);
  min-height: var(--wb-row-height);
  margin: 0;
  padding: 0 var(--wb-space-2);
  border: var(--wb-button-border) solid var(--wb-color-primary);
  border-radius: var(--wb-radius-small);
  background: var(--wb-color-surface);
  color: var(--wb-color-primary);
  font-size: var(--wb-size-text);
  font-weight: var(--wb-weight-bold);
  line-height: 1;
  text-decoration: none;
}
.wb-theme .wb-pagination a.page-numbers:hover {
  background: var(--wb-tint-blue);
  color: var(--wb-color-primary-dark);
}
.wb-theme .wb-pagination .page-numbers.current {
  background: var(--wb-color-primary);
  color: var(--white);                 /* 6.38:1 */
}
.wb-theme .wb-pagination .page-numbers.dots {
  min-width: auto;
  padding: 0 var(--wb-space-0-5);
  border-color: transparent;
  background: none;
  color: var(--wb-color-text-muted);
}
.wb-theme .wb-pagination span.page-numbers:is(.prev, .next) { display: none; }


/* 6.19 SEARCH RESULT (1.3.0) ---------------------------------------------- */
/* Loop Item "Search result" for the Archive template (search and category
   archives): container .wb-result; Post Title (H2, linked) .wb-result__title;
   Post Excerpt .wb-result__text. A white box; the title link covers it
   (one link and one tab stop per result), the box lifts on hover. */
.wb-theme .e-con.wb-result {
  --border-radius: var(--wb-radius);
  position: relative;
  padding: var(--wb-space-3) var(--wb-space-4);
  border: var(--wb-border-width) solid var(--wb-card-edge-color);
  border-radius: var(--wb-radius);
  background: var(--wb-color-surface);
  box-shadow: var(--wb-shadow);
  gap: var(--wb-space-1);
  transition: box-shadow var(--wb-transition), transform var(--wb-transition);
}
.wb-theme .e-con.wb-result:hover {
  box-shadow: var(--wb-shadow-lifted);
  transform: translateY(calc(-1 * var(--wb-lift)));
}
.wb-theme .wb-result__title .elementor-heading-title {
  margin: 0;
  font-size: var(--wb-size-h3);
  line-height: var(--wb-leading-heading);
  color: var(--wb-color-primary-dark);
}
.wb-theme .wb-result__title .elementor-heading-title a {
  color: inherit;
  text-decoration: none;
}
.wb-theme .wb-result__title .elementor-heading-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.wb-theme .wb-result__text {
  font-size: var(--wb-size-text);
  line-height: var(--wb-leading-normal);
  color: var(--wb-color-text-muted);
}
.wb-theme .wb-result__text :where(*):last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .wb-theme .e-con.wb-result { padding: var(--wb-space-3) var(--wb-space-2); }
}
/* Results 24px apart (Elementor Pro's Loop Grid default is 30px, a
   Style-tab setting), wherever the grid is placed. */
.wb-theme .elementor-loop-container:has(> .e-loop-item > .wb-result) {
  --grid-row-gap: var(--wb-grid-gap);
}

/* Loop Grid "Nothing Found Message" in the main column (search with no
   results): a white box, left-aligned body text, not Pro's centred grey. */
.wb-theme .wb-content-grid__main .e-loop-nothing-found-message {
  margin: 0;
  padding: var(--wb-content-box-padding);
  border: var(--wb-border-width) solid var(--wb-card-edge-color);
  border-radius: var(--wb-radius);
  background: var(--wb-color-surface);
  box-shadow: var(--wb-shadow);
  font-size: var(--wb-size-body);
  line-height: var(--wb-leading-normal);
  color: var(--wb-color-text);
  text-align: start;
}


/* 6.20 EMPTY STATES (1.3.0) ----------------------------------------------- */
/* Staff content changes; the layout mustn't show empty boxes.
   - A Related information card whose Loop Grid has no posts (a section with
     no related posts, or a single post that is its category's only post
     once Related excludes it) is removed.
   - A Loop Grid with no items (a page with no notices or no page content)
     is removed, so it leaves no gap in its column. 1.3.1: Elementor Pro
     prints an empty .e-loop-nothing-found-message div (30px padding top and
     bottom) even when the message is switched off, so the 1.3.0 test for
     "no message" never matched. A grid that must show its message (News,
     Archive) carries .wb-pagination and is never hidden.
   - A Table of Contents that found no headings (1.3.1): Elementor replaces
     its list with "No headings were found on this page.". While the script
     loads, the spinner keeps the panel visible, so pages with headings
     don't shift.
   - A notices section (Home) with no High or Medium notices (1.4.1): its
     grids are already hidden, but its padding would leave a 48px band.
   Front end only: in the editor an empty grid shows Elementor's placeholder
   and must stay visible. */
body.wb-theme:not(.elementor-editor-active) .e-con.wb-sidebar-card--related:not(:has(.e-loop-item)) {
  display: none;
}
body.wb-theme:not(.elementor-editor-active) .e-con.wb-section--notices:not(:has(.e-loop-item)) {
  display: none;
}
body.wb-theme:not(.elementor-editor-active) .elementor-widget-loop-grid:not(.wb-pagination):not(:has(.e-loop-item)) {
  display: none;
}
body.wb-theme:not(.elementor-editor-active) .wb-toc:not(:has(.elementor-toc__list-wrapper, .elementor-toc__spinner-container)),
body.wb-theme:not(.elementor-editor-active) .elementor-widget-template:has(.wb-toc):not(:has(.elementor-toc__list-wrapper, .elementor-toc__spinner-container)) {
  display: none;
}


/* --------------------------------------------------------------------------
   7. CLASSES INHERITED FROM 1.0.0, NOT YET REVIEWED
   Not part of the class contract (docs/class-contract.md section 5).
   wb-header, wb-practice-name, wb-practice-address, wb-search and wb-nav
   moved to sections 6.14 and 6.15 in 1.2.1.
   -------------------------------------------------------------------------- */

/* Layout */
.wb-container {
  max-width: var(--wb-container-max);
  margin: 0 auto;
  padding-left: var(--wb-gutter);
  padding-right: var(--wb-gutter);
}
.wb-badge {
  display: inline-block;
  background: var(--wb-color-primary);
  color: var(--white);
  font-family: var(--wb-font-heading);
  font-size: 20px;
  padding: 7px 12px;
  border-radius: var(--wb-radius-small);
}
