/*
Theme Name: La Saeta Editorial
Description: Portada editorial, guía de hermandades y videoteca de La Saeta.
Version: 1.11.0
Requires PHP: 7.4
*/

:root {
    --paper:#f5f2ee; --surface:#fffdf9; --ink:#192437; --muted:#615e63;
    --rule:#e4ddd4; --berry:#953a51; --wine:#3d171a; --wine-light:#f3dcc3;
    --gold:#e4c290; --side:236px; --admin:0px;
    --wine-panel:linear-gradient(165deg,#542124,var(--wine) 58%,#2d151b);
    font:16px/1.5 "Segoe UI", system-ui, sans-serif;
}
* { box-sizing:border-box; }
html { scroll-padding-top:95px; }
body.saeta { margin:0; background:var(--paper); color:var(--ink); }
body.admin-bar { --admin:32px; }
body.dark { --paper:#101217; --surface:#1b1e26; --ink:#faf3ea; --muted:#c0bbc1; --rule:#39353f; --berry:#ffc0cc; color-scheme:dark; }
a { color:inherit; text-decoration:none; }
button, input, select { font:inherit; }
button { cursor:pointer; }
button, input, select { color:inherit; }
button { background:none; border:0; }
img { display:block; max-width:100%; }
svg { width:21px; height:21px; flex:none; }
:focus-visible { outline:3px solid #bc6e25; outline-offset:3px; }
.sr, .skip:not(:focus) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip:focus { position:fixed; z-index:99999; top:8px; left:8px; background:#fff; color:#192437; padding:10px; }
.sidebar { position:fixed; inset:var(--admin) auto 0 0; width:var(--side); background:var(--wine-panel); color:var(--wine-light); display:flex; flex-direction:column; padding:23px 15px 16px; }
.brand { display:flex; flex-direction:column; align-items:center; gap:4px; padding:3px 4px 24px; }
.brand img { width:180px; }
.brand span { font-size:.72rem; color:#eed5a9; letter-spacing:.3em; padding-left:.3em; }
.nav-link { display:flex; gap:12px; align-items:center; border-radius:11px; min-height:46px; padding:8px 11px; font-size:.94rem; font-weight:600; }
.nav-link:hover { background:#ffffff15; }
.nav-link.active { background:#ffffff20; color:#fff5e3; }
.sidebar-days { overflow-y:auto; margin:15px 0 12px; border-top:1px solid #ffffff30; padding-top:4px; scrollbar-color:#a46b66 transparent; scrollbar-width:thin; }
.sidebar-days p { margin:13px 10px 6px; color:#efc69f; font-size:.8rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.sidebar-days summary { cursor:pointer; padding:7px 10px; font-size:.9rem; }
.sidebar-days details a { display:flex; align-items:center; gap:9px; min-height:36px; padding:4px 8px 4px 14px; border-radius:6px; font-size:.85rem; }
.sidebar-days details a:hover { background:#ffffff1a; }
.sidebar-days .brotherhood-crest { width:27px; height:27px; padding:3px; }
.sidebar-install { border:1px solid #ffffff42; border-radius:10px; min-height:41px; margin-top:auto; display:flex; justify-content:center; align-items:center; gap:8px; font-size:.9rem; }
.topbar { position:sticky; top:var(--admin); z-index:10; margin-left:var(--side); min-height:69px; background:var(--surface); border-bottom:1px solid var(--rule); padding:10px clamp(20px,4vw,53px); display:flex; align-items:center; gap:18px; }
.desktop-title { font-weight:700; white-space:nowrap; }
.mobile-brand, .mobile-search, .bottom { display:none; }
.top-search { display:flex; align-items:center; width:clamp(210px,29vw,390px); margin-left:auto; background:var(--paper); border:1px solid var(--rule); border-radius:10px; }
.top-search input { background:none; border:0; width:100%; min-width:0; padding:9px 10px; }
.top-search button { display:grid; place-items:center; padding:8px 11px; }
.install { display:flex; align-items:center; gap:7px; color:var(--berry); font-weight:700; white-space:nowrap; padding:8px 0; }
.standalone [data-install] { display:none; }
main { margin-left:var(--side); padding:30px clamp(20px,4vw,53px) 25px; min-width:0; }
main > * { max-width:1380px; margin-left:auto; margin-right:auto; }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { font-family:Georgia,"Times New Roman",serif; font-weight:600; line-height:1.07; }
h1 { font-size:clamp(2.5rem,5vw,4.2rem); margin-bottom:15px; letter-spacing:-.05em; }
h2 { font-size:clamp(1.75rem,3vw,2.7rem); letter-spacing:-.04em; }
h3 { font-size:clamp(1.3rem,2vw,1.8rem); letter-spacing:-.025em; }
.eyebrow { color:var(--berry); font-size:.79rem; letter-spacing:.14em; text-transform:uppercase; font-weight:750; margin-bottom:6px; }
.brotherhood-hero .eyebrow { color:var(--gold); }
.news-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:22px; padding-bottom:14px; border-bottom:2px solid #88354a; }
.news-heading h1 { margin-bottom:0; }
.news-heading .pill { font-size:.88rem; }
.editorial-feed { display:grid; gap:clamp(15px,2.1vw,27px); }
.news-row { display:grid; gap:clamp(15px,2.1vw,27px); align-items:stretch; }
.news-pair { grid-template-columns:repeat(2,minmax(0,1fr)); }
.news-card.news-lead,.news-card.news-feature-major {
    background:#fff3d4; color:#2c201a; --muted:#5e4b38; --berry:#792c41; border-color:#dbc58a;
}
.news-lead:has(.news-photo:not([hidden])),.news-feature:has(.news-photo:not([hidden])),.news-feature-major:has(.news-photo:not([hidden])) {
    display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,1fr); align-items:center;
}
.news-lead .news-copy,.news-feature-major .news-copy { padding:clamp(20px,4vw,49px); }
.news-feature .news-copy { padding:clamp(17px,3vw,34px); }
.news-lead h3 { font-size:clamp(1.95rem,3.65vw,3.65rem); }
.news-feature-major h3 { font-size:clamp(1.6rem,2.95vw,2.6rem); }
.news-lead .news-image img { height:clamp(245px,31vw,425px); }
.news-feature .news-image img,.news-feature-major .news-image img { height:clamp(185px,21vw,293px); }
.editorial-feed .news-side,.editorial-feed .news-tile {
    background:transparent; border:0; border-top:1px solid var(--rule); border-radius:0; padding-block:clamp(12px,1.7vw,22px) 2px;
}
.editorial-feed .news-side:has(.news-photo:not([hidden])) {
    display:grid; grid-template-columns:minmax(0,38%) minmax(0,1fr); gap:clamp(12px,2.5vw,36px); align-items:start;
}
.news-side .news-copy { padding:clamp(0px,1.2vw,14px) 0 0; }
.news-tile .news-copy { padding:11px 0 0; }
.news-tile.news-text-only .news-copy { padding-top:0; }
.news-side .news-image,.news-tile .news-image { border-radius:6px; overflow:hidden; }
.news-side .news-image img,.news-tile .news-image img { height:auto; aspect-ratio:16/10; }
.news-side .news-image img { aspect-ratio:16/9; }
.news-side .news-photo figcaption,.news-tile .news-photo figcaption { padding-inline:0; }
.editorial-feed .news-summary { max-width:58ch; }
.pill { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:43px; padding:9px 16px; border-radius:9px; background:#91344d; color:#fff9f3; font-weight:650; }
.pill:hover { background:#7b2740; }
.section { margin-top:32px; }
.section > h2 { margin-bottom:12px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:14px; margin-bottom:15px; }
.text-link { display:inline-flex; align-items:center; gap:7px; color:var(--berry); font-weight:700; }
.text-link:hover, .news-card h3 a:hover, .meta a:hover { text-decoration:underline; }
.news-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.news-card { background:var(--surface); border:1px solid var(--rule); overflow:hidden; border-radius:15px; min-width:0; }
.news-image { position:relative; display:block; background:#222133; }
.news-image img { width:100%; height:152px; object-fit:cover; }
.news-video-cover:not(:has(img:not([hidden]))) { aspect-ratio:16/9; background:linear-gradient(135deg,#472633,#211c2b); }
.news-video-cover .play {
    inset:auto auto 9px 9px; transform:none; width:clamp(30px,5vw,44px); height:clamp(30px,5vw,44px);
    background:#211c2bdd; border:1px solid #fff; box-shadow:0 2px 6px #0005;
}
.news-video-cover .play svg { margin-left:2px; }
.news-video-cover img[hidden],.news-photo:has(img[hidden]) figcaption { display:none; }
.news-photo { margin:0; }
.news-photo figcaption { margin:0; padding:4px 11px 2px; }
.news-photo figcaption a:hover { text-decoration:underline; }
.news-copy { padding:16px 18px 19px; }
.news-copy > p:not(.meta) { margin-top:8px; color:var(--muted); }
.meta { display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:.84rem; color:var(--muted); margin:0 0 7px; }
.meta a { color:var(--berry); font-weight:700; }
.video-panel { margin-top:32px; background:linear-gradient(135deg,#1d2434,#17151e); color:#fff7ed; padding:clamp(17px,3vw,31px); border-radius:18px; --berry:#f2c5ad; }
.video-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(10px,1.45vw,19px); }
.video-grid-brotherhood { grid-template-columns:repeat(2,minmax(0,1fr)); }
.video-card { display:block; min-width:0; border-radius:12px; }
.video-cover, .player button { position:relative; display:block; aspect-ratio:16/9; overflow:hidden; border-radius:12px; background:#252634; }
.video-cover img, .player img { width:100%; height:100%; object-fit:cover; }
.video-card:hover .video-cover { outline:2px solid var(--berry); }
.video-caption { display:block; margin-top:6px; color:var(--muted); font-size:.88rem; font-weight:600; }
.video-feature { margin-block:clamp(17px,2.4vw,27px); }
.video-feature .video-cover { border-radius:clamp(12px,1.8vw,22px); }
.video-feature .play { width:clamp(48px,6vw,72px); height:clamp(48px,6vw,72px); }
.video-feature .play svg { width:52%; height:52%; }
.video-feature-label {
    position:absolute; inset:auto auto clamp(9px,2.3vw,26px) clamp(9px,2.3vw,26px);
    padding:6px 12px; border-radius:8px; background:#15131beb; color:#fff5e7;
    font-weight:700; font-size:clamp(.75rem,1.4vw,1.02rem);
}
.video-feature-copy { display:none; }
@media (min-width:881px) {
    .video-feature { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; gap:clamp(18px,3vw,42px); }
    .video-feature-copy { display:grid; gap:clamp(8px,1vw,15px); }
    .video-feature-title { font:600 clamp(1.2rem,2.1vw,2.15rem)/1.13 Georgia,"Times New Roman",serif; overflow-wrap:anywhere; }
    .video-feature-preview { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; overflow-wrap:anywhere; color:var(--muted); font-size:.96rem; }
    .video-feature:hover .video-feature-title { text-decoration:underline; text-underline-offset:.14em; }
}
.play { position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); display:grid; place-items:center; width:42px; height:42px; color:#fff; background:#1e1724ad; border:1px solid #ffffff7d; border-radius:50%; }
.player { overflow:hidden; border-radius:15px; }
.player button, .player iframe, .player video { width:100%; aspect-ratio:16/9; display:block; padding:0; border:0; background:#252634; }
.player .play { width:64px; height:64px; }
.player .play svg { width:30px; height:30px; }
.video-detail { max-width:1100px; }
.video-detail h1 { margin:clamp(14px,2.5vw,25px) 0 12px; font-size:clamp(1.3rem,2.55vw,2.25rem); letter-spacing:-.02em; }
.video-description { background:var(--surface); border:1px solid var(--rule); border-radius:12px; padding:13px 15px; overflow-wrap:anywhere; }
.video-description summary { display:block; cursor:pointer; }
.video-description summary::-webkit-details-marker { display:none; }
.video-description-preview { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; color:var(--muted); margin-bottom:5px; }
.video-description-toggle { display:inline-flex; align-items:center; gap:7px; color:var(--berry); font-weight:700; }
.video-description-toggle::after { content:""; width:6px; height:6px; border:solid currentColor; border-width:0 2px 2px 0; transform:translateY(-2px) rotate(45deg); }
.video-description .description-collapse, .video-description[open] .description-expand, .video-description[open] .video-description-preview { display:none; }
.video-description[open] .description-collapse { display:inline; }
.video-description[open] .video-description-toggle::after { transform:translateY(2px) rotate(225deg); }
.video-description-copy { margin-top:10px; }
.video-description-copy p + p { margin-top:.8em; }
.actions { margin-top:20px; display:flex; flex-wrap:wrap; align-items:center; gap:15px; }
.filter { margin:18px auto 23px; display:flex; flex-wrap:wrap; gap:9px; align-items:end; }
.filter input, .filter select { min-height:43px; background:var(--surface); padding:7px 10px; border:1px solid var(--rule); border-radius:9px; color:var(--ink); }
.filter label { display:grid; gap:4px; font-size:.94rem; }
.filter input:not([type=hidden]) { flex:1; min-width:0; max-width:410px; }
.group-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,165px),1fr)); gap:9px; }
.group-grid a { display:flex; align-items:center; min-height:48px; border:1px solid var(--rule); border-radius:10px; padding:8px 11px; background:var(--surface); font-weight:650; }
.group-grid a:hover { border-color:var(--berry); }
.group-link { gap:10px; }
.brotherhood-crest { display:block; flex:none; width:40px; height:40px; padding:4px; overflow:hidden; border:1px solid #ceb592; border-radius:50%; background:#fff8ee; object-fit:contain; }
.band-directory { grid-template-columns:repeat(auto-fill,minmax(min(100%,255px),1fr)); }
.band-link { min-height:70px; }
.band-link strong,.band-link small { display:block; }
.band-link small { color:var(--muted); line-height:1.28; margin-top:3px; }
.band-icon-default { display:grid; place-items:center; color:#72384b; }
.band-appearances { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr)); gap:10px; }
.band-appearances li { padding:13px 15px; border:1px solid var(--rule); border-radius:10px; background:var(--surface); }
.band-appearances li > span { display:block; font-size:.88rem; color:var(--muted); margin-top:4px; }
.band-profile.has-band-photo { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); align-items:center; gap:clamp(20px,4vw,47px); padding:clamp(15px,3vw,32px); }
.band-profile-photo { margin:0; }
.band-profile-photo img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:12px; }
.band-profile-photo figcaption { color:#f1dfe0; }
.band-profile-next { display:flex; align-items:center; flex-wrap:wrap; gap:7px; width:fit-content; color:var(--gold); margin-top:14px; font-size:.9rem; }
.band-profile-next svg { width:15px; height:15px; }
.band-profile-next:hover,.band-profile-photo a:hover { text-decoration:underline; }
.band-concerts { display:grid; gap:10px; list-style:none; margin:0; padding:0; max-width:790px; }
.band-concert { display:grid; grid-template-columns:74px minmax(0,1fr); align-items:start; gap:16px; padding:16px; border:1px solid var(--rule); border-radius:14px; background:var(--surface); }
.band-concert time { display:grid; justify-items:center; border-radius:9px; padding:9px 4px; background:var(--wine); color:#fff5e5; }
.band-concert time strong { font-size:1.55rem; line-height:1; }
.band-concert time span { margin-top:3px; font-size:.73rem; }
.band-concert h3 { margin:0; }
.band-concert p { color:var(--muted); margin:4px 0 7px; }
@media (max-width:620px) {
    .band-profile.has-band-photo { grid-template-columns:minmax(0,1fr); }
    .band-profile-photo img { aspect-ratio:16/10; }
    .band-concert { grid-template-columns:60px minmax(0,1fr); padding:11px; gap:12px; }
}
.band-music-other { margin-block:12px; }
.brotherhood-hero { padding:27px clamp(20px,4vw,45px); background:linear-gradient(115deg,#492226,#21283d); color:#fff5e9; border-radius:17px; }
.brotherhood-hero p:not(.eyebrow) { max-width:72ch; color:#f3dfe2; }
.brotherhood-hero .pill { margin-top:14px; }
.brotherhood-hero.has-photo { position:relative; isolation:isolate; overflow:hidden; }
.brotherhood-banner { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.brotherhood-hero.has-photo::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#241a27ed,#241a2766); }
.profile-crest { width:58px; height:58px; padding:6px; margin-bottom:11px; }
.back { display:block; margin-bottom:12px; color:var(--berry); font-weight:650; }
.tabs { display:flex; gap:4px; overflow:auto; margin-top:14px; border-bottom:1px solid var(--rule); }
.tabs a { white-space:nowrap; padding:10px; border-bottom:3px solid transparent; }
.tabs a[aria-current] { border-color:var(--berry); font-weight:700; color:var(--berry); }
.article { max-width:760px; }
.article h1 { margin-top:10px; }
.article figure { margin:19px 0; }
.article figure img { border-radius:12px; width:100%; }
.article p, .article-body > * { margin-bottom:13px; overflow-wrap:anywhere; }
.article .deck { font-size:1.2rem; color:var(--muted); }
.article .news-player { margin-block:24px; }
.news-player figcaption { margin-top:8px; }
.related-news { margin-top:20px; }
.related-news summary { cursor:pointer; font-weight:650; }
.related-news nav { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.news-band-label { color:var(--berry); font-weight:700; }
.news-band-links { display:flex; flex-wrap:wrap; gap:7px; margin-top:20px; }
.article-sources { margin-top:24px; padding-top:7px; font-size:.78rem; }
.article-sources nav { display:flex; align-items:center; gap:1px; overflow-x:auto; padding:6px; white-space:nowrap; }
.article-sources nav > span { margin-right:6px; }
.article-sources a { display:inline-grid; place-items:center; min-width:24px; min-height:24px; padding-inline:4px; text-decoration:underline; text-underline-offset:.2em; }
figcaption { color:var(--muted); font-size:.86rem; padding-top:5px; }
.photo-attribution { font-size:.6875rem; line-height:1.4; }
.photo-attribution a { font-size:inherit; text-underline-offset:.2em; }
.brotherhood-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:16px; }
.gallery-photo { min-width:0; margin:0; border:1px solid var(--rule); border-radius:12px; overflow:hidden; background:var(--surface); }
.gallery-picture { display:block; aspect-ratio:16/10; }
.gallery-picture img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.gallery-photo figcaption { display:grid; gap:4px; padding:11px 13px 14px; overflow-wrap:anywhere; }
.gallery-photo figcaption strong { color:var(--ink); font-size:.95rem; }
.gallery-photo figcaption a { text-decoration:underline; text-underline-offset:.2em; }
.archive-card, .empty { margin-top:10px; padding:15px 18px; background:var(--surface); border:1px solid var(--rule); border-radius:11px; }
.archive-card h3 + p { margin-top:7px; }
.archive-card img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; object-position:center; border-radius:10px; margin-bottom:10px; }
.ficha-photo { margin:0 0 14px; min-width:0; }
.ficha-photo > a { display:block; overflow:hidden; border-radius:10px; background:var(--paper); }
.ficha-photo img, .archive-card .ficha-photo img, .object-card .ficha-photo img {
    display:block; width:100%; height:auto; aspect-ratio:16/10; margin:0; object-fit:cover; object-position:center;
}
.ficha-photo figcaption { display:grid; gap:3px; margin:6px 0 0; color:var(--muted); font-size:.8rem; }
.ficha-photo figcaption strong { color:var(--ink); font-weight:650; }
.ficha-photo figcaption a { text-decoration:underline; text-underline-offset:2px; }
.seat-record .seat-interior { margin-block:16px; }
.history-photos { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); gap:12px; margin-top:12px; }
.paso-head .paso-photo,.paso-head > .photo-trigger { flex:0 0 clamp(120px,24vw,300px); max-width:100%; }
.paso-head .paso-photo img,.paso-head > .photo-trigger img { width:100%; height:auto; aspect-ratio:16/10; object-fit:cover; }
@media (max-width:620px) {
    .paso-head .paso-photo,.paso-head > .photo-trigger { flex:0 0 auto; width:100%; }
    .brotherhood-gallery,.history-photos { grid-template-columns:minmax(0,1fr); }
}
.history-nav { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 24px; }
.history-nav a { padding:7px 12px; border:1px solid var(--rule); border-radius:999px; background:var(--surface); color:var(--berry); font-weight:650; }
.history-nav a:hover,.history-nav a:focus-visible { border-color:var(--berry); }
.history-layout { display:grid; grid-template-columns:minmax(0,1.9fr) minmax(200px,1fr); align-items:start; gap:clamp(20px,4vw,48px); }
.history-without-album { grid-template-columns:minmax(0,1fr); }
.history-chapter,.history-album,.history-event,.history-results { scroll-margin-top:94px; }
.history-layout h3 { margin:0 0 15px; font-size:clamp(1.25rem,2vw,1.6rem); }
.history-filter { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr)); gap:12px; align-items:end; margin:0 0 18px; padding:16px; border:1px solid var(--rule); border-radius:14px; background:var(--surface); }
.history-filter label { display:grid; gap:5px; min-width:0; color:var(--ink); font-size:.88rem; font-weight:700; }
.history-filter .history-filter-text { grid-column:1/-1; }
.history-filter input,.history-filter select { width:100%; min-width:0; min-height:42px; padding:8px 10px; border:1px solid var(--rule); border-radius:8px; background:var(--surface); color:var(--ink); font:inherit; font-weight:450; }
.history-filter-actions { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; grid-column:1/-1; }
.history-results { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 12px; font-weight:700; }
.history-results span,.history-event-meta { color:var(--muted); font-size:.84rem; font-weight:550; }
.history-timeline { margin:0; padding:0 0 0 16px; list-style:none; border-left:1px solid var(--rule); }
.history-event { position:relative; margin-bottom:10px; padding:13px 15px; overflow-wrap:anywhere; border:1px solid var(--rule); border-radius:12px; background:var(--surface); }
.history-event:target { outline:2px solid var(--berry); outline-offset:2px; }
.history-event::before { content:""; position:absolute; width:8px; height:8px; left:-21px; top:22px; background:var(--berry); border-radius:50%; }
.history-event-meta { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; margin-bottom:5px; }
.history-date { color:var(--berry); font-weight:750; }
.history-event h2,.history-event h4 { margin:0 0 5px; font-size:1.08rem; }
.history-event p { margin:0 0 6px; }
.history-group { display:inline-block; margin-bottom:6px; color:var(--berry); font-size:.86rem; font-weight:700; }
.inventory-intro { color:var(--muted); margin:0 0 16px; }
.inventory-intro a { display:inline-block; }
.patrimony-family { scroll-margin-top:94px; margin:24px 0; }
.patrimony-family h3 { margin:0 0 12px; }
.patrimony-card dl { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:3px 10px; margin:8px 0; font-size:.9rem; }
.patrimony-card dt { color:var(--muted); font-weight:650; }
.patrimony-card dd { margin:0; overflow-wrap:anywhere; }
.patrimony-card .patrimony-related { margin:5px 0; font-size:.83rem; color:var(--muted); }
.patrimony-family .object-grid { padding:0; }
.history-picture figcaption a { color:var(--berry); text-decoration:underline; text-underline-offset:.2em; }
.history-picture { margin:0 0 12px; overflow:hidden; border:1px solid var(--rule); border-radius:14px; background:var(--surface); }
.history-image { display:block; }
.history-image img { display:block; width:100%; height:auto; aspect-ratio:16/10; object-fit:cover; object-position:center; }
.history-picture figcaption { display:grid; gap:3px; padding:10px 12px; }
.history-picture strong { color:var(--ink); }
@media (max-width:700px) { .history-layout { grid-template-columns:minmax(0,1fr); } }
.paso-card { margin:16px 0; border:1px solid var(--rule); border-radius:16px; background:var(--surface); overflow:hidden; }
.paso-head { padding:20px; display:flex; align-items:start; gap:20px; }
.paso-head img { width:clamp(120px,24vw,300px); max-height:240px; object-fit:cover; border-radius:11px; }
.paso-head h3 + p { margin-top:9px; }
.paso-facts { margin:11px 0 0; padding-left:19px; font-size:.91rem; color:var(--muted); }
.paso-facts:empty { display:none; }
.paso-details { border-top:1px solid var(--rule); }
.paso-details summary { cursor:pointer; padding:12px 20px; font-weight:700; color:var(--berry); }
.object-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr)); gap:12px; padding:0 16px 16px; }
.object-card { background:var(--paper); padding:12px; border-radius:10px; }
.object-card h4 { font-size:1.04rem; margin:0 0 5px; }
.object-card img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:8px; margin-bottom:8px; }
.archive-note { margin-top:16px; font-size:.9rem; color:var(--muted); }
.pagination { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.pagination { margin:22px 0; }
footer { margin-top:35px; border-top:1px solid var(--rule); padding:16px 0 0; color:var(--muted); font-size:.9rem; }
.sheet { background:var(--surface); color:var(--ink); border:1px solid var(--rule); border-radius:17px; padding:22px; width:min(92vw,450px); }
.sheet::backdrop { background:#17151bc0; }
.sheet h2 { margin-bottom:15px; }
.sheet p { margin:12px 0; }
.sheet nav { margin-bottom:10px; }
.sheet .nav-link.active { color:var(--berry); }
.photo-trigger { display:block; width:100%; border:0; padding:0; background:none; color:inherit; cursor:zoom-in; text-align:inherit; }
.photo-trigger:focus-visible,.photo-hero-trigger:focus-visible { outline:3px solid var(--berry); outline-offset:3px; }
.article .photo-trigger img { display:block; width:100%; height:auto; aspect-ratio:16/10; object-fit:cover; object-position:center; }
.photo-hero-trigger {
    position:absolute; inset:auto 12px 12px auto; display:grid; place-items:center; width:44px; height:44px;
    background:#231924db; color:#fff9f0; border:1px solid #fff9f066; border-radius:50%; font-size:1.55rem; cursor:zoom-in;
}
html:has(.photo-viewer-open) { overflow:hidden; }
.photo-viewer {
    background:#17121a; color:#fff8f1; max-width:none; max-height:none; width:min(100%,1300px);
    height:100%; height:100dvh; margin:auto; border:0; padding:8px max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
}
.photo-viewer[open] { display:grid; grid-template-columns:48px minmax(0,1fr) 48px; grid-template-rows:auto minmax(0,1fr) auto; align-items:center; gap:5px; }
.photo-viewer::backdrop { background:#151017f5; }
.photo-viewer-stage { grid-area:2/1/3/4; width:100%; height:100%; display:grid; place-items:center; touch-action:pan-y pinch-zoom; min-height:0; }
.photo-viewer-image { display:block; width:100%; height:100%; min-height:0; object-fit:contain; user-select:none; }
.photo-viewer button {
    display:grid; place-items:center; width:44px; height:44px; margin:0; padding:0;
    color:inherit; background:#342633; border:1px solid #fff8f15c; border-radius:50%;
    font:inherit; font-size:1.85rem; line-height:1; cursor:pointer;
}
.photo-viewer button:hover { background:#694058; }
.photo-viewer button:focus-visible { outline:2px solid #f2c77f; outline-offset:2px; }
.photo-viewer-close { grid-area:1/3; justify-self:end; }
.photo-viewer-prev { grid-area:3/1; }
.photo-viewer-next { grid-area:3/3; justify-self:end; }
.photo-viewer-caption { grid-area:3/2; margin:0; text-align:center; font-size:.88rem; overflow-wrap:anywhere; }
.photo-viewer [hidden] { display:none !important; }
.close { float:right; display:grid; place-items:center; width:40px; height:40px; }
@media (max-width:880px) {
    :root { --side:0px; }
    .sidebar, .desktop-title, .top-search { display:none; }
    .topbar {
        min-height:65px; gap:clamp(7px,2.4vw,14px);
        padding:6px max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left));
        background:var(--wine-panel); border-bottom-color:#e4c29040;
    }
    .mobile-brand { display:flex; align-items:center; width:clamp(108px,36vw,154px); min-width:0; min-height:44px; }
    .mobile-brand img { width:100%; height:auto; }
    .mobile-search {
        display:grid; place-items:center; flex:0 0 44px; height:44px;
        margin-left:auto; border-radius:50%; color:var(--gold);
    }
    .topbar .install {
        flex:none; gap:6px; min-height:44px; padding:7px clamp(8px,2.8vw,14px);
        border:1px solid #e4c2908c; border-radius:999px; color:#f8dfaf;
        background:#e4c29019; font-size:.81rem; line-height:1;
    }
    .topbar .install svg { width:16px; height:16px; }
    .mobile-search:hover, .topbar .install:hover { background:#e4c29030; }
    main { padding:19px 15px calc(88px + env(safe-area-inset-bottom)); }
    .bottom { z-index:15; position:fixed; inset:auto 0 0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; padding:6px 3px calc(7px + env(safe-area-inset-bottom)); background:var(--surface); border-top:1px solid var(--rule); }
    .bottom .nav-link { flex-direction:column; justify-content:center; align-items:center; gap:3px; padding:4px 0; min-height:51px; color:var(--muted); font-size:clamp(.62rem,2.7vw,.78rem); white-space:nowrap; }
    .bottom .nav-link.active { color:#862942; background:#f7e5ea; }
    .dark .bottom .nav-link.active { color:#ffe6ed; background:#552c3c; }
    .section { margin-top:25px; }
    .video-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
}
@media (max-width:380px) {
    .bottom { grid-template-columns:minmax(0,.94fr) minmax(0,1.24fr) repeat(3,minmax(0,.94fr)); }
}
@media (max-width:520px) {
    .news-grid { grid-template-columns:1fr; }
    .news-image img { height:133px; }
    .section-head { align-items:end; }
    .section-head .text-link { font-size:.87rem; gap:2px; }
    .section-head .text-link svg { width:16px; height:16px; }
    .news-lead .news-image img { height:clamp(205px,43vw,340px); }
    .paso-head { flex-direction:column; gap:12px; }
    .paso-head img { width:100%; }
}
@media (max-width:680px) {
    .front-news .news-heading { margin-bottom:16px; }
    .front-news .news-heading h1 { font-size:clamp(2rem,7.2vw,2.65rem); }
    .front-news .news-heading .pill { font-size:.8rem; min-height:38px; padding:7px 10px; }
    .editorial-feed { gap:20px; }
    .news-pair { gap:14px; }
    .news-lead:has(.news-photo:not([hidden])),.news-feature:has(.news-photo:not([hidden])),.news-feature-major:has(.news-photo:not([hidden])) { display:block; }
    .editorial-feed .news-side:has(.news-photo:not([hidden])) { grid-template-columns:minmax(0,43%) minmax(0,1fr); }
    .news-side .news-image img { aspect-ratio:4/3; }
    .news-side h3,.news-tile h3 { font-size:clamp(1.05rem,3.8vw,1.45rem); line-height:1.14; overflow-wrap:anywhere; }
    .news-side .meta,.news-tile .meta { font-size:.71rem; gap:3px 5px; }
    .news-side .news-summary { font-size:.84rem; line-height:1.32; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
    .news-tile .news-summary { display:none; }
    .news-side .news-photo figcaption,.news-tile .news-photo figcaption { font-size:.63rem; }
}
@media (max-width:782px) { body.admin-bar { --admin:46px; } }
@media (max-width:600px) { body.admin-bar .topbar { top:0; } }

.article-actions,.account-links { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
.article-actions { margin:26px 0 16px; }
.social-inline { display:inline-flex; margin:0; }
.social-control { display:inline-flex; align-items:center; gap:7px; min-height:44px; }
.social-control svg { width:19px; height:19px; flex:none; }
.social-control.is-selected { border-color:currentColor; color:var(--berry); }
.social-control.is-selected svg { fill:currentColor; }
.article-discussion { margin-top:26px; padding-top:20px; border-top:1px solid var(--rule); }
.article-discussion h2,.account-card h2 { margin:0 0 13px; }
.article-discussion p a,.account-card p a,.account-links>a:not(.pill) { text-decoration:underline; text-underline-offset:3px; }
.account-card { max-width:540px; margin:18px 0 30px; padding:clamp(18px,4vw,36px); border:1px solid var(--rule); border-radius:20px; background:var(--surface); }
.social-form,#saeta-login { display:grid; gap:8px; max-width:540px; }
#saeta-login p { display:grid; gap:6px; margin:0 0 8px; }
.social-form label,#saeta-login label { font-weight:650; }
.social-form input:not([type=hidden]):not([type=checkbox]),.social-form textarea,#saeta-login .input {
    width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--rule);
    border-radius:9px; background:var(--surface); color:var(--ink); font:inherit;
}
.social-form textarea { resize:vertical; }
.social-form .social-primary,#saeta-login .button-primary {
    justify-self:start; min-height:44px; margin-top:5px; padding:9px 16px;
    border:1px solid #6c273b; border-radius:999px; background:#79293f; color:#fff; font:inherit; font-weight:700; cursor:pointer;
}
.social-notice { margin:12px 0; padding:10px 13px; border-inline-start:3px solid var(--berry); background:var(--paper); }
.reader-comment { margin-top:16px; padding:14px 0 0; border-top:1px solid var(--rule); overflow-wrap:anywhere; }
.reader-comment time { font-size:.8rem; color:var(--muted); margin-inline-start:5px; }
.reader-comment p { margin:7px 0; }
.device-favorites { margin-top:22px; }
.device-favorites summary { cursor:pointer; font-weight:650; }
.account-following a { display:flex; align-items:center; gap:10px; }
.social-form .profile-visibility { display:flex; align-items:flex-start; gap:8px; padding:8px 0; font-weight:500; }
.profile-visibility input { margin-top:.32rem; accent-color:var(--berry); }
.social-form + .account-links { margin-top:18px; }
.public-reader-profile h1 { margin:10px 0; overflow-wrap:anywhere; }
.public-reader-profile p { overflow-wrap:anywhere; }
.reader-profile-icon { display:grid; place-items:center; width:45px; height:45px; border-radius:50%; color:var(--wine); background:var(--wine-light); }
.reader-profile-icon svg { width:22px; height:22px; }
