/* CordIA_Prev · October 2026. Shared layout and visual system. */
:root {
  --ink:#172b36; --ink-soft:#405460; --ink-faint:#667680;
  --paper:#f6f7f8; --surface:#fff; --surface-soft:#eef2f4; --line:#dfe5e8;
  --accent:#973d46; --q1:#327767; --q2:#4e769b; --q3:#b36d40;
  --q4:#973d46; --d1:#b88e40; --unassigned:#c3cbd0;
  --radius:12px; --soft-accent:#f7eef0;
}
:root[data-theme="dark"] {
  --ink:#e9eff1; --ink-soft:#c0ccd2; --ink-faint:#99acb7;
  --paper:#111b22; --surface:#19262f; --surface-soft:#22343f; --line:#354852;
  --accent:#e1939a; --q1:#72bba4; --q2:#87accb; --q3:#d8a375;
  --q4:#e1939a; --d1:#ddbd79; --unassigned:#647680; --soft-accent:#382c35;
}
html { scroll-padding-top:24px; }
body { font-size:14px; }
button,input,select,textarea { font-family:'Inter',sans-serif; }
button,a,input,select,textarea,summary { -webkit-tap-highlight-color:transparent; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:3px solid var(--q2); outline-offset:4px;
}
button:disabled { cursor:wait; opacity:.65; }
.ui-icon { width:20px; height:20px; flex:none; vertical-align:middle; }
.skip-link { position:fixed; left:20px; top:-70px; z-index:1000; padding:12px 20px; background:var(--ink); color:var(--surface); border-radius:8px; }
.skip-link:focus { top:12px; }
.container { max-width:1344px; padding:38px 42px 64px; }
.container:focus { outline:none; }
.view.active { animation:page-in .22s ease-out; }
@keyframes page-in { from { opacity:.4; transform:translateY(5px); } to { opacity:1; transform:none; } }

/* Masthead: identity above, a single predictable navigation row below. */
.masthead { background:var(--surface); border-bottom:1px solid var(--line); }
.masthead-inner { max-width:1344px; padding:22px 42px 0; align-items:center; gap:20px; }
.brand { gap:12px; }
.brand-mark { padding:9px; border-radius:12px; background:var(--soft-accent); }
.brand-title { font-size:1.85rem; font-weight:650; letter-spacing:-.8px; }
.brand-sub { font-size:.71rem; margin-top:5px; }
.masthead-institutions { display:flex; gap:26px; align-items:center; margin-left:auto; }
.masthead-institutions img { width:85px; height:37px; object-fit:contain; background:#fff; border-radius:4px; padding:3px; }
.masthead-institutions img:nth-child(2) { width:114px; }
.header-nav { width:100%; display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:20px; border-top:1px solid var(--line); }
.tabs { display:flex; gap:16px; min-width:0; overflow-x:auto; scrollbar-width:thin; }
.tab { display:flex; gap:8px; align-items:center; padding:17px 8px 15px; font-size:.79rem; white-space:nowrap; border-bottom:3px solid transparent; margin:0; }
.tab .ui-icon { width:17px; height:17px; }
.tab.active { color:var(--accent); border-color:var(--accent); }
.theme-control { flex:none; align-self:center; margin:0; border-radius:6px; padding:5px 8px; font-size:.65rem; }
.affil { display:none; }

/* Restrained, consistent page openings. */
.section-editorial-hero,.congress-hero,.impact-hero,.page-heading {
  display:flex; align-items:center; justify-content:space-between; gap:38px;
  min-height:0; padding:0 0 27px; margin:0 0 26px; border:0; border-bottom:1px solid var(--line);
  border-radius:0; background:none; color:var(--ink); box-shadow:none; overflow:visible;
}
.section-editorial-hero::before,.congress-hero::before,.congress-hero::after,.impact-hero::before,.impact-hero::after { display:none; }
.section-eyebrow,.congress-kicker,.impact-kicker {
  display:block; margin:0 0 12px; color:var(--accent); font-size:.65rem; letter-spacing:1.5px; font-weight:700; text-transform:uppercase;
}
.section-eyebrow::before,.congress-kicker > span,.impact-kicker > span { display:none; }
.section-editorial-hero h2,.congress-hero h2,.impact-hero h2,.page-heading h2 {
  margin:0 0 12px; max-width:850px; font-size:clamp(2rem,3.1vw,2.8rem); line-height:1.13; letter-spacing:-1.15px; font-weight:600;
}
.section-editorial-hero h2 em,.congress-hero h2 em,.impact-hero h2 em,.page-heading h2 em { color:var(--accent); font-weight:400; }
.section-editorial-hero p,.congress-hero-copy > p,.impact-hero-copy > p,.page-heading p { max-width:710px; margin:0; color:var(--ink-faint); font-size:.83rem; line-height:1.65; }
.section-hero-number { min-width:178px; padding:6px 0 6px 28px; text-align:left; border:0; border-left:1px solid var(--line); border-radius:0; background:none; backdrop-filter:none; }
.section-hero-number strong { font-family:'Inter',sans-serif; font-size:2rem; font-weight:500; letter-spacing:-1.3px; }
.section-hero-number span,.section-hero-number small { color:var(--ink-faint); font-size:.66rem; line-height:1.5; margin:0; }
.section-hero-number strong + span { margin-top:8px; }
.section-hero-number span + strong { margin:7px 0; font-size:1.8rem; }
.page-caption { max-width:180px; font-size:.69rem; color:var(--ink-faint); }

/* Shared metrics and charts. */
.metrics-hero.editorial-metrics { grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:24px; }
.editorial-metrics .metric-card { min-height:143px; padding:19px 20px 17px; border:1px solid var(--line); border-radius:var(--radius); box-shadow:none; }
.editorial-metrics .metric-card::before { display:none; }
.metric-top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.metric-top .ui-icon { color:var(--accent); width:18px; height:18px; }
.metric-top .mc-lbl { color:var(--ink-soft); font-size:.69rem; font-weight:500; margin:0; }
.editorial-metrics .metric-card .mc-val { margin:17px 0 7px; font:500 2.45rem/1 'Inter',sans-serif; color:var(--ink); letter-spacing:-1.5px; font-variant-numeric:tabular-nums; }
.mc-sub { font-size:.66rem; color:var(--ink-faint); }
.mc-unit { font-size:1rem; letter-spacing:-.3px; }
.metric-card.green .metric-top .ui-icon { color:var(--q1); }
.metric-card.blue .metric-top .ui-icon { color:var(--q2); }
.metric-card.gold .metric-top .ui-icon { color:var(--d1); }
.chart-card,.metrics-primary-grid .chart-card,.metrics-secondary-grid .chart-card,.project-insights .chart-card {
  padding:24px; border-radius:var(--radius); background:var(--surface); border:1px solid var(--line); box-shadow:none; min-width:0;
}
.chart-grid { gap:20px; }
.metrics-primary-grid { grid-template-columns:.9fr 1.1fr; }
.metrics-secondary-grid { margin-top:24px; align-items:start; }
.chart-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:23px; }
.chart-heading h3,.metrics-primary-grid .chart-card h3,.metrics-secondary-grid .chart-card h3 { font:600 1.1rem/1.3 'Source Serif 4',serif; margin:4px 0 0; }
.chart-kicker { display:block; color:var(--ink-faint); text-transform:uppercase; letter-spacing:1.15px; font-size:.58rem; font-weight:600; }
.chart-unit { color:var(--ink-faint); font-size:.62rem; text-align:right; }
.chart-symbol { width:33px; height:33px; display:grid; place-items:center; background:var(--surface-soft); color:var(--ink-faint); border-radius:8px; }
.chart-note { color:var(--ink-faint); font-size:.64rem; line-height:1.55; margin-top:20px; }
.donut-wrap { display:flex; gap:24px; align-items:center; min-height:209px; }
.donut { width:185px; height:185px; flex:0 0 185px; }
.donut-legend { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.dl-item { display:grid; grid-template-columns:8px minmax(0,1fr) auto; align-items:center; gap:9px; width:100%; padding:8px 0; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--ink-soft); font:400 .67rem/1.3 'Inter'; text-align:left; }
.dl-item:last-child { border-bottom:0; }
.dl-dot { width:7px; height:7px; border-radius:2px; }
.dl-val { display:flex; gap:7px; color:var(--ink); font-weight:600; margin:0; }
.dl-val small { font-size:.63rem; font-weight:400; color:var(--ink-faint); min-width:25px; text-align:right; }
.annual-chart { height:209px; position:relative; padding:18px 0 0 25px; }
.annual-grid { position:absolute; inset:18px 0 25px; display:flex; flex-direction:column; justify-content:space-between; pointer-events:none; }
.annual-grid span { display:block; border-top:1px dashed var(--line); color:var(--ink-faint); font-size:.55rem; line-height:1; }
.annual-columns { display:flex; position:relative; gap:9px; height:100%; align-items:stretch; }
.annual-column { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; }
.annual-bar-space { width:100%; height:calc(100% - 25px); display:flex; align-items:flex-end; justify-content:center; }
.annual-bar { position:relative; display:block; width:74%; max-width:33px; background:#587d8a; border-radius:3px 3px 0 0; transition:background .15s; }
.annual-column:hover .annual-bar { background:var(--accent); }
.annual-column.current .annual-bar { background:var(--accent); }
.annual-bar b { position:absolute; bottom:calc(100% + 5px); left:50%; transform:translateX(-50%); color:var(--ink-soft); font-size:.61rem; font-weight:500; }
.annual-label { padding-top:8px; color:var(--ink-faint); font-size:.53rem; }
.bar-row { display:grid; grid-template-columns:minmax(0,1fr) 110px 25px; gap:14px; margin:0 0 17px; }
.bar-row .bl { width:auto; flex:none; text-align:left; font-size:.74rem!important; line-height:1.4; font-weight:400; overflow-wrap:anywhere; }
.bar-row .bt { width:100%; height:6px; border-radius:3px; background:var(--surface-soft); }
.bar-row .bf { min-width:0; padding:0; border-radius:3px; box-shadow:none; background:var(--ink-faint); animation:none; }
.bar-row .bf.green { background:var(--q1); }.bar-row .bf.blue { background:var(--q2); }.bar-row .bf.accent { background:var(--accent); }.bar-row .bf.gold { background:var(--d1); }
.bar-value { text-align:right; color:var(--ink); font-size:.72rem; font-weight:500; font-variant-numeric:tabular-nums; }
.text-action { display:flex; gap:12px; align-items:center; padding:7px 0; border:0; background:none; color:var(--accent); font-size:.71rem; cursor:pointer; }
.metrics-featured { display:grid; grid-template-columns:110px minmax(0,1fr) auto; padding:25px 28px; gap:26px; margin:23px 0; background:var(--ink); border:0; border-radius:var(--radius); color:var(--surface); }
.metrics-featured-rank { width:auto; height:auto; align-items:flex-start; gap:4px; background:none; border-radius:0; padding-right:20px; border-right:1px solid #ffffff30; }
.metrics-featured-rank > .ui-icon { color:#d9b98a; width:18px; }
.metrics-featured-rank strong { font:500 2.35rem/1.2 'Inter'; letter-spacing:-1px; color:#fff; }
.metrics-featured-rank span { color:#bccbd0; font-size:.57rem; text-transform:none; letter-spacing:0; }
.metrics-featured-copy > span { color:#d9b98a; font-size:.58rem; }
.metrics-featured-copy h3 { color:#fff; font-size:1.18rem; font-weight:500; line-height:1.4; margin:8px 0; }
.metrics-featured-copy p { color:#c1cfd3; font-size:.67rem; }
.metrics-featured-open { display:flex; align-items:center; justify-content:center; gap:14px; padding:12px 15px; background:transparent; color:#fff; border:1px solid #ffffff40; font-size:.68rem; font-weight:500; border-radius:7px; }
.metrics-featured-open .ui-icon { width:16px; }
.metrics-featured-open:hover { background:#ffffff10; border-color:#fff; }
#stats .chart-card.full { overflow:visible; }
.table-scroll { overflow-x:auto; }
.cited-table th { border-bottom:1px solid var(--line); font-size:.6rem; padding:11px 12px; background:var(--surface-soft); }
.cited-table td { padding:17px 12px; font-size:.71rem; vertical-align:middle; }
.cited-table .ct-title { width:54%; }
.article-title-link { font:500 .95rem/1.45 'Source Serif 4',serif; text-align:left; border:0; background:none; color:var(--ink); cursor:pointer; }
.article-title-link:hover { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.ct-journal { font-size:.68rem!important; max-width:180px; }.ct-journal span { display:block; color:var(--ink-faint); margin-top:5px; }
.cited-table .ct-num { text-align:right; }.cited-table .ct-cites { font:500 1rem 'Inter'; }
.metrics-data-note { display:flex; align-items:flex-start; gap:10px; margin-top:20px; max-width:920px; color:var(--ink-faint); font-size:.69rem; line-height:1.6; }
.metrics-data-note .ui-icon { width:16px; height:16px; }

/* Library and home retain the original content with lighter surfaces. */
.hero.hero-cover { border-radius:14px; box-shadow:none; }
.home-stats { border-bottom:1px solid var(--line); }
.home-stat .hs-val { font-family:'Inter',sans-serif; font-weight:500; letter-spacing:-1px; }
.feature-card { border-radius:var(--radius); box-shadow:none; background:var(--surface); transition:border-color .15s,transform .15s; }
.feature-card:hover { border-color:var(--accent); box-shadow:none; transform:translateY(-3px); }
.feat-icon { background:var(--surface-soft); border-radius:10px; padding:9px; width:52px; height:52px; }
.feat-icon svg { width:34px; }
.home-about { border-radius:var(--radius); background:var(--surface); }
.logo-slot { border-radius:7px; background:#fff!important; }
.library-layout { grid-template-columns:242px minmax(0,1fr); gap:28px; }
.filters { background:var(--surface); padding:20px; border:1px solid var(--line); border-radius:var(--radius); }
.filter-title { display:flex; justify-content:space-between; align-items:center; font-size:.77rem; font-weight:600; margin-bottom:21px; }
.filter-title .ui-icon { width:17px; color:var(--ink-faint); }
.filter-group { margin-bottom:20px; }
.filter-group label { font-size:.6rem; }
.topic-list { max-height:245px; }.topic-item { font-size:.72rem; }
#search,#author-search { font-size:.75rem; padding:11px; border-radius:7px; }
.results-head { padding:10px 0 17px; border-bottom:1px solid var(--line); }
#result-count { font-size:.74rem; }
.article { padding:23px 10px 23px 0; }
.article-title { font-size:1.13rem; margin-bottom:8px; }
.article-authors { font-size:.74rem; line-height:1.6; }.article-meta { font-size:.7rem; }
.pill { border-radius:4px; padding:3px 6px; font-size:.59rem; }
.chip { padding:7px 11px; font-size:.69rem; background:var(--surface); color:var(--ink-soft); }
.chip.active { background:var(--ink); color:var(--surface); border-color:var(--ink); }

/* Projects: concise cards with progressively disclosed source details. */
.section-heading { margin:30px 0 17px; align-items:center; }
.section-heading span { font-size:.58rem; letter-spacing:1.2px; }
.section-heading h3 { font-size:1.35rem; font-weight:600; }
.section-heading p { font-size:.71rem; max-width:370px; }
.project-filter-bar { display:grid; grid-template-columns:minmax(250px,1fr) auto auto; gap:12px; background:var(--surface); padding:16px; border-radius:var(--radius); margin-bottom:20px; }
.project-filter-bar #proy-estado-chips { grid-column:1/-1; grid-row:2; padding-top:3px; gap:7px; }
.project-filter-bar input[type=search] { min-width:0; width:100%; font-size:.77rem; padding:12px; background:var(--surface); }
.project-filter-bar select { max-width:230px; font-size:.74rem; background:var(--surface); }
.project-catalog { border:0; background:none; border-radius:0; overflow:visible; }
.project-catalog-head { padding:0 0 14px; background:none; border:0; }.project-catalog-head h3 { display:none; }.project-catalog-head span { font-size:.69rem; }
.proy-card-grid { padding:0; gap:18px; align-items:start; }
.proy-card-grid .proy-item { display:flex; flex-direction:column; gap:0; padding:23px; min-height:0; border:1px solid var(--line); border-radius:var(--radius); box-shadow:none; background:var(--surface); }
.proy-card-grid .proy-item.activo,.proy-card-grid .proy-item.financiado,.proy-card-grid .proy-item.solicitado { border-left-color:var(--line); }
.proy-card-grid .proy-item:hover,.proy-card-grid .proy-item.activo:hover,.proy-card-grid .proy-item.financiado:hover { transform:none; box-shadow:none; border-color:#afbdc5; background:var(--surface); }
.project-card-top { width:100%; display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:17px; }
.project-type { display:flex; align-items:center; gap:8px; color:var(--ink-faint); font-size:.63rem; }.project-type .ui-icon { width:17px; height:17px; }
.proy-estado { font-size:.6rem; font-weight:500; border-radius:5px; padding:4px 8px; }
.proy-card-grid .proy-title { font-size:1.07rem; line-height:1.45; font-weight:550; margin-bottom:19px; }
.project-person { display:flex; gap:9px; font-size:.7rem; color:var(--ink-soft); line-height:1.5; margin-bottom:17px; }
.project-person .ui-icon { width:16px; height:16px; color:var(--ink-faint); }
.project-card-foot { display:flex; justify-content:space-between; gap:15px; width:100%; color:var(--ink-faint); font-size:.65rem; margin-top:auto; }
.project-card-foot strong { color:var(--q1); font-size:.8rem; font-weight:600; }
.project-details { width:100%; margin-top:17px; border-top:1px solid var(--line); padding-top:12px; }
.project-details summary,.cal-details summary { display:flex; justify-content:space-between; gap:15px; cursor:pointer; list-style:none; color:var(--ink-soft); font-size:.66rem; }
.project-details summary::-webkit-details-marker,.cal-details summary::-webkit-details-marker { display:none; }
.project-details[open] summary span,.cal-details[open] summary span { transform:rotate(45deg); }
.project-details dl { margin-top:17px; }.project-details dl > div { display:grid; grid-template-columns:75px 1fr; gap:12px; margin-bottom:11px; font-size:.65rem; }
.project-details dt { color:var(--ink-faint); }.project-details dd { color:var(--ink-soft); overflow-wrap:anywhere; }
.catalog-empty { grid-column:1/-1; text-align:center; padding:45px; color:var(--ink-soft); background:var(--surface); border:1px dashed var(--line); border-radius:var(--radius); }
.catalog-empty p { margin-top:8px; font-size:.8rem; }
.project-insights { align-items:start; }.rank-row { border-color:var(--line); }.rk-pos { color:var(--ink-faint); font-size:.66rem; }
.rk-num { background:var(--surface-soft); color:var(--ink-faint); font-size:.66rem; }
.rk-name { font-size:.72rem; }.rk-fill { box-shadow:none; background:var(--q1); }

/* Congress calendar and official society identities. */
.congress-hero-facts { margin-top:18px; gap:24px; }.congress-hero-facts span { color:var(--ink-faint); font-size:.68rem; }.congress-hero-facts strong { color:var(--ink); font-weight:600; }
.society-strip { display:grid; grid-template-columns:120px repeat(6,1fr); gap:14px; align-items:center; padding:19px 22px; margin:0 0 28px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
.society-strip-label { color:var(--ink-faint); font-size:.62rem; line-height:1.6; letter-spacing:.5px; }
.society-strip a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; text-decoration:none; }
.society-strip img { width:100%; max-width:100px; height:45px; object-fit:contain; background:#fff; border-radius:5px; padding:4px; }
.society-strip a > span { font-size:.57rem; color:var(--ink-faint); }
.congress-section-nav { display:flex; gap:25px; margin-bottom:25px; padding:0; background:none; border:0; border-bottom:1px solid var(--line); border-radius:0; }
.congress-section-nav button { display:flex; align-items:center; gap:9px; padding:12px 0 16px; border:0; border-bottom:2px solid transparent; border-radius:0; background:none; color:var(--ink-faint); box-shadow:none; }
.congress-section-nav button span { display:none; }.congress-section-nav button strong { font-size:.8rem; font-weight:600; }.congress-section-nav button small { font-size:.62rem; color:var(--ink-faint); }
.congress-section-nav button.active { background:none; color:var(--accent); border-color:var(--accent); box-shadow:none; }.congress-section-nav button.active small { color:var(--ink-faint); }
.congress-section-heading { gap:30px; margin-bottom:20px; }.congress-section-heading h3 { font-size:1.4rem; font-weight:600; }.congress-section-heading p { font-size:.7rem; max-width:380px; }
.congress-eyebrow { font-size:.6rem; color:var(--accent); }.congress-section { scroll-margin-top:24px; }
.cal-summary { gap:12px; margin-bottom:22px; }.cal-summary > div { border-radius:8px; box-shadow:none; padding:12px 17px; background:var(--surface); }.cal-summary strong { font:500 1.4rem 'Inter'; }.cal-summary span { font-size:.64rem; }.cal-summary > p { font-size:.62rem; }
.cal-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; align-items:stretch; }
.cal-card,.cal-card.closed { padding:22px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:none; }
.cal-card::before { display:none; }.cal-card:hover { transform:none; box-shadow:none; border-color:#acbac3; }
.cal-card-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.cal-brand.cal-brand-logo { display:flex; align-items:center; justify-content:flex-start; padding:5px; width:115px; height:55px; background:#fff; border:0; border-radius:6px; box-shadow:none; }
.cal-brand-logo img { width:100%; height:100%; object-fit:contain; }
.calendar-date-stamp { display:flex; flex-direction:column; align-items:center; min-width:49px; border-left:1px solid var(--line); padding-left:14px; }
.calendar-date-stamp strong { font:500 1.75rem/1.1 'Inter'; color:var(--ink); }.calendar-date-stamp span { font-size:.58rem; text-transform:uppercase; color:var(--ink-faint); margin-top:3px; }
.cal-organizer { font-size:.57rem; text-transform:uppercase; letter-spacing:.55px; color:var(--ink-faint); margin-bottom:8px; }
.cal-card h4 { min-height:0; font-size:1.12rem; font-weight:550; line-height:1.4; margin-bottom:17px; color:var(--ink); }
.cal-event-meta { display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }.cal-event-meta span { display:block; padding:0; border:0; background:none; color:var(--ink-soft); font-size:.68rem; }.cal-event-meta b { display:block; font-size:.55rem; text-transform:uppercase; letter-spacing:.65px; color:var(--ink-faint); margin-bottom:3px; }
.cal-deadline { margin:0 0 13px; padding:10px 11px; border-radius:6px; background:var(--surface-soft); gap:6px; }.cal-deadline span { padding:0; background:none; font-size:.63rem; }.cal-deadline strong { font-size:.63rem; font-weight:400; }.cal-deadline.urgent { background:#fbf0e6; border-color:#e9cfae; }.cal-deadline.urgent span { color:#97511c; background:none; }
.cal-extra { font-size:.64rem; padding:10px 0; border-top:1px solid var(--line); }.cal-extra strong { font-size:.64rem; }
.cal-details { margin:0 0 15px; }.cal-note { font-size:.65rem; margin-top:10px; }.cal-verified { font-size:.55rem; color:var(--ink-faint); margin-top:auto; margin-bottom:13px; }
.cal-link { padding-top:12px; font-size:.66rem; color:var(--accent); }.cal-link span:last-child { border-radius:5px; background:var(--soft-accent); color:var(--accent); width:27px; height:27px; }
.cal-watchlist { margin-top:22px; border-radius:var(--radius); box-shadow:none; background:var(--surface); }.cal-watch-head { gap:20px; }.cal-watch-head h4 { font-size:1.1rem; }.cal-watch-head p { font-size:.66rem; }
.cal-watch-card .cal-brand { width:64px; height:40px; }.cal-watch-card h5 { font-size:.82rem; }.cal-watch-card p { font-size:.64rem; }.cal-watch-card > div > span { font-size:.55rem; }
.congress-archive { margin-top:50px; }.cong-source-status { box-shadow:none; border-radius:8px; background:var(--surface); }.cong-source-status strong { font-size:.66rem; }.cong-source-status small { font-size:.58rem; }
.congress-metrics .metric-card { border-radius:var(--radius); box-shadow:none; padding:18px; }.congress-metrics .mc-val { font:500 1.85rem 'Inter'; color:var(--ink); }.congress-metrics .mc-lbl { font-size:.66rem; }.congress-metrics .mc-sub { font-size:.58rem; }.congress-metrics .metric-card::before { display:none; }
.cong-explorer { border-radius:var(--radius); box-shadow:none; background:var(--surface); }.cong-tools { background:none; padding:20px; }.cong-tools input,.cong-tools select { font-size:.72rem; }.cong-toggle { font-size:.67rem; }
.cong-results-head { font-size:.64rem; }.cong-item { border-radius:8px; box-shadow:none; }.cong-title { font-size:1rem; }.cong-meta { font-size:.67rem; }
.cong-more { font-size:.72rem; padding:11px 20px; border-radius:7px; box-shadow:none; background:var(--surface); }

/* Public impact: channel navigation and quieter source-led entries. */
.impact-hero-copy { flex:1; }.impact-identity { width:235px; flex:none; gap:10px; }
.institution-caption { color:var(--ink-faint); font-size:.59rem; letter-spacing:.6px; text-transform:uppercase; }
.impact-institution-logos { gap:6px; }.impact-institution-logos > div { height:48px; border-radius:6px; background:#fff!important; border:1px solid var(--line); }.impact-institution-logos img { max-height:32px; }
.impact-stat-grid { gap:12px; margin-bottom:26px; }.impact-stat { border-radius:var(--radius); box-shadow:none; padding:20px 17px; gap:12px; background:var(--surface); }
.impact-stat strong { font:500 1.8rem/1.2 'Inter'; letter-spacing:-.8px; }.impact-stat span { font-size:.61rem; margin-top:6px; }.impact-stat .impact-icon { width:34px; height:34px; border-radius:8px; margin:0; }
.impact-icon { border-radius:8px; }.impact-icon-prensa { background:#9b5055; }.impact-icon-ciencia { background:#327767; }
.impact-explorer { border-radius:var(--radius); border-color:var(--line); box-shadow:none; background:var(--surface); }.impact-explorer-head { padding:24px; }.impact-explorer-head h3 { font-size:1.35rem; }.impact-explorer-head p { font-size:.66rem; }.impact-eyebrow { color:var(--accent); font-size:.59rem; }
.impact-workspace { grid-template-columns:207px minmax(0,1fr); }.impact-sidebar { background:var(--surface); padding:20px 12px; }.impact-sidebar-title { font-size:.68rem; }.impact-sidebar-title small { display:none; }.impact-filter { border-radius:7px; gap:8px; padding:8px; }.impact-filter-label { font-size:.67rem; }.impact-filter .impact-icon { width:28px; height:28px; border-radius:7px; }.impact-filter-count { font-size:.6rem; }
.impact-sidebar-note { background:var(--surface-soft); padding:12px; margin:22px 5px 0; border:0; border-radius:7px; }
.impact-tools { padding:20px 22px 14px; }.impact-search-wrap { border-radius:8px; box-shadow:none; min-height:43px; }.impact-search-wrap input { font-size:.77rem; }.impact-search-wrap .impact-icon { width:28px; height:28px; background:none; }.impact-selects select,.impact-clear { border-radius:6px; font-size:.68rem; }
.impact-results-head { font-size:.63rem; }.impact-results-head > span:last-child { display:none; }.impact-results { padding:0 22px 20px; }.impact-year { margin:12px 0; padding:11px 0; }.impact-year span { font-size:1.1rem; }.impact-year small { font-size:.62rem; }
.impact-entry { display:grid; grid-template-columns:75px 30px minmax(0,1fr); gap:13px; padding:20px 0; margin:0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:var(--surface); box-shadow:none; }
.impact-entry:hover { transform:none; box-shadow:none; background:var(--surface); }.impact-entry-date { font-size:.61rem; }.impact-entry-logo .impact-icon { width:28px; height:28px; border-radius:7px; }.impact-entry-logo svg { width:15px; height:15px; }.impact-entry h5 { font-size:1.01rem; font-weight:550; line-height:1.4; }.impact-entry p { font-size:.72rem; }.impact-type,.impact-kind { font-size:.57rem; }.impact-entry-foot { padding-top:10px; margin-top:13px; border:0; }
.impact-source { font-size:.62rem; }.impact-open { font-size:.62rem; }.impact-open span:last-child { width:23px; height:23px; border-radius:5px; background:var(--soft-accent); color:var(--accent); }.m-favicon { border-radius:4px; background:var(--surface-soft); }
.source-logo { display:inline-flex; width:49px; height:26px; padding:3px; margin-right:7px; background:#fff; border-radius:3px; flex:none; }.source-logo img { width:100%; height:100%; object-fit:contain; }
.impact-hitos-heading h3 { font-size:1.35rem; }.impact-hitos-heading p { font-size:.7rem; }.impact-highlights { align-items:start; }.impact-card-brand { border-color:var(--line); }.impact-card-brand span { font-family:Georgia,serif; color:var(--ink); }.impact-awards-card { background:var(--surface); }.imp-p { font-size:.82rem; }

/* Assistant: a focused writing area and a calm evidence workspace. */
.assistant-editorial-hero { text-align:center; padding:5px 0 30px; margin:0; border:0; border-radius:0; background:none; color:var(--ink); overflow:visible; }
.assistant-emblem { display:grid; place-items:center; width:49px; height:49px; margin:0 auto 17px; border:1px solid var(--line); border-radius:13px; background:var(--surface); color:var(--accent); box-shadow:0 5px 15px #172b3606; }.assistant-emblem .ui-icon { width:26px; height:26px; }
.assistant-editorial-hero .section-eyebrow { margin-bottom:12px; }.assistant-editorial-hero h2 { margin:0 auto 12px; max-width:none; font-size:clamp(2rem,3.1vw,2.8rem); line-height:1.2; font-weight:600; color:var(--ink); }.assistant-editorial-hero h2 em { color:var(--accent); }.assistant-editorial-hero > p { color:var(--ink-faint); font-size:.83rem; margin:0 auto; max-width:600px; }
.assistant-hero-input { max-width:850px; margin:28px auto 0; }.assistant-editorial-hero .ask-shell { border:1px solid var(--line); box-shadow:0 6px 24px #172b3607; border-radius:14px; padding:18px; align-items:flex-end; background:var(--surface); }.assistant-editorial-hero .ask-shell:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px var(--soft-accent); }
.ask-shell textarea { font-size:.86rem; }.send-btn { border-radius:9px; width:38px; height:38px; background:var(--accent); }
.assistant-editorial-hero .examples { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:13px; }.assistant-editorial-hero .example { padding:13px 14px; border:1px solid var(--line); border-radius:8px; color:var(--ink-soft); background:var(--surface); font-size:.69rem; line-height:1.55; text-align:left; }.assistant-editorial-hero .example:hover { color:var(--accent); border-color:var(--accent); background:var(--surface); }
.assistant-editorial-hero .ask-hint { color:var(--ink-faint); font-size:.6rem; text-align:center; margin-top:12px; }
#assistant .assistant-layout { grid-template-columns:220px minmax(0,1fr); gap:18px; margin-top:10px; }#assistant .chat-history { border-radius:var(--radius); background:var(--surface); }#assistant .assistant-wrap { padding:22px; border-radius:var(--radius); min-height:285px; }
#assistant .assistant-welcome { padding:16px 20px 10px; margin:0 auto; border:0; background:none; max-width:700px; }#assistant .aw-icon { display:none; }#assistant .assistant-welcome .assistant-title { font-size:1.25rem; font-weight:500; }#assistant .aw-desc { font-size:.77rem; max-width:480px; }
.assistant-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:30px; text-align:left; }.assistant-steps > div { padding-left:15px; border-left:1px solid var(--line); }.assistant-steps span { display:block; color:var(--accent); font-size:.6rem; margin-bottom:7px; }.assistant-steps strong { font-size:.72rem; font-weight:600; }.assistant-steps p { color:var(--ink-faint); font-size:.65rem; line-height:1.5; margin-top:6px; }
.ch-head { padding:18px; }.ch-head > span { font-size:.72rem; }.new-chat-btn { font-size:.66rem; padding:6px 9px; border-radius:5px; }.hist-item { font-size:.71rem; }.history-empty { font-size:.7rem; }
#assistant .msg-assistant { border-radius:9px; box-shadow:none; padding:20px; }.msg-user { background:var(--soft-accent); color:var(--ink); box-shadow:none; }.ask-hint { line-height:1.6; }
.site-footer { border-top:1px solid var(--line); background:var(--surface); }.footer-inner,.footer-base { max-width:1344px; padding-left:42px; padding-right:42px; }.footer-nav button { font-size:.71rem; }.footer-base { font-size:.63rem; }

/* Theme exceptions for white-backed institutional artwork and dark callout. */
:root[data-theme="dark"] .metrics-featured { background:#233a46; }
:root[data-theme="dark"] .metrics-featured-open { background:none; color:#fff; border-color:#ffffff40; }
:root[data-theme="dark"] .section-editorial-hero,:root[data-theme="dark"] .congress-hero,:root[data-theme="dark"] .impact-hero,:root[data-theme="dark"] .assistant-editorial-hero { background:none; }
:root[data-theme="dark"] .annual-bar { background:#658e9d; }:root[data-theme="dark"] .annual-column.current .annual-bar { background:var(--accent); }
:root[data-theme="dark"] .cal-card.closed,:root[data-theme="dark"] .impact-awards-card,:root[data-theme="dark"] .impact-sidebar { background:var(--surface); }
:root[data-theme="dark"] .cal-event-meta span { background:none; border:0; color:var(--ink-soft); }
:root[data-theme="dark"] .congress-section-nav button { background:none; border:0; border-bottom:2px solid transparent; }:root[data-theme="dark"] .congress-section-nav button.active { color:var(--accent); border-bottom-color:var(--accent); }
:root[data-theme="dark"] .assistant-editorial-hero .example { color:var(--ink-soft); background:var(--surface); border-color:var(--line); }
:root[data-theme="dark"] .chip.active { background:var(--accent); border-color:var(--accent); color:#14242d; }
:root[data-theme="dark"] .topic-item.active { background:var(--accent); color:#14242d; }
:root[data-theme="dark"] .proy-estado.activo { background:#203e33; color:#9cd9ba; }:root[data-theme="dark"] .proy-estado.financiado { background:#453a20; color:#e3c37d; }
:root[data-theme="dark"] .proy-estado.finalizado { background:var(--surface-soft); color:var(--ink-soft); }
:root[data-theme="dark"] .impact-entry:hover { background:var(--surface); }
:root[data-theme="dark"] .impact-filter.active { background:#35505e; border-color:#35505e; color:#fff; }
:root[data-theme="dark"] .assistant-steps strong { color:var(--ink); }

/* Adapt the layout, keeping every section and control reachable. */
@media(min-width:1600px) { .container,.masthead-inner,.footer-inner,.footer-base { max-width:1430px; } }
@media(max-width:1150px) {
  .container { padding:30px; }.masthead-inner { padding:20px 30px 0; }.tabs { gap:6px; }.tab { font-size:.73rem; padding:15px 6px; gap:6px; }
  .cal-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.metrics-primary-grid { grid-template-columns:1fr 1fr; }.donut-wrap { flex-direction:column; gap:15px; min-height:0; }.donut-legend { width:100%; }.annual-chart { height:320px; }
  .metrics-featured { grid-template-columns:100px minmax(0,1fr); }.metrics-featured-open { grid-column:2; justify-self:start; }.metrics-featured-rank { grid-row:1/3; }
  .editorial-metrics .metric-card { padding:17px 14px; }.metric-top .mc-lbl { font-size:.63rem; }.metric-top .ui-icon { width:15px; }.mc-sub { font-size:.59rem; }
  .bar-row { grid-template-columns:minmax(0,1fr) 80px 22px; }.society-strip { grid-template-columns:90px repeat(6,1fr); gap:8px; }
  .impact-stat { padding:16px 12px; gap:9px; }.impact-stat .impact-icon { width:27px; height:27px; }.impact-stat strong { font-size:1.5rem; }.impact-stat span { font-size:.58rem; }
}
@media(max-width:900px) {
  .masthead-institutions img { width:65px; }.masthead-institutions img:nth-child(2) { width:90px; }.masthead-institutions { gap:13px; }.header-nav { flex-direction:row; gap:10px; align-items:center; }.theme-control { align-self:center; }.theme-control > span { display:none; }.tab { gap:6px; }.tab .ui-icon { display:none; }
  .section-editorial-hero,.congress-hero,.impact-hero,.page-heading { gap:20px; }.section-hero-number { min-width:130px; padding-left:18px; }.section-hero-number strong { font-size:1.7rem; }.section-hero-number span + strong { font-size:1.35rem; }
  .metrics-hero.editorial-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }.editorial-metrics .metric-card:last-child { grid-column:auto; }.editorial-metrics .metric-card { min-height:123px; }.editorial-metrics .metric-card .mc-val { font-size:2rem; }
  .metrics-primary-grid,.metrics-secondary-grid { grid-template-columns:1fr; }.donut-wrap { flex-direction:row; gap:35px; }.annual-chart { height:225px; }.bar-row { grid-template-columns:minmax(0,1fr) minmax(90px,35%) 30px; }
  .library-layout { grid-template-columns:1fr; }.filters { display:grid; grid-template-columns:1fr 1fr; gap:14px 20px; }.filters .filter-title { grid-column:1/-1; margin-bottom:0; }.filter-group { margin:0; }.filters .topic-list { max-height:140px; }.reset-btn { align-self:end; }
  .proy-card-grid { grid-template-columns:1fr 1fr; }.project-card-top { gap:8px; flex-wrap:wrap; }.project-filter-bar { grid-template-columns:1fr auto; }.project-filter-bar #proy-estado-chips { grid-row:3; }.project-filter-bar #proy-clear { grid-column:2; }.project-filter-bar input { grid-column:1/-1; }.project-filter-bar select { max-width:none; }
  .society-strip { grid-template-columns:repeat(6,1fr); }.society-strip-label { grid-column:1/-1; }.society-strip-label br { display:none; }.society-strip img { height:38px; }
  .impact-identity { width:185px; }.impact-stat-grid { grid-template-columns:repeat(3,1fr); }.impact-workspace { grid-template-columns:1fr; }.impact-sidebar { border:0; border-bottom:1px solid var(--line); padding:15px; }.impact-sidebar-title,.impact-sidebar-note { display:none; }.impact-channel-filters { display:flex; flex-direction:row; flex-wrap:wrap; gap:7px; }.impact-filter { display:flex; width:auto; gap:7px; padding:7px 9px; border:1px solid var(--line); }.impact-filter .impact-icon { width:21px; height:21px; }.impact-filter-label { font-size:.64rem; }.impact-filter-count { min-width:19px; height:19px; }
  #assistant .assistant-layout { grid-template-columns:1fr; }#assistant .chat-history { display:block; }.history-list { max-height:120px; }.ch-head { padding:12px 18px; }#assistant .assistant-wrap { min-height:0; }
}
@media(max-width:620px) {
  body { font-size:14px; }.container { padding:25px 18px 40px; }.masthead-inner { padding:17px 18px 0; gap:15px; }.brand-title { font-size:1.6rem; }.brand-sub { font-size:.58rem; }.brand-mark { padding:7px; }.brand-mark svg { width:28px; height:28px; }.masthead-institutions { display:none; }
  .header-nav { position:relative; width:100%; gap:7px; }.tabs { flex:1; gap:8px; }.tab { padding:14px 6px 12px; font-size:.72rem; }.theme-control { padding:4px; font-size:.58rem; }.theme-control select { width:56px; }.tab .ui-icon { display:none; }
  .section-editorial-hero,.congress-hero,.impact-hero,.page-heading { display:block; margin:0 0 22px; padding:0 0 21px; border-radius:0; }.section-editorial-hero h2,.congress-hero h2,.impact-hero h2,.page-heading h2 { font-size:2rem; letter-spacing:-.7px; line-height:1.15; }.section-editorial-hero p,.congress-hero-copy > p,.impact-hero-copy > p,.page-heading p { font-size:.76rem; }.section-eyebrow,.congress-kicker,.impact-kicker { font-size:.57rem; letter-spacing:1.1px; }
  .section-hero-number { display:flex; align-items:center; gap:10px; min-width:0; width:auto; border:0; padding:0; margin-top:20px; text-align:left; }.section-hero-number strong,.section-hero-number span + strong { font:500 1.05rem 'Inter'; letter-spacing:-.3px; margin:0; }.section-hero-number small { display:none; }.section-hero-number strong + span { margin:0; }.page-caption { display:none; }
  .metrics-hero.editorial-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-bottom:18px; }.editorial-metrics .metric-card:last-child { grid-column:1/-1; display:grid; grid-template-columns:1fr auto; align-items:center; min-height:0; padding:15px; }.editorial-metrics .metric-card:last-child .metric-top { justify-content:flex-start; gap:10px; }.editorial-metrics .metric-card:last-child .mc-val { grid-column:2; grid-row:1/3; margin:0; font-size:1.9rem; }.editorial-metrics .metric-card:last-child .mc-sub { margin-top:4px; }.editorial-metrics .metric-card { padding:16px; min-height:126px; }.metric-top .mc-lbl { font-size:.61rem; }.mc-sub { font-size:.57rem; }
  .chart-card,.metrics-primary-grid .chart-card,.metrics-secondary-grid .chart-card,.project-insights .chart-card { padding:19px 17px; }.chart-heading { gap:12px; margin-bottom:19px; }.chart-kicker { font-size:.52rem; }.chart-heading h3,.metrics-primary-grid .chart-card h3,.metrics-secondary-grid .chart-card h3 { font-size:1.07rem; }.chart-unit { font-size:.55rem; }.chart-note { font-size:.59rem; }
  .donut-wrap { gap:15px; }.donut { width:132px; height:132px; flex-basis:132px; }.dl-item { grid-template-columns:6px minmax(0,1fr) auto; gap:6px; font-size:.6rem; padding:7px 0; }.dl-val { gap:4px; }.dl-val small { font-size:.52rem; min-width:20px; }.dl-dot { width:6px; height:6px; }.annual-chart { height:195px; padding-left:18px; }.annual-columns { gap:5px; }.annual-label { font-size:.43rem; }.annual-bar { width:78%; }.annual-bar b { font-size:.54rem; }.annual-grid span { font-size:.48rem; }
  .metrics-featured { grid-template-columns:1fr; padding:22px; gap:17px; }.metrics-featured-rank { grid-row:auto; flex-direction:row; align-items:center; gap:10px; border:0; padding:0; }.metrics-featured-rank strong { font-size:1.6rem; }.metrics-featured-copy h3 { font-size:1.1rem; }.metrics-featured-open { grid-column:auto; width:auto; justify-self:start; font-size:.67rem; }.metrics-featured-copy p { font-size:.61rem; }
  .bar-row { grid-template-columns:minmax(0,1fr) 75px 23px; gap:10px; margin-bottom:16px; }.bar-row .bl { font-size:.66rem!important; }.bar-value { font-size:.65rem; }.metrics-data-note { font-size:.63rem; }#stats .cited-table { min-width:650px; }
  .hero.hero-cover { margin:0 0 24px; }.hero-cover-bar { padding:16px; }.hero-cover-bar p { font-size:.75rem; }.hero-cover-bar .hero-btn { font-size:.69rem; }.home-stats { gap:15px; }.home-features { gap:13px; }.home-about { padding:22px; }.logo-slot { min-height:55px; }
  .filters { padding:16px; gap:18px 12px; }.filter-group label { font-size:.57rem; }.filter-group .toggle { font-size:.66rem; }.topic-item { font-size:.64rem; }.topic-list { max-height:160px; }.chip { font-size:.6rem; padding:6px 10px; }.results-head { align-items:flex-start; flex-direction:column; gap:12px; }.results-actions { width:100%; justify-content:space-between; }#sort,.download-btn { font-size:.67rem; }.article-title { font-size:1.05rem; }.article-authors { font-size:.69rem; }
  .section-heading { gap:8px; align-items:flex-start; }.section-heading p { text-align:left; font-size:.66rem; }.section-heading h3 { font-size:1.25rem; }.project-filter-bar { padding:13px; gap:10px; }.project-filter-bar input[type=search] { font-size:.73rem; }.project-filter-bar select { font-size:.66rem; min-width:0; width:100%; }.project-filter-bar #proy-clear { font-size:.64rem; }.proy-card-grid { grid-template-columns:1fr; gap:13px; }.proy-card-grid .proy-item { display:flex; padding:20px; }.proy-card-grid .proy-title { font-size:1.07rem; }.project-card-top { flex-wrap:nowrap; }.proy-estado { font-size:.56rem; }.project-type { font-size:.58rem; }.project-person { font-size:.67rem; }
  .society-strip { grid-template-columns:repeat(3,1fr); padding:15px; gap:16px; margin-bottom:21px; }.society-strip-label { display:none; }.society-strip img { width:82px; height:35px; }.society-strip a > span { font-size:.5rem; }.congress-hero-facts { flex-wrap:wrap; gap:10px; }.congress-hero-facts span { font-size:.61rem; }.congress-section-nav { gap:24px; }.congress-section-nav button { padding:10px 0 14px; }.congress-section-nav button strong { font-size:.74rem; }.congress-section-nav button small { display:none; }
  .congress-section-heading { flex-direction:column; align-items:flex-start; gap:10px; }.congress-section-heading h3 { font-size:1.25rem; }.congress-section-heading p { font-size:.66rem; }.cal-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }.cal-summary > div { padding:12px 9px; }.cal-summary > p { grid-column:1/-1; font-size:.58rem; }.cal-summary strong { font-size:1.2rem; }.cal-summary span { font-size:.52rem; }.cal-grid { grid-template-columns:1fr; gap:13px; }.cal-card { padding:20px; }.cal-card h4 { font-size:1.1rem; }.cal-watchlist { padding:18px; }.cal-watch-head { display:block; }.cal-watch-head p { margin-top:8px; }.cal-watch-grid { grid-template-columns:1fr; }.cal-watch-card { padding:13px 0; }.cal-watch-card h5 { font-size:.75rem; }
  .congress-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }.congress-metrics .metric-card { padding:14px; }.congress-metrics .mc-val { font-size:1.6rem; }.congress-metrics .mc-lbl { font-size:.61rem; }.congress-metrics .mc-sub { font-size:.51rem; }.cong-tools { padding:14px; }.cong-results-head > span:last-child { display:none; }.cong-item { gap:12px; }.cong-item time { min-width:42px; }.cong-title { font-size:.98rem; }
  .impact-identity { display:none; }.impact-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }.impact-stat:last-child { grid-column:1/-1; }.impact-stat { padding:15px; }.impact-stat strong { font-size:1.5rem; }.impact-stat span { font-size:.59rem; }.impact-explorer-head { padding:19px 17px; display:block; }.impact-explorer-head p { text-align:left; margin-top:9px; font-size:.6rem; }.impact-explorer-head h3 { font-size:1.2rem; }.impact-sidebar { padding:12px; }.impact-filter { padding:6px 7px; gap:5px; }.impact-filter-label { font-size:.59rem; }.impact-filter .impact-icon { width:18px; height:18px; }.impact-filter .impact-icon svg { width:12px; height:12px; }.impact-filter-count { font-size:.5rem; }.impact-tools { padding:15px 14px; }.impact-selects { grid-template-columns:1fr 1fr; }.impact-clear { grid-column:1/-1; }.impact-selects select { font-size:.64rem; }.impact-results { padding:0 15px 18px; }.impact-entry { grid-template-columns:24px minmax(0,1fr); gap:9px; padding:19px 0; }.impact-entry-date { grid-column:2; grid-row:1; font-size:.59rem; }.impact-entry-logo { grid-column:1; grid-row:1/3; }.impact-entry-logo .impact-icon { width:23px; height:23px; }.impact-entry-main { grid-column:2; }.impact-entry h5 { font-size:.98rem; }.impact-entry-foot { align-items:flex-start; gap:10px; flex-direction:column; }.impact-entry-top { flex-wrap:wrap; gap:7px; }.impact-kind { font-size:.54rem; }.impact-hitos-heading { display:block; }.impact-hitos-heading p { margin-top:8px; text-align:left; }.impact-highlights { grid-template-columns:1fr; }
  .assistant-editorial-hero { padding:0 0 22px; margin:0; border-radius:0; }.assistant-editorial-hero h2 { font-size:2rem; line-height:1.16; letter-spacing:-.6px; }.assistant-editorial-hero > p { font-size:.76rem; }.assistant-hero-input { margin-top:23px; }.assistant-editorial-hero .ask-shell { padding:14px; }.ask-shell textarea { font-size:16px; }.assistant-editorial-hero .examples { grid-template-columns:1fr; gap:7px; }.assistant-editorial-hero .example { font-size:.68rem; padding:11px 13px; }.assistant-editorial-hero .ask-hint { font-size:.53rem; }.assistant-emblem { width:43px; height:43px; }
  #assistant .assistant-wrap { padding:18px 15px; }#assistant .assistant-welcome { padding:10px 0; }.assistant-steps { gap:12px; margin-top:25px; }.assistant-steps > div { padding-left:9px; }.assistant-steps strong { font-size:.64rem; }.assistant-steps p { font-size:.59rem; }#assistant .aw-desc { font-size:.7rem; }.footer-inner,.footer-base { padding-left:18px; padding-right:18px; }.footer-tag { font-size:.64rem; }
}
@media(max-width:360px) { .donut-wrap { flex-direction:column; }.donut { width:155px; height:155px; }.annual-label { writing-mode:vertical-rl; }.annual-chart { height:225px; }.annual-bar-space { height:calc(100% - 38px); }.section-editorial-hero h2,.congress-hero h2,.impact-hero h2 { font-size:1.8rem; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }

/* Final visual calibration and homepage. */
.masthead-institutions img { height:49px; width:90px; padding:2px; }
.masthead-institutions img[src$="uco.jpg"] { object-fit:cover; width:112px; height:43px; }
.impact-institution-logos img[src$="uco.jpg"] { width:90px; height:32px; object-fit:cover; }
.logo-slot img[src$="uco.jpg"] { width:160px; height:58px; object-fit:cover; }
.source-logo img[src$="uco.jpg"] { object-fit:cover; }
.impact-stat > .impact-icon { display:grid; place-items:center; color:#fff; margin:0; }
.impact-stat > .impact-icon-todos { color:var(--ink-soft); background:var(--surface-soft); }
.impact-stat > .impact-icon svg { margin:0; }
.topic-item { background:none; border:0; text-align:left; gap:12px; font-family:inherit; }
.topic-item span:first-child { overflow-wrap:anywhere; }
.home-intro { display:grid; grid-template-columns:1.1fr 1fr; align-items:stretch; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:var(--surface); margin-bottom:27px; }
.home-intro-copy { padding:43px 42px; align-self:center; }
.home-intro h2 { color:var(--ink); font-weight:600; font-size:clamp(2.7rem,4vw,3.9rem); line-height:1.03; letter-spacing:-1.8px; margin:20px 0; }
.home-intro h2 em { font-weight:400; color:var(--accent); }
.home-intro-copy > p { max-width:470px; color:var(--ink-soft); font-size:.85rem; line-height:1.75; }
.home-intro .hero-actions { display:flex; gap:10px; margin:25px 0 22px; }
.home-intro .hero-btn { padding:11px 14px; font-size:.73rem; font-weight:500; border-radius:7px; border:1px solid var(--line); color:var(--ink); background:var(--surface); }
.home-intro .hero-btn.primary { background:var(--accent); color:#fff; border-color:var(--accent); }
.home-intro .hero-btn.primary span { margin-left:9px; }
.home-intro-caption { display:block; color:var(--ink-faint); font-size:.62rem; }
.home-intro-image { position:relative; min-width:0; overflow:hidden; }
.home-intro-image > img { width:100%; height:100%; object-fit:cover; }
.home-image-label { position:absolute; left:22px; right:22px; bottom:22px; padding:12px 17px; border:1px solid #ffffff50; border-radius:8px; color:#fff; font-size:.62rem; background:#172b36de; backdrop-filter:blur(8px); }
.home-image-label span { display:block; margin-bottom:4px; font-size:.59rem; letter-spacing:1.4px; color:#ead3ac; }
.home-stats { grid-template-columns:repeat(5,1fr); padding:20px 0 27px; margin-bottom:28px; }
.home-features { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.feature-card .feat-icon > .ui-icon { width:29px; height:29px; margin:3px; color:var(--ink-soft); }
.feature-card h3 { font-size:1.15rem; }.feature-card p { font-size:.76rem; line-height:1.7; }.feat-link { font-size:.7rem; }
:root[data-theme="dark"] .home-intro .hero-btn.primary { color:#162630; }
@media(max-width:900px) {
 .home-intro-copy { padding:30px; }.home-intro .hero-actions { flex-direction:column; align-items:flex-start; }.home-intro h2 { font-size:2.7rem; }.home-features { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:620px) {
 .home-intro { grid-template-columns:1fr; margin-bottom:16px; }.home-intro-copy { padding:28px 24px; }.home-intro h2 { font-size:2.7rem; margin:17px 0; }.home-intro-copy > p { font-size:.79rem; }.home-intro .hero-actions { flex-direction:row; align-items:stretch; gap:8px; flex-wrap:wrap; }.home-intro .hero-btn { font-size:.67rem; padding:11px 12px; }.home-intro-image { height:200px; }.home-image-label { left:16px; right:16px; bottom:14px; padding:10px 13px; font-size:.57rem; }.home-intro-caption { font-size:.57rem; }
 .home-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 10px; padding:18px 0; }.home-stat:last-child { grid-column:1/-1; }.home-features { grid-template-columns:1fr; }.feature-card { padding:22px; }.feature-card h3 { font-size:1.12rem; }
}
.impact-highlights .impact-card-brand span { color:#ead9ae; }
@media(max-width:620px) {
 #congresos,#impacto { margin:0; }
 .header-nav { align-items:stretch; }
 .tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0 3px; overflow:visible; width:100%; }
 .tab { justify-content:center; padding:11px 2px 9px; font-size:.67rem; }
 .theme-control { position:absolute; bottom:10px; right:0; font-size:.57rem; padding:4px; }
 .theme-control select { width:60px; }
 .congress-section-nav { position:static; }
 .congress-hero-facts { flex-direction:row; }
}
#impacto { --impact-red:var(--accent); }
.donut-wrap { flex-wrap:nowrap; }
.donut-legend .dl-item { display:grid; grid-template-columns:8px minmax(0,1fr) auto; gap:9px; padding:8px 0; font-size:.74rem; }
.donut-legend .dl-dot { width:7px; height:7px; border-radius:2px; }
.donut-legend .dl-val { margin:0; padding:0; color:var(--ink); }
.impact-results,.cong-list { background:var(--surface); }
.impact-results-head,.cong-results-head { background:var(--surface-soft); }
.impact-year { color:var(--ink); }.impact-year::after { background:var(--line); }
.impact-search-wrap .impact-icon { color:var(--ink-faint); }
.cal-summary > div:nth-child(3) { grid-column:auto; }
.cal-summary strong { color:var(--ink); }.cal-summary .pending strong { color:var(--d1); }
.cal-watch-card { background:var(--surface); border-color:var(--line); }.cal-watch-card h5 { white-space:normal; }
.cong-item > time { background:var(--surface-soft); border-color:var(--line); }
.cong-badge.resi { background:var(--surface-soft); color:var(--ink-faint); }
.impact-type { background:var(--surface-soft); color:var(--ink-soft); }
:root[data-theme="dark"] .impact-awards-head small { color:var(--d1); }
:root[data-theme="dark"] .cal-watch-card > div > span { color:var(--d1); }
:root[data-theme="dark"] .cal-watch-card > a,:root[data-theme="dark"] .congress-insights-heading span { color:var(--q1); }
:root[data-theme="dark"] .impact-filter:not(.active) .impact-filter-count { color:var(--ink-faint); background:var(--surface-soft); }
@media(max-width:620px) {
 .donut-legend .dl-item { grid-template-columns:6px minmax(0,1fr) auto; gap:6px; font-size:.66rem; padding:8px 0; }
 .donut-legend .dl-dot { width:6px; height:6px; }
 .cal-summary > div { flex-direction:column; gap:5px; }
}

.assistant-connection { margin:16px auto 0; max-width:650px; color:var(--ink-faint); font-size:.72rem; line-height:1.6; }
.assistant-connection[data-state="unavailable"] { color:var(--accent); }
.send-btn:disabled { opacity:.5; cursor:wait; }
.api-notice label { display:block; margin-bottom:10px; }
.api-notice input { max-width:100%; box-sizing:border-box; }
