/* Reset and page shell: typography, links, header, footer, buttons, forms. */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: var(--leading-body);
    font-variant-numeric: tabular-nums;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

svg {
    flex: none;
}

/* Type */

h1,
h2,
h3,
h4 {
    color: var(--color-ink);
    font-family: var(--font-display);
    line-height: var(--leading-tight);
    text-wrap: balance;
}

h1 {
    font-size: var(--step-3);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 var(--space-4);
}

h2 {
    font-size: var(--step-2);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-3);
}

h3 {
    font-size: var(--step-1);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 var(--space-2);
}

h4 {
    font-size: var(--step-0);
    font-weight: 700;
    margin: 0 0 var(--space-2);
}

p {
    margin: 0 0 var(--space-4);
    text-wrap: pretty;
}

ul,
ol {
    margin: 0 0 var(--space-4);
    padding-left: 1.35rem;
}

:where(ul:not([class]), ol:not([class])) > :where(li + li) {
    margin-top: var(--space-1);
}

strong,
b {
    font-weight: 700;
    color: var(--color-ink);
}

small {
    font-size: var(--step--1);
}

hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: var(--space-6) 0;
}

a {
    color: var(--color-link);
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color var(--speed) var(--ease);
}

a:hover {
    color: var(--color-link-hover);
    text-decoration-thickness: 2px;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Headings and result blocks that receive focus from a script, so a screen reader announces them, show no ring. */

[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
    outline: none;
}

::placeholder {
    color: #767676;
    opacity: 1;
}

::selection {
    background: var(--color-brand-tint-strong);
    color: var(--color-ink);
}

.skip {
    position: absolute;
    left: var(--space-4);
    top: var(--space-2);
    transform: translateY(-200%);
    z-index: 60;
    background: var(--color-ink);
    color: #fff;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.skip:focus {
    transform: none;
    color: #fff;
}

main {
    display: block;
    min-width: 0;
    padding-block: var(--space-5) var(--space-8);
}

#content {
    scroll-margin-top: var(--header-height);
}

/* An element marked hidden is hidden, whatever its own display rule says. */

[hidden] {
    display: none !important;
}

main > .wrap > * + *,
main > .wrap > section + section {
    margin-top: var(--space-6);
}

main > .wrap > h1 + *,
main > .wrap > .hero + * {
    margin-top: var(--space-5);
}

/* A page laid out as a grid spaces its blocks with the grid gap alone. */

main > .wrap:is(.content-page, .content-index, .tool-page, .company-check) > * {
    margin-top: 0;
}

/* A heading sits closer to the block it introduces than to the one before it. */

main > .wrap > :is(h2, h3) + * {
    margin-top: var(--space-4);
}

main > .wrap:is(.content-page, .content-index, .tool-page, .company-check) > :is(h2, h3) + * {
    margin-top: calc(var(--space-4) - var(--space-6));
}

.lead {
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--color-text);
    max-width: var(--measure);
    margin-bottom: var(--space-4);
}

.meta,
.as-of {
    color: var(--color-muted);
    font-size: var(--step--1);
    line-height: 1.5;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    color: var(--color-brand-deep);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgb(255 255 255 / 96%);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: none;
    margin-right: auto;
    padding-block: var(--space-2);
    text-decoration: none;
    border-radius: var(--radius-sm);
}

.primary-nav--bar {
    display: none;
}

.primary-nav a {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 2.75rem;
    padding: 0 var(--space-2);
    color: var(--color-ink);
    text-decoration: none;
    border-radius: var(--radius-sm);
    line-height: 1.15;
}

.header-phone:hover {
    color: var(--color-brand-deep);
}

.header-phone__icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--color-brand-tint);
    color: var(--color-brand-deep);
}

.header-phone__text {
    display: none;
}

.header-phone__number {
    display: block;
    font-weight: 700;
    font-size: 1.0625rem;
    white-space: nowrap;
}

.header-phone__hours {
    display: block;
    color: var(--color-muted);
    font-size: 0.8125rem;
    font-weight: 400;
    white-space: nowrap;
}

.header-actions .header-cta {
    display: none;
    white-space: nowrap;
}

.nav-details {
    position: static;
}

.nav-toggle {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-ink);
    cursor: pointer;
    list-style: none;
}

.nav-toggle::-webkit-details-marker {
    display: none;
}

.nav-toggle:hover {
    background: var(--color-canvas);
}

.nav-toggle__close,
.nav-details[open] > .nav-toggle .nav-toggle__open {
    display: none;
}

.nav-details[open] > .nav-toggle .nav-toggle__close {
    display: block;
}

.nav-drawer {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-3);
    padding: var(--space-2) 0 var(--space-5);
}

.primary-nav--drawer {
    display: grid;
}

.primary-nav--drawer a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.25rem;
    padding: 0 var(--space-1);
    border-bottom: 1px solid var(--color-border);
    font-size: 1.0625rem;
}

.primary-nav--drawer a[aria-current="page"] {
    color: var(--color-brand-deep);
}

.primary-nav--drawer a::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--color-border-strong);
    border-top: 2px solid var(--color-border-strong);
    transform: rotate(45deg);
    margin-right: var(--space-2);
}

.nav-drawer__actions {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

@media (min-width: 30rem) {
    .header-phone__text {
        display: block;
    }

    .header-phone__icon {
        width: 2.25rem;
        height: 2.25rem;
    }
}

@media (min-width: 64rem) {
    .header-bar {
        gap: var(--space-5);
    }

    .brand {
        margin-right: 0;
    }

    .nav-details {
        display: none;
    }

    .primary-nav--bar {
        display: flex;
        align-items: stretch;
        align-self: stretch;
        gap: var(--space-1);
        margin-right: auto;
    }

    .primary-nav--bar a {
        position: relative;
        display: inline-flex;
        align-items: center;
        padding: 0 var(--space-3);
        font-size: 0.9375rem;
        white-space: nowrap;
    }

    .primary-nav--bar a::after {
        content: "";
        position: absolute;
        left: var(--space-3);
        right: var(--space-3);
        bottom: -1px;
        height: 3px;
        border-radius: 3px 3px 0 0;
        background: var(--color-brand);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform var(--speed) var(--ease);
    }

    .primary-nav--bar a:hover {
        color: var(--color-ink);
    }

    .primary-nav--bar a:hover::after,
    .primary-nav--bar a[aria-current="page"]::after {
        transform: scaleX(1);
    }

    .primary-nav--bar a[aria-current="page"] {
        color: var(--color-ink);
    }

    .header-actions .header-cta {
        display: inline-flex;
    }
}

@media (min-width: 64rem) and (max-width: 74.99rem) {
    .header-phone__hours {
        display: none;
    }

    .primary-nav--bar a {
        padding: 0 var(--space-2);
    }
}

/* Breadcrumbs */

.breadcrumbs {
    font-size: var(--step--1);
    color: var(--color-muted);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-2);
    list-style: none;
    margin: 0;
    padding: var(--space-4) 0 0;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
}

.breadcrumbs li:not(:last-child)::after {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    border-right: 1.5px solid var(--color-border-strong);
    border-top: 1.5px solid var(--color-border-strong);
    transform: rotate(45deg);
}

.breadcrumbs a {
    color: var(--color-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--color-brand-deep);
    text-decoration: underline;
}

.breadcrumbs li:last-child {
    color: var(--color-ink);
    font-weight: 600;
}

/* Footer */

.site-footer {
    background: var(--color-night);
    color: var(--color-on-night-muted);
    padding-block: var(--space-7) var(--space-6);
}

.footer-top {
    display: grid;
    gap: var(--space-5);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgb(255 255 255 / 14%);
}

.footer-brand p {
    max-width: 34ch;
    margin: var(--space-3) 0 0;
    font-size: var(--step--1);
}

.footer-phone {
    display: grid;
    gap: 2px;
    align-content: start;
}

.footer-phone__label {
    font-size: var(--step--1);
}

.footer-phone a {
    color: #fff;
    font-size: var(--step-2);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.footer-phone a:hover {
    color: var(--color-brand);
}

.footer-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6) var(--space-4);
    margin: 0;
    padding: var(--space-6) 0;
}

.footer-groups h2 {
    margin: 0 0 var(--space-3);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-groups ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-groups li {
    margin: 0;
}

.footer-groups a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--color-on-night-muted);
    font-size: 0.9375rem;
    text-decoration: none;
}

.footer-groups a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    display: grid;
    gap: var(--space-3);
    padding-top: var(--space-5);
    border-top: 1px solid rgb(255 255 255 / 14%);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.footer-bottom p {
    margin: 0;
    max-width: 80ch;
}

.footer-legal {
    color: var(--color-on-night-muted);
}

@media (min-width: 48rem) {
    .footer-top {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .footer-groups {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Buttons */

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: var(--control-height);
    padding: 0 var(--space-5);
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--color-brand);
    color: var(--color-on-brand);
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
    -webkit-tap-highlight-color: transparent;
}

button:hover,
.button:hover {
    background: var(--color-brand-hover);
    color: var(--color-on-brand);
    text-decoration: none;
}

button:active,
.button:active {
    background: var(--color-brand-active);
    transform: translateY(1px);
}

button:disabled,
button[aria-disabled="true"],
.button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.button--accent,
.button--primary {
    box-shadow: var(--shadow-brand);
}

.button--accent:hover,
.button--primary:hover {
    box-shadow: 0 8px 20px rgb(243 140 34 / 40%);
}

.button--secondary {
    background: var(--color-surface);
    border-color: var(--color-control-border);
    color: var(--color-ink);
}

.button--secondary:hover {
    background: var(--color-canvas);
    border-color: var(--color-ink);
    color: var(--color-ink);
}

.button--secondary:active {
    background: var(--color-border);
}

.button--dark {
    background: var(--color-ink);
    color: #fff;
}

.button--dark:hover {
    background: #000;
    color: #fff;
}

.button--ghost {
    min-height: 2.75rem;
    padding: 0 var(--space-3);
    background: transparent;
    color: var(--color-brand-deep);
}

.button--ghost:hover,
.button--ghost:active {
    background: var(--color-brand-tint);
    color: var(--color-link-hover);
}

.button--small {
    min-height: 2.75rem;
    padding: 0 var(--space-4);
    font-size: 0.9375rem;
}

.button--block {
    display: flex;
    width: 100%;
}

.button--large {
    min-height: 3.5rem;
    padding: 0 var(--space-6);
    font-size: 1.0625rem;
}

button[aria-busy="true"],
.button[aria-busy="true"] {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

button[aria-busy="true"]::after,
.button[aria-busy="true"]::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 2.5px solid rgb(31 31 31 / 25%);
    border-top-color: var(--color-ink);
    animation: spin 700ms linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Forms */

label {
    display: block;
    color: var(--color-ink);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
}

.field,
.vehicle-row,
.consent-box {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.field {
    display: block;
    min-width: 0;
}

.field__label {
    display: block;
    color: var(--color-ink);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
}

/*
 * The message line under a control. It always takes up one line, so an
 * error appearing or clearing does not move anything below it. It holds
 * the hint, and the error replaces the hint while the field is invalid.
 */

.field__msg {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    min-height: 1.375rem;
    margin: 0.25rem 0 0;
    color: var(--color-muted);
    font-size: var(--step--1);
    font-weight: 400;
    line-height: 1.375rem;
}

.field__msg.is-error {
    color: var(--color-danger);
    font-weight: 600;
}

.field__msg.is-error::before {
    content: "";
    flex: none;
    width: 1rem;
    height: 1rem;
    margin-top: 0.1875rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1Zm-.75 3.5h1.5v5h-1.5v-5Zm.75 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1Zm-.75 3.5h1.5v5h-1.5v-5Zm.75 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field__msg.is-success {
    color: var(--color-success);
    font-weight: 600;
}

.field__msg.is-warning {
    color: var(--color-warning);
    font-weight: 600;
}

/* A longer explanation sits between the label and the control, where it never changes height. */

.field__label + .field__hint {
    margin-top: 0.125rem;
}

.field__hint + input,
.field__hint + select,
.field__hint + textarea,
.field__hint + .combo {
    margin-top: 0.375rem;
}

.field__hint,
.field-hint {
    display: block;
    margin: var(--space-1) 0 0;
    color: var(--color-muted);
    font-size: var(--step--1);
    font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="number"],
input[type="date"],
input:not([type]),
select,
textarea {
    display: block;
    width: 100%;
    min-height: var(--control-height);
    margin: 0;
    padding: 0.625rem 0.875rem;
    color: var(--color-ink);
    background-color: var(--color-surface);
    border: 1px solid var(--color-control-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
    appearance: none;
    -webkit-appearance: none;
}

label > input[type="text"],
label > input[type="email"],
label > input[type="password"],
label > input[type="tel"],
label > input[type="search"],
label > input[type="url"],
label > input[type="number"],
label > input[type="date"],
label > input:not([type]),
label > select,
label > textarea,
.field__label + input,
.field__label + select,
.field__label + textarea,
.field__label + .combo {
    margin-top: 0.375rem;
}

textarea {
    min-height: 7.5rem;
    resize: vertical;
}

select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
}

input[type="date"] {
    min-width: 0;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--color-ink);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-brand-deep);
    box-shadow: 0 0 0 3px rgb(243 140 34 / 35%);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--color-danger);
    background-color: #fffafa;
}

input[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgb(154 43 43 / 22%);
}

input:disabled,
select:disabled,
textarea:disabled {
    background-color: var(--color-canvas);
    color: var(--color-muted);
    cursor: not-allowed;
}

input[type="checkbox"],
input[type="radio"] {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    min-height: 0;
    margin: 0;
    accent-color: var(--color-brand-deep);
    cursor: pointer;
}

label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.45;
    cursor: pointer;
}

label:has(> input[type="checkbox"]) > input,
label:has(> input[type="radio"]) > input {
    margin-top: 0.1rem;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

legend {
    padding: 0;
    margin-bottom: var(--space-2);
    color: var(--color-ink);
    font-size: 0.9375rem;
    font-weight: 600;
}

.inline-error,
.field-error,
.vin-error {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    margin: 0.375rem 0 0;
    color: var(--color-danger);
    font-size: var(--step--1);
    font-weight: 600;
    line-height: 1.4;
}

.inline-error::before,
.field-error::before,
.vin-error::before {
    content: "";
    flex: none;
    width: 1rem;
    height: 1rem;
    margin-top: 0.1rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1Zm-.75 3.5h1.5v5h-1.5v-5Zm.75 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1Zm-.75 3.5h1.5v5h-1.5v-5Zm.75 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.form-error {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--color-danger-bg);
    border: 1px solid var(--color-danger-line);
    border-radius: var(--radius);
    color: var(--color-danger);
    font-weight: 600;
}

.form-error ul {
    margin: 0;
    padding-left: 1.1rem;
}

.form-error ul:only-child:has(> li:only-child) {
    list-style: none;
    padding-left: 0;
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Generic stacked forms written with bare labels (tools, calculators, support) */

form:where(.calculator-form, .tool-form, .support-form, .stack-form) {
    display: grid;
    gap: var(--space-4);
    max-width: 40rem;
    padding: var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
}

form:where(.calculator-form, .tool-form, .support-form, .stack-form) fieldset {
    display: grid;
    gap: var(--space-2);
}

form:where(.calculator-form, .tool-form, .support-form, .stack-form) > button {
    justify-self: start;
}

/* Sticky quote button on small screens */

.sticky-quote {
    display: none;
}

@media (max-width: 63.99rem) {
    body:not(.page-quote):not(.page-home) {
        padding-bottom: 5rem;
    }

    .sticky-quote {
        position: fixed;
        z-index: 30;
        left: var(--space-4);
        right: var(--space-4);
        bottom: max(0.75rem, env(safe-area-inset-bottom));
        display: flex;
        box-shadow: var(--shadow-3);
    }

    .page-quote .sticky-quote,
    .page-home .sticky-quote {
        display: none;
    }

    /* A page with its own form and action, or a field that is being typed in, does not get a second action over it. */

    /*
     * A page with its own task form does not get a second action over it.
     * On other pages the button steps aside while any form is on screen or
     * in use, including while its own button is being pressed.
     */

    body:has(.tool-form, .calculator-form, .write-review-form, .support-form, .company-filters, .company-check-form, .narrow > form) .sticky-quote,
    body:has(main form:focus-within, main .list-filter:focus-within) .sticky-quote,
    body.form-in-view .sticky-quote {
        display: none;
    }

    body:has(.tool-form, .calculator-form, .write-review-form, .support-form, .company-filters, .company-check-form, .narrow > form):not(.page-quote):not(.page-home) {
        padding-bottom: 0;
    }
}

@media print {
    .site-header,
    .site-footer,
    .sticky-quote,
    .breadcrumbs {
        display: none !important;
    }

    body {
        padding-bottom: 0;
        background: #fff;
        color: #000;
    }

    main {
        padding: 0;
    }

    a {
        color: #000;
    }
}
