/* Events public detail — /events/{slug}
 * Namespace: evt-
 * ADR-027 + TOP RULE 3: literal color values only, no var(--*).
 * Palette source: docs/sessioncap/417-v2-admin-style-guide-brand-colors.html
 * (Expedia tab — public surfaces): navy #191e3b, blue #1668e3, green #1b8c3f,
 * gold #ffc94d. Grays match public.css k-* rules.
 */

.evt-detail {
    max-width: 880px;
    margin: 0 auto;
    padding: 16px;
    color: #191e3b;
    box-sizing: border-box;
}

/* Hero ─────────────────────────────────────────────── */

.evt-hero {
    padding: 24px 0 16px;
    border-bottom: 1px solid #e8ecf1;
    margin-bottom: 24px;
}

.evt-tag-row {
    margin-bottom: 8px;
}

.evt-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #eef3fb;
    color: #1668e3;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.evt-title {
    margin: 0 0 12px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    color: #191e3b;
}

.evt-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

/* Date badge ─────────────────────────────────────── */
.evt-datebadge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    padding: 8px 4px;
    background: #ffffff;
    border: 1px solid #dbe1ea;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(25, 30, 59, 0.06);
    line-height: 1;
    flex-shrink: 0;
}
.evt-datebadge-month {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: #1668e3;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.evt-datebadge-day {
    font-size: 22px;
    font-weight: 700;
    color: #191e3b;
    margin: 2px 0;
}
.evt-datebadge-year {
    font-size: 11px;
    color: #6b7280;
}

.evt-daterange {
    flex: 1 1 260px;
    min-width: 200px;
}
.evt-daterange-primary {
    font-weight: 600;
    color: #191e3b;
    font-size: 15px;
}
.evt-daterange-time {
    color: #4a5568;
    font-size: 14px;
    margin-top: 2px;
}

.evt-organiser {
    color: #4a5568;
    font-size: 14px;
    flex-basis: 100%;
}
.evt-organiser a {
    color: #1668e3;
    text-decoration: none;
    font-weight: 600;
}
.evt-organiser a:hover,
.evt-organiser a:focus-visible {
    text-decoration: underline;
}

/* Hero image ─────────────────────────────────────── */
.evt-hero-img {
    margin: 0 0 24px;
    border-radius: 10px;
    overflow: hidden;
    background: #f2f4f7;
}
.evt-hero-img img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
}

/* Section shell ─────────────────────────────────── */
.evt-section {
    padding: 20px 0;
    border-top: 1px solid #e8ecf1;
}
.evt-section:first-of-type {
    border-top: none;
    padding-top: 0;
}
.evt-section-title {
    margin: 0 0 12px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #191e3b;
}

/* When & Where ─────────────────────────────────── */
.evt-when-where-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 16px;
}
@media (max-width: 640px) {
    .evt-when-where-grid { grid-template-columns: 1fr; gap: 16px; }
}
.evt-labelrow {
    margin-bottom: 4px;
}
.evt-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}
.evt-when, .evt-where {
    color: #191e3b;
    font-size: 15px;
    line-height: 1.5;
}
.evt-when-time {
    color: #4a5568;
    font-size: 14px;
    margin-top: 4px;
}
.evt-venue-name {
    font-weight: 600;
}
.evt-address, .evt-locality {
    color: #4a5568;
    font-size: 14px;
}

.evt-map {
    margin-top: 16px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8ecf1;
    min-height: 320px;
}
.evt-map > div[data-island="public-geo-map"] {
    display: block;
    height: 360px;
    width: 100%;
}

/* Contact ───────────────────────────────────────── */
.evt-contact-name {
    font-weight: 600;
    margin-bottom: 8px;
}
.evt-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.evt-contact-link {
    color: #1668e3;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}
.evt-contact-link:hover,
.evt-contact-link:focus-visible {
    text-decoration: underline;
}

/* Button ────────────────────────────────────────── */
.evt-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease;
}
.evt-btn-primary {
    background: #1668e3;
    color: #ffffff;
}
.evt-btn-primary:hover,
.evt-btn-primary:focus-visible {
    background: #0f4fb8;
}

/* Description ─────────────────────────────────── */
.evt-description-body {
    color: #191e3b;
    font-size: 16px;
    line-height: 1.65;
}
.evt-prose h2, .evt-prose h3, .evt-prose h4 {
    font-family: 'Poppins', system-ui, sans-serif;
    color: #191e3b;
    margin-top: 1.4em;
    margin-bottom: 0.5em;
}
.evt-prose p { margin: 0 0 1em; }
.evt-prose a { color: #1668e3; }
.evt-prose ul, .evt-prose ol { padding-left: 1.5em; margin: 0 0 1em; }
.evt-prose img { max-width: 100%; height: auto; border-radius: 6px; }
.evt-prose blockquote {
    border-left: 3px solid #1668e3;
    padding: 4px 0 4px 16px;
    color: #4a5568;
    margin: 1em 0;
}

/* Gallery ───────────────────────────────────────── */
.evt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 640px) {
    .evt-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.evt-gallery-cell {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f4f7;
    aspect-ratio: 4 / 3;
    position: relative;
}
.evt-gallery-cell img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.evt-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: rgba(25, 30, 59, 0.72);
    color: #ffffff;
    font-size: 12px;
    line-height: 1.3;
}

/* Organiser card ─────────────────────────────── */
.evt-organiser-card { }
.evt-organiser-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f7f9fc;
    border: 1px solid #dbe1ea;
    border-radius: 10px;
    text-decoration: none;
    color: #191e3b;
    transition: border-color 120ms ease, background-color 120ms ease;
}
.evt-organiser-link:hover,
.evt-organiser-link:focus-visible {
    border-color: #1668e3;
    background: #ffffff;
}
.evt-organiser-name {
    font-weight: 600;
    font-size: 16px;
}
.evt-organiser-cta {
    color: #1668e3;
    font-weight: 600;
    font-size: 14px;
}

/* Share ─────────────────────────────────────────── */
.evt-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.evt-share-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #dbe1ea;
    border-radius: 6px;
    color: #191e3b;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
    transition: border-color 120ms ease, background-color 120ms ease;
}
.evt-share-btn:hover,
.evt-share-btn:focus-visible {
    border-color: #1668e3;
    background: #f7f9fc;
}
.evt-share-toast {
    margin-top: 10px;
    padding: 6px 12px;
    background: #1b8c3f;
    color: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    display: inline-block;
}

/* Responsive tightening ────────────────────────── */
@media (max-width: 640px) {
    .evt-detail { padding: 12px; }
    .evt-title { font-size: 24px; }
    .evt-section-title { font-size: 18px; }
    .evt-hero-img img { max-height: 320px; }
}
