/* =========================================================================
   Trailblazers Local Passport — page styles

   Carried over from the May 2026 board prototype. What changed:
   - the fake iPhone frame and the demo "tweaks" panel are gone
   - it is now a real responsive page, phone-first, readable on a laptop
   - business photos are optional. Logos and no-image both look deliberate
   - category art is colour, not stock photography, so nothing loads from
     a third party and nothing breaks if that third party goes away
   ========================================================================= */

.pp {
  max-width: var(--max-w);
  margin-inline: auto;
  background: var(--ctb-cream);
  min-height: 100vh;
  padding-bottom: var(--sp-6);
  box-shadow: 0 0 60px rgba(35,31,32,.06);
}

/* --- Top bar ----------------------------------------------------------- */
.pp-top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--ctb-cream);
  position: sticky; top: 0; z-index: 5;
}
.pp-top--home { border-bottom: 0; }
.pp-top__logo { height: 30px; width: auto; }
.pp-top__back {
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--ff-body); font-weight: 700; font-size: .9rem;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px;
}
.pp-top__back:hover { color: var(--brand-text); }
.pp-top__title {
  font-family: var(--ff-display); text-transform: uppercase;
  font-size: 1rem; letter-spacing: .04em; line-height: 1;
}
.pp-top__share {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  background: var(--ctb-net); border: 1px solid var(--rule);
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
  position: relative;
}
.pp-top__share.is-copied::after {
  content: 'Link copied';
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--ctb-ink); color: var(--ctb-net);
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 9px; border-radius: var(--r-sm); white-space: nowrap;
}

/* --- Hero -------------------------------------------------------------- */
.pp-hero {
  background: var(--ctb-ink); color: var(--ctb-net);
  position: relative; overflow: hidden;
  padding: 26px 18px 30px;
}
.pp-hero::before {
  content: ''; position: absolute; right: -50px; bottom: -60px;
  width: 220px; height: 220px; background: var(--ctb-red);
  transform: rotate(20deg); border-radius: 16px; opacity: .35;
}
.pp-hero__eyebrow {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ctb-line); font-weight: 700; margin: 0 0 8px;
}
.pp-hero__title {
  font-family: var(--ff-display); text-transform: uppercase;
  font-size: 2.6rem; line-height: .92; margin: 0; position: relative;
}
.pp-hero__title em {
  display: block; font-style: normal; font-size: 2.6rem;
  color: var(--ctb-red); -webkit-text-stroke: 1px var(--ctb-line);
}
.pp-hero__sub {
  margin: 14px 0 0; max-width: 34ch;
  color: rgba(255,255,255,.80); font-size: .9rem; line-height: 1.5;
  position: relative;
}
.pp-hero__row { display: flex; gap: 8px; margin-top: 18px; position: relative; flex-wrap: wrap; }
.pp-hero__chip {
  display: inline-flex; align-items: center;
  background: var(--ctb-net); color: var(--ctb-ink);
  font-family: var(--ff-mono); font-weight: 700; font-size: .72rem;
  padding: 6px 11px; border-radius: var(--r-pill); letter-spacing: .04em;
}
.pp-hero__chip--red { background: var(--ctb-red); color: var(--ctb-net); }

/* --- Sections ---------------------------------------------------------- */
.pp-section { padding: 24px 18px 6px; }
.pp-section--flush { padding-bottom: 0; }
.pp-section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.pp-section__title {
  font-family: var(--ff-display); text-transform: uppercase;
  font-size: 1.4rem; line-height: 1; letter-spacing: .02em; margin: 0;
}

/* --- Premier spotlight -------------------------------------------------- */
.premier-card {
  display: block; position: relative; text-decoration: none;
  border-radius: var(--r-lg); overflow: hidden;
  border: 2px solid var(--ctb-ink); background: var(--ctb-ink);
  box-shadow: var(--sh-2);
}
.premier-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--ctb-red); color: var(--ctb-net);
  font-weight: 700; font-size: .65rem; letter-spacing: .14em;
  text-transform: uppercase; padding: 6px 10px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; gap: 6px;
}
.premier-card__badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ctb-line);
}
.premier-card__img { height: 170px; position: relative; }
.premier-card__img--photo { background-size: cover; background-position: center; }
.premier-card__img--photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,31,32,0) 40%, rgba(35,31,32,.75) 100%);
}
.premier-card__img--logo { background: var(--ctb-net); display: grid; place-items: center; padding: 22px; }
.premier-card__img--logo img { max-height: 100%; width: auto; object-fit: contain; }
.premier-card__img--none {
  display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 4rem; color: rgba(255,255,255,.85);
}
.premier-card__body { padding: 16px; color: var(--ctb-net); background: var(--ctb-ink); }
.premier-card__name {
  font-family: var(--ff-display); text-transform: uppercase;
  font-size: 1.6rem; line-height: 1; margin: 0;
}
.premier-card__tag { margin: 6px 0 12px; font-size: .88rem; color: rgba(255,255,255,.78); }
.premier-card__offer {
  display: flex; align-items: center; gap: 8px; margin: 0;
  background: var(--ctb-red); color: var(--ctb-net);
  padding: 11px 13px; border-radius: var(--r-sm);
  font-weight: 700; font-size: .92rem;
}

/* --- Category tiles ----------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat-tile {
  display: flex; align-items: stretch; text-decoration: none; color: inherit;
  background: var(--ctb-net); border: 1px solid var(--rule);
  border-radius: var(--r-md); overflow: hidden;
  transition: transform .1s ease, box-shadow .15s ease;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.cat-tile--empty { opacity: .55; }
.cat-tile__mark { width: 10px; flex: 0 0 10px; }
.cat-tile__body { padding: 11px 12px 12px; min-width: 0; }
.cat-tile__name {
  display: block; font-family: var(--ff-display); text-transform: uppercase;
  font-size: 1rem; line-height: 1.05;
}
.cat-tile__count {
  display: block; margin-top: 3px; font-family: var(--ff-mono);
  font-size: .7rem; color: var(--ink-muted); letter-spacing: .04em;
}

/* Category colours. Used as the tile edge and the hero accent. */
.cat-mark--food     { background: var(--ctb-red); }
.cat-mark--stay     { background: var(--ctb-ink); }
.cat-mark--shop     { background: var(--ctb-hardwood); }
.cat-mark--wellness { background: var(--ctb-amber); }
.cat-mark--family   { background: var(--ctb-line); }
.cat-mark--tour     { background: var(--ctb-whistle); }

/* --- Offers strip ------------------------------------------------------- */
.offers-strip {
  display: flex; gap: 10px; padding: 0 18px 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.offers-strip::-webkit-scrollbar { display: none; }
.offer-mini {
  flex: 0 0 220px; scroll-snap-align: start; text-decoration: none; color: inherit;
  background: var(--ctb-net); border: 1px solid var(--rule);
  border-radius: var(--r-md); overflow: hidden; display: block;
}
.offer-mini__img { height: 104px; }
.offer-mini__img--photo { background-size: cover; background-position: center; }
.offer-mini__img--logo { background: var(--ctb-net); display: grid; place-items: center; padding: 14px; }
.offer-mini__img--logo img { max-height: 100%; width: auto; object-fit: contain; }
.offer-mini__img--none {
  display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 2rem; color: rgba(255,255,255,.9);
}
.offer-mini__body { padding: 10px 12px 12px; display: block; }
.offer-mini__name { display: block; font-weight: 700; font-size: .9rem; }
.offer-mini__deal {
  display: block; margin-top: 4px; font-family: var(--ff-mono);
  font-size: .78rem; color: var(--brand-text); font-weight: 700;
}

/* --- Category hero ------------------------------------------------------ */
.cat-hero {
  position: relative; background: var(--ctb-ink);
  padding: 26px 18px 22px; color: var(--ctb-net);
}
.cat-hero::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
  background: inherit; filter: brightness(1.6);
}
.cat-hero__title {
  font-family: var(--ff-display); text-transform: uppercase;
  font-size: 1.9rem; line-height: 1; margin: 0; color: var(--ctb-net);
}
.cat-hero__sub { margin: 5px 0 0; font-size: .82rem; color: rgba(255,255,255,.85); }

/* --- Business list ------------------------------------------------------ */
.biz-list { display: grid; gap: 10px; padding: 14px 18px 24px; }

.tier-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 2px; font-family: var(--ff-display); text-transform: uppercase;
  font-size: .85rem; letter-spacing: .14em; color: var(--ink-muted); font-weight: 400;
}
.tier-divider:first-child { margin-top: 0; }
.tier-divider::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

.biz-card {
  display: grid; grid-template-columns: 96px 1fr; text-decoration: none; color: inherit;
  background: var(--ctb-net); border: 1px solid var(--rule);
  border-radius: var(--r-md); overflow: hidden; transition: transform .08s ease;
}
.biz-card:hover { transform: translateY(-1px); box-shadow: var(--sh-1); }
.biz-card__img { min-height: 96px; }
.biz-card__img--photo { background-size: cover; background-position: center; }
.biz-card__img--logo { background: var(--ctb-net); display: grid; place-items: center; padding: 10px; border-right: 1px solid var(--rule); }
.biz-card__img--logo img { max-height: 70px; width: auto; object-fit: contain; }
.biz-card__img--none {
  display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 1.9rem; color: rgba(255,255,255,.9);
}
.biz-card__body { padding: 11px 13px; min-width: 0; display: block; }
.biz-card__name {
  display: block; font-weight: 700; font-size: .95rem; line-height: 1.25; margin-bottom: 2px;
}
.biz-card__tag {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: .78rem; color: var(--ink-muted); line-height: 1.35;
}
.biz-card__bottom { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.biz-card__offer {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--ff-mono); font-size: .72rem; font-weight: 700; color: var(--brand-text);
}

.biz-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  text-decoration: none; color: inherit;
  background: var(--ctb-net); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 11px 13px;
}
.biz-row:hover { border-color: var(--rule-strong); }
.biz-row__main { min-width: 0; }
.biz-row__name { display: block; font-weight: 700; font-size: .9rem; }
.biz-row__addr { display: block; font-size: .75rem; color: var(--ink-muted); margin-top: 2px; }
.biz-row__deal {
  font-family: var(--ff-mono); font-size: .72rem; font-weight: 700;
  color: var(--brand-text); text-align: right;
}

/* --- Tier badges -------------------------------------------------------- */
.tier-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 700; font-size: .6rem; text-transform: uppercase; letter-spacing: .12em;
  padding: 3px 8px; border-radius: var(--r-pill);
  background: var(--ctb-cream-2); color: var(--ctb-ink); white-space: nowrap;
}
.tier-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tier-badge--premier   { background: var(--ctb-red);      color: var(--ctb-net); }
.tier-badge--gold      { background: var(--ctb-line);     color: var(--ctb-ink); }
.tier-badge--silver    { background: var(--ctb-hardwood); color: var(--ctb-ink); }
.tier-badge--community { background: var(--ctb-cream-2);  color: var(--ctb-ink); }
.tier-badge--supporter { background: transparent; color: var(--ink-muted); border: 1px solid var(--rule); }

.tier-bg--premier   { background: var(--ctb-red); }
.tier-bg--gold      { background: var(--ctb-line); }
.tier-bg--silver    { background: var(--ctb-hardwood); }
.tier-bg--community { background: var(--ctb-whistle); }
.tier-bg--supporter { background: var(--ctb-whistle-2); }

/* --- Detail ------------------------------------------------------------- */
.detail-media { position: relative; }
.detail-media__inner { height: 220px; }
.detail-media__inner--photo { background-size: cover; background-position: center; }
.detail-media__inner--logo {
  background: var(--ctb-net); display: grid; place-items: center; padding: 28px;
  border-bottom: 1px solid var(--rule);
}
.detail-media__inner--logo img { max-height: 100%; width: auto; object-fit: contain; }
.detail-media__inner--none {
  display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 5rem; color: rgba(255,255,255,.9);
}
.detail-media__badge { position: absolute; top: 14px; left: 14px; z-index: 2; }

.detail-body { padding: 18px 18px 8px; }
.detail-name {
  font-family: var(--ff-display); text-transform: uppercase;
  font-size: 1.9rem; line-height: 1; margin: 0;
}
.detail-tagline { margin: 7px 0 16px; color: var(--ink-muted); font-size: .92rem; }

.detail-offer {
  background: var(--ctb-ink); color: var(--ctb-net);
  border-radius: var(--r-md); padding: 15px 16px;
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  position: relative; overflow: hidden; margin-bottom: 18px;
}
.detail-offer::before {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px; background: var(--ctb-red);
  transform: rotate(20deg); border-radius: 14px; opacity: .28;
}
.detail-offer > * { position: relative; }
.detail-offer__eyebrow {
  font-weight: 700; font-size: .65rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ctb-line); margin: 0 0 5px;
}
.detail-offer__deal {
  font-family: var(--ff-display); text-transform: uppercase;
  font-size: 1.35rem; line-height: 1.05; margin: 0;
}
.detail-offer__code {
  border: 1px dashed rgba(255,255,255,.5);
  font-family: var(--ff-mono); font-weight: 700; font-size: .8rem; letter-spacing: .08em;
  padding: 10px 12px; border-radius: var(--r-sm); color: var(--ctb-net); white-space: nowrap;
}

.detail-section { margin-bottom: 16px; }
.detail-section h2 {
  font-family: var(--ff-body); font-weight: 700; font-size: .7rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-text); margin: 0 0 4px;
}
.detail-section p { margin: 0; font-size: .92rem; line-height: 1.55; }

.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.detail-actions:has(> :only-child) { grid-template-columns: 1fr; }
.detail-btn {
  font-family: var(--ff-body); font-weight: 700; font-size: .88rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 2px solid var(--ctb-ink); background: transparent; color: var(--ctb-ink);
  border-radius: var(--r-md); padding: 13px; text-decoration: none; cursor: pointer;
}
.detail-btn:hover { background: rgba(35,31,32,.05); color: var(--ctb-ink); }
.detail-btn--primary {
  background: var(--ctb-red); border-color: var(--ctb-red); color: var(--ctb-net);
  box-shadow: var(--sh-press);
}
.detail-btn--primary:hover { background: var(--ctb-red-deep); border-color: var(--ctb-red-deep); color: var(--ctb-net); }

/* --- Empty states ------------------------------------------------------- */
.pp-empty {
  margin: 18px; padding: 26px 20px;
  background: var(--ctb-net); border: 1px dashed var(--rule-strong);
  border-radius: var(--r-lg); text-align: center;
}
.pp-empty p { margin: 0 0 10px; font-size: .92rem; color: var(--ink-muted); }
.pp-empty p:last-child { margin-bottom: 0; }
.pp-empty strong { color: var(--ink); font-size: 1rem; }
.pp-backlink { font-weight: 700; text-decoration: none; }

/* --- Footer ------------------------------------------------------------- */
.pp-footer {
  margin: 24px 18px 0; padding: 17px;
  background: var(--ctb-ink); color: rgba(255,255,255,.65);
  border-radius: var(--r-md); text-align: center;
  font-size: .72rem; letter-spacing: .04em;
}
.pp-footer strong {
  display: block; color: var(--ctb-net); font-family: var(--ff-display);
  text-transform: uppercase; font-weight: 400; font-size: .92rem;
  letter-spacing: .08em; margin-bottom: 3px;
}

/* --- Sample / preview mode ----------------------------------------------
   Shown whenever any sponsor is flagged `sample: true` in sponsors.js.
   Deliberately loud. The whole job of this bar is to stop anyone believing
   an unconfirmed business has signed. Yellow rather than red: this is a
   caution, not an error.
   ------------------------------------------------------------------------ */
.sample-banner {
  background: var(--ctb-line);
  color: var(--ctb-ink);
  padding: 11px 18px;
  font-size: .8rem;
  line-height: 1.4;
  border-bottom: 3px solid var(--ctb-ink);
}
.sample-banner strong {
  display: block;
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .82rem;
  font-weight: 400;
  margin-bottom: 2px;
}

.sample-badge {
  display: inline-flex; align-items: center;
  font-weight: 700; font-size: .6rem;
  text-transform: uppercase; letter-spacing: .12em;
  padding: 3px 8px; border-radius: var(--r-pill);
  background: var(--ctb-line); color: var(--ctb-ink);
  border: 1px solid rgba(35,31,32,.25);
  white-space: nowrap;
}
.sample-badge--float {
  position: absolute; top: 12px; right: 12px; z-index: 2;
}

.biz-row__right {
  display: inline-flex; align-items: center; gap: 8px;
  justify-content: flex-end; flex-wrap: wrap;
}

/* --- Larger screens ----------------------------------------------------- */
@media (min-width: 620px) {
  .pp-hero { padding: 34px 26px 38px; }
  .pp-hero__title, .pp-hero__title em { font-size: 3.2rem; }
  .pp-section { padding-inline: 26px; }
  .offers-strip { padding-inline: 26px; }
  .biz-list { padding-inline: 26px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-body { padding-inline: 26px; }
  .pp-footer { margin-inline: 26px; }
  .pp-empty { margin-inline: 26px; }
}
