/* Event detail. Tokens come from theme.css; similar-event cards reuse events.css.
   One quiet type scale: headings 600, values 500, text 400. Sections are unboxed and
   separated by hairlines; only the register card and the venue card carry a border. */
.ed { padding: 18px 0 72px; background: var(--color-surface); }
/* The event section uses the shared site-shell container. */
.ed-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ed svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Breadcrumb ---- */
.ed-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    color: var(--color-muted);
    font-size: .8125rem;
}
.ed-crumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--color-blue); text-decoration: none; }
.ed-crumb a:hover { text-decoration: underline; }
.ed-crumb [aria-current="page"] {
    max-width: 36ch;
    overflow: hidden;
    color: var(--color-navy);
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ed-crumb svg { width: 16px; height: 16px; }

/* ---- Hero ---- */
.ed-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding-bottom: 36px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--color-line-soft);
}
.ed-kicker {
    display: inline-block;
    margin: 0 0 14px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--color-tint);
    color: var(--color-blue);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.ed-hero h1 {
    margin: 0 0 12px;
    color: var(--color-navy);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.18;
}
.ed-lead { max-width: 52ch; margin: 0; color: var(--color-muted); font-size: 1rem; line-height: 1.65; }
.ed-meta { display: flex; flex-wrap: wrap; gap: 14px 0; margin: 24px 0 0; padding: 0; list-style: none; }
.ed-meta li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0 20px;
    border-left: 1px solid var(--color-line-soft);
}
.ed-meta li:first-child { padding-left: 0; border-left: 0; }
.ed-meta svg { width: 18px; height: 18px; margin-top: 2px; flex: none; color: var(--color-blue); }
.ed-meta strong, .ed-meta small { display: block; }
.ed-meta strong { color: var(--color-navy); font-size: .875rem; font-weight: 500; line-height: 1.35; }
.ed-meta small { color: var(--color-muted); font-size: .8125rem; }
.ed-hero__photo {
    overflow: hidden;
    aspect-ratio: 2 / 1;
    border-radius: var(--radius-xl);
    background: linear-gradient(120deg, var(--color-blue), var(--color-navy-deep));
}
.ed-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- Body: content column + register sidebar ---- */
.ed-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas: "main side";
    gap: 48px;
    align-items: start;
}
.ed-main { grid-area: main; min-width: 0; }
.ed-register { grid-area: side; }

.ed-section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--color-line-soft); }
.ed-section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.ed-section > h2,
.ed-similar__head h2 {
    margin: 0 0 16px;
    color: var(--color-navy);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -.01em;
}
.ed-text { max-width: 72ch; margin: 0; color: var(--color-text); font-size: .9375rem; line-height: 1.75; }
.ed-text--muted { color: var(--color-muted); }

.ed-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.ed-tags li {
    padding: 4px 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-pill);
    color: var(--color-navy);
    font-size: .8125rem;
    font-weight: 500;
}

/* Shared "icon + title + muted line" rows */
.ed-find strong, .ed-steps strong, .ed-notes strong, .ed-register__rows strong { display: block; color: var(--color-navy); line-height: 1.4; }
.ed-find small, .ed-steps small, .ed-notes small, .ed-register__rows small { display: block; margin-top: 2px; color: var(--color-muted); line-height: 1.5; }

.ed-find { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin: 0; padding: 0; list-style: none; }
.ed-find li { display: flex; gap: 14px; }
.ed-ico {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--color-gold-soft);
    color: var(--color-navy);
    flex: none;
}
.ed-ico svg { width: 18px; height: 18px; }
.ed-find strong { font-size: .9375rem; font-weight: 600; }
.ed-find small { font-size: .875rem; }

.ed-steps { margin: 0; padding: 0; list-style: none; counter-reset: ed-step; }
.ed-steps li { position: relative; padding: 0 0 20px 44px; counter-increment: ed-step; }
.ed-steps li:last-child { padding-bottom: 0; }
.ed-steps li::before {
    content: counter(ed-step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-line);
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-navy);
    font-size: .8125rem;
    font-weight: 500;
}
.ed-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 32px;
    bottom: 4px;
    left: 14px;
    width: 1px;
    background: var(--color-line-soft);
}
.ed-steps strong { padding-top: 3px; font-size: .9375rem; font-weight: 600; }
.ed-steps small { font-size: .875rem; }
/* Wide screens: the same steps as one row, dots joined by a horizontal line. */
@media (min-width: 861px) {
    .ed-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
    .ed-steps li { padding: 40px 0 0; }
    .ed-steps li:not(:last-child)::after { top: 14px; right: -20px; bottom: auto; left: 36px; width: auto; height: 1px; }
}

.ed-schedule { margin: 0; }
.ed-schedule div {
    display: grid;
    grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid var(--color-line-soft);
    font-size: .9375rem;
}
.ed-schedule div:first-child { padding-top: 0; border-top: 0; }
.ed-schedule dt { color: var(--color-navy); font-weight: 500; }
.ed-schedule dd { margin: 0; color: var(--color-text); }

.ed-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; margin: 0; padding: 0; list-style: none; }
.ed-notes li { display: flex; gap: 12px; }
.ed-notes svg { width: 18px; height: 18px; margin-top: 2px; flex: none; color: var(--color-blue); }
.ed-notes strong { font-size: .9375rem; font-weight: 500; }
.ed-notes small { font-size: .875rem; }

.ed-venue {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--color-line-soft);
    border-radius: var(--radius-xl);
}
.ed-venue > div { padding: 20px 22px; }
.ed-venue > div + div { border-left: 1px solid var(--color-line-soft); }
.ed-venue h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--color-muted);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.ed-venue h3 svg { width: 16px; height: 16px; color: var(--color-blue); }
.ed-venue p { margin: 0 0 4px; color: var(--color-text); font-size: .875rem; line-height: 1.55; overflow-wrap: anywhere; }
.ed-venue p strong { color: var(--color-navy); font-size: .9375rem; font-weight: 500; }
.ed-venue p.ed-text--muted { margin-bottom: 10px; font-size: .8125rem; }
.ed-venue a { color: var(--color-blue); font-weight: 500; text-decoration: none; }
.ed-venue a:hover { text-decoration: underline; }
.ed-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: .875rem; }
.ed-link svg { width: 14px; height: 14px; }

/* ---- Register card ---- */
.ed-register {
    position: sticky;
    top: 24px;
    border: 1px solid var(--color-line-soft);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    box-shadow: 0 12px 28px -24px rgba(11, 40, 87, .45);
}
.ed-register__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--color-line-soft);
}
.ed-register__head h2 { margin: 0; color: var(--color-navy); font-size: 1.0625rem; font-weight: 600; }
.ed-register__head span {
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    background: var(--color-success-soft);
    color: var(--color-success);
    font-size: .75rem;
    font-weight: 500;
}
.ed-register__rows { margin: 0; padding: 4px 20px; list-style: none; }
.ed-register__rows li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--color-line-soft); }
.ed-register__rows li:first-child { border-top: 0; }
.ed-register__rows svg { width: 18px; height: 18px; margin-top: 1px; flex: none; color: var(--color-blue); }
.ed-register__rows strong { font-size: .875rem; font-weight: 500; overflow-wrap: anywhere; }
.ed-register__rows small { font-size: .8125rem; }
.ed-register__foot { padding: 4px 20px 20px; }
.ed-register__go { width: 100%; min-height: 46px; }
.ed-register__go svg { width: 16px; height: 16px; }
.ed-register__foot p { margin: 10px 0 0; color: var(--color-muted); font-size: .8125rem; line-height: 1.45; text-align: center; }

/* ---- Similar events ---- */
.ed-similar { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--color-line-soft); }
.ed-similar__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ed-similar__head a { display: inline-flex; flex: none; align-items: center; gap: 4px; white-space: nowrap; color: var(--color-blue); font-size: .875rem; font-weight: 500; text-decoration: none; }
.ed-similar__head a:hover { text-decoration: underline; }
.ed-similar__head svg { width: 16px; height: 16px; }
.ed .ev-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed .ev-card h3 {
    display: -webkit-box;
    margin: 2px 36px 0 0;
    overflow: hidden;
    color: var(--color-navy);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.ed .ev-date b { font-weight: 600; }
.ed .ev-date small { font-size: .75rem; }

.ed-crumb a:focus-visible,
.ed-register__go:focus-visible,
.ed-venue a:focus-visible,
.ed-similar__head a:focus-visible,
.ed .ev-card:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .ed-hero { gap: 32px; }
    .ed-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; gap: 36px; }
    .ed-register { position: static; }
    .ed-register__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
    .ed-register__rows li:nth-child(2) { border-top: 0; }
    .ed-register__foot { display: flex; align-items: center; gap: 16px; }
    .ed-register__go { width: auto; padding-inline: 28px; }
    .ed-register__foot p { margin: 0; text-align: left; }
    .ed .ev-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .ed-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 28px; margin-bottom: 28px; }
    .ed-hero__photo { order: -1; aspect-ratio: 16 / 9; }
    .ed-find, .ed-notes, .ed .ev-cards { grid-template-columns: 1fr; }
    .ed-crumb [aria-current="page"] { max-width: 18ch; }
}
@media (max-width: 640px) {
    .ed-meta { gap: 12px 24px; }
    .ed-meta li { padding: 0; border-left: 0; }
    .ed-register__rows { display: block; }
    .ed-register__rows li:nth-child(2) { border-top: 1px solid var(--color-line-soft); }
    .ed-register__foot { display: block; }
    .ed-register__go { width: 100%; }
    .ed-register__foot p { margin-top: 10px; text-align: center; }
    .ed-venue { grid-template-columns: 1fr; }
    .ed-venue > div + div { border-left: 0; border-top: 1px solid var(--color-line-soft); }
    .ed-schedule div { grid-template-columns: 1fr; gap: 2px; }
}

.high-contrast .ed-kicker,
.high-contrast .ed-register__head span { background: #000; color: #fff; }
.high-contrast .ed-register,
.high-contrast .ed-venue,
.high-contrast .ed-steps li::before { border-color: #000; }
