/* The search landing pages (/utah-pride-flag, /salt-lake-city-pride-flag, /sego-lily-flags,
   /utah-pride-pins, /utah-pride-stickers), written by scripts/landing-pages.mjs.
   Tokens, .px-btn, .section and .footer come from site.css; this is only what those
   pages add. Phone first: 390 wide is the page, 320 must still work. */

.lp a:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.lp-narrow { max-width: 720px; }

/* ---------- Top strip: the wordmark and the row of pages ---------- */
.lp-top {
  background: var(--ink);
  padding: 12px var(--gutter) 0;
  border-bottom: var(--border-px);
}
.lp-brand {
  display: inline-block;
  padding: 6px 0;
  font-family: var(--font-pixel);
  font-size: 13px;
  line-height: 1.4;
  color: var(--white);
  text-decoration: none;
}
.lp-nav {
  display: flex;
  gap: 8px;
  margin: 6px calc(-1 * var(--gutter)) 0;
  padding: 4px var(--gutter) 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.lp-nav::-webkit-scrollbar { display: none; }
.lp-nav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  font-family: var(--font-pixel);
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  border: 2px solid rgba(255, 250, 240, .4);
}
.lp-nav a[aria-current="page"] { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
@media (min-width: 900px) {
  .lp-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 0; }
  .lp-nav { margin: 0; padding: 12px 0; overflow: visible; flex-wrap: wrap; justify-content: flex-end; }
}

/* ---------- Hero ---------- */
.lp-hero {
  padding-top: 20px;
  padding-bottom: 40px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 6), rgba(0, 0, 0, .08) calc(100% / 6) calc(100% / 3)),
    var(--navy);
}
.lp-crumbs { margin: 0 0 18px; font-size: 13px; color: #c9cbe0; }
.lp-crumbs a { color: #c9cbe0; }
.lp-crumbs [aria-current] { color: var(--white); }

.lp-h1 {
  margin: 0 0 14px;
  font-family: var(--font-pixel);
  font-size: clamp(22px, 6.6vw, 40px);
  line-height: 1.3;
  text-wrap: balance;
}
.lp-h1__sub {
  display: block;
  margin-top: 12px;
  font-size: .5em;
  line-height: 1.5;
  color: var(--yellow);
  text-transform: uppercase;
}
.lp-lede { margin: 0; font-size: 18px; max-width: 46ch; }

.lp-hero__grid { display: grid; gap: 22px; }
.lp-frame {
  margin: 0 6px 6px 0;
  border: var(--border-px);
  box-shadow: 6px 6px 0 var(--pink);
  background: var(--white);
}
.lp-frame img { width: 100%; height: auto; }

.lp-price { margin: 0 0 12px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.lp-price__now { font-family: var(--font-pixel); font-size: 24px; line-height: 1.2; color: var(--yellow); }
.lp-price__from { font-family: var(--font-body); font-size: max(12px, .6em); font-weight: 700; }
.lp-price__was { font-size: 17px; opacity: .75; }

.lp-buy { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.lp-buy__btn { width: 100%; min-height: 52px; font-size: 13px; flex-wrap: wrap; gap: 4px 8px; text-align: center; }
.lp-buy__price { white-space: nowrap; }
.lp-buy__btn--out { background: #8d90a8; cursor: default; box-shadow: none; }
.lp-buy__alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 15px;
}

.lp-specs {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}
.lp-specs li { padding: 6px 10px; border: 2px solid rgba(255, 250, 240, .35); background: rgba(7, 11, 31, .35); }

@media (min-width: 900px) {
  .lp-hero { padding-top: 28px; padding-bottom: 56px; }
  .lp-hero__grid {
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    grid-template-areas: "media text" "media buy";
    grid-template-rows: auto 1fr;
    gap: 20px 48px;
    align-items: start;
  }
  .lp-hero__media { grid-area: media; }
  .lp-hero__text { grid-area: text; }
  .lp-hero__buy { grid-area: buy; max-width: 420px; }
}

/* ---------- The words ---------- */
.lp-copy { background: var(--white); color: var(--ink); }
.lp-copy a { color: var(--purple); font-weight: 700; }
.lp-copy__grid { display: grid; gap: 32px; }
.lp-prose > :first-child { margin-top: 0; }
.lp-prose p { margin: 0 0 14px; font-size: 17px; max-width: 62ch; }
.lp-h2 {
  margin: 30px 0 12px;
  font-family: var(--font-pixel);
  font-size: clamp(14px, 4.2vw, 19px);
  line-height: 1.5;
  text-wrap: balance;
}
.lp-copy__photo {
  margin: 0 8px 8px 0;
  max-width: 420px;
  border: var(--border-px);
  box-shadow: 8px 8px 0 var(--purple);
  background: #fff;
}
.lp-copy__photo img { width: 100%; height: auto; }
.lp-copy__photo figcaption { padding: 10px 12px; font-size: 14px; border-top: var(--border-px); background: var(--white); }
@media (min-width: 900px) {
  .lp-copy__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
}

/* ---------- Shelves of products ---------- */
.lp-shelf { background: var(--navy-deep); border-top: var(--border-px); }
.lp-shelf__intro { margin: -6px 0 20px; max-width: 46ch; }
.lp-range { margin: 12px 0 0; font-family: var(--font-pixel); font-size: 10px; line-height: 1.8; color: var(--yellow); text-transform: uppercase; }
.lp-shelf__title { margin-top: 28px; color: var(--white); }

.lp-cards {
  list-style: none;
  margin: 0;
  padding: 0 4px 4px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}
.lp-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  color: var(--ink);
  border: var(--border-px);
  box-shadow: 4px 4px 0 var(--purple);
  scroll-margin-top: 16px;
}
.lp-card__pic { display: block; }
.lp-card__media { display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: var(--border-px); overflow: hidden; }
.lp-card__media img { width: 100%; height: 100%; object-fit: contain; }
.lp-card__media--flag { aspect-ratio: 3 / 2; }
.lp-card__media--flag img { object-fit: cover; }
.lp-card__body { display: flex; flex-direction: column; flex: 1; padding: 10px; }
.lp-card__name { margin: 0 0 6px; font-family: var(--font-pixel); font-size: 10px; line-height: 1.5; overflow-wrap: break-word; }
.lp-card__name a { color: var(--ink); }
.lp-card__note { margin: 0 0 6px; font-size: 13px; line-height: 1.4; }
.lp-card__note a { color: var(--purple); font-weight: 700; }
.lp-card__spec { margin: 0 0 8px; font-size: 12px; line-height: 1.4; color: #4a4d66; }
.lp-card .lp-price { margin: auto 0 8px; padding-top: 4px; }
.lp-card .lp-price__now { font-size: 14px; color: var(--ink); }
.lp-card .lp-price__was { font-size: 13px; }
.lp-buy--small .lp-buy__btn { min-height: 44px; padding: 8px 6px; font-size: 9px; line-height: 1.5; gap: 0 6px; }
/* Two columns on a phone: the price drops under "Add to bag", so the dot goes. */
.lp-card:not(.lp-card--feature) .lp-buy__btn { flex-direction: column; gap: 2px; }
.lp-card:not(.lp-card--feature) .lp-buy__dot { display: none; }
.lp-buy--small .lp-buy__alt { min-height: 36px; font-size: 12px; color: var(--purple); text-align: center; }
.lp-card.is-sold-out .lp-card__media img { opacity: .55; }

/* A 320px phone: one product per row, picture on the left. */
@media (max-width: 359px) {
  .lp-cards:not(.lp-cards--features) { grid-template-columns: minmax(0, 1fr); }
  .lp-cards:not(.lp-cards--features) .lp-card { flex-direction: row; }
  .lp-cards:not(.lp-cards--features) .lp-card__pic,
  .lp-cards:not(.lp-cards--features) .lp-card > .lp-card__media { flex: none; width: 38%; }
  .lp-cards:not(.lp-cards--features) .lp-card__media { height: 100%; aspect-ratio: auto; border-bottom: 0; border-right: var(--border-px); }
}
@media (min-width: 600px) { .lp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
/* Wide screens: the generator sets --cols so six pins sit 3 + 3, not 5 + 1. */
@media (min-width: 900px) { .lp-cards { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); } }

/* The four city flags: big pictures, one per row on a phone. */
.lp-cards--features { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.lp-card--feature { box-shadow: 6px 6px 0 var(--pink); }
.lp-card--feature .lp-card__body { padding: 14px; }
.lp-card--feature .lp-card__name { font-size: 13px; margin-bottom: 8px; }
.lp-card--feature .lp-card__note { font-size: 15px; }
.lp-card--feature .lp-card__spec { font-size: 13px; }
.lp-card--feature .lp-price__now { font-size: 18px; }
.lp-card--feature .lp-price__was { font-size: 15px; }
.lp-card--feature .lp-buy__btn { font-size: 12px; min-height: 48px; }
.lp-card--feature .lp-buy__alt { font-size: 14px; min-height: 44px; }
@media (min-width: 760px) { .lp-cards.lp-cards--features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }

/* ---------- Questions ---------- */
.lp-faq {
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 6), rgba(0, 0, 0, .08) calc(100% / 6) calc(100% / 3)),
    var(--navy);
  border-top: var(--border-px);
}
.lp-faq__list { margin: 0; }
.lp-faq__list dt {
  margin: 24px 0 6px;
  font-family: var(--font-pixel);
  font-size: 11px;
  line-height: 1.7;
  color: var(--yellow);
}
.lp-faq__list dt:first-child { margin-top: 8px; }
.lp-faq__list dd { margin: 0; font-size: 16px; max-width: 62ch; }

/* ---------- Where next ---------- */
.lp-more {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(91, 206, 250, .18), transparent 60%),
    #13305c;
  border-top: var(--border-px);
}
.lp-more__list { list-style: none; margin: 0; padding: 0 4px 0 0; display: flex; flex-wrap: wrap; gap: 14px 12px; }
.lp-more__list .px-btn { font-size: 10px; line-height: 1.5; text-align: center; }
.lp-more__note { margin: 22px 0 0; max-width: 52ch; font-size: 15px; }
@media (max-width: 479px) {
  .lp-more__list li { flex: 1 1 100%; }
  .lp-more__list .px-btn { width: 100%; }
}

/* The home page's footer leaves room for its bag bar; these pages have none. */
.lp .footer { padding-bottom: 48px; }
