/* IPCI news archive. Projects retains its original template styling. */
body.variant-news .content-main {
  border: 1px solid #e1e8ed; border-radius: 20px;
  box-shadow: 0 8px 32px #172b4d08; padding: clamp(20px,4vw,56px);
}
body.variant-news .mod-breadcrumbs__wrapper {
  background: transparent; border: 0; box-shadow: none; padding: 12px 0;
}
body.variant-news .mod-breadcrumbs__wrapper::before {display:none}
body.variant-news .mod-breadcrumbs li,
body.variant-news .mod-breadcrumbs li a {
  background: none; border: 0; box-shadow: none; border-radius: 0;
}
/* Keep Joomla's native sorting, page size and article URLs. */
.variant-news .com-content-category__articles {margin:0;position:relative}
body.variant-news .content-main:has(.com-content-category__articles) {padding:16px 28px;border-radius:14px}
.variant-news .com-content-category__pagination {
  display:flex; align-items:center; justify-content:flex-end; gap:8px; margin:0;position:absolute;right:0;top:0;
  color:#617387; font-size:14px;
}
.variant-news .com-content-category__table {display:block; width:100%; border:0; background:none; border-collapse:collapse}
.variant-news .com-content-category__table caption {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.variant-news .com-content-category__table thead {display:block;border-bottom:1px solid #dce6eb;margin-bottom:0;padding-right:170px}
.variant-news .com-content-category__table thead tr {display:grid;grid-template-columns:130px minmax(0,1fr);gap:20px;align-items:center;min-height:40px}
.variant-news .content-main .com-content-category__table thead th {border:0;background:none;padding:8px 0;font-size:13px;font-weight:500}
.variant-news .com-content-category__table thead a {color:#60748a;text-decoration:none}
.variant-news .com-content-category__table tbody {display:block}
.variant-news .com-content-category__table tbody tr {
  display:grid;grid-template-columns:130px minmax(0,1fr);gap:20px;
  position:relative;padding:15px 32px 15px 0;border-bottom:1px solid #e5ebef;
  transition:background .18s ease;
}
.variant-news .com-content-category__table tbody tr:last-child {border-bottom:0}
.variant-news .content-main .com-content-category__table tbody :is(th,td) {border:0;background:transparent;padding:0;text-align:left}
.variant-news .com-content-category__table .list-title {grid-column:2;grid-row:1;font-weight:500}
.variant-news .content-main .com-content-category__table .list-title a {
  font-size:17px;line-height:1.45;font-weight:500;color:#18334d;text-decoration:none;
}
.variant-news .com-content-category__table .list-date {grid-column:1;grid-row:1;color:#62788b;font-size:14px;line-height:1.6;padding-top:1px!important}
.variant-news .com-content-category__table .list-title a::after {content:'↗';position:absolute;right:8px;top:15px;color:#168681;font-size:19px}
.variant-news .com-content-category__table tbody tr:hover {background:#f6fafb}
.variant-news .content-main .com-content-category__table .list-title a:hover {color:#087b78}
.variant-news .com-content-category__table a:focus-visible {outline:3px solid #2c9691;outline-offset:5px}

.variant-news .com-content-category__pagination select {
  border:1px solid #cfdce3;border-radius:9px;background:#fff;color:#233e54;
  min-height:42px;padding:8px 12px;box-shadow:none;font:inherit;
}

@media(max-width:650px){
  .variant-news .com-content-category__table tbody tr {grid-template-columns:1fr;gap:4px;padding:14px 26px 14px 0}
  .variant-news .com-content-category__table .list-date {grid-column:1;grid-row:1}
  .variant-news .com-content-category__table .list-title {grid-column:1;grid-row:2}
  .variant-news .com-content-category__table .list-title a::after {right:0;top:40px}
  
  
  
}
@media(prefers-reduced-motion:reduce){.variant-news .com-content-category__table tbody tr{transition:none}}

.variant-news .com-content-category__pagination select {min-height:32px;padding:4px 8px;font-size:13px}
@media(max-width:650px){
  body.variant-news .content-main:has(.com-content-category__articles) {padding:12px 16px}
  .variant-news .com-content-category__table thead {padding-right:115px}
  .variant-news .com-content-category__table thead tr {gap:12px}
  .variant-news .com-content-category__pagination {font-size:12px;gap:4px}
  .variant-news .content-main .com-content-category__table .list-title a {font-size:16px}
}
/* Match the sort headings to the date-first news rows. */
.variant-news #categorylist_header_date {grid-column:1;grid-row:1;text-align:left}
.variant-news #categorylist_header_title {grid-column:2;grid-row:1;text-align:left}
@media(max-width:650px){
  .variant-news .com-content-category__table thead tr {grid-template-columns:auto auto;gap:12px}
}