/* PDRL – Publication page v3. Builds on pdrl-2026 theme variables and classes. */

/* ---------- Title band (all single posts) ---------- */
.pdrlp-post .pdrl-post-header > .alignwide { position: relative; }
.pdrlp-post .pdrl-post-header .pdrlp-breadcrumb { order: -1; font-size: var(--wp--preset--font-size--small, 0.85rem); margin: 0 0 0.75rem; width: 100%; }
.pdrlp-post .pdrl-post-header .pdrlp-breadcrumb a { text-decoration: none; }
.pdrlp-post .pdrl-post-header .pdrlp-breadcrumb a:hover { text-decoration: underline; }
.pdrlp-post .pdrl-post-header .pdrlp-wave { position: absolute; right: 0; top: 0; pointer-events: none; }
@media (max-width: 900px) { .pdrlp-post .pdrl-post-header .pdrlp-wave { display: none; } }

/* ---------- Title band (publications) ---------- */
.pdrlp-pub .pdrl-post-header .taxonomy-category,
.pdrlp-pub .pdrl-post-header .wp-block-post-date { display: none; }
.pdrlp-pub .pdrl-post-header .pdrlp-eyebrow { color: var(--wp--preset--color--sol-ljus, #f7b781); margin: 0 0 0.5rem; }
.pdrlp-pub .pdrl-post-header h1 { max-width: 28ch; }
.pdrlp-authors { margin: 1.1rem 0 0; max-width: 60rem; font-size: 1.05rem; line-height: 1.55; color: #fff; }
.pdrlp-authors__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #cfe3e6; margin-right: 0.5rem; }
.pdrlp-author--pdrl { font-weight: 700; }
.pdrlp-orcid-chip { display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.15rem 0.4rem; border: 1px solid var(--wp--preset--color--hav-ljus, #7bbcc2); border-radius: 4px; color: #fff; text-decoration: none; vertical-align: middle; }
.pdrlp-orcid-chip:hover { background: rgba(255, 255, 255, 0.12); }
.pdrlp-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.pdrlp-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--hav-ljus, #7bbcc2); color: #fff; }
.pdrlp-oa--yes { background: var(--wp--preset--color--sol-ljus, #f7b781); border-color: var(--wp--preset--color--sol-ljus, #f7b781); color: var(--wp--preset--color--hav, #055064); font-weight: 700; }
.pdrlp-oa--no { border-color: #6f9aa6; color: #b5cbd0; }
.pdrlp-oa--no .pdrlp-oa__text { text-decoration: line-through; }

/* ---------- Featured image ---------- */
.pdrlp-pub .pdrl-post-body > .wp-block-post-featured-image { margin: 0 0 1.75rem; }
.pdrlp-pub .pdrl-post-body > .wp-block-post-featured-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; background: var(--wp--preset--color--beige, #efe6e0); }
.pdrlp-figcaption { margin-top: 0.6rem; font-size: 0.85rem; line-height: 1.5; color: var(--wp--preset--color--muted, #6b6b6b); }

/* ---------- Access card ---------- */
.pdrlp-access { margin: 0 0 2rem; }
.pdrlp-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pdrlp-actions + .pdrlp-facts { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--wp--preset--color--beige, #efe6e0); }
.pdrlp-btn { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 0.6rem 1.1rem; border-radius: 8px; border: 1px solid #ddd5cf; background: #fff; color: var(--wp--preset--color--svart, #333); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.pdrlp-btn:hover { border-color: var(--wp--preset--color--hav, #055064); }
.pdrlp-btn--primary { background: var(--wp--preset--color--hav, #055064); border-color: var(--wp--preset--color--hav, #055064); color: #fff; }
.pdrlp-btn--primary:hover { background: #0b5d73; color: #fff; }
.pdrlp-facts dd { overflow-wrap: anywhere; }

/* ---------- Sections ---------- */
.pdrlp-pub .entry-content > .pdrlp-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #ddd5cf; }
.pdrlp-pub .entry-content > .pdrlp-access + .pdrlp-section { margin-top: 0; padding-top: 0; border-top: 0; }
.pdrlp-pub .pdrlp-section > h3:first-child,
.pdrlp-pub .pdrlp-cite__head h3 { margin: 0 0 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--hav, #055064); }

/* ---------- Cite box ---------- */
.pdrlp-cite__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.pdrlp-pub .pdrlp-cite__head h3 { margin: 0; }
.pdrlp-cite__tabs { display: flex; gap: 0.4rem; }
.pdrlp-cite__tab { min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid #ddd5cf; background: #fff; color: var(--wp--preset--color--svart, #333); font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.pdrlp-cite__tab[aria-pressed="true"] { background: var(--wp--preset--color--hav, #055064); border-color: var(--wp--preset--color--hav, #055064); color: #fff; }
.pdrlp-cite__box { background: var(--wp--preset--color--beige, #efe6e0); border-radius: 12px; padding: 1.1rem 1.25rem; }
.pdrlp-cite__text { margin: 0; font-size: 0.95rem; line-height: 1.6; overflow-wrap: anywhere; }
.pdrlp-cite__text p { margin: 0; }
pre.pdrlp-cite__text { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.8rem; white-space: pre-wrap; background: none; padding: 0; border: 0; }
.pdrlp-cite__copy { margin-top: 0.85rem; min-height: 44px; padding: 0 1rem; border-radius: 8px; border: 1px solid var(--wp--preset--color--hav, #055064); background: #fff; color: var(--wp--preset--color--hav, #055064); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }

/* ---------- Related publications ---------- */
.pdrlp-related__list { list-style: none; margin: 0; padding: 0.25rem 1.4rem; background: #fff; border: 1px solid #e7e2de; border-radius: 12px; }
.pdrlp-related__list li + li { border-top: 1px solid var(--wp--preset--color--beige, #efe6e0); }
.pdrlp-related__list a { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.9rem; padding: 1rem 0; color: var(--wp--preset--color--svart, #333); text-decoration: none; word-break: normal; }
.pdrlp-related__year { font-size: 1.1rem; font-weight: 700; color: var(--wp--preset--color--hav, #055064); }
.pdrlp-related__body { display: flex; flex-direction: column; gap: 0.25rem; }
.pdrlp-related__title { font-weight: 700; line-height: 1.35; }
.pdrlp-related__meta { font-size: 0.85rem; }
.pdrlp-related__list a:hover .pdrlp-related__title { text-decoration: underline; }

/* ---------- Right column ---------- */
.pdrlp-pub .pdrl-aside > .pdrlp-team,
.pdrlp-pub .pdrl-aside > .pdrlp-toc { margin-bottom: 1.25rem; }
.pdrlp-pub .pdrl-aside > .is-style-card-dark:has(.wp-block-query) { display: none; }
.pdrlp-initials { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-width: 48px; min-height: 48px; border-radius: 10px; background: var(--wp--preset--color--hav-ljus, #7bbcc2); color: var(--wp--preset--color--hav, #055064); font-weight: 700; }
.pdrlp-orcid { font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.pdrlp-toc ol { list-style: none; margin: 0.25rem 0 0; padding: 0; }
.pdrlp-toc li a { display: block; padding: 0.3rem 0; text-decoration: none; }
.pdrlp-toc li a:hover { text-decoration: underline; }
