/* ==========================================================================
   Highburry child — accessibility corrections for the WordPress half.
   Specificity is deliberate: see the load-order note in functions.php. The shared
   facade stylesheets are printed after this file, so bare selectors would lose.
   ========================================================================== */

/* --------------------------------------------------------------------------
   SC 1.3.1 / 2.4.6 — the WP Job Manager filter form.
   Labels exist in the plugin template but the category <select> is generated by
   wp_dropdown_categories(), whose id does not match the label's for= attribute.
   The template override fixes the id; these rules make the labels visible without
   fighting the plugin's float layout.
   -------------------------------------------------------------------------- */
body.hccb-a11y .job_filters label,
body.hccb-a11y .job_filters .search_categories label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 4px;
}

body.hccb-a11y .job_filters input[type="text"],
body.hccb-a11y .job_filters select {
	font-size: 16px;          /* prevents iOS focus zoom; also 2.5.5 target size */
	min-height: 44px;
	border: 1px solid #6b6b6b; /* was lighter than the 3:1 non-text contrast needs (WCAG 2.1 AA) */
	border-radius: 3px;
	padding: 6px 10px;
}

body.hccb-a11y .job_filters input[type="submit"] {
	min-height: 44px;
	padding: 10px 22px;
	font-size: 16px;
	cursor: pointer;
}

/* The status region added by job_manager/job-filters.php. Visible on purpose — a
   silent live region is less useful than one people can see changing. */
body.hccb-a11y .job-results-status {
	margin: 12px 0 0;
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
}

/* --------------------------------------------------------------------------
   SC 2.4.7 — WordPress pages inherit no author focus style from the parent theme.
   The facade stylesheet supplies a global rule; this is the belt-and-braces version
   scoped to the content wrapper in case a template overrides outline.
   -------------------------------------------------------------------------- */
body.hccb-a11y .content a:focus-visible,
body.hccb-a11y .content button:focus-visible,
body.hccb-a11y .content input:focus-visible,
body.hccb-a11y .content select:focus-visible,
body.hccb-a11y .content textarea:focus-visible {
	outline: 3px solid #17469e;
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   SC 1.4.3 — plugin-generated job meta text was light grey on white.
   -------------------------------------------------------------------------- */
body.hccb-a11y .job_listing_meta,
body.hccb-a11y .job_listing .position,
body.hccb-a11y .job_filters .search_jobs div.filter_job_type,
body.hccb-a11y .job_manager_listing_meta {
	color: #333;
}

body.hccb-a11y a.job_manager_listing_link,
body.hccb-a11y .job_listing a {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   SC 1.4.10 / 1.4.4 — Visual Composer rows with fixed heights clipped at 200% zoom.
   Applied narrowly to the job board so it cannot disturb marketing pages, which are
   audited separately.
   -------------------------------------------------------------------------- */
body.hccb-a11y .job_filters {
	overflow: visible;
}

body.hccb-a11y .job_filters ul.job_types {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: visible;
}

/* ---------------------------------------------------------------------------
   .screen-reader-text — visually hidden, still announced.

   The parent theme defines this class in exactly two places, both scoped to
   search forms (stylesheet.css:13839-13840). Everywhere else the class means
   nothing, so the ", current page" span added by inc/link-names.php would have
   appeared as visible text beside the pagination numbers — an accessibility
   fix that changes what a sighted visitor sees, which is the mistake to avoid
   here. This is the pattern WordPress core ships in _s: clip to a 1px box
   rather than display:none, because display:none removes the element from the
   accessibility tree in some AT combinations and the whole point is that it
   stays in the tree.

   No :focus escape hatch, unlike _s: every use here is inside a link or on a
   non-focusable span, so a focus reveal would only ever produce a stray box.
   --------------------------------------------------------------------------- */
.screen-reader-text,
body.hccb-a11y .screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ---------------------------------------------------------------------------
   SC 1.4.3 — the compliance page's plan block, 23 November.

   Two colour pairs on /hc/compliance fail on the #f6f6f6 panel:

     content links          #ff9c00  1.94:1   needs 4.5:1
     green section headings #7ec34a  1.98:1   needs 3:1 (35 px is large text)

   The orange is not inline and not new: it is the theme's content-link colour, and
   it fails wherever that panel background appears — which is why the same rule will
   widen into the site-wide contrast pass rather than being repeated per page.

   The green is stored inline by Visual Composer, so it needs !important to beat the
   style attribute. It is not new: #7ec34a sits in this post's stored content in every
   revision back to June 2025, so this pair has failed contrast as long as the page has
   existed; the recent edit added a third failing element to the same panel rather than
   creating it. Targeting the colour by attribute text ([style*="7ec34a"]) rather than by
   by .custom_font_holder keeps every other inline colour on the page untouched;
   .custom_font_holder carries compliant dark colours elsewhere and would have been
   collateral damage. The line-height pairing is equally precise: the stored style is
   35 px text on a 26 px line, so the descenders of adjacent lines collide.

   Replacement colours are the same hues, darkened — #9e6100 is 37° against the
   brand orange's 37°, #4c7b29 is 94° against the brand green's 94° — chosen as the
   nearest values that pass rather than arbitrary greys.  Both were revised on 24 November
    evening from #9a4f00 / #3c6a14 to the palette adopted site-wide the same day, so the
    site carries one palette rather than two a whisker apart — see the block appended at
    the end of this file, which also covers this page without the page-id scoping.

   The underline is deliberate and visible: links in this block were distinguished
   from surrounding text by colour alone, which is SC 1.4.1 in its own right, and a
   colour fix would otherwise have preserved that dependency.
   --------------------------------------------------------------------------- */
body.hccb-a11y.page-id-3479 .vce-text-block-wrapper a:not(.qbutton):not([class*="button"]) {
	color: #9e6100;
	text-decoration: underline;
}

body.hccb-a11y.page-id-3479 [style*="7ec34a"] {
	color: #4c7b29 !important;
}

body.hccb-a11y.page-id-3479 [style*="7ec34a"][style*="line-height: 26px"] {
	line-height: 1.3 !important;
}

@media (max-width: 767.98px) {
	body.hccb-a11y .job_filters .search_keywords,
	body.hccb-a11y .job_filters .search_location,
	body.hccb-a11y .job_filters .search_categories {
		float: none;
		width: 100%;
		margin-bottom: 12px;
	}
}
/* ============================================================================
   CONTRAST CORRECTIONS — DEPLOYED 24 NOVEMBER 2026 (evening)
   139 measured failures, 38 of 53 pages
   Source: evidence/contrast-inventory-2026-11-24 (axe-core 4.10.2, live site)
           evidence/contrast-rules-2026-11-24/contrast-classification.csv
           evidence/contrast-verify-2026-11-24 (simulation, sections 1–6)
   Written up in notes/09-contrast-run.md — §3 is the decision this assumes.

   SIMULATED RESULT (sections 1–6, injected into the live pages in a browser,
   nothing written to the server): 139 failing nodes → 17, no page made worse.
   Sections 7 and 8 target those 17 and are measured by the run that follows.

   PALETTE — the minimum-change set, as approved from preview.html
     quiet text   #6e6e6e / #6f6f6f / #707070   worst case 4.60:1 across its backgrounds
     brand green  #4c7b29   worst case 4.64:1   (was #7ec34a, 1.98:1)   hue 94°, brand green 94°
     brand orange #9e6100   worst case 4.68:1   (was #ff9c00, 1.94:1)   hue 37°, brand orange 37°
     orange fill  #9a4f00   white on it 6.01:1, −80.0 Lc  (was 2.10:1, −41.8 Lc)
     pale blue    #3d5a94   6.29:1 / 75.5 Lc on the measured job-row background
                            (deployed 24 Nov as #506fa8, 4.65:1 / 67.1 Lc — passing,
                             but floor-level, and revised 25 Nov at Highbury's request;
                             see section 9)

   These clear 4.5:1 by roughly 0.15 rather than by 1.0 — approved knowingly. The
   recommendation had been the darker set (#3c6a14 / #9a4f00 / #6f6f6f), which is
   still the drop-in if any row ever needs more headroom. Because that darker set
   went live on /hc/compliance that morning, the two rules there were moved to the
   approved values as well: one palette across the site rather than two a whisker
   apart. Ratios are worst-case over every background each colour was measured on,
   not the prettiest one.

   Every rule is scoped to body.hccb-a11y, which the child theme already sets,
   so deleting this file or commenting a section is a complete rollback. There
   is no database write anywhere in it.
   ========================================================================== */


/* --- 1. Blog and recent-post metadata -------------------------------------
   46 nodes on 7 pages. Declared in the parent theme,
   /hc/wp-content/themes/Highburry/css/stylesheet.min.css:
       .blog_holder article .post_info a, .blog_holder article .post_text h2 .date
   Post dates, author links, "Posted at 11:36h", the Like control — all #bebebe
   on a #f6f6f6 panel: 1.72:1. */
body.hccb-a11y .blog_holder article .post_info,
body.hccb-a11y .blog_holder article .post_info a,
body.hccb-a11y .blog_holder article .post_text h2 .date {
    color: #6e6e6e;
}


/* --- 2. Links in body copy -------------------------------------------------
   17 of the 22 orange nodes. The theme declares #ff9c00 in one enormous rule in
   style_dynamic.css covering h1…h6, .h1…h6, p a and the active menu item;
   overriding that rule as written would recolour every heading on the site,
   including the ones over dark photo sections where orange currently passes. So
   this targets the container that was measured failing: text blocks, links only.
   Underline added because colour was doing the only work of marking a link. */
body.hccb-a11y .vce-text-block-wrapper a:not(.qbutton):not([class*="button"]) {
    color: #9e6100;
    text-decoration: underline;
}


/* --- 3. Job listing metadata ----------------------------------------------
   12 nodes on /hc/careers and /hc/jobs. Plugin file, so an override is the only
   way to change it without editing a plugin:
   /hc/wp-content/plugins/wp-job-manager/assets/dist/css/frontend.css */
body.hccb-a11y .rp4wp-related-job_listing > ul li.job_listing a div.location,
body.hccb-a11y .rp4wp-related-job_listing > ul li.no_job_listings_found a div.location,
body.hccb-a11y ul.job_listings li.job_listing a div.location {
    color: #6f6f6f;
}


/* --- 4. Job category dropdown placeholder ---------------------------------
   2 nodes. "Choose a category…" in #999999 on white: 2.85:1.
   /hc/wp-content/plugins/wp-job-manager/assets/lib/select2/select2.min.css */
body.hccb-a11y .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #747474;
}


/* --- 5. Colours authored into the content ---------------------------------
   44 nodes across roughly 26 pages. The colour is not in a stylesheet: Visual
   Composer writes it onto a wrapper div —
       <div class="custom_font_holder" style="… color: #7ec34a;">
   — and everything inside inherits it. All eleven failures on
   /hc/management-team are this pattern, and so are the green page names
   ("Accessibility Plan", "Certifications", …).

   An override reaches an inline style only with !important. The attribute tests
   are doubled because the composer writes both "color: #x" and "color:#x", and
   each excludes the background form: "color: #bcbcbc" is a substring of
   "background-color: #bcbcbc", and matching that would put grey text on a grey
   background — worse than the failure being fixed.

   These should be corrected in the composer by whoever edits the pages; the
   override is what makes the site compliant today without waiting for that. */
body.hccb-a11y [style*="color: #7ec34a"]:not([style*="background-color: #7ec34a"]),
body.hccb-a11y [style*="color:#7ec34a"]:not([style*="background-color:#7ec34a"]) {
    color: #4c7b29 !important;
}
body.hccb-a11y [style*="color: #bcbcbc"]:not([style*="background-color: #bcbcbc"]),
body.hccb-a11y [style*="color:#bcbcbc"]:not([style*="background-color:#bcbcbc"]) {
    color: #6f6f6f !important;
}
body.hccb-a11y [style*="color: #727272"]:not([style*="background-color: #727272"]),
body.hccb-a11y [style*="color:#727272"]:not([style*="background-color:#727272"]) {
    color: #707070 !important;
}


/* --- 6. Buttons: white on brand orange ------------------------------------
   4 nodes on 2 pages, carrying style="color: #ffffff; border-color: #ff9c00;
   background…". The text is the wrong thing to change — dark grey text on an
   orange button is a redesigned button, and the tool that proposed it was wrong
   to suggest it (notes/09 §4). Darkening the fill keeps white text, keeps the
   colour recognisable, and scores better than any text change could: 6.01:1 WCAG and −80.0 Lc on
   APCA, i.e. comfortable body text rather than a bare pass. That fill cannot be made readable with any
   text colour — black on #ff9c00 is 10.01:1 and only 65.8 Lc, and 66 is the ceiling; the limit is the
   background. Alternatives measured in notes/09 §9 and evidence/orange-options-2026-11-24/. */
body.hccb-a11y .qbutton[style*="#ff9c00"] {
    background-color: #9a4f00 !important;
    border-color: #9a4f00 !important;
    color: #ffffff !important;
}


/* --- 7. Related-job cards --------------------------------------------------
   Found by the simulation, not by the first attribution pass: the job title and
   location inside the related-jobs widget, which sections 1–6 left behind.
   #becae0 on #f6f6f6 is 1.53:1 and #d4d4d4 is 1.34:1 — the two palest things on
   the site that carry words. Note the absence of "div" before .location: the
   element is not always a div, and a rule written as "a div.location" matches
   nothing here. */
body.hccb-a11y .rp4wp-related-job_listing .position h3,
body.hccb-a11y ul.job_listings .position h3 {
    color: #3d5a94;
}
body.hccb-a11y .rp4wp-related-job_listing .location,
body.hccb-a11y ul.job_listings .location {
    color: #6f6f6f;
}


/* --- 8. Contact form fields ------------------------------------------------
   5 nodes on /hc/contact. Field text and placeholder in #818181 on white
   (3.89:1). Placeholder colour needs both spellings and opacity:1, because
   browsers render the pseudo-element at reduced opacity by default and the
   computed ratio axe measures is the rendered one. */
body.hccb-a11y .wpcf7-form-control {
    color: #595959;
}
body.hccb-a11y .wpcf7-form-control::placeholder,
body.hccb-a11y .wpcf7-form-control::-webkit-input-placeholder {
    color: #6f6f6f;
    opacity: 1;
}


/* --- 9. The jobs board, 25 November ----------------------------------------
   Three changes to the listing rows, each previewed on the live page before being
   written (evidence/jobs-board-2026-11-25/jobs-preview.png), and each one a
   measurement rather than a preference.

   a) The title carries the underline. The whole row is one <a> and the title is the
      only text in it that says which job it is, so underline is the honest
      affordance rather than colour alone. The theme computes text-decoration-line:
      none on the h3, which suppresses the line the ancestor would otherwise draw
      through it, so the rule is written on the h3 and not on the anchor.

   b) A filled position says so in words. WP Job Manager marks the row with
      .job_position_filled and fades the anchor to opacity .25. #506fa8 at 25% over
      #f6f6f6 composites near #cdd4e3 — about 1.37:1 — which is where four of the
      thirteen remaining contrast nodes came from, and no listing said the job was
      gone. The job's own page has printed "This position has been filled" the whole
      time (li.position-filled, coloured #b81c23 by the theme), so functions.php now
      emits the plugin's own markup and wording on the listing too, through the
      job_listing_meta_end action. This rule keeps the status legible outside the
      single-page scope the theme's own selector is limited to.

   c) The logo is contained, not sliced. The slot is 42x42 with no object-fit, so a
      non-square upload is stretched, and the file in use was a brand sheet carrying
      two marks side by side: WordPress' 150x150 derivative is a centre crop from
      x 623 to x 1731 while the blank gutter between the marks runs x 1080 to x 1271,
      so every row showed the right edge of one logo and the left edge of the other.
      The artwork is fixed at source — a square cut of the standard mark is now the
      featured image on the seven listings — and this rule stops the next upload being
      cut the same way. */
body.hccb-a11y ul.job_listings li.job_listing a .position h3,
body.hccb-a11y .rp4wp-related-job_listing li.job_listing a .position h3 {
    text-decoration: underline;
}

/* The plugin fades the whole row to opacity .25. Highbury want the faded look kept,
   at half, so the fade is applied to the row's artwork, title and location rather
   than to the anchor — opacity on an ancestor cannot be undone by a descendant, so a
   label inside a half-faded link would be half-faded too (measured: #b81c23 at .5 is
   2.47:1, unreadable). The status text therefore sits outside the fade at full
   strength, flush left, and it is the thing that carries the meaning.
   What this costs, stated plainly: at .5 the title composites to #9aa8c5 (2.21:1)
   and the location to #9aa8c5's grey equivalent (1.94:1), both below 4.5:1, so this
   one row is a known Level AA contrast failure by choice. The legal alternatives are
   to fade only the artwork (images are exempt from 1.4.3) or to stop the fade at
   0.85, which is where the location — not the title — first fails. */
body.hccb-a11y ul.job_listings li.job_position_filled > a,
body.hccb-a11y .rp4wp-related-job_listing li.job_position_filled > a {
    opacity: 1;
}
body.hccb-a11y ul.job_listings li.job_position_filled > a > img.company_logo,
body.hccb-a11y ul.job_listings li.job_position_filled > a > .position,
body.hccb-a11y ul.job_listings li.job_position_filled > a > .location,
body.hccb-a11y .rp4wp-related-job_listing li.job_position_filled > a > img.company_logo,
body.hccb-a11y .rp4wp-related-job_listing li.job_position_filled > a > .position,
body.hccb-a11y .rp4wp-related-job_listing li.job_position_filled > a > .location {
    opacity: .5;
}
body.hccb-a11y ul.job_listings .meta .position-filled,
body.hccb-a11y .rp4wp-related-job_listing .meta .position-filled {
    color: #b81c23;
    text-transform: none;
    letter-spacing: 0;
    opacity: 1;
}

body.hccb-a11y ul.job_listings img.company_logo,
body.hccb-a11y .rp4wp-related-job_listing img.company_logo {
    object-fit: contain;
}

/* The RSS link above the listings is already the approved orange and already passes:
   #9e6100 on the #f9f9f9 panel is 4.79:1. What it is not is heavy enough — 68.8 Lc at
   13.28 px, against the ~75 APCA suggests for text that size, which is why it reads
   faint even though no tool flags it. Bolding answers the eye rather than the ratio:
   13.28 px bold is still small text (WCAG large text starts at 18.66 px bold), so the
   requirement stays 4.5:1 and this is a legibility decision, recorded as one. If more
   margin is ever wanted, #9a4f00 is 5.71:1 / 73.9 Lc on the same panel. */
body.hccb-a11y a.rss_link {
    font-weight: 700;
}

/* 10. Job pages: the orange links that section 2's wrapper scope does not reach.

   Section 2 restyles content links inside .vce-text-block-wrapper. Job descriptions
   are plugin markup, not page-builder output, so they sit outside it — measured on the
   live DOM 26 November: the mailto: address in the description and the bold URLs under
   it rendered in the plugin's #ff9c00 at 18 px, 1.94:1 on #f6f6f6, axe violations.
   #9e6100 is the palette Highbury approved for content links: 5.04:1 on white,
   4.67:1 on #f6f6f6. strong is listed because the theme colours the bold URLs in a
   description in their own right, and an inherited colour would not win against that.

   What is deliberately NOT here: the "Website designed by HCA Mindbox" credit at the
   foot of every page. I put it in this rule on the strength of a scan that listed the
   colour it paints, not the colour it sits on, and shipped a regression — the credit is
   on the near-black footer (rgb(25,25,25)), where #ff9c00 measures 8.38:1 and the
   approved #9e6100 measures 3.49:1. In other words the bright orange was the compliant
   choice there all along and darkening it broke something that passed. Removed, and
   the lesson is the one this workspace keeps relearning: a colour is not a contrast,
   and a link list is not a defect list. */
body.hccb-a11y.single-job_listing .job_description a,
body.hccb-a11y.single-job_listing .job_description a strong {
    color: #9e6100;
}

/* The theme sets ul.meta { display: none } on the board — the job type and posting
   date are hidden there by design — which meant the status line above was invisible
   and, because display:none takes the whole subtree out of the accessibility tree,
   inaudible as well. Adding markup to a hidden list fixes nothing; that is measured,
   not assumed (Playwright resolved the element as hidden, with a zero-size box, and
   the only reason its text appeared in the link was textContent, which is not the
   accessible name). So: reveal the list on the one row that has something to say,
   show only the status rather than resurrecting the type and date the theme chose to
   suppress, and place it absolutely inside the row so no row changes height. */
body.hccb-a11y ul.job_listings li.job_position_filled > a > ul.meta,
body.hccb-a11y .rp4wp-related-job_listing li.job_position_filled > a > ul.meta {
    display: block;
    float: none;
    position: absolute;
    left: 74px;
    top: 40px;
    width: auto;
    text-align: left;
    padding: 0;
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
}
body.hccb-a11y ul.job_listings li.job_position_filled > a > ul.meta li:not(.position-filled),
body.hccb-a11y .rp4wp-related-job_listing li.job_position_filled > a > ul.meta li:not(.position-filled) {
    display: none;
}

/* The absolute placement above is only safe while the title is on one line. At 375 px
   and 320 px the title wraps to two lines and the status landed on top of it — checked
   after deploying, not before, which is the point of checking. Below the width where
   titles wrap, let it flow in the row and let that one row grow. */
@media (max-width: 767px) {
    body.hccb-a11y ul.job_listings li.job_position_filled > a > ul.meta,
    body.hccb-a11y .rp4wp-related-job_listing li.job_position_filled > a > ul.meta {
        position: static;
        float: none;
        padding: 0;
        margin: 0;
        clear: both;
    }
}


/* ============================================================================
   11. Contact page — the social discs, and the shape of the form
   ========================================================================== */

/* The four social links on /hc/contact are a white glyph on a brand-orange disc:
   2.10:1, which is the worst pairing available to a low-vision or colour-blind
   visitor and below the 3:1 WCAG 2.1 asks of a graphic needed to understand the
   page. AODA binds us to 2.0, where an icon is not text and 1.4.3 does not reach
   it, and the links are named properly in the accessibility tree ("Highbury Canco
   on Facebook" and siblings) — so this is a legibility decision Highbury took on
   26 November, not a compliance correction. The dark mark measures 6.54:1 on the
   same disc.
   The colour must go on the inner <i>. The wrapper span carries its own colour
   that nothing inherits, and a rule aimed at .fa-stack changes no pixels — checked
   by reading the computed colour of both elements before and after. */
body.hccb-a11y .q_social_icon_holder .fa-stack i {
    color: #3d2a00;
}

/* The fields were already "100% wide" — of a wrapper that had collapsed to 323px
   inside a 723px paragraph, because CF7 nests input inside
   span.wpcf7-form-control-wrap inside label, the theme gives the input a fixed
   width, and both wrappers shrink-wrap to it. Making the two ancestors block-level
   and the control 100% lets the field fill the Visual Composer column, which is
   what the facade at /contact does: its .form-control measured 709px of a 709px
   container.
   box-sizing is not decoration here — the controls carry padding, and without it a
   100% field overshoots the column by that padding. */
body.hccb-a11y .wpcf7 label,
body.hccb-a11y .wpcf7 .wpcf7-form-control-wrap {
    display: block;
}

body.hccb-a11y .wpcf7 input.wpcf7-form-control:not([type=submit]),
body.hccb-a11y .wpcf7 textarea.wpcf7-form-control,
body.hccb-a11y .wpcf7 select.wpcf7-form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ============================================================================
   12. Contact page — the Send button matches the facade at /contact
   ========================================================================== */

/* Highbury's instruction, 26 November. The facade's submit is a Bootstrap
   btn-success and was measured in all three states, so this rule copies a recipe
   rather than a colour:

     idle   #ffffff on #198754, 1px #198754, 4px radius, 6px 12px, 16px/400
     hover  #157347 with a #146c43 border          → 5.87:1
     focus  same pair, plus Bootstrap's own ring    → 5.87:1

   The WP button it replaces was #ff9c00 text on the light panel (1.94:1) and
   filled #ff9c00 with white text on both hover and focus (2.10:1) — failing in
   every state it has, which is why measuring only the default state is not
   evidence about a control.

   Two visible side effects of a true match, both deliberate: the box goes from
   89x43 to 64x38 — same height as the facade, narrower only because its label is
   "Send" and the facade's is "Submit" — and text-transform: none means it reads
   "Send" rather than "SEND", because Bootstrap does not uppercase its buttons.
   Reverting either is one line, not a redesign.

   What is NOT copied: Bootstrap's focus ring. It is a 4px shadow of
   rgba(60,153,110,.5), which composites to about 1.4:1 against the panel — the
   theme's own 3px solid #17469e outline is roughly five times better against the
   same background, so it stays. Matching a reference design does not oblige us to
   import its weaker accessibility. */
body.hccb-a11y .wpcf7 input.wpcf7-submit {
    color: #ffffff;
    background-color: #198754;
    border: 1px solid #198754;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    /* The theme pins height: 39px with box-sizing: content-box, so every pixel of
       padding stacked on top of it and the button came out 64x53 against the
       facade's 79x38. Bootstrap sizes its buttons border-box with no explicit
       height; with the same box model this one lands on 24px line + 12px padding +
       2px border = 38px, which is the facade. Found by reading the computed height
       rather than guessing at line-height, which I had already changed for nothing. */
    height: auto;
    box-sizing: border-box;
}

body.hccb-a11y .wpcf7 input.wpcf7-submit:hover,
body.hccb-a11y .wpcf7 input.wpcf7-submit:focus,
body.hccb-a11y .wpcf7 input.wpcf7-submit:active {
    color: #ffffff;
    background-color: #157347;
    border-color: #146c43;
}

/* ============================================================================
   HELD BACK — deliberately not enabled.
   ========================================================================== */

/* Orange headings inside text blocks: a couple of the orange nodes are <strong>
   URLs sitting in headings rather than paragraph links. The rule that catches
   them also catches every heading in a text block, including ones over dark
   sections where #ff9c00 passes today. Needs the affected pages looked at one by
   one, which is not something a count can decide.
body.hccb-a11y .vce-text-block-wrapper h1,
body.hccb-a11y .vce-text-block-wrapper h2,
body.hccb-a11y .vce-text-block-wrapper h3 { color: #9a4f00; }
*/

/* The submit button rendering orange text on a light panel (1 node). Held back
   here for three days as "Highbury's call, not a colour correction" — which was
   right, and section 12 above is the answer they chose: match the facade's green
   rather than recolour it. Kept as a record of the alternative that was offered
   (white on #9a4f00, 6.01:1).
body.hccb-a11y input.wpcf7-submit { color: #ffffff; background-color: #9a4f00; }
*/

/* Two orange mailto links on /hc/contact, which sections 2 does not reach
   because they sit outside a text block — and which a later pass could not find
   at all on that page. The site is being edited while this work runs, so they
   are left alone rather than chased with a rule aimed at an element that may no
   longer be there. Re-measure before deploying and they will either be fixed by
   section 2's successor or listed for content. */

/* ==========================================================================
   13. Single job page header — the brand lock-up, in place of the posting's image.

   The brief: stop printing whatever image whoever filed the posting chose, and
   put the anniversary lock-up (H oval | rule | "10 years since 2014") beside the
   job title instead. The dark photo band above is untouched — the mock keeps it,
   and it is a theme option anyway (.title background from
   uploads/2017/01/HC-title-contact.jpg, 2100x400, which is why the <h1> in it is
   white). Everything here is below that band.

   The coupling that made this necessary is documented on the PHP side, in the
   post_thumbnail_html filter in functions.php: the same _thumbnail_id feeds the
   42px board icon and the parent theme's full-size content image. This section is
   the other half — the graphic that replaces it, shipped in images/ with the
   theme so it cannot be cropped, edited or deleted from the dashboard.

   Geometry taken from measurements, not from eyeballing the mock:
     .post_text_inner children      h2.entry_title 1100x30 at y=1566
                                    div.post_info  bottom at y=1638
                                    div.single_job_listing at y=1656
   so the header block is 72px tall and the lock-up in the mock (about 377x175 CSS
   px at a 1243px viewport) overhangs it by roughly 50px top and bottom — hence the
   negative top margin, which pulls a float above the content edge and centres it
   on the block. The asset is the anniversary source trimmed to its own ink box
   (uploads/2026/10/celebration.png is 3072x1024 with 512px empty at the left and
   514px at the right; ink is 2046x964, aspect 2.122:1).

   First deployment used a fixed 380x179 box — the art's own shape, so contain
   letterboxed nothing away — with margin -30px 0 0 28px. Highbury reviewed that
   and asked for the mark to shrink with the window instead: 20vw x 20vh, margin
   -50px 10px 20px 28px. Worth recording what that actually does, because it is not
   the same behaviour at every shape of window: with `contain` the drawn mark
   follows the width (20vw at the art's 2.122:1), while 20vh only sets the box it is
   centred inside. Measured: 263x124 drawn inside 263x157 at a 1314x786 viewport,
   384x181 inside 384x216 at 1920x1080, 205x97 inside 205x154 at 1024x768. Because
   the box height comes from viewport height, a short wide window renders a smaller
   mark than a tall window of the same width — if that ever reads wrong, the fix is
   to set the height from the same unit as the width (or clamp both) rather than to
   fight `contain`.

   Why a float and not an absolutely positioned box: nothing between
   .post_text_inner and .single_job_listing establishes a block formatting context
   (overflow: visible, no contain, no flex/grid — verified on the live page), so a
   float participates in the column's line boxes and a long title wraps beside it
   instead of running underneath it. .single_job_listing then clears, which puts
   the description below the graphic rather than beside it, matching the mock,
   where body copy starts about 70px under the badge.

   Pseudo-elements, not markup: the lock-up is decoration, so it should not appear
   in the accessibility tree at all, and there is no hook inside .post_text_inner
   to inject an element into. The same argument ruled out copying the parent's
   blog loop — see functions.php.

   At 375px the title wraps to three lines (measured 300x90), so the graphic needs
   a host that is guaranteed to sit under the header whatever the title does.
   .post_text_inner::before is the container's first box and cannot reflow to the
   bottom of the header, so the narrow-screen rule hangs it off
   .single_job_listing::before instead — the first thing after the meta row. 767px
   is the switch section 9 established by measurement; 782 was the wrong number
   there and is the wrong number here.
 */

/* functions.php empties the thumbnail html; the loop still prints the wrapper, so
   hide it rather than depend on which branch of it ran. This is what removes the
   1100x1100 image and the white block around it. */
body.hccb-a11y.single-job_listing .post_image {
	display: none;
}

body.hccb-a11y.single-job_listing .post_text_inner::before {
	content: "";
	float: right;
	width: 20vw;
	height: 20vh;
	margin: -50px 10px 20px 28px;
	background: url(../images/job-header-brand.png) right center / contain no-repeat;
	pointer-events: none;
}

body.hccb-a11y.single-job_listing .single_job_listing {
	clear: right;
}

/* The meta row is display: inline-block but resolves to the column's full 1100px,
   so with a 380px float beside it there is no room left and it falls below the
   graphic — measured: it sat at y=615 while the title stayed at 466. Letting it
   shrink-wrap puts it back under the title (y=512, 281px wide), which is where the
   mock has it, and pulls the description up to 615 while still clearing the
   graphic's bottom at 592. Discovered by looking at the first screenshot, not by
   reasoning about it beforehand. */
body.hccb-a11y.single-job_listing .post_info {
	width: auto;
}

@media (max-width: 767px) {
	body.hccb-a11y.single-job_listing .post_text_inner::before {
		display: none;
	}

	body.hccb-a11y.single-job_listing .single_job_listing::before {
		content: "";
		display: block;
		width: 240px;
		height: 113px;
		margin: 6px auto 16px auto;
		background: url(../images/job-header-brand-sm.png) right center / contain no-repeat;
		pointer-events: none;
	}
}

/* Swapping this artwork is a deploy, and a deploy under a different filename.
   hccb_a11y_ver() in functions.php rewrites only style and script URLs, so these
   PNGs carry no cache-buster and the server serves them with
   Cache-Control: public, max-age=604800 — replace one in place and returning
   visitors keep the old graphic for a week. The artwork also dates itself: "10
   years / since 2014" is stale during 2027, which is a content decision that
   belongs in the change record rather than in someone's memory. */

/* ==========================================================================
   14. Facade header below the xl breakpoint — logo left, button on the same line.

   The logo lives in div.col-xl-2.text-center (header.php), centred by
   bootstrap.min.css `.text-center { text-align: center !important }`. At xl and
   above, that column is a narrow slice at the left of the row, so centring reads
   as "logo in the header". Below xl (1200px) the column goes full width, the same
   !important rule centres the logo over the whole page, and the menu button — a
   sibling *inside this same column*, after the logo:
   button.js-main-menu.d-block.d-lg-none.btn-menu-toggle — wraps onto a second line
   under it. That is the stacked header Highbury screenshotted.

   Left-align plus space-between puts the logo left and the button right on one
   line, which is the target they sent. Between 992 and 1199 the button is
   display:none (d-lg-none), so through that band this simply moves the logo left;
   the flex declaration costs nothing when there is only one child.

   Scope: exactly one .col-xl-2.text-center exists on these pages and it is the logo
   column (verified at 1314, 992, 767 and 375), inside <header>. The !important is
   not a habit — the rule being overridden is itself !important.

   MOVED on 2026-11-26 to /css/main-nav.css at the docroot (same media query, same
   declarations, no body.hccb-a11y prefix). Reason: includes/main-nav.php is shared
   chrome — the static facade renders the same header and had the same defect — and
   Highbury asked for both sites to change together. Two copies of one rule in two
   stylesheets is how the two sites quietly disagree six months from now, so the
   child theme keeps no copy.

   The thing to check if the centred logo comes back on a WordPress page: whether
   /css/main-nav.css is still being loaded here. It arrives via
   includes/header-components.php, which header.php includes after wp_head(); if
   that include is ever removed, this is the file to put the rule back in.
   ========================================================================== */

/* ==========================================================================
    15. Content on phones was 300px wide inside a 480px screen.

    The parent theme's responsive.min.css sizes .container_inner in fixed pixels
    rather than percentages (enumerated from the live CSSOM, not inferred):

        base 1100px | <=1200 -> 950 | <=1000 -> 768 | <=768 -> 600
        <=600 -> 420        | <=480 -> 300 | <=350 -> 95%

    Below 350px it goes fluid, so a small phone is fine and a large one is not: at
    a 480px CSS viewport — the width a great many Android phones report — the whole
    page rendered 300px wide and centred, with 90px of dead margin either side. 62%
    of the screen. Highbury's screenshot measures the same ratio, and it is why the
    phone looked broken while the tablet (which lands in the <=1000 band: 768px
    inside 876 = 88%) looked correct.

    The static facade never had this because it does not use this wrapper. That is
    what made the defect WordPress-only, and it puts the fix here rather than in the
    shared stylesheet — the opposite call from change 17's header rule, which moved
    out of this file for the same reason in reverse: share only what both sites have.
    Confirmed not self-inflicted first: loading the page with a11y.css, main-nav.css
    and navbar.css blocked by route interception still measures 300px.

    Scope is main#maincontent because two .container_inner elements exist per page
    and both are inside <main> (measured: #0 clearfix and #1 default_template_holder,
    x=90 w=300 each at 480px); the header and footer use other wrappers, so the nav
    and the mobile menu are untouched. Specificity 1,1,1 beats the theme's 0,1,0, so
    this needs no !important.

    .vc_row gutters are neutralised in the same query because the row carries
    margin: 0 -15px, bleeding .full_section_inner to 330px inside a 300px wrapper
    today. With the wrapper at 100% that bleed would push content 30px past a 480px
    viewport and reintroduce sideways scrolling; zeroing it costs 15px of gutter the
    container padding already supplies.

    Left alone deliberately: the 601-768 band (600px fixed — 78% at 768px). The
    tablet in the screenshot sits in the <=1000 band and reads as correct, and a
    request about phones should not move tablet layout. Extending the query to
    max-width: 767px is the one-line change if they want it after seeing it there.
    ========================================================================== */
@media only screen and (max-width: 600px) {
	main#maincontent .container_inner {
		width: 100%;
	}

	/* the bleed that would otherwise poke past the viewport once the wrapper fills */
	main#maincontent .vc_row {
		margin-left: 0;
		margin-right: 0;
	}
}


/* ==========================================================================
    16. Listing rows: the underline goes, and the separator gets darker on mobile.

    Reverses section 9(a) from 25 November, at Highbury's request. That note argued
    the underline was "the honest affordance rather than colour alone"; it was right
    about the general case and wrong about this one, because the row is not a link
    sitting inside a sentence. Each row is a single <a> wrapping the logo, the title,
    the company and the location — the title is the only text in it that could be
    mistaken for a link, and there is no surrounding prose to disambiguate from.
    SC 1.4.1 asks for a non-colour cue when colour is the only thing distinguishing
    a link *from the text around it*; with one anchor per row and the whole row
    clickable, that condition is not met. The underline was adding the cue anyway:
    the plugin sets text-decoration:none on the row anchor and the theme sets it on
    the h3, so nothing was underlined until section 9(a) put it back.

    Two rules, because two rules put it there: the broad
    `.job_listing a` at line 73 — which still needs to apply, since on a single job
    page that selector reaches the description's links (hr@highburycorp.com) and the
    location link, and those ARE links in prose — and the h3 rule at line 365.
    Overriding the anchor alone would leave the h3's own underline in place, which is
    exactly the trap section 9(a) documented in reverse. Specificity: 0,3,4 and
    0,3,5 against their 0,2,2 and 0,3,4, and this file is later, so no !important.

    The separator is a separate problem with a number attached. frontend.css gives
    the row `border-bottom: 1px solid #eeeeee`, and the board background is #f6f6f6:
    #eee on #f6f6f6 is 1.07:1, which is not a separator, it is a rumour. Measured,
    not eyeballed — which is why rows ran together once the logo went away.

    The logo does go away on mobile, and Highbury's description of it was accurate:
    frontend.css hides it with `visibility: hidden` at `max-width: 767px` (verified:
    computed visibility "visible" at 1243, "hidden" at 412, same 42px box either way,
    image fully loaded in both). So the same 767px breakpoint is used here, and the
    darker line appears exactly when the visual cue it has to replace disappears —
    not a breakpoint of my own choosing.

    What #bcbcbc is worth, stated so nobody has to re-derive it: 1.76:1 against the
    #f6f6f6 board background. That is a visible hairline and it is well above the
    1.07:1 it replaces, but it is NOT 3:1, which is what WCAG 2.1 SC 1.4.11 asks of a
    boundary that carries meaning. A separator is decorative and 1.4.11 is outside
    the WCAG 2.0 AA target AODA actually imposes, so this is compliant as shipped.
    If the line is ever meant to be the *only* thing distinguishing a row for a low
    vision user, #8e8e8e is the value that reaches 3.03:1 on the same background.
    ========================================================================== */

/* The row is one link, not a link in a sentence.

   The anchor is matched by a rule further up this file —
   `.vce-text-block-wrapper a:not(.qbutton):not([class*="button"])`, which exists to
   put underlines back on prose links inside Visual Composer text blocks — and the
   jobs board is itself rendered inside one of those blocks (the shortcode was placed
   in a vce-text-block, visible in the DOM as the ancestor of ul.job_listings). That
   rule scores 0,4,2; a plain descendant selector here scores 0,3,4 and LOSES,
   because class count outranks type count. Measured after deploying the first
   version of this rule: the h3 came out clean while the anchor still computed
   underline, and the one piece of text in the row without a text-decoration:none of
   its own — the "This position has been filled" label — went out underlined, which
   is worse than no rule at all: it underlines text that is not a link.

   So the :not() pairs are mirrored deliberately, not copied from a linter: they lift
   this to 0,5,4 and the whole row goes quiet, descendants included. */
body.hccb-a11y ul.job_listings li.job_listing > a:not(.qbutton):not([class*="button"]),
body.hccb-a11y ul.job_listings li.job_listing > a:not(.qbutton):not([class*="button"]) *,
body.hccb-a11y .rp4wp-related-job_listing li.job_listing > a:not(.qbutton):not([class*="button"]),
body.hccb-a11y .rp4wp-related-job_listing li.job_listing > a:not(.qbutton):not([class*="button"]) * {
	text-decoration: none;
}

@media only screen and (max-width: 767px) {
	/* same breakpoint the plugin uses to hide the logo, so the line arrives exactly
	   when the thing it is replacing leaves */
	body.hccb-a11y ul.job_listings li.job_listing,
	body.hccb-a11y .rp4wp-related-job_listing li.job_listing {
		border-bottom-color: #bcbcbc;
	}
}


/* ==========================================================================
    17. Listing rows become cards — Highbury's pick from the four mockups.

    Shipped 27 November after being chosen from evidence/jobs-board-mockups-2026-11-26/.
    Separation stops depending on a hairline: each row is a white card with a 1px
    #d8d8d8 border, 10px radius, a 1px shadow and 10px of daylight between cards.
    Against the board's #f6f6f6 the border measures 1.32:1 and the white face 1.08:1,
    which says something worth being honest about: a white card on a very light grey
    board is separated by the border, the shadow and the 10px gap, NOT by contrast.
    That is fine for sighted scanning and it is not a claim of 3:1 separation — the
    value that reaches 3.03:1 on this background is #8e8e8e if the line ever has to
    carry it alone.

    The second rule is not decoration, it is the fix for damage the first one does.
    The plugin gives .location a PERCENTAGE width (measured 94px at a 320 viewport,
    130px at 412, 263px at 1243 — same fraction of the row), so the card's 14px
    padding takes 28px away from the line and "Leamington, Ontario" no longer fits
    in the 118px left at 412: it wrapped to two lines. width:auto lets the float
    shrink-wrap to its content instead, and that turns out to fix two cases that
    were already broken before this change — the location has been wrapping at 320,
    375 and 768 since whenever the percentage was written, and with width:auto it
    sits on one line at every measured width (320, 375, 412, 480, 601, 768, 1243),
    with no sideways scrolling at any of them.

    The focus ring moves to the card. With a bordered card, the theme's outline on
    the inner anchor draws a second rectangle 14px inside the first, which reads as
    a rendering fault rather than a focus indicator. :focus-within on the row is what
    :has() is used for here, and the inner outline is suppressed ONLY inside that
    same :has() context: a browser too old for :has() ignores both rules and keeps
    the ring it has always drawn, so the enhancement cannot remove the indicator.
    Verified by pressing Tab, not by reasoning — see the deploy record.

    What section 16's darker bottom border becomes: on the board it is now
    overridden by this card border, which is the point of a card. It is left in the
    file rather than deleted because it is scoped to the same rows and would spring
    back into service the moment the card treatment is ever removed.

    Cost, stated so it is a decision and not a surprise: rows grow from ~105px to
    ~158px at 412 and ~57px to ~86px at 1243, so fewer listings fit above the fold.
    Padding 10 instead of 14 gives back about 8px a row if that matters later. */
body.hccb-a11y ul.job_listings li.job_listing {
	background-color: #ffffff;
	border: 1px solid #d8d8d8;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .07);
	margin: 0 0 10px;
	padding: 14px;
}

/* keep the location on one line inside the narrower content box */
body.hccb-a11y ul.job_listings li.job_listing .location {
	width: auto;
}

/* The company logo, centred on the row.

   The plugin places the mark with position:absolute and top:16px, resolved against
   the anchor — a value tuned for the old flat row, where there was no card edge for
   it to disagree with. The card adds 14px to the <li> above and below WITHOUT adding
   anything to the anchor, so the mark stayed put while the card grew around it:
   measured 31px from the top edge of the card and 13px from the bottom, 18px low.

   Highbury found this in devtools before I did and found the fix: top: calc(50% -
   21px) centres it on the anchor, restoring 22px above and 22px below at both 1243
   and 1475. The 21px is half the plugin's fixed 42px artwork, so these two numbers
   are tied together — if the logo size ever changes, this halves with it.

   It is the mark that moves, not the text: the title keeps its own top alignment, so
   a one-line row and a three-line row both end up with the logo centred in the card
   rather than drifting with the text block. */
body.hccb-a11y ul.job_listings li.job_listing > a img.company_logo {
	top: calc(50% - 21px);
}

@media (hover: hover) {
	/* DELIBERATELY NOT SHIPPED on 27 November. The theme draws no hover state on a
	   row, and a card that does not react under a mouse looks inert, so this is the
	   change worth having next — but it was not in option B as it was shown and
	   chosen, so it stays commented out until Highbury sees it.
	body.hccb-a11y ul.job_listings li.job_listing:hover {
		border-color: #9aa8c5;
		box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
	}
	*/
}

/* The focus ring moves to the card's own edge. The inner outline is suppressed ONLY
   inside the :has() context that replaces it, so a browser without :has() ignores
   both rules and keeps the ring it has always drawn: the enhancement cannot be the
   thing that removes the indicator. */
body.hccb-a11y ul.job_listings li.job_listing:has(> a:focus-visible) {
	outline: 3px solid #17469e;
	outline-offset: 2px;
}

body.hccb-a11y ul.job_listings li.job_listing:has(> a:focus-visible) > a:focus-visible {
	outline: none;
}

