/* AS Training | 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 - Paladin: corporate and polished
     Paladin, through every section
     The buttons - Paladin: the badge pill
     Fluid page width - Paladin
     The banner's button - Paladin */

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

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

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

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

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

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

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

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

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

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

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

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

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

.piece-band-tint {
    padding: 80px 0;

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

/* - - - 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-divider-mark {
    display: block;
    height: var(--piece-mark, 34px);
    width: auto;
    max-width: 240px;
}

.piece-divider-mark.is-tinted {
    background-color: var(--accent);

    /* the picture itself comes inline ( mask-image ), so its path is
       read from the page, not from this stylesheet */
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

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

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

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

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

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

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

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

/* 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 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 - Paladin: corporate and polished */

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

/* panels float on a soft layered shadow - no hairline */
: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) {
    border-color: transparent;
    box-shadow: 0 1px 1px var(--shade-faint), 0 2px 2px var(--shade-faint), 0 4px 4px var(--shade-faint), 0 8px 8px var(--shade-faint), 0 16px 16px var(--shade-faint);
}

/* the caption box's underline, under every section heading */
:is(.piece-intro, .piece-close .piece-narrow) > .piece-display::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 18px auto 0;

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

/* icons in filled accent circles */
: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 confident statement - - - */

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

.piece-heading h3 {
    font-size: 13px;
    font-weight: var(--heading-strong);
    line-height: 1.4;
    letter-spacing: .2em;
    text-transform: uppercase !important;
}

/* - - - cards: polished - - - */

.piece-card-link {
    padding: 8px 14px;

    background-color: var(--tint);
    border-radius: 32px;
}

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

/* Paladin, through every section */

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

/* - - - the phone badge: the secondary in a circle - - - */

:is(.piece-feature, .piece-card, .piece-contact-line, :where(.piece-stats-cards) > .piece-stat) > :is(i, svg) {
    color: var(--on-colour2);

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

/* - - - the soft panels - - - */

.piece-stats {
    padding: 40px 24px;

    background-color: var(--paper);
    border: none;
    border-radius: var(--piece-radius-card);
    box-shadow: 0 1px 1px var(--shade-faint), 0 2px 2px var(--shade-faint), 0 4px 4px var(--shade-faint), 0 8px 8px var(--shade-faint), 0 16px 16px var(--shade-faint);
}

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

/* The buttons - Paladin: the badge pill */

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

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

/* 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 {
    position: relative;
    isolation: isolate;
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    grid-gap: 12px;
    align-items: center;
    overflow: hidden;
    padding: 5px 5px 5px 26px;

    background-color: var(--b-fill);
    border: none;
    border-radius: 999px;
    box-shadow: none;
    transform: none;

    transition: box-shadow .35s ease;
}

#page-content .piece-btn :is(h4, p, span) {
    grid-column: 1;
    justify-self: center;
    margin: 0;

    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color .35s ease;
}

/* the circle */
#page-content .piece-btn::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 5px;
    right: 5px;
    width: 34px;
    height: 34px;

    background-color: var(--b-sec);
    border-radius: 50%;

    transition: transform .7s cubic-bezier(.7, 0, .2, 1);
}

/* the arrow, in the circle */
#page-content .piece-btn::after {
    content: "";
    grid-column: 2;
    width: 34px;
    height: 34px;

    background-color: var(--b-on-sec);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;

    transition: transform .35s ease;
}

#page-content .piece-btn:is( :hover, :focus-visible)::before {
    transform: scale(26);
}

#page-content .piece-btn:is( :hover, :focus-visible)::after {
    transform: rotate(-45deg);
}

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

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

    #page-content .piece-btn,
    #page-content .piece-btn::before,
    #page-content .piece-btn::after,
    #page-content .piece-btn :is(h4, p, span) {
        transition-duration: .01s;
        animation: none;
    }
}

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

/* Fluid page width - Paladin */

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

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

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

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

@media(min-width: 1200px) {
    #nav {
        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(1200px, 100%) auto;
    }
}

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

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

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

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

/* The banner's button - Paladin */

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

html body .slide-txt .btn:not(#_) {
    --b-fill: var(--accent-dark);
    --b-on: var(--on-accent-dark);
    --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);
    --b-sec: var(--paper);
    --b-on-sec: var(--ink);
}

html body .slide-txt .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-txt .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-txt .btn:not(#_)::before,
html body .slide-txt .btn:not(#_)::after {
    content: none;

    /* the template puts these in the first grid cell; out of it, so the
       circle and the arrow are placed from the button's own edges */
    grid-area: auto;
}

html body .slide-txt .btn:not(#_) {
    position: relative;
    isolation: isolate;
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    grid-gap: 12px;
    align-items: center;
    overflow: hidden;
    padding: 5px 5px 5px 26px;

    background-color: var(--b-fill);
    border: none;
    border-radius: 999px;
    box-shadow: none;
    transform: none;

    transition: box-shadow .35s ease;
}

html body .slide-txt .btn:not(#_) :is(h4, p, span) {
    grid-column: 1;
    justify-self: center;
    margin: 0;
    letter-spacing: 2px;
    color: white;

    transition: color .35s ease;
}

/* the circle */
html body .slide-txt .btn:not(#_)::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 5px;
    right: 5px;
    width: 34px;
    height: 34px;

    background-color: #C01900;
    border-radius: 50%;

    transition: transform .7s cubic-bezier(.7, 0, .2, 1);
}

/* the arrow, in the circle */
html body .slide-txt .btn:not(#_)::after {
    content: "";
    grid-column: 2;
    width: 34px;
    height: 34px;

    background-color: white;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;

    transition: transform .35s ease;
}

html body .slide-txt .btn:not(#_):is( :hover, :focus-visible)::before {
    transform: scale(26);
}

html body .slide-txt .btn:not(#_):is( :hover, :focus-visible)::after {
    transform: rotate(-45deg);
}

html body .slide-txt .btn:not(#_):is( :hover, :focus-visible) :is(h4, p, span) {
    color: white;
}

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

    html body .slide-txt .btn:not(#_),
    html body .slide-txt .btn:not(#_)::before,
    html body .slide-txt .btn:not(#_)::after,
    html body .slide-txt .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: #e23b2e !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 #topbar,
html body #topbar > * {
    background-color: #0e9ed5 !important;
    background-image: none !important;
}

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

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

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

/* The nav - the page builder's Nav panel */
html body #nav {
    background: #ffffff !important;
    border-color: #ffffff !important;
}

html body #nav #nav-links a {
    color: #0e9ed5 !important;
}

html body #nav #nav-links a:hover {
    color: #0e9ed5 !important;
    opacity: 1 !important;
}

html body #nav #nav-links .active-link a {
    background-color: #e23b2e !important;
    padding: .3em .6em !important;
    margin: -.3em -.6em !important;
    border-radius: var(--piece-radius-btn, 4px);
}

html body #nav #nav-links .active-link a {
    color: #ffffff !important;
}

html body #nav #nav-links a {
    font-family: "aptos-slab", 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 {
    color: #ffffff !important;
}

#banner-overlay {
    background-color: #222222 !important;
}
