:root {
    --we-red: #d5161d;
    --we-red-dark: #ad1117;
    --we-ink: #111827;
    --we-ink-soft: #334155;
    --we-muted: #64748b;
    --we-paper: #ffffff;
    --we-canvas: #f5f5f3;
    --we-line: #e5e7eb;
    --we-line-strong: #d5d9df;
    --we-serif: "Libre Baskerville", Georgia, serif;
    --we-sans: "Inter", "Segoe UI", Arial, sans-serif;
    --we-shadow: 0 12px 34px rgba(20, 24, 33, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 0;
    background: var(--we-canvas);
    color: var(--we-ink);
    font-family: var(--we-sans);
    font-size: 16px;
    line-height: 1.55;
}

body::before {
    content: none;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -100px;
    z-index: 5000;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--we-ink);
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
}

.site-frame {
    width: 100%;
    min-height: 100vh;
}

.site-main {
    min-height: 45vh;
}

.container {
    width: min(100%, 1480px);
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 28px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.container .container {
    width: 100%;
    max-width: none;
    padding-inline: 0;
}

.site-header {
    position: relative;
    z-index: 50;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: var(--we-paper);
    box-shadow: 0 1px 0 var(--we-line);
}

.masthead {
    display: grid;
    grid-template-columns: minmax(370px, 1.15fr) auto auto;
    align-items: center;
    gap: 28px;
    min-height: 92px;
    padding: 14px 28px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
    text-decoration: none;
}

.site-logo {
    display: block;
    width: 178px;
    height: auto;
    max-width: none;
    margin: 0;
}

.brand-copy {
    min-width: 0;
    padding-left: 24px;
    border-left: 1px solid var(--we-line-strong);
}

.brand-copy strong {
    display: block;
    font-family: var(--we-serif);
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.brand-copy span {
    display: block;
    margin-top: 5px;
    color: var(--we-muted);
    font-size: 13px;
    white-space: nowrap;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 27px;
}

.primary-nav a,
.account-link {
    position: relative;
    color: var(--we-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.primary-nav a::after {
    position: absolute;
    right: 0;
    bottom: -12px;
    left: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--we-red);
    content: "";
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 160ms ease, transform 160ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.account-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--we-ink-soft);
}

.header-cta,
.btn,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: var(--we-red);
    color: #fff;
    font-family: var(--we-sans);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.header-cta {
    min-height: 48px;
    padding-inline: 22px;
    border-color: var(--we-red);
    background: #fff;
    color: var(--we-red);
}

.header-cta:hover,
.header-cta:focus-visible {
    background: var(--we-red);
    color: #fff;
    box-shadow: 0 8px 20px rgba(213, 22, 29, 0.19);
    transform: translateY(-1px);
}

.btn:hover,
.btn-primary:hover,
.btn:focus-visible,
.btn-primary:focus-visible {
    background: var(--we-red-dark);
    color: #fff;
    box-shadow: 0 8px 20px rgba(213, 22, 29, 0.2);
    transform: translateY(-1px);
}

.category-ribbon {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(300px, 520px);
    align-items: center;
    gap: 26px;
    min-height: 82px;
    padding: 12px 28px;
    overflow: hidden;
    border-top: 1px solid var(--we-line);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 55%, rgba(255, 255, 255, 0.78) 100%), url("editorial/walsrode-panorama.webp") center 47% / cover no-repeat;
}

.category-links {
    display: flex;
    align-items: center;
    gap: clamp(22px, 3vw, 48px);
    min-width: 0;
}

.category-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--we-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.category-links i {
    color: var(--we-red);
    font-size: 24px;
}

.header-search {
    display: flex;
    align-items: center;
    justify-self: end;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(213, 217, 223, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 7px 20px rgba(17, 24, 39, 0.08);
}

.header-search i {
    color: var(--we-ink-soft);
    font-size: 19px;
}

.header-search input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--we-ink);
    font: inherit;
}

.header-search button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--we-red);
    color: #fff;
    cursor: pointer;
}

.mobile-menu {
    display: none;
}

.alert {
    margin: 20px 0;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 8px;
    font-weight: 650;
}

.alert-success {
    border-color: #9fd9b3;
    background: #edf9f1;
    color: #17613b;
}

.alert-error {
    border-color: #edb3b6;
    background: #fff1f2;
    color: #8c1f24;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 7px;
    color: var(--we-ink);
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="password"],
input[type="tel"],
textarea,
select {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid var(--we-line-strong);
    border-radius: 7px;
    background: #fff;
    color: var(--we-ink);
    font: inherit;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--we-red);
    outline: 3px solid rgba(213, 22, 29, 0.12);
}

.site-footer {
    margin-top: 48px;
    padding: 36px 28px 24px;
    border: 0;
    border-top: 1px solid var(--we-line);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.45fr repeat(3, 1fr);
    gap: 36px;
}

.footer-brand img {
    width: 150px;
}

.footer-brand p {
    max-width: 310px;
    margin: 12px 0 0;
    color: var(--we-muted);
    font-size: 14px;
}

.footer-col h2 {
    margin: 0 0 12px;
    font-family: var(--we-serif);
    font-size: 16px;
}

.footer-col a {
    display: block;
    width: fit-content;
    margin-top: 8px;
    color: var(--we-muted);
    font-size: 14px;
    text-decoration: none;
}

.footer-col a:hover,
.footer-col a:focus-visible {
    color: var(--we-red);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--we-line);
    color: var(--we-muted);
    font-size: 12px;
}

@media (max-width: 1120px) {
    .masthead {
        grid-template-columns: 1fr auto;
    }

    .primary-nav {
        display: none;
    }

    .mobile-menu {
        position: relative;
        display: block;
    }

    .mobile-menu summary {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 9px 12px;
        border: 1px solid var(--we-line-strong);
        border-radius: 7px;
        background: #fff;
        font-weight: 750;
        cursor: pointer;
        list-style: none;
    }

    .mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .mobile-menu nav {
        position: absolute;
        top: calc(100% + 9px);
        right: 0;
        display: grid;
        width: 220px;
        padding: 10px;
        border: 1px solid var(--we-line);
        border-radius: 9px;
        background: #fff;
        box-shadow: var(--we-shadow);
    }

    .mobile-menu nav a {
        padding: 9px 10px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: 700;
    }

    .mobile-menu nav a:hover {
        background: #f8eded;
        color: var(--we-red);
    }

    .category-ribbon {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-links {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .header-search {
        justify-self: stretch;
        max-width: 640px;
    }
}

@media (max-width: 760px) {
    .container {
        padding-inline: 16px;
    }

    .masthead {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 12px 16px 14px;
    }

    .brand-lockup {
        gap: 14px;
    }

    .site-logo {
        width: 132px;
    }

    .brand-copy {
        padding-left: 14px;
    }

    .brand-copy strong {
        font-size: 22px;
    }

    .brand-copy span {
        white-space: normal;
        font-size: 11px;
    }

    .header-actions {
        justify-content: space-between;
        gap: 10px;
    }

    .header-cta {
        min-height: 42px;
        padding-inline: 14px;
    }

    .account-link span {
        display: none;
    }

    .category-ribbon {
        padding: 13px 16px 16px;
    }

    .category-links {
        gap: 24px;
    }

    .site-footer {
        margin-top: 34px;
        padding: 28px 16px 20px;
    }

    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 22px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .brand-copy {
        display: none;
    }

    .site-logo {
        width: 150px;
    }

    .site-footer-grid {
        grid-template-columns: 1fr;
    }
}

