/*
|--------------------------------------------------------------------------
| Box Model
|--------------------------------------------------------------------------
|
| Every element sizes by its border box, so a declared width is the width
| the element actually occupies, padding and border included.
|
| This lives here rather than in the theme's style.css because that file is
| enqueued with get_stylesheet_uri(), which returns the CHILD theme's
| stylesheet. With a child theme active, the parent's style.css never
| loads, so anything defined only there — including its box-sizing reset —
| is not on the page at all.
|
| Without this, width: 100% plus padding overflows its parent, which is why
| a full-width button in a footer column ran past the column edge.
|
| The containers below add their gutters back into their max-width so the
| content inside them stays exactly as wide as it was before this reset.
|
*/

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


/*
|--------------------------------------------------------------------------
| Typography
|--------------------------------------------------------------------------
*/

:root {

    --container-width: 1200px;

    --block-padding-x: 80px;
    --block-padding-x-mobile: 30px;
	
    --font-body:
        "Source Sans Pro",
        sans-serif;

    --font-heading:
        "Playfair Display",
        serif;

    --font-mono:
        monospace;

    /*
     * Condensed. Blocks use it for eyebrows, buttons and other small
     * uppercase runs. A child theme that has a condensed face overrides
     * this; without one it falls back to the body stack, which looks
     * ordinary rather than broken.
     */
    --font-condensed: var(--font-body);

    --font-size-xs: .875rem;
    --font-size-sm: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.5rem;
    --font-size-xl: 2rem;
    --font-size-2xl: 3rem;
    --font-size-3xl: 4rem;

    --line-height-body: 1.7;
    --line-height-heading: 1.2;

}

/*
|--------------------------------------------------------------------------
| Colors
|--------------------------------------------------------------------------
*/

:root {

    --color-primary: #0055cc;
    --color-secondary: #666666;

    /*
     * Quiet text: a date under a headline, a caption, a field hint, a
     * placeholder. Its own token because it has its own job.
     *
     * Blocks used to reach for --color-secondary for this, back when that
     * happened to be a neutral gray. It is a brand color — the second one
     * a site picks after its primary — and the moment a child theme set it
     * to something with any saturation, every date and caption on the site
     * went with it. On Granada that made them gold at 2.82:1, failing the
     * 4.5:1 for body text in five blocks at once, silently.
     *
     * 5.74:1 on white. A child theme overriding it owns that number.
     */
    --color-muted: #666666;

    --color-text: #333333;
    --color-heading: #111111;

    --color-light: #ffffff;
    --color-dark: #000000;

    --color-border: #dddddd;

    /*
     * The edge of something you type in or press, which is not the same
     * job as the line between two paragraphs.
     *
     * --color-border is 1.36:1 against white. That is right for a rule or
     * a divider, which is decorative and held to nothing, and wrong for
     * an input, whose boundary WCAG 1.4.11 wants at 3:1 — a field nobody
     * can find the edge of is a field they do not know is there.
     *
     * 4.54:1 on white and 4.00:1 on a cream, so it clears 3:1 with room
     * on every surface the framework offers. The Form block arrived at
     * the same number independently.
     */
    --color-control-border: #767676;

    /*
     * Cream and highlight look like extras, but eight blocks and the
     * header's own Cream variant read them, and they were only ever
     * defined in the Granada child theme. On any other site
     * `background-color: var(--color-cream)` resolved to nothing and the
     * Cream variant rendered with no background at all.
     *
     * Neutral values on purpose. A child theme overrides them; what the
     * parent must guarantee is that they exist.
     *
     * Nothing in this theme or the plugin reads --color-cream any more.
     * "Cream" is one site's word for a surface every site has, and the
     * eight blocks reading it were painting Granada's warm cream on a
     * theme whose Subtle is a neutral gray -- a Form set to Subtle on
     * IHC came out the wrong color, and so did everything else in that
     * list. They read --color-surface-subtle now, which is the name the
     * surface vocabulary gives it.
     *
     * The token stays because a child theme or a site's own CSS may
     * still use it, and because the header keeps a Cream variant whose
     * saved value is that word.
     */
    --color-cream: #f5f3f0;
    --color-highlight: #8a6d3b;

    /*
     * ----------------------------------------------------------------------
     * Surfaces, each paired with the text color that belongs on it.
     * ----------------------------------------------------------------------
     *
     * Named for the job, not the color. "Cream" described one client's
     * palette and then appeared in every client's editor; a surface called
     * Subtle is still Subtle on a site where it is pale gray.
     *
     * The pairing is the part that matters. Blocks set a surface and never
     * a text color, so the readable combination is not something anyone
     * can get wrong — and a child theme that overrides a surface has to
     * answer for the text on it in the same breath.
     *
     * Checked against the 4.5:1 body-text threshold. These defaults are
     * 11.49, 6.62, 5.74 and 21.00:1; Granada's overrides are 14.40, 6.04,
     * 5.74 and 16.30:1. A child theme changing either half of a pair
     * should re-check — there is nothing at runtime to catch it.
     */
    /*
     * Base is the page's own surface — what "white" and "light" meant in
     * the block choices before this. It is not the same as no background:
     * None leaves whatever is behind it showing, which matters when a
     * block sits inside a tinted section.
     *
     * on-surface follows --color-text rather than repeating a value, so a
     * child theme that sets its body color gets this for nothing.
     */
    --color-surface: #ffffff;
    --color-on-surface: var(--color-text);

    --color-surface-subtle: #f4f4f5;
    --color-on-subtle: #333333;

    --color-on-primary: #ffffff;
    --color-on-secondary: #ffffff;

    --color-surface-dark: #000000;
    --color-on-dark: #ffffff;

    --color-success: #198754;
    --color-warning: #ffc107;
    --color-danger: #dc3545;

}

/*
|--------------------------------------------------------------------------
| Layout
|--------------------------------------------------------------------------
*/

:root {

    --container-width-sm: 768px;
    --container-width-md: 960px;
    --container-width-lg: 1200px;
    --container-width-xl: 1400px;

    --content-width: 1200px;

}

/*
|--------------------------------------------------------------------------
| Container
|--------------------------------------------------------------------------
*/

.container {
    width: 100%;

    /*
     * Gutters added to the max-width, so the content inside stays
     * --container-width wide. Without this the box-sizing reset above
     * would narrow every container on the site by two gutters.
     */
    max-width: calc(var(--container-width) + var(--block-padding-x) * 2);
    margin-inline: auto;
    padding-inline: var(--block-padding-x);
}

@media (max-width: 768px) {

    .container {
        max-width: calc(var(--container-width) + var(--block-padding-x-mobile) * 2);
        padding-inline: var(--block-padding-x-mobile);
    }

}
/*
|--------------------------------------------------------------------------
| Content Width
|--------------------------------------------------------------------------
*/
#primary {
    overflow-x: clip;
}

/*
 * Air above and below a blog post.
 *
 * A page starts with a block, and every block brings its own band
 * padding — so the main element is given none, and a page whose first
 * block is a hero or a full-width section runs edge to edge under the
 * header, which is the point of it.
 *
 * A post has no blocks to do that. Its title sat against the bottom of
 * the site header and its previous/next links against the top of the
 * footer, with nothing between either pair.
 *
 * .single-post, not .single: the latter is every single of every post
 * type, which on these sites includes events and people, and those
 * templates open with a band of their own that this would push down the
 * page.
 */
.single-post .site-main {
    padding-block: var(--space-2xl);
}

@media (max-width: 768px) {

    .single-post .site-main {
        padding-block: var(--space-xl);
    }

}
/*
 * The entry header and the featured image both sit outside
 * .entry-content, and neither had a width of its own — so a page title
 * ran the full width of the window, starting hard against the left edge,
 * while the words underneath it stopped at the content column. The
 * featured image on a single post did the same thing, at whatever size
 * the file happened to be.
 *
 * Listed together rather than each given its own copy of the same three
 * declarations, because the one thing that must be true of them is that
 * they agree.
 *
 * The entry footer and the previous/next navigation were left off this
 * list and had the same fault as the title once did, only further down
 * the page: the Edit link started hard against the left edge of the
 * window and the navigation ran the full width of it, with the next
 * post's thumbnail hanging off the right. Anything that is a sibling of
 * .entry-content and holds text belongs here.
 */
.entry-header,
.post-thumbnail,
.entry-content,
.entry-footer,
.post-navigation {
    max-width: calc(var(--content-width) + var(--block-padding-x) * 2);
    margin-inline: auto;
    padding-inline: var(--block-padding-x);
}

/*
 * The breadcrumb trail above a page title. It carries .eyebrow too, so the
 * type is already the eyebrow's — only the space under it is here.
 *
 * The plugin's own markup goes inside, and both Breadcrumb NavXT and Yoast
 * wrap theirs in a <p> or a <span> with margins of its own, so those are
 * flattened rather than left to add a second gap under the trail.
 */
.ssc-breadcrumbs {
    margin-bottom: var(--space-sm, 1rem);
}

.ssc-breadcrumbs > * {
    margin: 0;
}

/*
 * Every crumb is at least 24px tall.
 *
 * WCAG 2.2 added Target Size (Minimum), 2.5.8, at AA: a target has to be
 * 24 by 24 CSS pixels unless it is inline in a sentence. A breadcrumb is
 * a row of links rather than prose, so it does not get that exemption,
 * and a line of 14px text is about 17px tall — short by seven. The
 * separators supply the horizontal gap; this supplies the height.
 *
 * inline-flex rather than a block, so the crumbs still sit in a row
 * whatever markup the breadcrumb plugin wrapped them in.
 */
.ssc-breadcrumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

/*
 * The image fills the column and keeps its shape. width rather than
 * max-width, so a file narrower than the column is scaled up to it
 * instead of sitting short against a full-width headline — these are
 * news graphics, not photographs whose grain matters.
 */
.post-thumbnail {
    margin-block: var(--space-lg, 2rem);
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

/*
 * A block that is its own band escapes the content column and holds its
 * contents to the container width itself.
 *
 * .ssb-section--full is listed because the Section block renders a <div>,
 * not a <section> — a sectioning element with no accessible name would
 * add a landmark leading nowhere, so it is deliberately a div. The side
 * effect was that a Full Section stayed inside the content column and
 * then added its own gutter, so everything in it came out 1040px wide
 * against the 1200px of a block sitting at the top level. Dropping a
 * Content block into a Section visibly narrowed it, with nothing to say
 * why.
 *
 * Contained Sections are not listed: the whole point of that variant is
 * that the band stays in the content column.
 */
.entry-content > section,
.entry-content > nav,
.entry-content > .ssb-section--full {
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-inline: 0;
}

@media (max-width: 768px) {

    .entry-header,
    .post-thumbnail,
    .entry-content {
        max-width: calc(var(--content-width) + var(--block-padding-x-mobile) * 2);
        padding-inline: var(--block-padding-x-mobile);
    }

}
/*
|--------------------------------------------------------------------------
| Spacing
|--------------------------------------------------------------------------
*/

:root {

    --space-xs: .5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

}

/*
|--------------------------------------------------------------------------
| Borders
|--------------------------------------------------------------------------
*/

:root {

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

}

/*
|--------------------------------------------------------------------------
| Shadows
|--------------------------------------------------------------------------
*/

:root {

    --shadow-sm:
        0 1px 2px rgba(0,0,0,.05);

    --shadow-md:
        0 4px 12px rgba(0,0,0,.1);

    --shadow-lg:
        0 10px 30px rgba(0,0,0,.15);

}

/*
|--------------------------------------------------------------------------
| Transitions
|--------------------------------------------------------------------------
*/

:root {

    --transition-fast: .2s ease;
    --transition-normal: .3s ease;
    --transition-slow: .5s ease;

}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

:root {

    --header-height: 100px;

}

/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

:root {

    --button-padding-y: 14px;
    --button-padding-x: 28px;

    --button-radius: 4px;

    --button-font-size: 1rem;

    /*
     * The three a theme reaches for first, and the three nothing but
     * .btn used to read.
     *
     * Both child themes set their buttons in caps on .btn itself, and
     * the Form block's submit — which Gravity prints as an <input>, not
     * a .btn — took the tokens above and none of this, so every form on
     * both sites ended with a mixed-case button under a page of caps.
     * A token is the only way the two can agree without the plugin
     * knowing anything about either site.
     *
     * The defaults are what a button does when nothing says otherwise,
     * so a site that sets none of them renders exactly as it did.
     */
    --button-text-transform: none;
    --button-letter-spacing: normal;
    --button-font-weight: 700;
    --button-font-family: var(--font-body);

}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    background: none;
    border: 0;
    color: inherit;
    text-align: center;
	
	
    padding:
        var(--button-padding-y)
        var(--button-padding-x);

    border-radius: var(--button-radius);

    font-family: var(--button-font-family, var(--font-body));
    font-size: var(--button-font-size);

    /*
     * Fallbacks rather than the bare tokens, so this rule says what a
     * button looks like with nothing set — which is what it looked like
     * before the tokens existed. Weight is left out on purpose: .btn
     * has never set one, and giving it a default here would make every
     * button on a site with no child theme bold.
     */
    text-transform: var(--button-text-transform, none);
    letter-spacing: var(--button-letter-spacing, normal);

    text-decoration: none;
    cursor: pointer;

    transition: var(--transition-fast);
}

/* --------------------------------------------------------------------------
   A block that paints its own surface says what the text on it is
   --------------------------------------------------------------------------
   The Section redefines --color-text and --color-heading for everything
   inside it, which is what lets a block dropped into a dark band come
   out readable without knowing it is in one.

   A block that then paints its OWN background has to undo that, or it
   takes the band's text color onto a surface the band knows nothing
   about: a Form set to Base inside a Secondary Section painted itself
   white and kept the white labels, and a Services block set to Boxed
   did the same to its cards.

   Every block names its variants the same way -- ssb-blog-feed--bg-base,
   ssb-comparison--bg-subtle -- so one pair of rules reaches all of them,
   and the next one too.

   These are single-class weight on purpose. They do not need to beat the
   Section's rule, only to be nearer the element than it is: a custom
   property is resolved from the closest ancestor that sets it, whatever
   the weight of the selector that set it. Proximity, not specificity.

   Not --bg-primary or --bg-dark. Those paint a dark surface and already
   set their own light text, which is a different and deliberate flip.
   -------------------------------------------------------------------------- */

[class*="--bg-base"] {
    --color-text: var(--color-on-surface);
    --color-heading: var(--color-on-surface);
    color: var(--color-on-surface);
}

[class*="--bg-subtle"] {
    --color-text: var(--color-on-subtle);
    --color-heading: var(--color-on-subtle);
    color: var(--color-on-subtle);
}


/*
 * `display: inline-flex` above is a class and the browser's own
 * [hidden] { display: none } is not, so without this a button marked
 * hidden stays on the page — and a progressive-enhancement button that
 * prints hidden and is revealed by script is visible with the script
 * blocked, doing nothing when pressed.
 */
.btn[hidden] {
    display: none;
}

/* ==========================================================================
   External links

   inc/modules/external-links.php puts .ssc-external on every link whose
   host is not this site's — in post content, in menus and in the footer.
   This draws the arrow.

   A mask rather than an <img> or a background-image, so the arrow is
   currentColor: it works on a button, in a dark section and in forced-colors
   mode without a second copy per surface. A background shorthand would also
   be wiped by every .btn-- variant, which sets one.

   No text content, so nothing is announced. The arrow is a visual
   convention; a screen reader saying "external link" after every link on a
   page of links is noise, and "opens in a new tab" — the thing that does
   need saying — belongs to target, not to the host, and is said in the
   markup by whoever prints the link.

   The :has() guards keep it off links wrapped around an image or an icon,
   where there is no line of text for it to sit at the end of — a card's
   image link, an icon link. Links that draw their own ::after are skipped
   in PHP instead, since an element only has one.
   ========================================================================== */

:root {

    --external-link-icon: 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 4h6v6'/%3E%3Cpath d='M20 4 11 13'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E");

    --external-link-size: .75em;

}

.ssc-external:not(:has(img)):not(:has(svg))::after {
    content: "";
    display: inline-block;

    width: var(--external-link-size);
    height: var(--external-link-size);

    margin-inline-start: .45em;

    /* Sits with the text rather than on the baseline, where a square box
       rides too high against lowercase letters. */
    vertical-align: -.08em;

    background: currentColor;

    -webkit-mask: var(--external-link-icon) center / contain no-repeat;
    mask: var(--external-link-icon) center / contain no-repeat;
}

/*
 * .btn is inline-flex, so the arrow is a flex item there and is centered
 * by the button's own align-items. vertical-align does nothing on a flex
 * item, and the margin is what keeps it off the label.
 */

.btn--primary {
    background: var(--color-primary);
    color: var(--color-light);
}

.btn--primary:hover {
    opacity: .9;
}

.btn--outline {
    background: transparent;
    color: var(--color-light);
    border: 2px solid currentColor;
}

.btn--outline:hover {
    background: rgba(255,255,255,.1);
}

.btn--secondary {
    background: transparent;
    color: var(--color-text);
    border: 2px solid currentColor;
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
    background: var(--color-text);
    color: var(--color-light);
}

.btn--white {
    background: var(--color-light);
    color: var(--color-text);
}

.btn--white:hover,
.btn--white:focus-visible {
    opacity: .9;
}


:root {

    --block-padding-top: 100px;
    --block-padding-bottom: 100px;

    --block-padding-top-mobile: 60px;
    --block-padding-bottom-mobile: 60px;

}



html {
    scroll-behavior: smooth;
}


:where([id]) {
    scroll-margin-top: calc(
        var(--ssc-sticky-offset, var(--header-height, 0px)) + var(--space-md, 1.5rem)
    );
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

}


/* ==========================================================================
   Eyebrows and condensed type
   ==========================================================================

   These were only ever in the Granada child theme, but three plugin blocks
   emit class="eyebrow" — ssb-cta, ssb-contact and ssb-form. On any other
   site those eyebrows rendered as plain body text: no uppercase, no
   letter-spacing, no condensed face.

   The values here are a sensible default, not Granada's. A child theme
   that wants different ones redefines the tokens or the rule.

   This lives in design-system.css rather than typography.css because
   inc/assets.php enqueues design-system, header and footer and nothing
   else. typography.css, buttons.css, forms.css, modal.css and
   utilities.css are not loaded on the front end at all — a rule put in
   one of them has no effect on any page.
   ========================================================================== */

:root {
    --font-size-eyebrow: 0.875rem;
    --line-height-eyebrow: 1.2;
    --letter-spacing-eyebrow: 2px;
}

/*
 * One eyebrow, including its color.
 *
 * The color used to be each block's own business, and seventeen blocks
 * came to seventeen answers: six said --color-primary, five said nothing
 * and inherited body text, one said muted gray, and the rest each had a
 * token. Nine of them also kept a private copy of the type below, at
 * 0.75rem, 0.875rem and var(--font-size-eyebrow), tracked at 0.1em,
 * 0.12em, 0.18em and 2px. None of that was a decision; it was the same
 * thing written out nine times and drifting.
 *
 * --color-eyebrow is the escape hatch, and it is needed: an eyebrow on a
 * dark hero or a colored panel cannot be the brand's primary. Those
 * blocks set it to currentColor and keep following the surface they are
 * on.
 */
.eyebrow {
    font-family: var(--font-condensed);
    font-size: var(--font-size-eyebrow);
    line-height: var(--line-height-eyebrow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-eyebrow);
    color: var(--color-eyebrow, var(--color-primary));
}

/*
 * The escape hatch above, made the default rather than something each
 * block has to remember.
 *
 * Three blocks set --color-eyebrow: currentColor on their own roots. Five
 * more have Dark or Primary variants and an eyebrow and never did — Blog
 * Feed, Contact, CTA, Gallery and Events — so on those surfaces the
 * eyebrow fell through to --color-primary and was drawn in the brand
 * color on a background chosen to carry the opposite. Granada's crimson
 * on its charcoal is 1.72:1. Nothing warns about it, and an eyebrow is
 * small enough and brief enough that it reads as a design choice rather
 * than as text nobody can see.
 *
 * One substring match covers every block's variant, including blocks
 * added later, because they all name them the same way —
 * ssb-events--bg-dark, ssb-cta--bg-primary. Section is listed by name
 * because its modifiers carry no bg-.
 *
 * currentColor means the eyebrow follows the on-color that surface was
 * paired with, so the contrast is one that was already vetted. The three
 * blocks that set it themselves set the same value, so nothing changes
 * for them.
 */
[class*="--bg-primary"],
[class*="--bg-secondary"],
[class*="--bg-dark"],
.ssb-section--primary,
.ssb-section--secondary,
.ssb-section--dark {
    --color-eyebrow: currentColor;
}

.condensed-heading {
    font-family: var(--font-condensed);
}

/* ==========================================================================
   WordPress base classes

   These live here rather than in the theme's own style.css because
   style.css is enqueued with get_stylesheet_uri(), which resolves to the
   CHILD theme on any site that has one. On Granada the parent's style.css
   is never loaded at all, so everything in it — alignments, the modified
   date rule, the whole _s baseline — was simply absent.
   ========================================================================== */

/*
 * Image and media alignment. Core's block stylesheet only defines
 * `.wp-block-image .alignleft` — a descendant selector — and the editor
 * puts the class on the figure itself, so core never matches it. A theme
 * has to supply these or aligning an image does nothing at all.
 */
.alignleft {
    /*rtl:ignore*/
    float: left;
    /*rtl:ignore*/
    margin-right: var(--space-lg);
    margin-bottom: var(--space-md);
}

.alignright {
    /*rtl:ignore*/
    float: right;
    /*rtl:ignore*/
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.aligncenter {
    clear: both;
    display: block;
    margin-inline: auto;
    margin-bottom: var(--space-md);
}

/*
 * A post whose modified date differs from its published date renders two
 * <time> elements back to back, and without this they print as one run:
 * "December 30, 2025October 6, 2026". The template now prints only the
 * published date, so this is here for any markup that still follows the
 * original pattern.
 */
.updated:not(.published) {
    display: none;
}

/* Floats must not escape the entry they belong to. */
.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

/*
 * Text meant only for screen readers.
 *
 * Here for the same reason as everything else in this section: it was in
 * the theme's style.css, which get_stylesheet_uri() resolves to the CHILD
 * theme, so on any site with one it never loaded and every label meant to
 * be heard and not seen was rendering as visible text — the word "Menu"
 * beside the header's menu button among them.
 *
 * The skip link reappears on focus, which is the whole point of it: a
 * keyboard user has to be able to see the thing they have just focused.
 */
.screen-reader-text {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    clip-path: none;
    display: block;
    z-index: 100000;
    top: 5px;
    left: 5px;
    width: auto;
    height: auto;
    padding: 15px 23px 14px;
    background-color: var(--color-surface, #fff);
    border-radius: var(--radius-sm, 3px);
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: normal;
    color: var(--color-text, #333);
    text-decoration: none;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
    outline: 0;
}

/* ==========================================================================
   The search form

   get_search_form() with html5 support on, which is what functions.php
   asks for, so the markup is a label wrapping .search-field and an
   <input type="submit" class="search-submit"> beside it.

   Here rather than beside the search results page because the same form
   is printed anywhere a listing comes up empty. Styled only on the
   results page, it was a browser-default gray button everywhere else —
   and on the results page too, since only the field had been named.
   ========================================================================== */

.search-form {
    display: flex;
    align-items: stretch;
    gap: var(--space-xs, .5rem);
}

/*
 * The label wraps the field and carries nothing visible, so it is the
 * thing that has to stretch. min-width: 0 lets it shrink below the
 * field's intrinsic width rather than pushing the button off the end.
 */
.search-form label {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.search-form .search-field {
    width: 100%;
    min-height: 48px;
    padding-block: 12px;
    padding-inline: 20px;
    background-color: var(--color-surface, #fff);
    border: 1px solid var(--color-control-border, #767676);
    border-radius: var(--radius-pill, 9999px);
    font-family: var(--font-body);
    /* 16px minimum, or iOS zooms the page in when it is focused. */
    font-size: max(1rem, 16px);
    line-height: 1.4;
    color: var(--color-text, #333);
}

.search-form .search-field:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.search-form .search-submit {
    flex: 0 0 auto;
    min-height: 48px;
    padding-inline: var(--space-md, 1.5rem);
    background-color: var(--color-primary);
    border: 0;
    border-radius: var(--radius-pill, 9999px);
    font-family: var(--font-condensed, var(--font-body));
    font-size: var(--font-size-button, 1rem);
    font-weight: 700;
    line-height: 1.2;
    /* Paired with the surface it sits on, like every other button. */
    color: var(--color-on-primary, #fff);
    cursor: pointer;
    transition: opacity var(--transition-fast, .2s ease);
}

.search-form .search-submit:hover {
    opacity: .9;
}

/*
 * Against the button rather than inside it: the button is already the
 * page's strongest color, so a ring drawn on top of it would be the
 * harder one to see.
 */
.search-form .search-submit:focus-visible {
    outline: 2px solid var(--color-text, #333);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .search-form .search-submit {
        transition: none;
    }

}


/* ==========================================================================
   Search results

   The shape of a search engine's results page, because people already
   know how to read one: a single narrow column, the address above the
   title, the title as the only link, and a line or two of context with
   the words they typed picked out.

   The colors are the site's own tokens. Copying the layout is worth
   doing; copying a particular search engine's blue would only make a
   client's site look like somebody else's.
   ========================================================================== */

.ssc-search {
    /*
     * Results are scanned down the left edge, so the column is kept
     * short enough to do that in one movement. Wider than this and the
     * eye has to travel back across the page for every title.
     */
    --search-column: 42rem;

    max-width: calc(var(--search-column) + var(--block-padding-x, 80px) * 2);
    margin-inline: auto;
    padding-inline: var(--block-padding-x, 80px);
    padding-block: var(--space-xl, 4rem) var(--space-2xl, 6rem);
}

@media (max-width: 768px) {

    .ssc-search {
        max-width: calc(var(--search-column) + var(--block-padding-x-mobile, 30px) * 2);
        padding-inline: var(--block-padding-x-mobile, 30px);
    }

}


/* Header
   ========================================================================== */

.ssc-search__header {
    margin-bottom: var(--space-lg, 2rem);
}

/*
 * A step down from the theme's display h1. This is a utility page and
 * the heading largely repeats what is already sitting in the search box
 * below it; at full display size it is the loudest thing on a page whose
 * whole job is the list further down. Taken from the scale rather than
 * set to a number, so it still moves with the child theme's typography.
 */
.ssc-search__title {
    margin: 0 0 var(--space-md, 1.5rem);
    font-size: var(--font-size-xl, 2rem);
}

.ssc-search__form {
    margin-bottom: var(--space-sm, 1rem);
}

.ssc-search__count {
    margin: 0;
    font-size: .875rem;
    color: var(--color-muted, #666);
}


/* Results
   ========================================================================== */

.ssc-search__results {
    margin: 0;
    padding: 0;
    list-style: none;
}

/*
 * Space between results rather than rules between them. A results page
 * is a column of separate things, and a border round each one turns
 * scanning the titles into reading a stack of cards.
 */
.ssc-search-result + .ssc-search-result {
    margin-top: var(--space-lg, 2rem);
}

.ssc-search-result__path {
    font-size: .8125rem;
    line-height: 1.4;
    color: var(--color-muted, #666);
    /* An address is one line; it is cut rather than wrapped. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ssc-search-result__title {
    margin: 2px 0 0;
    font-size: var(--font-size-lg, 1.5rem);
    line-height: 1.3;
}

.ssc-search-result__title a {
    color: var(--color-primary);
    text-decoration: none;
}

/*
 * Underlined on hover and on focus, not at rest. The title is the only
 * link in a result, in its own color, at its own size — it is not
 * marked by color alone, so WCAG 1.4.1 is satisfied without a rule
 * under every heading on the page.
 */
.ssc-search-result__title a:hover,
.ssc-search-result__title a:focus-visible {
    text-decoration: underline;
}

.ssc-search-result__snippet {
    margin: var(--space-xs, .5rem) 0 0;
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--color-text, #333);
}

.ssc-search-result__date {
    color: var(--color-muted, #666);
}

.ssc-search-result__date::after {
    content: " — ";
    color: var(--color-muted, #666);
}

/*
 * The matched words. Bold rather than highlighted: a results page can
 * carry a lot of these, and a block of color behind every one of them
 * is harder to read than the text it is meant to help with. Bold also
 * survives forced-colors mode, which a background does not.
 */
.ssc-search-result__snippet mark,
.ssc-search-result__title mark {
    background: none;
    font-weight: 700;
    color: inherit;
}


/* Nothing found
   ========================================================================== */

.ssc-search__empty-lead {
    margin-top: 0;
    font-size: var(--font-size-md, 1.125rem);
}

.ssc-search__suggestions {
    margin: var(--space-md, 1.5rem) 0 0;
    padding-left: 1.25em;
    color: var(--color-text, #333);
}

.ssc-search__suggestions li + li {
    margin-top: var(--space-xs, .5rem);
}


/* ==========================================================================
   Blog listing — the featured post

   Image on one side, words on the other, above a grid of the rest. The
   grid itself is the Blog Feed block's and is styled by the plugin; only
   this part is the theme's.

   Structure and spacing only. Type and color belong to the child theme,
   and everything here reads a token that has a neutral default above.
   ========================================================================== */

.ssc-featured-post {
    display: grid;
    gap: var(--space-lg, 2rem);
    align-items: center;
    margin-bottom: var(--space-2xl, 6rem);
}

/*
 * Side by side only once there is room for two readable columns. Below
 * that the image goes on top, which is the same thing the Blog Feed cards
 * do when they stack.
 */
@media (min-width: 768px) {

    .ssc-featured-post {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: var(--space-xl, 4rem);
    }

}

/* With no featured image there is one column of words, and a measure. */
.ssc-featured-post--no-image .ssc-featured-post__content {
    max-width: 68ch;
}

.ssc-featured-post__image {
    margin: 0;
}

.ssc-featured-post__image a {
    display: block;
}

.ssc-featured-post__image-img {
    display: block;
    width: 100%;
    /*
     * The same reason as the Image & Text block: WordPress writes width
     * and height attributes, and without an author height the height one
     * stands and the picture renders at the column's width by its own
     * pixel height.
     */
    height: auto;
}

.ssc-featured-post__title {
    margin: 0;
}

.ssc-featured-post__title a {
    text-decoration: none;
    color: inherit;
}

.ssc-featured-post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs, .5rem) var(--space-sm, 1rem);
    margin-top: var(--space-xs, .5rem);
}

.ssc-featured-post__excerpt {
    margin-top: var(--space-sm, 1rem);
}


/* Blog listing — loading the rest
   --------------------------------------------------------------------------
   The status line is a live region and must stay in the accessibility
   tree, so it is never display: none. Empty, it takes no space.
   ========================================================================== */

/*
 * The Blog Feed block is a section of its own on a page, so it carries
 * its own top and bottom padding. In a listing it is not a section — it
 * is the listing — and that padding lands on top of the featured post's
 * own margin, which is the same --space-2xl, for twelve rems of nothing
 * between them and six more at the foot of the page.
 *
 * Two classes against the block's one, so this wins whichever of the two
 * stylesheets the page loads last.
 */
.ssc-post-list .ssb-blog-feed {
    padding-block: 0;
}

.ssc-post-list__controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm, 1rem);
    margin-top: var(--space-xl, 4rem);
}

.ssc-post-list__status {
    margin: 0;
    text-align: center;
}

.ssc-post-list__status:empty {
    display: none;
}

/*
 * The fallback card, printed only when the blocks plugin is not active.
 * Enough that the page is readable rather than a run of unstyled text;
 * Site Settings → Framework is what says why it looks like this.
 */
.ssc-post-card-fallback + .ssc-post-card-fallback {
    margin-top: var(--space-lg, 2rem);
    padding-top: var(--space-lg, 2rem);
    border-top: 1px solid var(--color-border, #ddd);
}


/* ==========================================================================
   Post navigation

   The previous/next links carry the post's featured image. Structure only
   — the type, color and rules around it are a child theme's business.

   Here rather than in the theme's style.css for the usual reason: that
   file is enqueued with get_stylesheet_uri() and never loads on a site
   with a child theme.
   ========================================================================== */

/*
 * Two columns, one at each end. Without this the links are two block
 * elements stacked full width, which is how the next post ended up on
 * its own line with its thumbnail against the right edge of the window.
 */
.post-navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-lg, 2rem);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1 1 18rem;
    min-width: 0;
}

/*
 * The first and last posts have only one neighbor, and space-between
 * does nothing to a single item — a lone "Next" would sit on the left
 * where every other page puts "Previous". This keeps each end at its
 * own end whether or not the other is there.
 */
.post-navigation .nav-next {
    margin-left: auto;
}

.post-navigation a {
    display: flex;
    align-items: center;
    gap: var(--space-sm, 1rem);
}

/*
 * The next link is the mirror of the previous one, so its image sits on
 * the outer edge of the page rather than between the two titles.
 */
.post-navigation .nav-next a {
    flex-direction: row-reverse;
}

.post-navigation .nav-thumb {
    flex: 0 0 auto;
    display: block;
    width: var(--post-nav-thumb-size, 72px);
    height: var(--post-nav-thumb-size, 72px);
    overflow: hidden;
    background-color: var(--color-surface-subtle, #f4f4f5);
}

.post-navigation .nav-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*
 * min-width: 0 so a long title wraps inside the flex item instead of
 * setting the item's width and pushing the image off the end.
 */
.post-navigation .nav-text {
    min-width: 0;
}

/*
 * "Previous:" above the title rather than running into it. It is a
 * label for what follows, which is what the class has always called it,
 * and on one line a long post title pushes it out of sight anyway.
 */
.post-navigation .nav-subtitle {
    display: block;
}

/*
 * The next link's text ranges to its own side. Its image is already on
 * the outer edge, and text ranged left under a right-hand image leaves
 * a gap between the two that reads as a mistake.
 */
.post-navigation .nav-next .nav-text {
    text-align: right;
}


/* ==========================================================================
   The password form
   --------------------------------------------------------------------------
   WordPress prints this one itself, so it arrives as a browser default:
   an inline label, a field at the browser's own width and a gray Enter
   button, on a page where every other form is the theme's.

   Built from tokens rather than values, so a child theme's own answers
   carry through without a rule of its own — the field takes the site's
   quiet surface, the label its condensed face, the button its brand
   color. Each of those has a neutral default here, so a site that has
   defined none of them still gets a tidy form rather than a broken one.

   .post-password-form is WordPress's class and the markup inside it is
   WordPress's too, so this is written against elements rather than
   classes: a label, a password field and a submit, whichever release
   drew them.
   ========================================================================== */

.post-password-form {
    max-width: calc(var(--content-width) + var(--block-padding-x) * 2);
    margin-inline: auto;
    padding-inline: var(--block-padding-x);
}

.post-password-form p {
    margin-block: 0 var(--space-md);
    max-width: 68ch;
}

/*
 * The label and its field are one line of markup in WordPress's output,
 * with the input nested inside the label. Making the label a block and
 * the input a block under it is what turns it into a field.
 */
.post-password-form label {
    display: block;
    margin-bottom: var(--space-xs);
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text);
}

.post-password-form input[type="password"] {
    display: block;
    width: 100%;
    max-width: 22rem;
    margin-top: var(--space-xs);
    padding: 0.65rem 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--color-text);
    background-color: var(--color-surface-subtle);
    border: 1px solid var(--color-muted);
    border-radius: 0;
}

.post-password-form input[type="password"]:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/*
 * The submit is given the button treatment directly rather than being
 * asked to carry .btn — the markup is WordPress's and there is nowhere
 * to add a class without filtering the form.
 */
.post-password-form input[type="submit"] {
    display: inline-block;
    margin-top: var(--space-md);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-light);
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 0;
    cursor: pointer;
}

.post-password-form input[type="submit"]:hover {
    opacity: .9;
}

.post-password-form input[type="submit"]:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

@media (max-width: 768px) {

    .post-password-form {
        max-width: calc(var(--content-width) + var(--block-padding-x-mobile) * 2);
        padding-inline: var(--block-padding-x-mobile);
    }

}


/* A featured post that leaves the site
   --------------------------------------------------------------------------
   The same mark the blog feed's cards carry, on the featured card at the
   top of the blog and the archives. Both are the same posts, so a title
   that leaves the site has to look the same in both.

   Keyed to target="_blank" for the same reason: the attribute is what
   makes the link behave this way, so the mark cannot come apart from it.
   ========================================================================== */

.ssc-featured-post__title a[target="_blank"]::after {
    content: "";
    display: inline-block;
    width: .62em;
    height: .62em;
    margin-left: .3em;
    vertical-align: baseline;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 10L10 4M5.5 4H10v4.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 10L10 4M5.5 4H10v4.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}


/* ==========================================================================
   404
   --------------------------------------------------------------------------
   Neutral, like everything else here. A child theme brands the band and
   the tiles; a site with no child theme gets a page that looks
   deliberate rather than unfinished.

   Every token below has a fallback for the same reason the blocks do: a
   site that has not defined one should look plain, not broken.
   ========================================================================== */

.error-404__intro {
    padding-block: var(--space-xl, 4rem);
    background-color: var(--color-surface-subtle, #f4f4f5);
    color: var(--color-on-subtle, var(--color-text));
}

.error-404__eyebrow {
    margin: 0 0 var(--space-sm, 1rem);
    font-size: .875rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-muted, #666666);
}

.error-404__title {
    margin: 0;
    max-width: 20ch;
}

.error-404__lead {
    margin: var(--space-md, 1.5rem) 0 0;
    max-width: 60ch;
}

.error-404__body {
    padding-block: var(--space-xl, 4rem);
}

/*
 * The three blocks of the page, spaced by the gap rather than by
 * margins on each one, so a block that does not print -- there is no
 * primary menu, or no contact page -- closes its own space up instead
 * of leaving a hole.
 */
.error-404__body > .container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl, 4rem);
}

.error-404__heading {
    margin: 0 0 var(--space-md, 1.5rem);
    font-size: 1.5rem;
    line-height: 1.2;
}

.error-404__search .search-form {
    max-width: 42rem;
}


/* The sections
   ========================================================================== */

.error-404__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-sm, 1rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

/*
 * A tile, not a bullet. These are the one offer this page makes, and a
 * list of six underlined words is the shape of a footnote.
 *
 * 2.5.8 is not close at 64px, but the height is here for a plainer
 * reason: six tiles of different label lengths should be one row of one
 * size, not six boxes that each fit their words.
 */
.error-404__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm, 1rem);

    min-height: 64px;
    height: 100%;
    padding: 1rem 1.25rem;
    box-sizing: border-box;

    border: 1px solid var(--color-border, #dddddd);
    background-color: var(--color-surface, #ffffff);
    color: var(--color-text);

    font-weight: 700;
    text-decoration: none;
}

.error-404__link:hover,
.error-404__link:focus-visible {
    border-color: var(--color-text);
}

.error-404__link:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

.error-404__arrow {
    flex: 0 0 auto;
    width: 1.125rem;
    height: 1.125rem;
}

.error-404__help {
    margin: 0;
    padding-top: var(--space-md, 1.5rem);
    border-top: 1px solid var(--color-border, #dddddd);
    max-width: 60ch;
}


@media (max-width: 991px) {

    .error-404__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 599px) {

    .error-404__list {
        grid-template-columns: minmax(0, 1fr);
    }

}
