/* Supa-Kill final polish overrides - mobile, product listings, content pages and footer */

.product-browser-grid {
    align-items: start;
    column-gap: clamp(2rem, 4vw, 3.5rem);
    row-gap: 3.25rem;
}

.product-browser-card {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: grid;
    grid-template-rows: auto auto;
    gap: 1.25rem;
    align-content: start;
}

.product-browser-card-media {
    min-height: 230px;
    max-height: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.product-browser-card-media img {
    width: auto;
    height: auto;
    max-width: 88%;
    max-height: 205px;
    margin: 0 auto;
    object-fit: contain;
}

.product-browser-card-copy {
    min-height: 0;
    display: grid;
    gap: 0.8rem;
    align-content: start;
}

.product-browser-card-copy h2 {
    min-height: 0;
}

.product-browser-card-description {
    display: block;
    min-height: 0;
    color: var(--color-text-muted);
}

.product-browser-card-copy .button-secondary {
    width: fit-content;
    margin-top: 0.65rem;
}

.content-flow {
    max-width: 920px;
}

.content-flow > * + * {
    margin-top: 2rem;
}

.content-flow-section {
    padding-top: 1.45rem;
    border-top: 1px solid var(--color-line);
}

.content-flow-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.content-flow-section h2,
.content-flow-section h3,
.policy-content h2,
.policy-content h3 {
    margin-bottom: 0.6rem;
}

.content-flow-section p,
.content-flow-section li,
.policy-content p,
.policy-content li,
.contact-line-list p {
    color: var(--color-text-muted);
}

.inline-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1.35rem 0 0;
    padding: 0;
    list-style: none;
}

.inline-tab-list a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 0.8rem;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    text-decoration: none;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.68);
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.inline-tab-list a:hover,
.inline-tab-list a:focus-visible {
    color: var(--color-brand);
    border-color: rgba(207, 32, 27, 0.45);
    background: #fff4f3;
}

.subtle-callout {
    margin-top: 1.6rem;
    padding: 1.2rem 1.35rem;
    border-left: 4px solid var(--color-brand);
    background: rgba(255, 255, 255, 0.68);
}

.subtle-callout p:last-child,
.subtle-callout ul:last-child {
    margin-bottom: 0;
}

.content-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
}

.line-list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--color-line);
}

.line-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-line);
}

.contact-lines {
    display: grid;
    gap: 1.8rem;
}

.contact-line-section {
    padding-top: 1.35rem;
    border-top: 1px solid var(--color-line);
}

.contact-line-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.contact-line-list {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.contact-line-list p {
    margin: 0;
}

.contact-logo-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1rem;
}

.contact-logo-row img {
    max-width: 170px;
    height: auto;
}

.policy-content {
    max-width: 920px;
}

.policy-content section {
    padding: 1.35rem 0;
    border-top: 1px solid var(--color-line);
}

.policy-content section:first-child {
    border-top: 0;
    padding-top: 0;
}

.policy-content ul,
.policy-content ol {
    padding-left: 1.2rem;
}

.policy-content li + li {
    margin-top: 0.45rem;
}

.policy-note {
    padding: 1rem 1.1rem;
    background: #fff4f3;
    border: 1px solid rgba(207, 32, 27, 0.18);
    border-radius: 12px;
}

.site-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 0%, rgba(207, 32, 27, 0.1), transparent 30%),
        linear-gradient(135deg, #111 0%, #171311 52%, #111 100%);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image: linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.5) 49%, rgba(255,255,255,0.5) 51%, transparent 52%);
    background-size: 26px 26px;
}

.footer-shell,
.footer-socket-shell {
    position: relative;
    z-index: 1;
}

.footer-column a,
.footer-policy-links a,
.footer-preference-link,
.footer-credit a {
    text-decoration: none;
    transition: color 0.18s ease, opacity 0.18s ease, text-decoration-color 0.18s ease;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.footer-column a:hover,
.footer-column a:focus-visible,
.footer-policy-links a:hover,
.footer-policy-links a:focus-visible,
.footer-preference-link:hover,
.footer-preference-link:focus-visible,
.footer-credit a:hover,
.footer-credit a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(207, 32, 27, 0.8);
}

.concept-lab-link:hover,
.concept-lab-link:focus-visible {
    color: #ffcc00;
    text-decoration-color: #ffcc00;
}

@media (max-width: 1024px) {
    .site-header {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-shell {
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .brand-logo {
        width: clamp(185px, 42vw, 245px);
    }

    .nav-toggle {
        position: relative;
        display: inline-flex;
        flex-direction: column;
        flex: 0 0 auto;
        border-radius: 14px;
        background: linear-gradient(180deg, #fff, #f8f4ef);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08), inset 0 0 0 2px rgba(207, 32, 27, 0.08);
        transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

    .nav-toggle[aria-expanded="true"] {
        border-color: rgba(207, 32, 27, 0.35);
        background: #fff4f3;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(4) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav-toggle span:not(.sr-only) {
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .site-nav {
        display: block;
        position: fixed;
        inset: 84px 1rem auto;
        width: auto;
        margin: 0;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--color-line);
        border-radius: 18px;
        box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-list {
        gap: 0.35rem;
    }

    .nav-list a {
        min-height: 48px;
        padding: 0.75rem 0.95rem;
        border-radius: 12px;
    }

    .nav-list a::after {
        display: none;
    }

    .nav-list a.is-active {
        background: #fff4f3;
    }

    .page-layout,
    .feature-split,
    .content-columns {
        grid-template-columns: 1fr;
    }

    .product-browser-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 1.5rem), var(--container));
    }

    h1,
    .display-title {
        font-size: clamp(2.15rem, 12vw, 3.15rem);
    }

    h2 {
        font-size: clamp(1.65rem, 9vw, 2.25rem);
    }

    .page-hero,
    .section,
    .product-hero {
        padding: 2.55rem 0;
    }

    .page-hero + .section {
        padding-top: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .product-browser-tabs,
    .section-tab-list {
        gap: 0.7rem;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding: 0 0.75rem;
        scroll-snap-type: x proximity;
    }

    .product-browser-tab,
    .section-tab-list-lined button {
        flex: 0 0 auto;
        scroll-snap-align: start;
        min-height: 48px;
        max-width: 10rem;
        white-space: normal;
        line-height: 1.25;
    }

    .product-browser-grid {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .product-browser-card {
        grid-template-rows: auto auto;
    }

    .product-browser-card-media {
        min-height: 170px;
        max-height: 190px;
    }

    .product-browser-card-media img {
        max-height: 150px;
        max-width: 80%;
    }

    .product-browser-card-copy h2,
    .product-browser-card-description {
        min-height: 0;
    }

    .product-browser-card-copy .button-secondary {
        width: fit-content;
    }

    .site-nav {
        inset: 78px 0.75rem auto;
        padding: 0.85rem;
    }

    .contact-logo-row img {
        max-width: 145px;
    }

    .policy-content section,
    .content-flow-section {
        padding-top: 1.15rem;
    }
}

/* --------------------------------------------------
   Compliance document library - v2.0.5
   -------------------------------------------------- */
.compliance-section {
    padding-top: clamp(3rem, 7vw, 5.5rem);
}

.compliance-section-head {
    max-width: 920px;
}

.compliance-section-head .section-copy {
    max-width: 78ch;
}

.document-grid {
    gap: 1.4rem;
}

.document-card,
.document-card.current {
    position: relative;
    overflow: hidden;
    padding: clamp(1.25rem, 2.4vw, 1.75rem);
    border: 1px solid #ded4ca;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(41, 31, 25, 0.055);
}

.document-card.current {
    border-color: rgba(207, 32, 27, 0.28);
    box-shadow: 0 18px 42px rgba(132, 27, 22, 0.075);
}

.document-card.current::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--color-brand);
}

.document-card.is-empty {
    background: #fcfaf8;
    box-shadow: none;
}

.document-group-head {
    align-items: flex-start;
    gap: 1.5rem;
}

.document-group-title {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
}

.document-category-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #fff0ef;
    color: var(--color-brand);
}

.document-category-icon svg {
    width: 24px;
    height: 24px;
}

.document-group-title h3 {
    margin: 0.12rem 0 0;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.document-summary-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.document-summary-meta > span:not(.document-status-pill) {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    min-height: 32px;
    padding: 0.35rem 0.65rem;
    border: 1px solid #e3dcd5;
    border-radius: 999px;
    background: #faf8f5;
    color: #655d56;
    font-size: 0.84rem;
}

.document-summary-meta strong,
.document-history-dates strong {
    color: var(--color-text);
}

.document-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    min-height: 32px;
    padding: 0.35rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.document-status-pill.is-current {
    border-color: #9ed1ad;
    background: #edf8f0;
    color: #176637;
}

.document-status-pill.is-previous {
    border-color: #d5d8dc;
    background: #f2f4f6;
    color: #59616a;
}

.document-actions-stacked {
    min-width: 225px;
}

.document-actions-stacked .button-secondary {
    min-height: 44px;
    justify-content: center;
    background: #fff;
}

.document-file-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid #ece5de;
}

.document-file-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 84px;
    padding: 0.85rem 0.9rem;
    border: 1px solid #e5ddd5;
    border-radius: 13px;
    background: #fdfcfb;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.document-file-row:hover {
    border-color: #d2c5ba;
    box-shadow: 0 8px 22px rgba(52, 39, 31, 0.06);
    transform: translateY(-1px);
}

.document-file-type {
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 34px;
    padding: 0 0.65rem;
    border-radius: 8px;
}

.document-file-type.is-muted {
    background: #747b83;
}

.document-file-copy {
    min-width: 0;
}

.document-file-copy h4 {
    margin: 0;
    overflow-wrap: anywhere;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.35;
}

.document-file-copy p {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
    margin: 0.35rem 0 0;
    color: var(--color-text-muted);
    font-size: 0.87rem;
}

.document-file-copy p span + span {
    position: relative;
    padding-left: 0.9rem;
}

.document-file-copy p span + span::before {
    content: '';
    position: absolute;
    left: 0.3rem;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #9b9188;
}

.document-file-action {
    min-width: 112px;
    justify-content: center;
    white-space: nowrap;
}

.document-empty-state {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px dashed #d7cec6;
    border-radius: 12px;
    background: #f4f0eb;
}

.document-empty-state > span {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e8dfd7;
    color: #74675c;
    font-weight: 800;
}

.document-empty-state strong,
.document-empty-state p {
    margin: 0;
}

.document-empty-state p {
    margin-top: 0.2rem;
    color: var(--color-text-muted);
}

.document-empty-state-page {
    margin-top: 0;
}

.label-preview {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ece5de;
}

.label-preview summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    color: var(--color-brand-dark);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.label-preview summary::-webkit-details-marker {
    display: none;
}

.label-preview summary span:last-child {
    color: var(--color-brand);
    font-size: 0.9rem;
}

.label-preview[open] summary span:last-child {
    font-size: 0;
}

.label-preview[open] summary span:last-child::after {
    content: 'Close preview';
    font-size: 0.9rem;
}

.label-preview-frame {
    overflow: hidden;
    border: 1px solid #ddd3ca;
    border-radius: 12px;
    background: #f3efeb;
}

.label-preview-frame iframe {
    display: block;
    width: 100%;
    height: min(720px, 72vh);
    border: 0;
}

.document-history {
    margin-top: 1.25rem;
    padding: 1.15rem;
    border: 1px solid #e0d8d1;
    border-radius: 14px;
    background: #f7f4f1;
    opacity: 1;
}

.document-history-heading,
.document-history-version > header,
.document-history-file {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.document-history-heading {
    align-items: center;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #e1d9d1;
}

.document-history-heading h4,
.document-history-heading p,
.document-history-version h5 {
    margin: 0;
}

.document-history-heading > span {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.document-history-version {
    padding: 1.1rem 0;
    border-bottom: 1px solid #e1d9d1;
    opacity: 1;
}

.document-history-version:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.document-history-version h5 {
    margin-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
}

.document-history-dates {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem 0.9rem;
    color: var(--color-text-muted);
    font-size: 0.84rem;
}

.document-history-notes {
    margin: 0.75rem 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.document-history-files {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.document-history-file {
    align-items: center;
    padding: 0.7rem 0.75rem;
    border: 1px solid #e2dad3;
    border-radius: 10px;
    background: #fff;
}

.document-history-file > span:nth-child(2) {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.document-history-file small {
    color: var(--color-text-muted);
}

.document-history-file .link-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .document-group-head {
        flex-direction: column;
    }

    .document-actions-stacked {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .document-actions-stacked > * {
        flex: 1 1 220px;
    }
}

@media (max-width: 680px) {
    .product-browser-card {
        max-width: 100%;
    }

    .product-browser-card-media {
        min-height: 205px;
    }

    .product-browser-card-media img {
        max-height: 180px;
    }

    .document-card,
    .document-card.current {
        padding: 1rem;
        border-radius: 14px;
    }

    .document-group-title {
        gap: 0.75rem;
    }

    .document-category-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .document-file-row {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.75rem;
    }

    .document-file-action {
        grid-column: 1 / -1;
        width: 100%;
    }

    .document-history-version > header,
    .document-history-file {
        flex-direction: column;
    }

    .document-history-dates {
        justify-content: flex-start;
    }

    .document-history-file .link-button {
        width: 100%;
        justify-content: center;
    }
}
