/*
 * The press kit sheet, shared by both halves of the EPK tool.
 *
 * views/bands/epk.html renders a kit generated from an Artist row;
 * views/tools/press_kit_detail.html renders one a band typed into the
 * builder. They are the same document to whoever receives the link, so they
 * have to look like the same document.
 *
 * This was an inline <style> on every kit until Sept 2026, which a browser
 * cannot cache and a theme cannot override.
 *
 * How a theme works. Every colour and the heading face is a custom property
 * on .epk-page. The base values below are `sheet`, the kit as it has always
 * looked. A theme is a [data-theme] block that changes the properties and as
 * few rules as it can get away with. The band's own choices -- accent colour
 * and heading face -- arrive in the element's style attribute from epk.look,
 * which also works out a version of the accent that can be read as text on
 * the theme's paper (--epk-accent-text) and what to write on a block of it
 * (--epk-accent-ink).
 *
 * Every theme prints as paper: black on white, no backgrounds. See the end.
 */

/* The poster maker's faces, under names of the kit's own. A browser fetches
   a declared face only when something on the page is set in it. The weight
   range says the one file covers every weight, which is what stops a bold
   heading being faked from a regular face. */
@font-face { font-family: 'EpkAnton'; src: url("../fonts/Anton-Regular.da0af4e9427a.ttf") format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'EpkCondensed'; src: url("../fonts/BarlowCondensed-Bold.f599739e9476.ttf") format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'EpkBarlow'; src: url("../fonts/Barlow-Bold.6cbe034ff9c2.ttf") format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'EpkType'; src: url("../fonts/SpecialElite-Regular.380c56cefb3c.ttf") format('truetype'); font-weight: 100 900; font-display: swap; }

.epk-page {
    --epk-accent: #ff0000;
    --epk-accent-ink: #ffffff;
    --epk-accent-text: #ff0000;
    --epk-head: 'Inter', system-ui, sans-serif;
    --epk-paper: #111;
    --epk-edge: #333;
    --epk-ink: #ccc;
    --epk-strong: #fff;
    --epk-soft: #999;
    --epk-muted: #8f8f8f;
    /* The dimmest the words go: 5.2:1 on the sheet (#777 was 4.2:1). */
    --epk-faint: #8a8a8a;
    --epk-line: #222;
    max-width: 900px; margin: 120px auto 4rem; padding: 0 1.5rem; color: var(--epk-ink);
}
.epk-sheet { background: var(--epk-paper); border: 1px solid var(--epk-edge); border-radius: 5px; padding: 3rem; }
.epk-header { display: flex; gap: 2rem; align-items: center; border-bottom: 2px solid var(--epk-accent); padding-bottom: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
/* --epk-focus is the part of a cropped photo the band chose to keep
   (epk.focus_css), set on the img. Without one, a third of the way down
   rather than the centre: that is where the faces are in a photo of people,
   and centred is how a live kit lost its singer's head (Oct 2026). */
.epk-header img { width: 180px; height: 180px; object-fit: cover; object-position: var(--epk-focus, 50% 30%); border-radius: 5px; }
/* The words take what room is left and wrap inside it. Without this a
   fourth figure made them too wide to sit beside the photo, and the name
   dropped underneath it. */
.epk-header > div { flex: 1 1 260px; min-width: 0; }
.epk-header h1, .epk-header .epk-h1 { font-family: var(--epk-head); font-weight: 800; letter-spacing: -0.02em; font-size: 3rem; line-height: 1.05; text-wrap: balance; overflow-wrap: anywhere; color: var(--epk-strong); margin: 0 0 .5rem; }
.epk-genres { color: var(--epk-accent-text); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.epk-stats { display: flex; gap: 2.5rem; margin-top: 1rem; }
.epk-stats .stat b { display: block; color: var(--epk-strong); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.epk-stats .stat span { font-size: .8rem; color: var(--epk-soft); text-transform: uppercase; letter-spacing: .05em; }
.epk-hometown { color: var(--epk-muted); font-size: .85rem; margin-top: .35rem; }
.epk-quote { border-left: 4px solid var(--epk-accent); margin: 0 0 2.25rem; padding: .25rem 0 .25rem 1.25rem; }
.epk-quote p { font-size: 1.15rem; line-height: 1.6; color: var(--epk-strong); margin: 0 0 .5rem; font-style: italic; }
.epk-quote cite { color: var(--epk-muted); font-size: .85rem; font-style: normal; }
.epk-section { margin-bottom: 2.25rem; }
.epk-section h2, .epk-section .epk-h2 { font-family: var(--epk-head); color: var(--epk-strong); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .1em; border-left: 4px solid var(--epk-accent); padding-left: .75rem; margin-bottom: 1rem; }
/* The look miniatures on /tools/epk/ draw their name and headings as
   classes, so the tool page has one h1 (the 29 Oct 2026 plan). */
.epk-section .epk-h2 { font-weight: 700; }
.epk-section p { line-height: 1.75; }
.epk-list { list-style: none; padding: 0; }
.epk-list li { padding: .5rem 0; border-bottom: 1px solid var(--epk-line); display: flex; justify-content: space-between; gap: 1rem; }
.epk-list li span.muted { color: var(--epk-muted); font-size: .9rem; }
/* Links in a list take the kit's colour, which has been checked against its
   paper (epk.legible). Until 10 Nov 2026 the sheet left them to the page
   around it: the site's colour on the site, and on a sent kit, which has no
   site round it, the browser's own blue and purple. */
.epk-list a, .epk-gigs a { color: var(--epk-accent-text); text-underline-offset: .15em; }
.epk-gigs td.date { font-variant-numeric: tabular-nums; }
/* Where the keyboard is. */
.epk-page :is(a, button):focus-visible { outline: 2px solid var(--epk-accent-text); outline-offset: 2px; border-radius: 2px; }
.epk-links a { color: var(--epk-accent-text); text-decoration: none; margin-right: 1.5rem; }
.epk-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.epk-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: var(--epk-focus, 50% 30%); border-radius: 4px; }
.epk-embed-btn { min-height: 44px; background: transparent; border: 1px solid var(--epk-accent-text); color: var(--epk-accent-text); padding: .6rem 1.1rem; border-radius: 6px; cursor: pointer; font: inherit; font-weight: 600; transition: background .12s; }
.epk-embed-btn:hover { background: color-mix(in srgb, var(--epk-accent) 12%, transparent); }
.epk-embed { margin-bottom: .75rem; }
.epk-embed iframe { display: block; width: 100%; border: 0; border-radius: 4px; }
.epk-ffo { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.epk-ffo a, .epk-ffo span { display: inline-block; padding: .3rem .7rem; border: 1px solid var(--epk-edge); border-radius: 999px; color: var(--epk-ink); font-size: .9rem; text-decoration: none; }
.epk-ffo a { border-color: var(--epk-accent); color: var(--epk-accent-text); }
.epk-quote cite a { color: inherit; }
.epk-stats { flex-wrap: wrap; row-gap: 1rem; }
.epk-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--epk-edge); color: var(--epk-faint); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.epk-footer a { color: var(--epk-soft); }

/* The bar above the sheet is the site's, not the kit's. On the site it sits
   on the site's own black whatever the theme, so it keeps the site's
   colours; on a sent kit (.epk-standalone, below) the page is the kit's
   paper, and the bar takes the kit's. */
.epk-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: .75rem 1rem; }
.epk-toolbar .note { color: #8c8c8c; font-size: .85rem; line-height: 1.5; }
.epk-toolbar button, .epk-toolbar a.btn {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 1rem; background: transparent;
    border: 1px solid #ff5c5c; border-radius: 8px; color: #ff5c5c; font: inherit; font-size: .88rem; font-weight: 600;
    text-decoration: none; cursor: pointer; transition: background .12s, color .12s;
}
.epk-toolbar button:hover, .epk-toolbar a.btn:hover { background: rgba(255, 60, 60, .12); }
.epk-standalone .epk-toolbar .note { color: var(--epk-muted); }
.epk-standalone .epk-toolbar button { border-color: var(--epk-accent-text); color: var(--epk-accent-text); }
.epk-standalone .epk-toolbar button:hover { background: color-mix(in srgb, var(--epk-accent) 12%, transparent); }
/* Under a kit somebody was sent: the tool that made it, once. */
.epk-toolbar--foot { margin: 1.5rem 0 0; }
.epk-toolbar a.btn--fill { background: #e10600; border-color: #e10600; color: #fff; font-weight: 700; }
.epk-toolbar a.btn--fill:hover { background: #c20500; color: #fff; }

/* Above the sheet, to a member looking at their own kit from the studio. */
.epk-preview-note { margin: 0 0 1rem; padding: .7rem 1rem; border: 1px solid #333; border-left: 3px solid #ff0000; border-radius: 8px; background: #141414; color: #c4c4c4; font-size: .88rem; line-height: 1.5; }
/* The tracked link's greeting (EpkShare): who this copy was made for. */
.epk-share-note { margin: 0 0 1rem; padding: .7rem 1rem; border: 1px solid #333; border-left: 3px solid var(--epk-accent, #ff0000); border-radius: 8px; background: #141414; color: #c4c4c4; font-size: .88rem; line-height: 1.5; }
/* The act this typed kit is about runs its own page now (press_kit_detail.html). */
.epk-live-note { max-width: 860px; margin: 1rem auto 0; padding: .9rem 1.1rem; border: 1px solid #333; border-left: 3px solid #ff0000; border-radius: 8px; background: #141414; color: #c4c4c4; font-size: .9rem; line-height: 1.6; }
.epk-live-note strong { color: #fff; }
.epk-live-note a { color: #ff5c5c; }

/* Read by a screen reader and a search engine, not drawn: the band's name
   when its logo is standing in for it. */
.epk-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- What leads the top of the kit (epk.HEADER_STYLES) ------------------- */

.epk-header--cover { display: block; }
.epk-header--cover img.epk-cover { display: block; width: 100%; height: auto; max-height: 380px; margin-bottom: 1.5rem; }
/* A typed kit can show its whole photo instead (epk.PHOTO_FITS). Not in
   blackout, whose header is the photo with the name over it. */
.epk-header--cover img.epk-cover--whole { width: auto; max-width: 100%; max-height: 640px; object-fit: contain; margin-left: auto; margin-right: auto; }
.epk-page[data-theme="blackout"] .epk-header--cover .epk-credit { position: absolute; top: .75rem; right: 1rem; margin: 0; color: #ddd; z-index: 1; }
.epk-header--logo { display: block; }
.epk-header--logo img.epk-logo { display: block; width: auto; max-width: 100%; height: auto; max-height: 190px; margin: 0 0 1rem; object-fit: contain; border-radius: 0; }

/* --- Only the typed-in kit has these: its photo's credit, a typed gig
   history, and an owner-only edit bar. Its photo is the cover header above
   (epk.presskit_context leads with it). */

.epk-credit { color: var(--epk-faint); font-size: .78rem; margin: -1.15rem 0 1.5rem; }
.epk-gigs { width: 100%; border-collapse: collapse; }
.epk-gigs td { padding: .5rem 0; border-bottom: 1px solid var(--epk-line); vertical-align: top; }
.epk-gigs td.date { color: var(--epk-muted); font-size: .9rem; white-space: nowrap; padding-right: 1.25rem; width: 1%; }
.epk-gigs td.city { color: var(--epk-muted); font-size: .9rem; text-align: right; }
/* The owner's card over their own kit: a dark card on any paper, with one
   filled button (Edit) and the rest outlines. */
.epk-owner { color-scheme: dark; background: #151515; border: 1px solid #333; border-left: 3px solid #ff0000; border-radius: 10px; padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.epk-owner p { margin: 0 0 .7rem; color: #d0d0d0; font-size: .92rem; line-height: 1.6; }
.epk-owner p strong { color: #fff; }
.epk-owner--live { border-left-color: #1db954; }
.epk-owner-title { color: #fff !important; font-size: 1.1rem !important; font-weight: 700; }
.epk-owner-title i { color: #1db954; margin-right: .2rem; }
.epk-next { margin: 0 0 1rem; padding-left: 1.25rem; color: #d0d0d0; font-size: .92rem; line-height: 1.6; }
.epk-next li { margin-bottom: .4rem; }
.epk-next li strong { color: #fff; }
.epk-next a, .epk-owner-keep a { color: #ff5c5c; }
.epk-owner-keep { color: #a8a8a8 !important; font-size: .88rem; line-height: 1.6; margin: .8rem 0 0; }
.epk-owner a.btn, .epk-owner button, .epk-owner-keep .btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 1rem; background: transparent;
    border: 1px solid #4a4a4a; border-radius: 8px; color: #fff; font: inherit; font-size: .88rem; font-weight: 600;
    text-decoration: none; cursor: pointer; transition: background .12s, border-color .12s;
}
.epk-owner a.btn:hover, .epk-owner button:hover { border-color: #fff; }
.epk-owner .epk-share a.btn:first-of-type { background: #e10600; border-color: #e10600; font-weight: 700; }
.epk-owner .epk-share a.btn:first-of-type:hover { background: #c20500; border-color: #c20500; }
.epk-owner-keep .btn { margin-left: .4rem; min-height: 34px; font-size: .82rem; }
.epk-share { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.epk-share input { flex: 1; min-width: 220px; min-height: 40px; box-sizing: border-box; background: #060606; border: 1px solid #383838; color: #e6e6e6; padding: 0 .8rem; border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; }
.epk-share input:focus { outline: none; border-color: #ff0000; box-shadow: 0 0 0 3px rgba(255, 60, 60, .32); }

/* ==========================================================================
   Themes
   ========================================================================== */

/* --- paper: white and plain, the way a press office sends one ------------ */

.epk-page[data-theme="paper"] {
    --epk-paper: #fff;
    --epk-edge: #d8d8d8;
    --epk-ink: #333;
    --epk-strong: #111;
    --epk-soft: #666;
    --epk-muted: #666;
    --epk-faint: #6b6b6b;
    --epk-line: #e6e6e6;
}
.epk-page[data-theme="paper"] .epk-sheet { border-radius: 2px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }

/* --- blackout: the photo across the top, the name over it ---------------- */

.epk-page[data-theme="blackout"] {
    --epk-paper: #000;
    --epk-edge: #1e1e1e;
    --epk-line: #1e1e1e;
}
.epk-page[data-theme="blackout"] .epk-sheet { padding: 0; overflow: hidden; }
.epk-page[data-theme="blackout"] .epk-body { padding: 2.5rem 3rem 3rem; }
.epk-page[data-theme="blackout"] .epk-header { position: relative; margin: 0; padding: 3rem; border-bottom: 4px solid var(--epk-accent); }
.epk-page[data-theme="blackout"] .epk-header h1, .epk-page[data-theme="blackout"] .epk-header .epk-h1 { font-size: clamp(2.8rem, 8vw, 5rem); line-height: .95; text-transform: uppercase; letter-spacing: 0; }
.epk-page[data-theme="blackout"] .epk-header--cover { display: flex; align-items: flex-end; min-height: 380px; }
.epk-page[data-theme="blackout"] .epk-header--cover img.epk-cover { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; object-fit: cover; object-position: var(--epk-focus, 50% 30%); filter: grayscale(.35) brightness(.5); }
.epk-page[data-theme="blackout"] .epk-header--cover > div { position: relative; }
.epk-page[data-theme="blackout"] .epk-header--cover .epk-stats .stat span,
.epk-page[data-theme="blackout"] .epk-header--cover .epk-hometown { color: #ddd; }
.epk-page[data-theme="blackout"] .epk-section h2, .epk-page[data-theme="blackout"] .epk-section .epk-h2 { font-size: 1.5rem; letter-spacing: .04em; }

/* --- zine: photocopied, typewriter headings, black on off-white ---------- */

.epk-page[data-theme="zine"] {
    --epk-paper: #f2efe6;
    --epk-edge: #111;
    --epk-ink: #1c1c1c;
    --epk-strong: #000;
    --epk-soft: #333;
    --epk-muted: #444;
    --epk-faint: #555;
    --epk-line: #111;
}
.epk-page[data-theme="zine"] .epk-sheet { border: 2px solid #111; border-radius: 0; box-shadow: 8px 8px 0 var(--epk-accent); }
.epk-page[data-theme="zine"] .epk-header { border-bottom: 3px double #111; }
.epk-page[data-theme="zine"] .epk-header h1, .epk-page[data-theme="zine"] .epk-header .epk-h1 { letter-spacing: 0; text-transform: uppercase; }
.epk-page[data-theme="zine"] .epk-header img,
.epk-page[data-theme="zine"] .epk-photos img { border: 2px solid #111; border-radius: 0; filter: grayscale(1) contrast(1.3); }
.epk-page[data-theme="zine"] .epk-header--logo img.epk-logo { border: 0; filter: none; }
.epk-page[data-theme="zine"] .epk-section h2, .epk-page[data-theme="zine"] .epk-section .epk-h2 { display: inline-block; background: #111; color: #f2efe6; border-left: 0; padding: .35rem .7rem; letter-spacing: .04em; transform: rotate(-1deg); }
.epk-page[data-theme="zine"] .epk-list li,
.epk-page[data-theme="zine"] .epk-gigs td { border-bottom: 1px dashed #111; }
.epk-page[data-theme="zine"] .epk-quote { border-left: 0; border-top: 2px solid #111; border-bottom: 2px solid #111; padding: 1rem 0; }
.epk-page[data-theme="zine"] .epk-footer { border-top: 3px double #111; }

/* --- poster: gig-poster type on a block of the band's colour ------------- */

.epk-page[data-theme="poster"] {
    --epk-paper: #0b0b0b;
    --epk-edge: #262626;
    --epk-line: #262626;
}
.epk-page[data-theme="poster"] .epk-sheet { padding: 0; overflow: hidden; border-radius: 0; }
.epk-page[data-theme="poster"] .epk-body { padding: 2.5rem 3rem 3rem; }
.epk-page[data-theme="poster"] .epk-header { margin: 0; padding: 3rem; border-bottom: 0; background: var(--epk-accent); color: var(--epk-accent-ink); }
.epk-page[data-theme="poster"] .epk-header h1, .epk-page[data-theme="poster"] .epk-header .epk-h1 { color: var(--epk-accent-ink); font-size: clamp(3rem, 10vw, 6rem); line-height: .9; text-transform: uppercase; letter-spacing: 0; font-weight: 400; }
.epk-page[data-theme="poster"] .epk-header .epk-genres,
.epk-page[data-theme="poster"] .epk-header .epk-hometown,
.epk-page[data-theme="poster"] .epk-header .epk-stats .stat b,
.epk-page[data-theme="poster"] .epk-header .epk-stats .stat span { color: var(--epk-accent-ink); }
.epk-page[data-theme="poster"] .epk-header .epk-genres { font-weight: 700; }
.epk-page[data-theme="poster"] .epk-header img { border-radius: 0; }
.epk-page[data-theme="poster"] .epk-header .epk-credit { color: var(--epk-accent-ink); opacity: .8; }
.epk-page[data-theme="poster"] .epk-section h2, .epk-page[data-theme="poster"] .epk-section .epk-h2 { font-size: 1.7rem; letter-spacing: .02em; border-left: 0; border-bottom: 3px solid var(--epk-accent); padding: 0 0 .35rem; font-weight: 400; }

@media (max-width: 600px) {
    .epk-sheet { padding: 1.5rem; }
    .epk-header h1 { font-size: 2.2rem; }
    .epk-page[data-theme="blackout"] .epk-header,
    .epk-page[data-theme="poster"] .epk-header { padding: 1.5rem; }
    .epk-page[data-theme="blackout"] .epk-body,
    .epk-page[data-theme="poster"] .epk-body { padding: 1.5rem; }
    .epk-page[data-theme="blackout"] .epk-header--cover { min-height: 260px; }
}

/* ==========================================================================
   Print. Every theme prints as paper.

   The whole point of the sheet is that a promoter can print it to PDF and it
   still reads. A browser does not print backgrounds unless told to, so a
   theme's white-on-colour heading would come out white on white: the
   properties are forced back to black on white, over the band's own choices
   in the style attribute, which is what !important is for here.
   ========================================================================== */

@media print {
    nav, footer, .epk-toolbar, .epk-owner, .epk-preview-note, .epk-share-note, .epk-live-note, #navbar, .footer { display: none !important; }
    body { background: #fff !important; }
    .epk-page {
        --epk-paper: #fff !important;
        --epk-edge: #bbb !important;
        --epk-ink: #222 !important;
        --epk-strong: #000 !important;
        --epk-soft: #444 !important;
        --epk-muted: #555 !important;
        --epk-faint: #555 !important;
        --epk-line: #ccc !important;
        --epk-accent-ink: #000 !important;
        --epk-accent-text: #000 !important;
        margin: 0; max-width: none; padding: 0;
    }
    .epk-page .epk-sheet { background: #fff; border: none; border-radius: 0; box-shadow: none; padding: 0; overflow: visible; color: #222; }
    .epk-page .epk-body { padding: 0 !important; }
    .epk-page .epk-header { position: static; background: none !important; margin: 0 0 1.5rem !important; padding: 0 0 1.5rem !important; min-height: 0 !important; border-bottom: 2px solid #000 !important; }
    .epk-page .epk-header h1 { color: #000 !important; }
    .epk-page .epk-header img.epk-cover { position: static !important; width: 100% !important; height: auto !important; max-height: 300px !important; filter: none !important; margin: 0 0 1rem !important; }
    .epk-page .epk-header .epk-genres,
    .epk-page .epk-header .epk-hometown,
    .epk-page .epk-header .epk-stats .stat b,
    .epk-page .epk-header .epk-stats .stat span { color: #000 !important; }
    .epk-page .epk-section { break-inside: avoid; }
    .epk-page .epk-section h2 { background: none !important; color: #000 !important; transform: none !important; }
    .epk-page .epk-photos img, .epk-page .epk-header img { filter: none !important; }
    .epk-page .dp-embed, .epk-page .epk-embed-btn { display: none !important; }
}

/* --- Tech spec (blocks/tech.html) ---------------------------------------- */

.epk-tech-line { margin: 0 0 .8rem; }

.epk-tech-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
    margin: 0 0 .9rem;
}

.epk-tech-table th,
.epk-tech-table td {
    text-align: left;
    padding: .3rem .5rem;
    border-bottom: 1px solid var(--epk-line, #2a2a2a);
}

.epk-tech-table th {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--epk-muted, #8a8a8a);
}

/* The QR exists for paper: on screen the reader is already on the live kit. */
.epk-tech-qr { display: none; }

@media print {
    /* The whole spec on one sheet: an engineer tapes this to a desk. */
    .epk-tech { page-break-inside: avoid; page-break-before: always; }
    .epk-tech-table tr { page-break-inside: avoid; }
    .epk-tech-qr {
        display: flex;
        align-items: center;
        gap: .6rem;
        margin-top: .8rem;
        font-size: .75rem;
        color: #444;
    }
}

/* --- The uploaded gallery (ArtistPhoto, blocks/photos.html) --------------- */

.epk-gallery figure { margin: 0; }
.epk-gallery figcaption {
    margin-top: .3rem;
    font-size: .72rem;
    color: var(--epk-muted, #8a8a8a);
}
.epk-gallery figcaption a { color: inherit; }

/* ==========================================================================
   The designable kit (19 Oct 2026, Phase 4 of the review)

   Block layouts: each block sits in a wrapper naming it and its layout
   (views/epk/_sheet.html: .epk-block[data-epk-block][data-variant]); the
   partial draws the same markup whatever the layout, and the layout is
   here. The first of each block's layouts (epk.Block.variants) is how it
   has always looked, so a kit nobody arranged looks as it did.

   Style beyond the theme: data attributes on .epk-page (epk.look,
   views/epk/_page_attrs.html) -- the body's type, the room, a background,
   a second colour, two columns.
   ========================================================================== */

/* --- quotes: one under another (own) / first one big / a list ------------ */
.epk-block[data-variant="feature"] > .epk-quote:first-child { border-left-width: 6px; padding: .5rem 0 .5rem 1.5rem; }
.epk-block[data-variant="feature"] > .epk-quote:first-child p { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; font-style: normal; font-family: var(--epk-head); }
.epk-block[data-variant="list"] > .epk-quote { border-left: 0; border-bottom: 1px solid var(--epk-line); margin: 0; padding: .7rem 0; }
.epk-block[data-variant="list"] > .epk-quote p { font-size: .98rem; font-style: normal; color: var(--epk-ink); }
.epk-block[data-variant="list"] > .epk-quote:last-child { margin-bottom: 2.25rem; }

/* --- the bio: plain (own) / first paragraph large / two columns ---------- */
.epk-block[data-variant="lead"] .epk-section p:first-of-type { font-size: 1.22rem; line-height: 1.6; color: var(--epk-strong); }
@media (min-width: 700px) {
    .epk-block[data-variant="columns"] .epk-section h2 ~ p { column-count: 2; column-gap: 2rem; }
}

/* --- at a glance: a list (own) / tiles ----------------------------------- */
.epk-block[data-variant="tiles"] .epk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.epk-block[data-variant="tiles"] .epk-list li { display: grid; gap: .2rem; border: 1px solid var(--epk-line); border-radius: 6px; padding: .75rem .85rem; }
.epk-block[data-variant="tiles"] .epk-list li span:first-child { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--epk-muted); }
.epk-block[data-variant="tiles"] .epk-list li span.muted { font-size: 1.05rem; color: var(--epk-strong); }

/* --- the line-up: with roles (own) / names only -------------------------- */
.epk-block[data-variant="names"] .epk-list { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.epk-block[data-variant="names"] .epk-list li { border: 0; padding: 0; }
.epk-block[data-variant="names"] .epk-list li span.muted { display: none; }

/* --- for fans of: chips (own) / one line --------------------------------- */
.epk-block[data-variant="line"] .epk-ffo { display: block; }
.epk-block[data-variant="line"] .epk-ffo a, .epk-block[data-variant="line"] .epk-ffo span { border: 0; padding: 0; border-radius: 0; }
.epk-block[data-variant="line"] .epk-ffo > *:not(:last-child)::after { content: " \00B7 "; color: var(--epk-muted); }

/* --- shows: a list (own) / compact --------------------------------------- */
.epk-block[data-variant="compact"] .epk-list li,
.epk-block[data-variant="compact"] .epk-gigs td { padding: .25rem 0; font-size: .9rem; }

/* --- photos: a grid (own) / first one big / one row / just the first ----- */
.epk-block[data-variant="feature"] .epk-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.epk-block[data-variant="feature"] .epk-photos > :first-child { grid-column: span 2; grid-row: span 2; }
.epk-block[data-variant="strip"] .epk-photos { display: flex; overflow-x: auto; gap: .75rem; scroll-snap-type: x mandatory; padding-bottom: .4rem; }
.epk-block[data-variant="strip"] .epk-photos > * { flex: 0 0 min(280px, 70%); scroll-snap-align: start; }
.epk-block[data-variant="single"] .epk-photos { grid-template-columns: minmax(0, 1fr); }
.epk-block[data-variant="single"] .epk-photos > :not(:first-child) { display: none; }
.epk-block[data-variant="single"] .epk-photos img { aspect-ratio: 3 / 2; }

/* --- contacts: a list (own) / a card ------------------------------------- */
.epk-block[data-variant="card"] .epk-section { border: 2px solid var(--epk-accent); border-radius: 8px; padding: 1.25rem 1.5rem .5rem; }

/* --- links: words (own) / buttons / icons only (the label stays for a
   screen reader, and for print) ------------------------------------------- */
.epk-block[data-variant="buttons"] .epk-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.epk-block[data-variant="buttons"] .epk-links a { margin: 0; padding: .55rem 1rem; border: 1px solid var(--epk-accent); border-radius: 999px; }
.epk-block[data-variant="icons"] .epk-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.epk-block[data-variant="icons"] .epk-links a { margin: 0; width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--epk-line); border-radius: 50%; font-size: 1.15rem; }
.epk-block[data-variant="icons"] .epk-link-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- a section of the band's own: plain (own) / boxed / callout ---------- */
.epk-block[data-variant="boxed"] .epk-text { border: 1px solid var(--epk-line); border-radius: 8px; padding: 1.25rem 1.5rem .25rem; }
.epk-block[data-variant="callout"] .epk-text { background: var(--epk-accent); color: var(--epk-accent-ink); border-radius: 8px; padding: 1.5rem 1.75rem .5rem; }
.epk-block[data-variant="callout"] .epk-text h2 { color: var(--epk-accent-ink); border-left-color: var(--epk-accent-ink); }

/* --- the body's type, and the room it breathes in ------------------------ */
.epk-page[data-body] { font-family: var(--epk-body); }
.epk-page[data-density="compact"] { font-size: 15px; }
.epk-page[data-density="compact"] .epk-section, .epk-page[data-density="compact"] .epk-quote { margin-bottom: 1.4rem; }
.epk-page[data-density="compact"] .epk-sheet { padding: 2rem; }
.epk-page[data-density="airy"] { font-size: 17px; }
.epk-page[data-density="airy"] .epk-section, .epk-page[data-density="airy"] .epk-quote { margin-bottom: 3.25rem; }
.epk-page[data-density="airy"] .epk-section p { line-height: 1.85; }
.epk-page[data-density="airy"] .epk-sheet { padding: 3.75rem; }

/* --- a background: grain, halftone, fibre (at most 6% of the ink: the
   words stay at 4.5:1, epk.texture_contrast) or the photo behind it ------- */
.epk-page[data-bg="grain"] .epk-sheet { background-image: radial-gradient(color-mix(in srgb, var(--epk-ink) 6%, transparent) 1px, transparent 1.2px); background-size: 3px 3px; }
.epk-page[data-bg="halftone"] .epk-sheet { background-image: radial-gradient(color-mix(in srgb, var(--epk-ink) 6%, transparent) 1.6px, transparent 2px); background-size: 9px 9px; }
.epk-page[data-bg="fibre"] .epk-sheet { background-image: repeating-linear-gradient(115deg, color-mix(in srgb, var(--epk-ink) 4%, transparent) 0 1px, transparent 1px 7px); }
.epk-backdrop { position: fixed; inset: -40px; z-index: -1; background-size: cover; background-position: center 30%; filter: blur(28px) brightness(.35) saturate(1.1); }
.epk-page[data-bg="photo"] .epk-sheet { box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }

/* --- a second colour: the rules under the headings, the chips ------------ */
.epk-page[data-accent2] .epk-section h2, .epk-page[data-accent2] .epk-section .epk-h2 { border-left-color: var(--epk-accent-2); }
.epk-page[data-accent2][data-theme="poster"] .epk-section h2, .epk-page[data-accent2][data-theme="poster"] .epk-section .epk-h2 { border-bottom-color: var(--epk-accent-2); }
.epk-page[data-accent2] .epk-ffo a { border-color: var(--epk-accent-2); color: var(--epk-accent-2-text); }

/* --- two columns: the blocks placed "side" in an aside ------------------- */
.epk-page[data-columns="two"] { max-width: 1080px; }
.epk-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); gap: 2.5rem; align-items: start; }
.epk-aside .epk-section h2 { font-size: .95rem; }
@media (max-width: 900px) {
    .epk-columns { display: block; }
}

@media print {
    .epk-backdrop { display: none !important; }
    .epk-page .epk-sheet { background-image: none !important; }
    .epk-columns { display: block; }
    .epk-block[data-variant="strip"] .epk-photos { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
    .epk-block[data-variant="feature"] .epk-photos > :first-child { grid-column: auto; grid-row: auto; }
    .epk-block[data-variant="icons"] .epk-link-label { position: static; width: auto; height: auto; clip: auto; }
    .epk-block[data-variant="icons"] .epk-links a { width: auto; height: auto; border: 0; border-radius: 0; margin-right: 1rem; }
    .epk-block[data-variant="callout"] .epk-text { background: none; color: #000; border: 2px solid #000; }
    .epk-block[data-variant="callout"] .epk-text h2 { color: #000 !important; }
}

/* ==========================================================================
   A kit that was sent (19 Oct 2026, Phase 5 of the review): standalone,
   on views/epk/base_kit.html -- the page is the kit's paper, a slim credit
   bar at the top, no site around it. The main /epk/<slug>/ keeps the site.
   ========================================================================== */

body.epk-standalone { margin: 0; background: var(--epk-page-paper, #111); font-family: 'Inter', system-ui, sans-serif; }
.epk-standalone-main .epk-page { margin-top: 2rem; max-width: 1040px; }
.epk-standalone-main .epk-page[data-columns="two"] { max-width: 1120px; }
.epk-creditbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.1rem; min-height: 44px; padding: .3rem 1.25rem;
    background: #0a0a0a; color: #a8a8a8; font-size: .8rem; border-bottom: 1px solid #222; color-scheme: dark;
}
.epk-creditbar a { display: inline-flex; align-items: center; min-height: 32px; color: #fff; text-decoration: none; }
.epk-creditbar a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
.epk-creditbar-brand { font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.epk-creditbar-brand::before { content: ""; width: 8px; height: 8px; margin-right: .5rem; border-radius: 50%; background: #ff0000; }
.epk-creditbar-cta { margin-left: auto; padding: 0 .8rem; border: 1px solid rgba(255, 92, 92, .6); border-radius: 999px; color: #ff7a7a !important; font-weight: 600; transition: background .12s, color .12s; }
.epk-creditbar-cta:hover { background: #e10600; border-color: #e10600; color: #fff !important; }
.epk-creditbar-alt { color: #a8a8a8 !important; }
.epk-creditbar-alt:hover { color: #fff !important; }
/* A sheet on a page of its own has some depth to it. */
.epk-standalone-main .epk-sheet { box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.epk-standalone-main .epk-page[data-theme="zine"] .epk-sheet { box-shadow: 8px 8px 0 var(--epk-accent); }
/* A theme says which colour scheme its paper is, so a phone's own controls
   and scrollbars match it. */
.epk-page { color-scheme: dark; }
.epk-page[data-theme="paper"], .epk-page[data-theme="zine"] { color-scheme: light; }

/* --- the narrow screen -------------------------------------------------- */

.epk-list li { flex-wrap: wrap; row-gap: .15rem; }
.epk-list li > span { min-width: 0; overflow-wrap: anywhere; }
.epk-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.epk-links a, .epk-list a, .epk-ffo a { min-height: 44px; display: inline-flex; align-items: center; }
.epk-links a { gap: .45rem; }
.epk-links a:hover .epk-link-label { text-decoration: underline; text-underline-offset: .15em; }
.epk-list a { min-height: 24px; position: relative; }
/* A link in a row -- the booking address above all -- is a line of type
   tall. Its reach is a fingertip's, without the row growing to fit it. */
.epk-list a::after { content: ""; position: absolute; inset: -10px -6px; }
@media (max-width: 900px) {
    .epk-page { margin-top: 1.5rem; }
}
@media (max-width: 400px) {
    .epk-page { padding: 0 .75rem; }
    .epk-sheet { padding: 1.1rem; }
    .epk-header h1 { font-size: 1.9rem; }
    .epk-stats { gap: 1.25rem; }
    .epk-creditbar-text { display: none; }
}

/* --- paper --------------------------------------------------------------- */

.epk-print-only, .epk-print-qr { display: none; }

@page { size: A4; margin: 14mm 14mm 16mm; }

@media print {
    .epk-creditbar { display: none !important; }
    body.epk-standalone { background: #fff !important; }
    .epk-print-only { display: block; }
    ul.epk-print-only { list-style: none; padding: 0; }
    /* A link on paper is its address. */
    .epk-links a[data-print]::after { content: " " attr(data-print); color: #444; font-size: .8em; }
    .epk-links a { margin-right: 1.25rem; min-height: 0; }
    .epk-print-qr {
        display: flex; align-items: center; gap: .8rem; margin-top: 1.5rem; padding-top: 1rem;
        border-top: 1px solid #bbb; font-size: .8rem; color: #333; break-inside: avoid;
    }
    .epk-print-qr img { width: 22mm; height: 22mm; }
    .epk-scroll { overflow: visible; }
    a.epk-mail { color: #000 !important; }
}

/* ---------------------------------------------------------------------------
   Highlights and press coverage (19 Oct 2026, Phase 7 of the review).
   --------------------------------------------------------------------------- */
.epk-highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.epk-highlights li { position: relative; padding-left: 1.3em; line-height: 1.5; }
.epk-highlights li::before {
    content: ''; position: absolute; left: 0; top: .6em; width: .5em; height: .5em;
    border-radius: 50%; background: var(--epk-accent);
}
.epk-block[data-epk-block="highlights"][data-variant="tiles"] .epk-highlights { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.epk-block[data-epk-block="highlights"][data-variant="tiles"] .epk-highlights li { padding: .75rem .85rem; border: 1px solid var(--epk-line); border-radius: 6px; }
.epk-block[data-epk-block="highlights"][data-variant="tiles"] .epk-highlights li::before { display: none; }
.epk-coverage li > span:first-child { display: flex; flex-wrap: wrap; gap: .15rem .6rem; align-items: baseline; }
.epk-cov-outlet { color: var(--epk-strong); }
.epk-block[data-epk-block="coverage"][data-variant="compact"] .epk-cov-title { display: none; }
@media print {
    .epk-block[data-epk-block="highlights"][data-variant="tiles"] .epk-highlights { grid-template-columns: repeat(2, 1fr); }
    .epk-block[data-epk-block="coverage"][data-variant="compact"] .epk-cov-title { display: inline; }
}

/* The photo pack's button (blocks/photos.html, epk_photopack.js). */
.epk-pack {
    display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .9rem; min-height: 44px;
    padding: .5rem .9rem; border: 1px solid var(--epk-line); border-radius: 6px; background: transparent;
    color: var(--epk-strong); font: inherit; font-size: .9rem; cursor: pointer;
}
.epk-pack { transition: border-color .12s; }
.epk-pack:hover { border-color: var(--epk-accent); }
.epk-pack:disabled { opacity: .6; cursor: progress; }
@media print { .epk-pack { display: none !important; } }

/* Less motion, for whoever asked. */
@media (prefers-reduced-motion: reduce) {
    .epk-page *, .epk-creditbar * { transition: none !important; }
}

/* A fingertip's worth on a phone, for what the site puts round a kit. */
@media (max-width: 700px) {
    .epk-creditbar a { min-height: 44px; }
    /* The pill stays a pill; its reach is the bar's height. */
    .epk-creditbar a.epk-creditbar-cta { min-height: 36px; position: relative; }
    .epk-creditbar-cta::after { content: ""; position: absolute; inset: -4px 0; }
    .epk-toolbar button, .epk-toolbar a.btn, .epk-owner a.btn, .epk-owner button, .epk-share input { min-height: 44px; }
}
