/**
 * Public CSS for Delmarva News Component
 */
.delmarva-news-page {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
}

/* Compact Hero Banner Matching /dining, /attractions, /icecream */
.delmarva-news-hero-banner {
    position: relative;
    width: 100%;
    height: 190px;
    background-size: cover;
    background-position: center 30%;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

@media (min-width: 640px) {
    .delmarva-news-hero-banner {
        height: 220px;
    }
}

@media (min-width: 768px) {
    .delmarva-news-hero-banner {
        height: 240px;
    }
}

.delmarva-news-main {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1rem 3.5rem 1rem;
}

@media (min-width: 640px) {
    .delmarva-news-main {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .delmarva-news-main {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Dark mode overrides for cards */
html.dark .delmarva-news-hero,
.dark .delmarva-news-hero,
html.dark .delmarva-news-card,
.dark .delmarva-news-card {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

html.dark .delmarva-news-hero-heading a,
.dark .delmarva-news-hero-heading a,
html.dark .delmarva-news-card-title a,
.dark .delmarva-news-card-title a {
    color: #f1f5f9;
}

html.dark .delmarva-news-hero-excerpt,
.dark .delmarva-news-hero-excerpt,
html.dark .delmarva-news-card-excerpt,
.dark .delmarva-news-card-excerpt {
    color: #94a3b8;
}

html.dark .delmarva-news-source,
.dark .delmarva-news-source {
    color: #cbd5e1;
}

html.dark .delmarva-news-meta,
.dark .delmarva-news-meta {
    color: #64748b;
}

/* Hero Lead Card */
.delmarva-news-hero {
    position: relative;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 768px) {
    .delmarva-news-hero {
        grid-template-columns: 1.2fr 1fr;
    }
}

.delmarva-news-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.1);
    border-color: #93c5fd;
}

.delmarva-news-hero-media {
    position: relative;
    background: #0b2545;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.delmarva-news-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.delmarva-news-hero:hover .delmarva-news-hero-media img {
    transform: scale(1.03);
}

.delmarva-news-hero-fallback {
    color: #ffffff;
    padding: 30px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.delmarva-news-hero-body {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.delmarva-news-badge {
    align-self: flex-start;
    background: #eef4fc;
    color: #0056b3;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.delmarva-news-hero-heading {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 800;
    margin: 0 0 14px 0;
}

.delmarva-news-hero-heading a {
    color: #0b2545;
    text-decoration: none;
    transition: color 0.2s ease;
}

.delmarva-news-hero:hover .delmarva-news-hero-heading a,
.delmarva-news-hero-heading a:hover {
    color: #0056b3;
}

.delmarva-news-hero-excerpt {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.5;
    margin: 0 0 18px 0;
}

.delmarva-news-meta {
    font-size: 12px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.delmarva-news-source {
    font-weight: 700;
    color: #2d3748;
}

.delmarva-news-ext-icon {
    display: inline-block;
    vertical-align: middle;
    width: 14px;
    height: 14px;
    fill: currentColor;
    margin-left: 4px;
}

/* Responsive Grid for Standard Stories */
.delmarva-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.delmarva-news-card {
    position: relative;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.delmarva-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border-color: #93c5fd;
}

.delmarva-news-card-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin: 10px 0 10px 0;
}

.delmarva-news-card-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.delmarva-news-card:hover .delmarva-news-card-title a,
.delmarva-news-card-title a:hover {
    color: #0056b3;
}

.delmarva-news-card-excerpt {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
    margin: 0 0 14px 0;
}

/* Stretched Link Overlay for Full Card Clickability */
.delmarva-news-stretched-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    pointer-events: auto;
}

/* Card Footer & CTA Button (Modeled after /dining cards) */
.delmarva-news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.delmarva-news-hero-footer {
    margin-top: auto;
    padding-top: 18px;
}

.delmarva-news-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0056b3;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 18px;
    border-radius: 9999px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 86, 179, 0.25);
    transition: all 0.2s ease;
    user-select: none;
    flex-shrink: 0;
    pointer-events: none;
}

.delmarva-news-card:hover .delmarva-news-cta-btn,
.delmarva-news-hero:hover .delmarva-news-cta-btn {
    background: #004494;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.35);
    transform: translateY(-1px);
}

.delmarva-news-cta-arrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.2s ease;
}

.delmarva-news-card:hover .delmarva-news-cta-arrow,
.delmarva-news-hero:hover .delmarva-news-cta-arrow {
    transform: translateX(3px);
}

/* Dark mode adjustments for card footer and CTA button */
html.dark .delmarva-news-footer,
.dark .delmarva-news-footer {
    border-top-color: #334155;
}

html.dark .delmarva-news-cta-btn,
.dark .delmarva-news-cta-btn {
    background: #2563eb;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

html.dark .delmarva-news-card:hover .delmarva-news-cta-btn,
.dark .delmarva-news-card:hover .delmarva-news-cta-btn,
html.dark .delmarva-news-hero:hover .delmarva-news-cta-btn,
.dark .delmarva-news-hero:hover .delmarva-news-cta-btn {
    background: #3b82f6;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45);
}

html.dark .delmarva-news-card:hover,
.dark .delmarva-news-card:hover,
html.dark .delmarva-news-hero:hover,
.dark .delmarva-news-hero:hover {
    border-color: #3b82f6;
}

/* Single News Story Reader & Multi-Photo Gallery Styles */
.delmarva-story-page {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.delmarva-story-body {
    font-size: 18px;
    line-height: 1.8;
    color: #1e293b;
}

.delmarva-story-body p {
    margin-bottom: 1.5rem;
}

.delmarva-story-body h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.delmarva-story-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* Rich Block Editor Galleries & Photos */
.delmarva-story-body .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.delmarva-story-body .wp-block-gallery .wp-block-image {
    margin: 0;
}

.delmarva-story-body .wp-block-gallery img,
.delmarva-story-body .wp-block-image img {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.delmarva-story-body .wp-block-gallery img:hover,
.delmarva-story-body .wp-block-image img:hover {
    transform: scale(1.015);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.delmarva-story-body figcaption {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    text-align: center;
    margin-top: 6px;
}

.delmarva-story-body blockquote {
    border-left: 4px solid #4f46e5;
    padding-left: 1.25rem;
    margin: 2rem 0;
    font-style: italic;
    color: #475569;
}

/* Breaking News Alert Chyron Banner (Restrained, Authoritative Editorial Design) */
.delmarva-breaking-banner {
    background-color: #0f172a;
    border-bottom: 2px solid #dc2626;
    color: #f8fafc;
    width: 100%;
    position: relative;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.delmarva-breaking-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.delmarva-breaking-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.delmarva-breaking-badge {
    background-color: #dc2626;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-block;
    line-height: 1;
}

.delmarva-breaking-text {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.delmarva-breaking-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.delmarva-breaking-link {
    color: #fca5a5;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.delmarva-breaking-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.delmarva-breaking-dismiss {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.delmarva-breaking-dismiss:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.delmarva-breaking-dismiss:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .delmarva-breaking-container {
        padding: 8px 12px;
        gap: 10px;
    }

    .delmarva-breaking-left {
        gap: 8px;
    }

    .delmarva-breaking-text {
        font-size: 13px;
    }

    .delmarva-breaking-link {
        font-size: 12px;
    }
}

