/* Editorial Template — Magazine-style with masthead and rich typography
   ========================================================================== */

.dp-template-editorial {
    font-family: 'Inter', 'Georgia', serif;
    line-height: 1.7;
}

/* Typography — serif headings, larger body text */
.dp-template-editorial h1,
.dp-template-editorial h2,
.dp-template-editorial h3 {
    font-family: 'Georgia', serif;
}

.dp-template-editorial h1 { font-size: 2.25rem; line-height: 1.2; }
.dp-template-editorial h2 { font-size: 1.5rem; }

.dp-template-editorial .dp-section-heading {
    font-family: 'Georgia', serif;
}

/* Masthead — magazine-style header */
.dp-editorial-masthead {
    background: var(--dp-bg);
    border-bottom: 3px solid var(--dp-primary);
}

.dp-editorial-logo {
    font-size: 2.2rem;
    text-decoration: none;
    color: var(--dp-text);
    display: inline-block;
    font-family: 'Georgia', serif;
    letter-spacing: -0.01em;
}

.dp-editorial-logo:hover {
    text-decoration: none;
    color: var(--dp-text);
}

.dp-editorial-tagline {
    font-size: 0.85rem;
    color: var(--dp-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Nav — centered, magazine-style rule lines */
.dp-editorial-nav {
    background: var(--dp-bg);
    border-bottom: 1px solid var(--dp-border);
    padding: 0;
}

.dp-editorial-nav .nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dp-text);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.dp-editorial-nav .nav-link:hover,
.dp-editorial-nav .nav-link.active {
    border-bottom-color: var(--dp-accent);
    color: var(--dp-accent);
}

.dp-editorial-nav .dropdown-menu {
    border: none;
    border-top: 2px solid var(--dp-accent);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.dp-editorial-nav .dropdown-item:hover {
    color: var(--dp-accent);
    background: var(--dp-bg-light);
}

/* Search button — editorial style */
.dp-template-editorial .dp-search-btn {
    color: var(--dp-text) !important;
    opacity: 0.7;
}

.dp-template-editorial .dp-search-btn:hover {
    opacity: 1;
}

/* Two-column layout for guides/articles */
.dp-editorial-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.dp-editorial-main {
    min-width: 0;
}

.dp-editorial-sidebar {
    border-left: 1px solid var(--dp-border);
    padding-left: 2rem;
}

.dp-editorial-sidebar h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dp-text-muted);
    border-bottom: 2px solid var(--dp-accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Product cards — clean lines, no shadow */
.dp-template-editorial .dp-product-card {
    border: none;
    border-bottom: 1px solid var(--dp-border);
    border-radius: 0;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

.dp-template-editorial .dp-product-card:hover {
    background-color: var(--dp-bg-light);
    transform: none;
    box-shadow: none;
}

.dp-template-editorial .dp-product-card:last-child {
    border-bottom: none;
}

.dp-template-editorial .dp-product-card .dp-product-name {
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
}

/* Product grid — editorial uses 4 columns like overview */
.dp-template-editorial .dp-product-grid {
    gap: 0;
}

.dp-template-editorial .dp-product-grid > div {
    border-bottom: 1px solid var(--dp-border);
    border-right: 1px solid var(--dp-border);
}

.dp-template-editorial .dp-product-grid > div:nth-child(4n) {
    border-right: none;
}

/* Price — editorial accent */
.dp-template-editorial .dp-product-detail-price {
    font-family: 'Georgia', serif;
    font-size: 1.6rem;
}

/* Featured article/product card */
.dp-editorial-featured {
    border: 2px solid var(--dp-primary);
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: var(--dp-bg-light);
}

.dp-editorial-featured h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Drop caps on guide pages */
.dp-template-editorial .dp-guide-content > p:first-of-type::first-letter {
    font-family: 'Georgia', serif;
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    padding-right: 0.5rem;
    padding-top: 0.1rem;
    color: var(--dp-accent);
    font-weight: 700;
}

/* Guide intro — editorial style */
.dp-template-editorial .dp-guide-intro {
    font-size: 1.2rem;
    border-left: 4px solid var(--dp-accent);
    font-style: italic;
}

/* Sections — slightly more padding */
.dp-template-editorial .dp-section {
    padding: 3.5rem 0;
}

/* Section headings — rule below */
.dp-template-editorial .dp-section-heading {
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--dp-accent);
    display: inline-block;
}

/* Breadcrumb */
.dp-template-editorial .dp-breadcrumb {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Content pages — narrower column for readability */
.dp-template-editorial .dp-content-card .card-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Filter bar — clean line style */
.dp-template-editorial .dp-filter-bar {
    border: none;
    border-bottom: 1px solid var(--dp-border);
    border-radius: 0;
    box-shadow: none;
}

/* Campaign banners — no border radius */
.dp-template-editorial .dp-campaign-banner {
    border-radius: 0;
}

/* Card refinement */
.dp-template-editorial .dp-card-static {
    border-radius: 0;
}

/* Brand badge */
.dp-template-editorial .dp-brand-badge {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.06em;
}

/* Responsive */
@media (max-width: 991px) {
    .dp-editorial-layout {
        grid-template-columns: 1fr;
    }

    .dp-editorial-sidebar {
        border-left: none;
        border-top: 1px solid var(--dp-border);
        padding-left: 0;
        padding-top: 2rem;
    }
}

@media (max-width: 768px) {
    .dp-template-editorial h1 {
        font-size: 1.75rem;
    }

    .dp-template-editorial .dp-guide-content > p:first-of-type::first-letter {
        font-size: 2.75rem;
    }

    .dp-template-editorial .dp-product-grid > div {
        border-right: none;
    }

    .dp-template-editorial .dp-product-grid > div:nth-child(2n) {
        border-right: none;
    }
}
