.resource-heading{padding-bottom:24px}
.resource-controls{display:flex;flex-wrap:wrap;align-items:end;gap:14px;margin:24px 0 12px}
.resource-controls label{display:grid;gap:6px;font-size:13px;color:var(--muted)}
.resource-controls input,.resource-controls button{font:inherit;border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:var(--card);color:var(--ink);min-height:42px}
.resource-controls button{cursor:pointer;font-weight:650}.resource-controls button[type=submit]{background:var(--blue);color:#fff}
.resource-status{font-size:14px;color:var(--ink)}.resource-help{font-size:12px;line-height:1.5;color:var(--muted)}
@media(max-width:560px){.resource-controls label{flex:1 1 140px;min-width:0}.resource-controls input{width:100%;min-width:0;box-sizing:border-box}}
/* La navegación ampliada necesita menú compacto antes de invadir el logo. */
@media(max-width:1280px){
.header-nav--desktop{display:none}.header-menu-button{display:block}.header-nav--mobile:not([hidden]){display:block}
.header-inner--centered{height:auto;grid-template-columns:1fr auto 1fr;grid-template-rows:auto auto;gap:12px;padding:14px 0 10px}
.header-nav-slot{grid-column:1;grid-row:1}.brand--centered{grid-column:2;grid-row:1}
.header-actions--right{display:contents}.header-actions--right .theme-toggle{grid-column:3;grid-row:1;justify-self:end}
.header-calendar{position:static;grid-column:1 / -1;grid-row:2;justify-self:stretch;max-width:none}
.header-calendar .header-date{position:static}
}

.resource-sources{margin-top:20px;color:var(--muted);font-size:12px;line-height:1.6}.resource-sources-label{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.resource-sources p{margin:3px 0}.resource-sources a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}.resources-page .cd2-event{justify-content:space-between}.resources-page .cd2-event-main{flex:0 0 auto}.resources-page .cd2-next{border-bottom:0;padding-bottom:20px}.resources-page .ha-seasons-source{text-align:left}.resources-page .ha-seasons-note{margin:0}

/* Un único formulario acompaña la consulta, dentro de main y bajo el header. */
.resources-page{--resource-header-height:88px;--resource-toolbar-height:94px}.resource-heading{padding-bottom:12px}.resource-toolbar{position:sticky;top:var(--resource-header-height);z-index:19;background:var(--paper);border-top:1px solid var(--line);border-bottom:1px solid var(--line);box-shadow:0 4px 12px rgba(12,25,48,.04)}.resource-toolbar-inner{padding:10px 0}.resource-toolbar .resource-controls{margin:0;gap:10px}.resource-toolbar .resource-controls label{font-size:11px;gap:3px}.resource-toolbar .resource-controls input,.resource-toolbar .resource-controls button{min-height:38px;padding:8px 11px;font-size:13px}.resource-toolbar .resource-status{margin:6px 0 0;font-size:11px}.resource-toolbar-compact{display:none}.resource-context{padding:12px 0 24px}.resource-context .resource-help{margin:0}.resource-context .resource-sources{margin-top:14px}.resources-page [id]{scroll-margin-top:calc(var(--resource-header-height) + var(--resource-toolbar-height) + 16px)}
@media(max-width:760px),(max-height:500px){.resource-toolbar-inner{padding:8px 0;max-height:calc(100dvh - var(--resource-header-height) - 12px);overflow:auto}.resource-toolbar-compact{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;line-height:1.4}.resource-toolbar-compact span{min-width:0}.resource-toolbar-toggle{flex:0 0 auto;border:1px solid var(--line);border-radius:8px;padding:7px 10px;background:var(--card);color:var(--ink);font:inherit;font-weight:650;cursor:pointer}.resource-toolbar:not([data-expanded="true"]) .resource-controls{display:none}.resource-toolbar .resource-status{display:none}.resource-toolbar[data-expanded="true"] .resource-controls{margin-top:10px}.resource-toolbar .resource-controls label{flex:1 1 130px;min-width:0}.resource-toolbar .resource-controls input{width:100%;min-width:0}.resource-toolbar .resource-controls button{min-height:38px}}

/* Fuentes al cierre de Recursos, debajo de todas las tarjetas. */
.resources-page .resource-sources-section{padding:0 0 35px}
.resources-page .resource-sources-section .resource-sources{margin-top:0;padding-top:20px;border-top:1px solid var(--line)}
