
/* Viking Security Systems | custom.css */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* The palette - set in the variable pool, top of core.css */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* The five colours and every other variable - the roles, white and the
   see-through shades - are set in one place, the variable pool at the top
   of the template's core.css. */


/* - - - a heading group - - - */

/* h1 or h2, with the business name or a strapline as an h3 under it, and a
   thin rule to close the group off */

.piece-heading
{
    display: grid;
    grid-gap: 8px;
    width: 100%;
    padding-bottom: 16px;

    border-bottom: solid 1px var( --accent );
}

.piece-heading h3
{
    color: var( --accent-text );
}

/* - centred text: section headings over a grid, intros, the final CTA - */

.piece-centre :is( h1, h2, h3, h4, p )
{
    justify-self: center;
    text-align: center;
}

.piece-centre.piece-heading,
.piece-centre .piece-heading,
.piece-intro .piece-heading
{
    border-bottom: none;
}

/* a heading pair opening a centred section sits centred, as one */
.piece-intro .piece-heading
{
    justify-items: center;
    padding-bottom: 0;
}

/* - a readable line length for centred or full-width text - */

.piece-narrow
{
    width: 100%;
    max-width: 720px;
    justify-self: center;
}

/* - the line under a heading that sets the page up - */

.piece-lead
{
    font-size: 1.18em;
    line-height: 1.6;
    opacity: .9;
}

/* - - - a picture inside a piece - - - */

/* Alchemy's .img centres and scales; these round it off and stop a tall
   photograph running away with the row. */

.piece-shot
{
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var( --piece-radius-media, 12px );
}

.piece-shot img
{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* a shot fills its column - in a narrow one it should not shrink to the
   picture's own width */
.piece-split > .element > .piece-shot
{
    width: 100%;
}

/* - */

/* copy beside a picture sits in the middle of it, not at the top */

.piece-split
{
    align-items: center;
}

@media( min-width: 768px )
{
    .piece-split-fill
    {
        align-items: stretch;
    }

    .piece-split-fill > .element.a4
    {
        align-self: center;
    }

    .piece-split-fill > .element:not( .a4 ),
    .piece-split-fill > .element:not( .a4 ) > .piece-media
    {
        display: grid;
    }

    .piece-shot-fill
    {
        position: relative;
        height: 100%;
        min-height: 280px;
        aspect-ratio: auto;
    }

    .piece-shot-fill img
    {
        position: absolute;
        inset: 0;
    }
}

/* - - - coloured sections meet flush - - - */

/* Each template's core.css spaces the page's sections with a grid gap
   ( 32px; Pigeon none ). Between a white section and anything else the
   gap is white on white and goes unseen, but between two sections that
   both carry their own colour or photograph - a tint beside a dark band,
   a photo band beside a cover - it showed as a white stripe. Those meet
   flush: the second is pulled up by the gap. --page-gap is the template's
   gap; a skin with a different one sets it. */

#page-content > section:is( .piece-band, .piece-band-tint, .piece-band-image, .piece-cover, .piece-cta-band, .piece-dark-alt ) + section:is( .piece-band, .piece-band-tint, .piece-band-image, .piece-cover, .piece-cta-band, .piece-dark-alt ),
#page-content > section.piece-dark-alt + section.piece-dark,
#page-content > section.piece-dark + section.piece-dark-alt
{
    margin-top: calc( var( --page-gap, 32px ) * -1 );
}

/* The same at the foot of a page. The page content keeps some space under
   its last section ( 32 to 75px, by template ) before the footer - unseen
   under a white section, but under a tint, a band or a photograph it was a
   white bar between that and the footer. A coloured last section runs
   straight into the footer instead. */

#page-content:has( > section:last-of-type:is( .piece-band, .piece-band-tint, .piece-band-image, .piece-cover, .piece-cta-band, .piece-dark-alt ) )
{
    padding-bottom: 0;
}

/* - - - a bullet list - - - */

/* Alchemy resets p and li margins, so a list needs its marker back. The
   marker is drawn here rather than by the browser so it takes the accent
   and lines up with wrapped lines. */

/* - the templates' own list: a div of paragraphs, <div class="list">,
     each a grid of two - the mark, then the words ( a line with bold and
     plain words keeps them in one <span> ). Each template's core.css sets
     the grid, the gap and the colour; the :where() rules here are only a
     fall-back for a template with no list of its own ( Pigeon ), weaker
     than any template rule. -

   The mark: the templates draw it as a Font Awesome character in
   ::before, but the sites load Font Awesome as SVG scripts, which leave
   ::before alone - so the mark only showed on a computer with the Font
   Awesome font installed. It is drawn here instead, the same light
   chevron, as a mask in the template's own colour, so it shows
   everywhere. */

:where( .list )
{
    display: grid;
    grid-gap: 8px;
    align-content: center;
}

:where( .list ) > p
{
    display: grid;
    grid-template-columns: max-content auto;
    align-content: center;
}

:where( .list ) > p::before
{
    color: var( --accent );
}

div.list > p::before
{
    content: "";
    align-self: start;
    width: 10px;
    height: 16px;
    margin: .3em 14px 0 0;
    padding: 0;

    font-size: 16px;
    border: none;

    background-color: currentColor;

    -webkit-mask: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M315.3 244.7c6.2 6.2 6.2 16.4 0 22.6l-208 208c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6L281.4 256 84.7 59.3c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0l208 208z'/%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 320 512'%3E%3Cpath d='M315.3 244.7c6.2 6.2 6.2 16.4 0 22.6l-208 208c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6L281.4 256 84.7 59.3c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0l208 208z'/%3E%3C/svg%3E" ) no-repeat center / contain;
}

/* on a band or a dark page the mark takes the accent as it reads on the dark */
:is( .piece-band, .piece-band-image, .piece-dark ) div.list > p::before
{
    color: var( --accent-dark );
}

/* - - - buttons - - - */

/* An <a>, never a <button> inside one. Two at most, side by side. */

.piece-btn
{
    display: grid;
    justify-self: start;
    padding: 14px 32px;

    background-color: var( --accent );
    border: solid 1px var( --accent );
    border-radius: var( --piece-radius-btn, 32px );
    text-decoration: none;

    transition: ease all .3s;
}

.piece-btn :is( h4, p, span )
{
    margin: 0;

    color: var( --on-accent );
    text-align: center;
}

.piece-btn:hover
{
    transform: translateY( -2px );
    box-shadow: 0 12px 24px -12px var( --shade-deep );
}

/* - */

.piece-btn-alt
{
    background-color: transparent;
}

.piece-btn-alt :is( h4, p, span )
{
    color: var( --accent-text );
}

/* - inside a band, the solid one turns white so it cannot vanish - */

:is( .piece-band, .piece-band-image, .piece-cover ) .piece-btn
{
    background-color: var( --paper );
    border-color: var( --paper );
}

:is( .piece-band, .piece-band-image, .piece-cover ) .piece-btn :is( h4, p, span )
{
    color: var( --ink );
}

:is( .piece-band, .piece-band-image, .piece-cover ) .piece-btn-alt
{
    background-color: transparent;
    border-color: var( --on-ink-muted );
}

:is( .piece-band, .piece-band-image, .piece-cover ) .piece-btn-alt :is( h4, p, span )
{
    color: var( --on-ink );
}

/* - */

.piece-btn-row
{
    display: grid;
    grid-gap: 16px;
    justify-content: start;
}

/* a row of buttons under a heading or text needs more than the 16px the
   grid gives everything else, or it reads as part of the line above */
* + .piece-btn-row
{
    margin-top: 12px;
}

.piece-centre .piece-btn-row,
.piece-centre .piece-btn
{
    justify-content: center;
    justify-self: center;
}

/* - - - a divider, for pages with no bands - - - */

/* - */

@media( min-width: 768px )
{
    .piece-btn-row
    {
        grid-auto-flow: column;
    }
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Set pieces - the designed layer */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* The pieces that make a page look designed rather than assembled:
   hierarchy ( eyebrow, display heading, lead ), framed imagery, numbers
   and steps, refined cards, option cards, a softer tinted band, photo
   covers and the call-to-action banner. */

/* - - - hierarchy - - - */

/* a short label over a heading - spaced capitals and a rule leading in */
.piece-eyebrow
{
    display: grid;
    grid-template-columns: 32px auto;
    grid-gap: 12px;
    align-items: center;
    justify-self: start;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var( --accent-text );
}

.piece-eyebrow::before
{
    content: "";
    height: 2px;

    background-color: var( --accent );
}

.piece-centre .piece-eyebrow,
.piece-intro .piece-eyebrow,
.piece-eyebrow.piece-centre
{
    justify-self: center;
}

/* - a heading that sets a section, larger and tighter than the
     template's default - */

.piece-display
{
    font-size: clamp( 32px, 4.2vw, 54px );
    line-height: 1.08;
    letter-spacing: -.02em;
}

h2.piece-display
{
    font-size: clamp( 28px, 3.4vw, 46px );
    line-height: 1.12;
}

/* one or two words of the heading picked out - the client's own words */
.piece-accent
{
    color: var( --accent );
}

/* long words in big, tracked headings wrap rather than overflow a phone */
.piece-display
{
    overflow-wrap: break-word;
}

/* a heading block for a section: eyebrow, heading, lead - centred and
   kept to a readable width */
.piece-intro
{
    display: grid;
    grid-gap: 16px;
    justify-items: center;
    justify-self: center;
    width: 100%;
    max-width: 760px;

    text-align: center;
}

.piece-intro :is( h1, h2, h3, p )
{
    justify-self: center;
    text-align: center;
}

/* - - - numbers and steps - - - */

/* figures the copy already states - years, jobs, rating */

:is( .piece-step-mark, .piece-stat-mark ) :is( i, svg )
{
    display: block;

    width: 34px;
    height: 34px;

    font-size: 34px;
}

/* - - - cards - - - */

/* The refined card: a hairline border, an accent bar that grows on
   hover, and a lift. Reads well on white and on the tinted band. */
.piece-card
{
    position: relative;
    display: grid;
    grid-gap: 12px;
    align-content: start;
    padding: 32px 28px;
    box-sizing: border-box;
    overflow: hidden;

    background-color: var( --paper );
    border: solid 1px var( --shade-light );
    border-radius: var( --piece-radius-card, 16px );
    box-shadow: 0 1px 2px var( --shade-faint );

    transition: ease all .3s;
}

.piece-card::before
{
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 48px;
    height: 4px;

    background-color: var( --accent );

    transition: ease all .3s;
}

.piece-card:hover
{
    transform: translateY( -6px );
    box-shadow: 0 24px 48px -24px var( --shade );
}

.piece-card:hover::before
{
    width: 100%;
}

.piece-card :is( h3, h4 )
{
    color: var( --ink );
}

.piece-card :is( p, li )
{
    color: var( --text-soft );
}

/* - - - more on the cards - - - */

/* The card family. Every card is the same HTML on every template; the
   skins give them the template's surface - its corners, border or
   shadow, tint or white, brackets or bars - by listing these classes
   with .piece-card in their card rules.

     service cards      .piece-card, with an icon, a price and a link
     price cards        .piece-option, with a price per period and ticks
     product cards      .piece-product
     info / stat cards  .piece-stats.piece-stats-cards
     team cards         .piece-member
     testimonial cards  .piece-testimonial
     category cards     .piece-category ( a link to another page )
     article cards      .piece-article ( a link to a post )

   See section 7 of assets/claude/page-rules.md for when each is used. */

/* - card titles: the heading font at its regular weight, whatever the
     template does with h3 - */

:is( .piece-card, .piece-option, .piece-product, .piece-member, .piece-category, .piece-article ) :is( h3, h4 )
{
    font-size: 20px;
    font-weight: var( --heading-regular, 600 );
    line-height: 1.3;
}

/* - the shared surface of the newer cards - */

:is( .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, :where( .piece-stats-cards ) > .piece-stat )
{
    position: relative;
    display: grid;
    align-content: start;
    box-sizing: border-box;
    overflow: hidden;

    text-align: left;
    text-decoration: none;

    background-color: var( --paper );
    border: solid 1px var( --shade-light );
    border-radius: var( --piece-radius-card, 16px );
    box-shadow: 0 1px 2px var( --shade-faint );

    transition: ease all .3s;
}

/* the ones that are links lift a little */
:is( a.piece-category, a.piece-article, .piece-product ):hover
{
    transform: translateY( -4px );
    box-shadow: 0 24px 48px -26px var( --shade );
}

:is( .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article ) :is( h3, h4 )
{
    margin: 0;

    color: var( --ink );
}

:is( .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article ) p
{
    margin: 0;

    color: var( --text-soft );
}

/* a picture across the top of a card, edge to edge */
:is( .piece-product, .piece-member, .piece-category, .piece-article ) > .piece-shot
{
    width: 100%;
    border-radius: 0;
}

/* - the small link at the foot of a card: spaced capitals and an arrow - */

.piece-card-link
{
    display: inline-grid;
    grid-auto-flow: column;
    grid-gap: 8px;
    align-items: center;
    justify-self: start;
    min-height: 24px;
    margin-top: 2px;
    padding: 4px 0;
    box-sizing: border-box;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var( --accent-text );
}

.piece-card-link::after
{
    content: "\2192";

    transition: ease transform .3s;
}

.piece-card-link:hover::after
{
    transform: translateX( 4px );
}

/* - - - service cards: icons, prices, links, dark and tinted - - - */

/* the icon: a small tile of the tint, top left - or riding the photo's
   lower edge on a picture card */
:is( .piece-card, :where( .piece-stats-cards ) > .piece-stat ) > :is( i, svg )
{
    justify-self: start;
    box-sizing: content-box;
    width: 26px;
    height: 26px;
    padding: 13px;

    font-size: 26px;
    color: var( --accent );

    background-color: var( --tint );
    border-radius: var( --piece-radius-icon, 50% );
}

/* - - - category cards - - - */

/* An overview that sends people on: each card a link to one of the
   site's own pages - a photo, an icon, the name, an optional count from
   the copy, and an arrow. */

:is( .piece-category-body, .piece-article-body )
{
    position: relative;
}

:is( .piece-category-body, .piece-article-body )::after
{
    content: "\2192";
    position: absolute;
    right: 20px;
    bottom: 16px;

    font-size: 18px;
    line-height: 1;
    color: var( --ink );

    transition: ease transform .3s;
}

:is( .piece-category, .piece-article ):hover :is( .piece-category-body, .piece-article-body )::after
{
    transform: translateX( 4px );
}

/* - - - the tinted band - - - */

/* A pale wash of the accent - for a section that wants separating
   without the weight of a dark band. Up to two of these a page. */
.piece-band-tint
{
    padding: 80px 0;

    background-color: var( --tint );
}

/* - - - lists - - - */

/* a two-column checklist for a run of short benefits */
.piece-checklist
{
    display: grid;
    grid-gap: 14px 32px;
    margin: 0;
    padding: 0;

    list-style: none;
}

.piece-checklist > :is( li, p )
{
    position: relative;
    display: block;
    min-height: 28px;
    padding-left: 40px;
}

/* centred text centres the checklist as a block - its items stay
   left-aligned, so the ticks line up down each column */
.piece-centre .piece-checklist
{
    justify-self: center;
    justify-content: center;
}

.piece-centre .piece-checklist > :is( li, p )
{
    justify-self: start;

    text-align: left;
}

/* in the padding, not a grid column - see .piece-list li::before */
.piece-checklist > :is( li, p )::before
{
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: var( --on-accent );

    background-color: var( --accent );
    border-radius: var( --piece-radius-icon, 50% );
}

/* - - - the ornament before the close - - - */

/* A short line, a small trade icon, a short line - a quiet full stop
   between two sections, always the one before the close. It has a
   section of its own:

     <section class="piece-divide">
         <div class="workspace">
             <div class="element piece-divider">
                 <i class="fa-light fa-border-all"></i>
             </div>
         </div>
     </section>

   The section takes a little space back from the sections either side,
   and sits exactly halfway between them. */
/* pulled in a little, so it sits closer to both neighbours */
.piece-divide .workspace
{
    margin-top: -16px;
    margin-bottom: -16px;
}

.piece-divider
{
    display: grid;
    grid-template-columns: minmax( 0, 1fr ) auto minmax( 0, 1fr );
    grid-gap: 24px;
    align-items: center;
    width: 100%;
    max-width: 760px;
    justify-self: center;

    color: var( --accent );
}

.piece-divider::before,
.piece-divider::after
{
    content: "";
    height: 2px;

    background-color: var( --accent );
}

.piece-divider :is( i, svg )
{
    font-size: var( --piece-mark, 34px );
    width: var( --piece-mark, 34px );
    height: var( --piece-mark, 34px );

    color: var( --accent );
}

/* a small version of the logo in the middle instead ( Finishing touches
   step ) - as it is, or masked so it takes the accent colour */
.piece-divider-mark
{
    display: block;
    height: var( --piece-mark, 34px );
    width: auto;
    max-width: 240px;
}

/* - the lines as set ( Finishing touches, or the divider's own attribute
     window ): how long each is, how thick, what colour - over whatever
     the template does with them - */
.piece-divider[ style*="--divider-len" ]
{
    grid-template-columns: var( --divider-len ) auto var( --divider-len ) !important;
    justify-content: center;
}

.piece-divider[ style*="--divider-thick" ]::before,
.piece-divider[ style*="--divider-thick" ]::after
{
    height: var( --divider-thick ) !important;
    border-width: 0 !important;
}

.piece-divider[ style*="--divider-mark" ] :is( i, svg ),
.piece-dark .piece-divider[ style*="--divider-mark" ] :is( i, svg )
{
    color: var( --divider-mark ) !important;
}

.piece-divider[ style*="--divider-colour" ]::before,
.piece-divider[ style*="--divider-colour" ]::after
{
    background: var( --divider-colour ) !important;
}

/* a second heading further down the same text column ( "Why choose us"
   under "Services" on a short page ) gets room above it */
.piece-split .element > :is( h2, h3 ).piece-display:not( :first-child )
{
    margin-top: 24px;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Dark pages */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* For a brand that is dark at heart - charcoal, black, slate, a deep
   navy logo on a dark template - every section of the page carries
   .piece-dark, alternating with .piece-dark .piece-dark-alt for rhythm.
   The pieces inside turn themselves over: light text, the accent as it
   shows on the dark, cards as faint panels, the featured option and the
   floating card in white so they still lift.

   When every section is dark ( a photo cover counts ), #page-content goes
   dark too, so the gaps the template leaves between sections do not show
   as white stripes. */

#page-content:has( > section.piece-dark ):not( :has( > section:not( .piece-dark, .piece-cover ) ) )
{
    background-color: var( --ink );
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Wider and narrower screens */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

@media( min-width: 768px )
{

    .piece-checklist
    {
        grid-template-columns: repeat( 2, 1fr );
    }

    .piece-centre .piece-checklist
    {
        grid-template-columns: repeat( 2, max-content );
    }
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Template parts */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* The testimonials section's tint: a fill laid over the background photo
   and under the reviews, covering everything the photo covers - both grid
   rows ( the reviews and the dots under them ) and the container's own
   padding.

   It is taken out of the grid and pinned to all four edges of the
   container, which becomes its positioning box. isolation gives the
   container a stacking context of its own, so z-index -1 puts the fill
   above the container's background ( the photo ) but below everything in
   it - the reviews, the arrows and the dots - whatever their own z-index.
   var( --ink ) at .7 keeps white text readable on any photo - the page
   builder's Testimonials panel can set its own strength, inline on the
   fill ( styleTestimonials() in site-style.php ). */

.testimonial-container
{
    position: relative;

    isolation: isolate;
}

.testimonial-fill
{
    position: absolute;

    z-index: -1;

    top: 0;

    right: 0;

    bottom: 0;

    left: 0;

    background-color: var( --ink );

    opacity: .7;

    pointer-events: none;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Contact pieces */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* The contact page's sections ( blueprint-blocks.js ): the details come
   from the Details step as keywords, the form is the templates' own,
   commented out until the contact form switch is on.

     .piece-contact-cards   the details as cards - each a .piece-card, so
                            every template's card look and icon carry
     .piece-contact-lines   the details as lines: icon, label, detail
     .piece-contact-pair    Details + form: the details beside the form,
                            or a feature of their own while it is off
     .piece-contact-bar     the contact block - the lines in a row

   Each skin adds its own touches below the pieces. */

/* - - - the lines - - - */

.piece-contact-lines
{
    display: grid;
    grid-gap: 20px;
    align-content: start;
}

.piece-contact-line
{
    display: grid;
    grid-template-columns: auto minmax( 0, 1fr );
    grid-gap: 16px;
    align-items: center;
}

/* the icon: a small tile of the tint, like the cards' */
.piece-contact-line > :is( i, svg )
{
    box-sizing: content-box;
    width: 20px;
    height: 20px;
    padding: 12px;

    font-size: 20px;
    color: var( --accent );

    background-color: var( --tint );
    border-radius: var( --piece-radius-icon, 50% );
}

.piece-contact-line-words
{
    display: grid;
    grid-gap: 2px;
}

.piece-contact-line-words b
{
    font-size: 13px;
    font-weight: var( --heading-strong, 700 );
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var( --text-muted );
}

.piece-contact-line-words :is( a, span )
{
    font-size: 18px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    color: var( --ink );
    text-decoration: none;
}

.piece-contact-line-words a:hover
{
    color: var( --accent-text );
}

/* a panel of the lines - Contact details beside the words, and Details +
   form while its form is off - a card of its own */
.piece-contact-panel
{
    padding: 32px;
    box-sizing: border-box;

    background-color: var( --paper );
    border: solid 1px var( --shade-light );
    border-radius: var( --piece-radius-card, 16px );
    box-shadow: 0 24px 48px -28px var( --shade );
}

.piece-contact-copy
{
    display: grid;
    grid-gap: 16px;
    align-content: start;
}

/* - - - details + form - - - */

.piece-contact-side
{
    display: grid;
    grid-gap: 32px;
    align-content: start;
}

.piece-contact-form
{
    display: grid;
    grid-gap: 8px;
    align-content: start;
    padding: 32px;
    box-sizing: border-box;

    background-color: var( --paper );
    border: solid 1px var( --shade-light );
    border-radius: var( --piece-radius-card, 16px );
    box-shadow: 0 24px 48px -28px var( --shade );
}

.piece-contact-form h3
{
    color: var( --ink );
}

/* the templates' form, tidied into the piece - form-css.css underneath */
.piece-contact-form #contact
{
    width: 100%;
    padding-top: 0;
}

.piece-contact-form #contact :is( input, textarea )
{
    width: 100%;
    padding: 12px 20px;
    box-sizing: border-box;

    font-family: inherit;
    font-size: 16px;
    color: var( --ink );

    background-color: var( --paper );
    border: solid 1px var( --tint-line );
    border-radius: min( var( --piece-radius-btn, 8px ), 24px );
}

.piece-contact-form #contact :is( input, textarea ):focus
{
    outline: none;
    border-color: var( --accent );
    box-shadow: 0 0 0 3px color-mix( in srgb, var( --accent ) 22%, transparent );
}

/* the message box is tall: a template's pill rounding would cut its
   corners and the words in them, so it keeps a gentler curve and room
   inside it */
.piece-contact-form #contact #form-message
{
    height: 140px;
    padding: 14px 18px;

    border-radius: min( var( --piece-radius-btn, 8px ), 16px );
}

.piece-contact-form #contact label
{
    justify-self: start;
    color: var( --text-soft );
}

/* the send button is the site's own .piece-btn - the skin draws it as it
   draws every other button. A page built before has the old one
   ( #contact-submit ), drawn as before. */
.piece-contact-form #contact .piece-form-submit
{
    justify-self: start;

    cursor: pointer;
}

/* a <button> takes the browser's font - the page's instead, below the
   skin's own button rules */
:where( .piece-contact-form ) .piece-form-submit
{
    font: inherit;
    letter-spacing: inherit;
}

.piece-contact-form #contact .piece-form-submit:disabled
{
    opacity: .45;
    cursor: not-allowed;
}

@media( min-width: 992px )
{
    /* the form beside the details */
    .piece-contact-pair:has( > .piece-contact-form )
    {
        grid-template-columns: minmax( 0, 5fr ) minmax( 0, 7fr );
        grid-gap: 64px;
        align-items: start;
    }
}

/* With the form on, the details are plain lines beside it - the panel
   they sit on while the form is off ( a feature by themselves ) goes */
.piece-contact-pair:has( > .piece-contact-form ) .piece-contact-panel
{
    padding: 0;

    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.piece-contact-pair:has( > .piece-contact-form ) .piece-contact-panel::after
{
    display: none;
}

@media( min-width: 768px )
{
    .piece-contact-pair:not( :has( > .piece-contact-form ) ) > .piece-contact-side
    {
        grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1fr );
        grid-gap: 64px;
        align-items: center;
    }
}

/* - - - the socials: a row of round marks under the details - - - */

.piece-contact-socials
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.piece-contact-socials.piece-centre
{
    justify-content: center;
    margin-top: 0;
}

.piece-contact-copy > .piece-contact-socials
{
    margin-top: 8px;
}

.piece-contact-social
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    box-sizing: border-box;

    font-size: 18px;
    color: var( --accent );
    text-decoration: none;

    background-color: var( --tint );
    border-radius: var( --piece-radius-icon, 50% );

    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.piece-contact-social:hover,
.piece-contact-social:focus-visible
{
    color: var( --on-accent );
    background-color: var( --accent );
    transform: translateY( -2px );
}

/* - - - on the dark, and on a dark band - - - */

:is( .piece-dark, .piece-band, .piece-band-image ) .piece-contact-social
{
    color: var( --accent-dark );
    background-color: var( --glow-faint );
}

:is( .piece-dark, .piece-band, .piece-band-image ) .piece-contact-social:is( :hover, :focus-visible )
{
    color: var( --on-accent-dark );
    background-color: var( --accent-dark );
}

:is( .piece-dark, .piece-band, .piece-band-image ) .piece-contact-line-words b
{
    color: var( --on-ink-muted );
}

:is( .piece-dark, .piece-band, .piece-band-image ) .piece-contact-line-words :is( a, span )
{
    color: var( --on-ink );
}

:is( .piece-dark, .piece-band, .piece-band-image ) .piece-contact-line > :is( i, svg )
{
    color: var( --accent-dark );
    background-color: var( --glow-faint );
}

:is( .piece-dark, .piece-band, .piece-band-image ) .piece-contact-panel
{
    background-color: var( --glow-faint );
    border-color: var( --glow-line );
    box-shadow: none;
}

/* the form stays a light panel, so its fields read */
:is( .piece-dark, .piece-band, .piece-band-image ) .piece-contact-form :is( h3, p, label )
{
    color: var( --ink );
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* More set pieces: the pull quote, the icon row, the number feature,
   questions and the picture pair */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Each is built from words the copy already has ( blueprint-blocks.js ),
   for the moments a page would otherwise be one more picture beside
   text. The same HTML on every template; the skins' radii, heading
   weights and the palette's roles give each its template's feel. */

/* - - - a pull quote: one strong line of the copy, large - - - */

.piece-pull
{
    display: grid;
    grid-gap: 18px;
    justify-items: center;
    width: 100%;
    max-width: 860px;
    justify-self: center;

    text-align: center;
}

.piece-pull-mark
{
    color: var( --accent );
}

.piece-pull-mark :is( i, svg )
{
    display: block;

    width: 40px;
    height: 40px;

    font-size: 40px;
    line-height: 1;
}

.piece-pull .piece-pull-line
{
    font-size: clamp( 24px, 3vw, 38px );
    font-weight: var( --heading-regular, 400 );
    font-style: var( --heading-italic, italic );
    line-height: 1.3;
    letter-spacing: -.01em;
    text-wrap: balance;
    color: var( --text );
}

.piece-pull > p
{
    justify-self: center;

    text-align: center;
}

/* - quote marks: the opening one at the line's top left, the closing one
     at its bottom right, the line between them - */

.piece-pull-quote
{
    position: relative;

    /* as wide as the line, so the marks sit at its corners */
    width: fit-content;
    max-width: 100%;
    padding: 26px 44px;
    box-sizing: border-box;
}

.piece-pull-quote > .piece-pull-line
{
    text-align: center;

    /* the words fill the box the marks sit at the corners of - balanced,
       the lines came out narrower than it, leaving the marks adrift */
    text-wrap: pretty;
}

.piece-pull-open,
.piece-pull-close
{
    position: absolute;
    line-height: 1;
}

.piece-pull-open
{
    top: 0;
    left: 0;
}

.piece-pull-close
{
    right: 0;
    bottom: 0;
}

.piece-pull-quoted .piece-pull-mark :is( i, svg )
{
    width: 28px;
    height: 28px;

    font-size: 28px;
    opacity: .85;
}

@media( min-width: 768px )
{
    .piece-pull-quote
    {
        padding: 30px 60px;
    }

    .piece-pull-quoted .piece-pull-mark :is( i, svg )
    {
        width: 38px;
        height: 38px;

        font-size: 38px;
    }
}

.piece-pull .piece-pull-cite
{
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var( --accent-text );
}

/* on a band the accent can be the band's own colour - the mark, the
   rule and the cite go white */
:is( .piece-band, .piece-band-image ) .piece-pull-mark,
:is( .piece-band, .piece-band-image ) .piece-pull .piece-pull-cite
{
    color: var( --on-ink-soft );
}

/* - - - how many to a row: the page builder's Per row on the grids the
     stylesheet lays out by itself ( steps, figures, featured services ) -
     two a row on a tablet, the number chosen on a wide screen; a phone
     keeps each grid's own - - - */

@media( min-width: 600px )
{
    #page-content :is( .piece-per-2, .piece-per-3, .piece-per-4, .piece-per-5 )
    {
        grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
        max-width: none;
    }
}

/* - - - a number feature: one big figure beside its words - - - */

.piece-number
{
    display: grid;
    grid-gap: 8px;
    justify-items: center;
    align-content: center;
    padding: 40px 24px;
    box-sizing: border-box;

    text-align: center;

    background-color: var( --tint );
    border-radius: var( --piece-radius-card, 16px );
}

.piece-number b
{
    font-size: clamp( 72px, 10vw, 132px );
    font-weight: var( --heading-strong, 700 );
    line-height: .95;
    letter-spacing: -.04em;
    color: var( --accent );
}

.piece-number p
{
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var( --text-soft );
}

.piece-band-tint .piece-number
{
    background-color: var( --paper );
}

@media( min-width: 768px )
{
    .piece-number
    {
        min-width: 260px;
        padding: 56px 40px;
    }
}

/* - - - the gallery section's viewer - - - */

/* The gallery is a page builder section, so its viewer
   ( #preview-container ) now sits inside #page-content, where the
   gallery pages had it just outside. A template that layers
   #page-content ( Fish: z-index 6 ) would keep the viewer under its
   own fixed bars - so while the viewer is open, the content is lifted
   over them. */
#page-content:has( #preview-container:not( .hide ) )
{
    z-index: 1000;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* The footer's Privacy Policy link */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Every template prints it after the copyright line ( switched off in
   Site style on the Details step, it is commented out ). Kept whole on a
   phone, and
   underlined, so it reads as a link even where it shares the line's
   colour. */
/* !important, as each footer styles its links by id ( #bottom-bar a ) */
a[ href="gdpr.php" ]
{
    white-space: nowrap !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px;
}

a[ href="gdpr.php" ]:hover
{
    text-decoration-thickness: 2px !important;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Section trims */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* A shaped edge on a section's top or bottom, from the page builder's
   Trim fold: a strip just outside the section, in the section's own
   colour, cut to the trim's shape by its SVG ( a mask - the black parts
   show ). It lies over the edge of the section next to it, so the two
   meet in a wave, a torn edge or a brush stroke instead of a straight
   line. A white section's trim is the page's own colour ( --trim-page,
   set by a skin whose page is not white ). */

@media( min-width: 768px )
{
    :root
    {
        --trim-room-s: 32px;
        --trim-room-m: 56px;
        --trim-room-l: 88px;
    }
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Fluid page width */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* The templates give each section a middle column exactly as wide as the
   breakpoint - auto 1200px auto from 1200px up. A media query counts the
   scrollbar and the page does not, so with a scrollbar showing ( Windows,
   or a Mac with a mouse ) the page was some 15px too wide just above each
   breakpoint - 768-782, 992-1006, 1200-1214px - and scrolled sideways.
   The column is never wider than the screen now, and exactly as before
   wherever there is room. Each template's skin does the same for the
   other parts it fixes at those widths ( its nav, top bar, rules ). */

@media( min-width: 768px )
{
    section
    {
        grid-template-columns: auto min( 768px, 100% ) auto;
    }
}

@media( min-width: 992px )
{
    section
    {
        grid-template-columns: auto min( 992px, 100% ) auto;
    }
}

@media( min-width: 1200px )
{
    section
    {
        grid-template-columns: auto min( 1200px, 100% ) auto;
    }
}

/* - a small phone: a long word or address ( the privacy policy's
     tables, an email address anywhere ) breaks rather than push the page
     sideways - */

@media( max-width: 767px )
{
    #page-content p,
    #page-content li,
    #page-content td,
    #page-content th,
    a[ href^="mailto:" ]
    {
        overflow-wrap: anywhere;
    }
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Where the keyboard is */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Every link, button and question shows a clear ring when it is reached
   with the keyboard - in the page, the header and the footer alike, on
   any template, skin or look. currentColor, so it shows on whatever the
   colours are; a mouse click never shows it. */

:is( a, button, summary, [ tabindex ] ):focus-visible
{
    outline: solid 2px currentColor;
    outline-offset: 3px;
}

#page-content :is( a, summary, button ):focus-visible
{
    outline-color: var( --accent );
}

#page-content :is( .piece-dark, .piece-band, .piece-band-image, .piece-cover, .piece-cta-band ) :is( a, summary, button ):focus-visible
{
    outline-color: var( --accent-dark );
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Fonts - Adobe Fonts: hwt-republic-gothic-solid headings; H1 in the heading font ( hwt-republic-gothic-solid ), in capitals, H2 in capitals, H3 in futura-pt ( Adobe Fonts ), in capitals, H4 in futura-pt ( Adobe Fonts ), in capitals, links in futura-pt ( Adobe Fonts ), in capitals ( the Font choice step ) */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* served by Adobe Fonts - the project's stylesheet is linked in the
   head of every page */

html body :is( h1, h2, h3 ),
html body .piece-stat b,
html body .piece-float b,
html body .piece-feature-cost
{
    font-family: "hwt-republic-gothic-solid", sans-serif;
    font-weight: 400;
    letter-spacing: 0;
}

/* the family only - the skin's heading style sets the weight, case
   and tracking of display headings */
.piece-display
{
    font-family: "hwt-republic-gothic-solid", sans-serif;
}

/* each kind of text, as the Fonts step set it */

html body h1,
html body h1.piece-display
{
    font-family: "hwt-republic-gothic-solid", sans-serif !important;
    text-transform: uppercase !important;
}

html body h2,
html body h2.piece-display
{
    text-transform: uppercase !important;
}

html body h3,
html body h3.piece-display
{
    font-family: "futura-pt", sans-serif !important;
    text-transform: uppercase !important;
}

html body h4
{
    font-family: "futura-pt", sans-serif !important;
    text-transform: uppercase !important;
}

html body a,
html body a :not( i, svg, svg *, [class*="fa-"] )
{
    font-family: "futura-pt", sans-serif !important;
    text-transform: uppercase !important;
}


/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Skin - Temp 4: flat and blocky */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Square, flat and solid, like the colour nav bar and its square active
   tab: no rounding, no shadows, no lift. Cards are flat tint blocks with
   a full-width accent bar; eyebrows are square tabs; icons sit in solid
   accent squares; featured prices sit on a solid accent strip.

   Heading weights the template doesn't load itself - the build links
   them:

   @fonts Montserrat:wght@300;400;600;700;800 */

/* - flat tint blocks with a full accent bar - */

:is( .piece-card, .piece-contact-panel, .piece-contact-form, .piece-step, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, :where( .piece-stats-cards ) > .piece-stat )
{
    background-color: var( --tint );
    border-color: transparent;
    box-shadow: none;
}

:is( .piece-card, .piece-contact-panel, .piece-contact-form, .piece-step, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, :where( .piece-stats-cards ) > .piece-stat, .piece-feature ):hover
{
    transform: none;
    box-shadow: none;
}

.piece-card::before
{
    width: 100%;
}

/* - eyebrows as the nav's square tab: words on the secondary colour
     ( --colour2 ) - every page carries them on this template ( eyebrows:
     every page ) - */

.piece-eyebrow
{
    grid-template-columns: auto;
    padding: 6px 12px;

    color: var( --on-colour2 );

    background-color: var( --colour2 );
}

/* on the dark, the secondary lifted with a little white, so it shows */
:is( .piece-dark, .piece-band, .piece-band-image ) p.piece-eyebrow
{
    color: var( --on-ink );

    background-color: color-mix( in srgb, var( --colour2 ) 65%, #fff );
}

.piece-eyebrow::before
{
    display: none;
}

/* - icons in solid accent squares - */

:is( .piece-menu-head, .piece-feature, .piece-card, .piece-contact-line, :where( .piece-stats-cards ) > .piece-stat ) > :is( i, svg )
{
    color: var( --on-accent );
    background-color: var( --accent );
    border-color: var( --accent );
}

:is( .piece-price-head, .piece-menu-head )::after
{
    height: 3px;
    opacity: 1;
}

.piece-checklist > :is( li, p )::before
{
    border-radius: 0;
}

/* on the tinted band the tint cards would vanish - they go white */
.piece-band-tint :is( .piece-card, .piece-contact-panel, .piece-contact-form, .piece-step, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, :where( .piece-stats-cards ) > .piece-stat, .piece-feature )
{
    background-color: var( --paper );
}

/* - - - headings: the block and bar - - - */

/* Heavy, tight and square-shouldered, with a solid bar down the left of
   every left-hand heading ( "| Your Vision, / Our Expertise" ). Over a
   centred heading the bar turns into a short solid block under it, like
   the nav's square tab. The opening heading group carries the bar instead
   of its underline.

   The heading is all the brand's primary colour ( --colour1 ) - one
   colour, not a mix: picked-out words and the second half take it too -
   and the bar and the block are the secondary ( --colour2 ), like the
   eyebrow's tab. On the dark both are lifted with a little white. */

.piece-display
{
    font-weight: var( --heading-strong );
    line-height: 1.06;
    letter-spacing: -.02em;
    color: var( --colour1 );
}

/* one colour: the words picked out, or the second half, as the rest -
   weighted to match the shared dark-page rule, which it follows */
:is( h1, h2, h3 ).piece-display :is( .piece-accent, .piece-second )
{
    color: inherit;
}

.piece-display,
.piece-heading
{
    padding-left: 22px;

    border-left: solid 6px var( --colour2 );
}

.piece-heading
{
    padding-bottom: 0;

    border-bottom: none;
}

:is( .piece-heading, .piece-intro, .piece-centre, .piece-close, .piece-cover, .piece-cta-panel ) .piece-display,
.piece-centre.piece-heading,
.piece-centre .piece-heading
{
    padding-left: 0;

    border-left: none;
}

:is( .piece-intro, .piece-close .piece-narrow ) > .piece-display::after
{
    content: "";
    display: block;
    width: 48px;
    height: 6px;
    margin: 22px auto 0;

    background-color: var( --colour2 );
}

.piece-heading h3
{
    font-size: 14px;
    font-weight: var( --heading-strong );
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var( --colour1 );
}

/* on a dark page or band: the same two colours, lifted so they show */
:is( .piece-dark, .piece-band ) .piece-display,
:is( .piece-dark, .piece-band ) .piece-heading h3
{
    color: color-mix( in srgb, var( --colour1 ) 65%, #fff );
}

:is( .piece-dark, .piece-band ) :is( .piece-display, .piece-heading )
{
    border-left-color: color-mix( in srgb, var( --colour2 ) 65%, #fff );
}

:is( .piece-dark, .piece-band ) :is( .piece-intro, .piece-close .piece-narrow ) > .piece-display::after
{
    background-color: color-mix( in srgb, var( --colour2 ) 65%, #fff );
}

/* - - - cards: flat and blocky - - - */

/* Square accent tags, and links underlined with a solid accent bar. */

.piece-card-link
{
    padding-bottom: 4px;

    border-bottom: solid 2px var( --accent );
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Temp 4, through every section */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* The template's own touches, carried into the newer pieces:

     the active tab      the nav's solid square tab - the steps are
                         numbered on a solid accent block, and the quote
                         marks of the pull quote and the reviews sit in
                         solid accent squares
     the footer's icons  outlined squares - round the icon row's marks
     the solid bar       the 4px accent rule along the action banner and
                         the footer - over the figures and the questions,
                         and under the floating card */

/* - - - the active tab - - - */

.piece-pull-quoted .piece-pull-mark
{
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;

    color: var( --on-accent );

    background-color: var( --accent );
}

.piece-pull-quoted .piece-pull-mark :is( i, svg )
{
    width: 20px;
    height: 20px;

    font-size: 20px;
    opacity: 1;
}

.piece-pull-quote
{
    padding: 34px 64px;
}

.piece-pull .piece-pull-line
{
    font-weight: var( --heading-strong );
    font-style: normal;
}

/* - - - the solid bar - - - */

/* a phone: the quote with less room inside */
@media( max-width: 599px )
{
    .piece-pull-quote
    {
        padding: 56px 20px;
    }
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* The buttons - Temp 4: the rising bar */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* After the 4px bars along the banner and the footer: a square block of
   the brand's secondary colour ( --colour2 - so a site only shows colours
   that were chosen ) with a solid bar of the dark along its foot. Under
   the pointer the bar rises to fill the button; pressed, it sinks a
   touch. On the dark the bar is white. The outline partner is a 2px line
   with the same bar. */

/* One set of rules paints every button in the page - in every section,
   the price cards, the banner and the close - and each place only says
   which colours to use:

     --b-fill / --b-on     the solid button and its words
     --b-line / --b-text   the outline button's line and words
     --b-hov / --b-on-hov  what it turns to under the pointer
     --b-plain             words that stand on the section itself
     --b-ground            the section's own colour, behind them

   Scoped to #page-content, so it outranks the shared per-section button
   rules without a pile of !importants. The second of a pair
   ( .piece-btn-alt ) and the price cards' own buttons, except the
   featured card's, take the outline. */

#page-content .piece-btn
{
    --b-fill: var( --colour2 );
    --b-on: var( --on-colour2 );
    --b-line: var( --colour2 );
    --b-text: #6f6f6f;
    --b-hov: var( --ink );
    --b-on-hov: var( --on-ink );
    --b-plain: var( --ink );
    --b-ground: var( --paper );
}

/* on the dark, a band, a photo, the featured price card */
#page-content :is( .piece-dark, .piece-band, .piece-band-image, .piece-cover, .piece-option-featured ) .piece-btn
{
    --b-fill: var( --colour2 );
    --b-on: var( --on-colour2 );
    --b-line: var( --glow-edge );
    --b-text: var( --on-ink );
    --b-hov: var( --paper );
    --b-on-hov: var( --ink );
    --b-plain: var( --on-ink );
    --b-ground: var( --ink );
}

/* the shared rules' text arrow - the button draws its own here, or none */
#page-content .piece-btn :is( h4, span )::after
{
    content: none;
}

#page-content .piece-btn
{
    display: inline-grid;
    place-items: center;
    padding: 15px 28px 17px;

    background-color: var( --b-fill );
    border: none;
    border-radius: 0;
    box-shadow: inset 0 -4px 0 var( --b-hov );
    transform: none;

    transition: box-shadow .35s cubic-bezier( .6, 0, .2, 1 ), transform .1s ease;
}

#page-content .piece-btn :is( h4, p, span )
{
    margin: 0;

    font-size: 13px;
    font-weight: var( --heading-strong, 700 );
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var( --b-on );

    transition: color .3s ease;
}

#page-content .piece-btn:is( :hover, :focus-visible )
{
    box-shadow: inset 0 -80px 0 var( --b-hov );
}

#page-content .piece-btn:is( :hover, :focus-visible ) :is( h4, p, span )
{
    color: var( --b-on-hov );
}

#page-content .piece-btn:active
{
    transform: translateY( 2px );
}

#page-content :is( .piece-btn-alt, .piece-option:not( .piece-option-featured ) > .piece-btn )
{
    background-color: transparent;
    box-shadow: inset 0 0 0 2px var( --b-line ), inset 0 -4px 0 var( --b-line );
}

#page-content :is( .piece-btn-alt, .piece-option:not( .piece-option-featured ) > .piece-btn ) :is( h4, p, span )
{
    color: var( --b-text );
}

#page-content :is( .piece-btn-alt, .piece-option:not( .piece-option-featured ) > .piece-btn ):is( :hover, :focus-visible )
{
    box-shadow: inset 0 0 0 2px var( --b-hov ), inset 0 -80px 0 var( --b-hov );
}

#page-content :is( .piece-btn-alt, .piece-option:not( .piece-option-featured ) > .piece-btn ):is( :hover, :focus-visible ) :is( h4, p, span )
{
    color: var( --b-on-hov );
}

@media( prefers-reduced-motion: reduce )
{
    #page-content .piece-btn,
    #page-content .piece-btn :is( h4, p, span )
    {
        transition-duration: .01s;
        animation: none;
    }
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Fluid page width - Temp 4 */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* custom.css keeps the sections from growing wider than the screen when
   a scrollbar shows; these are the other parts this template fixes at
   the breakpoints' widths, given the same treatment. */

@media( min-width: 768px )
{
    #nav
    {
        grid-template-columns: auto min( 768px, 100% ) auto;
    }

    hr
    {
        width: min( 750px, 100% );
    }

    .slide-txt
    {
        width: min( 750px, 100% );
    }
}

@media( min-width: 992px )
{
    #nav
    {
        grid-template-columns: auto min( 992px, 100% ) auto;
    }

    #header
    {
        grid-template-columns: auto min( 950px, 100% ) auto;
    }

    hr
    {
        width: min( 950px, 100% );
    }

    .slide-txt
    {
        width: min( 950px, 100% );
    }
}

@media( min-width: 1200px )
{
    #nav
    {
        grid-template-columns: auto min( 1200px, 100% ) auto;
    }

    #header
    {
        grid-template-columns: auto min( 1200px, 100% ) auto;
    }

    hr
    {
        width: min( 1200px, 100% );
    }

    .slide-txt
    {
        width: min( 1200px, 100% );
    }
}

@media( min-width: 1600px )
{
    #nav
    {
        grid-template-columns: auto min( 1500px, 100% ) auto;
    }
}

/* - the menu, between 992 and 1260px: six pages were wider than the
     screen there ( with a scrollbar, just past 1200px too ); a little
     less space between the links lets them fit - */

@media( min-width: 992px ) and ( max-width: 1259px )
{
    #nav-links
    {
        grid-gap: 8px;
    }

    #nav-links a
    {
        padding: 8px 10px;
        letter-spacing: 1px;
    }
}


/* - a small phone with a scrollbar ( a narrow desktop window ): the logo,
     320px at most, is never wider than the screen either - */

@media( max-width: 600px )
{
    #logo
    {
        max-width: min( 320px, 100% );
    }
}

/* - the header's phone and email: on a desktop the pair sits at the
     right of the header ( core.css ), and each line lines up on the
     right too, rather than centring one under the other - */

@media( min-width: 992px )
{
    #header .contact-details a
    {
        justify-self: end;
    }
}


/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* The banner's buttons - Temp 4 */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* The slider's two buttons drawn as the page's own ( skins/temp-4.css,
   "The buttons" ): the rising bar - the second, "Contact us", as the
   outline. */

html body .slide-btns .btn:not( #_ )
{
    --b-fill: var( --colour2 );
    --b-on: var( --on-colour2 );
    --b-line: var( --glow-edge );
    --b-text: var( --on-ink );
    --b-hov: var( --paper );
    --b-on-hov: var( --ink );
    --b-plain: var( --on-ink );
    --b-ground: var( --ink );
}

html body .slide-btns .btn:not( #_ )
{
    margin: 0;
    text-decoration: none;
    background-image: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    filter: none;
    width: auto;
    min-height: 44px;
    box-sizing: border-box;
}

html body .slide-btns .btn:not( #_ ) :is( h4, p, span )
{
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
    grid-row: auto;
    box-shadow: none;
    line-height: 1.2;
}

html body .slide-btns .btn:not( #_ )::before,
html body .slide-btns .btn:not( #_ )::after
{
    content: none;
}

html body .slide-btns .btn:not( #_ )
{
    display: inline-grid;
    place-items: center;
    padding: 15px 28px 17px;

    background-color: var( --b-fill );
    border: none;
    border-radius: 0;
    box-shadow: inset 0 -4px 0 var( --b-hov );
    transform: none;

    transition: box-shadow .35s cubic-bezier( .6, 0, .2, 1 ), transform .1s ease;
}

html body .slide-btns .btn:not( #_ ) :is( h4, p, span )
{
    margin: 0;

    font-size: 13px;
    font-weight: var( --heading-strong, 700 );
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var( --b-on );

    transition: color .3s ease;
}

html body .slide-btns .btn:not( #_ ):is( :hover, :focus-visible )
{
    box-shadow: inset 0 -80px 0 var( --b-hov );
}

html body .slide-btns .btn:not( #_ ):is( :hover, :focus-visible ) :is( h4, p, span )
{
    color: var( --b-on-hov );
}

html body .slide-btns .btn:not( #_ ):active
{
    transform: translateY( 2px );
}

html body .slide-btns .btn + .btn:not( #_ )
{
    background-color: transparent;
    box-shadow: inset 0 0 0 2px var( --b-line ), inset 0 -4px 0 var( --b-line );
}

html body .slide-btns .btn + .btn:not( #_ ) :is( h4, p, span )
{
    color: var( --b-text );
}

html body .slide-btns .btn + .btn:not( #_ ):is( :hover, :focus-visible )
{
    box-shadow: inset 0 0 0 2px var( --b-hov ), inset 0 -80px 0 var( --b-hov );
}

html body .slide-btns .btn + .btn:not( #_ ):is( :hover, :focus-visible ) :is( h4, p, span )
{
    color: var( --b-on-hov );
}


@media( prefers-reduced-motion: reduce )
{
    html body .slide-btns .btn:not( #_ ),
    html body .slide-btns .btn:not( #_ ) :is( h4, p, span )
    {
        transition-duration: .01s;
        animation: none;
    }
}


/* The footer - the page builder's Footer panel */

html body #bottom-bar { background-color: #222222 !important; }

html body #bottom-bar, html body #bottom-bar :is( p, a, span ) { color: #ffffff !important; }

/* The top bar - the page builder's Top bar panel */

html body #header, html body #header > * { background-color: #222222 !important; background-image: none !important; }

/* The nav - the page builder's Nav panel */

html body #nav #nav-links a { font-family: "hwt-republic-gothic-solid", sans-serif !important; }

/* The heroes - the page builder's Hero panel */

#slide-container { background-color: #222222 !important; background-image: none !important; }

html body .slide-txt h2, html body .hero-wrap .hero-wrap-heading { color: #ffffff !important; }

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* One-off tweaks for this site go below */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */


/* - - - a picture framed by hand ( the page builder's Picture panel ) - - -

   Its anchor and zoom are on the <img> itself ( object-position, and a
   scale round the same point ); zoomed in, whatever holds it keeps the
   picture inside its own edges. */

*:has( > img[data-zoomed] )
{
    overflow: hidden;
}

/* - - - what a section's cards do on hover ( the page builder's
     "Cards on hover" ) - - -

   Each subtle, each the same on every template - and winning over the
   template's and the skin's own hover, which a section left alone keeps.
   Anyone whose device asks for less motion gets none. */

#page-content section[class*="piece-hover-"] :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat )
{
    transition: transform .4s cubic-bezier( .2, .7, .2, 1 ), box-shadow .4s ease;
}

#page-content section.piece-hover-none :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat ):hover,
#page-content section:is( .piece-hover-photo, .piece-hover-ring ) :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat ):hover
{
    transform: none;
}

/* staying still: the shadow the template's own hover adds stays off too -
   each card keeps the one it has at rest */
#page-content section.piece-hover-none :is( .piece-option, .piece-product, a.piece-category, a.piece-article ):hover
{
    box-shadow: none;
}

#page-content section.piece-hover-none .piece-card:hover
{
    box-shadow: 0 1px 2px var( --shade-faint );
}

#page-content section.piece-hover-rise :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat ):hover
{
    transform: translateY( -6px );
}

#page-content section.piece-hover-grow :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat ):hover
{
    transform: scale( 1.03 );
}

#page-content section.piece-hover-float :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat ):hover
{
    transform: translateY( -6px );
    box-shadow: 0 24px 44px -20px color-mix( in srgb, var( --ink, #000 ) 38%, transparent );
}

/* the picture inside zooms, its frame stays put */
#page-content section.piece-hover-photo :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item ) .piece-shot img
{
    transition: transform .6s cubic-bezier( .2, .7, .2, 1 );
}

#page-content section.piece-hover-photo :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item ):hover .piece-shot img
{
    transform: scale( 1.06 );
}

#page-content section.piece-hover-ring :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat ):hover
{
    box-shadow: 0 0 0 2px var( --accent );
}

@media( prefers-reduced-motion: reduce )
{
    #page-content section[class*="piece-hover-"] :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat ),
    #page-content section.piece-hover-photo .piece-shot img
    {
        transition: none;
    }

    #page-content section:is( .piece-hover-rise, .piece-hover-grow, .piece-hover-float ) :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat ):hover,
    #page-content section.piece-hover-photo .piece-shot img
    {
        transform: none;
    }
}

/* - - - a section's cards in colours of their own ( the page builder's
     Card background, headings, text, icons, border, shadow ) - - -

   Set as --card-… variables on the section; each rule only where its
   variable is set, so whatever is left alone stays the template's. The
   featured price card keeps its own dark look. */

#page-content section[style*="--card-bg"] :is( .piece-card, .piece-feature, .piece-option:not( .piece-option-featured ), .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-note, :where( .piece-stats-cards ) > .piece-stat )
{
    background-color: var( --card-bg ) !important;
    background-image: none !important;
}

#page-content section[style*="--card-head"] :is( .piece-card, .piece-feature, .piece-option:not( .piece-option-featured ), .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-note, :where( .piece-stats-cards ) > .piece-stat ) :is( h2, h3, h4, h5, .piece-option-price, .piece-option-price *, .piece-stat > b, .piece-feature-cost )
{
    color: var( --card-head ) !important;
}

#page-content section[style*="--card-text"] :is( .piece-card, .piece-feature, .piece-option:not( .piece-option-featured ), .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-note, :where( .piece-stats-cards ) > .piece-stat ) :is( p, li, dd, blockquote, .piece-stat-note )
{
    color: var( --card-text ) !important;
}

#page-content section[style*="--card-icon"] :is( .piece-card, .piece-feature, .piece-option:not( .piece-option-featured ), .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-note, :where( .piece-stats-cards ) > .piece-stat ) :is( i, svg.svg-inline--fa, svg.piece-decal, .piece-stat-mark, .piece-step-num, .piece-card-mark )
{
    color: var( --card-icon ) !important;
}

#page-content section[style*="--card-line"] :is( .piece-card, .piece-feature, .piece-option:not( .piece-option-featured ), .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-note, :where( .piece-stats-cards ) > .piece-stat )
{
    border: solid 1px var( --card-line ) !important;
}

#page-content section[style*="--card-shadow"] :is( .piece-card, .piece-feature, .piece-option:not( .piece-option-featured ), .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-note, :where( .piece-stats-cards ) > .piece-stat )
{
    box-shadow: var( --card-shadow );
}


/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* The burger - bars, and a cross while the menu is open */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* toggleNav() puts .burger-open on the holder, and the icons swap here -
   their own classes stay as they are, as Font Awesome draws an icon again
   when its class changes, and in its solid set ( the fat bars ) */
.burger-container.burger-open #burger-bars
{
    display: none !important;
}

.burger-container.burger-open #burger-cross
{
    display: inline-block !important;
}


/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Pictures that move - a slideshow, and a before and after */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Both on their own, the width of the page, or beside the words as
   Image + text is - and both a fixed shape, so nothing jumps. */

.piece-media-side
{
    align-items: center;
}

.piece-media-alone
{
    width: 100%;
}

:is( .piece-slides, .piece-ba )
{
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;

    background-color: var( --tint, #eef1f4 );
    border-radius: var( --piece-radius-card, 16px );
}

:is( .piece-slides, .piece-ba ).piece-media-wide { aspect-ratio: 16 / 9; }
:is( .piece-slides, .piece-ba ).piece-media-square { aspect-ratio: 1 / 1; }
:is( .piece-slides, .piece-ba ).piece-media-tall { aspect-ratio: 4 / 5; }

/* - - - the slideshow - - - */

.piece-slides-track
{
    position: absolute;
    inset: 0;
}

.piece-slide
{
    position: absolute;
    inset: 0;
    margin: 0;

    opacity: 0;
    pointer-events: none;

    transition: opacity .9s ease;
}

.piece-slide.is-on
{
    z-index: 1;

    opacity: 1;
    pointer-events: auto;
}

.piece-slide img
{
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* sliding across: the pictures in a row, the row moved along */
.piece-slides-slide .piece-slides-track
{
    display: flex;

    transform: translateX( calc( var( --at, 0 ) * -100% ) );
    transition: transform .8s cubic-bezier( .65, 0, .35, 1 );
}

.piece-slides-slide .piece-slide
{
    position: relative;
    flex: 0 0 100%;

    opacity: 1;
    pointer-events: auto;
}

.piece-slide figcaption
{
    position: absolute;
    left: 16px;
    bottom: 16px;
    max-width: calc( 100% - 32px );
    padding: 6px 12px;
    box-sizing: border-box;

    font-size: 14px;
    line-height: 1.4;
    color: #fff;

    background-color: rgba( 0, 0, 0, .55 );
    border-radius: 8px;
}

.piece-slides.has-dots .piece-slide figcaption
{
    bottom: 40px;
}

.piece-slides-arrow
{
    position: absolute;
    z-index: 3;
    top: 50%;

    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;

    font-size: 16px;
    color: var( --ink, #111 );

    background-color: rgba( 255, 255, 255, .88 );
    border: none;
    border-radius: 50%;
    box-shadow: 0 6px 18px -8px rgba( 0, 0, 0, .45 );
    cursor: pointer;

    transition: background-color .25s ease, transform .25s ease;
}

.piece-slides-arrow:hover,
.piece-slides-arrow:focus-visible
{
    background-color: #fff;
    transform: scale( 1.06 );
}

.piece-slides-arrow:focus-visible
{
    outline: 3px solid var( --accent, #3f8196 );
    outline-offset: 2px;
}

.piece-slides-prev { left: 12px; }
.piece-slides-next { right: 12px; }

.piece-slides-dots
{
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 14px;

    display: flex;
    justify-content: center;
    gap: 8px;
}

.piece-slides-dots button
{
    width: 10px;
    height: 10px;
    padding: 0;

    background-color: rgba( 255, 255, 255, .6 );
    border: none;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba( 0, 0, 0, .3 );
    cursor: pointer;

    transition: width .3s ease, background-color .3s ease;
}

.piece-slides-dots button.is-on
{
    width: 26px;

    background-color: #fff;
}

.piece-slides-dots button:focus-visible
{
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* - - - the before and after - - - */

.piece-ba
{
    --ba: 50%;

    user-select: none;
    touch-action: pan-y;
}

.piece-ba img
{
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* the before, over the after, shown up to the line */
.piece-ba-before
{
    position: absolute;
    z-index: 1;
    inset: 0;

    clip-path: inset( 0 calc( 100% - var( --ba ) ) 0 0 );
}

.piece-ba-line
{
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: var( --ba );

    width: 3px;
    margin-left: -1.5px;

    background-color: #fff;
    box-shadow: 0 0 12px rgba( 0, 0, 0, .35 );
    pointer-events: none;
}

.piece-ba-knob
{
    position: absolute;
    z-index: 3;
    top: 50%;
    left: var( --ba );

    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;

    font-size: 16px;
    color: var( --ink, #111 );

    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 18px -6px rgba( 0, 0, 0, .5 );
    pointer-events: none;

    transition: transform .2s ease;
}

.piece-ba:hover .piece-ba-knob
{
    transform: scale( 1.06 );
}

.piece-ba:has( .piece-ba-range:focus-visible ) .piece-ba-knob
{
    outline: 3px solid var( --accent, #3f8196 );
    outline-offset: 2px;
}

.piece-ba-label
{
    position: absolute;
    z-index: 2;
    top: 14px;

    padding: 4px 10px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;

    background-color: rgba( 0, 0, 0, .55 );
    border-radius: 6px;
    pointer-events: none;
}

.piece-ba-label-before { left: 14px; }
.piece-ba-label-after { right: 14px; }

/* the range over the whole picture: it does the dragging - with a
   finger, a mouse or the arrow keys - and is never seen */
.piece-ba-range
{
    position: absolute;
    z-index: 4;
    inset: 0;

    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

    opacity: 0;
    cursor: ew-resize;

    -webkit-appearance: none;
    appearance: none;
    background: none;
}

.piece-ba-range::-webkit-slider-thumb
{
    -webkit-appearance: none;
    width: 46px;
    height: 100vh;
}

.piece-ba-range::-moz-range-thumb
{
    width: 46px;
    height: 100vh;
    border: none;
}

@media( prefers-reduced-motion: reduce )
{
    .piece-slide,
    .piece-slides-slide .piece-slides-track
    {
        transition: none;
    }
}
