/*
Theme Name: Spirin Music
Theme URI: https://spirinmusic.com/
Author: Spirin Music
Description: Lightweight custom theme for spirinmusic.com.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: spirinmusic
*/

:root {
    color-scheme: dark;
    --sm-bg: #000000;
    --sm-text: #ffffff;
    --sm-muted: #a8a8a8;
    --sm-border: #2b2b2b;
    --sm-soft: #111111;
    --sm-sidebar: 240px;
    --sm-content: 1180px;
    --sm-reading: 780px;
    --sm-gutter: clamp(20px, 4vw, 60px);
    --sm-header-mobile: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--sm-bg);
    color: var(--sm-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.screen-reader-text:focus {
    z-index: 9999;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px 14px;
    background: var(--sm-text);
    color: var(--sm-bg);
}

.site-shell { min-height: 100vh; }
.site-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    width: var(--sm-sidebar);
    flex-direction: column;
    justify-content: space-between;
    padding: 34px 26px 26px;
    border-right: 1px solid var(--sm-border);
    background: var(--sm-bg);
}
.site-brand { margin-bottom: 48px; }
.site-brand .custom-logo-link,
.mobile-brand .custom-logo-link { display: inline-flex; }
.site-brand .custom-logo {
    width: auto;
    max-width: 184px;
    max-height: 92px;
}
.site-title {
    display: inline-block;
    max-width: 100%;
    font-size: 25px;
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-decoration: none;
}
.site-description {
    margin: 10px 0 0;
    color: var(--sm-muted);
    font-size: 13px;
    line-height: 1.4;
}
.site-navigation ul { list-style: none; margin: 0; padding: 0; }
.site-navigation li + li { margin-top: 14px; }
.site-navigation a {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
}
.site-navigation a::before {
    content: "";
    width: 0;
    height: 1px;
    margin-right: 0;
    background: currentColor;
    transition: width .16s ease, margin-right .16s ease;
}
.site-navigation a:hover::before,
.site-navigation .current-menu-item > a::before,
.site-navigation .current_page_item > a::before {
    width: 18px;
    margin-right: 9px;
}
.sidebar-footer {
    display: grid;
    gap: 13px;
    color: var(--sm-muted);
    font-size: 13px;
}
.mobile-menu-links { display: none; }
.sidebar-footer a { text-decoration: none; }
.sidebar-footer a:hover { color: var(--sm-text); }
.language-switch { display: flex; gap: 7px; align-items: center; }
.language-switch .is-current { color: var(--sm-text); font-weight: 700; }

.mobile-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 50;
    align-items: center;
    justify-content: space-between;
    height: var(--sm-header-mobile);
    padding: 8px 18px;
    border-bottom: 1px solid var(--sm-border);
    background: rgba(0, 0, 0, .96);
    backdrop-filter: blur(10px);
}
.mobile-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    font-size: 20px;
    font-weight: 760;
    line-height: 1.05;
    text-decoration: none;
}
.mobile-brand .custom-logo {
    width: auto;
    max-width: 154px;
    max-height: 36px;
}
.menu-toggle {
    display: inline-flex;
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--sm-border);
    background: var(--sm-bg);
    color: var(--sm-text);
    cursor: pointer;
}
.menu-toggle-icon {
    position: relative;
    width: 22px;
    height: 14px;
}
.menu-toggle-icon::before,
.menu-toggle-icon::after,
.menu-toggle-icon span {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 1px;
    background: currentColor;
    transition: transform .16s ease, top .16s ease, opacity .16s ease;
}
.menu-toggle-icon::before { top: 0; }
.menu-toggle-icon span { top: 6px; }
.menu-toggle-icon::after { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { top: 6px; transform: rotate(-45deg); }
.menu-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.site-content { margin-left: var(--sm-sidebar); }
.site-main { min-height: 76vh; }
.content-wrap,
.footer-inner {
    width: min(calc(100% - (var(--sm-gutter) * 2)), var(--sm-content));
    margin-inline: auto;
}
.content-wrap { padding: clamp(48px, 5vw, 76px) 0 96px; }
.home-content { padding-top: 0; padding-bottom: 68px; }
.page-header { margin-bottom: clamp(30px, 4vw, 48px); }
.page-title {
    margin: 0;
    max-width: 980px;
    font-size: clamp(40px, 4.4vw, 58px);
    line-height: 1;
    letter-spacing: -0.042em;
}
.page-intro { max-width: 720px; margin: 18px 0 0; color: var(--sm-muted); }

.hero {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--sm-border);
    background: var(--sm-soft);
}
.hero-picture { display: block; width: 100%; }
.hero-image {
    display: block;
    width: 100%;
    height: min(34vw, var(--sm-hero-desktop-height, 460px));
    min-height: 280px;
    object-fit: cover;
    object-position: center var(--sm-hero-position-y, center);
    background: var(--sm-bg);
}
/* Full-width natural ratio: no cropping, but a 16:9 poster remains tall. */
.hero-image.is-full {
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
}
/* Fit the whole poster inside the chosen banner height. Side fields are unavoidable when aspect ratios differ. */
.hero-image.is-contain {
    height: min(34vw, var(--sm-hero-desktop-height, 460px));
    min-height: 280px;
    object-fit: contain;
}
.hero-fallback {
    display: grid;
    min-height: 48vh;
    place-items: center;
    padding: 64px 24px;
    text-align: center;
}
.hero-fallback .custom-logo { width: auto; max-width: min(460px, 76vw); max-height: 220px; }
.hero-name { margin: 0; font-size: clamp(48px, 8vw, 104px); line-height: .92; letter-spacing: -0.055em; }

.home-section { padding: clamp(42px, 4.5vw, 62px) 0; border-bottom: 1px solid var(--sm-border); }
.home-content .home-section:first-child { padding-top: clamp(34px, 3.4vw, 46px); }
.home-section:last-child { border-bottom: 0; }
.section-heading {
    margin: 0 0 26px;
    max-width: 900px;
    font-size: clamp(30px, 3.3vw, 44px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}
.biography { max-width: var(--sm-reading); font-size: clamp(19px, 1.65vw, 23px); line-height: 1.58; }
.biography > *:first-child { margin-top: 0; }
.biography > *:last-child { margin-bottom: 0; }

.event-list { border-top: 1px solid var(--sm-text); }
.event-row {
    display: grid;
    grid-template-columns: minmax(186px, 216px) minmax(150px, .9fr) minmax(190px, 1.2fr) minmax(150px, 260px);
    gap: 24px;
    align-items: center;
    min-width: 0;
    padding: 22px 0;
    border-bottom: 1px solid var(--sm-border);
}
.event-date {
    min-width: 0;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 670;
    line-height: 1.25;
}
.event-city { min-width: 0; font-size: 20px; font-weight: 730; line-height: 1.25; overflow-wrap: anywhere; }
.event-venue { min-width: 0; color: var(--sm-muted); line-height: 1.35; overflow-wrap: anywhere; }
.event-action {
    width: 100%;
    min-width: 0;
    max-width: 260px;
    justify-self: end;
    text-align: right;
}
.event-action .button {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}
.event-time {
    display: block;
    margin-top: 5px;
    color: var(--sm-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: .025em;
}
.event-status {
    display: inline-flex;
    margin-top: 8px;
    padding: 3px 6px;
    border: 1px solid var(--sm-border);
    color: var(--sm-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .065em;
}
.event-row.is-cancelled .event-date,
.event-row.is-cancelled .event-city,
.event-row.is-cancelled .event-venue { color: var(--sm-muted); }
.event-row.is-cancelled .event-status { border-color: var(--sm-muted); color: var(--sm-text); }
.event-row.is-postponed .event-status { border-color: var(--sm-text); color: var(--sm-text); }

.button,
.wp-element-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid var(--sm-text);
    border-radius: 0;
    background: var(--sm-text);
    color: var(--sm-bg);
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.button:hover,
.button:focus-visible { background: var(--sm-bg); color: var(--sm-text); }
.button.is-disabled { border-color: var(--sm-border); background: var(--sm-soft); color: var(--sm-muted); cursor: default; }
.button-secondary { background: var(--sm-bg); color: var(--sm-text); }
.section-actions { margin-top: 30px; }

.promo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); gap: 48px; align-items: center; }
.promo-kicker { margin: 0 0 10px; color: var(--sm-muted); font-size: 13px; font-weight: 740; text-transform: uppercase; letter-spacing: .07em; }
.promo-title { margin: 0 0 14px; font-size: clamp(32px, 4vw, 52px); line-height: 1.04; letter-spacing: -0.035em; }
.promo-text { color: var(--sm-muted); }
.promo-media { min-width: 0; }
.promo-image { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; background: var(--sm-soft); }

.release-grid,
.clip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 58px 32px; }
.release-card,
.clip-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.release-media,
.clip-media {
    overflow: hidden;
    border: 1px solid var(--sm-border);
    background: var(--sm-soft);
}
.release-cover { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; background: var(--sm-soft); }
.release-cover-placeholder { display: grid; place-items: center; padding: 24px; color: var(--sm-muted); text-align: center; }
.card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-top: 17px;
}
.card-heading { min-width: 0; }
.card-title {
    margin: 0 0 5px;
    font-size: clamp(20px, 1.75vw, 23px);
    line-height: 1.18;
    letter-spacing: -0.022em;
    overflow-wrap: anywhere;
}
.card-meta { margin: 0; color: var(--sm-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.service-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 19px;
    padding-top: 0;
}
.service-links-count-1 { grid-template-columns: minmax(0, 1fr); }
.service-link {
    display: inline-flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--sm-border);
    color: var(--sm-text);
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.service-link::after { content: "↗"; flex: 0 0 auto; color: var(--sm-muted); }
.service-link:hover,
.service-link:focus-visible { border-color: var(--sm-text); background: var(--sm-text); color: var(--sm-bg); }
.service-link:hover::after,
.service-link:focus-visible::after { color: inherit; }

.video-placeholder {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #111;
    color: #fff;
    cursor: pointer;
}
.video-placeholder img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease, opacity .2s ease; }
.video-placeholder:hover img,
.video-placeholder:focus-visible img { transform: scale(1.015); opacity: .84; }
.video-placeholder.js-video::after {
    content: "▶";
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    width: 64px;
    height: 46px;
    place-items: center;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,.84);
    font-size: 21px;
    line-height: 1;
}
.video-placeholder.is-unavailable {
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--sm-muted);
    cursor: default;
    text-align: center;
}
.video-placeholder.is-unavailable span { max-width: 18ch; }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

.post-list { border-top: 1px solid var(--sm-text); }
.post-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: clamp(28px, 4vw, 54px);
    align-items: start;
    padding: clamp(30px, 3.5vw, 44px) 0;
    border-bottom: 1px solid var(--sm-border);
}
.post-card:not(.has-thumbnail) { grid-template-columns: minmax(0, 780px); }
.post-card-body { min-width: 0; }
.post-date {
    margin-bottom: 13px;
    color: var(--sm-muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
    letter-spacing: .045em;
}
.post-card-title { margin: 0 0 13px; font-size: clamp(26px, 2.5vw, 35px); line-height: 1.08; letter-spacing: -0.03em; }
.post-card-title a { text-decoration: none; }
.post-card-title a:hover { text-decoration: underline; }
.post-excerpt { max-width: 720px; color: #d2d2d2; line-height: 1.62; }
.post-excerpt p { margin: 0; }
.post-read-more {
    display: inline-flex;
    margin-top: 18px;
    align-items: center;
    font-size: 14px;
    font-weight: 720;
    text-decoration: none;
}
.post-read-more:hover { text-decoration: underline; }
.post-thumb-link { display: block; text-decoration: none; }
.post-thumb {
    aspect-ratio: 16 / 10;
    width: 100%;
    object-fit: cover;
    border: 1px solid var(--sm-border);
    background: var(--sm-soft);
}

.entry { max-width: var(--sm-reading); }
.entry-back {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--sm-muted);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}
.entry-back:hover { color: var(--sm-text); text-decoration: underline; }
.entry-header { margin-bottom: 34px; }
.entry-title { margin: 0; font-size: clamp(38px, 4.5vw, 58px); line-height: 1.02; letter-spacing: -0.04em; }
.entry-date { margin-top: 16px; color: var(--sm-muted); font-size: 14px; }
.entry-featured { margin: 0 0 38px; }
.entry-featured img { width: 100%; height: auto; border: 1px solid var(--sm-border); }
.entry-content { font-size: 18px; line-height: 1.72; }
.entry-content > * { max-width: 100%; }
.entry-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.entry-content img { margin: 32px 0; }
.entry-content figure { margin-inline: 0; }
.entry-content p { margin-block: 0 1.25em; }
.entry-content h2,
.entry-content h3 { margin: 1.75em 0 .65em; line-height: 1.15; letter-spacing: -0.025em; }
.entry-content h2 { font-size: clamp(28px, 3vw, 38px); }
.entry-content h3 { font-size: clamp(23px, 2.4vw, 30px); }
.entry-content blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 2px solid var(--sm-text); color: var(--sm-muted); }

.pagination { margin-top: 44px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-numbers {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid var(--sm-border);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}
a.page-numbers:hover { border-color: var(--sm-text); }
.page-numbers.current { border-color: var(--sm-text); background: var(--sm-text); color: var(--sm-bg); }
.page-numbers.prev,
.page-numbers.next { padding-inline: 15px; }

.empty-state { padding: 28px 0; color: var(--sm-muted); }
.site-footer { border-top: 1px solid var(--sm-border); }
.footer-inner { padding: 38px 0 30px; }
.footer-grid {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(220px, 1fr) minmax(240px, 1.15fr);
    gap: 38px;
}
.footer-heading { margin: 0 0 12px; color: var(--sm-text); font-size: 13px; font-weight: 740; text-transform: uppercase; letter-spacing: .06em; }
.footer-copy,
.footer-list { margin: 0; padding: 0; color: var(--sm-muted); font-size: 14px; list-style: none; }
.footer-list li + li { margin-top: 6px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--sm-text); }
.footer-legal {
    margin-top: 30px;
    padding-top: 19px;
    border-top: 1px solid var(--sm-border);
    color: #858585;
    font-size: 12px;
    line-height: 1.6;
}
.footer-legal p { margin: 0; }
.footer-legal p + p { margin-top: 4px; }
.footer-legal a { color: #bcbcbc; }
.footer-legal a:hover { color: var(--sm-text); }

@media (max-width: 1180px) {
    :root { --sm-sidebar: 218px; }
    .site-sidebar { padding-inline: 22px; }
    .event-row {
        grid-template-columns: minmax(165px, 190px) minmax(0, 1fr) minmax(140px, 220px);
        gap: 8px 22px;
        align-items: start;
    }
    .event-date { grid-column: 1; grid-row: 1 / span 2; }
    .event-city { grid-column: 2; grid-row: 1; }
    .event-venue { grid-column: 2; grid-row: 2; }
    .event-action { grid-column: 3; grid-row: 1 / span 2; max-width: 220px; align-self: center; }
    .release-grid,
    .clip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-card { grid-template-columns: minmax(0, 1fr) minmax(210px, 260px); }
}

@media (max-width: 960px) {
    .site-sidebar {
        display: flex;
        position: fixed;
        inset: var(--sm-header-mobile) 0 0 0;
        z-index: 45;
        width: 100%;
        height: calc(100dvh - var(--sm-header-mobile));
        padding: clamp(28px, 7vw, 52px) var(--sm-gutter) 28px;
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        border: 0;
        border-top: 1px solid var(--sm-border);
        background: rgba(0,0,0,.995);
        transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    }
    .site-sidebar.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        transition-delay: 0s;
    }
    .site-sidebar > div:first-child { width: 100%; }
    .site-brand { display: none; }
    .site-navigation { width: 100%; }
    .site-navigation li + li { margin-top: 14px; }
    .site-navigation a {
        display: flex;
        width: fit-content;
        max-width: 100%;
        font-size: clamp(32px, 8vw, 48px);
        font-weight: 740;
        line-height: 1.08;
        letter-spacing: -0.038em;
    }
    .site-navigation a::before { display: none; }
    .site-navigation .current-menu-item > a,
    .site-navigation .current_page_item > a { color: var(--sm-muted); }
    .site-navigation .current-menu-item > a::after,
    .site-navigation .current_page_item > a::after {
        content: "";
        width: 22px;
        height: 2px;
        margin-left: 12px;
        background: currentColor;
    }
    .sidebar-footer {
        width: 100%;
        margin-top: 42px;
        padding-top: 22px;
        border-top: 1px solid var(--sm-border);
        font-size: 15px;
    }
    .sidebar-email { width: fit-content; color: var(--sm-text); }
    .mobile-menu-links {
        display: flex;
        flex-wrap: wrap;
        gap: 7px 16px;
    }
    .mobile-menu-links a { text-decoration: none; }
    .mobile-menu-links a:hover { color: var(--sm-text); }
    .language-switch {
        margin-top: 5px;
        gap: 9px;
        font-size: 17px;
    }
    .mobile-header { display: flex; }
    .site-content { margin-left: 0; }
    .content-wrap { padding-top: 46px; }
    .home-content { padding-top: 0; padding-bottom: 60px; }
    .hero-picture { display: block; }
    .hero-image { width: 100%; height: auto; min-height: 0; max-height: none; object-fit: contain; }
    .hero-image.is-cover-mobile { height: min(78vw, 620px); object-fit: cover; }
    .home-section { padding: 44px 0; }
    .home-content .home-section:first-child { padding-top: 34px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    :root { --sm-gutter: 20px; }
    body { font-size: 16px; }
    .mobile-header { padding-inline: 16px; }
    .mobile-brand .custom-logo { max-width: 146px; max-height: 34px; }
    .page-header { margin-bottom: 30px; }
    .page-title { font-size: clamp(38px, 11vw, 48px); line-height: 1.02; }
    .page-intro { margin-top: 14px; }
    .section-heading { margin-bottom: 22px; font-size: clamp(29px, 8.4vw, 38px); }
    .biography { font-size: 19px; line-height: 1.56; }
    .hero-fallback { min-height: 34vh; }
    .content-wrap { padding-top: 38px; padding-bottom: 68px; }
    .home-section { padding: 40px 0; }
    .home-content .home-section:first-child { padding-top: 30px; }
    .event-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "date action"
            "city action"
            "venue action";
        gap: 7px 16px;
        align-items: start;
        padding: 22px 0;
    }
    .event-date { grid-area: date; grid-column: auto; grid-row: auto; white-space: normal; }
    .event-city { grid-area: city; grid-column: auto; grid-row: auto; font-size: 19px; }
    .event-venue { grid-area: venue; grid-column: auto; grid-row: auto; }
    .event-action { grid-area: action; grid-column: auto; grid-row: auto; align-self: center; }
    .promo { grid-template-columns: 1fr; gap: 28px; }
    .release-grid,
    .clip-grid { grid-template-columns: 1fr; gap: 46px; }
    .release-card,
    .clip-card { width: 100%; max-width: 620px; }
    .post-card,
    .post-card:not(.has-thumbnail) { grid-template-columns: 1fr; gap: 22px; padding: 30px 0; }
    .post-card-title { font-size: clamp(25px, 7.5vw, 31px); }
    .post-thumb-link { order: -1; }
    .post-thumb { aspect-ratio: 16 / 9; }
    .post-read-more { margin-top: 15px; }
    .entry-back { margin-bottom: 22px; }
    .entry-header { margin-bottom: 28px; }
    .entry-featured { margin-bottom: 30px; }
    .entry-title { font-size: clamp(36px, 10vw, 48px); }
    .entry-content { font-size: 17px; line-height: 1.7; }
    .service-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-brand { grid-column: auto; }
    .footer-list { display: flex; flex-wrap: wrap; gap: 7px 18px; }
    .footer-list li + li { margin-top: 0; }
    .footer-legal { margin-top: 26px; }
}

@media (max-width: 430px) {
    .event-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "date"
            "city"
            "venue"
            "action";
    }
    .event-action { max-width: 100%; justify-self: start; margin-top: 11px; text-align: left; }
    .service-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* 0.6.4 — resilient promo and empty states. */
.event-row.has-hidden-action {
    /* Keep the same column starts as rows with a button, then let the venue
       use the freed action column. This preserves table alignment. */
    grid-template-columns: minmax(186px, 216px) minmax(150px, .9fr) minmax(190px, 1.2fr) minmax(150px, 260px);
}
.event-row.has-hidden-action .event-venue { grid-column: 3 / 5; }
.promo.no-media { grid-template-columns: minmax(0, var(--sm-reading)); }
.promo-content { min-width: 0; }
.promo-text { max-width: 680px; }
.promo-text > *:first-child { margin-top: 0; }
.promo-text > *:last-child { margin-bottom: 0; }
.promo-section-link { margin-top: 22px; }
.promo .service-links { max-width: 560px; }
.promo-image-placeholder {
    display: grid;
    place-items: center;
    border: 1px solid var(--sm-border);
    color: var(--sm-muted);
    text-align: center;
}
.empty-state {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 86px;
    padding: 24px 0;
    border-top: 1px solid var(--sm-border);
    border-bottom: 1px solid var(--sm-border);
    color: var(--sm-muted);
}
.empty-state p { margin: 0; }
.empty-state-mark {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border: 1px solid currentColor;
    border-radius: 50%;
}

@media (max-width: 1180px) {
    .event-row.has-hidden-action {
        grid-template-columns: minmax(165px, 190px) minmax(0, 1fr) minmax(140px, 220px);
    }
    .event-row.has-hidden-action .event-venue {
        grid-column: 2 / 4;
        grid-row: 2;
    }
}

@media (max-width: 720px) {
    .event-row.has-hidden-action {
        grid-template-columns: 1fr;
        grid-template-areas:
            "date"
            "city"
            "venue";
    }
    .event-row.has-hidden-action .event-venue {
        grid-area: venue;
        grid-column: auto;
        grid-row: auto;
    }
    .promo.no-media { grid-template-columns: 1fr; }
}

/* 0.6.5 — selected-news promo and optional custom kicker. */
.promo-news .promo-image {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}
.promo-link-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin-top: 22px;
}
.promo-link-list .post-read-more { margin-top: 0; }
