/* 1.2.0-rc22 · Result cards: searched words, category, file size, members-only lock and auto filters. */
#cpds-document-search .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}

/* Searched words in the title */
#cpds-document-search .cpds-card h3 mark.cpds-hit{padding:0 1px;border-radius:3px;background:linear-gradient(transparent 58%,rgba(184,242,78,.75) 58%);color:inherit;font-weight:900}

/* Meta line: every label is for screen readers, each value carries a small icon */
section#cpds-document-search .cpds-card .cpds-meta .cpds-meta__item dt{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
section#cpds-document-search .cpds-card .cpds-meta .cpds-meta__item dt::before{content:none!important;display:none!important}
section#cpds-document-search .cpds-card .cpds-meta .cpds-meta__item dd{color:#53665a}
section#cpds-document-search .cpds-card .cpds-meta .cpds-meta__item dd::before{content:"";display:inline-block;width:14px;height:14px;margin-right:5px;vertical-align:-2px;background-position:center;background-repeat:no-repeat;background-size:14px 14px}
section#cpds-document-search .cpds-card .cpds-meta .cpds-meta__item--category dd::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23048b37' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E")}
section#cpds-document-search .cpds-card .cpds-meta .cpds-meta__item--date dd::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c28013' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E")}
section#cpds-document-search .cpds-card .cpds-meta .cpds-meta__item--size dd::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232874c6' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9zM14 3v6h6'/%3E%3C/svg%3E")}
section#cpds-document-search .cpds-card .cpds-meta .cpds-meta__item--downloads dd::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315975a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 17v4h16v-4'/%3E%3C/svg%3E")}

/* «Socios» label (only when the page mixes open and members-only documents) */
section#cpds-document-search .cpds-card .cpds-meta .cpds-meta__item--access dd{display:inline-flex;align-items:center;padding:2px 9px 2px 7px;border-radius:40px;background:#07301f;color:#b8f24e!important;font-weight:800!important}
section#cpds-document-search .cpds-card .cpds-meta .cpds-meta__item--access dd::before{width:12px;height:12px;margin-right:4px;background-size:12px 12px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8f24e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E")}

/* Lock inside «Descargar» and the note above the results */
#cpds-document-search .cpds-lock{flex:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
#cpds-document-search .cpds-download.cpds-download--members::before{content:none!important;display:none!important}
#cpds-document-search .cpds-download--members .cpds-lock{margin-right:6px;vertical-align:-2px}
#cpds-document-search .cpds-access-note,#cpds-document-search .cpds-match-note{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin:6px 0 0;color:#40554a;font-size:13px;line-height:1.4}
#cpds-document-search .cpds-access-note a{color:#048b37;font-weight:700;text-decoration:underline;text-underline-offset:2px}
#cpds-document-search .cpds-access-note .cpds-lock{color:#048b37}
#cpds-document-search .cpds-match-note{display:block;padding:8px 12px;border-radius:12px;background:#fff7e0;color:#5d4a10}

/* Filters that apply themselves: the button is only for visitors without JavaScript */
#cpds-document-search .cpds-filters-hint{margin:0;font-size:12px;line-height:1.35}
#cpds-document-search .cpds-filters-hint[hidden]{display:none!important}
@media(min-width:841px){#cpds-document-search .cpds-filters form>.cpds-filters-hint{grid-column:1/-1;grid-row:3}}
#cpds-document-search.cpds--auto-filters .cpds-filters-submit{display:none!important}
/* Phones and tablets: one filter per row (before rc22 the ids placed the selects in three squeezed columns) */
@media(max-width:840px){section#cpds-document-search .cpds-filters form>label,section#cpds-document-search .cpds-filters form>select,section#cpds-document-search .cpds-filters form>button,section#cpds-document-search .cpds-filters form>.cpds-filters-hint{grid-column:1/-1!important;grid-row:auto!important;width:100%}}
@media(prefers-reduced-motion:reduce){#cpds-document-search .cpds-card h3 mark.cpds-hit{transition:none}}
/* rc25: automatic retry notice, word chips, tips and the «Solicítalo» card (mockup «Buscador: pedir lo que falta»). */
section#cpds-document-search .cpds-retry{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 12px;align-items:start;margin:0 0 16px;padding:12px 14px;border:1px solid #d6ebb3;border-radius:14px;background:#f2f9e6;color:#293c31;font-size:14px;line-height:1.5}
section#cpds-document-search .cpds-retry p{margin:0;color:inherit}
section#cpds-document-search .cpds-retry strong{color:#0a1f15}
section#cpds-document-search .cpds-retry-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--cpds-lime,#b8f24e);color:var(--cpds-forest,#07301f)}
section#cpds-document-search .cpds-retry-literal{display:block;margin-top:2px;color:#0b4a30;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
section#cpds-document-search .cpds-retry-words{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0;padding:0;list-style:none}
section#cpds-document-search .cpds-retry-words li{display:inline-flex;align-items:center;gap:4px;margin:0;padding:3px 10px;border:1px solid #dbe5de;border-radius:40px;background:#fff;font:600 12.5px/1.4 "Schibsted Grotesk",Inter,sans-serif}
section#cpds-document-search .cpds-retry-words li.is-hit{border-color:#bfe39a;color:#19733a}
section#cpds-document-search .cpds-retry-words li.is-miss{color:#5b6d62;text-decoration:line-through}
section#cpds-document-search .cpds-empty-tips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:12px 0 0;padding:0;list-style:none}
section#cpds-document-search .cpds-empty-tips li{margin:0;padding:4px 11px;border:1px solid #dbe5de;border-radius:40px;background:#fff;color:#293c31;font-size:13px}
section#cpds-document-search .cpds-empty-tips a{color:#0b4a30;font-weight:700}
section#cpds-document-search .cpds-req{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 20px;align-items:center;margin:20px 0 0;padding:18px 20px;border:1.5px solid #0b4a30;border-radius:18px;background:#fff;font-family:"Schibsted Grotesk",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
section#cpds-document-search .cpds-req.is-strip{padding:14px 16px;border:1px dashed #9fc3ac;background:#f5f8f6}
section#cpds-document-search .cpds-req-body{min-width:0}
section#cpds-document-search .cpds-req-eyebrow{display:block;color:#0b4a30;font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
section#cpds-document-search .cpds-req h3{margin:2px 0 4px!important;color:#0a1f15!important;font:800 19px/1.25 inherit!important;font-family:inherit!important}
section#cpds-document-search .cpds-req.is-strip h3{font-size:16px!important}
section#cpds-document-search .cpds-req p{margin:0;color:#293c31;font-family:"Open Sans",system-ui,sans-serif;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
section#cpds-document-search .cpds-req-q{color:#0a1f15;font-weight:700}
section#cpds-document-search .cpds-req-quota{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
section#cpds-document-search .cpds-req-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:40px;background:#e5f7ec;color:#19733a;font-size:12.5px;font-weight:700}
section#cpds-document-search .cpds-req-pill.is-off{background:#edf2ee;color:#5b6d62}
section#cpds-document-search .cpds-req-pill.is-warn{background:#fff4e3;color:#8a4b00}
section#cpds-document-search .cpds-req-pill .cpds-lock{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2}
section#cpds-document-search .cpds-req-meter{display:inline-flex;gap:3px}
section#cpds-document-search .cpds-req-meter i{width:14px;height:6px;border-radius:3px;background:#cfe0d5}
section#cpds-document-search .cpds-req-meter i.is-used{background:#0b4a30}
section#cpds-document-search .cpds-req-daily{color:#5b6d62;font-family:"Open Sans",system-ui,sans-serif;font-size:12.5px}
section#cpds-document-search .cpds-req-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch;min-width:230px}
section#cpds-document-search .cpds-req-btn{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:44px;padding:10px 18px;border:1px solid #dbe5de;border-radius:40px;background:#fff;color:#0a1f15!important;font-size:14px;font-weight:700;line-height:1.2;text-align:center;text-decoration:none!important}
section#cpds-document-search .cpds-req-btn.is-primary{border-color:transparent;background:var(--cpds-lime,#b8f24e);color:var(--cpds-forest,#07301f)!important}
section#cpds-document-search .cpds-req-btn:hover,section#cpds-document-search .cpds-req-btn:focus-visible{border-color:#0b4a30}
section#cpds-document-search .cpds-req-fine{color:#5b6d62;font-size:12px;text-align:center}
@media (max-width:760px){
section#cpds-document-search .cpds-req{grid-template-columns:minmax(0,1fr);padding:16px}
section#cpds-document-search .cpds-req-actions{min-width:0}
}
