/* Sunday Service ticket pages. Uses the site's own tokens from style.css.
   Type: Fredoka bold headings, Mulish body, Fredoka caps for labels. No boxes with outlines, open layout. */

.tkhero{position:relative;overflow:hidden;text-align:center}
.tkhero .hero__sun{opacity:.4}
.tkhero__grid{display:grid;gap:clamp(1.6rem,5vw,3rem);align-items:center}
.tkhero__copy h1{margin:0}
.tkhero__copy .lead{max-width:34ch;margin:1.1rem auto 0}
.tkhero__copy .tkhero__when{margin-top:.8rem;color:var(--brown)}
.tkhero__price{display:flex;flex-wrap:wrap;gap:.5rem 1.4rem;justify-content:center;margin:1.4rem 0 0;font-family:var(--display);font-weight:700;font-size:clamp(1.15rem,.95rem + 1vw,1.6rem);color:var(--red)}
.tkhero__cta{display:flex;justify-content:center;margin-top:1.6rem}
.tkhero__photo{max-width:380px;width:100%;margin-inline:auto}
.tkhero__photo .frame{aspect-ratio:4/5}
.tkhero__photo .frame img{object-position:center 35%}
.tkhero--solo .wrap{max-width:760px}
@media (min-width:860px){
  .tkhero{text-align:left}
  .tkhero__grid{grid-template-columns:1.1fr .9fr}
  .tkhero__copy .lead{margin-inline:0}
  .tkhero__price{justify-content:flex-start}
  .tkhero__cta{justify-content:flex-start}
}

/* last year's crowd, between hero and form */
.tkbanner .frame{aspect-ratio:16/9}
.tkbanner .frame img{object-position:center 40%}
@media (min-width:860px){.tkbanner .frame{aspect-ratio:21/9}}

/* shop */
#tickets{scroll-margin-top:72px}
.tkshop__wrap{max-width:720px}
.tkform{background:var(--cream-2);border-radius:var(--radius);padding:clamp(1.3rem,4.5vw,2.4rem)}
.tkform h2{margin-bottom:1.2rem}
.tkrows{display:grid;gap:.2rem;margin-bottom:1.4rem}
.tkrow{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;border-bottom:2px solid var(--cream-3)}
.tkrow:last-child{border-bottom:0}
.tkrow__name{font-family:var(--display);font-weight:700;color:var(--brown);font-size:clamp(1.15rem,1rem + .8vw,1.45rem);line-height:1.1;margin:0}
.tkrow__sub{margin:.25rem 0 0;font-size:.95rem;color:#7a5a33}
.tkrow__price{font-family:var(--display);font-weight:700;color:var(--red);font-size:1.15rem;margin-right:.2rem;white-space:nowrap}
.tkrow__ctl{display:flex;align-items:center;gap:.7rem;flex:0 0 auto}
.step{display:flex;align-items:center;gap:.2rem}
.step button{width:44px;height:44px;border-radius:50%;background:var(--cream);color:var(--brown);font-family:var(--display);font-weight:700;font-size:1.5rem;line-height:1;display:grid;place-items:center;box-shadow:inset 0 0 0 2.5px var(--brown);transition:background .2s,color .2s}
.step button:hover:not(:disabled){background:var(--brown);color:var(--cream)}
.step button:disabled{opacity:.35;cursor:default}
.step output{min-width:2ch;text-align:center;font-family:var(--display);font-weight:700;font-size:1.3rem;color:var(--brown)}
.tkrow.is-out{opacity:.55}

.tkfields{display:grid;gap:1rem;grid-template-columns:1fr;margin-bottom:1.4rem}
.tkfields .full{grid-column:1/-1}
@media (min-width:600px){.tkfields{grid-template-columns:1fr 1fr}}
.tk__hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0}

.tksum__line{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin:0 0 1rem;font-family:var(--display);font-weight:600;color:var(--brown);font-size:1.1rem}
.tksum__amt{white-space:nowrap;color:var(--red)}
.tksum__line strong{font-weight:700;font-size:1.6rem;color:var(--red)}
.tksum__amt small{font-size:1.1rem;font-weight:600}
.tkfields input{font-size:max(16px,1rem)}
/* Phones: the total and Checkout ride the bottom of the screen while the form is on it */
@media (max-width:759px){
  .tksum{display:contents}
  .tksum__bar{position:sticky;bottom:0;z-index:5;background:var(--cream-2);margin-inline:calc(-1 * clamp(1.3rem,4.5vw,2.4rem));padding:.8rem clamp(1.3rem,4.5vw,2.4rem) calc(.8rem + env(safe-area-inset-bottom,0px));box-shadow:0 -14px 22px -18px rgba(63,32,0,.45)}
  .tksum__bar .tksum__line{margin-bottom:.6rem}
  .tksum__bar .tk__err{margin-bottom:.5rem}
}
.tksum .btn{width:100%;justify-content:center}
.tksum .btn:disabled{opacity:.45;cursor:default;transform:none;box-shadow:none}
.tk__err{margin:0 0 1rem;font-family:var(--display);font-weight:600;color:var(--red)}
.tk__fine{margin:1rem 0 0;font-size:.9rem;color:#7a5a33;text-align:center}
.tk__note{font-family:var(--display);font-weight:500;color:#7a5a33}

/* info */
.tkinfo__grid{display:grid;gap:1.6rem;text-align:center;max-width:820px}
.tkinfo__grid h3{margin-bottom:.4rem;color:var(--red)}
.tkinfo__grid p{margin:0}
@media (min-width:700px){.tkinfo__grid{grid-template-columns:repeat(3,1fr)}}

/* ticket view */
.tkview{margin-top:1.6rem;text-align:center}
.tkview__lead{font-size:clamp(1.05rem,.9rem + .6vw,1.25rem);color:var(--brown-2);margin:0 0 .4rem}
.tkview__when{font-family:var(--display);font-weight:700;color:var(--red);font-size:clamp(1.15rem,1rem + 1vw,1.55rem);margin:0 0 1.8rem}
.tkcodes{display:grid;gap:1.6rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));margin-bottom:1.8rem}
.tkcode{background:var(--cream-2);border-radius:var(--radius);padding:1.2rem 1rem 1rem}
.tkcode img{width:100%;max-width:300px;min-width:240px;margin:0 auto;background:#fff;border-radius:12px;image-rendering:pixelated}
.tkcode__name{margin:.8rem 0 .1rem;font-family:var(--display);font-weight:700;color:var(--brown);font-size:1.15rem}
.tkcode__code{margin:0;font-family:var(--display);font-weight:700;letter-spacing:.14em;color:var(--red);font-size:1.15rem}
.tkcodes{justify-items:center}
.tkcode{width:100%;max-width:360px}
.tkwait{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:2rem 0}
.tkwait__dot{width:46px;height:46px;border-radius:50%;border:5px solid var(--cream-3);border-top-color:var(--red);animation:tkspin 1s linear infinite}
@keyframes tkspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.tkwait__dot{animation:none}}
.tkcode.is-void{opacity:.5}
.tkcode.is-void .tkcode__name::after{content:" (void)"}

/* last year gallery */
.tklast h2{text-align:center;margin-bottom:clamp(1.2rem,3vw,2rem)}
.tklast__grid{display:grid;gap:clamp(.6rem,1.6vw,1rem);grid-template-columns:repeat(2,1fr)}
.tklast__grid .frame{aspect-ratio:4/3}
.tklast__grid .frame:first-child{grid-column:span 2}
@media (min-width:860px){
  .tklast__grid{grid-template-columns:repeat(3,1fr)}
  .tklast__grid .frame:first-child{aspect-ratio:auto}
  .tklast__grid .frame:first-child img{position:absolute;inset:0;object-position:center 58%}
}
.tklast__cta{display:flex;justify-content:center;margin-top:clamp(1.4rem,3.5vw,2.2rem)}
