/* In the Tri · single event page, "ticket + poster" theme (2026.10.08)
   Load AFTER site.css and growth.css. Everything here is scoped to .evp
   (the <main> on event pages) so no other page changes.

   Category accent: the generator puts one class on <main>, e.g.
   <main class="evp cat-festivals">, using the pipeline's category keys
   (gen_pages.CATS). Accent fills only (date stub,
   chip). Small text always stays Dark Brown Ink: every accent measures
   about 4:1 on its own tint, under AA for body text. */

.evp{ --cat:#B25219; --cat-tint:#F7E3C6; } /* fallback; category class below wins on order */
.cat-live-music  { --cat:#B04F18; --cat-tint:#F6DFC2; }
.cat-food        { --cat:#357A5E; --cat-tint:#D9E7DE; }
.cat-festivals   { --cat:#B25219; --cat-tint:#F7E3C6; }
.cat-arts        { --cat:#7A4A2A; --cat-tint:#EBDAC8; }
.cat-theater     { --cat:#7A4A2A; --cat-tint:#EBDAC8; }
.cat-sports      { --cat:#B5471F; --cat-tint:#F3D9C9; }
.cat-market      { --cat:#3D7660; --cat-tint:#DEE9D6; }
.cat-outdoors    { --cat:#28523E; --cat-tint:#D9E7DE; }
.cat-family      { --cat:#8A6610; --cat-tint:#F6E3A0; }
.cat-community   { --cat:#11463A; --cat-tint:#D9E7DE; }

.evp{ max-width:none; padding:0; }
.evp .wrap{ max-width:var(--maxw); margin:0 auto; padding:0 20px; }

/* ---------- Poster header ---------- */
.evp-poster{
  position:relative; overflow:hidden; background:var(--cat-tint);
  border-bottom:5px double var(--ink);
}
.evp-poster::before{ /* sunburst rays from below the fold line */
  content:""; position:absolute; inset:0; pointer-events:none;
  background:repeating-conic-gradient(from 0deg at 50% 140%,
    rgba(255,251,234,.55) 0deg 5deg, rgba(255,251,234,0) 5deg 10deg);
}
.evp-poster .wrap{ position:relative; padding-top:22px; padding-bottom:20px; }
.evp-kicker{
  margin:0; font:800 12.5px/1.4 var(--body); letter-spacing:.16em;
  text-transform:uppercase; color:var(--ink);
}
.evp-poster h1{
  margin:8px 0 12px; font-family:var(--display); font-weight:400;
  font-size:36px; line-height:1.04; letter-spacing:.01em; color:var(--ink);
  text-wrap:balance; overflow-wrap:anywhere;
}
.evp-poster h1.t-l { font-size:30px; line-height:1.08; }
.evp-poster h1.t-xl{ font-size:26px; line-height:1.12; }
.evp-chips{ display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; list-style:none; }
.evp-chips .ev-cat{ display:inline-block; font-size:11.5px; padding:4px 10px; }
.evp-chips .cat-chip{ background:var(--cat); color:#FFFBEA; }

/* ---------- The ticket ---------- */
.tix{
  position:relative; display:grid; margin:18px 0 6px;
  grid-template-columns:84px minmax(0,1fr);
  grid-template-areas:"date body" "act act" "verify verify";
  background:var(--card); border:2px solid var(--ink); border-radius:10px;
}
.tix-date{
  grid-area:date; position:relative; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:2px; padding:16px 6px;
  background:var(--cat); color:#FFFBEA; border-right:2px dashed var(--ink);
  border-radius:8px 0 0 0; text-align:center;
}
.tix-date .d,.tix-date .m{ font:800 13px/1.2 var(--body); letter-spacing:.12em; text-transform:uppercase; }
.tix-date .n{ font-family:var(--display); font-size:44px; line-height:1; }
.tix-body{ grid-area:body; padding:14px 16px 6px; min-width:0; }
.tix-stamp{
  display:inline-block; margin:3px 0 14px 3px; padding:4px 9px;
  font:800 11.5px/1.3 var(--body); letter-spacing:.08em; text-transform:uppercase;
  color:var(--green); border:2px solid var(--green); border-radius:3px;
  outline:1px solid var(--green); outline-offset:2px; transform:rotate(-1.5deg);
}
.tix-stamp.is-muted{ color:var(--ink-soft); border:2px dashed var(--ink-soft); outline:0; transform:none; margin-left:0; }
.tix-stamp.is-warn{ color:var(--orange-sh); border-color:var(--orange-sh); outline-color:var(--orange-sh); }
.tix-facts{ margin:0; display:grid; gap:12px; }
.tix-facts dt{
  font:800 11px/1.3 var(--body); letter-spacing:.12em; text-transform:uppercase;
  color:var(--ink-mute);
}
.tix-facts dd{ margin:2px 0 0; font:600 16px/1.35 var(--body); color:var(--ink); overflow-wrap:anywhere; }
.tix-facts dd a{ color:inherit; text-decoration:underline; text-decoration-color:var(--line2); text-underline-offset:3px; }
.tix-facts dd a:hover{ text-decoration-color:var(--ink); }
.tix-facts .sub{ display:block; margin-top:2px; font:400 14px/1.4 var(--body); color:var(--ink-soft); }
.tix-facts .is-missing{ font-weight:500; color:var(--ink-soft); }

.tix-act{
  grid-area:act; position:relative; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:10px;
  padding:16px; border-top:2px dashed var(--ink);
}
.tix-verify{
  grid-area:verify; margin:0; padding:11px 16px 13px; border-top:2px dashed var(--line);
  font:600 13.5px/1.5 var(--body); color:var(--green);
}
.tix-verify.is-unchecked{ color:var(--ink); background:var(--warmsun); border-radius:0 0 8px 8px; }
.tix-verify.is-unchecked strong{ font-weight:800; }
.tix-verify.is-gone{ color:var(--ink); background:#F6DFC2; border-radius:0 0 8px 8px; }
.tix-verify.is-past{ color:var(--ink-soft); }

/* Punched notches where a perforation meets the edge. Each is a disc of
   page colour drawn over the ticket border, clipped to its inner half. */
.tix-notch{
  position:absolute; width:22px; height:22px; border-radius:50%;
  background:var(--paper); border:2px solid var(--ink); z-index:1;
}
.tix > .tix-notch.top    { left:70px; top:-15px;    clip-path:inset(50% 0 0 0); }
.tix > .tix-notch.bottom { display:none; }
.tix-act > .tix-notch.l  { left:-15px;  top:-12px; clip-path:inset(0 0 0 50%); }
.tix-act > .tix-notch.r  { right:-15px; top:-12px; clip-path:inset(0 50% 0 0); }

/* Buttons. Own classes so growth.css "quiet controls" does not repaint them.
   Orange always carries Dark Brown Ink text (4.57:1). */
.tk-btn{
  display:flex; align-items:center; justify-content:center; gap:6px;
  min-height:48px; padding:10px 12px; margin:0;
  font:700 15px/1.2 var(--body); letter-spacing:0; text-transform:none;
  color:var(--ink); background:var(--warmsun); border:2px solid var(--ink); border-radius:6px;
  text-decoration:none; text-align:center; cursor:pointer; box-shadow:none;
}
.tk-btn:hover{ filter:brightness(.95); }
.tk-btn:active{ transform:translate(1px,1px); }
.tk-primary{ grid-column:1 / -1; font-size:16px; background:var(--orange); box-shadow:3px 3px 0 var(--ink); }
.tk-primary:active{ box-shadow:1px 1px 0 var(--ink); transform:translate(2px,2px); }
.tk-green{ background:var(--green); color:#F3E9BF; }
.tk-btn .arr{ font-weight:800; }

/* ---------- Passed ---------- */
.tix.is-passed .tix-date{ background:var(--ink-soft); }
.tix.is-passed .tix-date::before{ /* conductor's punch */
  content:""; position:absolute; top:9px; left:50%; width:14px; height:14px; margin-left:-7px;
  border-radius:50%; background:var(--paper); border:2px solid var(--ink);
}
.tix.is-passed .tix-facts dd{ color:var(--ink-soft); }
.evp-passed-note{ margin:0 0 4px; font:600 15px/1.5 var(--body); color:var(--ink); }

/* ---------- Below the ticket ---------- */
.evp-about{ margin:26px 0 8px; }
.evp-about h2,.evp-sec-h{
  margin:0 0 8px; font-family:var(--display); font-weight:400; font-size:24px; line-height:1.15; color:var(--ink);
}
.evp-about p{ margin:0; max-width:66ch; font-size:16px; line-height:1.65; color:var(--ink-soft); }
.evp .notice{ margin:22px 0 18px; }
.evp-related{ margin-top:34px; }
.evp-related .ev-list{ padding-bottom:8px; }
.evp-related .day-head{ margin-top:14px; }
.evp-more{ margin:30px 0 0; }
.evp-more ul{ display:flex; flex-wrap:wrap; gap:10px; margin:10px 0 0; padding:0; list-style:none; }
.evp-more a{
  display:inline-flex; align-items:center; min-height:44px; padding:10px 16px;
  font:600 14.5px/1.3 var(--body); color:var(--green); background:var(--card);
  border:1.5px solid var(--ink); border-radius:999px; text-decoration:none;
}
.evp-more a:hover{ background:var(--warmsun); }
.evp .signup{ margin-top:34px; }

/* ---------- Desktop ---------- */
@media (min-width:860px){
  .evp-poster .wrap{ padding-top:46px; padding-bottom:40px; }
  .evp-kicker{ font-size:14px; }
  .evp-poster h1{ font-size:60px; max-width:20ch; margin:12px 0 18px; }
  .evp-poster h1.t-l{ font-size:48px; max-width:24ch; }
  .evp-poster h1.t-xl{ font-size:40px; max-width:28ch; }
  .evp-chips .ev-cat{ font-size:12px; }

  .tix{
    margin-top:30px;
    grid-template-columns:136px minmax(0,1fr) 244px;
    grid-template-areas:"date body act" "date verify act";
  }
  .tix-date{ border-radius:8px 0 0 8px; padding:22px 8px; }
  .tix-date .d,.tix-date .m{ font-size:15px; }
  .tix-date .n{ font-size:68px; }
  .tix > .tix-notch.top    { left:122px; }
  .tix > .tix-notch.bottom { display:block; left:122px; bottom:-15px; clip-path:inset(0 0 50% 0); }
  .tix-body{ padding:24px 28px 8px; }
  .tix-facts{ grid-template-columns:1.2fr 1.2fr .8fr; gap:18px 24px; }
  .tix-facts dd{ font-size:17px; }
  .tix-verify{ padding:12px 28px 16px; border-radius:0; }
  .tix-verify.is-unchecked,.tix-verify.is-gone{ border-radius:0; }
  .tix-act{
    display:flex; flex-direction:column; justify-content:center; gap:10px;
    padding:22px; border-top:0; border-left:2px dashed var(--ink);
  }
  .tix-act > .tix-notch.l{ left:-12px; top:-15px; right:auto; clip-path:inset(50% 0 0 0); }
  .tix-act > .tix-notch.r{ left:-12px; top:auto; bottom:-15px; right:auto; clip-path:inset(0 0 50% 0); }
  .tk-btn{ width:100%; }
  .evp-about{ margin-top:34px; }
  .evp-about h2,.evp-sec-h{ font-size:28px; }
  .evp-about p{ font-size:17px; }
}
@media (max-width:360px){
  .evp-poster h1{ font-size:31px; } .evp-poster h1.t-l{ font-size:27px; } .evp-poster h1.t-xl{ font-size:24px; }
  .tix{ grid-template-columns:72px minmax(0,1fr); }
  .tix > .tix-notch.top{ left:58px; }
  .tix-act{ grid-template-columns:1fr; }
}
