/* TableWeek – columns + one-line titles for [updaterweek_sessions layout="card"]. Loaded after updaterweek-front.css. */

/* The wrapper is a size container: the number of columns follows the width of the page area, not only the screen. */
.tw-wrap{container-type:inline-size;container-name:tw;width:100%;min-width:0}

/* Grid: N columns when the area is wide enough (a card is never narrower than ~180px), fewer otherwise. */
.tw-cols{grid-template-columns:minmax(0,1fr);gap:16px;align-items:stretch}
@container tw (min-width:376px){.tw-cols{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container tw (min-width:572px){.tw-cols-3,.tw-cols-4,.tw-cols-5,.tw-cols-6,.tw-cols-7{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container tw (min-width:768px){.tw-cols-4,.tw-cols-5,.tw-cols-6,.tw-cols-7{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container tw (min-width:964px){.tw-cols-5,.tw-cols-6,.tw-cols-7{grid-template-columns:repeat(5,minmax(0,1fr))}}
@container tw (min-width:1160px){.tw-cols-6,.tw-cols-7{grid-template-columns:repeat(6,minmax(0,1fr))}}
@container tw (min-width:1356px){.tw-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}}
@supports not (container-type:inline-size){
  .tw-cols{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
}

/* Equal-height cards: the booking button sits at the bottom. */
.tw-cols .uw-card{height:100%}
.tw-cols .uw-card__cta{margin-top:auto}
.tw-cols .uw-card__body>:nth-last-child(2){margin-bottom:20px}
.tw-cols .uw-card__brand{padding-left:14px;padding-right:14px}

/* Harmonised titles: same size in every card of a list, on one or two lines.
   tableweek.js sets --tw-title-size and --tw-title-lines on the list; the title height is the same in every card,
   so the rest of the card (time, place, map, button) stays aligned. Without JS: 1.5rem on up to two lines. */
.tw-fit .uw-card__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--tw-title-lines,2);margin-top:10px;overflow:hidden;font-size:var(--tw-title-size,1.5rem);line-height:1.12;min-height:calc(var(--tw-title-lines,2) * 1.12em);white-space:normal;word-break:normal;overflow-wrap:break-word;hyphens:none;text-overflow:ellipsis}
.tw-fit .uw-card__link{display:inline}
/* Measuring pass (JS only): natural height, no clamp. */
.tw-measure .uw-card__title{display:block!important;-webkit-line-clamp:unset!important;min-height:0!important}
.tw-measure-1 .uw-card__title{white-space:nowrap!important}

/* Narrow cards (many columns): tighter spacing, everything stays readable. */
@container (max-width:260px){
  .tw-cols .uw-card__brand{min-height:42px}
  .tw-cols .uw-card__brand>span{font-size:1.2rem}
  .tw-cols .uw-card__body{padding:14px 14px 16px}
  .tw-cols .uw-card__top{flex-wrap:wrap;gap:8px}
  .tw-cols .uw-card__date{font-size:.66rem}
  .tw-cols .uw-badge{padding:5px 9px;font-size:.64rem}
  .tw-cols .uw-card__time{margin-top:12px;font-size:.88rem}
  .tw-cols .uw-card__desc{font-size:.84rem;-webkit-line-clamp:3}
  .tw-cols .uw-card__place{margin-top:14px;font-size:.92rem}
  .tw-cols .uw-card__addr{font-size:.82rem}
  .tw-cols .uw-pill{font-size:.68rem;padding:4px 9px}
  .tw-cols .uw-map--card{height:140px;margin-top:14px;border-radius:16px}
  .tw-cols .uw-card__cta{padding:12px 14px;font-size:.68rem}
}
