/* Publications (Stitch-aligned). Tokens mirror Google Stitch project "EALD Living Publications Redesign". */

.eald-slot-target {
    position: relative;
}

.eald-slot-marker {
    display: inline-block;
    margin-bottom: 0.35rem;
    border: 1px dashed #f7cf62;
    background: rgba(20, 26, 35, 0.66);
    color: #f7cf62;
    border-radius: 6px;
    font-size: 0.68rem;
    letter-spacing: 0.01em;
    padding: 0.1rem 0.35rem;
}

.eald-slot-marker-floating {
    position: absolute;
    top: 0.65rem;
    right: clamp(1rem, 3vw, 1.65rem);
    z-index: 4;
}

.stp-publications {
    --stp-primary: #002956;
    --stp-primary-container: #183f73;
    --stp-on-primary-container: #8aace6;
    --stp-secondary-container: #fcda74;
    --stp-on-secondary-container: #765e00;
    --stp-surface: #f9f9ff;
    --stp-surface-container-low: #f0f3ff;
    --stp-on-background: #001b3d;
    --stp-on-surface-variant: #43474f;
    --stp-outline-variant: #c3c6d1;
    --stp-chip-bg: rgba(24, 63, 115, 0.1);
    --stp-chip-fg: #183f73;
    --stp-panel-shadow: 0 8px 24px rgba(18, 46, 84, 0.08);
    font-family: "Public Sans", "Segoe UI", system-ui, sans-serif;
    color: var(--stp-on-background);
    background-color: var(--stp-surface);
    position: relative;
    isolation: isolate;
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.stp-contained {
    width: min(1120px, 94vw);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 1.55rem);
    position: relative;
    z-index: 1;
}

.stp-hero {
    background: linear-gradient(
        to bottom right,
        var(--stp-surface-container-low),
        var(--stp-surface)
    );
    padding-block: clamp(2.2rem, 5vw, 3.6rem);
    border-bottom: 1px solid var(--stp-outline-variant);
}

.stp-breadcrumb {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #737780;
}

.stp-breadcrumb a {
    color: #5b6472;
    text-decoration: none;
}

.stp-breadcrumb a:hover {
    color: var(--stp-primary-container);
    text-decoration: underline;
}

.stp-breadcrumb-sep {
    font-size: 0.7rem;
    opacity: 0.8;
}

.stp-breadcrumb-current {
    color: var(--stp-primary);
    font-weight: 600;
}

.stp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(1.5rem, 4vw, 2.75rem);
    align-items: center;
}

.stp-hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2.15rem, 4.2vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--stp-primary);
}

.stp-hero-subtitle {
    margin: 0 0 0.6rem;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 500;
    line-height: 1.45;
    color: #1e3a5f;
}

.stp-hero-meta {
    margin: 0;
    font-size: clamp(0.88rem, 1.2vw, 0.98rem);
    font-style: italic;
    line-height: 1.45;
    color: var(--stp-on-surface-variant);
}

/* Stitch hero media: 16 / 9 frame; photo fills crop (no letterbox or stroked edge) */
.stp-hero-visual {
    position: relative;
    margin: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: none;
    background: #111827;
    box-shadow: var(--stp-panel-shadow);
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: min(520px, 52vh);
}

.stp-hero-visual > .eald-slot-target {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: block;
    padding: 0;
}

.stp-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.stp-hero-visual .eald-slot-marker {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    right: auto;
    z-index: 1;
}

.stp-section {
    padding-block: clamp(2rem, 4.5vw, 3rem);
}

.stp-dissertation {
    background-color: var(--stp-surface);
}

.stp-dissertation-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.stp-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.23rem 0.55rem;
    border-radius: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: var(--stp-chip-bg);
    color: var(--stp-chip-fg);
}

.stp-inline-dissertation-title {
    margin: 0;
    flex: 1 1 min(340px, 100%);
    font-size: clamp(1rem, 1.5vw, 1.28rem);
    font-weight: 600;
    line-height: 1.38;
    color: var(--stp-on-background);
}

.stp-card {
    border-radius: 0.62rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    overflow: hidden;
    background: #ffffff;
}

.stp-abstract-heading {
    margin: 0;
    padding: 0.6rem clamp(1rem, 3vw, 1.35rem);
    text-align: center;
    font-size: clamp(1.15rem, 2vw, 1.42rem);
    font-weight: 600;
    color: var(--stp-on-background);
    background: rgba(247, 250, 255, 1);
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.stp-abstract-body {
    padding: clamp(1.05rem, 2vw, 1.35rem) clamp(1rem, 2.5vw, 1.4rem)
        clamp(1.05rem, 2vw, 1.25rem);
    font-size: clamp(0.9rem, 1.08vw, 1rem);
    line-height: 1.62;
    color: #274056;
}

.stp-abstract-body p {
    margin: 0 0 1rem;
}

.stp-abstract-body p:last-of-type {
    margin-bottom: 0;
}

.stp-abstract-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.stp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    min-height: 2.65rem;
    padding-inline: clamp(1.2rem, 3vw, 1.85rem);
    transition: transform 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

.stp-btn:active {
    transform: scale(0.98);
}

.stp-btn--primary {
    background: var(--stp-primary-container);
    color: #f0f6ff;
    border: 1px solid rgba(0, 41, 86, 0.35);
}

.stp-btn--primary:hover:not(:disabled) {
    background: #154a82;
}

.stp-btn--outline-navy {
    background: transparent;
    color: var(--stp-primary-container);
    border: 2px solid var(--stp-primary-container);
}

.stp-btn--outline-navy:hover {
    background: rgba(24, 63, 115, 0.08);
}

.stp-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.stp-pub-catalog {
    background-color: var(--stp-surface);
}

.stp-pub-search-wrap {
    margin-bottom: clamp(1.15rem, 3vw, 1.65rem);
    max-width: min(440px, 100%);
}

.stp-pub-search-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stp-on-surface-variant);
    margin-bottom: 0.4rem;
}

.stp-pub-search-input {
    width: 100%;
    padding: 0.55rem 0.85rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    font-size: 0.94rem;
    font-family: inherit;
    background: #ffffff;
    color: var(--stp-on-background);
}

.stp-pub-search-input:focus {
    outline: 2px solid rgba(24, 63, 115, 0.35);
    outline-offset: 1px;
}

.stp-pub-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr));
    gap: clamp(1.1rem, 2.8vw, 1.65rem);
    align-items: stretch;
}

.stp-pub-tile {
    min-width: 0;
}

.stp-pub-tile-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: min(340px, 100%);
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #ffffff;
    box-shadow: var(--stp-panel-shadow);
    overflow: hidden;
}

.stp-pub-tile-split {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: min(260px, 100%);
}

.stp-pub-tile-footer {
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
    border-top: none;
    background: #ffffff;
    padding: 0 clamp(1rem, 2.6vw, 1.35rem) clamp(1.08rem, 2.6vw, 1.42rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.stp-pub-tile-footer .stp-pub-tile-actions {
    margin-top: 0;
    width: 100%;
}

.stp-pub-tile-media {
    flex: 0 0 clamp(148px, 26vw, 248px);
    width: clamp(148px, 26vw, 248px);
    align-self: stretch;
    background: rgba(247, 250, 255, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.65rem, 2vw, 1.05rem);
    box-sizing: border-box;
}

.stp-pub-tile-media--duo {
    flex: 0 0 clamp(200px, 40vw, 360px);
    width: clamp(200px, 40vw, 360px);
    gap: clamp(0.35rem, 1.2vw, 0.65rem);
}

.stp-pub-tile-cover {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stp-pub-tile-cover .eald-slot-marker {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    right: auto;
    z-index: 1;
}

.stp-pub-tile-media img,
.stp-pub-tile-cover img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: min(400px, 62vh);
    object-fit: contain;
    display: block;
}

.stp-pub-slot-preview {
    margin-top: 1rem;
    padding: 0.85rem;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    border-radius: 0.5rem;
    background: rgba(247, 250, 255, 0.72);
}

.stp-pub-slot-preview-label {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5b6472;
}

.stp-pub-tile-body {
    flex: 1 1 min(260px, 100%);
    min-width: 0;
    padding: clamp(0.98rem, 2.2vw, 1.25rem) clamp(1rem, 2.6vw, 1.35rem)
        clamp(1.08rem, 2.6vw, 1.42rem);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.stp-pub-tile-body .stp-chip {
    align-self: flex-start;
}

.stp-pub-tile-title {
    margin: 0;
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    font-weight: 700;
    line-height: 1.32;
    color: var(--stp-primary);
}

.stp-pub-tile-subtitle {
    margin: 0;
    font-size: clamp(0.92rem, 1.22vw, 1.06rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.42;
    color: #274056;
}

.stp-pub-tile-meta {
    margin: 0;
    font-size: clamp(0.82rem, 1.06vw, 0.93rem);
    font-style: italic;
    color: var(--stp-on-surface-variant);
}

.stp-pub-tile-price {
    margin: 0;
    font-size: clamp(0.94rem, 1.22vw, 1.06rem);
    font-weight: 700;
    color: var(--stp-primary-container);
}

.stp-pub-tile-teaser {
    margin: 0;
    flex: 1 1 auto;
    font-size: clamp(0.88rem, 1.06vw, 0.96rem);
    line-height: 1.52;
    color: #37485c;
}

.stp-pub-tile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.42rem;
}

.stp-pub-tile-actions form {
    display: inline;
    margin: 0;
}

.stp-pub-tile-actions .stp-btn {
    flex: 0 0 auto;
}

.stp-pub-dialog {
    padding: 0;
    margin: auto;
    border: none;
    border-radius: 0.82rem;
    max-width: min(680px, 94vw);
    width: calc(100% - 2rem);
    max-height: calc(100% - 2rem);
    background: transparent;
    color: inherit;
}

.stp-pub-dialog::backdrop {
    background: rgba(17, 24, 41, 0.58);
}

.stp-pub-dialog-panel {
    background: #ffffff;
    color: var(--stp-on-background);
    border-radius: 0.82rem;
    border: 1px solid rgba(148, 163, 184, 0.42);
    box-shadow: var(--stp-panel-shadow);
    max-height: min(82vh, 880px);
    display: flex;
    flex-direction: column;
}

.stp-pub-dialog--with-pdf {
    max-width: min(960px, 98vw);
}

.stp-pub-dialog-panel--with-pdf {
    max-height: min(92vh, 940px);
}

.stp-pub-dialog-panel--with-pdf .stp-pub-dialog-body {
    flex: 0 1 auto;
    max-height: min(38vh, 320px);
}

.stp-pub-dialog-toolbar {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: clamp(0.9rem, 2.2vw, 1.2rem) clamp(1rem, 2.4vw, 1.35rem)
        0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    flex-shrink: 0;
}

.stp-pub-dialog-title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(1.06rem, 1.95vw, 1.42rem);
    font-weight: 700;
    line-height: 1.28;
    color: var(--stp-primary);
}

.stp-pub-dialog-dismiss {
    flex: 0 0 auto;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.35rem 0.92rem;
    cursor: pointer;
    border: 2px solid var(--stp-primary-container);
    color: var(--stp-primary-container);
    background: #ffffff;
}

.stp-pub-dialog-dismiss:hover {
    background: rgba(24, 63, 115, 0.08);
}

.stp-pub-dialog-chip-row {
    padding: 0.52rem clamp(1rem, 2.4vw, 1.35rem) 0;
    flex-shrink: 0;
}

.stp-pub-dialog-meta {
    margin: 0;
    padding: 0 clamp(1rem, 2.4vw, 1.35rem);
    font-size: clamp(0.82rem, 1vw, 0.93rem);
    font-style: italic;
    color: var(--stp-on-surface-variant);
}

.stp-pub-dialog-subtitle {
    margin: 0;
    padding: 0.35rem clamp(1rem, 2.4vw, 1.35rem) 0;
    font-size: clamp(0.95rem, 1.38vw, 1.08rem);
    font-style: italic;
    font-weight: 500;
    color: #274056;
}

.stp-pub-dialog-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(0.72rem, 2vw, 1.05rem) clamp(1rem, 2.4vw, 1.35rem)
        clamp(1.15rem, 2.8vw, 1.42rem);
    flex: 1 1 auto;
    min-height: 0;
}

.stp-pub-dialog-body.stp-abstract-body {
    padding-top: 0.5rem;
}

.stp-pub-dialog-h3 {
    margin: 0 0 0.72rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--stp-on-background);
}

.stp-pub-dialog-pdf-embed {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0.65rem clamp(1rem, 2.4vw, 1.35rem)
        clamp(0.95rem, 2.2vw, 1.15rem);
    border-top: 1px solid var(--stp-outline-variant);
}

.stp-pub-dialog-pdf-label {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--stp-on-background);
}

.stp-pub-dialog-pdf-frame {
    width: 100%;
    flex: 1 1 auto;
    min-height: min(420px, 50vh);
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 0.5rem;
    background: #f1f5f9;
}

.stp-pub-dialog-body.stp-abstract-body p:last-child {
    margin-bottom: 0;
}

.stp-pub-dialog-body.stp-abstract-body .stp-abstract-rich p {
    margin: 0 0 0.75em;
}

.stp-pub-dialog-body.stp-abstract-body .stp-abstract-rich p:last-child {
    margin-bottom: 0;
}

.stp-abstract-plain {
    margin: 0;
    white-space: pre-wrap;
}

.stp-btn--outline-white {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.94);
}

.stp-btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
}

.eald-publications-slider-section {
    position: relative;
    z-index: 0;
    width: min(1020px, 96vw);
    margin-inline: auto;
    margin-top: clamp(1.75rem, 4vw, 2.5rem);
    padding: clamp(1.35rem, 3vw, 1.75rem) clamp(1rem, 2.5vw, 1.35rem);
    background-color: #183f73;
    color: #f5f8ff;
    border-radius: 0.75rem;
    min-height: 320px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--stp-panel-shadow);
}

.eald-publications-slider-title {
    text-align: center;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: "Public Sans", "Segoe UI", system-ui, sans-serif;
}

.eald-publications-slider-rule {
    width: clamp(188px, 28vw, 235px);
    margin: 0.45rem auto 0.75rem;
    border-bottom: 1px solid rgba(242, 247, 255, 0.85);
}

.eald-publications-slide {
    display: none;
}

.eald-publications-slide.is-active {
    display: block;
}

.eald-publications-slide-quote {
    margin: 0;
    font-size: clamp(1rem, 2.1vw, 1.12rem);
    line-height: 1.52;
}

.eald-publications-slide-attribution {
    margin: 1.05rem 0 0;
    font-size: 0.95rem;
    font-style: italic;
}

.eald-publications-slide-readmore {
    margin-top: 0.85rem;
    display: inline-block;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    padding: 0.35rem 1.35rem;
    font-weight: 600;
    font-size: 0.86rem;
}

.eald-publications-slide-readmore:hover {
    background: #ffffff;
    color: var(--stp-primary-container);
}

.eald-publications-slider-dots {
    margin-top: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.eald-publications-slider-controls {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.eald-publications-slider-control-btn {
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    padding: 0.22rem 0.82rem;
    font-size: 0.82rem;
    min-width: 56px;
    cursor: pointer;
}

.eald-publications-slider-control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.eald-publications-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    padding: 0;
}

.eald-publications-dot.is-active {
    background: #ffffff;
}

/* Dark theme -------------------------------------------------------------- */
:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-publications {
    --stp-primary: #a9c7ff;
    --stp-primary-container: #284f88;
    --stp-on-background: #e6ecff;
    --stp-on-surface-variant: #a8afc2;
    --stp-surface: #0f172a;
    --stp-surface-container-low: #1a2336;
    --stp-outline-variant: rgba(148, 163, 184, 0.32);
    --stp-chip-bg: rgba(169, 199, 255, 0.12);
    --stp-chip-fg: #b8cffa;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-hero-subtitle {
    color: var(--stp-on-background);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-breadcrumb {
    color: rgba(226, 232, 240, 0.7);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-breadcrumb a {
    color: rgba(226, 232, 240, 0.85);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-hero {
    background: linear-gradient(
        to bottom right,
        rgba(39, 50, 75, 0.95),
        rgba(22, 30, 45, 0.98)
    );
    border-bottom-color: rgba(148, 163, 184, 0.25);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-hero-visual {
    background: #0b1120;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-card {
    background: rgba(15, 27, 45, 0.85);
    border-color: rgba(148, 163, 184, 0.3);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-abstract-heading {
    background: rgba(25, 35, 55, 1);
    color: var(--stp-on-background);
    border-bottom-color: rgba(148, 163, 184, 0.28);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-abstract-body {
    color: #e2e8f0;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-abstract-body strong,
:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-abstract-body em {
    color: #fafafa;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-pub-tile-inner,
:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-pub-tile-media,
:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-pub-tile-footer {
    background: rgba(15, 27, 45, 0.92);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-pub-tile-inner {
    border-color: rgba(148, 163, 184, 0.28);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-pub-search-input {
    background: rgba(22, 30, 45, 0.95);
    border-color: rgba(148, 163, 184, 0.35);
    color: var(--stp-on-background);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-pub-tile-teaser {
    color: #cbd5e1;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-pub-tile-subtitle {
    color: #dbe4f5;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-pub-dialog-panel {
    background: rgba(15, 27, 45, 0.98);
    border-color: rgba(148, 163, 184, 0.32);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-pub-dialog-toolbar {
    border-bottom-color: rgba(148, 163, 184, 0.28);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-pub-dialog-dismiss {
    background: rgba(15, 27, 45, 0.95);
    color: var(--stp-on-background);
    border-color: rgba(169, 199, 255, 0.55);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-pub-dialog-subtitle {
    color: #cbd5e1;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-pub-dialog-h3 {
    color: var(--stp-on-background);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-pub-dialog-pdf-embed {
    border-top-color: rgba(148, 163, 184, 0.28);
}

:is([data-theme="dark"], [data-bs-theme="dark"]) .stp-pub-dialog-pdf-frame {
    background: rgba(15, 27, 45, 0.55);
    border-color: rgba(148, 163, 184, 0.32);
}

body.eald-publications-route main.container-fluid.theme-page.my-4 {
    background-color: #f9f9ff;
}

:is([data-theme="dark"], [data-bs-theme="dark"]) body.eald-publications-route main.container-fluid.theme-page.my-4 {
    background-color: #0f172a;
}

@media (max-width: 760px) {
    .stp-hero-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .stp-pub-tile-inner {
        min-height: 0;
    }

    .stp-pub-tile-split {
        flex-direction: column;
        min-height: 0;
    }

    .stp-pub-tile-media {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        align-self: stretch;
        padding: clamp(0.85rem, 3vw, 1.1rem) clamp(0.85rem, 3vw, 1.1rem) 0.35rem;
    }

    .stp-pub-tile-media img,
    .stp-pub-tile-cover img {
        max-height: min(300px, 42vh);
        margin-inline: auto;
    }

    .eald-publications-slider-section {
        border-radius: 0.5rem;
    }
}
