/*
 * WEB-RESEARCH-UX-01 — search entries on the Research surfaces (Search\Entry) and the Series offer component
 * (SeriesOffer: summary at the top of a Series, «Este Research forma parte de…» on its Research). Scoped to
 * .smq-rx-* and .smq-sx-*; buttons reuse .smq-course-cta-primary / -secondary unchanged.
 */

/* ---- Search entry --------------------------------------------------------------------------------------- */
.smq-rx-search{max-width:760px;color:var(--smq-navy-950)}
.smq-rx-search-label{display:block;margin:0 0 var(--smq-space-2);font-weight:600}
.smq-rx-search-row{display:flex;flex-wrap:wrap;gap:var(--smq-space-2)}
.smq-rx-search-input,.smq-rx-search-submit{min-height:44px;box-sizing:border-box;font:inherit;border-radius:6px}
.smq-rx-search-input{flex:1 1 240px;min-width:0;padding:0 var(--smq-space-3);color:var(--smq-navy-950);background:var(--smq-white);border:1px solid var(--smq-gray-600)}
.smq-rx-search-input::placeholder{color:var(--smq-gray-600)}
.smq-rx-search-submit{padding:0 var(--smq-space-5);font-weight:600;color:var(--smq-white);background:var(--smq-blue-interactive-strong);border:0;cursor:pointer}
.smq-rx-search :focus-visible{outline:2px solid var(--smq-blue-interactive);outline-offset:2px}
.smq-rx-search-scope{display:flex;flex-wrap:wrap;gap:var(--smq-space-1) var(--smq-space-4);margin:var(--smq-space-3) 0 0;padding:0;border:0;font-size:.9rem}
.smq-rx-search-scope legend{float:left;margin-right:var(--smq-space-2);color:inherit;opacity:.8}
.smq-rx-search-scope label{display:inline-flex;align-items:center;gap:6px;min-height:28px;cursor:pointer}
.smq-rx-search-scope input{width:18px;height:18px;margin:0}

/* Research hub band, under the hero */
.smq-rx-band{border-bottom:1px solid var(--smq-gray-200)}
.smq-rx-band-links{display:flex;flex-wrap:wrap;gap:var(--smq-space-2) var(--smq-space-5);margin:var(--smq-space-3) 0 0;font-size:.95rem}
.smq-rx-band-links a{color:var(--smq-blue-interactive-strong);font-weight:600;text-decoration:none}
.smq-rx-band-links a:hover,.smq-rx-band-links a:focus-visible{text-decoration:underline}

/* Series catalogue: inside its dark hero */
.smq-series-catalog-hero .smq-rx-search{margin-top:var(--smq-space-5);color:var(--smq-white)}
.smq-series-catalog-hero .smq-rx-search :focus-visible{outline-color:var(--smq-white)}

/* Discreet strip on Series and Research pages */
.smq-rx-explore{border-top:1px solid var(--smq-gray-200)}
.smq-rx-explore-row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:var(--smq-space-4)}
.smq-rx-search--compact{flex:1 1 360px;max-width:560px}
.smq-rx-search--compact .smq-rx-search-label{font-size:.9rem;color:var(--smq-gray-600)}
.smq-rx-explore-links{display:flex;flex-wrap:wrap;gap:var(--smq-space-2) var(--smq-space-5);font-size:.95rem}
.smq-rx-explore-links a{color:var(--smq-blue-interactive-strong);font-weight:600;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.smq-rx-explore-links a:hover,.smq-rx-explore-links a:focus-visible{text-decoration:underline}

/* ---- Series offer -------------------------------------------------------------------------------------- */
.smq-sx-summary{background:var(--smq-gray-50)}
.smq-sx-summary-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:var(--smq-space-6);align-items:start}
.smq-sx-summary-grid--single{grid-template-columns:minmax(0,760px)}
.smq-sx-card{background:var(--smq-white);border:1px solid var(--smq-gray-200);border-radius:8px;padding:var(--smq-space-5);color:var(--smq-navy-950)}
.smq-sx-card--research{border-left:4px solid var(--smq-blue-brand)}
.smq-sx-card-eyebrow{margin:0 0 var(--smq-space-1);font-family:var(--smq-font-mono);font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--smq-blue-interactive-strong)}
.smq-sx-card-title{margin:0 0 var(--smq-space-3);font-family:var(--smq-font-display);font-size:1.35rem;line-height:1.25}
.smq-sx-lead{margin:0 0 var(--smq-space-3);color:var(--smq-gray-600);line-height:1.55}
.smq-sx-members{list-style:none;margin:0 0 var(--smq-space-3);padding:0;display:grid;gap:var(--smq-space-2)}
.smq-sx-member{display:flex;gap:var(--smq-space-3);align-items:flex-start}
.smq-sx-member-n{flex:0 0 28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-family:var(--smq-font-mono);font-size:.8rem;background:var(--smq-gray-50);border:1px solid var(--smq-gray-200)}
.smq-sx-member--current .smq-sx-member-n{background:var(--smq-blue-brand);border-color:var(--smq-blue-brand);color:var(--smq-white)}
.smq-sx-member-body{display:flex;flex-wrap:wrap;align-items:center;gap:4px var(--smq-space-2);padding-top:3px;font-weight:600}
.smq-sx-member-body a{color:var(--smq-navy-950)}
.smq-sx-member-body a:hover,.smq-sx-member-body a:focus-visible{color:var(--smq-blue-interactive-strong)}
.smq-sx-here{font-weight:400;font-size:.85rem;color:var(--smq-blue-interactive-strong)}
.smq-sx-chips{display:inline-flex;flex-wrap:wrap;gap:4px}
.smq-sx-chip{font-family:var(--smq-font-mono);font-size:.7rem;font-weight:400;padding:2px 8px;border-radius:999px;border:1px solid var(--smq-gray-200);color:var(--smq-gray-600)}
.smq-sx-card-terms{margin:0 0 var(--smq-space-3);font-size:.9rem;color:var(--smq-gray-600);line-height:1.5}
.smq-sx-note{margin:0 0 var(--smq-space-3);line-height:1.5}
.smq-sx-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--smq-space-2);margin:0 0 var(--smq-space-3)}
.smq-sx-price-amount{font-family:var(--smq-font-display);font-size:2rem;font-weight:700;line-height:1}
.smq-sx-price-note{font-size:.85rem;color:var(--smq-gray-600)}
.smq-sx-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--smq-space-3);margin-top:var(--smq-space-2)}
.smq-sx-card > .smq-course-cta-primary,.smq-sx-card > .smq-course-cta-secondary{margin-right:var(--smq-space-3)}
.smq-sx-actions .smq-purchase-form{margin:0}
.smq-sx-actions button.smq-course-cta-primary{cursor:pointer;border:0;font:inherit}
.smq-sx-actions button.smq-sx-buy-secondary{background:none;border:0;padding:0;cursor:pointer;font:inherit;font-weight:600}
/* Secondary links sit on a light card: dark text, not the hero's white */
.smq-sx-card .smq-course-cta-secondary{color:var(--smq-blue-interactive-strong);border-bottom-color:currentColor}

/* Figure + enlargement */
.smq-sx-figure{position:relative;margin:0;background:var(--smq-white);border:1px solid var(--smq-gray-200);border-radius:8px;padding:var(--smq-space-3)}
.smq-sx-figure-img{display:block;width:100%;height:auto;border-radius:4px;background:var(--smq-navy-950)}
.smq-sx-figure-badge{display:inline-block;margin:0 0 var(--smq-space-2);font-family:var(--smq-font-mono);font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;padding:2px 10px;border-radius:999px;background:var(--smq-gray-50);border:1px solid var(--smq-gray-200)}
.smq-sx-figure-caption{margin:var(--smq-space-2) 0 0;font-size:.85rem;line-height:1.5;color:var(--smq-gray-600)}
.smq-sx-figure-source{display:block;margin-top:4px;font-family:var(--smq-font-mono);font-size:.75rem}
.smq-sx-figure-source a{color:var(--smq-blue-interactive-strong)}
.smq-sx-figure-expand{display:inline-flex;align-items:center;min-height:44px;font-weight:600;font-size:.9rem;color:var(--smq-blue-interactive-strong)}
.smq-sx-figure :focus-visible,.smq-sx-card :focus-visible{outline:2px solid var(--smq-blue-interactive);outline-offset:2px}

@media (max-width: 900px){
	.smq-sx-summary-grid{grid-template-columns:minmax(0,1fr);gap:var(--smq-space-4)}
	.smq-sx-card{padding:var(--smq-space-4)}
	.smq-sx-price-amount{font-size:1.7rem}
	.smq-rx-explore-row{align-items:stretch}
}
.smq-sx-figure .screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* D-RUX-03 — Membership price (engine view), on the light card and on the dark end panel */
.smq-sx-price--member{flex-direction:column;align-items:flex-start;gap:2px}
.smq-sx-price-label{font-size:.85rem;font-weight:600;color:var(--smq-blue-interactive-strong)}
.smq-sx-price-public{margin:-4px 0 var(--smq-space-2);font-size:.9rem;color:var(--smq-gray-600)}
.smq-sx-member-price{margin:-4px 0 var(--smq-space-2);font-size:.95rem}
.smq-sx-member-price strong{font-weight:700}
.smq-sx-member-note{margin:0 0 var(--smq-space-3);font-size:.8rem;line-height:1.45;color:var(--smq-gray-600);max-width:46ch}
.smq-course-price-panel .smq-sx-member-price{margin:var(--smq-space-1) 0;color:var(--smq-white)}
.smq-course-price-panel .smq-sx-member-note{color:var(--smq-gray-200);opacity:1;max-width:36ch}
.smq-sx-scope{margin:0 0 var(--smq-space-2);padding:var(--smq-space-2) var(--smq-space-3);font-size:.85rem;line-height:1.45;background:var(--smq-gray-50);border-radius:4px}

/* ---- Visual round 2 ----------------------------------------------------------------------------------------------- */
/* Representative image in the Series hero (dark background), in place of the «N Research» panel */
.smq-sx-hero-evidence{align-self:center}
.smq-sx-figure--hero{background:transparent;border:1px solid rgba(255,255,255,.18);padding:var(--smq-space-2)}
.smq-sx-figure--hero .smq-sx-figure-badge{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.25);color:var(--smq-white)}
.smq-sx-figure--hero .smq-sx-figure-caption{color:var(--smq-gray-200)}
.smq-sx-figure--hero .smq-sx-figure-source{color:var(--smq-gray-400)}
.smq-sx-figure--hero .smq-sx-figure-expand{color:var(--smq-white)}
.smq-sx-figure--hero :focus-visible{outline-color:var(--smq-white)}

/* Search bar right under the site header (Series and Research pages) */
.smq-rx-topbar{background:var(--smq-navy-900);border-bottom:1px solid rgba(255,255,255,.08);color:var(--smq-white)}
.smq-rx-topbar-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--smq-space-2) var(--smq-space-5);padding-top:var(--smq-space-2);padding-bottom:var(--smq-space-2)}
.smq-rx-topbar .smq-rx-search--compact{display:flex;flex-wrap:wrap;align-items:center;gap:var(--smq-space-2) var(--smq-space-3);flex:1 1 420px;max-width:640px;color:var(--smq-white)}
.smq-rx-topbar .smq-rx-search-label{margin:0;font-size:.85rem;color:var(--smq-gray-200);white-space:nowrap}
.smq-rx-topbar .smq-rx-search-row{flex:1 1 260px}
.smq-rx-topbar .smq-rx-search-input,.smq-rx-topbar .smq-rx-search-submit{min-height:40px}
.smq-rx-topbar .smq-rx-search :focus-visible{outline-color:var(--smq-white)}
.smq-rx-topbar .smq-rx-explore-links a{color:var(--smq-white);min-height:40px}

/* Summary at the top: one compact card, contents | price and purchase */
.smq-sx-summary.smq-course-section{padding-top:var(--smq-space-6);padding-bottom:var(--smq-space-6)}
.smq-sx-summary-grid--single{grid-template-columns:minmax(0,1fr)}
.smq-sx-card--summary{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:var(--smq-space-5);align-items:start}
.smq-sx-card--summary.smq-sx-card--contents-only{grid-template-columns:minmax(0,1fr)}
.smq-sx-card-buy{border-left:1px solid var(--smq-gray-200);padding-left:var(--smq-space-5)}
.smq-sx-card-contents .smq-sx-card-terms{margin-bottom:0}

/* End panel of the Series: compact, contents + price + button together, legible on the dark background */
.smq-seriepage #acquire.smq-course-section{padding-top:var(--smq-space-6);padding-bottom:var(--smq-space-6)}
.smq-seriepage #acquire .smq-course-price-panel{padding:var(--smq-space-5);gap:var(--smq-space-4);color:var(--smq-white)}
.smq-sx-acquire-includes{margin:0;font-size:.88rem;line-height:1.5;color:var(--smq-gray-200);max-width:60ch}
.smq-seriepage #acquire .smq-course-price-panel{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:center}
.smq-seriepage #acquire .smq-course-price-panel .smq-course-price-panel-action{flex:initial;align-items:flex-start}
.smq-seriepage #acquire .smq-course-price-panel .smq-course-price-row{display:block;margin:0}
.smq-seriepage #acquire .smq-course-price-panel .smq-sx-price{margin:0 0 var(--smq-space-1)}
.smq-seriepage #acquire .smq-course-price-panel .smq-sx-price-amount{color:var(--smq-white)}
.smq-seriepage #acquire .smq-course-price-panel .smq-sx-price-note,.smq-seriepage #acquire .smq-course-price-panel .smq-sx-price-public{color:var(--smq-gray-200)}
.smq-seriepage #acquire .smq-course-price-panel .smq-sx-price-label{color:#9CC7FF}
.smq-seriepage #acquire .smq-course-price-panel .smq-sx-member-price{margin:0 0 var(--smq-space-1);color:var(--smq-white)}
.smq-seriepage #acquire .smq-course-price-panel .smq-sx-member-note{margin:0 0 var(--smq-space-2);color:var(--smq-gray-200);opacity:1}

@media (max-width: 900px){
	.smq-seriepage #acquire .smq-course-price-panel{grid-template-columns:minmax(0,1fr)}
	.smq-sx-card--summary{grid-template-columns:minmax(0,1fr);gap:var(--smq-space-3)}
	.smq-sx-card-buy{border-left:0;border-top:1px solid var(--smq-gray-200);padding-left:0;padding-top:var(--smq-space-3)}
	/* Compact on mobile: the label stays for screen readers, field and button share one row */
	.smq-rx-topbar .smq-rx-search-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
	.smq-rx-topbar .smq-rx-search-row{flex-wrap:nowrap}
	.smq-rx-topbar .smq-rx-search-input{flex:1 1 0}
	.smq-rx-topbar .smq-rx-search-submit{padding:0 var(--smq-space-3)}
	.smq-rx-topbar .smq-rx-explore-links{gap:var(--smq-space-4);font-size:.88rem}
	.smq-rx-topbar .smq-rx-explore-links a{min-height:36px}
}

/* ---- WEB-RESEARCH-UX-02 · objective 1: WCAG AA contrast on the Research surfaces --------------------------------------
 * Loaded only on the Research hub, the catalogues, a Series and a Research. Measured with the local audit (contrast of
 * each visible text against its real background): the theme's gray-400 meta text was 2.9–3.1:1 and the brand blue of
 * eyebrows and links 3.8–4.3:1 at small sizes. Same hues, darker on light backgrounds, lighter on the dark heroes. */
.smq-course-section .smq-course-eyebrow,
.smq-sx-card-eyebrow,
.smq-seriepage-journey-badge,
.smq-rhub-latest-area,
.smq-rhub-latest-affordance,
.smq-rhub-series-affordance,
.smq-rhub a:not([class*="cta"]):not(.smq-rx-search-submit),
.smq-catalog-eyebrow{color:#066A96}
.smq-course-hero .smq-course-eyebrow,
.smq-series-catalog-hero .smq-series-catalog-eyebrow,
.smq-catalog-hero .smq-catalog-eyebrow{color:#4FB3E3}
.smq-rhub-latest-date,
.smq-rhub-series-area,
.smq-rhub-free-tag,
.smq-rhub-membership-caveat,
.smq-seriepage-journey-date,
.smq-seriepage-journey-tag,
.smq-seriepage-related-affordance,
.smq-irp-evidence-source,
.smq-series-catalog-entry-area,
.smq-series-catalog-entry-count,
.smq-catalog-row-meta-item,
.smq-catalog-pagination-prev,
.smq-catalog-pagination-next,
.smq-catalog-pagination-ellipsis{color:var(--smq-gray-600)}
/* Objective 1: touch targets on mobile (audit: 17-22 px high links and pagination) */
@media (max-width: 700px){
	.smq-irp-evidence-expand,.smq-irp-series-link,.smq-seriepage-membership-link,.smq-catalog-pagination-next,.smq-catalog-pagination-prev{display:inline-flex;align-items:center;min-height:44px}
	.smq-catalog-pagination-page{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
}

/* ---- WEB-RESEARCH-UX-02 · objective 2: catalogues ------------------------------------------------------------------ */
/* Catálogo de Research: the scope reads first in the meta, and the two types are told apart by more than colour */
.smq-catalog-row-scope{font-weight:600;color:var(--smq-navy-950)}
.smq-catalog-row-type--series{background:var(--smq-navy-900);color:var(--smq-white)}
#catalogo.smq-course-section{padding-top:var(--smq-space-3)}
/* WEB-RESEARCH-UX-03: standalone Research panel, active member — effective price first, public price as a labelled reference */
.smq-course-price-row--member{display:block}
.smq-course-price-row--member .smq-course-price-label{margin:0 0 2px;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#4FB3E3}
.smq-course-price-row--member .smq-course-price{margin:0}
.smq-course-price-row--member .smq-course-price-public{margin:4px 0 0;font-size:.9rem;color:var(--smq-gray-200)}
/* WEB-RESEARCH-UX-03: Research panels with a Membership line — no paragraph gap between the price and that line (course panels untouched) */
.smq-course-price-panel:has(.smq-sx-member-note) .smq-course-price{margin:0}
.smq-course-price-panel:has(.smq-sx-member-note) .smq-course-price-row + .smq-sx-member-price{margin-top:var(--smq-space-1)}
