/* Able Drainage Ltd | sections.css

   The styles for the section types this site's pages use, and the
   template's own look for them ( its skin ). */

/* Contents

     The building blocks - headings, pictures, bands, lists and buttons
     Set pieces - cards, steps, options and the rest
     Dark pages
     Wider and narrower screens
     Template parts
     Contact pieces
     More set pieces: the pull quote, the icon row, the number feature, questions and the picture pair
     Section trims
     Fluid page width
     Where the keyboard is
     Page builder settings - framed pictures, cards on hover, card colours
     The burger - bars, and a cross while the menu is open
     Parts: lines set as a tag, a figure, a quote, a name ( a blank section's parts, outside the set pieces' own cards )
     Columns: a picture first on a phone, and text set across
     Skin - Temp 4: flat and blocky
     Temp 4, through every section
     The buttons - Temp 4: the rising bar
     Fluid page width - Temp 4
     The banner's buttons - Temp 4 */

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

/* The building blocks - headings, pictures, bands, lists and buttons */

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

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

/* - 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;
}

/* - 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 - - - */

.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;
}

.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;
}

.piece-shot-square
{
    aspect-ratio: 1 / 1;
}

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

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

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

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

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

/* - - - bands - - - */

.piece-band
{
    padding: 64px 0;

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

.piece-band :is( h1, h2, h3, h4, p, li, b, blockquote )
{
    color: var( --on-ink );
}

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

#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 )
{
    margin-top: calc( var( --page-gap, 32px ) * -1 );
}

#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 - - - */

: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;
}

* + .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 - cards, steps, options and the rest */

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

/* - - - 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;
}

.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;
}

.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 */
.piece-stats
{
    display: grid;
    /*grid-template-columns: repeat( 2, 1fr );*/
    grid-gap: 32px 24px;
    padding: 32px 0;

    border-top: solid 1px var( --shade-light );
    border-bottom: solid 1px var( --shade-light );
}

.piece-stats:not( .piece-stats-cards ):has( .piece-stat-mark )
{
    align-items: end;
}

.piece-stat
{
    display: grid;
    grid-gap: 6px;
    justify-items: center;
    text-align: center;
}

.piece-stat b
{
    font-size: clamp( 34px, 4vw, 48px );
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
    color: var( --accent );
}

.piece-stat p
{
    justify-self: center;

    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    /* opacity: .8; */
    font-weight: 600;
}

/* - - - cards - - - */

.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 - - - */

: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;
}

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

: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% );
}

/* - - - photo covers - - - */

.piece-band :is( .piece-accent, .piece-second )
{
    color: var( --accent-dark );
}

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

/* 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 );
}

.piece-split .element > :is( h2, h3 ).piece-display:not( :first-child )
{
    margin-top: 24px;
}

/* - - - the close - - - */

.piece-close .piece-narrow
{
    display: grid;
    grid-gap: 16px;
    justify-items: center;
}

/* 64px under the heading in all - the grid's 16px plus this */
.piece-close .piece-btn-row
{
    margin-top: 48px;
}

.piece-close h3
{
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

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

/* Dark pages */

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

#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-stats
    {
        grid-template-columns: repeat( auto-fit, minmax( 140px, 1fr ) );
    }
}

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

/* Template parts */

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

.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 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 );
}

.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( --ink )!important;
    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( --tint );
}

/* 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 );
}

.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( --paper );
}

.piece-contact-form #contact .piece-form-submit
{
    justify-self: start;

    cursor: pointer;
}

:where( .piece-contact-form ) .piece-form-submit
{
    font: inherit;
    letter-spacing: inherit;
}

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

    border-radius: 10px;
}

@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;
    }
}

.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;
    }
}

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

: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 */

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

/* - - - 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;
    }
}

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

#page-content:has( #preview-container:not( .hide ) )
{
    z-index: 1000;
}

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

/* Section trims */

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

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

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

/* Fluid page width */

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

@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;
    }
}

@media( max-width: 767px )
{
    #page-content p,
    #page-content li,
    #page-content td,
    #page-content th
    {
        overflow-wrap: anywhere;
    }
}

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

/* Where the keyboard is */

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

: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 );
}

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

/* Page builder settings - framed pictures, cards on hover, card colours */

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

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

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

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

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

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

.burger-container.burger-open #burger-bars
{
    display: none !important;
}

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

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

/* Parts: lines set as a tag, a figure, a quote, a name ( a blank section's parts, outside the set pieces' own cards ) */

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

.piece-icon
{
    --icon: 28px;

    justify-self: start;

    font-size: var( --icon );
    color: var( --accent );
}

:is( .piece-text-centre, .piece-intro ) > .piece-icon
{
    justify-self: center;
}

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

/* Columns: a picture first on a phone, and text set across */

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

@media( max-width: 767px )
{
    #page-content :is( .col-2, .col-2a, .col-2b, .col-3, .col-4 ) > .element:has( > img, > .piece-shot, > .piece-media )
    {
        grid-row: 1;
    }
}

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

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

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

/* - 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;

    border-radius: 10px;
}

: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%;
}

.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 );
}

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

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

:is( h1, h2, h3 ).piece-display :is( .piece-accent, .piece-second )
{
    color: inherit;
}

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

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

:is( .piece-heading, .piece-intro, .piece-centre, .piece-close, .piece-cover, .piece-cta-panel ) .piece-display
{
    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 );
}

/* on a dark page or band: the same two colours, lifted so they show */
:is( .piece-dark, .piece-band ) .piece-display
{
    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 );
}

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

/* Temp 4, through every section */

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

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

.piece-stats
{
    border-top: solid 4px var( --accent );
    border-bottom: none;
}

.piece-stat b
{
    font-weight: var( --heading-strong );
}

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

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

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

#page-content .piece-btn
{
    --b-fill: var( --colour2 );
    --b-on: var( --on-colour2 );
    --b-line: var( --colour2 );
    --b-text: #b80108;
    --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 */

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

@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;
    }
}

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

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

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

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

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

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

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

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 #footer
{ background-color: #000000 !important; background-image: none !important; }

html body #bottom-bar
{ background-color: #b80108 !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: #000000 !important; background-image: none !important; }

html body #header :is( p, h3, h4, span, a )
{ color: #ffffff !important; }

html body #header :is( i, svg, .topbar-icon )
{ color: #ffffff !important; }

html body #header a:hover,
html body #header a:hover :is( p, h3, h4, span, i, svg )
{ color: #ffffff !important; opacity: 1 !important; }
