/* mercystreet.uk, the rebuilt MUSIC and STAGE (30 Nov 2026): a hub, shelves, and a page per record, song, tour and show.
   FAIRLIGHT shows one tab at a time on the glass; PLAIN shows every part of a page in a column. */

/* the trail: where you are, always at the top of the screen, with previous and next */
.trail { position: sticky; top: -14px; z-index: 3; display: flex; align-items: baseline; gap: 16px; justify-content: space-between;
  margin: -14px -28px 10px; padding: 8px 28px 7px; background: var(--glass); border-bottom: 2px solid var(--phos-faint); font-size: 20px; line-height: 1.1; }
.trail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; min-width: 0; }
.trail li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42ch; }
.trail li + li::before { content: " \203A "; color: var(--phos-dim); white-space: pre; }
.trail [aria-current] { color: var(--phos); }
.trail .pn { display: flex; gap: 10px; flex: none; }
.trail .pn .off { color: var(--phos-faint); }
.scroll .trail a { text-decoration: none; }

/* the heading of an item page: what it is, what it is called, the one line that matters */
.ihead { margin: 4px 0 12px; }
.ikind { margin: 0; color: var(--phos-dim); font-size: 20px; letter-spacing: .06em; }
.ihead h1 { font-size: 46px; line-height: 1; margin: 2px 0 6px; }
.iline { margin: 0; font-size: 21px; color: var(--phos-dim); }
.iline a { color: var(--phos); }

/* tabs along the top of the glass, as on the machine's own pages */
.tabs ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scroll .tabs a { display: inline-block; padding: 1px 12px; text-decoration: none; border: 2px solid var(--phos-dim); color: var(--phos); min-height: 30px; line-height: 26px; }
.scroll .tabs a[aria-current] { background: var(--phos); color: var(--ink-on-phos); border-color: var(--phos); text-shadow: none; }
html:not(.plain) .tabp:not(.on) { display: none; }
html:not(.plain) .tabh { display: none; }
.tabp > .notes p { max-width: 62ch; }

.peakline { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; font-size: 22px; }
.related { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--phos-faint); }
.related p { margin: 4px 0; }
.tag { font-size: 15px; color: var(--phos-dim); border: 1px solid var(--phos-faint); padding: 0 4px; vertical-align: 2px; }
.notfound { padding: 20px 0; }

/* the MUSIC hub: every shelf on one screen */
.hub { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.hub a { display: grid; gap: 4px; padding: 8px; text-decoration: none !important; border: 2px solid var(--phos-faint); height: 100%; box-sizing: border-box; }
.hubpics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; height: 66px; }
.hubpics .ph, .hubpics .ph img { width: 100%; height: 66px; object-fit: cover; display: block; }
.hubpics.txt { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--phos-faint); }
.hubpics .glyph { font-size: 34px; letter-spacing: .08em; color: var(--phos-dim); }
.hubn { font-size: 22px; line-height: 1.05; }
.hubc { font-size: 18px; color: var(--phos-dim); }
.scroll .hub a:hover .hubc, .scroll .hub a:focus-visible .hubc { color: var(--ink-on-phos); }

/* an album shelf: sleeves in a grid, newest first */
.shelfgrid { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.shelfgrid a { display: grid; gap: 3px; text-decoration: none !important; padding: 4px; }
.shelfgrid .ph { aspect-ratio: 1; width: 100%; display: block; background: #000; }
.shelfgrid .ph img { width: 100%; height: 100%; object-fit: cover; }
.shelfgrid .vid .ph img { object-fit: contain; }
.shelfgrid .ph.none svg { width: 100%; height: 100%; }
.shelfgrid .nm { font-size: 21px; line-height: 1.05; }
.shelfgrid .yr { font-size: 18px; color: var(--phos-dim); }
.scroll .shelfgrid a:hover .yr, .scroll .shelfgrid a:focus-visible .yr { color: var(--ink-on-phos); }

/* the item you came back from */
.last > a, .last > .vol, li.last { box-shadow: inset 4px 0 0 var(--phos); }
.shelfgrid .last > a, .hub .last > a { box-shadow: 0 0 0 2px var(--phos); }

/* letters A to Z, years */
.letters ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.scroll .letters a { display: inline-block; min-width: 1.6em; text-align: center; padding: 2px 4px; text-decoration: none; }
.scroll .letters a[aria-current] { background: var(--phos); color: var(--ink-on-phos); text-shadow: none; }

/* the song page */
.songcols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: start; }
.songcols .appear li { grid-template-columns: 5ch 1fr; }
.songcols > div > .dirh.small:first-child { margin-top: 0; }
.stagelist li { margin: 3px 0; }

/* STAGE */
.stagecols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 30px; align-items: start; }
.stagecols .dirh { margin-top: 4px; }
.dechead { color: var(--phos-dim); font-size: 19px; padding: 10px 4px 2px; border-bottom: 1px solid var(--phos-faint); list-style: none; }
.allshows { margin-top: 16px; }
.scroll .allshows a.inv { text-decoration: none; padding: 4px 10px; display: inline-block; }
.dir.shows .vol { grid-template-columns: 0 minmax(0, 1fr) 11ch 0 0; min-height: 36px; }
.dir.shows .lm .nm::before { content: "* "; color: var(--phos); }
.years ul { position: sticky; top: 0; }
.showbody .lead { font-size: 23px; max-width: 60ch; }

/* the light pen fades while the mouse is still */
.handpen { transition: opacity .5s; }
.handpen.idle { opacity: .25; }

@media (max-width: 759px) {
  .trail { margin: -14px -14px 8px; padding: 7px 14px 6px; font-size: 17px; gap: 8px; }
  .trail li { max-width: 24ch; }
  .trail .pn { gap: 6px; }
  .ihead h1 { font-size: 34px; }
  .iline, .ikind { font-size: 18px; }
  .hub { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hubpics, .hubpics .ph, .hubpics .ph img { height: 48px; }
  .hubn { font-size: 19px; }
  .shelfgrid { grid-template-columns: repeat(2, 1fr); }
  .songcols, .stagecols { grid-template-columns: 1fr; }
  .dir.shows .vol { grid-template-columns: 0 minmax(0, 1fr) 7ch; }
}

/* PLAIN: an ordinary page, every part in a column; the tabs become jump links */
html.plain .trail { top: -40px; margin: -40px calc(-1 * max(34px, calc(62.5vw - 800px))) 18px; padding: 14px max(34px, calc(62.5vw - 800px)) 10px; background: #121212; border-bottom: 1px solid #2c2b29; font-size: 17px; }
html.plain .trail li + li::before { color: #6b6962; }
html.plain .trail .pn .off { color: #3a3936; }
html.plain .ikind { font-size: 14px; letter-spacing: .12em; color: var(--accent); font-weight: 700; }
html.plain .ihead h1 { font-size: 52px; letter-spacing: -.02em; }
html.plain .iline { font-size: 19px; }
html.plain .iline a { color: var(--accent); }
html.plain .scroll .tabs a { border: 1px solid #3a3936; color: #c9c7c0; font-size: 15px; padding: 0 12px; }
html.plain .scroll .tabs a[aria-current] { background: none; border-color: #3a3936; color: #c9c7c0; }
html.plain .scroll .tabs a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
html.plain .tabp + .tabp { margin-top: 34px; padding-top: 4px; border-top: 1px solid #2c2b29; }
html.plain .tabh { font-size: 15px !important; letter-spacing: .12em; color: var(--accent) !important; }
html.plain .hub a, html.plain .shelfgrid a { border-color: #2c2b29; color: var(--phos); border-radius: 6px; }
html.plain .scroll .hub a:hover, html.plain .scroll .shelfgrid a:hover { background: #1f1f1e; color: #fff; }
html.plain .scroll .hub a:hover .hubc, html.plain .scroll .shelfgrid a:hover .yr { color: #9b988f; }
html.plain .hubn { font-weight: 700; font-size: 19px; }
html.plain .shelfgrid .nm { font-size: 17px; font-weight: 600; }
html.plain .shelfgrid .yr, html.plain .hubc { font-size: 15px; }
html.plain .scroll .letters a[aria-current] { background: var(--accent); color: #031207; }
html.plain .peakline { font-size: 18px; }
html.plain .tag { font-size: 11px; letter-spacing: .08em; border-color: #3a3936; }
html.plain .last > a, html.plain .last > .vol, html.plain li.last { box-shadow: inset 3px 0 0 var(--accent); }
html.plain .shelfgrid .last > a, html.plain .hub .last > a { box-shadow: 0 0 0 2px var(--accent); }
html.plain .dechead { color: #9b988f; font-size: 15px; letter-spacing: .08em; border-color: #2c2b29; }
html.plain .related { border-color: #2c2b29; }
html.plain .showbody .lead { font-size: 21px; }
html.plain .scroll .vol:focus-visible, html.plain .scroll .hub a:focus-visible, html.plain .scroll .shelfgrid a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; background: #1f1f1e; }
@media (max-width: 759px) {
  html.plain .trail { top: -22px; margin: -22px -18px 12px; padding: 10px 18px 8px; font-size: 15px; }
  html.plain .ihead h1 { font-size: 36px; }
}

/* tiles and sleeves show they open like the directory rows: outlined, full green when pointed at */
html:not(.plain) .scroll .hub a, html:not(.plain) .scroll .shelfgrid a, html:not(.plain) .scroll .letters a:not([aria-current]), html:not(.plain) .scroll .tabs a:not([aria-current]) { background: none; color: var(--phos); padding-left: 8px; padding-right: 8px; }
html:not(.plain) .scroll .shelfgrid a { padding: 4px; }
html:not(.plain) .scroll .letters a:not([aria-current]) { padding: 2px 4px; }
html:not(.plain) .scroll .hub a:hover, html:not(.plain) .scroll .hub a:focus-visible, html:not(.plain) .scroll .shelfgrid a:hover, html:not(.plain) .scroll .shelfgrid a:focus-visible,
html:not(.plain) .scroll .letters a:hover, html:not(.plain) .scroll .tabs a:hover { background: var(--phos); color: var(--ink-on-phos); text-shadow: none; }

/* phone: the mode switch steps aside while you scroll down through a page and comes back when you scroll up */
@media (max-width: 759px) {
  .modesw { transition: transform .25s ease, opacity .25s; }
  html.tuck .modesw, html.tuck:not(.plain) .modesw { transform: rotate(180deg) translateX(-60px) !important; opacity: 0; pointer-events: none; }
  .trail { padding-right: 52px; }
}

/* landmark nights in one column: the date, then the night, the place under it */
.stagecols .landmarks { columns: 1 !important; list-style: none; margin: 0; padding: 0; }
.stagecols .landmarks li { display: grid; grid-template-columns: 6.6em 1fr; column-gap: 12px; margin: 0 0 8px; }
.stagecols .landmarks li > a { justify-self: start; }
.stagecols .landmarks li > .dim { grid-column: 2; }
@media (max-width: 759px) { html.plain .trail { padding-right: 60px; } }

/* NEWS: a page per headline */
.newsnote .lead { font-size: 24px; max-width: 58ch; }
.scroll .newsnote a.readat { display: inline-block; padding: 4px 12px; margin: 8px 0; }
.papers-list .gist { margin: 3px 0 0; color: var(--phos-dim); font-size: .9em; max-width: 70ch; }
html.plain .newsnote .lead { font-size: 21px; }
html.plain .papers-list .gist { color: #9b988f; }

/* ---------- 30 Nov, round two: every section links into MUSIC and STAGE ---------- */
.listen { margin: -4px 0 12px; }
.scroll .listen a.spot { display: inline-block; padding: 2px 12px; font-size: 20px; }
.scroll .listen a.spot::after { content: " \2197"; }
html.plain .scroll .listen a.spot { background: #1db954; color: #04140a; border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 14px; letter-spacing: .06em; }
html.plain .scroll .listen a.spot:hover { background: #3be477; text-decoration: none; }
.fromalb { margin: 4px 0 8px; max-width: 300px; font-size: 16px; line-height: 1.15; }
.small { font-size: .85em; }

/* timeline: decades in the list, OPEN in the inspector */
.events .decade, .quotes .decade { list-style: none; color: var(--phos-dim); font-size: 26px; padding: 18px 0 4px; border-bottom: 2px solid var(--phos-faint); }
html.plain .events .decade, html.plain .quotes .decade { color: var(--accent); font-size: 15px; letter-spacing: .12em; border-color: #2c2b29; font-weight: 700; }
.ev.hl h3 { background: none; color: var(--phos); padding: 0; box-shadow: inset 4px 0 0 var(--phos); padding-left: 10px; display: block; }
.scroll .ev h3 a { color: inherit; }
.insp .open { margin-left: 6px; }
@media (max-width: 759px) {
  .ev { grid-template-columns: auto 1fr; grid-template-rows: auto auto; }
  .ev .d { grid-column: 1; grid-row: 1; }
  .ev .c { display: block; grid-column: 2; grid-row: 1; text-align: right; }
  .ev .tx { grid-column: 1 / -1; grid-row: 2; }
}

/* a row of keys at the top of a long page (WORDS, WORLD, HONOURS) */
.keyrow ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.scroll .keyrow a { display: inline-block; padding: 1px 8px; font-size: 19px; }
html.plain .scroll .keyrow a { border: 1px solid #3a3936; border-radius: 4px; color: #c9c7c0; font-size: 14px; padding: 2px 10px; }
html.plain .scroll .keyrow a:hover { border-color: var(--accent); color: var(--accent); }
.hcount { font-size: 22px; margin: 0 0 10px; }
.hcount b { font-weight: 400; color: var(--phos); }
html.plain .hcount b { font-weight: 800; color: #fff; }

/* LIFE: PEOPLE and PLACES keys among the chapters; the records a person is on */
.chapters li.also a { font-weight: 400; }
.people .recs { display: block; font-size: .9em; margin-top: 2px; }
.people li.last { box-shadow: none; outline: 2px solid var(--phos); outline-offset: 3px; }
html.plain .people li.last { outline-color: var(--accent); }

/* HOME: four doors into the site */
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 18px; }
.scroll .doors a { display: grid; gap: 2px; padding: 8px 10px; background: none; color: var(--phos); border: 2px solid var(--phos-dim); }
.scroll .doors a b { font-weight: 400; font-size: 22px; }
.scroll .doors a span { font-size: 16px; color: var(--phos-dim); line-height: 1.1; }
.scroll .doors a:hover, .scroll .doors a:focus-visible { background: var(--phos); color: var(--ink-on-phos); }
.scroll .doors a:hover span, .scroll .doors a:focus-visible span { color: var(--ink-on-phos); }
html.plain .scroll .doors a { border: 1px solid #3a3936; border-radius: 8px; color: #ecebe6; padding: 12px 14px; }
html.plain .scroll .doors a b { font-weight: 800; font-size: 15px; letter-spacing: .08em; color: var(--accent); }
html.plain .scroll .doors a span { color: #9b988f; font-size: 14px; }
html.plain .scroll .doors a:hover { background: #1f1f1e; text-decoration: none; }
@media (max-width: 1100px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 759px) { .home .hero { max-height: 45vh; overflow: hidden; } .home .hero img { max-height: 45vh; width: 100%; object-fit: cover; } }

/* NEWS: no year column beside a full date */
.collabs.norec li { grid-template-columns: 1fr; }

/* PHOTOS: in date order, read left to right */
.gallery { columns: auto !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.gallery li { margin: 0; }
.gallery .ph { aspect-ratio: 4 / 5; overflow: hidden; display: block; }
.gallery .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 759px) { .gallery { grid-template-columns: 1fr 1fr; gap: 10px; } }
.lbgo { display: inline-block; padding: 3px 10px; text-decoration: none !important; }

/* FIND: the sub-line stays on a phone, under the name */
@media (max-width: 759px) {
  .findres .fs { display: block; grid-column: 2; text-align: left; font-size: .8em; }
  .findbar { padding-right: 56px; }
  .findbar label { display: none; }
  html.plain .findbar { padding-right: 56px; }
  /* the mode switch never covers a player, a photo or FIND */
  html:has(#tv:not([hidden])) .modesw, html:has(#lightbox[open]) .modesw, html:has(#find:not([hidden])) .modesw { display: none; }
}

/* LIFE: the chapter list, a chapter page, people and places */
.chlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 10px 18px; }
.scroll .chlist a { display: grid; grid-template-columns: 2.2em 1fr; gap: 0 10px; padding: 8px 10px; background: none; color: var(--phos); border: 2px solid var(--phos-faint); height: 100%; box-sizing: border-box; }
.chlist .chn { grid-row: span 2; font-size: 34px; color: var(--phos-dim); line-height: 1; }
.chlist .cht { font-size: 24px; line-height: 1.05; }
.chlist .chl { font-size: 17px; line-height: 1.15; color: var(--phos-dim); }
.scroll .chlist a:hover, .scroll .chlist a:focus-visible { background: var(--phos); color: var(--ink-on-phos); }
.scroll .chlist a:hover .chn, .scroll .chlist a:hover .chl, .scroll .chlist a:focus-visible .chl { color: var(--ink-on-phos); }
.chapter { max-width: 66ch; }
.nextch { margin: 22px 0 10px; }
.scroll .nextch a { display: inline-block; padding: 4px 12px; }
.peoplecols { columns: 2 420px; column-gap: 40px; }
.peoplecols .subdir { break-after: avoid; }
.peoplecols .people li { break-inside: avoid; }
.placecols { columns: 2 380px; column-gap: 40px; list-style: none; padding: 0; }
.placecols li { break-inside: avoid; }
.people .note, .places .note { display: block; }
html.plain .scroll .chlist a { border: 1px solid #2c2b29; border-radius: 8px; color: #ecebe6; padding: 12px 14px; }
html.plain .scroll .chlist a:hover { background: #1f1f1e; text-decoration: none; }
html.plain .chlist .chn { color: var(--accent); font-weight: 800; font-size: 26px; }
html.plain .chlist .cht { font-weight: 800; font-size: 19px; }
html.plain .chlist .chl { color: #9b988f; font-size: 15px; }
@media (max-width: 759px) { .chlist { grid-template-columns: 1fr; } }
@media (max-width: 759px) {
  .scroll .home .hero .ph, .scroll .home .hero img { max-height: 42vh !important; height: 42vh !important; width: 100% !important; object-fit: cover !important; object-position: 50% 25% !important; aspect-ratio: auto !important; }
  html.plain .scroll[data-sec="home"] .hero { height: 42vh !important; }
}
.scroll .newsnote a.readat, .scroll .lbgo { background: var(--phos); color: var(--ink-on-phos) !important; text-decoration: none; text-shadow: none; }
.scroll .newsnote a.readat:hover { background: #b9ffcc; }
html.plain .scroll .newsnote a.readat { background: var(--accent); color: #031207 !important; padding: 8px 14px; border-radius: 6px; font-weight: 700; font-size: 15px; letter-spacing: .04em; }
