/**
 * Public styles for Donzella Food Pairing Engine.
 *
 * Frontend layout for generated pairing pages, product cards, food hubs,
 * related links, and long-form pairing guide sections.
 *
 * @package DonzellaFoodPairingEngine
 */

:root {
    --dfp-bg: #ffffff;
    --dfp-soft-bg: #faf7f3;
    --dfp-card-bg: #ffffff;
    --dfp-border: rgba(45, 28, 18, 0.12);
    --dfp-border-strong: rgba(45, 28, 18, 0.2);
    --dfp-text: #241a14;
    --dfp-muted: rgba(36, 26, 20, 0.68);
    --dfp-soft-muted: rgba(36, 26, 20, 0.52);
    --dfp-accent: #7a1f2b;
    --dfp-accent-dark: #55121c;
    --dfp-accent-soft: rgba(122, 31, 43, 0.1);
    --dfp-gold: #b9853b;
    --dfp-success: #286441;
    --dfp-warning: #9b6726;
    --dfp-radius: 18px;
    --dfp-radius-sm: 12px;
    --dfp-shadow: 0 14px 40px rgba(36, 26, 20, 0.08);
    --dfp-shadow-soft: 0 8px 24px rgba(36, 26, 20, 0.06);
}

.dfp-generated-pairing-page,
.dfp-has-shortcode {
    --dfp-page-max: 1120px;
}

.dfp-generated-pairing-page .entry-content > .dfp-guide-hero,
.dfp-generated-pairing-page .entry-content > .dfp-pairing-grid-wrap,
.dfp-generated-pairing-page .entry-content > .dfp-featured-match,
.dfp-generated-pairing-page .entry-content > .dfp-guide-summary,
.dfp-generated-pairing-page .entry-content > .dfp-related-links {
    max-width: var(--dfp-page-max);
    margin-right: auto;
    margin-left: auto;
}

.dfp-pairing-grid-wrap,
.dfp-product-pairings-wrap,
.dfp-food-hub-wrap,
.dfp-related-links,
.dfp-guide-hero,
.dfp-featured-match,
.dfp-guide-summary,
.dfp-guide-note,
.dfp-score-panel {
    clear: both;
    margin: 2rem 0;
}

.dfp-guide-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.4rem, 3vw, 2.5rem);
    border: 1px solid var(--dfp-border);
    border-radius: calc(var(--dfp-radius) + 6px);
    background: linear-gradient(135deg, #fffaf4 0%, #ffffff 52%, rgba(122, 31, 43, 0.07) 100%);
    box-shadow: var(--dfp-shadow);
}

.dfp-guide-hero::before {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(122, 31, 43, 0.08);
    pointer-events: none;
}

.dfp-guide-kicker,
.dfp-card-kicker,
.dfp-featured-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 0.65rem;
    padding: 0.28rem 0.7rem;
    border: 1px solid rgba(122, 31, 43, 0.18);
    border-radius: 999px;
    background: var(--dfp-accent-soft);
    color: var(--dfp-accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
}

.dfp-guide-hero h1,
.dfp-guide-hero-title {
    max-width: 820px;
    margin: 0 0 0.75rem;
    color: var(--dfp-text);
    font-size: clamp(2rem, 4.4vw, 3.65rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.dfp-guide-hero p,
.dfp-guide-hero-copy {
    max-width: 760px;
    margin: 0;
    color: var(--dfp-muted);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.65;
}

.dfp-guide-stats,
.dfp-guide-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.35rem 0 0;
    padding: 0;
    list-style: none;
}

.dfp-guide-stat,
.dfp-guide-meta-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--dfp-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--dfp-text);
    font-size: 0.92rem;
    font-weight: 700;
}

.dfp-guide-summary,
.dfp-score-panel,
.dfp-featured-match {
    padding: clamp(1.1rem, 2.2vw, 1.65rem);
    border: 1px solid var(--dfp-border);
    border-radius: var(--dfp-radius);
    background: var(--dfp-card-bg);
    box-shadow: var(--dfp-shadow-soft);
}

.dfp-guide-summary {
    border-left: 5px solid var(--dfp-accent);
}

.dfp-guide-summary h2,
.dfp-score-panel h2,
.dfp-featured-match h2,
.dfp-pairing-title,
.dfp-product-pairings-title,
.dfp-food-hub-title,
.dfp-related-links-title {
    margin: 0 0 0.75rem;
    color: var(--dfp-text);
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.dfp-guide-summary p,
.dfp-score-panel p,
.dfp-featured-match p,
.dfp-pairing-intro {
    max-width: 820px;
    margin: 0 0 1.25rem;
    color: var(--dfp-muted);
    line-height: 1.62;
}

.dfp-guide-summary p:last-child,
.dfp-score-panel p:last-child,
.dfp-featured-match p:last-child,
.dfp-pairing-intro:last-child {
    margin-bottom: 0;
}

.dfp-pairing-grid,
.dfp-food-hub-grid,
.dfp-related-links-grid {
    display: grid;
    gap: 1.25rem;
}

.dfp-columns-1 .dfp-pairing-grid {
    grid-template-columns: 1fr;
}

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

.dfp-columns-3 .dfp-pairing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dfp-columns-4 .dfp-pairing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dfp-product-card,
.dfp-food-card,
.dfp-related-link-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--dfp-border);
    border-radius: var(--dfp-radius);
    background: var(--dfp-card-bg);
    box-shadow: var(--dfp-shadow-soft);
}

.dfp-product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dfp-product-card:hover {
    border-color: var(--dfp-border-strong);
    box-shadow: 0 18px 48px rgba(36, 26, 20, 0.12);
    transform: translateY(-3px);
}

.dfp-product-badges {
    position: absolute;
    z-index: 2;
    top: 0.8rem;
    left: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: calc(100% - 1.6rem);
}

.dfp-badge,
.dfp-stock-badge,
.dfp-featured-badge,
.dfp-match-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.26rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dfp-text);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.15;
    box-shadow: 0 4px 14px rgba(36, 26, 20, 0.1);
}

.dfp-featured-badge,
.dfp-match-badge.is-strong {
    background: var(--dfp-accent);
    color: #ffffff;
}

.dfp-stock-badge.is-in-stock {
    background: var(--dfp-success);
    color: #ffffff;
}

.dfp-stock-badge.is-out-of-stock {
    background: var(--dfp-warning);
    color: #ffffff;
}

.dfp-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    padding: 1.35rem 1rem 0.65rem;
    background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
    text-align: center;
    text-decoration: none;
}

.dfp-product-image img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    transition: transform 180ms ease;
}

.dfp-product-card:hover .dfp-product-image img {
    transform: scale(1.03);
}

.dfp-product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.62rem;
    padding: 1rem;
}

.dfp-product-title {
    margin: 0;
    color: var(--dfp-text);
    font-size: 1.05rem;
    line-height: 1.25;
}

.dfp-product-title a,
.dfp-food-card a,
.dfp-related-links a,
.dfp-food-link {
    color: inherit;
    text-decoration: none;
}

.dfp-product-title a:hover,
.dfp-food-card a:hover,
.dfp-related-links a:hover,
.dfp-food-link:hover {
    color: var(--dfp-accent);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.dfp-product-meta,
.dfp-wine-profile-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dfp-product-meta li,
.dfp-wine-profile-list li,
.dfp-wine-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.5rem;
    border: 1px solid var(--dfp-border);
    border-radius: 999px;
    background: var(--dfp-soft-bg);
    color: var(--dfp-muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
}

.dfp-product-price {
    color: var(--dfp-text);
    font-size: 1rem;
    font-weight: 800;
}

.dfp-product-price del {
    color: var(--dfp-soft-muted);
    font-weight: 500;
}

.dfp-product-price ins {
    text-decoration: none;
}

.dfp-match-score {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: var(--dfp-accent-soft);
    color: var(--dfp-accent-dark);
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.2;
}

.dfp-match-score-high {
    background: rgba(40, 100, 65, 0.12);
    color: var(--dfp-success);
}

.dfp-match-score-medium {
    background: rgba(185, 133, 59, 0.16);
    color: #72501f;
}

.dfp-match-score-low {
    background: rgba(122, 31, 43, 0.1);
    color: var(--dfp-accent-dark);
}

.dfp-match-reason {
    margin: 0;
    color: var(--dfp-muted);
    font-size: 0.94rem;
    line-height: 1.48;
}

.dfp-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.dfp-product-button,
.dfp-add-to-cart-button,
.dfp-food-card-link,
.dfp-related-link-card a.dfp-related-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 40px;
    padding: 0.58rem 0.9rem;
    border: 1px solid var(--dfp-accent);
    border-radius: 999px;
    background: var(--dfp-accent);
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none !important;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.dfp-product-button:hover,
.dfp-add-to-cart-button:hover,
.dfp-food-card-link:hover,
.dfp-related-link-card a.dfp-related-card-link:hover {
    border-color: var(--dfp-accent-dark);
    background: var(--dfp-accent-dark);
    transform: translateY(-1px);
}

.dfp-product-button.is-secondary {
    background: transparent;
    color: var(--dfp-accent) !important;
}

.dfp-product-button.is-secondary:hover {
    background: var(--dfp-accent-soft);
    color: var(--dfp-accent-dark) !important;
}

.dfp-notice,
.dfp-related-links-empty,
.dfp-guide-note {
    margin: 1rem 0;
    padding: 0.95rem 1rem;
    border: 1px solid var(--dfp-border);
    border-left: 5px solid var(--dfp-accent);
    border-radius: var(--dfp-radius-sm);
    background: var(--dfp-soft-bg);
    color: var(--dfp-muted);
}

.dfp-product-pairings-list,
.dfp-related-links-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dfp-product-pairing-item,
.dfp-related-link-item {
    display: block;
    margin: 0 0 0.75rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--dfp-border);
    border-radius: var(--dfp-radius-sm);
    background: var(--dfp-card-bg);
    box-shadow: var(--dfp-shadow-soft);
}

.dfp-product-pairing-item .dfp-match-score {
    margin-left: 0.5rem;
    vertical-align: middle;
}

.dfp-food-name,
.dfp-food-link {
    font-weight: 800;
}

.dfp-food-hub-grid,
.dfp-related-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dfp-food-card,
.dfp-related-link-card {
    padding: 1rem;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.dfp-food-card:hover,
.dfp-related-link-card:hover {
    box-shadow: 0 18px 48px rgba(36, 26, 20, 0.11);
    transform: translateY(-2px);
}

.dfp-food-card h3,
.dfp-related-link-card h3 {
    margin: 0 0 0.55rem;
    color: var(--dfp-text);
    font-size: 1.06rem;
    line-height: 1.25;
}

.dfp-food-card p,
.dfp-related-link-card p {
    margin: 0 0 0.75rem;
    color: var(--dfp-muted);
    line-height: 1.48;
}

.dfp-related-reason {
    color: var(--dfp-soft-muted);
    font-size: 0.92rem;
}

.dfp-faq-block {
    margin: 2rem 0;
}

.dfp-faq-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--dfp-border);
}

.dfp-faq-item h3 {
    margin: 0 0 0.4rem;
    color: var(--dfp-text);
    font-size: 1.05rem;
}

.dfp-faq-item p {
    margin: 0;
    color: var(--dfp-muted);
}

.dfp-score-bars {
    display: grid;
    gap: 0.6rem;
    margin: 1rem 0 0;
}

.dfp-score-row {
    display: grid;
    grid-template-columns: minmax(90px, 150px) 1fr minmax(70px, auto);
    gap: 0.7rem;
    align-items: center;
}

.dfp-score-label,
.dfp-score-value {
    color: var(--dfp-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.dfp-score-track {
    overflow: hidden;
    height: 9px;
    border-radius: 999px;
    background: rgba(36, 26, 20, 0.1);
}

.dfp-score-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--dfp-accent), var(--dfp-gold));
}

.dfp-generated-pairing-page .dfp-pairing-grid-wrap {
    margin-top: 1.6rem;
}

.dfp-generated-pairing-page .entry-content > h2,
.dfp-generated-pairing-page .entry-content > h3,
.dfp-generated-pairing-page .entry-content > p,
.dfp-generated-pairing-page .entry-content > ul,
.dfp-generated-pairing-page .entry-content > ol {
    max-width: 860px;
    margin-right: auto;
    margin-left: auto;
}

.dfp-generated-pairing-page .entry-content > ul,
.dfp-generated-pairing-page .entry-content > ol {
    padding-left: 1.4rem;
}

@media (max-width: 1120px) {
    .dfp-columns-4 .dfp-pairing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .dfp-columns-3 .dfp-pairing-grid,
    .dfp-columns-4 .dfp-pairing-grid,
    .dfp-food-hub-grid,
    .dfp-related-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .dfp-columns-2 .dfp-pairing-grid,
    .dfp-columns-3 .dfp-pairing-grid,
    .dfp-columns-4 .dfp-pairing-grid,
    .dfp-food-hub-grid,
    .dfp-related-links-grid {
        grid-template-columns: 1fr;
    }

    .dfp-guide-hero {
        border-radius: var(--dfp-radius);
    }

    .dfp-product-card,
    .dfp-food-card,
    .dfp-related-link-card {
        border-radius: var(--dfp-radius-sm);
    }

    .dfp-product-image {
        min-height: 210px;
    }

    .dfp-product-image img {
        max-height: 210px;
    }

    .dfp-product-pairing-item .dfp-match-score {
        display: inline-flex;
        margin: 0.4rem 0 0;
    }

    .dfp-score-row {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
}

/* -------------------------------------------------------------------------
 * Donzella Food Pairing Engine V2 editorial polish
 * Build: 2026-06-26-v2-pretty-layout
 * Purpose:
 * - Wider article canvas
 * - Better reading width
 * - Hide sidebar areas on generated pairing pages
 * - Make the sommelier note + pairing profile feel like one premium card
 * - Keep the two-column pairing section level on desktop and clean on mobile
 * ---------------------------------------------------------------------- */

/* Give generated pairing pages a premium full-width editorial canvas. */
body.single-dfp_pairing_page #secondary,
body.single-dfp_pairing_page .sidebar,
body.single-dfp_pairing_page .site-sidebar,
body.single-dfp_pairing_page .widget-area,
body.single-dfp_pairing_page aside,
body.single-dfp_pairing_page .content-sidebar-wrap > .sidebar,
body.single-dfp_pairing_page .secondary {
    display: none !important;
}

body.single-dfp_pairing_page #primary,
body.single-dfp_pairing_page .content-area,
body.single-dfp_pairing_page .site-main,
body.single-dfp_pairing_page main,
body.single-dfp_pairing_page .entry-content,
body.single-dfp_pairing_page .content-sidebar-wrap,
body.single-dfp_pairing_page .site-content {
    width: 100% !important;
    max-width: none !important;
}

.dfp-generated-pairing-page,
.dfp-has-shortcode,
.dfp-editorial-v2 {
    --dfp-page-max: 1240px;
}

.dfp-editorial-v2,
.dfp-generated-pairing-page .entry-content > .dfp-editorial-v2,
.dfp-generated-pairing-page .entry-content > .dfp-guide-hero,
.dfp-generated-pairing-page .entry-content > .dfp-pairing-grid-wrap,
.dfp-generated-pairing-page .entry-content > .dfp-featured-match,
.dfp-generated-pairing-page .entry-content > .dfp-guide-summary,
.dfp-generated-pairing-page .entry-content > .dfp-related-links {
    max-width: var(--dfp-page-max) !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Keep ordinary article text readable, not stretched across the full page. */
.dfp-generated-pairing-page .entry-content > h2,
.dfp-generated-pairing-page .entry-content > h3,
.dfp-generated-pairing-page .entry-content > p,
.dfp-generated-pairing-page .entry-content > ul,
.dfp-generated-pairing-page .entry-content > ol,
.dfp-editorial-v2 > .dfp-section,
.dfp-editorial-v2 > .dfp-faq-section,
.dfp-editorial-v2 > .dfp-review-note {
    max-width: 800px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Hero: slightly more magazine-like and less plugin-like. */
.dfp-editorial-v2 .dfp-hero,
.dfp-guide-hero {
    border-color: rgba(122, 31, 43, 0.14) !important;
    background:
        radial-gradient(circle at top right, rgba(122, 31, 43, 0.14), transparent 34%),
        radial-gradient(circle at bottom left, rgba(185, 133, 59, 0.13), transparent 28%),
        linear-gradient(135deg, #fffaf5 0%, #fffdfb 48%, #f7eee7 100%) !important;
    box-shadow: 0 18px 52px rgba(36, 26, 20, 0.09) !important;
}

.dfp-editorial-v2 .dfp-hero-title,
.dfp-guide-hero-title,
.dfp-guide-hero h1 {
    max-width: 900px !important;
}

.dfp-editorial-v2 .dfp-hero-text,
.dfp-guide-hero-copy,
.dfp-guide-hero p {
    max-width: 820px !important;
}

/* Quick facts: make the top facts feel like designed editorial tiles. */
.dfp-editorial-v2 .dfp-quick-grid,
.dfp-guide-meta-list,
.dfp-guide-stats {
    gap: 0.9rem !important;
}

.dfp-editorial-v2 .dfp-fact,
.dfp-guide-stat,
.dfp-guide-meta-list li {
    border-color: rgba(122, 31, 43, 0.12) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fff9f3 100%) !important;
    box-shadow: 0 10px 28px rgba(36, 26, 20, 0.055) !important;
}

/* Main pairing explanation/profile area: turn two separate blocks into one composed feature. */
.dfp-editorial-v2 .dfp-two-col {
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr) !important;
    gap: 0 !important;
    align-items: stretch !important;
    margin: 1.65rem 0 2.15rem !important;
    padding: clamp(1.1rem, 2.4vw, 1.6rem) !important;
    border: 1px solid rgba(122, 31, 43, 0.14) !important;
    border-radius: 28px !important;
    background:
        radial-gradient(circle at top left, rgba(122, 31, 43, 0.08), transparent 33%),
        linear-gradient(180deg, #fffdfb 0%, #fff8f4 100%) !important;
    box-shadow: 0 18px 48px rgba(36, 26, 20, 0.075) !important;
}

.dfp-editorial-v2 .dfp-two-col > .dfp-panel,
.dfp-editorial-v2 .dfp-two-col > .dfp-mini-card {
    height: 100% !important;
    min-height: 100% !important;
    box-sizing: border-box !important;
}

.dfp-editorial-v2 .dfp-two-col > .dfp-panel {
    margin: 0 !important;
    padding: clamp(1rem, 2vw, 1.35rem) clamp(1.1rem, 2.3vw, 1.7rem) !important;
    border: 0 !important;
    border-left: 7px solid var(--dfp-accent, #7a1f2b) !important;
    border-radius: 20px 0 0 20px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dfp-editorial-v2 .dfp-two-col > .dfp-panel .dfp-panel-title {
    margin-bottom: 0.9rem !important;
    color: var(--dfp-accent, #7a1f2b) !important;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem) !important;
    letter-spacing: -0.02em !important;
}

.dfp-editorial-v2 .dfp-two-col > .dfp-panel p {
    max-width: 680px !important;
    margin-bottom: 1.15rem !important;
    color: var(--dfp-text, #241a14) !important;
    font-size: 1.02rem !important;
    line-height: 1.72 !important;
}

.dfp-editorial-v2 .dfp-two-col > .dfp-panel p:last-child {
    margin-bottom: 0 !important;
}

.dfp-editorial-v2 .dfp-two-col > .dfp-mini-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: clamp(1rem, 2vw, 1.35rem) 0 clamp(1rem, 2vw, 1.35rem) clamp(1.3rem, 2.6vw, 2rem) !important;
    border: 0 !important;
    border-left: 1px solid rgba(122, 31, 43, 0.14) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dfp-editorial-v2 .dfp-two-col > .dfp-mini-card h3 {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    margin: 0 0 1rem !important;
    color: var(--dfp-text, #241a14) !important;
    font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
    letter-spacing: -0.02em !important;
    text-transform: uppercase !important;
}

.dfp-editorial-v2 .dfp-two-col > .dfp-mini-card h3::before {
    content: '🍷';
    font-size: 1rem;
    line-height: 1;
}

.dfp-editorial-v2 .dfp-meter-list {
    gap: 0.85rem !important;
}

.dfp-editorial-v2 .dfp-meter-row {
    grid-template-columns: minmax(92px, 120px) 1fr minmax(46px, auto) !important;
    gap: 0.85rem !important;
}

.dfp-editorial-v2 .dfp-meter-label,
.dfp-editorial-v2 .dfp-meter-score {
    color: var(--dfp-text, #241a14) !important;
    font-weight: 850 !important;
}

.dfp-editorial-v2 .dfp-meter-track,
.dfp-score-track {
    height: 11px !important;
    background: rgba(45, 28, 18, 0.11) !important;
}

.dfp-editorial-v2 .dfp-meter-fill,
.dfp-score-fill {
    height: 11px !important;
    background: linear-gradient(90deg, var(--dfp-gold, #b9853b), var(--dfp-accent, #7a1f2b)) !important;
}

/* Wine intro/card spacing: stop the grid from feeling crammed into the article. */
.dfp-editorial-v2 .dfp-wine-intro {
    margin: 2.1rem 0 1.25rem !important;
    padding: clamp(1.15rem, 2.4vw, 1.7rem) !important;
    border-color: rgba(122, 31, 43, 0.14) !important;
    background: linear-gradient(135deg, #ffffff 0%, #fff7ef 100%) !important;
    box-shadow: 0 12px 34px rgba(36, 26, 20, 0.06) !important;
}

.dfp-editorial-v2 + .dfp-pairing-grid-wrap,
.dfp-editorial-v2 .dfp-pairing-grid-wrap,
.dfp-generated-pairing-page .dfp-pairing-grid-wrap {
    max-width: var(--dfp-page-max) !important;
}

.dfp-product-card {
    border-color: rgba(122, 31, 43, 0.12) !important;
}

.dfp-product-card:hover {
    border-color: rgba(122, 31, 43, 0.25) !important;
}

/* FAQ/cards: softer card rhythm. */
.dfp-editorial-v2 .dfp-list-card,
.dfp-editorial-v2 .dfp-faq-item,
.dfp-faq-item,
.dfp-related-link-card,
.dfp-food-card {
    border-color: rgba(122, 31, 43, 0.12) !important;
    box-shadow: 0 10px 28px rgba(36, 26, 20, 0.055) !important;
}

.dfp-editorial-v2 .dfp-pullquote {
    max-width: 920px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    border-left-color: var(--dfp-gold, #b9853b) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%) !important;
}

/* Responsive editorial layout. */
@media (max-width: 960px) {
    .dfp-editorial-v2,
    .dfp-generated-pairing-page,
    .dfp-has-shortcode {
        --dfp-page-max: 100% !important;
    }

    .dfp-editorial-v2 .dfp-two-col {
        grid-template-columns: 1fr !important;
        padding: 1rem !important;
    }

    .dfp-editorial-v2 .dfp-two-col > .dfp-panel {
        border-radius: 20px 20px 0 0 !important;
        border-left-width: 6px !important;
        border-bottom: 1px solid rgba(122, 31, 43, 0.12) !important;
    }

    .dfp-editorial-v2 .dfp-two-col > .dfp-mini-card {
        padding: 1.1rem !important;
        border-left: 0 !important;
    }
}

@media (max-width: 640px) {
    .dfp-editorial-v2,
    .dfp-generated-pairing-page .entry-content {
        font-size: 15.5px !important;
    }

    .dfp-editorial-v2 .dfp-hero,
    .dfp-guide-hero {
        border-radius: 20px !important;
        padding: 1.2rem !important;
    }

    .dfp-editorial-v2 .dfp-two-col {
        border-radius: 22px !important;
    }

    .dfp-editorial-v2 .dfp-meter-row {
        grid-template-columns: 1fr !important;
        gap: 0.3rem !important;
    }

    .dfp-editorial-v2 .dfp-meter-score {
        text-align: left !important;
    }
}


/* -------------------------------------------------------------------------
 * Donzella V2 profile feature polish
 * Build: 2026-06-26-v2-profile-feature-polish
 * Purpose:
 * - Keep the pairing profile beside the sommelier note, aligned at the top
 * - Avoid the empty stretched right-hand panel feeling
 * - Keep flavour/avoid panels as balanced 50/50 cards
 * ---------------------------------------------------------------------- */

.dfp-editorial-v2 .dfp-two-col-profile {
    display: grid !important;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr) !important;
    gap: 0 !important;
    align-items: start !important;
    margin: 1.65rem 0 2.15rem !important;
    padding: clamp(1.1rem, 2.4vw, 1.6rem) !important;
    border: 1px solid rgba(122, 31, 43, 0.14) !important;
    border-radius: 28px !important;
    background:
        radial-gradient(circle at top left, rgba(122, 31, 43, 0.08), transparent 33%),
        linear-gradient(180deg, #fffdfb 0%, #fff8f4 100%) !important;
    box-shadow: 0 18px 48px rgba(36, 26, 20, 0.075) !important;
}

.dfp-editorial-v2 .dfp-two-col-profile > .dfp-panel {
    margin: 0 !important;
    padding: clamp(1rem, 2vw, 1.35rem) clamp(1.1rem, 2.3vw, 1.7rem) !important;
    border: 0 !important;
    border-left: 7px solid var(--dfp-accent, #7a1f2b) !important;
    border-radius: 20px 0 0 20px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dfp-editorial-v2 .dfp-two-col-profile > .dfp-profile-card {
    align-self: start !important;
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(1.05rem, 2vw, 1.45rem) !important;
    border: 1px solid rgba(122, 31, 43, 0.14) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.74) !important;
    box-shadow: 0 12px 30px rgba(36, 26, 20, 0.055) !important;
    box-sizing: border-box !important;
}

.dfp-editorial-v2 .dfp-profile-card h3 {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    margin: 0 0 0.35rem !important;
    color: var(--dfp-text, #241a14) !important;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem) !important;
    text-transform: uppercase !important;
}

.dfp-editorial-v2 .dfp-profile-card h3::before {
    content: '🍷';
    font-size: 1rem;
    line-height: 1;
}

.dfp-editorial-v2 .dfp-profile-intro {
    margin: 0 0 1rem !important;
    color: var(--dfp-muted, rgba(36, 26, 20, 0.68)) !important;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
}

.dfp-editorial-v2 .dfp-profile-card .dfp-meter-list {
    gap: 0.75rem !important;
}

.dfp-editorial-v2 .dfp-profile-card .dfp-meter-row {
    grid-template-columns: minmax(92px, 116px) 1fr minmax(44px, auto) !important;
    gap: 0.75rem !important;
}

.dfp-editorial-v2 .dfp-two-col-tags {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    align-items: stretch !important;
}

.dfp-editorial-v2 .dfp-two-col-tags > .dfp-tags-card {
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 820px) {
    .dfp-editorial-v2 .dfp-two-col-profile,
    .dfp-editorial-v2 .dfp-two-col-tags {
        grid-template-columns: 1fr !important;
    }

    .dfp-editorial-v2 .dfp-two-col-profile > .dfp-panel {
        border-radius: 20px 20px 0 0 !important;
        border-bottom: 1px solid rgba(122, 31, 43, 0.12) !important;
    }

    .dfp-editorial-v2 .dfp-two-col-profile > .dfp-profile-card {
        margin-top: 1rem !important;
    }
}

/* -------------------------------------------------------------------------
 * Donzella V2 premium pairing/profile section final override
 * Build: 2026-06-26-v2-premium-profile-final
 * Purpose:
 * - Keep the original successful two-column layout
 * - Make the section feel premium and balanced
 * - Remove the boxed-with-empty-space profile layout from earlier overrides
 * ---------------------------------------------------------------------- */

.dfp-editorial-v2 .dfp-two-col-profile {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr) !important;
    gap: clamp(1rem, 2.2vw, 1.8rem) !important;
    align-items: start !important;
    margin: 1.75rem 0 2.25rem !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dfp-editorial-v2 .dfp-two-col-profile > .dfp-panel,
.dfp-editorial-v2 .dfp-two-col-profile > .dfp-profile-card {
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid rgba(122, 31, 43, 0.14) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at top left, rgba(122, 31, 43, 0.075), transparent 32%),
        linear-gradient(180deg, #fffdfb 0%, #fff8f4 100%) !important;
    box-shadow: 0 18px 48px rgba(36, 26, 20, 0.075) !important;
}

.dfp-editorial-v2 .dfp-two-col-profile > .dfp-panel {
    padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.3rem, 2.8vw, 2.15rem) !important;
    border-left: 7px solid var(--dfp-accent, #7a1f2b) !important;
}

.dfp-editorial-v2 .dfp-two-col-profile > .dfp-panel::after {
    content: '' !important;
    position: absolute !important;
    right: -70px !important;
    bottom: -90px !important;
    width: 210px !important;
    height: 210px !important;
    border-radius: 999px !important;
    background: rgba(185, 133, 59, 0.11) !important;
    pointer-events: none !important;
}

.dfp-editorial-v2 .dfp-two-col-profile > .dfp-panel .dfp-panel-title {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    margin: 0 0 1.15rem !important;
    color: var(--dfp-accent, #7a1f2b) !important;
    font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.025em !important;
    text-transform: uppercase !important;
}

.dfp-editorial-v2 .dfp-two-col-profile > .dfp-panel .dfp-panel-title::before {
    content: '💡' !important;
    flex: 0 0 auto !important;
    margin-top: 0.1rem !important;
    font-size: 1.05rem !important;
    filter: drop-shadow(0 5px 10px rgba(185, 133, 59, 0.22)) !important;
}

.dfp-editorial-v2 .dfp-two-col-profile > .dfp-panel p {
    position: relative !important;
    z-index: 1 !important;
    max-width: 680px !important;
    margin: 0 0 1.15rem !important;
    color: var(--dfp-text, #241a14) !important;
    font-size: clamp(1rem, 1.25vw, 1.08rem) !important;
    line-height: 1.74 !important;
}

.dfp-editorial-v2 .dfp-two-col-profile > .dfp-panel p:last-child {
    margin-bottom: 0 !important;
}

.dfp-editorial-v2 .dfp-two-col-profile > .dfp-profile-card {
    align-self: start !important;
    padding: clamp(1.25rem, 2.4vw, 1.75rem) !important;
    background:
        radial-gradient(circle at top right, rgba(122, 31, 43, 0.09), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #fffaf5 100%) !important;
}

.dfp-editorial-v2 .dfp-two-col-profile > .dfp-profile-card::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: inherit !important;
    border-top: 4px solid rgba(185, 133, 59, 0.42) !important;
    pointer-events: none !important;
}

.dfp-editorial-v2 .dfp-profile-card h3 {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 0 0.9rem !important;
    color: var(--dfp-text, #241a14) !important;
    font-size: clamp(1.2rem, 1.65vw, 1.48rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
    text-transform: uppercase !important;
}

.dfp-editorial-v2 .dfp-profile-card h3::before {
    content: '🍷' !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.6rem !important;
    height: 1.6rem !important;
    border-radius: 999px !important;
    background: rgba(122, 31, 43, 0.08) !important;
    font-size: 0.92rem !important;
    line-height: 1 !important;
}

.dfp-editorial-v2 .dfp-profile-intro {
    max-width: 360px !important;
    margin: 0 0 1.15rem !important;
    color: var(--dfp-muted, rgba(36, 26, 20, 0.68)) !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
}

.dfp-editorial-v2 .dfp-profile-card .dfp-meter-list,
.dfp-editorial-v2 .dfp-meter-list {
    display: grid !important;
    gap: 0.78rem !important;
    margin: 0 !important;
}

.dfp-editorial-v2 .dfp-profile-card .dfp-meter-row,
.dfp-editorial-v2 .dfp-meter-row {
    display: grid !important;
    grid-template-columns: minmax(92px, 118px) minmax(110px, 1fr) minmax(42px, auto) !important;
    gap: 0.75rem !important;
    align-items: center !important;
}

.dfp-editorial-v2 .dfp-meter-label,
.dfp-editorial-v2 .dfp-meter-score {
    color: var(--dfp-text, #241a14) !important;
    font-size: 0.92rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

.dfp-editorial-v2 .dfp-meter-score {
    text-align: right !important;
}

.dfp-editorial-v2 .dfp-meter-track,
.dfp-score-track {
    position: relative !important;
    overflow: hidden !important;
    height: 10px !important;
    border-radius: 999px !important;
    background: rgba(45, 28, 18, 0.11) !important;
}

.dfp-editorial-v2 .dfp-meter-fill,
.dfp-score-fill {
    display: block !important;
    height: 100% !important;
    border-radius: inherit !important;
    background: linear-gradient(90deg, var(--dfp-gold, #b9853b), var(--dfp-accent, #7a1f2b)) !important;
    box-shadow: 0 0 18px rgba(122, 31, 43, 0.16) !important;
}

.dfp-editorial-v2 .dfp-two-col-tags {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: clamp(1rem, 2vw, 1.4rem) !important;
    align-items: stretch !important;
    margin: 2rem 0 !important;
}

.dfp-editorial-v2 .dfp-two-col-tags > .dfp-tags-card {
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    .dfp-editorial-v2 .dfp-two-col-profile,
    .dfp-editorial-v2 .dfp-two-col-tags {
        grid-template-columns: 1fr !important;
    }

    .dfp-editorial-v2 .dfp-two-col-profile > .dfp-panel,
    .dfp-editorial-v2 .dfp-two-col-profile > .dfp-profile-card {
        border-radius: 22px !important;
    }
}

@media (max-width: 640px) {
    .dfp-editorial-v2 .dfp-two-col-profile > .dfp-panel,
    .dfp-editorial-v2 .dfp-two-col-profile > .dfp-profile-card {
        padding: 1.15rem !important;
    }

    .dfp-editorial-v2 .dfp-profile-card .dfp-meter-row,
    .dfp-editorial-v2 .dfp-meter-row {
        grid-template-columns: 1fr !important;
        gap: 0.28rem !important;
    }

    .dfp-editorial-v2 .dfp-meter-score {
        text-align: left !important;
    }
}
/* Donzella Food Pairing Engine — compact ROI pairing card support CSS
   Add to bottom of public/assets/public.css if you want mobile polish.
   The PHP file already includes critical inline styling for this card. */

.dfp-roi-answer-card .dfp-roi-answer-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(280px, .78fr) !important;
}

.dfp-roi-answer-card .dfp-roi-meter-fill,
.dfp-roi-answer-card [style*="linear-gradient"] {
    transition: width 260ms ease;
}

/* Kill any leftover old kicker if an older generated page still contains it. */
.dfp-answer-kicker,
.dfp-answer-kicker-side {
    display: none !important;
}

@media (max-width: 860px) {
    .dfp-roi-answer-card {
        margin: 1rem auto 1.35rem !important;
        padding: 16px !important;
        border-radius: 24px !important;
    }

    .dfp-roi-answer-card .dfp-roi-answer-grid {
        grid-template-columns: 1fr !important;
    }

    .dfp-roi-answer-card .dfp-roi-direction-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 520px) {
    .dfp-roi-answer-card .dfp-roi-meter-row {
        grid-template-columns: 74px 1fr 38px !important;
        gap: 8px !important;
    }
}

/* Donzella one-section ROI card support — paste at bottom of public/assets/public.css if needed. */
.dfp-one-section-roi-card,
.dfp-one-section-roi-card * {
    box-sizing: border-box;
}

.dfp-one-section-roi-card {
    clear: both;
}

.dfp-one-section-roi-card .dfp-one-section-roi-profile {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 760px) {
    .dfp-one-section-roi-card {
        padding: 16px !important;
        border-radius: 22px !important;
    }

    .dfp-one-section-roi-grid {
        grid-template-columns: 1fr !important;
    }

    .dfp-one-section-roi-profile {
        margin-top: 2px !important;
    }

    .dfp-one-section-roi-direction-grid {
        grid-template-columns: 1fr !important;
    }
}

.dfp-food-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.dfp-food-card {
    overflow: hidden;
}

.dfp-food-card-image {
    display: block;
    margin: -18px -18px 14px;
}

.dfp-food-card-image img,
.dfp-food-card-image-tag {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.dfp-food-card h3 a {
    margin: 0;
    font-weight: 150 !important;
}

.dfp-food-card p,
.dfp-food-card .dfp-food-card-link {
    display: none !important;
}

