/* Home previews: the first screen explains the choices; full lists have their own pages. */
body[data-edition] .site-header .brand{--logo-width:112px}
.home-page .hero{margin-top:16px;min-height:0;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.home-page .herotext{padding:22px 28px}
.home-page .hero h1{font-size:46px!important;line-height:1.05!important;margin:8px 0 10px}
.home-page .hero h1 em{display:inline;margin:0;font-size:1em}
.home-page .herotext p{font-size:16px!important;line-height:1.4;margin:10px 0 14px;max-width:54ch}
.home-page .hero .hero-link{min-height:36px;padding:7px 12px;font-size:14px}
.home-page .hero-territory{margin-top:8px;line-height:1.3}
.home-page .heroimage{min-height:0}
.hero-photo-credits{position:absolute;bottom:10px;left:10px;max-width:calc(100% - 20px);z-index:2;background:var(--paper);border:1px solid var(--ink);font-size:12px}
.hero-photo-credits summary{cursor:pointer;min-height:28px;padding:5px 10px;line-height:1.4}
.hero-photo-credits .caption{position:static;display:block;max-width:330px;border:0;border-top:1px solid var(--ink);padding:8px 10px;line-height:1.5}
.hero-photo-credits a{display:inline-block;min-height:24px;text-decoration:underline}
.home-page .county-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0 28px;border:0}
html body .home-page .county-shortcuts a[data-tone]{display:grid;grid-template-columns:26px minmax(0,1fr) 12px;gap:8px;padding:10px 12px;min-height:56px;border:1px solid var(--ink);background:var(--paper);color:var(--ink);font-size:16px;line-height:1.2}
.home-page .county-shortcuts .ap-icon{width:26px;height:26px}
html body .home-page .county-shortcuts a[data-tone]:is(:hover,:focus-visible){background:var(--brand-blue);color:var(--brand-yellow)}
.home-page #descobreix #results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;overflow:visible;padding:0;scroll-snap-type:none}
.home-page #results>.card{min-width:0;margin:0}
.home-page #results .cardphoto,.home-page #results>.card>.photo-preview-link,.home-page #results>.card>.hub-picto{height:165px;min-height:0;margin:0 0 14px;overflow:hidden;border-radius:4px}
.home-page #results .content-cover{display:block;width:100%;height:100%;object-fit:cover}
.home-page #results .hub-picto{display:grid;place-items:center}
.home-page #results .hub-picto .ap-icon{width:56px;height:56px}
.home-page #results .cardphoto>.hub-picto{width:100%;height:100%;border:0;background:var(--brand-yellow)}
.home-page #results .meta{font-size:14px}
.home-guides-more{display:flex;justify-content:center;margin:24px 0 0}
.home-guides-more a{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.home-page #agenda{border:1px solid var(--ink);padding:24px;background:var(--paper)}
.home-page #agenda .sectionhead{margin-bottom:18px}
.home-plans-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.home-plans-grid:has(>details[open]){align-items:start}
.home-plans-grid .ephemeral-card.agenda-compact{min-width:0;margin:0;border:1px solid var(--ink);border-radius:4px;background:var(--paper)}
.home-plans-grid .ephemeral-card.agenda-compact>summary{grid-template-columns:minmax(0,1fr) 32px;grid-template-areas:"date toggle" "copy copy";gap:16px 12px;padding:16px;min-height:252px;height:100%;align-content:start;box-sizing:border-box;cursor:pointer}
.home-plans-grid .ephemeral-card.agenda-compact[open]>summary{height:auto;min-height:0}
.home-plans-grid .agenda-compact .agenda-date-block{grid-area:date;flex-direction:row;align-items:center;justify-self:start;align-self:start;gap:6px;width:max-content;max-width:100%;min-height:44px;padding:8px 10px;border:0;font-size:14px}
.home-plans-grid .agenda-date-block strong{font-size:28px}
.home-plans-grid .agenda-date-prefix{font-size:12px}
.home-plans-grid .agenda-compact .agenda-row-text{grid-area:copy;gap:8px}
.home-plans-grid .ephemeral-card.agenda-compact h3{font-size:23px!important;line-height:1.2;margin:0;font-weight:400}
.home-plans-grid .ap-category{font-size:12px;padding:3px 5px;gap:5px;align-self:start;margin:0}
.home-plans-grid .ap-category .ap-icon{width:18px;height:18px}
.home-plans-grid .agenda-compact .ephemeral-open{grid-area:toggle;justify-self:end;width:32px;height:32px;min-height:32px;font-size:22px;border-radius:4px}
.home-plans-grid .agenda-compact>summary:is(:hover,:focus-visible){background:var(--paper);outline:2px solid var(--ink);outline-offset:-3px;border-radius:4px}
.home-plans-grid .agenda-compact[open] .ephemeral-open{background:var(--brand-blue);color:var(--brand-yellow)}
.home-plans-grid .agenda-compact>summary::after{content:none}
.home-plans-grid .ephemeral-open>span[aria-hidden]{display:inline-block}
.home-plans-grid .agenda-compact .meta{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px}
.home-plans-grid .agenda-compact .ephemeral-time{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.45}
.home-plans-grid .agenda-compact .ephemeral-body{margin:0 16px;padding:0 0 16px;border-top:1px solid var(--ink);overflow-wrap:anywhere}
.home-plans-grid .ephemeral-body dl{display:grid;grid-template-columns:1fr;gap:4px;margin:12px 0}
.home-plans-grid .ephemeral-body dt{font-weight:700}.home-plans-grid .ephemeral-body dd{margin:0 0 10px}
.home-plans-grid .ephemeral-body img{max-width:100%;height:auto}
.home-plans-empty{font-size:16px}.home-page .agenda-home-more{margin-top:20px}
.back-to-top{right:4px;width:44px;height:44px;min-height:44px;padding:0;justify-content:center;gap:0;font-size:22px;border-radius:4px}
.back-to-top span{display:none}
.site-footer{padding:32px 0 24px}
.site-footer .wrap{display:grid;grid-template-columns:1.15fr repeat(3,minmax(0,1fr));gap:24px 36px}
.site-footer .footer-brand p{font-size:15px;line-height:1.5;margin:8px 0}
.site-footer .footer-brand .footer-edition{font-family:var(--font-heading);font-size:20px;margin-top:0}
.site-footer .footer-group h2{font-size:21px!important;line-height:1.2;margin:12px 0}
.site-footer .footer-group nav,.site-footer .footer-sections{display:grid;grid-template-columns:1fr;gap:2px}
.site-footer .footer-group nav a{min-height:32px;font-size:15px;line-height:1.3}
.site-footer .footer-meta{grid-column:1/-1;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:start;gap:12px 24px;padding-top:18px;border-top:1px solid var(--brand-yellow);font-size:12px}
@media(max-width:1000px){.home-page .county-shortcuts a[data-tone]{font-size:15px;padding:9px;grid-template-columns:22px minmax(0,1fr) 10px}.home-page .county-shortcuts .ap-icon{width:22px;height:22px}.home-page .hero h1{font-size:42px!important}.home-plans-grid .ephemeral-card.agenda-compact>summary{padding:16px}.site-footer .wrap{grid-template-columns:repeat(3,minmax(0,1fr))}.site-footer .footer-brand{grid-column:1/-1;display:flex;align-items:center;gap:24px}.site-footer .footer-brand p{margin:0}}
@media(max-width:700px){
 body[data-edition] .site-header .brand{--logo-width:96px}
 .home-page .hero{margin-top:12px;grid-template-columns:1fr}.home-page .herotext{padding:16px 18px}
 .home-page .hero h1{font-size:36px!important;margin:6px 0 8px;max-width:100%}.home-page .herotext p{font-size:16px!important;line-height:1.35;margin:8px 0 10px}
 .home-page .hero .eyebrow{font-size:12px}.home-page .hero-territory{display:none}
 .home-page .heroimage{display:none}.home-page .hero-mobile-photo .heroimage{display:block;min-height:120px;height:120px}
 .home-page .county-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:12px 0 24px}
 .home-page .county-shortcuts a:last-child:nth-child(odd){grid-column:1/-1}
 html body .home-page .county-shortcuts a[data-tone]{min-height:50px;font-size:15px;padding:8px;grid-template-columns:22px minmax(0,1fr) 10px;gap:6px}
 .home-page .county-shortcuts .ap-icon{width:22px;height:22px}
 .home-page #descobreix #results{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}
 .home-page #results .cardphoto,.home-page #results>.card>.photo-preview-link,.home-page #results>.card>.hub-picto{height:110px;margin-bottom:10px}
 .home-page #results .save{width:30px;height:30px;right:7px;top:7px;font-size:18px}
 .home-guides-more a{width:100%}.home-page #agenda{padding:18px 14px}
 .home-plans-grid{grid-template-columns:1fr;gap:12px}.home-plans-grid .ephemeral-card.agenda-compact>summary{min-height:0;height:auto;padding:16px;gap:12px}
 .home-plans-grid .ephemeral-card.agenda-compact h3{font-size:23px!important}
 .site-footer .wrap{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px}.site-footer .footer-brand{display:block}.site-footer .footer-brand p{margin:8px 0}.site-footer .footer-brand .brand{--logo-width:112px}
 .site-footer .footer-network{grid-column:1/-1}.site-footer .footer-network nav{grid-template-columns:repeat(2,minmax(0,1fr))}.site-footer .footer-group nav a{font-size:14px;min-height:34px}.site-footer .footer-meta{display:grid;grid-template-columns:1fr;gap:10px}
}
@media(prefers-reduced-motion:reduce){.home-page .card:hover img{transform:none}}
@media(max-width:700px) and (max-height:740px){.home-page .hero .hero-link{display:none}}
@media(max-width:360px){.home-page .hero .eyebrow{display:none}.home-page .hero h1{font-size:32px!important}.home-page .herotext p{font-size:15px!important;line-height:1.25}html body .home-page .county-shortcuts a[data-tone]{font-size:14px;min-height:46px;padding:7px;grid-template-columns:20px minmax(0,1fr) 10px}.home-page .county-shortcuts .ap-icon{width:20px;height:20px}}
