/* Direct ads: reserve the selected ratio; never stretch or crop the artwork. */
.tr-ad-slot { box-sizing: border-box; clear: both; max-width: 100%; margin: 28px auto; text-align: center; font-family: var(--tr-sans, sans-serif); }
.tr-ad-label { margin: 0 0 8px; color: #586b6c; font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; }
.tr-ad-slot .tr-ad-frame { display: block; width: min(100%, calc(var(--tr-ad-w) * 1px)); max-width: 100%; aspect-ratio: var(--tr-ad-w) / var(--tr-ad-h); margin-inline: auto; background: #edf0ed; overflow: hidden; border-radius: 0; text-decoration: none; }
.tr-ad-slot .tr-ad-frame:focus-visible { outline: 3px solid #a7663e; outline-offset: 5px; }
.tr-ad-slot picture { display: block; width: 100%; height: 100%; }
.tr-ad-slot img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; border: 0; border-radius: 0; }
.tr-ad-slot--home_top, .tr-ad-slot--home_middle, .tr-ad-slot--home_bottom, .tr-ad-slot--article_top { width: min(1280px, calc(100% - 48px)); }
.tr-ad-slot--home_bottom { margin-block: 40px; }
.tr-ad-slot--article_end { margin-top: 40px; }
.tr-article-sidebar { min-width: 0; align-self: start; }
.tr-ad-slot--article_sidebar { margin: 0 0 32px; }
@media (min-width: 1081px) {
  .tr-article-layout--ads { grid-template-columns: 70px minmax(0, 760px) 300px; gap: 32px; }
}
@media (max-width: 1080px) {
  .tr-article-sidebar { display: none; }
}
@media (max-width: 782px) {
  .tr-ad-slot { margin-block: 24px; }
  .tr-ad-slot .tr-ad-frame { width: min(100%, calc(var(--tr-ad-mw) * 1px)); aspect-ratio: var(--tr-ad-mw) / var(--tr-ad-mh); }
  .tr-ad-slot--desktop-only { display: none; }
  .tr-ad-slot--home_top, .tr-ad-slot--home_middle, .tr-ad-slot--home_bottom, .tr-ad-slot--article_top { width: calc(100% - 32px); }
}
@media print { .tr-ad-slot, .tr-article-sidebar { display: none !important; } }

/* House campaign: one cached artwork, live accessible text, every supported size. */
.tr-ad-slot .tr-ad-frame.tr-promo { position: relative; container: trpromo / size; color: #fff9ed; text-align: left; font-family: var(--tr-sans, Arial, sans-serif); background: linear-gradient(90deg, rgba(5,36,38,.97), rgba(5,36,38,.75) 65%, rgba(5,36,38,.2)), url('../images/promo-valea-trotusului.webp') center / cover; }
.tr-promo-inner { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-content: center; align-items: center; gap: 10px 28px; padding: 28px 36px; box-sizing: border-box; }
.tr-promo-brand { grid-column: 1; font: bold 25px/1.05 Georgia, serif; letter-spacing: -.04em; color: #fff9ed; }
.tr-promo-brand > span { color: #dfb786; }
.tr-promo-title { grid-column: 1; font: bold 40px/1.07 Georgia, serif; letter-spacing: -.025em; color: #fff9ed; }
.tr-promo-title-short { display: none; }
.tr-promo-description { grid-column: 1; font-size: 13px; line-height: 1.4; color: #e2e8de; }
.tr-promo-cta { grid-column: 2; grid-row: 2; justify-self: start; display: inline-flex; align-items: center; gap: 14px; padding: 12px 18px; background: #ebc999; color: #092b2e; font: bold 13px/1.2 Arial, sans-serif; border-radius: 3px; }
.tr-promo-cta > span { font-size: 19px; line-height: 1; }
.tr-promo-cta--static { background: transparent; color: #ebc999; padding-inline: 0; }
.tr-promo-size { position: absolute; bottom: 10px; right: 14px; font: 10px/1 Arial, sans-serif; color: #e6d3b7; letter-spacing: .08em; }
@container trpromo (max-width: 600px) and (min-height: 121px) {
  .tr-promo-inner { grid-template-columns: 1fr; padding: 22px; gap: 10px; }
  .tr-promo-brand { font-size: 20px; }
  .tr-promo-title { font-size: 31px; }
  .tr-promo-title-full { display: none; }
  .tr-promo-title-short { display: inline; }
  .tr-promo-description { font-size: 12px; }
  .tr-promo-cta { grid-column: 1; grid-row: auto; font-size: 12px; padding: 10px 14px; }
}
@container trpromo (max-width: 400px) and (min-height: 400px) {
  .tr-promo-inner { padding: 30px 24px 42px; gap: 18px; align-content: end; }
  .tr-promo-brand { font-size: 25px; }
  .tr-promo-title { font-size: 37px; }
  .tr-promo-title-full { display: inline; }
  .tr-promo-title-short { display: none; }
  .tr-promo-description { font-size: 14px; }
}
@container trpromo (max-width: 280px) and (min-height: 121px) {
  .tr-promo-inner { padding: 18px; }
  .tr-promo-title { font-size: 27px; }
  .tr-promo-description { display: none; }
}
@container trpromo (max-height: 120px) {
  .tr-promo-inner { grid-template-columns: auto minmax(0,1fr) auto; padding: 12px 20px; gap: 18px; }
  .tr-promo-brand { grid-column: 1; grid-row: 1; font-size: 21px; }
  .tr-promo-title { grid-column: 2; grid-row: 1; font-size: 25px; }
  .tr-promo-title-full, .tr-promo-description, .tr-promo-size { display: none; }
  .tr-promo-title-short { display: inline; }
  .tr-promo-cta { grid-column: 3; grid-row: 1; padding: 10px 14px; font-size: 12px; gap: 8px; }
}
@container trpromo (max-width: 400px) and (max-height: 120px) {
  .tr-promo-inner { grid-template-columns: minmax(0,1fr) auto; padding: 12px; gap: 5px 12px; }
  .tr-promo-brand { grid-column: 1; grid-row: 1; font-size: 15px; }
  .tr-promo-title { grid-column: 1; grid-row: 2; font-size: 19px; }
  .tr-promo-cta { grid-column: 2; grid-row: 1 / 3; padding: 9px; font-size: 11px; }
  .tr-promo-cta > span { display: none; }
}
@container trpromo (max-width: 400px) and (max-height: 65px) {
  .tr-promo-inner { padding: 6px 10px; gap: 8px; }
  .tr-promo-brand { display: none; }
  .tr-promo-title { grid-row: 1; font-size: 15px; line-height: 1.05; }
  .tr-promo-cta { grid-row: 1; padding: 7px; font-size: 10px; }
}
@media (max-width: 782px) { .tr-promo-size { display: none; } }

/* Alex Pricope campaign: follow each artwork's natural ratio, including the mobile source. */
.tr-ad-slot .tr-ad-frame[href="https://alexpricope.com/"] { aspect-ratio: auto; background: transparent; }
.tr-ad-slot .tr-ad-frame[href="https://alexpricope.com/"] picture { height: auto; }
.tr-ad-slot .tr-ad-frame[href="https://alexpricope.com/"] img { height: auto; aspect-ratio: auto; }
