/* Lighter design experiment. Loaded after page styles; dark mode keeps its palette.
   Keep shared tokens here and page-specific refinements below for easy comparison. */
html:not([data-color-theme="dark"]) {
    --gold: #96552f;
    --gold-strong: #794124;
    --gold-light: #f1e6db;
    --accent: #96552f;
    --accent-light: #b57b52;
    --bg: #f7f5f0;
    --bg-solid: #f7f5f0;
    --surface: #fff;
    --surface-elevated: #fff;
    --bg-darker: #eeeae2;
    --text: #292521;
    --text-secondary: #686057;
    --muted: #71685e;
    --line: #ded8cf;
    --shadow-xs: 0 1px 2px rgb(41 37 33 / 3%);
    --shadow: 0 3px 12px rgb(41 37 33 / 4%);
    --shadow-md: 0 6px 18px rgb(41 37 33 / 6%);
    --shadow-lg: 0 8px 24px rgb(41 37 33 / 7%);
    --shadow-xl: 0 12px 32px rgb(41 37 33 / 8%);
    --gold-glow: 0 0 0 3px rgb(150 85 47 / 18%);
    --card-glow: none;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
}

/* Structural rules also support the new markup in dark mode. */
.wk-navbar .navbar-brand {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--text);
    text-decoration: none;
}
.wk-navbar .navbar-brand img { width: 48px; height: 48px; max-height: none; flex-shrink: 0; border-radius: 6px; }
.wk-brand-name { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; letter-spacing: -.03em; }
.home-hero-visual > .home-editorial-image {
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    border-radius: 14px;
    transform: none;
    filter: none;
}
html:not([data-color-theme="dark"]) .home-hero-visual > .home-editorial-image { filter: none; }

/* The grid wrapper is not a second card. The article owns the single outline. */
html:not([data-color-theme="dark"]) .whisky-directory-list > .whisky-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    overflow: visible;
}
html:not([data-color-theme="dark"]) .whisky-directory-item:hover { transform: none; }
html:not([data-color-theme="dark"]) .whisky-directory-item::before { content: none; }

/* Missing artwork should not push the whisky and its actions down the page. */
.whisky-detail-hero[data-image-missing] {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}
html .whisky-detail-hero[data-image-missing] .whisky-detail-image-panel {
    min-height: 0;
    justify-content: flex-start;
    width: fit-content;
    padding: .5rem .75rem;
    border-radius: 8px;
}
.whisky-detail-hero[data-image-missing] .whisky-detail-image-placeholder {
    flex-direction: row;
    gap: .5rem;
    font-size: .8rem;
    text-transform: none;
    letter-spacing: 0;
}
.whisky-detail-hero[data-image-missing] .whisky-detail-image-placeholder svg { width: 18px; height: 28px; color: var(--muted); stroke-width: 2; }
.home-spirit-art {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: .25rem;
    width: 100%;
    padding: 2rem 1rem;
    color: var(--gold);
}
.home-spirit-art svg { width: 100%; height: auto; stroke-width: 1; }
.home-spirit-bottle { width: 160px; }
.home-spirit-glass { width: 100px; padding-bottom: .4rem; }
.home-spirit-grain { width: 65px; padding-bottom: .4rem; color: var(--muted); }
.home-feature-art { position: absolute; right: 1.5rem; top: 1.5rem; color: var(--gold); }
.home-feature-art svg { width: 46px; height: 46px; stroke-width: 1.3; }
.home-collection-art { display: flex; align-items: end; justify-content: center; color: var(--gold); }
.home-collection-art svg { width: 90px; height: 120px; stroke-width: 1; }
.home-collection-art svg:nth-child(2) { height: 160px; width: 100px; }
.home-learn > .home-text-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; flex-shrink: 0; }
.whisky-directory-browse-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 600; }
.whisky-directory-browse-link svg { width: 1rem; height: 1rem; }
.whisky-directory-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; align-items: center; }
.whisky-directory-query { min-width: 0; }
.whisky-directory-submit .btn { min-width: 90px; }
.whisky-directory-filters { margin-top: .6rem; }
.whisky-directory-filters > summary { min-height: 44px; padding-block: .65rem; color: var(--gold); font-weight: 600; cursor: pointer; }
.whisky-directory-active-filters { color: var(--text); margin-left: .75rem; font-size: .85rem; overflow-wrap: anywhere; }
.whisky-directory-filters .whisky-directory-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.whisky-directory-apply { margin-top: .75rem; }
@media (max-width: 767.98px) {
    .wk-navbar { min-height: 56px; padding-block: .15rem; }
    .wk-navbar .navbar-brand img { width: 42px; height: 42px; max-height: 42px; }
    .wk-brand-name { font-size: 1.1rem; }
    .whisky-directory-filters .whisky-directory-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-spirit-art { max-width: 260px; margin-inline: auto; }
    .home-collection-art svg { max-width: 25%; }
}
@media (max-width: 359.98px) {
    .whisky-directory-filters .whisky-directory-filter-grid { grid-template-columns: 1fr; }
}

html:not([data-color-theme="dark"]) body::before { content: none; }

/* Reserve serif type for page titles and bottle names. */
html:not([data-color-theme="dark"]) :is(.home-page, .whisky-directory-page, .whisky-detail-page) :is(h2, h3, h4),
html:not([data-color-theme="dark"]) .home-card-copy strong {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.25;
}
html:not([data-color-theme="dark"]) :is(.home-section-heading, .home-collection, .home-learn, .whisky-detail-section, .whisky-detail-related) h2 {
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}
html:not([data-color-theme="dark"]) .home-card-copy strong { font-size: clamp(1.25rem, 2vw, 1.6rem); }
html:not([data-color-theme="dark"]) .home-card-copy { max-width: 100%; padding-right: 2.75rem; }
html:not([data-color-theme="dark"]) .home-feature-card { min-height: 235px; padding: 1.5rem; gap: .5rem; }
html:not([data-color-theme="dark"]) .home-section { margin-top: 2.5rem; }
html:not([data-color-theme="dark"]) .home-collection-visual { min-height: 180px; }
html:not([data-color-theme="dark"]) .home-spirit-art {
    background: var(--gold-light);
    border-radius: 50% 50% 45% 45%;
    min-height: 280px;
}

/* Shared chrome: quiet navigation and flat, clearly differentiated actions. */
html:not([data-color-theme="dark"]) .wk-navbar {
    background: var(--bg) !important;
    border-bottom-color: var(--line) !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html:not([data-color-theme="dark"]) :is(.wk-mobile-bottom-nav, .activity-center) {
    --mobile-shell-surface: var(--surface);
    --mobile-shell-line: var(--line);
}

html:not([data-color-theme="dark"]) .btn {
    letter-spacing: 0;
    text-shadow: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

html:not([data-color-theme="dark"]) .btn:hover {
    transform: none;
    box-shadow: none;
}

html:not([data-color-theme="dark"]) .btn::before,
html:not([data-color-theme="dark"]) .btn-outline-gold::after { content: none; }

html:not([data-color-theme="dark"]) :is(.btn-gold, .btn-primary, .btn-wk-primary) {
    background: var(--gold);
    color: #fff;
    animation: none;
}

html:not([data-color-theme="dark"]) :is(.btn-gold, .btn-primary, .btn-wk-primary):hover {
    background: var(--gold-strong);
}

html:not([data-color-theme="dark"]) .btn-outline-gold {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--gold-strong);
}

html:not([data-color-theme="dark"]) .btn-outline-gold:hover {
    border-color: var(--gold);
    background: var(--gold-light);
    color: var(--gold-strong);
}

html:not([data-color-theme="dark"]) :is(a, button, input, select, summary):focus-visible {
    outline: 2px solid var(--gold-strong);
    outline-offset: 3px;
}

/* Home: an open introduction, a strong search and room for the whisky imagery. */
html:not([data-color-theme="dark"]) .home-hero {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 400px;
    padding: clamp(1rem, 3vw, 2.5rem) 0 2.5rem;
    overflow: visible;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
}

html:not([data-color-theme="dark"]) .home-hero h1 {
    font-weight: 500;
    font-size: clamp(2.3rem, 4.7vw, 4rem);
    line-height: 1.1;
    letter-spacing: -.035em;
}

html:not([data-color-theme="dark"]) .home-hero-glow { display: none; }
html:not([data-color-theme="dark"]) .home-hero-visual {
    display: flex;
    align-items: center;
    min-height: 280px;
}
html:not([data-color-theme="dark"]) .home-hero-visual > img {
    position: static;
    width: 100%;
    max-width: 100%;
    transform: none;
    filter: drop-shadow(0 10px 14px rgb(41 37 33 / 10%));
}
html:not([data-color-theme="dark"]) .home-hero-stat {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    box-shadow: var(--shadow);
    backdrop-filter: none;
}
html:not([data-color-theme="dark"]) .home-hero-stat strong { color: var(--gold); }
html:not([data-color-theme="dark"]) .home-hero-stat-distillery { left: 0; bottom: 4%; }
html:not([data-color-theme="dark"]) .home-search {
    border-color: var(--line);
    box-shadow: var(--shadow);
    border-radius: 12px;
}
html:not([data-color-theme="dark"]) .home-search-suggestions a {
    background: transparent;
    border-color: var(--line);
    color: var(--text-secondary);
}
html:not([data-color-theme="dark"]) :is(.home-learn, .home-collection, .home-feature-card, .home-secondary-card, .home-news-card, .home-release-card, .home-event-stage, .home-events-empty) {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: none;
}
html:not([data-color-theme="dark"]) .home-learn {
    margin-top: 1rem;
    border: 0;
    border-block: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding-inline: 0;
}
html:not([data-color-theme="dark"]) :is(.home-feature-card, .home-secondary-card, .home-release-card):hover {
    transform: none;
    border-color: var(--gold);
    box-shadow: var(--shadow);
}
html:not([data-color-theme="dark"]) .home-feature-card img {
    filter: drop-shadow(0 6px 8px rgb(41 37 33 / 10%));
}

/* Directory: bring filters and actual results closer to the top. */
html:not([data-color-theme="dark"]) .whisky-directory-hero {
    min-height: 0;
    padding: .5rem 0 1.5rem;
    grid-template-columns: minmax(0, 1fr);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}
html:not([data-color-theme="dark"]) .whisky-directory-hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem 1rem;
}
html:not([data-color-theme="dark"]) .whisky-directory-hero :is(.distillery-directory-eyebrow, .distillery-directory-lead),
html:not([data-color-theme="dark"]) .whisky-directory-summary,
html:not([data-color-theme="dark"]) .whisky-directory-search-heading { display: none; }
html:not([data-color-theme="dark"]) .whisky-directory-hero .whisky-directory-actions { margin: 0; }
.whisky-directory-results-toolbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem 1rem;
}
.whisky-directory-result-count { color: var(--muted); min-width: 0; overflow-wrap: anywhere; text-align: left; }
.whisky-directory-results-toolbar .whisky-directory-view-switch { margin-left: auto; width: auto; flex-shrink: 0; }
.whisky-directory-results-toolbar .whisky-directory-view-switch button { padding-inline: .45rem; gap: .25rem; min-height: 44px; }
html:not([data-color-theme="dark"]) .whisky-directory-results-toolbar { justify-content: space-between; }
html:not([data-color-theme="dark"]) .whisky-directory-hero::after { content: none; }
html:not([data-color-theme="dark"]) .whisky-directory-hero-mark { display: none; }
html:not([data-color-theme="dark"]) .whisky-directory-hero h1 {
    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 1.12;
    font-weight: 500;
}
html:not([data-color-theme="dark"]) .whisky-directory-hero .distillery-directory-lead { margin-top: .65rem; }
html:not([data-color-theme="dark"]) .whisky-directory-actions { margin-top: 1rem; gap: .65rem; }
html:not([data-color-theme="dark"]) .whisky-directory-stat {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: .25rem .5rem;
    box-shadow: none;
}
html:not([data-color-theme="dark"]) .whisky-directory-stat-icon { border: 0; background: transparent; }
html:not([data-color-theme="dark"]) .whisky-directory-search {
    border-color: var(--line);
    border-radius: var(--radius-lg);
    box-shadow: none;
}
html:not([data-color-theme="dark"]) .whisky-directory-control label {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
html:not([data-color-theme="dark"]) .whisky-directory-page :is(.form-control, .form-select) {
    background-color: var(--surface) !important;
    color: var(--text) !important;
    border: 1px solid var(--line) !important;
    box-shadow: none;
}
html:not([data-color-theme="dark"]) .whisky-directory-page .card {
    border-color: var(--line) !important;
    border-radius: var(--radius-lg);
    background: var(--surface) !important;
    box-shadow: none;
}
html:not([data-color-theme="dark"]) .whisky-directory-page .card-header {
    background: var(--surface) !important;
    border-radius: 0;
    font-family: var(--font-body);
}
html:not([data-color-theme="dark"]) .whisky-directory-page .card-header:hover {
    background: var(--bg) !important;
}
html:not([data-color-theme="dark"]) .whisky-directory-card-thumbnail {
    background: var(--bg);
    border-color: var(--line);
}

/* Detail: the bottle and its provenance take priority over decorative panels. */
html:not([data-color-theme="dark"]) .whisky-detail-page {
    --detail-panel: var(--surface);
    --detail-line: var(--line);
    --detail-muted: var(--text-secondary);
    background: var(--bg);
}
html:not([data-color-theme="dark"]) .whisky-detail-hero {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 1rem 0 2rem;
}
html:not([data-color-theme="dark"]) .whisky-detail-hero::after { content: none; }
html:not([data-color-theme="dark"]) .whisky-detail-image-panel {
    background: var(--surface);
    border: 0;
    border-radius: var(--radius-lg);
    min-height: 350px;
}
html:not([data-color-theme="dark"]) .whisky-detail-image {
    filter: drop-shadow(0 8px 12px rgb(41 37 33 / 12%));
}
html:not([data-color-theme="dark"]) .whisky-detail-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.08;
    font-weight: 500;
}
html:not([data-color-theme="dark"]) .whisky-detail-chips span {
    background: var(--bg-darker);
    border-color: transparent;
    border-radius: 6px;
}
html:not([data-color-theme="dark"]) :is(.whisky-detail-rating-summary, .whisky-detail-rating-empty) {
    background: transparent;
    border: 0;
    border-left: 2px solid var(--gold);
    border-radius: 0;
}
html:not([data-color-theme="dark"]) :is(.whisky-detail-section, .whisky-detail-related) {
    border-radius: var(--radius-lg);
}

@media (max-width: 767.98px) {
    html:not([data-color-theme="dark"]) .home-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 90px;
        gap: .5rem;
        min-height: 0;
        padding-top: .5rem;
    }
    html:not([data-color-theme="dark"]) .home-hero-visual {
        min-height: 0;
        width: 90px;
        margin: 0;
        grid-column: 2;
        grid-row: 3;
        align-self: center;
    }
    html:not([data-color-theme="dark"]) .home-hero-copy { display: contents; }
    html:not([data-color-theme="dark"]) .home-hero-copy > .home-eyebrow { grid-column: 1 / -1; grid-row: 1; margin-bottom: .25rem; }
    html:not([data-color-theme="dark"]) .home-hero-copy > h1 { grid-column: 1 / -1; grid-row: 2; }
    html:not([data-color-theme="dark"]) .home-hero-copy > .home-hero-lead { grid-column: 1; grid-row: 3; }
    html:not([data-color-theme="dark"]) .home-search { grid-column: 1 / -1; grid-row: 4; }
    html:not([data-color-theme="dark"]) .home-search-suggestions { grid-column: 1 / -1; grid-row: 5; }
    html:not([data-color-theme="dark"]) .home-hero-visual > img { max-height: 90px; object-fit: contain; }
    html:not([data-color-theme="dark"]) .home-spirit-art { min-height: 0; height: 105px; padding: .5rem; border-radius: 50%; }
    html:not([data-color-theme="dark"]) .home-spirit-bottle { width: 70px; }
    html:not([data-color-theme="dark"]) .home-spirit-glass { width: 45px; }
    html:not([data-color-theme="dark"]) .home-spirit-grain { width: 30px; }
    html:not([data-color-theme="dark"]) .home-hero h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
    html:not([data-color-theme="dark"]) .home-hero-lead { margin: .75rem 0 1rem; font-size: 1rem; }
    html:not([data-color-theme="dark"]) .home-search { display: flex; align-items: center; flex-wrap: nowrap; }
    html:not([data-color-theme="dark"]) .home-search input { width: 0; flex: 1; font-size: .9rem; }
    html:not([data-color-theme="dark"]) .home-search .btn { width: auto; padding-inline: 1rem; }
    html:not([data-color-theme="dark"]) .home-search-suggestions > span,
    html:not([data-color-theme="dark"]) .home-search-suggestions a:last-child { display: none; }
    html:not([data-color-theme="dark"]) .home-hero { padding-bottom: 1rem; }
    html:not([data-color-theme="dark"]) .home-section { margin-top: 1.5rem; }
    html:not([data-color-theme="dark"]) .home-feature-card { min-height: 210px; }
    html:not([data-color-theme="dark"]) .home-collection-visual { min-height: 110px; }
    html:not([data-color-theme="dark"]) .home-collection-art svg { height: 90px; width: 60px; }
    html:not([data-color-theme="dark"]) .home-collection-art svg:nth-child(2) { height: 110px; }
    html:not([data-color-theme="dark"]) .whisky-directory-hero-copy { grid-template-columns: 1fr; }
    html:not([data-color-theme="dark"]) .whisky-directory-hero { padding-bottom: .75rem; margin-bottom: .75rem; }
    html:not([data-color-theme="dark"]) .whisky-directory-search { padding: .85rem; }
    html:not([data-color-theme="dark"]) .home-hero-stat-whisky { top: 4%; }
    html:not([data-color-theme="dark"]) .whisky-detail-image-panel { min-height: 260px; }
    html:not([data-color-theme="dark"]) .whisky-detail-image { max-height: 300px; }
}

@media (min-width: 992px) {
    html:not([data-color-theme="dark"]) .whisky-detail-hero[data-image-missing] {
        padding-block: .25rem 1rem;
        gap: .75rem;
    }
    .whisky-detail-hero[data-image-missing] .whisky-detail-hero-copy {
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: clamp(1.5rem, 4vw, 3.5rem);
        align-items: start;
    }
    .whisky-detail-identity, .whisky-detail-interaction { min-width: 0; }
    html:not([data-color-theme="dark"]) .whisky-detail-hero[data-image-missing] h1 {
        font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    }
    .whisky-detail-hero[data-image-missing] .whisky-detail-interaction :is(.whisky-detail-rating-summary, .whisky-detail-rating-empty) { margin-top: 0; }
    .whisky-detail-hero[data-image-missing] .whisky-detail-chips { margin-bottom: 0; }
}
