:root {
    color-scheme: light;
    --page: #f5f7f8;
    --surface: #ffffff;
    --ink: #14222b;
    --text: #263640;
    --muted: #62717b;
    --line: #dbe3e0;
    --line-strong: #b8c6c1;
    --accent: #247a52;
    --accent-dark: #165d3b;
    --accent-soft: #e7f4ee;
    --nav: #19342d;
    --danger: #8a1f17;
    --danger-bg: #fff0ee;
    --success: #14532d;
    --success-bg: #e8f6e6;
    --warning: #66450f;
    --warning-bg: #fff8e9;
    --radius: 0.5rem;
    --max: 75rem;
    --shadow: 0 0.55rem 1.4rem rgba(20, 32, 44, 0.12);
    font-family: Arial, "Segoe UI", system-ui, sans-serif;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background: var(--page);
    color: var(--text);
    font-size: 1rem;
    margin: 0;
    overflow-x: hidden;
}

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

a {
    color: var(--accent-dark);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.05rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

p {
    margin-bottom: 1rem;
}

button,
.button-link {
    align-items: center;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    min-height: 3rem;
    padding: 0.72rem 1.1rem;
    text-decoration: none;
}

button:hover,
.button-link:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

button:active,
.button-link:active {
    transform: translateY(1px);
}

.secondary-button {
    background: #ffffff;
    border-color: var(--line-strong);
    color: var(--ink);
}

.secondary-button:hover {
    background: var(--accent-soft);
    color: var(--ink);
}

.text-link,
.secondary-link,
.card-link {
    color: var(--accent-dark);
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover,
.secondary-link:hover,
.card-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.22rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    transform: translateY(-160%);
    background: var(--ink);
    border-radius: var(--radius);
    color: #ffffff;
    padding: 0.7rem 0.9rem;
    text-decoration: none;
    z-index: 30;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    background: var(--surface);
    box-shadow: 0 2px 10px rgba(20, 32, 44, 0.12);
    position: sticky;
    top: 0;
    z-index: 20;
}

.top-accent {
    background: var(--accent);
    height: 1.75rem;
}

.shop-header {
    align-items: center;
    display: grid;
    column-gap: clamp(1.25rem, 2.4vw, 2rem);
    grid-template-areas: "brand search actions";
    grid-template-columns: minmax(15rem, auto) minmax(20rem, 1fr) max-content;
    row-gap: 1rem;
    margin: 0 auto;
    max-width: 90rem;
    min-height: 8.5rem;
    padding: 1.4rem clamp(1rem, 4vw, 2rem);
}

.brand {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    gap: 0.8rem;
    grid-area: brand;
    min-width: 0;
    text-decoration: none;
}

.brand-symbol {
    align-items: center;
    border: 4px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    display: inline-flex;
    font-size: 2rem;
    font-weight: 900;
    height: 4.5rem;
    justify-content: center;
    transform: rotate(-12deg);
    width: 4.5rem;
}

.brand-logo-img {
    display: block;
    height: 5.2rem;
    max-width: none;
    object-fit: cover;
    object-position: left center;
    width: clamp(12rem, 18vw, 20rem);
}

.brand-text {
    display: grid;
    gap: 0.05rem;
}

.brand-name {
    color: #686d72;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
}

.brand-name strong {
    color: var(--accent);
}

.brand-note {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.header-search {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--accent);
    border-radius: 999px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    grid-area: search;
    margin: 0;
    min-width: 0;
    padding: 0.25rem;
    width: 100%;
}

.header-search input {
    border: 0;
    border-radius: 999px;
    min-height: 3.25rem;
    min-width: 0;
    padding: 0 1.1rem;
    width: 100%;
}

.header-search input:focus {
    outline: 2px solid var(--accent-dark);
    outline-offset: 2px;
}

.header-search button {
    border-radius: 999px;
    min-height: 3.25rem;
    min-width: 5.75rem;
    padding-inline: 1.1rem;
    white-space: nowrap;
}

.header-actions {
    align-items: center;
    display: flex;
    gap: clamp(0.75rem, 1.4vw, 1.1rem);
    grid-area: actions;
    justify-content: flex-end;
    min-width: max-content;
}

.header-actions a {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    font-weight: 700;
    min-height: 2.5rem;
    text-decoration: none;
    white-space: nowrap;
}

.header-action-icon {
    align-items: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent-dark);
    display: inline-flex;
    height: 2.5rem;
    justify-content: center;
    margin-right: 0.55rem;
    width: 2.5rem;
}

.header-action-icon svg {
    fill: none;
    height: 1.25rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    width: 1.25rem;
}

.header-shell {
    background: var(--nav);
}

.header-shell {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    margin: 0 auto;
    max-width: none;
}

.products-menu {
    position: relative;
}

.products-entry {
    align-items: center;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 1.15rem;
    font-weight: 900;
    justify-content: center;
    min-height: 3.25rem;
    text-decoration: none;
    width: 100%;
}

.products-entry::before {
    content: "☰";
    font-size: 1.1rem;
    margin-right: 0.65rem;
}

.products-entry::-webkit-details-marker {
    display: none;
}

.products-entry::marker {
    content: "";
}

.products-menu.is-active .products-entry {
    color: var(--accent-dark);
}

.products-dropdown {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    left: 0;
    min-width: 18rem;
    position: absolute;
    top: 100%;
    z-index: 25;
}

.products-menu[open] .products-dropdown {
    display: grid;
}

.products-dropdown a {
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 800;
    padding: 0.85rem 1rem;
    text-decoration: none;
}

.products-dropdown a:last-child {
    border-bottom: 0;
}

.products-dropdown a:hover,
.products-dropdown a:focus-visible,
.products-dropdown a.is-active {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.site-nav {
    align-items: center;
    display: flex;
    justify-content: center;
}

.site-nav a {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.75rem clamp(0.75rem, 2.2vw, 2rem);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: #ffffff;
    color: var(--ink);
}

.page,
.page-section,
.home-hero {
    margin: 0 auto;
    max-width: var(--max);
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

.page,
.page-section {
    padding-bottom: clamp(2.25rem, 5vw, 4rem);
    padding-top: clamp(2.25rem, 5vw, 4rem);
}

.home-hero {
    padding-top: 0;
}

.hero-banner {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(20, 34, 43, 0.94), rgba(25, 52, 45, 0.78)),
        var(--nav);
    border-radius: 0 0 var(--radius) var(--radius);
    display: grid;
    min-height: clamp(19rem, 42vw, 30rem);
    overflow: hidden;
    padding: clamp(1.5rem, 5vw, 3.5rem);
}

.hero-carousel {
    position: relative;
}

.hero-carousel-viewport {
    border-radius: 0 0 var(--radius) var(--radius);
    display: grid;
    overflow: hidden;
    position: relative;
}

.hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    transform: translateX(1.25rem);
    transition: opacity 360ms ease, transform 360ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.hero-carousel-controls {
    align-items: center;
    bottom: 1rem;
    display: flex;
    gap: 0.65rem;
    justify-content: flex-end;
    padding-inline: 1rem;
    pointer-events: none;
    position: absolute;
    right: 0;
    z-index: 3;
}

.carousel-control,
.carousel-indicator {
    pointer-events: auto;
}

.carousel-control {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    color: var(--ink);
    font-size: 1.45rem;
    min-height: 2.7rem;
    padding: 0;
    width: 2.7rem;
}

.carousel-control:hover,
.carousel-control:focus-visible {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
    color: var(--accent-dark);
}

.carousel-indicators {
    align-items: center;
    background: rgba(20, 34, 43, 0.58);
    border-radius: 999px;
    display: flex;
    gap: 0.35rem;
    padding: 0.35rem;
}

.carousel-indicator {
    background: rgba(255, 255, 255, 0.62);
    border: 0;
    border-radius: 999px;
    min-height: 0.7rem;
    min-width: 0;
    padding: 0;
    width: 0.7rem;
}

.carousel-indicator span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.carousel-indicator.is-active {
    background: #ffffff;
    width: 1.45rem;
}

.hero-banner.has-image,
.category-photo.has-image {
    background-position: center;
    background-size: cover;
}

.hero-copy-block {
    display: grid;
    gap: 1rem;
    max-width: 36rem;
}

.hero-copy-block h1,
.hero-copy-block .lead,
.hero-copy-block .section-kicker {
    color: #ffffff;
}

.hero-copy-block h1 {
    font-size: clamp(2.1rem, 5vw, 4rem);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.lead,
.hero-copy,
.page-title p,
.section-intro p,
.form-intro p {
    color: var(--muted);
    font-size: clamp(1.02rem, 1.8vw, 1.2rem);
    line-height: 1.55;
    max-width: 42rem;
}

.section-kicker,
.eyebrow,
.product-category {
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.benefit-strip {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 0.9rem;
}

.benefit-strip article {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 0 0.65rem;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 4.6rem;
    padding: 0.7rem;
}

.benefit-strip span {
    align-items: center;
    background: var(--accent);
    border-radius: var(--radius);
    color: #ffffff;
    display: flex;
    font-size: 1.4rem;
    font-weight: 900;
    height: 2.9rem;
    justify-content: center;
    width: 2.9rem;
}

.benefit-strip strong {
    align-self: center;
    color: var(--ink);
    justify-self: center;
    line-height: 1.15;
    text-align: center;
}

.benefit-strip small {
    color: var(--muted);
    font-size: 0.9rem;
}

.shop-section-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.category-showcase {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: inherit;
    display: grid;
    gap: 0.55rem;
    min-height: 15rem;
    overflow: hidden;
    padding: 0 0 1rem;
    text-decoration: none;
}

.category-photo {
    background: var(--accent-soft);
    display: block;
    min-height: 9rem;
}

.category-card:nth-child(2) .category-photo {
    background: var(--accent-soft);
}

.category-card:nth-child(3) .category-photo {
    background: var(--accent-soft);
}

.category-card:nth-child(4) .category-photo {
    background: var(--accent-soft);
}

.category-card:nth-child(5) .category-photo {
    background: var(--accent-soft);
}

.category-card strong,
.category-card small {
    padding-inline: 1rem;
}

.category-card strong {
    color: var(--ink);
    font-size: 1.05rem;
}

.category-card small {
    color: var(--muted);
}

.catalog-shell {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: minmax(14rem, 0.35fr) minmax(0, 1fr);
}

.catalog-sidebar,
.filter-panel,
.form-surface,
.purchase-panel,
.service-panel,
.empty-state,
.notice,
.contact-card,
.info-band {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.catalog-sidebar {
    align-self: start;
    padding: 1rem;
}

.catalog-sidebar h1 {
    font-size: 1.6rem;
}

.filter-panel {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.filter-fieldset {
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0.85rem;
}

.filter-fieldset legend {
    color: var(--ink);
    font-weight: 900;
    padding-inline: 0.25rem;
}

.choice-row {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    margin: 0;
}

.choice-row input {
    flex: 0 0 auto;
}

.price-range,
.filter-actions {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

form {
    display: grid;
    gap: 1rem;
    margin: 0;
}

label {
    color: var(--ink);
    display: block;
    font-weight: 800;
    margin-bottom: 0.38rem;
}

input,
select,
textarea {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 0.25rem;
    color: var(--ink);
    min-height: 3rem;
    padding: 0.72rem 0.82rem;
    width: 100%;
}

input[type="radio"] {
    min-height: auto;
    width: auto;
}

textarea {
    resize: vertical;
}

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

.optional-label {
    color: var(--muted);
    font-weight: 500;
}

.checkbox-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .65rem;
    align-items: start;
}

.checkbox-field input {
    margin-top: .2rem;
    min-height: auto;
    width: auto;
}

.checkbox-field .field-error {
    grid-column: 1 / -1;
}

input::placeholder,
textarea::placeholder {
    color: #8c96a3;
}

.result-count {
    color: var(--muted);
    font-weight: 800;
    margin: 0;
}

.catalog-toolbar {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.active-filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    background: var(--accent-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--accent-dark);
    font-size: 0.88rem;
    font-weight: 900;
    padding: 0.35rem 0.65rem;
}

.reset-link {
    color: var(--danger);
    font-weight: 900;
}

.sort-form {
    align-items: end;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: minmax(11rem, 1fr) auto;
    max-width: 24rem;
}

.sort-form label {
    grid-column: 1 / -1;
    margin: 0;
}

.catalog-pagination {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.3rem;
}

.catalog-pagination a,
.catalog-pagination span {
    border: 1px solid var(--line);
    border-radius: 0.35rem;
    color: var(--ink);
    font-weight: 900;
    padding: 0.55rem 0.8rem;
    text-decoration: none;
}

.catalog-pagination a:hover,
.catalog-pagination a:focus-visible {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.catalog-pagination .is-disabled {
    color: var(--muted);
    pointer-events: none;
}

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

.promotion-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.promotion-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    overflow: hidden;
}

.promotion-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.promotion-card-body {
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
}

.promotion-card-body h2 {
    font-size: 1.2rem;
    margin: 0;
}

.promotion-target {
    color: var(--muted);
    font-weight: 700;
    margin: 0;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: inherit;
    display: grid;
    gap: 0.8rem;
    overflow: hidden;
    padding-bottom: 1rem;
    text-decoration: none;
}

.product-card-marker {
    display: block;
    height: 11rem;
    min-height: 11rem;
    object-fit: cover;
    width: 100%;
}

.product-card-main,
.product-card-side,
.product-card .card-link {
    padding-inline: 1rem;
}

.product-card-main {
    display: grid;
    gap: 0.35rem;
}

.product-card h3,
.product-card p {
    margin: 0;
}

.product-card p:not(.product-category) {
    color: var(--muted);
}

.product-card-side {
    display: grid;
    gap: 0.35rem;
}

.price {
    color: var(--accent-dark);
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0;
}

.old-price {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
    text-decoration: line-through;
}

.promo-badge {
    background: var(--danger-bg);
    border: 1px solid #e5b7b1;
    border-radius: 0.25rem;
    color: var(--danger);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 900;
    justify-self: start;
    padding: 0.25rem 0.5rem;
}

.stock-label {
    color: var(--muted);
    font-weight: 800;
}

.eligibility-label,
.product-note {
    background: var(--warning-bg);
    border-left: 3px solid #e1b648;
    color: var(--warning);
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 800;
    justify-self: start;
    padding: 0.28rem 0.55rem;
}

.empty-state {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.5rem;
    padding: clamp(1.1rem, 4vw, 1.5rem);
}

.empty-state .button-link {
    justify-self: start;
}

.back-link {
    display: inline-flex;
    margin-bottom: 1.5rem;
}

.detail-layout,
.form-layout,
.split-section {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.detail-main {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 1rem;
    padding: clamp(1.25rem, 4vw, 2rem);
}

.purchase-panel {
    align-self: start;
    display: grid;
    gap: 0.85rem;
    padding: clamp(1rem, 4vw, 1.35rem);
}

.inline-form {
    border-top: 1px solid var(--line);
    gap: 0.75rem;
    grid-template-columns: minmax(5rem, 0.4fr) minmax(0, 1fr);
    margin-top: 0.4rem;
    padding-top: 1rem;
}

.inline-form label,
.inline-form button {
    grid-column: 1 / -1;
}

.definition-grid,
.contact-details {
    display: grid;
    gap: 0;
    margin: 0;
}

.definition-grid div,
.contact-details div {
    border-top: 1px solid var(--line);
    padding: 0.75rem 0;
}

.definition-grid dt,
.contact-details dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.definition-grid dd,
.contact-details dd {
    color: var(--ink);
    margin: 0.2rem 0 0;
}

.notice,
.form-surface,
.contact-card,
.service-panel,
.info-band {
    padding: clamp(1rem, 4vw, 1.35rem);
}

.notice ul,
.roadmap-list {
    color: var(--muted);
    margin: 0;
    padding-left: 1.25rem;
}

.form-secondary {
    border-top: 1px solid var(--line);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.products-entry::before {
    background:
        linear-gradient(var(--ink), var(--ink)) 0 0 / 1rem 2px no-repeat,
        linear-gradient(var(--ink), var(--ink)) 0 50% / 1rem 2px no-repeat,
        linear-gradient(var(--ink), var(--ink)) 0 100% / 1rem 2px no-repeat;
    content: "";
    height: 0.75rem;
    width: 1rem;
}

.detail-photo-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 1rem;
    overflow: hidden;
    padding: 0 0 1rem;
}

.detail-photo {
    aspect-ratio: 1 / 1;
    display: block;
    min-height: 17rem;
    object-fit: cover;
    width: 100%;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-inline: 1rem;
}

.detail-badges span {
    background: var(--accent-soft);
    border: 1px solid #c9e8bd;
    border-radius: 999px;
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 900;
    padding: 0.38rem 0.65rem;
}

.detail-buybox {
    box-shadow: var(--shadow);
}

.auth-layout .form-intro,
.contact-layout .form-intro {
    align-content: end;
    align-self: stretch;
    background: var(--accent-soft);
    border-radius: var(--radius);
    color: #ffffff;
    display: grid;
    min-height: 25rem;
    padding: clamp(1.3rem, 4vw, 2rem);
}

.contact-layout .form-intro {
    background: var(--accent-soft);
}

.auth-layout .form-intro h1,
.auth-layout .form-intro p,
.auth-layout .form-intro .section-kicker,
.contact-layout .form-intro h1,
.contact-layout .form-intro p,
.contact-layout .form-intro .section-kicker,
.contact-layout .contact-details dt,
.contact-layout .contact-details dd {
    color: #ffffff;
}

.form-surface {
    box-shadow: var(--shadow);
}

.field-error {
    color: var(--danger);
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0.35rem 0 0;
}

.choice-group {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 1rem;
}

.choice-group legend {
    color: var(--ink);
    font-weight: 800;
    padding-inline: 0.25rem;
}

.choice-group label {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    margin: 0;
}

.alert {
    background: var(--danger-bg);
    border-left: 3px solid #d48a82;
    color: var(--danger);
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 0.85rem 0.95rem;
}

.responsive-table {
    overflow-x: auto;
}

.order-table {
    border-collapse: collapse;
    min-width: 42rem;
    width: 100%;
}

.order-table th,
.order-table td {
    border-bottom: 1px solid var(--line);
    padding: 0.85rem;
    text-align: left;
}

.order-table th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.status-pill {
    background: var(--warning-bg);
    border: 1px solid #e1b648;
    border-radius: 999px;
    color: var(--warning);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 900;
    padding: 0.28rem 0.6rem;
}

.alert-success {
    background: var(--success-bg);
    border-left-color: var(--accent);
    color: var(--success);
}

.contact-details {
    margin-top: 1.5rem;
}

.service-panel,
.info-band {
    align-items: start;
    display: grid;
    gap: 1rem;
}

.service-panel p,
.info-band p {
    color: var(--muted);
    margin-bottom: 0;
}

.location-choice-list,
.location-card-grid {
    display: grid;
    gap: 0.8rem;
}

.location-choice {
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: auto 1fr;
    padding: 0.9rem;
}

.location-choice input {
    margin-top: 0.25rem;
}

.location-choice span,
.location-card {
    display: grid;
    gap: 0.35rem;
}

.location-choice span span,
.location-card p {
    color: var(--muted);
    margin: 0;
}

.location-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.location-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
}

.cart-lines {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
}

.cart-line {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
}

.cart-line:last-child {
    border-bottom: 0;
}

.quantity-form {
    align-items: end;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: minmax(5rem, 0.4fr) auto;
}

.quantity-form label {
    grid-column: 1 / -1;
}

.cart-line-total {
    display: grid;
    gap: 0.65rem;
    justify-items: start;
}

.cart-line-total strong,
.cart-summary h2 + p {
    color: var(--accent-dark);
    font-size: 1.45rem;
    font-weight: 900;
}

.prose {
    max-width: 58rem;
}

.prose p,
.prose li {
    color: var(--muted);
    font-size: 1.06rem;
}

.site-footer {
    background: var(--nav);
    color: #ffffff;
}

.footer-shell {
    align-items: start;
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.4rem);
    margin: 0 auto;
    max-width: var(--max);
    padding: 2.25rem clamp(1rem, 4vw, 2rem);
}

.site-footer .brand-name,
.site-footer .brand-note,
.footer-primary p,
.footer-locations p,
.footer-copy {
    color: #ffffff;
}

.footer-primary,
.footer-secondary,
.footer-locations,
.footer-nav {
    align-content: start;
    display: grid;
    gap: 0.8rem;
}

.footer-primary p,
.footer-copy,
.footer-locations p {
    margin: 0;
}

.footer-primary {
    gap: 1rem;
    order: 1;
}

.footer-locations {
    order: 2;
}

.footer-nav {
    gap: 0.45rem;
    order: 3;
}

.footer-secondary {
    order: 4;
}

.footer-contact {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
}

.footer-locations > div {
    display: grid;
    gap: 0.75rem;
}

.footer-locations p {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    gap: 0.2rem;
    padding-top: 0.75rem;
}

.footer-locations strong,
.footer-locations span,
.footer-locations a {
    color: #ffffff;
}

.footer-locations span {
    opacity: 0.82;
}

.footer-nav h2,
.footer-locations h2 {
    color: #ffffff;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    margin: 0 0 0.15rem;
    text-transform: uppercase;
}

.footer-nav a,
.footer-link-button {
    appearance: none;
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
    text-decoration: none;
    text-align: left;
}

.footer-nav a:hover,
.footer-link-button:hover {
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.newsletter-panel {
    display: grid;
    gap: 0.7rem;
    max-width: 36rem;
}

.newsletter-panel h2,
.newsletter-panel p {
    color: #ffffff;
    margin: 0;
}

.newsletter-panel h2 {
    font-size: 1rem;
}

.newsletter-link {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    color: #ffffff;
    display: inline-flex;
    font-weight: 700;
    justify-self: start;
    padding: 0.6rem 0.8rem;
    text-decoration: none;
}

.newsletter-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.newsletter-embed {
    background: #ffffff;
    border: 0;
    border-radius: var(--radius);
    min-height: 25rem;
    width: 100%;
}

.social-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-links--footer {
    margin-top: 0.4rem;
}

.social-links--footer .social-link {
    min-width: 2.4rem;
    padding-inline: 0.45rem;
    width: auto;
}

.social-links--contact {
    gap: 0.65rem;
}

.social-link {
    align-items: center;
    border: 1px solid var(--line-strong);
    color: var(--accent-dark);
    display: inline-flex;
    flex: none;
    justify-content: center;
    text-decoration: none;
}

.social-link:not(.social-link--contact) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    color: #ffffff;
    min-height: 2.4rem;
    width: 2.4rem;
}

.social-link__icon {
    display: block;
    flex: none;
    fill: currentColor;
}

.social-link__icon--footer {
    height: 22px;
    width: 22px;
}

.social-link:not(.social-link--contact):hover,
.social-link:not(.social-link--contact):focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: #ffffff;
}

.contact-social {
    align-content: start;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 1rem;
    margin-top: clamp(1rem, 3vw, 1.5rem);
    padding-top: clamp(1rem, 3vw, 1.35rem);
}

.contact-social h2 {
    font-size: clamp(1.35rem, 2.1vw, 1.75rem);
    line-height: 1.15;
    margin: 0;
}

.social-link--contact {
    background: #ffffff;
    border-radius: 999px;
    min-height: 2.75rem;
    padding: 0.45rem;
    width: 2.75rem;
}

.social-link__icon--contact {
    height: 26px;
    width: 26px;
}

.social-link--contact:hover,
.social-link--contact:focus-visible {
    background: var(--accent-soft);
    border-color: var(--accent);
}

a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #1d5f9d;
    outline-offset: 3px;
}

@media (min-width: 640px) {
    .definition-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (min-width: 820px) {
    .detail-layout,
    .form-layout {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }

    .service-panel,
    .info-band {
        align-items: center;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .cart-line {
        align-items: start;
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.72fr) minmax(10rem, 0.45fr);
    }

    .cart-line-total {
        justify-items: end;
    }
}

@media (min-width: 980px) {
    .footer-shell {
        grid-template-columns: minmax(16rem, 1.25fr) minmax(10rem, 0.75fr) minmax(13rem, 1fr) minmax(14rem, 1fr);
    }

    .product-detail .detail-layout {
        align-items: start;
        grid-template-columns: minmax(17rem, 0.85fr) minmax(0, 1.15fr) minmax(17rem, 0.7fr);
    }

    .detail-buybox {
        position: sticky;
        top: 14rem;
    }
}

@media (max-width: 1120px) {
    .shop-header {
        grid-template-areas:
            "brand actions"
            "search search";
        grid-template-columns: minmax(0, 1fr) max-content;
        min-height: 0;
    }

    .header-search {
        max-width: none;
    }

    .header-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 1080px) {

    .benefit-strip,
    .category-showcase,
    .product-grid,
    .catalog-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-sidebar {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .top-accent {
        height: 0.7rem;
    }

    .shop-header {
        column-gap: 0.85rem;
        grid-template-columns: minmax(0, 1fr) minmax(0, auto);
        padding-inline: 0.9rem;
        padding-block: 1rem;
    }

    .brand {
        gap: 0.55rem;
    }

    .brand-symbol {
        border-width: 3px;
        font-size: 1.55rem;
        height: 2.8rem;
        min-width: 2.8rem;
        width: 2.8rem;
    }

    .brand-logo-img {
        height: 3.4rem;
        width: clamp(8rem, 34vw, 12rem);
    }

    .brand-name {
        font-size: 0.96rem;
    }

    .brand-note {
        display: none;
    }

    .header-actions {
        display: grid;
        grid-template-columns: repeat(2, max-content);
        gap: 0.35rem;
        min-width: 0;
    }

    .header-actions a {
        font-size: 0.78rem;
        justify-content: center;
        min-height: 2.8rem;
        padding-inline: 0.1rem;
    }

    .header-search {
        gap: 0.25rem;
    }

    .header-search input {
        min-height: 2.9rem;
        padding-inline: 0.85rem;
    }

    .header-search button {
        min-height: 2.9rem;
        min-width: 4.7rem;
        padding-inline: 0.75rem;
    }

    .header-shell {
        grid-template-columns: 1fr;
    }

    .products-entry {
        min-height: 3rem;
    }

    .products-dropdown {
        position: static;
        width: 100%;
    }

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

    .hero-banner {
        min-height: 24rem;
    }

    .benefit-strip,
    .category-showcase,
    .product-grid,
    .catalog-shell {
        grid-template-columns: 1fr;
    }

    .shop-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Public storefront design system override: keep the existing Thymeleaf classes,
   but normalize density, contrast, imagery, controls and responsive behavior. */
.site-header {
    border-bottom: 1px solid var(--line);
    box-shadow: 0 0.2rem 0.7rem rgba(20, 34, 43, 0.08);
}

.top-accent {
    height: 0.45rem;
}

.shop-header {
    grid-template-columns: minmax(13rem, auto) minmax(18rem, 1fr) auto;
    max-width: 88rem;
    min-height: 5.9rem;
    padding-block: 0.9rem;
}

.brand-symbol {
    border-width: 3px;
    font-size: 1.75rem;
    height: 3.45rem;
    width: 3.45rem;
}

.brand-name {
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.1;
}

.brand-name strong {
    color: var(--accent);
    display: block;
}

.header-search {
    border-color: var(--line-strong);
    border-radius: 0.65rem;
    gap: 0.6rem;
}

.header-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.header-search input,
.header-search button {
    min-height: 2.7rem;
}

.header-actions {
    gap: 0.6rem;
    min-width: 0;
}

.header-actions a {
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    font-size: 0.92rem;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0.55rem 0.75rem;
}

.header-action-icon {
    background: var(--accent-soft);
    border: 0;
    border-radius: 0.25rem;
    color: var(--accent-dark);
    height: 2.25rem;
    margin-right: 0;
    width: 2.25rem;
}

.header-actions a:hover,
.header-actions a:focus-visible {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.header-shell {
    grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
}

.products-entry,
.site-nav a {
    min-height: 3rem;
}

.site-nav a {
    font-size: 0.92rem;
    white-space: nowrap;
}

.products-dropdown {
    min-width: min(22rem, 100vw);
}

.home-hero {
    padding-top: 1.25rem;
}

.hero-banner {
    background:
        linear-gradient(90deg, rgba(20, 34, 43, 0.94), rgba(25, 52, 45, 0.78)),
        var(--nav);
    border-radius: 0.65rem;
    min-height: clamp(20rem, 36vw, 28rem);
    position: relative;
}

.hero-carousel-viewport {
    border-radius: 0.65rem;
}

.hero-banner::after {
    background:
        linear-gradient(90deg, transparent 0 50%, rgba(255, 255, 255, 0.08) 50% 51%, transparent 51%),
        linear-gradient(0deg, transparent 0 50%, rgba(255, 255, 255, 0.08) 50% 51%, transparent 51%);
    background-size: 4rem 4rem;
    content: "";
    inset: 0;
    opacity: 0.45;
    position: absolute;
}

.hero-copy-block {
    position: relative;
    z-index: 1;
}

.hero-copy-block h1 {
    max-width: 12ch;
    text-shadow: none;
}

.hero-copy-block .button-link {
    justify-self: start;
    min-width: min(100%, 18rem);
}

.benefit-strip {
    gap: 0.9rem;
}

.benefit-strip article {
    border-radius: 0.5rem;
    box-shadow: none;
    min-height: 4.25rem;
    padding: 0.9rem;
}

.benefit-strip span {
    background: var(--accent-soft);
    border-radius: 0.25rem;
    color: var(--accent-dark);
    font-size: 1rem;
    height: 2.35rem;
    width: 2.35rem;
}

.category-card,
.product-card,
.catalog-sidebar,
.form-surface,
.purchase-panel,
.service-panel,
.empty-state,
.notice,
.contact-card,
.info-band,
.detail-main,
.detail-photo-panel,
.cart-lines {
    border-radius: 0.65rem;
    box-shadow: none;
}

.category-card {
    min-height: 12rem;
    padding: 1.25rem;
}

.category-photo {
    align-items: center;
    background: var(--accent-soft);
    border-radius: 0.5rem;
    display: flex;
    min-height: 3.75rem;
}

.category-photo.has-image::before {
    content: "";
}

.category-photo::before {
    color: var(--accent-dark);
    content: "+";
    font-size: 2rem;
    font-weight: 900;
    margin-left: 1.25rem;
}

.category-card:hover,
.category-card:focus-visible,
.product-card:hover,
.product-card:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0.2rem 0.7rem rgba(20, 34, 43, 0.08);
}

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

.product-card-media-link {
    background: var(--accent-soft);
    display: block;
}

.product-card-marker {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
}

.product-card-main {
    padding-top: 1.25rem;
}

.product-card-side {
    gap: 0.6rem;
    padding-bottom: 0.9rem;
    padding-top: 0.9rem;
}

.product-card .card-link {
    border-top: 1px solid var(--line);
    padding-bottom: 0.9rem;
    padding-top: 0.9rem;
}

.eligibility-label,
.product-note,
.status-pill {
    border: 1px solid #e4c269;
    border-left: 1px solid #e4c269;
    border-radius: 0.25rem;
}

.auth-layout .form-intro,
.contact-layout .form-intro,
.form-layout > .form-intro {
    align-content: start;
    background: var(--accent-soft);
    border: 1px solid var(--line);
    color: var(--ink);
    min-height: 18rem;
}

.auth-layout .form-intro h1,
.auth-layout .form-intro p,
.auth-layout .form-intro .section-kicker,
.contact-layout .form-intro h1,
.contact-layout .form-intro p,
.contact-layout .form-intro .section-kicker,
.contact-layout .contact-details dt,
.contact-layout .contact-details dd {
    color: var(--ink);
}

.auth-layout .form-intro h1 {
    font-size: 2.65rem;
    line-height: 1;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.form-surface {
    box-shadow: none;
}

.alert {
    border: 1px solid #e5b7b1;
    border-left: 4px solid var(--danger);
    border-radius: 0.45rem;
}

.alert-success {
    border-color: #b7dcca;
    border-left-color: var(--success);
}

.placeholder-page,
.error-page {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    margin-bottom: 3.25rem;
    margin-top: 2.4rem;
}

@media (max-width: 1180px) {
    .shop-header {
        grid-template-columns: minmax(12rem, auto) minmax(14rem, 1fr) auto;
    }

    .header-actions a {
        font-size: 0;
        gap: 0;
        padding-inline: 0.65rem;
    }

    .header-actions a > span:not(.header-action-icon) {
        font-size: 0;
    }
}

@media (max-width: 760px) {
    html {
        scroll-behavior: auto;
    }

    .site-header {
        position: static;
    }

    .top-accent {
        height: 0.45rem;
    }

    .shop-header {
        grid-template-areas:
            "brand actions"
            "search search";
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 0;
        padding: 0.9rem;
    }

    .brand {
        grid-area: brand;
    }

    .brand-symbol {
        border-width: 2px;
        font-size: 1.35rem;
        height: 2.65rem;
        min-width: 2.65rem;
        width: 2.65rem;
    }

    .brand-logo-img {
        height: 3.2rem;
        width: clamp(7.5rem, 34vw, 11rem);
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .header-actions {
        display: flex;
        grid-area: actions;
    }

    .header-actions a {
        min-height: 2.55rem;
        padding-inline: 0.5rem;
    }

    .header-action-icon {
        display: inline-flex;
        height: 2.25rem;
        width: 2.25rem;
    }

    .header-search {
        grid-area: search;
    }

    .header-shell {
        grid-template-columns: 1fr;
    }

    .products-entry {
        justify-content: flex-start;
        padding-inline: 1rem;
    }

    .products-dropdown {
        box-shadow: none;
        min-width: 0;
    }

    .site-nav a {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: flex-start;
        min-width: 0;
        padding-inline: 1rem;
        white-space: normal;
    }

    .hero-banner {
        min-height: 0;
    }

    .hero-carousel-controls {
        bottom: 0.75rem;
        justify-content: center;
        left: 0;
        right: 0;
    }

    .hero-copy-block h1 {
        max-width: none;
    }

    .product-card {
        grid-template-columns: minmax(7rem, 0.38fr) minmax(0, 1fr);
        grid-template-rows: auto auto auto;
    }

    .catalog-toolbar {
        align-items: stretch;
        display: grid;
    }

    .sort-form {
        max-width: none;
    }

    .product-card-media-link {
        grid-row: 1 / 4;
    }

    .product-card-marker {
        aspect-ratio: auto;
        height: 100%;
        min-height: 11rem;
    }

    .product-card-main,
    .product-card-side,
    .product-card .card-link {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .product-card-main {
        padding-top: 0.9rem;
    }

    .product-card-side {
        padding-bottom: 0.6rem;
        padding-top: 0.6rem;
    }

    .product-card .card-link {
        border-top: 0;
        padding-bottom: 0.9rem;
        padding-top: 0;
    }
}

@media (max-width: 430px) {
    body {
        font-size: 0.97rem;
    }

    h1 {
        font-size: clamp(1.8rem, 11vw, 2.35rem);
    }

    .page,
    .page-section,
    .home-hero {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .button-link,
    button {
        white-space: normal;
        width: 100%;
    }

    .header-search button,
    .header-actions a {
        width: auto;
    }

    .product-card {
        grid-template-columns: 1fr;
    }

    .price-range,
    .filter-actions,
    .sort-form {
        grid-template-columns: 1fr;
    }

    .product-card-media-link {
        grid-row: auto;
    }

    .product-card-marker {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
      }

    .hero-slide {
        transform: none;
        transition: none;
    }
  }

/* Form divider for auth pages */
.form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.9rem;
}

.form-divider::before,
.form-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

#google-signin-container {
    margin-top: 0.5rem;
}

/* Google auth error */
.google-auth-error {
    background: var(--danger-bg);
    border: 1px solid #e5b7b1;
    border-radius: var(--radius);
    color: var(--danger);
    padding: 0.8rem 0.9rem;
    font-weight: 700;
    margin: 1rem 0;
}

.card-cart-form {
    display: grid;
    padding: 0 1rem 1rem;
}

.card-cart-form button,
.card-cart-disabled {
    border-radius: 6px;
    font-size: 0.92rem;
    min-height: 2.6rem;
    width: 100%;
}

.card-cart-disabled {
    background: #eef2f1;
    border: 1px solid var(--line);
    color: var(--muted);
    cursor: not-allowed;
    font-weight: 800;
    margin: 0 1rem 1rem;
    max-width: calc(100% - 2rem);
}

.map-panel {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.map-panel-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: space-between;
}

.map-panel-header h2 {
    margin: 0;
}

.map-consent-note {
    color: var(--muted);
    font-weight: 700;
    margin: 0;
}

.map-embed {
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 18rem;
    width: 100%;
}

.project-page {
    background: var(--surface);
}

.project-logos {
    align-items: center;
    background: #fff;
    box-sizing: border-box;
    display: grid;
    gap: clamp(1.5rem, 4vw, 4rem);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: center;
    overflow: hidden;
    padding: 1.125rem clamp(1.25rem, 4vw, 4rem);
    width: 100%;
}

.project-logo-cell {
    align-items: center;
    display: flex;
    justify-content: center;
    line-height: 0;
    min-height: 5.625rem;
    min-width: 0;
    flex-direction: column;
    gap: 0.35rem;
}

.project-eu-funding {
    color: #003399;
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.project-logo {
    display: block;
    flex-shrink: 0;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.project-logo-eu {
    max-height: 6.875rem;
    max-width: min(100%, 12.5rem);
}

.project-logo-government {
    max-height: 6.875rem;
    max-width: min(100%, 8.125rem);
}

.project-logo-regio {
    max-height: 7.1875rem;
    max-width: min(100%, 9.375rem);
}

.project-logo-adr {
    max-height: 6.25rem;
    max-width: min(100%, 15rem);
}

.project-logo-placeholder {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.project-hero,
.project-section,
.project-band {
    margin: 0 auto;
    max-width: var(--max);
    padding: 2rem 1rem;
}

.project-hero {
    display: grid;
    gap: 1.35rem;
    min-height: 0;
    place-items: center stretch;
    text-align: center;
}

.project-hero__content {
    margin-inline: auto;
    max-width: 56rem;
}

.project-title {
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 800;
    margin-inline: auto;
    max-width: 56rem;
}

.project-note,
.project-draft,
.project-placeholder {
    background: var(--warning-bg);
    border: 1px solid #ead8ad;
    border-radius: 8px;
    color: var(--warning);
    font-weight: 700;
    padding: 0.85rem 1rem;
}

.project-mandatory,
.project-slogan {
    font-weight: 800;
    margin: 0;
}

.project-slogan {
    color: var(--accent-dark);
    text-align: center;
}

.project-band {
    background: #f8faf9;
    border-block: 1px solid var(--line);
    max-width: none;
}

.project-band > * {
    margin-inline: auto;
    max-width: var(--max);
}

.project-summary dl {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-block: 0;
    padding-inline: 1rem;
}

.project-summary div,
.project-values div {
    min-width: 0;
}

.project-summary dt,
.project-values span {
    color: var(--muted);
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.project-summary dd {
    color: var(--ink);
    font-weight: 800;
    margin: 0.25rem 0 0;
    overflow-wrap: anywhere;
}

.project-section {
    display: grid;
    gap: 1.25rem;
}

.project-section__head {
    max-width: 42rem;
}

.project-values {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-values div {
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

.project-values strong {
    color: var(--ink);
    display: block;
    font-size: 1.3rem;
    overflow-wrap: anywhere;
}

.project-text-block {
    max-width: 58rem;
}

.project-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding-left: 1.2rem;
}

.project-list li {
    padding-left: 0.25rem;
}

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

.project-document {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.project-document + .project-document {
    margin-top: 1rem;
}

.project-document h3 {
    margin-bottom: 0.25rem;
}

.project-document p {
    margin-bottom: 0;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-gallery__item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    display: grid;
    gap: 0.65rem;
    padding: 0.65rem;
    text-align: left;
}

.project-gallery__item img {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    object-fit: cover;
    width: 100%;
}

.project-gallery__item span {
    font-weight: 800;
}

.project-contact {
    align-items: start;
    grid-template-columns: 18rem minmax(0, 1fr);
}

.project-contact address {
    display: grid;
    font-style: normal;
    font-weight: 700;
    gap: 0.35rem;
}

.project-links {
    align-items: center;
    display: grid;
    gap: 1rem;
    padding-inline: 1rem;
    text-align: center;
}

.project-county-band {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    margin-bottom: 0.75rem;
    width: min(100%, 34rem);
}

.project-county-band__counties {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: min(100%, 24rem);
}

.project-county-band__county {
    color: #ffffff;
    display: block;
    font-size: clamp(1rem, 3.4vw, 1.45rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    padding: 0.3rem 0.55rem;
    text-align: center;
}

.project-county-band__county--bh {
    background: #8dd7e8;
}

.project-county-band__county--bn {
    background: #2fc0da;
}

.project-county-band__county--cj {
    background: #1698c4;
}

.project-county-band__county--mm {
    background: #176a9f;
}

.project-county-band__county--sj {
    background: #1d4f8c;
}

.project-county-band__county--sm {
    background: #243667;
}

.project-county-band p {
    color: #002b6c;
    display: flex;
    flex-wrap: wrap;
    font-size: clamp(0.96rem, 3vw, 1.12rem);
    font-weight: 900;
    gap: 0.45rem;
    justify-content: center;
    margin: 0;
}

.project-county-band a {
    color: #002b6c;
    text-decoration: none;
}

.project-disclaimer {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-lightbox {
    border: 0;
    border-radius: 8px;
    max-width: min(60rem, calc(100vw - 2rem));
    padding: 1rem;
}

.project-lightbox::backdrop {
    background: rgba(20, 34, 43, 0.72);
}

.project-lightbox img {
    border-radius: 6px;
    max-height: 70vh;
    max-width: 100%;
    object-fit: contain;
}

.project-lightbox__close {
    align-items: center;
    background: var(--ink);
    border: 0;
    border-radius: 999px;
    color: var(--surface);
    cursor: pointer;
    display: flex;
    height: 2rem;
    justify-content: center;
    margin-left: auto;
    width: 2rem;
}

@media (max-width: 900px) {
    .project-hero,
    .project-contact {
        grid-template-columns: 1fr;
    }

    .project-logos {
        gap: 1.75rem 3rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
    }

    .project-logo-cell {
        min-height: 4.6875rem;
    }

    .project-logo-eu {
        max-height: 6.25rem;
        max-width: min(100%, 11.25rem);
    }

    .project-logo-government {
        max-height: 6.25rem;
        max-width: min(100%, 7.5rem);
    }

    .project-logo-regio {
        max-height: 6.875rem;
        max-width: min(100%, 8.75rem);
    }

    .project-logo-adr {
        max-height: 5.625rem;
        max-width: min(100%, 13.75rem);
    }

    .project-summary dl,
    .project-values,
    .project-gallery,
    .project-list--columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .project-summary dl,
    .project-values,
    .project-gallery,
    .project-list--columns {
        grid-template-columns: 1fr;
    }

    .project-document {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .project-logos {
        gap: 1.5rem 1.25rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-inline: 1rem;
    }

    .project-logo-cell {
        min-height: 4.0625rem;
    }

    .project-logo {
        margin: auto;
    }

    .project-logo-eu {
        max-height: 5rem;
        max-width: min(100%, 9.375rem);
    }

    .project-logo-government {
        max-height: 5.625rem;
        max-width: min(100%, 7rem);
    }

    .project-logo-regio {
        max-height: 5.625rem;
        max-width: min(100%, 8rem);
    }

    .project-logo-adr {
        max-height: 4.75rem;
        max-width: min(100%, 9.375rem);
    }
}
