/* Specials: the tear-apart offer ticket and its supporting tiles. Builds on site.css. */

/* Wide ticket rows (opening offer and the closing tile): photo bites the join; stacks photo-first on phones */
.wide { flex-direction: column-reverse; }
.wide > .stub { flex: none; min-height: 0; --ratio: 16 / 9; }
.wide > .stub::after { left: calc(50% - var(--notch) / 2); top: auto; bottom: calc(var(--notch) / -2); }
@media (min-width: 48rem) {
  .wide { flex-direction: row; }
  .wide > .stub { flex: 0 0 40%; min-height: 13rem; --ratio: 4 / 3; }
  .wide > .stub::after { left: calc(var(--notch) / -2); top: calc(50% - var(--notch) / 2); bottom: auto; }
}

/* Opening: the offer sentence on the magenta band, taco photo beside it */
.offer-top { --paper: var(--hot); --perf: var(--ink); }
.offer-top .ticket__body { display: flex; align-items: center; padding: calc(var(--pad) * 1.5); }
.offer-top__line { margin: 0; font: 400 clamp(1.625rem, 1.1rem + 2vw, 2.625rem)/1.2 var(--display); text-wrap: balance; }

/* Set piece: two halves joined at a notched perforation */
.pair { flex-direction: column; align-items: stretch; }
.half { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: var(--pad); }
.half > :last-child { margin-bottom: 0; }
.half .stub { margin-bottom: var(--pad); }
.half__big { margin: .1em 0 .4em; font: 400 clamp(1.875rem, 1.3rem + 2vw, 2.75rem)/1.1 var(--display); text-wrap: balance; }
.half__link { margin-top: auto; padding-top: .5rem; }
.half__link a { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; font-weight: 600; }
.half--get { --paper: var(--hot); background: var(--hot); }
.half--get h3 { margin-top: 0; }

/* On phones the tear lies flat between the halves */
@media (max-width: 47.99rem) {
  .pair > .tear--v { width: auto; height: 0; align-self: stretch; border-left: 0; border-top: var(--line) dashed var(--perf); }
  .pair > .tear--v::before, .pair > .tear--v::after { top: calc(var(--line) / 2 - var(--notch) / 2); bottom: auto; }
  .pair > .tear--v::before { left: calc(var(--notch) / -2 - var(--line) / 2); right: auto; transform: rotate(45deg); }
  .pair > .tear--v::after { left: auto; right: calc(var(--notch) / -2 - var(--line) / 2); transform: rotate(225deg); }
}
@media (min-width: 48rem) {
  .pair { flex-direction: row; }
  .half { padding: calc(var(--pad) * 1.25); }
}

/* Conditions */
.terms .specs dd { max-width: 16rem; }
.phone .small { margin-bottom: 0; }
.phone__num { font: 600 1.375rem/1.2 var(--text); margin-bottom: .75rem; }
.phone__num a { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (min-width: 56rem) { .terms .board { align-items: start; } }

/* Closing tile: wide and short */
.ask .ticket__body { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--pad) * 1.25); }
.ask h2 { margin-bottom: .3em; }
.ask__links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .25rem; }
.ask__links .btn { flex: 1 1 14rem; }
