.wine-card-hint {
    margin: 0 0 1.2rem;
    color: #3c475a;
    font-size: .9rem;
}
.wine-card-trigger {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    overflow-wrap: anywhere;
}
.wine-card-trigger:not(:disabled) { min-height: 22px }
.wine-card-trigger:not(:disabled)::after {
    content: "";
    flex: 0 0 .75rem;
    width: .75rem;
    height: .75rem;
    background: linear-gradient(#675117,#675117) center / .55rem 1px no-repeat,
                linear-gradient(#675117,#675117) center / 1px .55rem no-repeat;
}
.wine-card-trigger:not(:disabled):hover { color: #71541c; text-decoration: underline; text-underline-offset: .17em }
.wine-card-trigger:focus-visible { outline-offset: 2px }
body:has(.wine-dialog[open]) { overflow: hidden }
.wine-dialog {
    box-sizing: border-box;
    max-width: calc(100% - 24px);
    max-height: calc(100% - 28px);
    width: min(670px,calc(100% - 24px));
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #fffcf5;
    color: #202b48;
    box-shadow: 0 22px 80px #111d39a0;
}
.wine-dialog[open] { animation: wine-profile-in .28s cubic-bezier(.2,.72,.26,1) both }
.wine-dialog::backdrop { background: #14203ac9 }
@keyframes wine-profile-in {
    from { opacity: 0; transform: translateY(12px) scale(.98) }
    to { opacity: 1; transform: none }
}
.wine-dialog-content { max-height: min(720px,calc(100dvh - 28px)); overflow: auto; overscroll-behavior: contain }
.wine-dialog-close {
    display: grid;
    place-items: center;
    position: absolute;
    z-index: 1;
    right: 12px;
    top: 12px;
    width: 44px;
    height: 44px;
    border: 1px solid #c7c2ae;
    border-radius: 50%;
    color: #202b48;
    background: #fffdf7;
    font-size: 1.8rem;
    line-height: 1;
}
.wine-dialog-close:hover { background: #f6e7bd }
.wine-profile {
    --wine-tint: #eadcaa;
    display: grid;
    grid-template-columns: minmax(155px,.82fr) minmax(0,1.18fr);
    align-items: stretch;
}
.wine-profile:not(:has(.wine-profile-photo)) { grid-template-columns: minmax(0,1fr) }
.wine-profile-red { --wine-tint: #e3b7c0 }
.wine-profile-rose { --wine-tint: #efc7b2 }
.wine-profile-sparkling { --wine-tint: #e3d7c6 }
.wine-profile-glass { --wine-tint: #c8d5e8 }
.wine-profile-photo {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 26px;
    background: radial-gradient(ellipse at 50% 42%,#fffdf6 12%,var(--wine-tint) 110%);
}
.wine-profile-photo img { width: 100%; max-height: 365px; object-fit: contain }
.wine-profile-photo img[hidden],.wine-photo-missing[hidden] { display: none }
.wine-photo-missing,.wine-profile-note { color: #5c6171; font-size: .82rem }
.wine-profile-copy {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 14px;
    min-width: 0;
    padding: 44px 32px 36px;
    overflow-wrap: anywhere;
}
.wine-profile-copy .eyebrow { color: #71541c; font-size: .67rem }
.wine-profile-copy h2 { font-size: clamp(2.25rem,5.7vw,3.6rem); line-height: .96 }
.wine-profile-intro { color: #353b48; line-height: 1.45 }
.wine-profile-facts { display: grid; gap: 6px; margin: 0; width: 100%; font-size: .85rem }
.wine-profile-facts div { display: grid; grid-template-columns: minmax(4rem,.4fr) 1fr; gap: 10px; border-bottom: 1px solid #e5dbc4; padding-block: 3px 5px }
.wine-profile-facts dt { font-weight: 700 }
.wine-profile-facts dd { margin: 0 }
.wine-profile-pairing { color: #514739; font-size: .86rem; line-height: 1.4 }
.wine-profile-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-top: 4px }
.wine-profile-price span { font-size: .82rem }
.wine-profile-price strong { color: #232c47; font-size: 1.45rem; font-variant-numeric: tabular-nums; line-height: 1 }
@media(max-width: 540px) {
    .wine-profile { grid-template-columns: minmax(0,1fr) }
    .wine-profile-photo { padding: 12px 18px; min-height: 145px }
    .wine-profile-photo img { width: min(62%,210px); height: clamp(125px,28svh,210px) }
    .wine-profile-copy { padding: 20px 20px 24px; gap: 10px }
    .wine-profile:not(:has(.wine-profile-photo)) .wine-profile-copy { padding-top: 52px }
}
@media(prefers-reduced-motion: reduce) {
    .wine-dialog[open] { animation: none }
}
