/* KATIE BAD homepage merch promo (only linked when SHOP_ENABLED=true; markup in src/promo.ts). */

/* ---------------------------------------------------------------- hero: red slab right under the masthead + ticker, above the lead story */
.tz-promo { position: relative; display: grid; gap: 16px; margin: 0; padding: 18px 12px 20px; color: #fff; overflow: hidden;
  background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(0, 0, 0, .06) 22px 44px), var(--red);
  border-top: 6px solid var(--blk); border-bottom: 6px solid var(--blk); }
.tz-promo-copy { min-width: 0; }
.tz-promo-kick { margin: 0 0 8px; font: 700 12.5px/1.2 var(--cond); letter-spacing: .12em; text-transform: uppercase; }
.tz-promo-flash { display: inline-block; background: var(--blk); color: #fff; padding: 4px 7px 3px; margin-right: 6px; letter-spacing: .1em; }
.tz-promo-h { margin: 0; font: 400 clamp(50px, 15vw, 112px)/.86 var(--head); text-transform: uppercase; letter-spacing: -.005em; text-shadow: 3px 3px 0 rgba(0, 0, 0, .35); }
.tz-promo-h span { display: block; color: var(--blk); text-shadow: none; }
.tz-promo-dek { margin: 12px 0 14px; font: 600 17px/1.3 var(--cond); letter-spacing: .01em; max-width: 34em; }
.tz .tz-promo-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--blk); color: #fff; text-decoration: none;
  font: 400 26px/1 var(--head); letter-spacing: .03em; padding: 15px 20px 14px; box-shadow: 5px 5px 0 rgba(0, 0, 0, .3); transition: background .15s, color .15s, transform .15s; }
.tz .tz-promo-btn:hover, .tz .tz-promo-btn:focus-visible { background: #fff; color: var(--red); transform: translateY(-2px); }
.tz-promo-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 12px 0 0; font: 700 14px/1 var(--cond); letter-spacing: .1em; }
.tz-promo-links a { color: #fff; text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.tz-promo-links a:hover { border-bottom-color: #fff; }
.tz-promo-links a + a::before { content: "·"; display: inline-block; margin: 0 10px; color: var(--blk); }
.tz-promo-small { margin: 10px 0 0; font: 600 11px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; opacity: .78; text-align: center; }

/* collage: one big tile + four small (fewer products: equal tiles) */
.tz-promo-art { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; align-content: start; padding: 4px 4px 6px 0; }
.tz-promo-t0 { grid-column: 1 / 3; grid-row: 1 / 3; }
.tz-promo-n1, .tz-promo-n2, .tz-promo-n3, .tz-promo-n4 { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.tz-promo-n1 { --n: 1; } .tz-promo-n2 { --n: 2; } .tz-promo-n3 { --n: 3; } .tz-promo-n4 { --n: 4; }
.tz-promo-art:not(.tz-promo-n5) .tz-promo-t0 { grid-column: auto; grid-row: auto; }
.tz-promo-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #fff; border: 3px solid var(--blk); box-shadow: 4px 4px 0 var(--blk); transition: transform .2s; }
.tz-promo-tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tz-promo-t0 { transform: rotate(-1.4deg); } .tz-promo-t1 { transform: rotate(1.6deg); } .tz-promo-t2 { transform: rotate(-1.2deg); }
.tz-promo-t3 { transform: rotate(1.1deg); } .tz-promo-t4 { transform: rotate(-1.8deg); }
.tz-promo-tile:hover, .tz-promo-tile:focus-visible { transform: rotate(0) scale(1.04); z-index: 2; }
.tz-promo-lbl { position: absolute; left: 0; bottom: 0; max-width: 100%; background: var(--blk); color: #fff; font: 700 9.5px/1 var(--cond); letter-spacing: .08em; padding: 5px 6px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-promo-lbl b { color: #ffd400; }
.tz-promo-t0 .tz-promo-lbl { font-size: 12px; padding: 6px 8px 5px; }
@media (max-width: 559px) { .tz-promo-tile:not(.tz-promo-t0) .tz-promo-lbl b { display: block; margin-top: 3px; } }
.tz-promo-burst { left: -4px; top: -8px; width: 76px; aspect-ratio: 1; font-size: 12px; z-index: 3; transform: rotate(-12deg); pointer-events: none; }

@media (min-width: 560px) {
  .tz-promo-lbl { font-size: 11px; }
  .tz-promo-burst { width: 96px; font-size: 15px; }
}
@media (min-width: 760px) {
  .tz-promo { margin: 26px 22px 0; padding: 26px 26px 26px; }
  .tz-promo-links { justify-content: flex-start; }
  .tz-promo-small { text-align: left; }
  .tz .tz-promo-btn { display: inline-flex; font-size: 30px; padding: 16px 26px 15px; }
}
@media (min-width: 1024px) {
  /* full width above .tz-top (lead story + rail); copy left, collage right */
  .tz-promo { margin: 22px 22px 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; padding: 26px 34px; }
  .tz-promo-h { font-size: clamp(76px, 6.6vw, 104px); }
  .tz-promo-dek { font-size: 19px; }
  .tz-promo-lbl { font-size: 12px; }
  .tz-promo-t0 .tz-promo-lbl { font-size: 14px; }
}

/* ---------------------------------------------------------------- gallery classifieds ("PAID ADVERTISEMENT") */
.tz-ad { display: flex; text-decoration: none; color: #111; min-width: 0; }
.tz-ad-box { flex: 1; display: grid; gap: 7px; align-content: start; padding: 10px 11px 9px; background: #f3ead2; border: 5px double #111;
  font-family: Georgia, "Times New Roman", Times, serif; box-shadow: 0 0 0 0 var(--red); transition: box-shadow .15s;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  grid-template-areas: "top top" "img kick" "img h" "img name" "img row" "dek dek" "fine fine"; }
.tz-ad:hover .tz-ad-box, .tz-ad:focus-visible .tz-ad-box { box-shadow: 0 0 0 3px var(--red); }
.tz-ad-top { grid-area: top; text-align: center; font: 700 10.5px/1 var(--cond); letter-spacing: .32em; border-bottom: 1px solid #111; padding: 0 0 6px; }
.tz-ad-kick { grid-area: kick; justify-self: start; background: #111; color: #f3ead2; font: 400 13px/1 var(--head); letter-spacing: .06em; padding: 4px 6px 3px; }
.tz-ad-h { grid-area: h; font: 400 19px/1.03 var(--head); text-transform: uppercase; letter-spacing: .005em; }
.tz-ad:hover .tz-ad-h { color: var(--red); }
.tz-ad-img { grid-area: img; align-self: start; display: block; aspect-ratio: 1; overflow: hidden; background: #fff; border: 1px solid #111; }
.tz-ad-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tz-ad-name { grid-area: name; font-size: 12.5px; font-style: italic; line-height: 1.25; }
.tz-ad-row { grid-area: row; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.tz-ad-price { font: 400 22px/1 var(--head); color: var(--red); }
.tz-ad-cta { background: #111; color: #fff; font: 700 11px/1 var(--cond); letter-spacing: .08em; padding: 6px 7px 5px; white-space: nowrap; }
.tz-ad:hover .tz-ad-cta { background: var(--red); }
.tz-ad-dek { grid-area: dek; font-size: 13px; font-style: italic; line-height: 1.3; text-align: center; border-top: 1px solid #111; padding-top: 6px; }
.tz-ad-fine { grid-area: fine; text-align: center; font: 600 9px/1.2 var(--cond); letter-spacing: .14em; border-top: 1px dashed #111; padding-top: 5px; }

/* phones: the classified runs across both columns (dense flow backfills the cell it skips) */
@media (max-width: 759px) {
  .tz-grid { grid-auto-flow: row dense; }
  .tz-ad { grid-column: 1 / -1; }
}
/* 3-4 column grid: a regular card-sized, stacked classified */
@media (min-width: 760px) {
  .tz-ad-box { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "kick" "h" "img" "name" "row" "dek" "fine"; text-align: center; }
  .tz-ad-kick { justify-self: center; }
  .tz-ad-img { justify-self: center; width: 74%; }
  .tz-ad-h { font-size: 22px; }
  .tz-ad-row { justify-content: center; gap: 12px; }
}
