/* Backstage: an era a card, a change a line, the lines grouped by what they did. */
.backstageWrap { max-width: 1120px; margin: 0 auto; padding: 1.5rem 20px 6rem; font-family: var(--font-body); text-align: center; }
.backstageWrap h1 { color: var(--gold); font-family: var(--font-head); font-weight: 700; font-size: 2.1rem; margin: 0 0 10px; }
.backstageSub { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 3rem; }
/* Read by a screen reader, not drawn. */
.bsHide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The site's arrow, drawn and turned as the Download page's is (.dlMore): down while shut, up while open. */
.bsChevron { flex: none; width: 9px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); transition: transform 0.15s, color 0.15s; }

/* ===== An era =====
   Nothing here has a height of its own or clips: an open era is as tall as
   its lines and the page is what scrolls. */
.era { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px; text-align: left; box-shadow: 0 2px 8px rgba(0,0,0,calc(0.25 * var(--shk, 1))); transition: border-color 0.2s ease; }
.era:hover, .era.open { border-color: var(--gold-dim); }
.eraHeader { position: relative; }
/* The whole head opens the era. The link to its own page floats over the head's right end, beside the arrow. */
.eraOpen { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 18px 22px; background: none; border: 0; border-radius: 10px; color: var(--text-muted); font: inherit; text-align: left; cursor: pointer; }
.eraOpen:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.eraHead { display: block; min-width: 0; padding-right: 34px; }
.eraTitle { display: block; color: var(--heading); font-size: 1rem; font-weight: 700; line-height: 1.4; }
.eraDates { display: flex; align-items: baseline; gap: 7px; color: var(--gold); font-size: 0.75rem; margin-top: 2px; }
.eraVersion { color: var(--heading); font-weight: 700; }
/* An era's arrow is its head's control, as tall as the title beside it. */
.eraOpen .bsChevron { width: 13px; height: 19px; margin-right: 4px; }
.eraOpen:hover .bsChevron { color: var(--gold); }
.era.open .eraOpen .bsChevron { transform: rotate(-90deg); color: var(--gold); }
.eraPermalink { position: absolute; right: 52px; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -14px; color: var(--text-muted); opacity: 0; transition: opacity 0.2s ease, color 0.2s ease; }
.eraPermalink svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.era:hover .eraPermalink, .eraPermalink:focus-visible { opacity: 1; }
.eraPermalink:hover, .eraPermalink:focus-visible { color: var(--gold); outline: none; }
@media (hover: none) { .eraPermalink { opacity: 1; } }
.eraBody { display: none; padding: 0 22px; }
.era.open .eraBody { display: block; }

/* ===== A group: what its changes did =====
   The word says it and wears the colour; the colour runs down the list's
   edge so a line far from its head still shows which group it is in. */
.fx { --fx: var(--text-muted); position: relative; padding: 16px 0 26px; }
.fx + .fx { border-top: 1px solid var(--border); }
.fx--new { --fx: var(--ok); }
.fx--changed { --fx: var(--gold); }
.fx--fixed { --fx: var(--win); }
.fx--removed { --fx: var(--red-x); }
.fxHead { display: flex; align-items: baseline; gap: 9px; margin: 0 0 10px; font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.fxName { color: var(--fx); }
.fxCount { color: var(--text-muted); font-weight: 400; letter-spacing: 0; }
.fxList { margin: 0; padding: 0 0 0 14px; list-style: none; border-left: 2px solid var(--fx); }
.fxList li { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr); column-gap: 14px; align-items: baseline; padding: 4px 0; font-size: 0.8rem; line-height: 1.55; color: var(--text); }
.fxPage { color: var(--text-muted); font-size: 0.62rem; letter-spacing: 0.9px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fxPage.isGone s { text-decoration-thickness: 1px; }
.fxLine { min-width: 0; overflow-wrap: anywhere; }
.fxLine strong { color: var(--gold); }
.fxLine code { font-family: var(--font-mono); color: var(--heading); }
/* Folded: the first lines, the rest behind the drop tab. */
.fx.isFolded .fxRest { display: none; }
/* The one drop tab the site has, inside its group with its foot on the group's edge. */
.fxDrop { position: absolute; left: 50%; bottom: -1px; z-index: 1; display: grid; place-items: center; width: 48px; height: 18px; margin-left: -24px; padding: 0; background: var(--bg-card); border: 1px solid var(--border); border-bottom: 0; border-radius: 10px 10px 0 0; color: var(--text-muted); cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.fxDrop .bsChevron { width: 7px; height: 11px; }
.fxDrop[aria-expanded="true"] .bsChevron { transform: rotate(-90deg); }
.fxDrop:hover, .fxDrop:focus-visible, .fxDrop[aria-expanded="true"] { color: var(--gold); border-color: var(--gold-dim); outline: none; }

/* ===== One era, on its own page =====
   Not a card: there is nothing beside it to be a card against, and nothing
   folds: every line is out. */
.entryWrap { text-align: left; }
.entryBack { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); text-decoration: none; font-size: 0.75rem; letter-spacing: 0.04em; margin-bottom: 1.4rem; }
.entryBack .bsChevron { width: 6px; height: 10px; transform: rotate(180deg); }
.entryBack:hover { color: var(--gold); }
.entryTitle { color: var(--heading); font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; margin: 0 0 8px; line-height: 1.25; }
.entryStamp { display: flex; align-items: baseline; gap: 7px; color: var(--gold); font-size: 0.78rem; margin-bottom: 1.2rem; }
.entryBody { border-top: 1px solid var(--border); }
.entryBody .fx { padding-bottom: 16px; }

/* What came before and after, for somebody who arrived on a link and has no list around them. */
.entryNav { display: flex; justify-content: space-between; gap: 20px; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.entryNavLink { display: flex; flex-direction: column; gap: 4px; max-width: 46%; text-decoration: none; }
.entryNavLink.isNext { text-align: right; margin-left: auto; }
.entryNavWhen { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-dim); font-size: 0.7rem; letter-spacing: 0.04em; }
.entryNavLink.isNext .entryNavWhen { justify-content: flex-end; }
.entryNavWhen .bsChevron { width: 5px; height: 9px; transform: none; }
.entryNavLink:not(.isNext) .entryNavWhen .bsChevron { transform: rotate(180deg); }
.entryNavWhat { color: var(--text-muted); font-size: 0.8rem; line-height: 1.45; }
.entryNavLink:hover .entryNavWhat { color: var(--text); }
.entryNavLink:hover .entryNavWhen { color: var(--gold); }

/* A phone: the tag sits in the line, ahead of its words, and the line wraps under it. */
@media (max-width: 700px) {
	.backstageWrap { padding: 1.2rem 12px 5rem; }
	.eraOpen { padding: 15px 14px; }
	.eraPermalink { right: 42px; }
	.eraBody { padding: 0 14px; }
	.fxList { padding-left: 11px; }
	.fxList li { display: block; padding: 5px 0; }
	/* No type under 11px on a phone (phone.css): the tag comes up to it. */
	.fxPage { display: inline; margin-right: 8px; white-space: normal; font-size: 0.7rem; letter-spacing: 0.6px; }
	.entryNav { flex-direction: column; }
	.entryNavLink { max-width: none; }
	.entryNavLink.isNext { text-align: left; margin-left: 0; }
	.entryNavLink.isNext .entryNavWhen { justify-content: flex-start; }
}

/* A thumb: phone.css makes the link to an era's page 36px square, so it is centred again on that size; the drop tab
   keeps the site's shape and takes a tap from 32px of room round it. */
@media (max-width: 600px), (pointer: coarse) {
	.eraPermalink { margin-top: -18px; }
	.fxDrop::after { content: ''; position: absolute; inset: -12px -12px -4px; }
}

/* Where it stands: two short columns above the eras. */
.standing { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; text-align: left; }
.standCol { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.3rem; }
.standCol h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--heading); margin: 0 0 0.6rem; }
.standCol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.standCol li { position: relative; padding-left: 1.1rem; font-family: var(--font-mono); font-size: 0.74rem; line-height: 1.5; color: var(--text-muted); }
.standCol li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--gold-dim); }
.standCol.isOn li::before { background: var(--gold); border-color: var(--gold); }
.standCol.isOn li { color: var(--text); }
@media (max-width: 700px) { .standing { grid-template-columns: 1fr; } }
