/*
Theme Name: Elena Jordi
Theme URI: https://elenajordi.cat
Author: Equip projecte Elena Jordi
Description: Tema editorial a mida, fase de desenvolupament. No apte encara per publicar.
Version: 0.2.0
Requires PHP: 8.0
Text Domain: elena-jordi
*/
:root{--ink:#241b1b;--wine:#6d2837;--gold:#bb9565;--paper:#e7dccb;--ivory:#f8f4eb;--muted:#736765;--soft:#f0e8dd;--dark:#37252b;--display:"Cormorant Garamond",Georgia,serif;--body:"DM Sans",Arial,sans-serif}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}body{margin:0;background:var(--ivory);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.65}
a{color:inherit}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
.screen-reader-text{position:absolute!important;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{position:fixed!important;z-index:999;left:12px;top:12px;clip:auto;width:auto;height:auto;padding:14px 20px;background:white;color:var(--ink)}
.section-inner{width:min(calc(100% - 48px),1280px);margin-inline:auto}
.site-header{background:var(--ink);color:var(--ivory)}
.site-header__inner{min-height:108px;width:min(calc(100% - 48px),1280px);margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid #675052}
.brand{font-family:var(--display);font-size:clamp(2rem,3.3vw,3.15rem);line-height:1;text-decoration:none;font-weight:600;white-space:nowrap}
.primary-nav ul,.mobile-menu ul{display:flex;align-items:center;gap:clamp(8px,1vw,16px);list-style:none;padding:0;margin:0}
.primary-nav a{font-size:clamp(.63rem,.79vw,.78rem);font-weight:600;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap;text-decoration:none}
.primary-nav a:hover,.primary-nav a[aria-current=page]{color:var(--gold)}
.mobile-menu{display:none}
.eyebrow{color:var(--gold);font-size:.87rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase}
.eyebrow--wine{color:var(--wine)}.eyebrow--gold{color:var(--gold)}
h1,h2,h3{font-family:var(--display);line-height:1.04;font-weight:600;margin:0}
h2{font-size:clamp(3.3rem,6.9vw,6.7rem);letter-spacing:-.025em}
p{margin-block:0 1.5rem}
.button{display:inline-flex;align-items:center;justify-content:center;gap:1.25rem;padding:19px 26px;font-weight:700;letter-spacing:.035em;text-decoration:none;background:var(--wine);color:var(--ivory);min-height:58px;transition:filter .15s}
.button:hover{filter:brightness(1.15)}
.button--light{background:var(--ivory);color:var(--ink)}
.text-link{font-size:.91rem;display:inline-block;color:var(--wine);font-weight:700;text-transform:uppercase;letter-spacing:.06em;text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:10px}
.text-link:hover{color:var(--ink)}.text-link--light{color:var(--ivory)}
.home-hero{background:var(--ink);color:var(--ivory)}
.home-hero__grid{display:grid;grid-template-columns:1.2fr .8fr;gap:6vw;align-items:center;padding-block:86px 85px}
.home-hero__grid--text-only{grid-template-columns:minmax(0,1fr)}
.home-hero h1{font-size:clamp(4.3rem,7.8vw,8.7rem);letter-spacing:-.035em;margin:29px 0 40px}
.home-hero h1 em,.home-discover h2 em{font-weight:500}
.home-hero__lead{font-size:clamp(1.13rem,1.75vw,1.45rem);max-width:660px;line-height:1.55;margin-bottom:41px;color:var(--paper)}
.home-hero__bottom{display:flex;justify-content:space-between;gap:30px;min-height:88px;align-items:center;border-top:1px solid #675052;text-transform:uppercase;letter-spacing:.07em;font-size:.76rem;color:var(--gold)}
.section{padding-block:135px}
.section--ivory{background:var(--ivory)}.section--paper{background:var(--paper)}.section--wine{background:var(--wine);color:var(--ivory)}.section--ink{background:var(--ink);color:var(--ivory)}
.editorial-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);align-items:center;gap:clamp(45px,7vw,126px)}
.editorial-split--reverse{grid-template-columns:minmax(0,.9fr) minmax(0,1fr)}
.editorial-split--text-only{grid-template-columns:minmax(0,1fr)}
.editorial-split h2{margin:24px 0 42px}
.editorial-split p:not(.eyebrow):not(.archival-placeholder__label):not(.archival-placeholder__title):not(.archival-placeholder__note){font-size:clamp(1.05rem,1.4vw,1.23rem);max-width:640px}
.editorial-split .text-link{margin-top:23px}
.archival-placeholder{background:var(--paper);border:17px solid var(--ivory);padding:29px;min-height:550px;display:flex;flex-direction:column;color:var(--ink)}
.archival-placeholder--hero,.archival-placeholder--dark{background:var(--dark);border-color:#453038;color:var(--ivory)}
.archival-placeholder--hero{min-height:660px}
.archival-placeholder__label{font-size:.75rem!important;font-weight:700;letter-spacing:.08em;color:var(--wine);border-bottom:1px solid var(--gold);padding-bottom:23px}
.archival-placeholder--dark .archival-placeholder__label,.archival-placeholder--hero .archival-placeholder__label{color:var(--gold)}
.archival-placeholder__title{font-family:var(--display);font-size:clamp(3.2rem,5.1vw,5.3rem)!important;line-height:1.05!important;font-weight:500;margin:auto 0!important}
.archival-placeholder__note{font-size:.86rem!important;color:var(--muted);margin:0!important}
.archival-placeholder--hero .archival-placeholder__note,.archival-placeholder--dark .archival-placeholder__note{color:var(--paper)}
.home-discover{text-align:center}
.home-discover h2{margin:30px 0}
.home-discover p:not(.eyebrow){max-width:670px;margin-inline:auto;font-size:1.19rem;color:var(--paper)}
.home-discover__actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:35px;margin-top:40px}
.site-footer{background:var(--ink);color:var(--ivory);border-top:1px solid #655057;padding-block:70px 34px}
.site-footer__eyebrow{color:var(--gold);letter-spacing:.09em;font-weight:700;text-transform:uppercase;font-size:.85rem}
.site-footer__inner{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;padding-block:22px 44px}
.site-footer__brand{font-family:var(--display);font-size:4.3rem;text-decoration:none;line-height:1}
.site-footer__inner p{margin:0;font-size:.9rem;color:var(--paper)}
.site-footer__note{font-size:.77rem;color:var(--paper);margin:0;border-top:1px solid #655057;padding-top:18px}
.article-content{max-width:850px;margin:70px auto;padding:0 24px;min-height:55vh}
.article-content h1{font-size:clamp(3.3rem,6vw,5rem);margin:0 0 25px}
.article-content h2{font-size:2.5rem}.article-content p{font-size:1.1rem}
@media(max-width:1020px){.primary-nav{display:none}.mobile-menu{display:block;position:relative}.mobile-menu summary{cursor:pointer;display:flex;align-items:center;gap:15px;list-style:none;text-transform:uppercase;font-weight:700;font-size:.87rem}.mobile-menu summary::-webkit-details-marker{display:none}.mobile-menu summary span{color:var(--gold);font-size:1.3rem}.mobile-menu nav{position:absolute;z-index:5;right:0;top:calc(100% + 20px);width:min(340px,calc(100vw - 48px));padding:24px;background:var(--dark);border:1px solid #655057}.mobile-menu ul{flex-direction:column;align-items:stretch;gap:0}.mobile-menu li a{display:block;padding:11px 0;text-transform:uppercase;font-size:.86rem;text-decoration:none}.home-hero__grid{gap:34px}.editorial-split{gap:43px}.section{padding-block:90px}}
@media(max-width:680px){.section-inner,.site-header__inner{width:calc(100% - 48px)}.site-header__inner{min-height:85px}.home-hero__grid,.editorial-split,.editorial-split--reverse{grid-template-columns:1fr}.home-hero__grid{padding-block:55px}.home-hero h1{font-size:clamp(4.5rem,16vw,6.6rem)}.home-hero__lead{font-size:1.12rem}.home-hero__bottom{font-size:.65rem;min-height:70px}.section{padding-block:72px}.editorial-split h2{font-size:clamp(3.6rem,13vw,5.5rem)}.archival-placeholder,.archival-placeholder--hero{min-height:405px;border-width:14px;padding:21px}.archival-placeholder__title{font-size:3.6rem!important}.site-footer__inner{display:block}.site-footer__brand{font-size:3.6rem}.site-footer__inner p{margin-top:20px}.home-discover h2{font-size:clamp(3.8rem,13vw,5.6rem)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button{transition:none}}


/* V0.3 · Plantilles interiors i revista Històries */
.interior-hero{padding:110px 0 125px;background:var(--ivory)}
.interior-hero--paper{background:var(--paper)}
.interior-hero--dark{background:var(--ink);color:var(--ivory)}
.interior-hero .eyebrow{margin-bottom:38px;color:var(--wine)}
.interior-hero--dark .eyebrow{color:var(--gold)}
.interior-hero h1{font-size:clamp(4.4rem,9vw,9.3rem);line-height:.98;letter-spacing:-.035em;max-width:1120px}
.interior-hero__subtitle{font-family:var(--display);font-size:clamp(2.1rem,4vw,4.7rem);line-height:1.12;max-width:900px;margin:40px 0 0;color:var(--wine)}
.interior-hero--dark .interior-hero__subtitle{color:var(--paper)}
.editorial-page__body{padding-block:100px 85px;max-width:1000px}
.entry-content{font-size:1.15rem;line-height:1.82}
.entry-content > p,.entry-content > ul,.entry-content > ol,.entry-content > blockquote{max-width:800px;margin-inline:auto}
.entry-content h2,.entry-content h3{max-width:850px;margin:75px auto 30px}
.entry-content h2{font-size:clamp(2.7rem,5vw,5.1rem)}
.entry-content h3{font-size:clamp(2rem,3vw,3.25rem)}
.entry-content figure{margin:65px auto}
.entry-content img{display:block;max-width:100%;height:auto}
.entry-content figcaption,.editorial-page__cover figcaption,.story-cover figcaption{font-size:.81rem;line-height:1.5;color:var(--muted);margin-top:13px}
.editorial-page__cover{margin:0 auto 75px;max-width:1120px}
.editorial-page__cover img{width:100%;height:auto;display:block}
.editorial-page__return{padding:0 0 100px}
.story-hero{padding:100px 0 115px;background:var(--ink);color:var(--ivory)}
.story-hero .eyebrow{margin-bottom:38px}
.story-hero h1{max-width:1160px;font-size:clamp(4rem,8.5vw,9rem)}
.story-hero__category{font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--gold);font-size:.78rem}
.story-hero__summary{max-width:850px;font-size:clamp(1.2rem,1.8vw,1.55rem);line-height:1.55;color:var(--paper);margin-top:40px}
.story-hero__meta{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:var(--gold);margin:75px 0 0}
.story-cover{margin-block:70px 50px}.story-cover img{max-width:100%;width:100%;height:auto}
.story-body{max-width:980px;margin:85px auto 140px;padding-inline:24px}
.story-end{padding:90px 0;background:var(--paper)}
.stories-index__content{padding-block:95px 140px}
.stories-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.stories-grid--featured{grid-template-columns:1fr;margin-bottom:32px}
.story-card{background:var(--paper);display:flex;flex-direction:column;min-width:0}
.story-card--featured{display:grid;grid-template-columns:1fr 1fr}
.story-card--featured .story-card__media{grid-column:2;grid-row:1;aspect-ratio:auto;min-height:420px}
.story-card--featured .story-card__copy{grid-column:1;grid-row:1;justify-content:center;padding:clamp(28px,5vw,72px)}
.stories-grid--featured .story-card--featured h2{font-size:clamp(2.5rem,5vw,5rem)}
.story-card__media{display:block;aspect-ratio:1/.95;overflow:hidden;background:var(--soft)}
.story-card__media img{display:block;width:100%;height:100%;object-fit:cover}
.story-card__fallback{height:100%;display:grid;place-items:center;text-align:center;padding:35px;color:var(--wine);font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em}
.story-card__copy{padding:30px;display:flex;flex-direction:column;flex:1}
.story-card__copy .eyebrow{font-size:.72rem}
.story-card h2{font-size:clamp(2.2rem,3.4vw,3.4rem);line-height:1.03;margin:10px 0 23px}
.story-card h2 a{text-decoration:none}.story-card h2 a:hover{text-decoration:underline}
.story-card__copy p:not(.eyebrow){font-size:1rem}
.story-card__copy .text-link{align-self:flex-start;margin-top:auto}
.stories-index__empty{padding:90px 0}.stories-index__empty h2{font-size:clamp(2.6rem,5vw,5rem)}
.navigation.pagination{margin-top:70px}
.page-numbers{display:inline-block;margin-right:6px;padding:6px 13px}
.page-numbers.current{background:var(--wine);color:var(--ivory)}
@media(max-width:1020px){.stories-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.interior-hero{padding:80px 0 100px}.editorial-page__body{padding-block:85px}}
@media(max-width:680px){.interior-hero{padding:70px 0 85px}.interior-hero h1,.story-hero h1{font-size:clamp(4.1rem,16vw,6rem);overflow-wrap:break-word}.interior-hero__subtitle{font-size:2.6rem;margin-top:25px}.editorial-page__body{padding-block:65px}.entry-content{font-size:1.05rem}.entry-content h2{margin-top:45px}.story-hero{padding:75px 0 85px}.story-hero__meta{margin-top:45px}.story-body{margin-block:65px 100px}.stories-index__content{padding-block:65px 90px}.stories-grid{grid-template-columns:1fr}.story-card__copy{padding:24px}.story-card h2{font-size:2.7rem}.story-card--featured{grid-template-columns:1fr}.story-card--featured .story-card__media{grid-column:1;grid-row:1;aspect-ratio:1/.8;min-height:0}.story-card--featured .story-card__copy{grid-column:1;grid-row:2}}


/* V0.4 · Catàleg documental i contacte */
.archive-catalog{max-width:1280px;margin:0 auto;padding:20px 0 80px}
.archive-catalog__filter{display:flex;flex-wrap:wrap;gap:15px;align-items:center;margin-bottom:45px}
.archive-catalog__filter label{font-weight:700}
.archive-catalog__filter select,.archive-catalog__filter button{font:inherit;min-height:48px;padding:9px 17px;border:1px solid var(--muted);background:var(--ivory);color:var(--ink)}
.archive-catalog__filter button{background:var(--wine);color:var(--ivory);border:0;cursor:pointer}
.archive-catalog__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}
.archive-catalog__card{background:var(--paper);padding:35px;min-width:0}
.archive-catalog__card h2{font-size:clamp(2rem,3vw,3.2rem);margin:15px 0 23px;overflow-wrap:break-word}
.archive-catalog__card p{font-size:1rem}.archive-catalog__card a{color:var(--wine);font-weight:700}
.ej-contact{max-width:850px;background:var(--paper);padding:clamp(20px,4vw,55px)}
.ej-contact p{max-width:none}.ej-contact label{display:block;font-size:.86rem;font-weight:700;line-height:1.5}
.ej-contact input:not([type=checkbox]),.ej-contact select,.ej-contact textarea{display:block;width:100%;min-width:0;margin-top:12px;padding:16px;border:1px solid #bfb2a3;background:#fff;color:var(--ink);font:inherit;font-size:1rem;border-radius:0}
.ej-contact textarea{resize:vertical}.ej-contact__privacy label{display:flex;gap:13px;align-items:flex-start}
.ej-contact__privacy input{margin-top:5px;flex:0 0 auto}.ej-contact__honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.ej-contact__status{max-width:850px;padding:18px;background:var(--soft);font-weight:700}
@media(max-width:850px){.archive-catalog__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.archive-catalog__grid{grid-template-columns:1fr}.archive-catalog__card{padding:25px}.ej-contact{padding:24px}}

.archive-catalog__filter input[type=search]{font:inherit;min-height:48px;padding:9px 14px;max-width:100%;border:1px solid var(--muted);background:white;color:var(--ink)}
.archive-catalog__pagination{display:flex;flex-wrap:wrap;gap:9px;margin-top:45px}
.archive-catalog__pagination a{padding:7px 13px;background:var(--paper);text-decoration:none}
.archive-catalog__pagination a[aria-current=page]{background:var(--wine);color:var(--ivory)}


/* V0.5 · Plantilles narratives per Vida, Teatre, Cinema i Recerca */
.ej-narrative__hero{background:var(--ink);color:var(--ivory);padding:95px 0 100px}
.ej-narrative__hero-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:clamp(35px,6vw,110px);align-items:center}
.ej-narrative__hero-grid--text-only{grid-template-columns:minmax(0,1fr)}
.ej-narrative__hero h1{font-size:clamp(4.5rem,9vw,9rem);line-height:.98;letter-spacing:-.035em;margin:35px 0}
.ej-narrative__subtitle{max-width:750px;font-family:var(--display);font-size:clamp(2rem,3.25vw,3.7rem);line-height:1.1;color:var(--paper)}
.ej-photo-slot{min-height:540px;padding:35px;background:var(--paper);border:14px solid var(--ivory);color:var(--wine);display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:30px}
.ej-photo-slot--hero{background:var(--dark);color:var(--ivory);border-color:#48333a;min-height:610px}
.ej-photo-slot__small{display:block;width:100%;font-size:.75rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase;padding-bottom:22px;border-bottom:1px solid var(--gold)}
.ej-photo-slot__label{display:block;align-self:stretch;font-family:var(--display);font-size:clamp(3.1rem,5vw,5.4rem);line-height:1.03;font-weight:500;overflow-wrap:break-word}
.ej-photo-slot__description{display:block;font-size:.86rem;line-height:1.6;color:var(--muted)}
.ej-photo-slot--hero .ej-photo-slot__description{color:var(--paper)}
.ej-narrative__introduction{padding:135px 0;background:var(--ivory)}
.ej-narrative__intro-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(45px,7vw,130px)}
.ej-narrative__introduction h2{font-size:clamp(3.5rem,6vw,6.3rem);margin-top:28px}
.ej-narrative__intro-text>p{font-size:clamp(1.2rem,1.6vw,1.45rem);line-height:1.75}
.ej-narrative__editable{margin-top:28px}
.ej-narrative__editable:empty{display:none}
.ej-narrative__chapter{padding:120px 0;background:var(--ivory)}
.ej-narrative__chapter--paper{background:var(--paper)}
.ej-narrative__chapter-grid{display:grid;grid-template-columns:1fr .9fr;gap:clamp(40px,7vw,130px);align-items:center}
.ej-narrative__chapter-grid--text-only{grid-template-columns:minmax(0,1fr)}
.ej-narrative__chapter--paper .ej-narrative__chapter-content{order:2}
.ej-narrative__chapter--paper .ej-photo-slot{order:1}
.ej-narrative__chapter h2{font-size:clamp(3.7rem,6vw,6.2rem);margin:30px 0 35px}
.ej-narrative__chapter-content>p:not(.eyebrow){font-size:1.19rem;max-width:580px;line-height:1.8}
.ej-editorial-status{font-size:.77rem!important;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.045em;padding-top:22px;border-top:1px solid #d4c5b4;margin-top:28px}
.ej-narrative__footer{background:var(--ink);color:var(--ivory);padding:85px 0}
.ej-narrative__footer .eyebrow{margin-bottom:24px}
.ej-narrative--cinema .ej-narrative__hero{background:var(--wine)}
.ej-narrative--teatre .ej-narrative__hero{background:var(--dark)}
.ej-narrative--recerca .ej-narrative__hero{background:var(--ink)}
@media(max-width:900px){.ej-narrative__hero-grid,.ej-narrative__intro-grid,.ej-narrative__chapter-grid{grid-template-columns:1fr;gap:52px}.ej-photo-slot--additional{grid-column:auto}.ej-narrative__hero{padding:65px 0}.ej-narrative__hero h1{font-size:clamp(5rem,11vw,7rem)}.ej-narrative__introduction,.ej-narrative__chapter{padding:85px 0}.ej-narrative__chapter--paper .ej-narrative__chapter-content,.ej-narrative__chapter--paper .ej-photo-slot{order:initial}.ej-photo-slot--hero{min-height:450px}}
@media(max-width:520px){.ej-narrative__hero{padding:55px 0}.ej-narrative__hero h1{font-size:clamp(4rem,17vw,5.5rem)}.ej-narrative__subtitle{font-size:2.3rem}.ej-narrative__introduction,.ej-narrative__chapter{padding:65px 0}.ej-narrative__introduction h2,.ej-narrative__chapter h2{font-size:clamp(3.5rem,13vw,4.8rem)}.ej-photo-slot,.ej-photo-slot--hero{min-height:390px;border-width:10px;padding:22px}.ej-photo-slot__label{font-size:3.6rem}}

/* Històries · navegació temàtica i lectures relacionades */
.stories-topics{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 52px;align-items:center}
.stories-topics a{display:inline-flex;align-items:center;min-height:44px;padding:8px 18px;border:1px solid var(--wine);font-size:.78rem;letter-spacing:.04em;text-transform:uppercase;font-weight:700;text-decoration:none}
.stories-topics a:hover,.stories-topics a[aria-current=page]{background:var(--wine);color:var(--ivory)}
.story-related{background:var(--soft);padding:100px 0}
.story-related h2{font-size:clamp(3.4rem,5.5vw,6rem);margin:22px 0 50px}
.story-related .story-card h3{font-family:var(--display);font-size:clamp(2rem,3vw,3rem);line-height:1.05;margin:10px 0 18px}
.story-related .story-card h3 a{text-decoration:none}
.story-related .story-card h3 a:hover{text-decoration:underline}
@media(max-width:680px){.stories-topics{gap:9px;margin-bottom:35px}.stories-topics a{font-size:.73rem;padding:7px 12px}.story-related{padding:65px 0}.story-related h2{font-size:3.5rem}}

/* Controls de seguretat i accessibilitat del formulari */
.ej-contact__warning{display:block;margin-top:12px;color:var(--wine);font-size:.86rem;font-weight:700}
.ej-contact button[disabled]{cursor:not-allowed;opacity:.55;filter:grayscale(.5)}

/* Fitxa documental pública V0.6 */
.ej-document-detail{margin:45px auto 90px;max-width:980px;padding:clamp(24px,5vw,65px);background:var(--paper)}
.ej-document-detail h2{font-size:clamp(3.2rem,7vw,6.3rem);margin:25px 0 32px;overflow-wrap:anywhere}
.ej-document-detail__lead{font-size:clamp(1.15rem,2vw,1.5rem);max-width:790px}
.ej-document-detail__facts{margin:46px 0;display:grid;gap:0;border-top:1px solid #c6b7a4}
.ej-document-detail__facts>div{display:grid;grid-template-columns:minmax(140px,.34fr) 1fr;gap:20px;padding:19px 0;border-bottom:1px solid #c6b7a4}
.ej-document-detail__facts dt{font-size:.84rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--wine)}
.ej-document-detail__facts dd{margin:0;overflow-wrap:anywhere}
.ej-document-detail__notice{font-size:.86rem;border-top:1px solid #c6b7a4;padding-top:18px;color:var(--muted)}
@media(max-width:600px){.ej-document-detail__facts>div{grid-template-columns:1fr;gap:3px}}

/* Fotografies editorials verificades: original preservat a la mediateca WP. */
.ej-editorial-image{position:relative;overflow:hidden;margin:0;padding:0!important;display:block}
.ej-editorial-image__img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.archival-placeholder.ej-editorial-image{min-height:405px}
.archival-placeholder--hero.ej-editorial-image{min-height:660px}
.ej-photo-slot.ej-editorial-image{min-height:540px}
.ej-photo-slot--hero.ej-editorial-image{min-height:610px}
.ej-photo-slot--hero.ej-editorial-image .ej-editorial-image__img{height:auto;object-fit:contain}
.ej-photo-slot--additional{grid-column:2}
.ej-editorial-image figcaption{position:absolute;right:0;bottom:0;left:0;padding:12px 18px;margin:0;font-family:var(--body);font-size:.75rem;line-height:1.45;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.78));text-align:left}
@media(max-width:900px){.ej-photo-slot--hero.ej-editorial-image{min-height:450px}}
@media(max-width:680px){.archival-placeholder.ej-editorial-image,.archival-placeholder--hero.ej-editorial-image{min-height:405px}}
@media(max-width:520px){.ej-photo-slot.ej-editorial-image,.ej-photo-slot--hero.ej-editorial-image{min-height:390px}}


/* El Teatre: galeria compacta de repertori. */
.editorial-page--el-teatre .ej-teatre-gallery{max-width:360px;width:100%;margin:28px auto 42px}
.editorial-page--el-teatre .ej-teatre-gallery img{width:100%;height:auto}
.editorial-page--el-teatre .ej-teatre-gallery figcaption{font-size:.81rem;line-height:1.5;color:var(--muted);margin-top:13px}
.editorial-page--el-teatre .editorial-page__cover{max-width:860px}


/* Composició específica d’El Teatre. No afecta cap altra pàgina. */
.editorial-page--el-teatre .editorial-page__body { box-sizing:border-box; max-width:1000px; text-align:left; }
.editorial-page--el-teatre .entry-content > p,.editorial-page--el-teatre .entry-content > ul,.editorial-page--el-teatre .entry-content > ol,.editorial-page--el-teatre .entry-content > blockquote { max-width:740px; margin-left:0; margin-right:0; text-align:left; }
.editorial-page--el-teatre .entry-content h2,.editorial-page--el-teatre .entry-content h3 { max-width:860px; margin-left:0; margin-right:0; text-align:left; }
.editorial-page--el-teatre .editorial-page__cover { max-width:860px; margin-left:0; margin-right:0; text-align:left; }
.editorial-page--el-teatre .ej-teatre-gallery { max-width:360px; margin-left:0 !important; margin-right:0 !important; text-align:left; }
.editorial-page--el-teatre .entry-content figcaption,.editorial-page--el-teatre .editorial-page__cover figcaption { text-align:left; }
@media (max-width:680px) { .editorial-page--el-teatre .editorial-page__body { width:calc(100% - 48px); max-width:1000px; } .editorial-page--el-teatre .editorial-page__cover { max-width:100%; } .editorial-page--el-teatre .entry-content > p,.editorial-page--el-teatre .entry-content > ul,.editorial-page--el-teatre .entry-content > ol,.editorial-page--el-teatre .entry-content > blockquote,.editorial-page--el-teatre .entry-content h2,.editorial-page--el-teatre .entry-content h3 { max-width:100%; } }

/* El Teatre: composició editorial asimètrica, limitada a aquesta pàgina. */
.editorial-page--el-teatre .editorial-teatre__lead{padding:110px 0;background:var(--ivory)}
.editorial-page--el-teatre .editorial-teatre__lead-grid{display:grid;grid-template-columns:1fr .9fr;gap:clamp(42px,7vw,120px);align-items:center}
.editorial-page--el-teatre .editorial-teatre__cover{margin:0;max-width:none}
.editorial-page--el-teatre .editorial-teatre__cover img{display:block;width:100%;height:auto}
.editorial-page--el-teatre .editorial-teatre__cover figcaption{text-align:left}
.editorial-page--el-teatre .editorial-teatre__lead-copy{max-width:650px;text-align:left}
.editorial-page--el-teatre .editorial-teatre__lead-copy>p{max-width:650px;margin:0;text-align:left;font-size:clamp(1.2rem,1.6vw,1.45rem);line-height:1.75}
.editorial-page--el-teatre .editorial-teatre__section{padding:105px 0;background:var(--ivory)}
.editorial-page--el-teatre .editorial-teatre__section--paper{background:var(--paper)}
.editorial-page--el-teatre .editorial-teatre__section-grid{display:grid;grid-template-columns:1fr .9fr;gap:clamp(42px,7vw,120px);align-items:start}
.editorial-page--el-teatre .editorial-teatre__section-heading h2{max-width:560px;margin:0;text-align:left;font-size:clamp(3.3rem,5.8vw,5.8rem)}
.editorial-page--el-teatre .editorial-teatre__section-content{max-width:650px;text-align:left}
.editorial-page--el-teatre .editorial-teatre__section-content>p{max-width:650px;margin:0 0 1.5rem;text-align:left;font-size:1.12rem;line-height:1.8}
.editorial-page--el-teatre .editorial-teatre__section-content figure{margin:32px 0 0}
.editorial-page--el-teatre .editorial-teatre__section-content .ej-teatre-gallery{max-width:360px;width:100%;margin:32px 0 0!important}
.editorial-page--el-teatre .editorial-teatre__section-content .ej-teatre-gallery img{width:100%;height:auto}
.editorial-page--el-teatre .editorial-teatre__section-content figcaption{text-align:left}
@media(max-width:900px){.editorial-page--el-teatre .editorial-teatre__lead-grid,.editorial-page--el-teatre .editorial-teatre__section-grid{grid-template-columns:1fr;gap:38px}.editorial-page--el-teatre .editorial-teatre__lead,.editorial-page--el-teatre .editorial-teatre__section{padding:75px 0}.editorial-page--el-teatre .editorial-teatre__cover{max-width:720px}.editorial-page--el-teatre .editorial-teatre__section-heading h2{max-width:720px}}
@media(max-width:680px){.editorial-page--el-teatre .editorial-teatre__section-heading h2{font-size:clamp(3.2rem,13vw,4.8rem)}.editorial-page--el-teatre .editorial-teatre__section-content>p{font-size:1.05rem}}

/* Launch QA: footer privacy link and glyph-safe external arrows */
.site-footer__links{display:grid;gap:12px;justify-items:end}
.site-footer__links p{margin:0!important}
.site-footer__links a{color:var(--paper);font-size:.86rem;text-underline-offset:4px}
.text-link>span[aria-hidden="true"],.button>span[aria-hidden="true"]{display:inline-block;position:relative;width:.8em;height:.8em;margin-left:.15em;vertical-align:middle;font-size:0;line-height:0}
.text-link>span[aria-hidden="true"]::before,.button>span[aria-hidden="true"]::before{content:"";position:absolute;left:.04em;bottom:.12em;width:.67em;height:1.5px;background:currentColor;transform:rotate(-45deg);transform-origin:center}
.text-link>span[aria-hidden="true"]::after,.button>span[aria-hidden="true"]::after{content:"";position:absolute;right:.02em;top:.02em;width:.42em;height:.42em;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor}
@media(max-width:680px){.site-footer__links{justify-items:start}.site-footer__links a{margin-top:2px}}

.archive-catalog__image-wrap{margin:-35px -35px 26px;overflow:hidden;background:var(--soft)}
.archive-catalog__image-wrap img{display:block;width:100%;height:auto;max-height:320px;object-fit:cover}
@media(max-width:600px){.archive-catalog__image-wrap{margin:-25px -25px 22px}}


/* Launch QA: fixed-size arrow strokes avoid em collapsing with font-size:0 */
.text-link>span[aria-hidden="true"],.button>span[aria-hidden="true"]{width:.8rem;height:.8rem}
.text-link>span[aria-hidden="true"]::before,.button>span[aria-hidden="true"]::before{left:.04rem;bottom:.12rem;width:.67rem;height:1.5px}
.text-link>span[aria-hidden="true"]::after,.button>span[aria-hidden="true"]::after{right:.02rem;top:.02rem;width:.42rem;height:.42rem;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor}

/* Restablece el tratamiento aprobado: los enlaces internos no llevan fletxa. */
a.text-link[href^="/"] > span[aria-hidden="true"],a.button[href^="/"] > span[aria-hidden="true"],a.text-link[href*="elenajordi.cat"] > span[aria-hidden="true"],a.button[href*="elenajordi.cat"] > span[aria-hidden="true"]{display:none!important}

/* No mostrar pictogrames de sortida en cap destinació interna. */
a[href^="/"] span[aria-hidden="true"],a[href^="?"] span[aria-hidden="true"],a[href*="elenajordi.cat"] span[aria-hidden="true"]{display:none!important}
	

/* Targeta audiovisual local del vídeo de betevé (fitxa 284). Sense miniatura ni càrrega externa. */
.archive-catalog__card:has(a[href*="J7nn7jcUqUQ"]){position:relative;overflow:hidden;padding-top:245px;background:var(--dark);color:var(--ivory)}
.archive-catalog__card:has(a[href*="J7nn7jcUqUQ"])::before{content:"AUDIOVISUAL · BETEVÉ";position:absolute;inset:0 0 auto;height:205px;display:flex;align-items:flex-start;padding:24px;background:linear-gradient(135deg,var(--wine),var(--dark) 78%);border-bottom:1px solid var(--gold);color:var(--gold);font-size:.76rem;font-weight:700;letter-spacing:.11em}
.archive-catalog__card:has(a[href*="J7nn7jcUqUQ"])::after{content:"";position:absolute;top:83px;left:calc(50% - 21px);width:0;height:0;border-top:28px solid transparent;border-bottom:28px solid transparent;border-left:43px solid var(--ivory);filter:drop-shadow(0 2px 5px rgba(0,0,0,.35))}
.archive-catalog__card:has(a[href*="J7nn7jcUqUQ"]) h2{margin-top:0;color:var(--ivory)}
.archive-catalog__card:has(a[href*="J7nn7jcUqUQ"]) p{color:var(--paper)}
.archive-catalog__card:has(a[href*="J7nn7jcUqUQ"]) a:not(.text-link){color:var(--gold)}
.archive-catalog__card:has(a[href*="J7nn7jcUqUQ"]) .text-link{color:var(--gold)}
@media(max-width:600px){.archive-catalog__card:has(a[href*="J7nn7jcUqUQ"]){padding-top:235px}.archive-catalog__card:has(a[href*="J7nn7jcUqUQ"])::before{height:195px}.archive-catalog__card:has(a[href*="J7nn7jcUqUQ"])::after{top:78px}}