/* CV and production credits: identify works/people, keep contributions readable. */
.sv-person-career--theatre .sv-person-career__item,
.sv-person-career--film .sv-person-career__item,
.sv-person-shows__line,
.sv-show-credits__line {
    font-weight: 400;
}

.sv-person-career__work-title,
.sv-person-career__work-title a,
.sv-person-shows__show,
.sv-person-shows__show a,
.sv-show-credits__person,
.sv-show-credits__person a,
.sv-show-credits__person-name {
    font-weight: 600;
    font-style: normal;
}

.sv-person-career__details,
.sv-person-shows__credit,
.sv-person-shows__credit span,
.sv-show-credits__credit,
.sv-show-credits__credit span {
    font-weight: 400;
}

.sv-person-shows__line {
    margin: 0;
}

/* Opt-in article meta: names stay distinct from professions and adjacent people.
   Inline blocks keep ordinary names whole; exceptionally long names can wrap. */
.sv-article-subject-name {
    display: inline-block;
    max-inline-size: 100%;
    overflow-wrap: anywhere;
    vertical-align: baseline;
    font-weight: 600;
}

.sv-home-recent-meta .sv-article-subject-show {
    font-weight: 600;
}

.sv-article-subject-en-dash,
.sv-home-recent-meta .sv-article-subject-semicolon {
    display: none;
}

.sv-home-recent-meta .sv-article-subject-en-dash {
    display: inline;
}

/* Shift only the heading within the existing space above the list. */
.sv-home-sidebar .sv-home-sidebar-module:has(> .sv-home-recent-list) > .sv-home-sidebar-title {
    position: relative;
    top: 6px;
}

/* Shared page opening. The header already includes its own bottom spacing. */
:root {
    --sv-page-opening: 32px;
    --sv-profile-block-gap: 32px;
    --sv-media-gap-before: calc(var(--sv-profile-block-gap) * 1.5);
    --sv-media-gap-after: calc(var(--sv-profile-block-gap) * 0.5);
    --sv-page-heading-size: 32px;
    --sv-page-heading-line: 1.15;
}

#brx-content > .sv-page-section:first-child,
#brx-content > .sv-home-section-first {
    padding-top: var(--sv-page-opening);
}

/* Bricks' default archive heading lives before main, not inside it. */
body.archive .bricks-archive-title-wrapper {
    padding-top: var(--sv-page-opening);
    width: calc(100% - 48px);
    max-width: 1100px;
    padding-inline: 0;
    margin-top: 0;
    margin-bottom: 32px;
}

body:not(.home) #brx-content h1,
body.archive .bricks-archive-title-wrapper h1 {
    font-size: var(--sv-page-heading-size) !important;
    font-weight: 600 !important;
    line-height: var(--sv-page-heading-line) !important;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: #343434;
}

/* The shared reference has two gaps of 32px (24px on mobile). Move a
   quarter of their total below-to-above: 48/16px, or 36/12px on mobile. */
body:is(.single-sv_persoana, .single-sv_spectacol, .single-sv_organizatie, .single-sv_spatiu)
#brx-content .sv-content-stack:has(> .sv-header-stack) {
    row-gap: var(--sv-profile-block-gap);
}

body:is(.single-sv_persoana, .single-sv_spectacol, .single-sv_organizatie, .single-sv_spatiu)
#brx-content .sv-content-stack > .sv-header-stack {
    margin-block: 0 !important;
}

body:is(.single-sv_persoana, .single-sv_spectacol, .single-sv_organizatie, .single-sv_spatiu)
#brx-content .sv-content-stack > .sv-media-stack {
    margin-top: calc(var(--sv-profile-block-gap) * 0.5);
    margin-bottom: calc(var(--sv-profile-block-gap) * -0.5);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#brx-content .sv-profile-label {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

#brx-content .sv-profile-label + h1 {
    margin-top: 0 !important;
}

/* Author archive has an additional outer Bricks section. */
body.tax-sv_autor #brx-content > .brxe-section:first-child {
    padding-top: var(--sv-page-opening);
}
body.tax-sv_autor #brx-content .sv-author-archive {
    padding-top: 0;
}

/* Default WordPress pages, including the privacy policy. */
body:not(.home) #brx-content.wordpress {
    padding-top: var(--sv-page-opening);
}

@media (max-width: 991px) {
    :root { --sv-page-heading-size: 28px; --sv-page-heading-line: 1.3; }
}

@media (max-width: 767px) {
    :root { --sv-page-opening: 24px; --sv-profile-block-gap: 24px; }
}

/* Raise the side-by-side hamburger as on desktop. Preserve the centered
   logo and stacked navigation at the existing smallest breakpoint. */
@media (min-width: 479px) and (max-width: 767px) {
    #brx-header #brxe-hzzcdn { transform: translateY(-12px); }
}

@media (max-width: 478px) {
    :root { --sv-page-heading-size: 22px; }
}

/* Editorial articles have separate grid and text-column containers. */
body.single-post #brx-content .sv-single-layout {
    row-gap: var(--sv-media-gap-before);
}
body.single-post #brx-content .sv-single-main {
    row-gap: var(--sv-media-gap-after);
}
body.single-post #brx-content .sv-single-main > .sv-media-stack {
    margin-block: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#brx-content .sv-media-stack > .sv-photo-credit:empty { display: none; }

.sv-space-archive-card .sv-space-archive-card-technical {
    font-weight: 600;
}

/* Commas only in the profession list on the person's own header. */
body.single-sv_persoana #brx-content .sv-header-stack .sv_profesie {
    column-gap: 0.35em;
}
body.single-sv_persoana #brx-content .sv-header-stack .sv_profesie a {
    column-gap: 0;
}
body.single-sv_persoana #brx-content .sv-header-stack .sv_profesie li:not(:last-child) > a::after {
    content: ",";
}
