/* VIU la història de Manresa — original identity supplied by VIU. */
body.viu-public.viu-history-section { --history-ink:#2d2d2b; --history-sand:#cbbca0; --magazine-paper:#fdfcf9; --magazine-ink:#2d2d2b; --magazine-red:#2d2d2b; --magazine-coral:#cbbca0; background:#fdfcf9; color:#2d2d2b; }
body.viu-public.viu-history-section .viu-magazine-header { --magazine-paper:#2d2d2b; --magazine-ink:#cbbca0; --magazine-red:#cbbca0; --magazine-rule:#cbbca044; --magazine-accent:#cbbca0; background:#2d2d2b; color:#cbbca0; border-top-color:#cbbca0; }
.viu-history-section .viu-magazine-header .viu-magazine-brand img { filter:none; width:clamp(230px,27vw,340px); }
.viu-history-section .viu-magazine-header .viu-language button[aria-pressed=true] { color:#2d2d2b!important; background:#cbbca0; }
.viu-history-section .viu-magazine-header .viu-magazine-navigation [aria-current] { color:#cbbca0; }
.viu-history-section .viu-magazine-header .viu-menu-label { color:#cbbca0; }
.viu-history-section .viu-magazine-header :focus-visible { outline-color:#cbbca0; }
body.viu-public.viu-history-section main.history-channel { max-width:1280px; width:100%; padding:36px 32px 64px; margin:0 auto; box-sizing:border-box; }
.history-channel-intro { display:grid; grid-template-columns:1.1fr 1fr; align-items:center; gap:32px; margin:0 0 30px; }
body.viu-public.viu-history-section .history-channel-intro h1 { margin:0; font-size:clamp(32px,3.3vw,44px)!important; font-weight:400; line-height:1.2!important; letter-spacing:0!important; }
.history-channel-intro p { font-size:18px; line-height:1.55; max-width:49ch; margin:0; }
.history-feature { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); background:#cbbca0; margin-bottom:64px; }
.history-feature-image { display:block; min-width:0; background:#2d2d2b; }
body.viu-public.viu-history-section .history-feature-image img { display:block; position:static; width:100%!important; height:100%!important; min-height:360px; max-height:520px; aspect-ratio:1.45; object-fit:cover; margin:0!important; border-radius:0!important; }
.history-feature-copy { padding:clamp(24px,3vw,40px); display:flex; flex-direction:column; align-items:start; justify-content:center; min-width:0; }
.history-feature-label { display:flex; flex-wrap:wrap; gap:8px; font-size:13px; margin:0 0 16px; }
body.viu-public.viu-history-section .history-feature-copy h2 { font-size:clamp(28px,2.6vw,36px)!important; line-height:1.22!important; font-weight:400; letter-spacing:0!important; margin:0 0 18px; }
.history-feature a,.history-archive a,.history-pagination a { color:#2d2d2b; text-decoration:none; }
.history-feature h2 a:hover,.history-archive h3 a:hover { text-decoration:underline; text-underline-offset:5px; }
.history-feature-excerpt { margin:0 0 24px; font-size:17px; line-height:1.55; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden; }
.history-read { min-height:48px; padding:12px 18px; display:inline-flex; align-items:center; gap:24px; box-sizing:border-box; border:1px solid #2d2d2b; font-weight:700; }
.history-read:hover { color:#cbbca0; background:#2d2d2b; }
.history-archive { scroll-margin-top:160px; }
.history-archive-head { display:flex; align-items:end; justify-content:space-between; gap:32px; border-bottom:1px solid #2d2d2b; padding-bottom:24px; margin-bottom:32px; }
body.viu-public.viu-history-section .history-archive-head h2 { font-size:clamp(26px,2.4vw,32px)!important; line-height:1.25!important; font-weight:400; margin:0 0 8px; }
.history-archive-head p { font-size:14px; margin:0; }
.history-search { min-width:310px; scroll-margin-top:170px; }
.history-search label { display:block; margin-bottom:8px; font-size:14px; }
.history-search > div { display:flex; border:1px solid #2d2d2b; background:#fff; }
.history-search input { min-width:0; width:100%; border:0; background:transparent; padding:12px; min-height:48px; font:inherit; font-size:16px; box-sizing:border-box; }
.history-search button { border:0; border-left:1px solid #2d2d2b; color:#cbbca0; background:#2d2d2b; padding:12px 18px; font:inherit; cursor:pointer; }
.history-archive-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:40px 28px; }
.history-archive-card { min-width:0; display:flex; flex-direction:column; align-items:start; border-bottom:1px solid #cbbca0; padding-bottom:24px; }
.history-archive-image { width:100%; background:#cbbca0; overflow:hidden; }
body.viu-public.viu-history-section .history-archive-image img { display:block; width:100%!important; height:auto!important; aspect-ratio:4/3; object-fit:cover; border-radius:0!important; margin:0!important; }
body.viu-public.viu-history-section img.history-no-photo { object-fit:contain!important; padding:28px; box-sizing:border-box; background:#cbbca0; }
.history-publication-date { font-size:12px; margin:16px 0 10px; }
body.viu-public.viu-history-section .history-archive-card h3 { font-weight:400; font-size:25px!important; line-height:1.28!important; letter-spacing:0!important; margin:0 0 12px; }
.history-archive-card > p:not(.history-publication-date) { font-size:16px; line-height:1.55; margin:0 0 16px; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.history-card-read { min-height:44px; display:inline-flex; align-items:center; gap:18px; margin-top:auto; font-size:15px; text-decoration:underline!important; text-underline-offset:4px; }
.history-empty { padding:24px 0 48px; }
.history-pagination { display:flex; gap:10px; flex-wrap:wrap; margin-top:32px; }
.history-pagination a { display:grid; place-items:center; min-width:44px; min-height:44px; border:1px solid #2d2d2b; }
.history-pagination [aria-current] { background:#2d2d2b; color:#cbbca0; }
.history-edition { display:grid; grid-template-columns:minmax(200px,1fr) 1fr; gap:18px 48px; align-items:center; margin:64px 0 0; padding:32px; background:#2d2d2b; color:#cbbca0; }
.history-edition img { width:100%; max-width:340px; height:auto; grid-row:span 2; }
.history-edition p { margin:0; font-size:20px; }
.history-edition a { color:#cbbca0; min-height:44px; display:flex; align-items:center; gap:24px; text-underline-offset:5px; }
/* Article pages retain their content, galleries and original photographs. */
body.viu-public.viu-history-section.history-page { background:#fdfcf9; }
body.viu-public.viu-history-section article.history-detail > header { border-bottom:1px solid #cbbca0; padding-bottom:24px; margin-bottom:28px; }
body.viu-public.viu-history-section article.history-detail > header h1 { font-weight:400!important; color:#2d2d2b!important; }
body.viu-public.viu-history-section article.history-detail .veu-pill { border-color:#2d2d2b; color:#2d2d2b; }
body.viu-public.viu-history-section .viu-more-stories { border-top:2px solid #cbbca0; }
body.viu-public.viu-history-section .viu-more-stories .veu-media { border-radius:0; }
body.viu-public.viu-history-section main :focus-visible { outline:3px solid #2d2d2b; outline-offset:4px; }
@media(max-width:1000px) { .history-feature { grid-template-columns:1.1fr 1fr; } .history-feature-copy { padding:24px; } .history-archive-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:900px) {
 .viu-history-section .viu-magazine-mast { min-height:114px; display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:56px 50px; padding:6px 18px 0!important; gap:0; }
 .viu-history-section .viu-magazine-brand { grid-column:1/-1; grid-row:1; }
 .viu-history-section .viu-magazine-header .viu-magazine-brand img { width:230px; max-width:100%; }
 .viu-history-section .viu-magazine-mast .viu-group-tools { grid-column:1; grid-row:2; margin:0; justify-self:start; }
 .viu-history-section .viu-magazine-explore summary { bottom:7px; }
 .viu-history-section .viu-magazine-explore > nav { max-height:calc(100dvh - 130px); }
 .viu-history-section .viu-menu-label { color:#cbbca0; }
 .history-channel-intro { grid-template-columns:1fr; gap:12px; }
}
@media(max-width:650px) {
 body.viu-public.viu-history-section main.history-channel { padding:26px 18px 40px; }
 .history-channel-intro { margin-bottom:24px; }
 .history-channel-intro p { font-size:17px; }
 .history-feature { grid-template-columns:1fr; margin-bottom:40px; }
 body.viu-public.viu-history-section .history-feature-image img { min-height:0; max-height:none; height:auto!important; aspect-ratio:4/3; }
 .history-feature-copy { padding:24px; }
 .history-feature-label { margin-bottom:14px; }
 .history-archive-head { display:block; padding-bottom:20px; margin-bottom:24px; }
 .history-search { min-width:0; width:100%; margin-top:20px; }
 .history-archive-grid { grid-template-columns:1fr; gap:30px; }
 .history-edition { grid-template-columns:1fr; padding:26px 24px; gap:20px; margin-top:40px; }
 .history-edition img { grid-row:auto; max-width:280px; }
}
/* Neutralize legacy article-header styles on the section landing page. */
body.viu-public.viu-history-section main.history-channel { background:transparent!important; border-radius:0!important; }
body.viu-public.viu-history-section .history-channel-intro { background:transparent!important; border:0!important; border-radius:0!important; }
body.viu-public.viu-history-section .history-channel-intro h1,
body.viu-public.viu-history-section .history-feature-copy h2,
body.viu-public.viu-history-section .history-archive-head h2,
body.viu-public.viu-history-section .history-archive-card h3 { font-weight:400!important; background:transparent!important; }
body.viu-public.viu-history-section .history-archive-head { background:transparent!important; border-radius:0!important; }
