/* CDC Events plugin styles */

/* ──────────────────────────────────────────────────────────────
   Archive: page hero
   ────────────────────────────────────────────────────────────── */
.cdc-events-archive { color: #1a1a1a; }
.cdc-events-archive .cea-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 22px 0;
    margin-bottom: 4px;
}
.cdc-events-archive .cea-hero .page-title {
    margin: 0;
}
.cdc-events-archive .cea-hero-lede {
    color: #6b7280;
    font-size: 15px;
    margin: 6px 0 0;
}
.cdc-events-archive .cea-count-pill {
    border: 2px solid var(--cdc-blue);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cdc-blue);
    background: #fff;
    white-space: nowrap;
}

/* ──────────────────────────────────────────────────────────────
   Highlighted strip (top 3 cards)
   ────────────────────────────────────────────────────────────── */
.cdc-events-archive .cea-highlighted-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 16px;
}
.cdc-events-archive .cea-highlighted-head h2 {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cdc-events-archive .cea-star { color: var(--cdc-blue); }
.cdc-events-archive .cea-rule { flex: 1; height: 1px; background: #e5e7eb; }

.cdc-events-archive .cea-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}
/* .cea-feat-card uses .box-standout-sm for border + radius + shadow.
   Override its padding so the image hugs the rounded outline edge. */
.cdc-events-archive .cea-feat-card {
    padding: 0;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .15s;
    position: relative;
}
.cdc-events-archive .cea-feat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -8px rgba(0,102,214,0.35);
    text-decoration: none;
}
.cdc-events-archive .cea-feat-img {
    position: relative;
    aspect-ratio: 5 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f3f4f6;
}
.cdc-events-archive .cea-feat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cdc-events-archive .cea-feat-label {
    position: relative;
    text-align: center;
    color: #fff;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 8px rgba(0,0,0,0.18);
    padding: 14px 18px;
    line-height: 1.1;
}
.cdc-events-archive .cea-feat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    color: var(--cdc-blue);
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.cdc-events-archive .cea-feat-date {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    background: rgba(255,255,255,0.95);
    color: var(--cdc-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
}
.cdc-events-archive .cea-feat-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.cdc-events-archive .cea-feat-name {
    font-size: 1.1em;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
}
.cdc-events-archive .cea-feat-loc {
    font-size: 13px;
    color: #6b7280;
}

/* ──────────────────────────────────────────────────────────────
   Monthly groups
   ────────────────────────────────────────────────────────────── */
.cdc-events-archive .cea-month-group { margin-bottom: 14px; }
.cdc-events-archive .cea-month-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cdc-blue);
}
.cdc-events-archive .cea-month-head h3 {
    font-size: 1.4em;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.005em;
}
.cdc-events-archive .cea-month-year {
    color: #6b7280;
    font-weight: 400;
}
.cdc-events-archive .cea-month-count {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cdc-blue);
    background: #e6f1fb;
    padding: 4px 10px;
    border-radius: 999px;
    margin-left: auto;
}
.cdc-events-archive .cea-month-empty {
    margin: 12px 0 0;
    padding: 16px 12px;
    color: #6b7280;
    font-style: italic;
    text-align: center;
    background: #fafbfc;
    border-radius: 8px;
}

/* ──────────────────────────────────────────────────────────────
   Event row (newsroom-style)
   ────────────────────────────────────────────────────────────── */
.cdc-events-archive .cea-event-list { display: flex; flex-direction: column; }
.cdc-events-archive .cea-event-row {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 24px;
    align-items: center;
    padding: 18px 8px;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
}
.cdc-events-archive .cea-event-row:last-child { border-bottom: none; }
.cdc-events-archive .cea-event-row:hover {
    background: #f7f9fc;
    text-decoration: none;
}

.cdc-events-archive .cea-thumb {
    position: relative;
    aspect-ratio: 5 / 3;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background-color: #f3f4f6;
}
.cdc-events-archive .cea-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cdc-events-archive .cea-mark {
    position: relative;
    color: #fff;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.22);
    text-align: center;
    padding: 8px;
    line-height: 1;
}
.cdc-events-archive .cea-date-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    background: var(--cdc-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.01em;
}

/* Featured row — orange/gold accent only on featured rows */
.cdc-events-archive .cea-event-row.is-featured {
    background: linear-gradient(90deg, rgba(240,168,48,0.10) 0%, rgba(240,168,48,0) 60%);
}
.cdc-events-archive .cea-event-row.is-featured .cea-thumb {
    box-shadow: 0 0 0 2px #f0a830;
}
.cdc-events-archive .cea-event-row.is-featured .cea-date-pill {
    background: #f0a830;
    color: #1a1208;
}
.cdc-events-archive .cea-featured-tag {
    display: inline-block;
    background: #f0a830;
    color: #1a1208;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    margin-right: 10px;
    vertical-align: middle;
    transform: translateY(-2px);
}

.cdc-events-archive .cea-event-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cdc-events-archive .cea-event-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    margin: 0;
}

/* Meta-line tag layout: reuses .post-categories / .post-tags / .locations
   pill styling from the theme. `display: contents` flattens each <ul> so its
   <li>s flow as direct children of the .meta-line flex container. */
.cdc-events-archive .cea-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.cdc-events-archive .cea-meta-line.tags ul {
    display: contents;
}
.cdc-events-archive .cea-meta-line.tags ul li {
    margin: 0;
}

/* ──────────────────────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .cdc-events-archive .cea-featured-grid { grid-template-columns: 1fr; }
    .cdc-events-archive .cea-event-row { grid-template-columns: 1fr; }
    .cdc-events-archive .cea-thumb { aspect-ratio: 16 / 9; }
    .cdc-events-archive .cea-hero { flex-direction: column; align-items: flex-start; }
}

/* ──────────────────────────────────────────────────────────────
   Single event page (unchanged from prior pass)
   ────────────────────────────────────────────────────────────── */

/* Slim SEO breadcrumbs */
.single-cdc_event .breadcrumbs {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem;
}
.single-cdc_event .breadcrumbs a { color: #777; text-decoration: none; }
.single-cdc_event .breadcrumbs a:hover { text-decoration: underline; }

.single-cdc_event .event-hero {
    padding: 0;
    overflow: hidden;
    margin-bottom: 1.75rem;
}
/* Fixed-shape hero box (5:3, matching articleMain). Image is scaled to fit
   inside without cropping — letterboxed (top/bottom) when wider, or
   pillarboxed (left/right) when taller. Box dimensions stay consistent
   across all events regardless of source image aspect ratio. The 1em
   padding gives the image breathing room; the image itself takes a
   border-radius matching the outer .box-standout (15px). */
.single-cdc_event .event-hero-art {
    border-bottom: thick solid var(--cdc-blue);
    background: #fff;
    aspect-ratio: 5 / 3;
    width: 100%;
    box-sizing: border-box;
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.single-cdc_event .event-hero-art img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 15px;
}
.single-cdc_event .event-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
}
.single-cdc_event .event-fact {
    padding: 18px 20px;
    border-right: 1px solid #e5e7eb;
}
.single-cdc_event .event-fact:last-child { border-right: none; }
.single-cdc_event .event-fact-key {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 6px;
}
.single-cdc_event .event-fact-val {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}
.single-cdc_event .event-fact-val a { color: #1a1a1a; }
.single-cdc_event .event-fact-val a:hover { color: var(--cdc-blue); }

.single-cdc_event .event-cta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
}
/* Novashare share button — restyled to match .event-btn ghost variant.
   Resets Novashare's height/line-height/margin/padding defaults so the
   button sizes itself purely from our padding + content, matching the
   Event Website button's vertical metrics. */
.single-cdc_event .event-cta-row .event-share { display: inline-flex; align-items: center; }
.single-cdc_event .event-cta-row .ns-inline-cta { display: none; }
.single-cdc_event .event-cta-row .ns-buttons.ns-inline,
.single-cdc_event .event-cta-row .ns-buttons-wrapper { margin: 0; padding: 0; }
body.single-cdc_event .event-cta-row a.ns-button.share {
    display: inline-flex;
    align-items: center;
    height: auto;
    line-height: 1;
    margin: 0;
    padding: 11px 22px;
    border: 2px solid var(--cdc-blue);
    border-radius: 999px;
    background-color: #fff;
    background-image: none;
    text-decoration: none;
    font-size: 15px;
}
body.single-cdc_event .event-cta-row a.ns-button.share:hover,
body.single-cdc_event .event-cta-row a.ns-button.share:focus,
body.single-cdc_event .event-cta-row a.ns-button.share:active {
    background-color: #0066d6 !important;
    background-image: none !important;
    text-decoration: none;
    /* .ns-button-block paints background: var(--ns-btn-color) on the inner
       spans (wrapper, icon, label). Set it transparent on hover so the
       outer anchor's blue shows through instead of being covered by the
       inner white layer. */
    --ns-btn-color: transparent;
    --ns-icon-color: #fff;
}
body.single-cdc_event .event-cta-row a.ns-button.share:hover .ns-button-block {
    background-color: transparent !important;
}
.single-cdc_event .event-cta-row .ns-button .ns-button-wrapper {
    display: inline-flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 8px;
    height: auto;
    margin: 0;
    padding: 0;
}
.single-cdc_event .event-cta-row .ns-button .ns-button-icon {
    width: 14px !important;
    height: 14px !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 14px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
}
.single-cdc_event .event-cta-row .ns-button .ns-button-icon svg {
    width: 14px !important;
    height: 14px !important;
    display: block;
}
.single-cdc_event .event-cta-row .ns-button .ns-button-icon svg path { fill: var(--cdc-blue); }
.single-cdc_event .event-cta-row .ns-button:hover .ns-button-icon svg path { fill: #fff !important; }
.single-cdc_event .event-cta-row .ns-button:hover .ns-button-icon,
.single-cdc_event .event-cta-row .ns-button:hover .ns-button-icon * { color: #fff !important; }
.single-cdc_event .event-cta-row .ns-button .ns-button-label,
.single-cdc_event .event-cta-row .ns-button .ns-button-label-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    height: auto;
    line-height: 1;
}
.single-cdc_event .event-cta-row .ns-button .ns-button-label span {
    color: var(--cdc-blue);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}
.single-cdc_event .event-cta-row .ns-button:hover .ns-button-label,
.single-cdc_event .event-cta-row .ns-button:hover .ns-button-label span { color: #fff !important; }
.single-cdc_event .event-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 11px 22px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: 2px solid var(--cdc-blue);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.single-cdc_event .event-btn-primary {
    background: var(--cdc-blue);
    color: #fff;
}
.single-cdc_event .event-btn-primary:hover { background: #0055b3; border-color: #0055b3; color: #fff; text-decoration: none; }
.single-cdc_event .event-btn-arr { display: inline-block; transition: transform .15s; }
.single-cdc_event .event-btn:hover .event-btn-arr { transform: translate(2px,-2px); }

.single-cdc_event .event-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cdc-blue);
    display: inline-block;
}

.single-cdc_event .event-about { margin-bottom: 2.5rem; }
.single-cdc_event .event-about p {
    font-size: 16px;
    line-height: 1.6;
    color: #2e2e2e;
    margin: 0 0 1em;
}
.single-cdc_event .event-about > ol,
.single-cdc_event .event-about > ul {
    list-style: none;
    counter-reset: cdc-event-highlight;
    padding: 0;
    margin: 0;
}
.single-cdc_event .event-about > ol > li,
.single-cdc_event .event-about > ul > li {
    counter-increment: cdc-event-highlight;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    align-items: start;
    font-size: 16px;
    line-height: 1.55;
    color: #2e2e2e;
}
.single-cdc_event .event-about > ol > li:last-child,
.single-cdc_event .event-about > ul > li:last-child { border-bottom: none; }
.single-cdc_event .event-about > ol > li::before,
.single-cdc_event .event-about > ul > li::before {
    content: counter(cdc-event-highlight);
    font-family: 'Archivo', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--cdc-blue);
    line-height: 1;
    letter-spacing: -0.01em;
}

.single-cdc_event .event-topics { margin-bottom: 2rem; }
.single-cdc_event .event-topics-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 8px;
}

.single-cdc_event .event-related {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
.single-cdc_event .event-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 1rem 0 1.25rem;
}
.single-cdc_event .event-related-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    transition: background .15s, transform .12s;
}
.single-cdc_event .event-related-card:hover {
    background: #e6f1fb;
    text-decoration: none;
    transform: translateY(-1px);
}
.single-cdc_event .event-date-box {
    background: var(--cdc-blue);
    color: #fff;
    border-radius: 6px;
    text-align: center;
    padding: 8px 6px 10px;
}
.single-cdc_event .event-date-mo {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.9;
}
.single-cdc_event .event-date-day {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.single-cdc_event .event-date-range {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.04em;
    margin-top: 1px;
}
.single-cdc_event .event-related-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 4px;
}
.single-cdc_event .event-related-loc {
    font-size: 13px;
    color: #6b7280;
}
.single-cdc_event .event-browse-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--cdc-blue);
}

@media (max-width: 640px) {
    .single-cdc_event .event-facts { grid-template-columns: 1fr 1fr; }
    .single-cdc_event .event-fact { border-right: none; border-bottom: 1px solid #e5e7eb; }
    .single-cdc_event .event-fact:nth-last-child(-n+2) { border-bottom: none; }
    .single-cdc_event .event-related-grid { grid-template-columns: 1fr; }
}
