/* THUS News — Elementor widget styles
   Every value below is a default; Elementor Style-tab controls override via
   {{WRAPPER}} selectors or the --tn-* custom properties. */

.thus-news{
  --tn-maroon:#6B1F2A;
  --tn-maroon-deep:#4A121A;
  --tn-brass:#B08D3C;
  --tn-gold:#D9B45B;
  --tn-ink:#1F1A17;
  --tn-ink-soft:#5C534D;
  --tn-paper-deep:#F1EBDF;
  --tn-line:#E2D9C8;
  --tn-urgent:#B3261E;
  --tn-card:#FFFFFF;

  --tn-serif:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --tn-sans:"DM Sans","Helvetica Neue",Arial,sans-serif;

  --tn-radius:4px;
  --tn-gap:28px;
  --tn-cols:3;
  --tn-featured-w:58%;
  --tn-list-img:150px;
  --tn-img-ratio:16/10;
  --tn-img-featured-ratio:4/3;
  --tn-badge-offset:12px;
  --tn-title-lines:0;
  --tn-excerpt-lines:3;
  --tn-featured-excerpt-lines:4;

  font-family:var(--tn-sans);
  color:var(--tn-ink);
  line-height:1.55;
  box-sizing:border-box;
}
.thus-news *,.thus-news *::before,.thus-news *::after{box-sizing:inherit}
.thus-news a{color:inherit}
.thus-news :focus-visible{outline:3px solid var(--tn-gold);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.thus-news *{transition:none!important}}

/* ---------- Header ---------- */
.thus-news__head{
  display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;gap:20px;
  padding:0 0 18px;margin:0 0 26px;
  border-bottom:2px solid var(--tn-maroon);position:relative;
}
.thus-news[data-rule="double"] .thus-news__head::after{
  content:"";position:absolute;left:0;right:0;bottom:-6px;height:1px;background:var(--tn-brass);
}
.thus-news[data-rule="none"] .thus-news__head{border-bottom:0}
.thus-news--head-column .thus-news__head{flex-direction:column;align-items:flex-start}
.thus-news--head-column-center .thus-news__head{flex-direction:column;align-items:center;text-align:center}
.thus-news__title{
  margin:0;font-family:var(--tn-serif);font-weight:600;
  font-size:clamp(34px,4.2vw,50px);line-height:1;letter-spacing:-.01em;color:var(--tn-ink);
}
.thus-news__subtitle{margin:10px 0 0;font-size:15px;font-weight:500;color:var(--tn-ink-soft)}
.thus-news__all{
  font-weight:600;font-size:15px;text-decoration:none;color:var(--tn-maroon);
  border-bottom:2px solid var(--tn-gold);padding-bottom:2px;white-space:nowrap;
}
.thus-news__all:hover{color:var(--tn-maroon-deep);border-color:var(--tn-maroon)}

/* ---------- Filters ---------- */
.thus-news__filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 30px;padding:0;list-style:none}
.thus-news__filters li{list-style:none;margin:0}
.thus-news__filters button{
  font:inherit;font-size:14px;font-weight:500;cursor:pointer;line-height:1.4;
  background:transparent;color:var(--tn-ink-soft);
  border:1px solid var(--tn-line);border-radius:999px;padding:6px 14px;
  transition:color .15s,background .15s,border-color .15s;
}
.thus-news__filters button:hover{border-color:var(--tn-brass);color:var(--tn-ink)}
.thus-news__filters button[aria-pressed="true"]{background:var(--tn-maroon);border-color:var(--tn-maroon);color:#fff}

/* ---------- Urgent band ---------- */
.thus-news__band{
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;
  background:var(--tn-urgent);color:#fff;border-radius:var(--tn-radius);
  padding:16px 20px;margin:0 0 30px;text-decoration:none;
}
.thus-news__band-kicker{
  font-weight:600;font-size:13px;letter-spacing:.06em;line-height:1;
  background:rgba(255,255,255,.16);padding:6px 10px;border-radius:3px;
}
.thus-news__band-title{font-family:var(--tn-serif);font-size:22px;font-weight:600;line-height:1.2}
.thus-news__band-cta{font-weight:600;font-size:14px;white-space:nowrap;border-bottom:1px solid rgba(255,255,255,.6)}
.thus-news__band:hover .thus-news__band-cta{border-color:#fff}
.thus-news__band[hidden]{display:none}
@media (max-width:640px){.thus-news__band{grid-template-columns:1fr}.thus-news__band-kicker{justify-self:start}}

/* ---------- Grid ---------- */
.thus-news__grid{display:grid;gap:var(--tn-gap);grid-template-columns:repeat(var(--tn-cols),minmax(0,1fr))}

/* ---------- Item ---------- */
.thus-news__item{
  position:relative;display:flex;flex-direction:column;
  background:var(--tn-card);border:1px solid var(--tn-line);border-radius:var(--tn-radius);
  overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.thus-news__item.is-hidden{display:none}
.thus-news__item:hover .thus-news__heading a{color:var(--tn-maroon)}

.thus-news__media{
  position:relative;display:block;overflow:hidden;
  aspect-ratio:var(--tn-img-ratio);background:var(--tn-paper-deep);
}
.thus-news__media img{
  width:100%;height:100%;object-fit:cover;object-position:center;display:block;
  transition:transform .35s ease,filter .35s ease;
}
.thus-news__media::after{content:"";position:absolute;inset:0;pointer-events:none;transition:background .2s}
.thus-news__item:hover .thus-news__media img{transform:scale(1.04)}

/* Badge */
.thus-news__type{
  position:absolute;z-index:2;top:var(--tn-badge-offset);left:var(--tn-badge-offset);
  font-size:12px;font-weight:600;letter-spacing:.04em;line-height:1;
  padding:6px 9px;border-radius:3px;color:#fff;background:var(--tn-maroon);
}
.thus-news--badge-tr .thus-news__media .thus-news__type{left:auto;right:var(--tn-badge-offset)}
.thus-news--badge-bl .thus-news__media .thus-news__type{top:auto;bottom:var(--tn-badge-offset)}
.thus-news--badge-br .thus-news__media .thus-news__type{top:auto;left:auto;right:var(--tn-badge-offset);bottom:var(--tn-badge-offset)}
.thus-news--badge-tr .thus-news__pin,.thus-news--badge-br .thus-news__pin{right:auto;left:var(--tn-badge-offset)}
.thus-news__type--notice{background:var(--tn-brass)}
.thus-news__type--urgent{background:var(--tn-urgent)}
.thus-news__type--exhibition{background:var(--tn-ink)}
.thus-news__type--event{background:var(--tn-maroon)}
.thus-news__body .thus-news__type{position:static;display:inline-block;align-self:flex-start;margin:0 0 12px}

.thus-news__pin{
  position:absolute;top:var(--tn-badge-offset);right:var(--tn-badge-offset);z-index:2;
  width:26px;height:26px;border-radius:50%;background:var(--tn-gold);color:var(--tn-ink);
  display:grid;place-items:center;font-size:13px;line-height:1;
}

.thus-news__body{padding:20px 22px 22px;display:flex;flex-direction:column;flex:1;text-align:left}

.thus-news__date{
  font-family:var(--tn-serif);font-size:17px;font-weight:600;font-style:italic;
  color:var(--tn-ink-soft);margin:0 0 8px;line-height:1.3;
}
.thus-news__when{
  font-family:var(--tn-sans);font-style:normal;font-weight:600;font-size:13px;
  color:var(--tn-maroon);margin-left:10px;padding-left:10px;border-left:1px solid var(--tn-line);
}
.thus-news__date time:empty + .thus-news__when,
.thus-news__date > .thus-news__when:first-child{margin-left:0;padding-left:0;border-left:0}

.thus-news__heading{
  margin:0 0 10px;font-family:var(--tn-serif);font-weight:600;
  font-size:23px;line-height:1.18;letter-spacing:-.005em;
}
.thus-news__heading a{text-decoration:none;color:var(--tn-ink);transition:color .15s}
.thus-news[data-cardlink="1"] .thus-news__heading a::after{content:"";position:absolute;inset:0;z-index:1}

.thus-news__excerpt{
  margin:0 0 16px;color:var(--tn-ink-soft);font-size:15px;line-height:1.6;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--tn-excerpt-lines);overflow:hidden;
}

.thus-news__more{
  margin-top:auto;font-size:14px;font-weight:600;color:var(--tn-maroon);text-decoration:none;
  display:inline-flex;align-items:center;gap:8px;position:relative;z-index:2;
}
.thus-news__more::after{content:"";width:22px;height:1px;background:var(--tn-gold);transition:width .18s ease}
.thus-news__item:hover .thus-news__more::after{width:36px}
.thus-news--no-rm-line .thus-news__more::after{display:none}

.thus-news__empty{
  grid-column:1/-1;text-align:center;padding:48px 20px;
  border:1px dashed var(--tn-line);border-radius:var(--tn-radius);color:var(--tn-ink-soft);
}

.thus-news__foot{margin:40px 0 0;text-align:center}
.thus-news__btn{
  display:inline-block;font-weight:600;font-size:15px;text-decoration:none;line-height:1.3;
  background:var(--tn-maroon);color:#fff;padding:14px 28px;border-radius:var(--tn-radius);
  border:1px solid var(--tn-maroon-deep);transition:background .15s,color .15s,border-color .15s;
}
.thus-news__btn:hover{background:var(--tn-maroon-deep);color:#fff}

/* ---------- Clamp helpers (a value of 0 is invalid for -webkit-line-clamp,
   so it computes to none = no clamp) ---------- */
.thus-news__heading{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:var(--tn-title-lines)}

/* ============================================================
   LAYOUT: featured + list
   ============================================================ */
.thus-news[data-layout="featured"] .thus-news__grid{
  grid-template-columns:minmax(0,var(--tn-featured-w)) minmax(0,1fr);
}
.thus-news[data-layout="featured"] .thus-news__item--featured{grid-row:1 / span 99}
.thus-news[data-layout="featured"] .thus-news__item--featured .thus-news__media{aspect-ratio:var(--tn-img-featured-ratio)}
.thus-news[data-layout="featured"] .thus-news__item--featured .thus-news__heading{font-size:clamp(26px,3vw,36px)}
.thus-news[data-layout="featured"] .thus-news__item--featured .thus-news__excerpt{font-size:17px;-webkit-line-clamp:var(--tn-featured-excerpt-lines)}
.thus-news[data-layout="featured"] .thus-news__item--side{
  display:grid;grid-template-columns:104px 1fr;gap:16px;
  padding:0 0 18px;border:0;border-bottom:1px solid var(--tn-line);background:none;border-radius:0;
}
.thus-news[data-layout="featured"] .thus-news__item--side .thus-news__media{aspect-ratio:1/1;border-radius:3px}
.thus-news[data-layout="featured"] .thus-news__item--side .thus-news__body{padding:0}
.thus-news[data-layout="featured"] .thus-news__item--side .thus-news__heading{font-size:19px}
.thus-news[data-layout="featured"] .thus-news__item--side .thus-news__more{display:none}
.thus-news[data-layout="featured"][data-side-excerpt="0"] .thus-news__item--side .thus-news__excerpt{display:none}
.thus-news[data-layout="featured"][data-side-excerpt="1"] .thus-news__item--side .thus-news__excerpt{font-size:14px;-webkit-line-clamp:2;margin-bottom:0}
.thus-news[data-layout="featured"] .thus-news__item--side .thus-news__type{font-size:11px;padding:5px 7px}
.thus-news[data-layout="featured"] .thus-news__item--side .thus-news__pin{width:22px;height:22px;font-size:11px}
@media (max-width:860px){
  .thus-news[data-layout="featured"] .thus-news__grid{grid-template-columns:1fr}
  .thus-news[data-layout="featured"] .thus-news__item--featured{grid-row:auto}
}

/* ============================================================
   LAYOUT: list
   ============================================================ */
.thus-news[data-layout="list"] .thus-news__grid{grid-template-columns:1fr;gap:0}
.thus-news[data-layout="list"] .thus-news__item{
  display:grid;grid-template-columns:var(--tn-list-img) 1fr;gap:24px;
  padding:22px 0;border:0;border-bottom:1px solid var(--tn-line);background:none;border-radius:0;
}
.thus-news[data-layout="list"].thus-news--img-right .thus-news__item{grid-template-columns:1fr var(--tn-list-img)}
.thus-news[data-layout="list"].thus-news--img-right .thus-news__media{order:2}
.thus-news[data-layout="list"] .thus-news__grid > .thus-news__item:first-child{border-top:1px solid var(--tn-line)}
.thus-news[data-layout="list"] .thus-news__media{aspect-ratio:1/1;border-radius:3px}
.thus-news[data-layout="list"] .thus-news__body{padding:0}
.thus-news[data-layout="list"] .thus-news__excerpt{-webkit-line-clamp:2}
@media (max-width:600px){.thus-news[data-layout="list"] .thus-news__item{grid-template-columns:90px 1fr;gap:14px}}

/* ============================================================
   Responsive grid fallbacks (Elementor's responsive columns
   control overrides these when set)
   ============================================================ */
@media (max-width:1024px){.thus-news[data-layout="grid"] .thus-news__grid{grid-template-columns:repeat(min(var(--tn-cols),2),minmax(0,1fr))}}
@media (max-width:600px){.thus-news[data-layout="grid"] .thus-news__grid{grid-template-columns:1fr}}
