/* Shared frame for the connectivity catalogue and project enquiry pages. */
:root {
    --paper: #f4f2ec;
    --ink: #202b28;
    --red: #c53e30;
    --muted: #66706a;
    --line: #d9dcd3;
    --rail: 0px;
}

html { scroll-padding-top: 115px; }
body { background: var(--paper); }
.workspace { margin: 0; min-width: 0; }
.shell { width: calc(100% - 96px); max-width: 1280px; }
.skip-link { left: 24px; }

.site-header {
    position: sticky;
    inset: auto;
    top: 0;
    z-index: 40;
    width: 100%;
    height: 91px;
    min-height: 91px;
    max-height: none;
    padding: 0 4%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    overflow: visible;
    background: var(--paper);
    border-right: 0;
    border-bottom: 1px solid var(--line);
}
.brand {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 11px;
    padding: 0;
    margin: 0;
}
.brand-symbol { width: 40px; height: 40px; }
.brand-word { font-size: 24px; letter-spacing: -.9px; }
.brand-word small {
    margin-top: 6px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .7px;
}
.main-nav {
    position: static;
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 25px;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.main-nav a {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 10px 0;
    border-radius: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s;
}
.main-nav a::after {
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s;
}
.main-nav a.active,
.main-nav a:hover {
    color: var(--red);
    background: transparent;
}
.main-nav a.active::after,
.main-nav a:hover::after { transform: scaleX(1); }
.toolbar-actions {
    flex: 0 0 auto;
    gap: 12px;
    margin-left: auto;
}
.search-toggle {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--ink);
}
.search-toggle svg { width: 19px; height: 19px; }
.search-toggle:hover { background: #e9ebe3; }
.cart-link {
    min-height: 44px;
    gap: 8px;
    padding: 10px 13px;
    border-radius: 3px;
    background: var(--ink);
    white-space: nowrap;
}
.cart-link:hover { background: #35423c; }
.cart-link [data-cart-count] { border-radius: 2px; margin-left: 2px; }
.menu-toggle { display: none; order: 3; border-radius: 3px; }
.header-search { padding: 22px 0; border-bottom: 1px solid var(--line); }
.search-form { border-radius: 3px; }

.site-footer {
    background: #e9ebe3;
    border-top: 1px solid var(--line);
}
.footer-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    padding-block: 58px 48px;
}
.footer-intro > div { min-width: 0; }
.footer-intro .eyebrow { font-size: 10px; letter-spacing: .12em; }
.footer-intro h2 {
    margin-top: 16px;
    font-size: 34px;
    font-weight: 550;
    line-height: 1.5;
}
.footer-scope { max-width: 370px; padding-bottom: 5px; }
.footer-scope p { font-size: 13px; line-height: 1.9; }
.footer-scope a {
    display: inline-flex;
    align-items: center;
    gap: 36px;
    margin-top: 19px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--ink);
    font-size: 13px;
    font-weight: 600;
}
.footer-scope a:hover { color: var(--red); border-color: var(--red); }
.footer-scope a span { font-size: 20px; line-height: 1; }
.footer-bar { border-top: 1px solid #cfd4c9; }
.footer-bar nav a:hover { color: var(--red); }
.footer-bar nav a:last-child { border-color: #c4cbbf; border-radius: 3px; }

.button,
.flash,
.empty-state,
.toast,
.catalog-notice,
.product-card,
.rh-card-add,
.rh-detail-grid,
.rh-detail-visual,
.rh-detail-information,
.quantity-control,
.rh-checkout-steps,
.rh-order-summary,
.rh-cart-line,
.rh-cart-image,
.rh-form-panel,
.rh-field > input,
.rh-field > textarea,
.rh-receipt,
.rh-empty,
.rh-pagination a,
.rh-alert,
.rh-validation-summary.validation-summary-errors { border-radius: 3px; }
.button:hover { background: #35423c; }
.button-primary:hover { background: #a93025; }
.button-outline:hover { background: #e9ebe3; }
.catalog-notice { background: #e9ebe3; }
.product-image,
.rh-detail-visual,
.rh-cart-image { background: #eeeee7; }
.quantity-control button:hover { background: #e9ebe3; }
.rh-field > input,
.rh-field > textarea { background: #fafaf6; }
.rh-field > input::placeholder,
.rh-field > textarea::placeholder { color: #848c84; }
.rh-checkout-steps li > span { background: #e9ebe3; }
.rh-checkout-steps li.is-current > span { background: var(--red); }
.rh-success-mark { background: #f7e8df; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

@media (max-width: 1100px) and (min-width: 801px) {
    .site-header { padding-inline: 24px; gap: 16px; }
    .brand { gap: 9px; }
    .brand-symbol { width: 36px; height: 36px; }
    .brand-word { font-size: 22px; }
    .brand-word small { font-size: 9px; letter-spacing: .4px; }
    .main-nav { gap: 16px; }
    .main-nav a { font-size: 12px; }
    .toolbar-actions { gap: 6px; }
    .search-toggle { width: 38px; }
    .cart-link { padding-inline: 10px; gap: 6px; }
    .shell { width: calc(100% - 64px); }
}

@media (max-width: 800px) {
    html { scroll-padding-top: 96px; }
    .shell { width: calc(100% - 36px); }
    .site-header {
        height: 76px;
        min-height: 76px;
        padding: 0 18px;
        gap: 8px;
    }
    .brand { order: 0; gap: 9px; margin-right: auto; }
    .brand-symbol { width: 34px; height: 34px; }
    .brand-word { font-size: 22px; }
    .brand-word small { margin-top: 5px; font-size: 8px; letter-spacing: .6px; }
    .toolbar-actions { order: 2; margin-left: 0; gap: 6px; }
    .search-toggle { width: 38px; }
    .cart-link { gap: 5px; padding: 9px 10px; }
    .cart-label { display: none; }
    .cart-link [data-cart-count] { margin-left: 0; }
    .menu-toggle { display: inline-flex; flex: 0 0 38px; width: 38px; }
    .main-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        display: none;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
        max-height: calc(100dvh - 76px);
        overflow-y: auto;
        margin: 0;
        padding: 10px 22px 16px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 20px #202b2810;
    }
    .main-nav.is-open { display: flex; flex-direction: column; gap: 0; grid-template-columns: none; }
    .main-nav a { padding: 16px 4px; font-size: 14px; }
    .main-nav a::after { left: 4px; right: auto; bottom: 7px; width: 28px; }
    .header-search { padding-block: 16px; }
    .search-form { gap: 8px; padding: 10px; }
    .search-form input { padding: 8px 0; font-size: 14px; }
    .search-form > .button { padding-inline: 12px; gap: 6px; }
    .footer-intro { flex-direction: column; align-items: flex-start; gap: 28px; padding-block: 40px 32px; }
    .footer-intro h2 { font-size: 29px; }
    .footer-scope { max-width: none; padding: 0; }
    .footer-scope p { font-size: 12px; }
    .footer-scope a { margin-top: 14px; }
    .footer-bar { gap: 18px; }
    .footer-bar > div { min-width: 0; }
    .footer-bar > div > span { overflow-wrap: anywhere; }
    .footer-bar nav { gap: 18px; }
    .skip-link { left: 12px; }
}

@media (max-width: 380px) {
    .site-header { padding-inline: 12px; gap: 6px; }
    .brand { gap: 7px; }
    .brand-symbol { width: 30px; height: 30px; }
    .brand-word { font-size: 20px; letter-spacing: -.8px; }
    .brand-word small { font-size: 7.5px; letter-spacing: .45px; }
    .toolbar-actions { gap: 3px; }
    .search-toggle { width: 34px; }
    .cart-link { gap: 4px; padding-inline: 8px; }
    .cart-link svg { width: 16px; height: 16px; }
    .cart-link [data-cart-count] { min-width: 18px; }
    .menu-toggle { flex-basis: 32px; width: 32px; }
    .shell { width: calc(100% - 28px); }
    .search-form > svg { width: 17px; height: 17px; }
    .search-form > .button { padding-inline: 9px; }
}

@media print {
    .site-header,
    .site-footer,
    .header-search,
    .toast,
    .skip-link { display: none !important; }
    .workspace { margin: 0 !important; }
    .shell { width: 100%; max-width: none; }
}
