/* EVENT detail /event/<id>/ (WordPress-first). Loaded after person-detail.css (tokens, section heads, numbering).
 * A quiet cream page: the date and a coral rule lead, the title in serif, a thin time axis carried over from the EVENT index
 * strata; the people here are the first peak, the venue survey (when it exists) the second; the deep-navy MAP world shows at
 * the side (PC) or at the end (mobile). No event images. Mobile: title/date → people → records → MAP, re-edited, not scaled. */
.mta-ed { --ed-w: 1180px; }

/* ---- Hero ---- */
.mta-ed__hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: end; gap: 24px clamp(28px, 4vw, 64px); max-width: var(--ed-w); margin: 0 auto; padding: clamp(20px, 3vw, 40px) var(--p-gutter) clamp(28px, 3.6vw, 48px); position: relative; }
.mta-ed__hero::after { content: ""; position: absolute; left: var(--p-gutter); right: var(--p-gutter); bottom: 0; height: 1px; background: var(--p-ink); }
.mta-ed__hero .mta-person__crumbs { margin-bottom: clamp(16px, 2.4vw, 28px); }
.mta-ed__hero .mta-person__crumbs span[aria-current] { overflow: hidden; max-width: 40em; text-overflow: ellipsis; white-space: nowrap; }
.mta-ed__kicker { margin: 0 0 18px; color: var(--p-orange); font: 600 11px/1 var(--p-en); letter-spacing: .28em; }
.mta-ed__kicker span { margin-left: 1.2em; color: var(--p-ink); font: 500 13px/1 var(--p-serif); letter-spacing: .12em; }
.mta-ed__date { margin: 0; padding-left: 18px; border-left: 2px solid var(--p-orange); color: var(--p-orange); font: 400 clamp(34px, 3.8vw, 52px)/1 var(--p-en); letter-spacing: .02em; }
body.mta-person-surface .mta-person .mta-ed__title { margin: 14px 0 0; padding-left: 18px; border-left: 2px solid var(--p-orange); color: var(--p-ink); font: 500 clamp(28px, 3.2vw, 46px)/1.4 var(--p-serif); letter-spacing: .04em; overflow-wrap: anywhere; }
.mta-ed__meta { margin: 16px 0 0; padding-left: 20px; color: var(--p-muted); font-size: 13px; letter-spacing: .04em; }
.mta-ed__line { margin: 22px 0 0; color: var(--p-blue); font: 500 clamp(15px, 1.3vw, 18px)/1.7 var(--p-serif); letter-spacing: .06em; }
.mta-ed__lead { max-width: 44em; margin: 12px 0 0; color: var(--p-ink); font-size: 14px; line-height: 1.9; }
.mta-ed__axis { display: grid; gap: 8px; padding: 16px 0 4px; }
.mta-ed__axis-label { color: var(--p-muted); font: 600 10px/1 var(--p-en); letter-spacing: .26em; }
.mta-ed__axis-row { display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); align-items: end; gap: 3px; height: 64px; border-bottom: 1px solid var(--p-ink); }
.mta-ed__axis-row i { display: block; height: calc(4px + var(--h, 0) * 52px); border-radius: 2px 2px 0 0; background: rgba(20, 31, 180, .22); }
.mta-ed__axis-row i.is-here { background: var(--p-orange); box-shadow: 0 0 0 3px rgba(255, 100, 60, .18); }
.mta-ed__axis-ends { display: flex; justify-content: space-between; color: var(--p-muted); font: 500 11px/1 var(--p-en); }
.mta-ed__axis-ends b { color: var(--p-orange); font-weight: 600; }
.mta-ed__axis-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--p-blue); font-size: 13px; font-weight: 600; }
body.mta-person-surface .mta-person a.mta-ed__axis:hover .mta-ed__axis-go { color: var(--p-orange); }

/* ---- Body: main column + aside ---- */
.mta-ed__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: clamp(28px, 4vw, 64px); max-width: var(--ed-w); margin: 0 auto; padding: 0 var(--p-gutter); }
.mta-ed__sec { padding-top: clamp(36px, 4.6vw, 60px); }
.mta-ed__sec + .mta-ed__sec { margin-top: clamp(4px, 1vw, 12px); border-top: 1px solid var(--p-line); }
.mta-ed__note { margin: -12px 0 18px; color: var(--p-muted); font-size: 12px; line-height: 1.7; }

/* People here: the first peak */
.mta-ed__people-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mta-ed__people-list a { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 76px; padding: 10px 14px 10px 10px; border: 1px solid rgba(20, 31, 180, .14); border-radius: 14px; background: rgba(255, 255, 255, .6); }
body.mta-person-surface .mta-person .mta-ed__people-list a:hover { color: inherit; background: #fff; }
.mta-ed__face { position: relative; display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: var(--c, #5b65b6); color: #fff; }
.mta-ed__face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mta-ed__face b { font: 500 22px/1 var(--p-serif); }
.mta-ed__face:not(.is-typographic) b { visibility: hidden; }
.mta-ed__who { display: grid; gap: 2px; min-width: 0; }
.mta-ed__name { color: var(--p-ink); font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.mta-ed__people-list a:hover .mta-ed__name { color: var(--p-blue); }
.mta-ed__genre { color: var(--p-muted); font-size: 11px; }
.mta-ed__role { color: var(--p-orange); font-size: 11px; font-weight: 600; }

/* The venue survey: the second peak */
.mta-ed__voice { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; }
.mta-ed__v-count { display: grid; align-content: center; justify-items: center; margin: 0; padding: 22px 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px rgba(255, 100, 60, .3); }
.mta-ed__v-count b { color: var(--p-orange); font: 400 64px/1 var(--p-en); }
.mta-ed__v-count span { margin-top: 6px; color: var(--p-ink); font-size: 13px; }
.mta-ed__v-lead { display: grid; align-content: center; gap: 10px; padding: 20px 22px; border-radius: 16px; background: #fff; }
.mta-ed__v-big { margin: 0; color: var(--p-ink); }
.mta-ed__v-big b { margin-right: .4em; color: var(--p-orange); font: 400 34px/1.2 var(--p-en); }
.mta-ed__v-big span { font: 500 17px/1.6 var(--p-serif); }
.mta-ed__v-split { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; color: var(--p-muted); font-size: 13px; }
.mta-ed__v-split b { margin-left: 6px; color: var(--p-ink); }
.mta-ed__v-total { margin: 0; color: var(--p-soft); font-size: 11px; }
.mta-ed__v-ages, .mta-ed__v-notes { grid-column: 1 / -1; padding: 18px 22px; border-radius: 16px; background: rgba(255, 255, 255, .55); }
.mta-ed__voice h3 { margin: 0 0 12px; color: var(--p-ink); font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.mta-ed__v-ages ul, .mta-ed__v-notes ul { margin: 0; padding: 0; list-style: none; }
.mta-ed__v-ages li { display: grid; grid-template-columns: 7em minmax(0, 1fr) 4em; align-items: center; gap: 12px; padding: 4px 0; font-size: 12px; }
.mta-ed__v-ages i { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--p-blue), #9fc5f4) 0 0 / calc(var(--w, 0) * 100%) 100% no-repeat, rgba(20, 31, 180, .08); }
.mta-ed__v-ages b { color: var(--p-ink); font-weight: 600; text-align: right; }
.mta-ed__v-notes li { position: relative; padding: 6px 0 6px 18px; color: var(--p-ink); font: 500 15px/1.8 var(--p-serif); }
.mta-ed__v-notes li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 1px; background: var(--p-orange); }
.mta-ed__v-gate { grid-column: 1 / -1; padding: 0 4px; color: var(--p-muted); font-size: 11px; line-height: 1.8; }
.mta-ed__v-gate p { margin: 0; }
.mta-ed__v-origin { margin-top: 4px !important; color: var(--p-soft); }

/* Relations tied to this event */
.mta-ed__rels-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mta-ed__rels-list a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(20, 31, 180, .3); border-radius: 999px; color: var(--p-blue); font-size: 13px; font-weight: 600; }
.mta-ed__rels-list em { color: var(--p-soft); font-style: normal; font-weight: 400; }
.mta-ed__rels-list small { margin-left: 4px; color: var(--p-muted); font: 500 11px/1 var(--p-en); }
body.mta-person-surface .mta-person .mta-ed__rels-list a:hover { background: var(--p-blue); color: #fff; }

/* Related events with their basis */
.mta-ed__related-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; border-top: 1px solid var(--p-line); list-style: none; }
.mta-ed__related-list a { position: relative; display: grid; gap: 4px; min-height: 44px; padding: 14px 32px 14px 0; border-bottom: 1px solid var(--p-line); }
.mta-ed__related-list time { color: var(--p-orange); font: 500 13px/1.2 var(--p-en); }
.mta-ed__related-list strong { color: var(--p-ink); font: 500 15px/1.6 var(--p-serif); }
.mta-ed__related-list small { justify-self: start; padding: 2px 10px; border-radius: 999px; background: rgba(20, 31, 180, .07); color: var(--p-blue); font-size: 11px; }
.mta-ed__go { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--p-orange); }
body.mta-person-surface .mta-person .mta-ed__related-list a:hover strong { color: var(--p-blue); }

/* Articles and sources */
.mta-ed__records-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mta-ed__records-list a { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 2px 14px; min-height: 64px; padding: 12px 40px 12px 14px; border: 1px solid rgba(20, 31, 180, .16); border-radius: 12px; background: rgba(255, 255, 255, .6); }
.mta-ed__records-list li.is-source a { border-style: dashed; }
.mta-ed__rec-kind { grid-row: 1 / span 2; display: grid; place-items: center; height: 40px; border-radius: 8px; background: rgba(20, 31, 180, .07); color: var(--p-blue); font-size: 12px; font-weight: 600; }
.mta-ed__records-list li.is-article .mta-ed__rec-kind { background: rgba(255, 100, 60, .12); color: #c2451f; }
.mta-ed__records-list strong { color: var(--p-ink); font-size: 14px; font-weight: 600; line-height: 1.5; }
.mta-ed__records-list time, .mta-ed__records-list small { color: var(--p-muted); font: 500 11px/1.4 var(--p-en); }
body.mta-person-surface .mta-person .mta-ed__records-list a:hover { background: #fff; }

/* Aside: details + the navy MAP world */
.mta-ed__aside { position: sticky; top: 20px; display: grid; gap: 16px; padding-top: clamp(36px, 4.6vw, 60px); }
.mta-ed__details { padding: 20px 22px; border: 1px solid rgba(20, 31, 180, .16); border-radius: 16px; background: rgba(255, 255, 255, .7); }
body.mta-person-surface .mta-person .mta-ed__details h2 { margin: 0 0 12px; padding-left: 12px; border-left: 2px solid var(--p-orange); color: var(--p-ink); font: 600 16px/1.3 var(--font-jp, sans-serif); letter-spacing: .06em; }
.mta-ed__details h2 span { margin-left: 10px; color: var(--p-muted); font: 500 10px/1 var(--p-en); letter-spacing: .2em; }
.mta-ed__details dl { margin: 0; }
.mta-ed__details div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--p-line); }
.mta-ed__details dt { color: var(--p-muted); font-size: 11px; letter-spacing: .08em; }
.mta-ed__details dd { margin: 0; color: var(--p-ink); font-size: 14px; line-height: 1.6; }
.mta-ed__details dd small { display: block; color: var(--p-muted); font-size: 11px; }
.mta-ed__map { padding: 24px 22px; border-radius: 16px; background: radial-gradient(circle at 70% 30%, rgba(80, 110, 255, .35), transparent 50%), linear-gradient(160deg, #0b1f8f, #071248 55%, var(--p-navy)); color: var(--p-cream); }
.mta-ed__map-kicker { margin: 0 0 8px; color: #ffb59f; font: 600 10px/1 var(--p-en); letter-spacing: .26em; }
body.mta-person-surface .mta-person .mta-ed__map h2 { margin: 0 0 16px; color: var(--p-cream); font: 500 20px/1.5 var(--p-serif); letter-spacing: .08em; }
.mta-ed__map-people { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.mta-ed__map-people a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid rgba(255, 245, 230, .24); border-radius: 999px; color: var(--p-cream) !important; font-size: 12px; }
.mta-ed__map-people a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, #9fc5f4); }
.mta-ed__map-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid rgba(255, 245, 230, .5); border-radius: 999px; color: var(--p-cream) !important; font-size: 13px; font-weight: 600; }
body.mta-person-surface .mta-person .mta-ed__map-cta:hover { background: var(--p-cream); color: var(--p-navy) !important; }

.mta-ed__back { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; max-width: var(--ed-w); margin: clamp(40px, 5vw, 72px) auto 0; padding: 22px var(--p-gutter) clamp(48px, 6vw, 80px); position: relative; }
.mta-ed__back::before { content: ""; position: absolute; left: var(--p-gutter); right: var(--p-gutter); top: 0; height: 1px; background: var(--p-line); }
.mta-ed__back a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--p-blue) !important; font-size: 14px; font-weight: 600; }

@media (max-width: 1020px) {
	.mta-ed__hero, .mta-ed__body { grid-template-columns: minmax(0, 1fr); }
	.mta-ed__aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Mobile (360–430): title/date → people → records → MAP ---- */
@media (max-width: 700px) {
	.mta-ed__hero { gap: 18px; padding-bottom: 24px; }
	.mta-ed__hero .mta-person__crumbs span[aria-current] { max-width: 14em; }
	.mta-ed__kicker span { display: block; margin: 10px 0 0; font-size: 12px; }
	.mta-ed__date { padding-left: 14px; font-size: 34px; }
	body.mta-person-surface .mta-person .mta-ed__title { padding-left: 14px; font-size: clamp(24px, 6.6vw, 28px); line-height: 1.45; }
	.mta-ed__meta { padding-left: 16px; font-size: 12px; }
	.mta-ed__line { font-size: 15px; }
	.mta-ed__lead { font-size: 14px; }
	.mta-ed__axis-row { height: 44px; }
	.mta-ed__axis-row i { height: calc(3px + var(--h, 0) * 36px); }
	.mta-ed__body { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
	.mta-ed__main { display: contents; }
	.mta-ed__aside { display: contents; }
	/* Details come right after the hero; the MAP world closes the page. */
	.mta-ed__details { order: -1; margin-top: 20px; }
	.mta-ed__map { order: 10; margin-top: 36px; }
	.mta-ed__people-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.mta-ed__people-list a { grid-template-columns: 48px minmax(0, 1fr); min-height: 64px; }
	.mta-ed__face { width: 48px; height: 48px; }
	.mta-ed__voice { grid-template-columns: minmax(0, 1fr); }
	.mta-ed__v-count { grid-template-columns: auto auto; justify-content: start; align-items: baseline; gap: 10px; padding: 16px 18px; }
	.mta-ed__v-count b { font-size: 48px; }
	.mta-ed__v-lead { padding: 16px 18px; }
	.mta-ed__v-big b { font-size: 28px; }
	.mta-ed__v-big span { font-size: 15px; }
	.mta-ed__v-ages, .mta-ed__v-notes { padding: 16px 18px; }
	.mta-ed__v-ages li { grid-template-columns: 6.5em minmax(0, 1fr) 3.4em; gap: 8px; }
	.mta-ed__v-notes li { font-size: 14px; }
	.mta-ed__rels-list a { padding: 0 12px; }
	.mta-ed__related-list { grid-template-columns: minmax(0, 1fr); }
	.mta-ed__records-list a { grid-template-columns: 48px minmax(0, 1fr); padding-right: 32px; }
	.mta-ed__map-people a { min-height: 44px; }
	.mta-ed__back { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	.mta-ed * { transition: none !important; animation: none !important; }
}
