/*
 * WordPress-only additions. Everything visual comes from styles.css (the design demo's stylesheet, verbatim).
 * Keep this file small: a rule here is a rule the design system does not know about.
 */

/* Windows High Contrast / forced colours: the design's focus ring uses a custom property colour that the
   browser replaces, so draw it again in the system colour (doc 02, 2.3). */
@media (forced-colors: active) {
  :focus-visible,
  :where(.card-service--compact) .card-service__title a:focus-visible,
  .megamenu__cta-link:focus-visible,
  .searchbar input:focus-visible { outline: 3px solid Highlight; outline-offset: 2px; }
}

/* Plain WordPress pages (privacy policy, terms) that are not designed pages: readable prose in the design's type. */
.cc-prose { max-width: 926px; }
.cc-prose > * + * { margin-top: 1em; }
.cc-prose h2 { font-size: var(--fs-title-xl); line-height: 1.3; margin-top: 1.6em; }
.cc-prose h3 { font-size: var(--fs-title); line-height: 1.3; margin-top: 1.4em; }
.cc-prose a { color: inherit; text-decoration: underline; }
.cc-prose ul, .cc-prose ol { padding-left: 1.4em; }

/* Forms (owned by the theme since 28 Oct 2026, js/pages/forms.js). */
/* Conditional notes that set their own display (the attendant care note is a flex row). */
.page-enquiry [data-show-when][hidden] { display: none; }
/* Wording that names the plan picked: <span data-plan-text="NDIS|TAC|WorkSafe|">, toggled by the form script. */
.page-enquiry [data-plan-text][hidden] { display: none; }
.page-enquiry .enq-subgroup > .enq-hint--info { margin-top: 16px; }
/* Funding note: the housing paragraphs sit in their own block inside the note (shown for CareChoice Homes only). */
.page-enquiry .enq-note__more { display: flex; flex-direction: column; gap: 12px; }

/* CareChoice's Salesforce enquiry forms (CAR-247) in the site's approved form design: template-parts/enquiry-form-main.html
   (/enquiry/) and enquiry-form-home.html (each home's page). They use the theme's form classes from styles.css
   (.enq-group, .enq-field, .enq-input, .checkbox, .enq-path__card, .btn--primary). These rules cover what the forms'
   own script relies on: .q (one question), .req (asterisk from CSS, because the script rewrites some labels), .err and
   .has-err (its messages), .alert (notes), and [hidden] on blocks the theme lays out as grids or flex rows. */
.cc-form [hidden] { display: none !important; }
.cc-form .enq-req-note { margin: 0 0 32px; }
.cc-form .enq-group { margin: 0 0 56px; }
.cc-form .enq-fields--follow { margin: -32px 0 56px; } /* Postcode: 24px under whichever group shows before it */
.cc-form .req::after { content: " *"; color: var(--magenta-dark); } /* #C8008C: 5.2:1 on --light, 5.5:1 on --white */
.cc-form .enq-input[readonly] { background-color: var(--bg); }
.cc-form .alert { margin: 0; padding: 20px 24px; border: 1px solid var(--navy-a20); border-radius: var(--radius-sm); background: var(--bg); font-size: var(--fs-small); line-height: 1.5; color: var(--navy); }
.cc-form .err { margin: 0; font-size: var(--fs-small); font-weight: 600; line-height: 1.5; color: var(--magenta-dark); }
.cc-form .enq-path > .err, .cc-form .enq-subgroup > .err { margin-top: 12px; }
.cc-form .has-err .enq-input, .cc-form .has-err .dropdown__trigger, .cc-form .has-err .checkbox__box, .cc-form .has-err .enq-path__mark { border-color: var(--magenta-dark); box-shadow: 0 0 0 1px var(--magenta-dark); }
.cc-form .enq-submit { margin-top: -16px; }
@media (max-width: 768px) {
  body:not(.canvas-mode) .cc-form .enq-group { margin-bottom: 40px; }
  body:not(.canvas-mode) .cc-form .enq-fields--follow { margin: -16px 0 40px; }
  body:not(.canvas-mode) .cc-form .enq-submit { margin-top: 0; }
}

/* Gravity Forms (forms CareChoice build themselves, 5 Nov 2026): the look of the site's own forms, set through
   Gravity Forms' theme settings (its rules are id-scoped and !important, so the settings carry !important too). */
.cc-gform { max-width: 760px; margin: 0 auto; }
.gform-theme--framework {
  --gf-font-family-base: inherit !important;
  --gf-font-family-primary: inherit !important;
  --gf-color-primary: var(--magenta) !important;
  --gf-color-primary-contrast: var(--bg) !important;
  --gf-color-danger: var(--magenta-dark) !important;
  --gf-form-gap-y: 24px !important;
  --gf-field-gap-x: 24px !important;
  --gf-field-gap-y: 24px !important;
  --gf-ctrl-font-family: inherit !important;
  --gf-ctrl-font-size: var(--fs-body) !important;
  --gf-ctrl-font-weight: 400 !important;
  --gf-ctrl-line-height: 1.5 !important;
  --gf-ctrl-color: var(--navy) !important;
  --gf-ctrl-color-focus: var(--navy) !important;
  --gf-ctrl-bg-color: var(--white) !important;
  --gf-ctrl-bg-color-focus: var(--white) !important;
  --gf-ctrl-border-color: var(--navy) !important;
  --gf-ctrl-border-color-hover: var(--navy) !important;
  --gf-ctrl-border-color-focus: var(--navy) !important;
  --gf-ctrl-border-color-error: var(--magenta-dark) !important;
  --gf-ctrl-border-width: 1.5px !important;
  --gf-ctrl-radius: var(--radius-sm) !important;
  --gf-ctrl-textarea-radius: var(--radius-sm) !important;
  --gf-ctrl-size: 48px !important;
  --gf-ctrl-padding-x: 16px !important;
  --gf-ctrl-shadow: none !important;
  --gf-ctrl-outline-color-focus: var(--focus-ring) !important;
  --gf-ctrl-outline-width-focus: 3px !important;
  --gf-ctrl-accent-color: var(--magenta-dark) !important;
  --gf-ctrl-choice-check-color: var(--magenta-dark) !important;
  --gf-ctrl-choice-size: 18px !important;
  --gf-ctrl-label-font-family-primary: inherit !important;
  --gf-ctrl-label-color-primary: var(--navy) !important;
  --gf-ctrl-label-font-size-primary: var(--fs-body) !important;
  --gf-ctrl-label-font-weight-primary: 600 !important;
  --gf-ctrl-label-color-secondary: var(--navy) !important;
  --gf-ctrl-label-font-size-secondary: var(--fs-small) !important;
  --gf-ctrl-label-font-weight-secondary: 400 !important;
  --gf-ctrl-label-color-tertiary: var(--navy) !important;
  --gf-ctrl-label-font-size-tertiary: var(--fs-body) !important;
  --gf-ctrl-label-font-weight-tertiary: 400 !important;
  --gf-ctrl-label-color-req: var(--magenta-dark) !important;
  --gf-ctrl-label-font-size-req: var(--fs-body) !important;
  --gf-ctrl-desc-color: var(--navy) !important;
  --gf-ctrl-desc-font-size: var(--fs-small) !important;
  --gf-ctrl-desc-color-error: var(--magenta-dark) !important;
  --gf-ctrl-desc-font-size-error: var(--fs-small) !important;
  --gf-ctrl-desc-font-weight-error: 600 !important;
  --gf-ctrl-btn-font-family: inherit !important;
  --gf-ctrl-btn-font-size: var(--fs-body) !important;
  --gf-ctrl-btn-font-weight: 600 !important;
  --gf-ctrl-btn-radius: var(--radius-sm) !important;
  --gf-ctrl-btn-size: 48px !important;
  --gf-ctrl-btn-padding-x: 24px !important;
  --gf-ctrl-btn-bg-color-primary: var(--magenta) !important;
  --gf-ctrl-btn-bg-color-hover-primary: var(--magenta-hover) !important;
  --gf-ctrl-btn-bg-color-focus-primary: var(--magenta) !important;
  --gf-ctrl-btn-border-color-primary: var(--magenta) !important;
  --gf-ctrl-btn-border-color-hover-primary: var(--magenta-hover) !important;
  --gf-ctrl-btn-border-color-focus-primary: var(--magenta) !important;
  --gf-ctrl-btn-color-primary: var(--bg) !important;
  --gf-ctrl-btn-color-hover-primary: var(--bg) !important;
  --gf-ctrl-btn-color-focus-primary: var(--bg) !important;
  --gf-ctrl-btn-shadow-focus: none !important;
}
/* Controls keep a normal line height: Gravity Forms derives it from the full control height, which hides a select's
   chosen option once padding is added. */
.gform-theme--framework .gfield input:not([type="checkbox"]):not([type="radio"]),
.gform-theme--framework .gfield select,
.gform-theme--framework .gfield textarea { line-height: 1.5 !important; }
.gform-theme--framework .gfield select {
  padding-top: 11px !important; padding-bottom: 11px !important; padding-right: 52px !important;
  background: var(--white) url(../assets/Icon-arrow-down-2.svg) no-repeat right 16px center / 24px 24px !important;
}
/* A field with an error: the design's thicker magenta-dark edge. */
.gform-theme--framework .gfield_error :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { box-shadow: 0 0 0 1px var(--magenta-dark) !important; }
/* The error summary at the top, as the site's: white box, magenta-dark edge, bold underlined links. */
.gform-theme--framework .gform_validation_errors { padding: 24px 32px !important; border: 2px solid var(--magenta-dark) !important; border-radius: var(--radius-sm) !important; background: var(--white) !important; box-shadow: none !important; }
.gform-theme--framework .gform_validation_errors .gform_submission_error { font-size: var(--fs-title-xl) !important; font-weight: 600 !important; color: var(--navy) !important; }
.gform-theme--framework .gform_validation_errors a { font-weight: 600; color: var(--magenta-dark) !important; text-underline-offset: 3px; }
.gform-theme--framework .gform_validation_errors .gform-icon { display: none !important; }
/* Submit: the design's arrow after the label. */
.gform-theme--framework .gform_footer .gform_button { display: inline-flex !important; align-items: center; gap: 8px; }
.gform-theme--framework .gform_footer .gform_button::after { content: "" !important; display: block !important; width: 24px; height: 24px; flex: 0 0 auto; background: currentColor !important; -webkit-mask: url(../assets/Icon-arrow-right.svg) center / contain no-repeat; mask: url(../assets/Icon-arrow-right.svg) center / contain no-repeat; }
/* The design's focus ring: magenta outline, 2px clear of the control. */
.gform-theme--framework .gfield :is(input, select, textarea):focus-visible,
.gform-theme--framework input[type="submit"]:focus-visible { outline: 3px solid var(--focus-ring) !important; outline-offset: 2px !important; box-shadow: none !important; }
/* Errors read like the site's: no boxed message per field, bold magenta-dark text. */
.gform-theme--framework .gfield_validation_message { padding: 0 !important; border: 0 !important; background: none !important; }
.gform-theme--framework .gform_required_legend { font-size: var(--fs-small); color: var(--navy); }
/* The thank-you message after sending: the design's note box (magenta-dark edge, white). */
.cc-gform .gform_confirmation_message { padding: 24px 32px; border-left: 4px solid var(--magenta-dark); border-radius: var(--radius-sm); background: var(--white); font-size: var(--fs-body); line-height: 1.5; color: var(--navy); }

/* Heading beside text and Numbered steps inside a Service section (10 Nov 2026): the content column is too narrow for
   their two columns, so they stack, the heading above the text or the steps. */
.svc-block .split { grid-template-columns: minmax(0, 1fr); row-gap: 24px; max-width: none; margin: 0; }
.svc-block .split--sticky > .split__text:first-child { position: static; }

/* Home hero video slide with a file (11 Nov 2026, js/pages/hero-video.js): the photo (poster) fills the frame until
   play is pressed; the playing video shows whole (16:9 with subtitles) on black, with its controls. */
.hero-video--file { background: #000; }
/* The later slides' photos are stacked above it (transparent), so the showing video frame comes to the top to take the click. */
.hero-video--file.is-active { z-index: 1; }
.hero-video__media { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-video--file.is-playing .hero-video__media { object-fit: contain; }
.hero-video__btn { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.hero-video__btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.hero-video--file.is-playing .hero-video__btn { display: none; }

/* Team in rows (11 Nov 2026, CareChoice): a short last row, or a team of two, sits in the centre. Desktop and tablet
   only; phones keep the sideways-scrolling row. */
@media (min-width: 769px) {
  .card-person-grid:not(.card-person-grid--scroll) { display: flex; flex-wrap: wrap; justify-content: center; }
  .card-person-grid:not(.card-person-grid--scroll) > li { flex: 0 0 calc((100% - 80px) / 3); }
}
@media (min-width: 769px) and (max-width: 1024px) {
  body:not(.canvas-mode) .card-person-grid:not(.card-person-grid--scroll) > li { flex-basis: calc((100% - 40px) / 2); }
}
/* A card with no pop-up: not a button, so no pointer or hover underline. */
.card-person--static { cursor: default; }

/* Step-by-step guide with no image (11 Nov 2026, Josh): one full-width column. */
.media-split.media-split--no-media { grid-template-columns: minmax(0, 1fr); min-height: 0; }

/* Photo and text row with only an image (11 Nov 2026, Steph): the image shows whole across the full width, e.g. a
   wide graphic, instead of being cropped into the photo spot beside an empty column. */
.media-split.media-split--image-only { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.media-split--image-only > .media-split__media { min-height: 0; }
body .media-split--image-only > .media-split__media img { position: static; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }

/* Values icons (11 Nov 2026, Steph) in a card's illustration spot: drawn smaller than the 120px spot, centred in it,
   so their weight matches the illustrations beside them. */
img[src*="values-icon-"]:not(.card-highlight__icon img) { object-fit: contain; padding: 14px; box-sizing: border-box; }

/* Heading beside text, "Standard, wider text column" (11 Nov 2026, Josh, About SDA): longer text starts nearer the
   heading. Tablet and phone keep the standard columns. */
@media (min-width: 1025px) {
  .split.split--wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 80px; }
}
/* Lists in its text use the site's dot list (only About SDA has one). */
.split__text .list-dot { gap: 8px; }
.split__text .list-dot li { font-size: var(--fs-16); line-height: 1.6; color: var(--navy); }

/* Large photos (11 Nov 2026, Steph: "some of the pictures are really big"), desktop and tablet:
   - a Photo and text photo stretched to the height of long text (WorkSafe "Who we support?" was 892px tall) stops
     at 600px, at the top of its row;
   - a photo placed in a text column (Image block) is at most 460px tall, keeping its shape. */
@media (min-width: 769px) {
  .media-split:not(.media-split--image-only) > .media-split__media { max-height: 600px; }
  .rich-text .wp-block-image img,
  .svc-block p > img,
  .rich-text p > img { max-height: 460px; width: auto; max-width: 100%; height: auto; }
}

/* Contact card label with several lines (11 Nov 2026): a line space between them. */
.contact-route__label + .contact-route__label { margin-top: 12px; }

/* One body text size (11-12 Nov 2026, Steph: About Us top two sections in different sizes; Josh: SIL "lots of
   different font sizes"). Text beside a heading and in portrait photo rows was 16px while the text around it is
   18px; both now use the body size. The page-top layout keeps its own sizes. */
.split:not(.split--hero) .split__text p:not(.eyebrow-label),
.split:not(.split--hero) .split__text .list-dot li,
.media-split--portrait .media-split__content p:not(.eyebrow-label) { font-size: var(--fs-body-lg); }

/* Short desktop heroes (Marker.io CAR-225, CAR-226): fit below the measured header and reduce the internal
   spacing and type together so every slide's text, buttons and carousel controls stay in the available height. */
@media (min-width:1025px) and (max-height:800px) {
  .hero { height: clamp(400px, calc(100vh - var(--site-header-h, 128px) - 10px), 651px); }
  .hero-left, .hero-right { height: 100%; }
  .hero-left {
    padding-top: clamp(2rem, 5vh, 3.75rem);
    padding-bottom: clamp(2rem, 5vh, 3.75rem);
  }
  .hero h1,
  .hero h2.hero-headline,
  .page-hero .page-title { font-size: clamp(2.25rem, 7.5vh, var(--fs-display)); }
  .hero-body {
    margin-top: clamp(.75rem, 2vh, 1.25rem);
    font-size: clamp(1rem, 2.5vh, var(--fs-body-lg));
  }
  .hero-cta { margin-top: clamp(1rem, 3vh, 2rem); }
  .hero-bottom { padding-top: clamp(1.25rem, 4vh, 3rem); }
  .media-frame--hero { --mf-band: clamp(120px, 30vh, 240px); }
  /* A minimum, not a fixed height: a banner with long text grows instead of pushing its button out of the box
     (Complex Care, tested at 1265 x 630). */
  .page-hero { min-height: clamp(340px, calc(100vh - var(--site-header-h, 128px) - 10px), 460px); }
  .page-hero__text {
    padding-top: clamp(2rem, 5vh, 2.5rem);
    padding-bottom: clamp(2rem, 7.5vh, 3.75rem);
  }
  .page-hero__media.media-frame--page { min-height: 0; }
  .page-hero__intro { margin-top: clamp(.75rem, 2vh, 1.25rem); }
  .page-hero__text .btn-row { margin-top: clamp(1rem, 3vh, 2rem); flex-wrap: wrap; }
  .page-hero__text > .breadcrumb:first-child {
    margin-top: clamp(-1.75rem, -3.5vh, -1.25rem);
    margin-bottom: clamp(1.5rem, 5vh, 2.5rem);
  }
  .page-hero--centered {
    padding-top: clamp(2rem, 5vh, 3.75rem);
    padding-bottom: clamp(2rem, 5vh, 3.75rem);
  }
  .page-hero--centered > .breadcrumb:first-child {
    margin-top: 0;
    margin-bottom: clamp(2rem, 6vh, 5.5rem);
  }
}

/* Megamenu title alignment (Marker.io CAR-228): the title link and description share one block edge. Keep the
   existing stretched-link hover and focus treatment unchanged. */
.megamenu .card-service--compact .card-service__title a {
  display: block;
  margin-left: 0;
  padding-left: 0;
  text-indent: 0;
}
.megamenu .card-service--compact .card-service__desc { margin-left: 0; padding-left: 0; }

/* Steps guide titles on mobile (Marker.io CAR-222, CAR-223): 20px like FAQ questions and card titles (was 22px).
   FAQ questions are already 20px and all answer and step text is already the 16px body size, so nothing else changes. */
@media (max-width:768px) {
  .accordion--steps .accordion__step-title { font-size: var(--fs-title); }
}

/* Current dropdown branch (Marker.io CAR-229): colour only, matching the existing current-page treatment. */
.mainnav > li.is-current > .megamenu-trigger,
.mobile-menu__group.is-current > .mobile-menu__row { color: var(--magenta-dark); }

/* A heading group straight under a Service section's title (Marker.io CAR-221): the section title is always left
   aligned, so an inner block's intro follows it instead of sitting centred underneath. Only when that inner head
   has no title of its own. Elsewhere editors choose Heading options > Heading layout > Left aligned. */
.svc-block > .section-head__title + .section-head:not(:has(.section-head__title)) { margin-left: 0; margin-right: 0; align-items: flex-start; text-align: left; }
.svc-block > .section-head__title + .section-head:not(:has(.section-head__title)) .section-head__intro { margin-left: 0; margin-right: 0; text-align: left; }
/* Team cards, Tabs with text and photo, and Current opportunities inside a Service section (16 Nov 2026):
   fit the narrower content column without a second set of page gutters. The section supplies the heading. */
@media (min-width: 769px) {
  .svc-block .team-grid,
  .svc-block .cc-jobs .job-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
body .svc-block .role-panel { grid-template-columns: minmax(0, 1fr); row-gap: 32px; padding: 0; }
.svc-block .cc-jobs { min-width: 0; scroll-margin-top: calc(var(--site-header-h, 0px) + 24px); }
.svc-block .cc-jobs .filter-bar__inner { padding-left: 0; padding-right: 0; flex-wrap: wrap; }
.svc-block .cc-jobs .filter-bar__chips { flex-wrap: wrap; margin: 0; padding: 4px 0; }
.svc-block .cc-jobs .filter-panel { left: 0; right: 0; width: auto; }
.svc-block .cc-jobs .filter-panel fieldset { flex: 1 1 200px; }
.svc-block .cc-jobs .homes-listing__body { max-width: none; padding-left: 0; padding-right: 0; }

/* A coloured Columns band placed straight on the page (Marker.io CAR-224, the four videos on Disability
   Accommodation): room above and below, and its content lines up with the page content. The editor's own padding
   control is switched off in theme.json, so the spacing lives here. */
main > .wp-block-columns.has-background {
  padding-block: clamp(32px, 4vw, 56px);
  padding-inline: max(var(--gutter), calc((100% - 1400px) / 2 + var(--gutter)));
}
/* The videos sit in a Row that never wraps, which left them about 56px wide on a phone (Marker.io CAR-220):
   two across on tablets, one across on phones. */
@media (max-width:1024px) {
  main > .wp-block-columns.has-background .wp-block-group.is-nowrap { flex-wrap: wrap; }
  main > .wp-block-columns.has-background .wp-block-group.is-nowrap > .wp-block-embed { flex: 1 1 calc(50% - 12px); min-width: 0; margin: 0; }
}
@media (max-width:600px) {
  main > .wp-block-columns.has-background .wp-block-group.is-nowrap > .wp-block-embed { flex-basis: 100%; }
}

/* Live map on Offices and map (Marker.io CAR-219; Josh approved it on 16 Nov): Lucia's rules from the design demo
   (branch demo1, 5 Nov). The map box needs two classes in its selector: the map library's stylesheet loads after
   this file and sets .maplibregl-map to position:relative, which would collapse the box to no height. */
.office-map--live{aspect-ratio:1000/802}
.office-map--live .office-map__live{position:absolute;inset:0;z-index:0;background:var(--light)}
.office-map__pin{display:block;width:36px;height:34px;padding:0;border:0;background:url(../assets/icon-map-pin-r4.svg) center/contain no-repeat;cursor:pointer}
.office-map__live .office-map__tip .maplibregl-popup-content{padding:.45em .9em;background:var(--white);border:1.5px solid var(--navy);border-radius:var(--radius-sm);box-shadow:none;color:var(--navy);font:600 20px/1.2 'Inter',system-ui,sans-serif}
.office-map__live .office-map__tip .maplibregl-popup-tip{border-top-color:var(--navy)}
.office-map__live .maplibregl-ctrl-group button .maplibregl-ctrl-icon{filter:none}
@media (min-width:1025px){.contact-where__map:has(.office-map--live){position:sticky;top:calc(var(--site-header-h,0px) + 40px)}} /* desktop: the map stays in view while the location list scrolls */
.contact-details__item[data-map-place]{cursor:pointer;outline:none}
.contact-details__item[data-map-place]:is(:hover,:focus-visible) :is(.contact-details__label,.contact-details__value,.contact-details__value a){color:var(--magenta-dark)} /* hover / keyboard focus on a location: magenta-dark text, like the current menu item */

/* Current menu item (Marker.io CAR-229, 16 Nov 2026): a magenta underline as well as the magenta-dark label, on the
   top-level item the page sits under. CareChoice asked for it in testing rounds 1 and 2, and James confirmed it by email
   on 22 and 29 Oct. The design demo marks by colour only (CAR-120, Lucia 28 Oct), so the rule lives here.
   - Main menu and top bar links: the demo's script adds .is-current once it runs, and aria-current covers the moment before.
   - Dropdown parents: menus.php adds .is-current, in the main menu, the phone menu and (from this change) About Us in the top bar.
   The links inside a dropdown keep the design's colour-only mark. */
.mainnav > li > a[aria-current="page"],
.tb-item--link[aria-current="page"],
.tb-nav.is-current > .tb-item--link,
.mobile-menu__row[aria-current="page"] { color: var(--magenta-dark); }
.mainnav > li.is-current > a,
.mainnav > li > a[aria-current="page"],
.mainnav > li.is-current > .megamenu-trigger,
.tb-item--link.is-current,
.tb-item--link[aria-current="page"],
.tb-nav.is-current > .tb-item--link,
.mobile-menu__group.is-current > .mobile-menu__row,
.mobile-menu__row[aria-current="page"] { text-decoration-line: underline; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Photos side by side (Marker.io CAR-253, 18 Nov 2026): a Group set to "Grid" in a text column or Service section.
   Desktop and tablet keep the editor's columns (2 when none is set); phones stack them, full width like other photos. */
.rich-text__grid { display: grid; grid-template-columns: repeat(var(--cc-grid-cols, 2), minmax(0, 1fr)); gap: 20px; align-items: start; }
.rich-text__grid--3 { --cc-grid-cols: 3; }
.rich-text__grid--4 { --cc-grid-cols: 4; }
.rich-text__grid--5 { --cc-grid-cols: 5; }
.rich-text__grid--6 { --cc-grid-cols: 6; }
.rich-text__grid > * { margin: 0; min-width: 0; }
.rich-text__grid figure img { width: 100%; max-height: none; }
@media (max-width: 600px) { body:not(.canvas-mode) .rich-text__grid { grid-template-columns: minmax(0, 1fr); } }

/* Filter bar on a light section (Marker.io CAR-251, 18 Nov 2026): Current opportunities inside a Service section, or set
   to Light, sits on the light background, so its bar of quick filters is light too instead of a cream band.
   Its chips, light on the cream bar, swap to cream so they still stand out; the selected chip stays pink. */
[data-bg="light"] .homes-listing__filter .filter-bar,
[data-bg="light"] .homes-listing__filter .filter-bar::before { background: var(--light); }
[data-bg="light"] .homes-listing__filter .filter-chip:not([aria-pressed="true"], [aria-expanded="true"]) { background: var(--bg); }

/* Header from 1024 to 1309px (18 Nov 2026): the TAC & WorkSafe item now has a dropdown arrow (its two subpages), which
   the design demo's link did not, so the menu ran about 20px into "Make an enquiry" below about 1250px. The logo,
   row gap and item padding start a little smaller at 1024px and still reach their full sizes at 1310px, as before. */
@media (min-width:1024px) and (max-width:1309px){
  body:not(.canvas-mode) .logo img{width:calc(124px + (100vw - 1024px) * 0.3182)}
  body:not(.canvas-mode) .mainhead .row{gap:calc(8px + (100vw - 1024px) * 0.0280)}
  body:not(.canvas-mode) .mainnav a,body:not(.canvas-mode) .mainnav .megamenu-trigger{padding-left:calc(3px + (100vw - 1024px) * 0.0175);padding-right:calc(3px + (100vw - 1024px) * 0.0175)}
}
