/* Guide pages (/rent, /guides, /earn). Standalone — these pages don't load the
   app bundle — so the brand tokens are copied from src/styles/theme.css. */
:root {
  --navy: #003288;
  --ink: #323232;
  --ink-2: rgba(50, 50, 50, 0.56);
  --hairline: rgba(0, 0, 0, 0.07);
  --field: #f3f3f5;
  --paper: #ffffff;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, 'Segoe UI', Roboto,
    'Helvetica Neue', sans-serif;
  --font-serif: 'Source Serif 4', 'New York', Georgia, 'Times New Roman', serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--font-sans);
  overflow-x: clip;
}

a {
  color: var(--navy);
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .wrap {
    padding: 0 32px;
  }
}

/* ── Header: the site's own (utility line, wordmark, links, search) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

/* On a phone, one line: the app link is where most visitors from ads and
   search need to go, and the rest of the row doesn't fit. */
.utility-row {
  display: flex;
  justify-content: center;
  height: 32px;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  font-size: 12.5px;
  color: var(--ink-2);
}

.utility-row p {
  margin: 0;
}

.utility-row > a,
.utility-row p a:not(.utility-app) {
  display: none;
}

.utility-app {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(50, 50, 50, 0.3);
  text-underline-offset: 3px;
}

@media (min-width: 768px) {
  .utility-row > a,
  .utility-row p a:not(.utility-app) {
    display: inline;
  }

  .utility-app {
    display: none;
  }

  .utility-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 36px;
    border-bottom: 1px solid var(--hairline);
    font-size: 12.5px;
    color: var(--ink-2);
  }

  .utility-row p {
    margin: 0;
  }

  .utility-row > a:last-child {
    justify-self: end;
  }

  .utility-row a {
    color: var(--ink-2);
    text-decoration: none;
  }

  .utility-row p a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: rgba(50, 50, 50, 0.3);
    text-underline-offset: 3px;
  }
}

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}

@media (min-width: 768px) {
  .header-row {
    gap: 32px;
    height: 64px;
  }
}

.wordmark {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
  text-decoration: none;
}

.wordmark i {
  display: inline-block;
  font-style: normal;
  transform: rotate(-22deg);
}

.site-header nav {
  display: none;
}

@media (min-width: 1024px) {
  .site-header nav {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 28px;
  }
}

.site-header nav a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav a:hover {
  border-bottom-color: rgba(50, 50, 50, 0.4);
}

.search {
  flex: 1;
  max-width: 240px;
  margin-left: auto;
}

.search input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: var(--field);
  font: 13px var(--font-sans);
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

.search input::placeholder {
  color: var(--ink-2);
}

.search input:focus {
  outline: none;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(50, 50, 50, 0.2);
}

/* ── Article ────────────────────────────────────────────── */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink-2);
}

.crumbs li + li::before {
  content: '/';
  margin-right: 6px;
}

.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}

article {
  max-width: 68ch;
}

/* Serif at regular weight, like the rest of the site: the hierarchy comes
   from size and space, not boldness. */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  margin: 20px 0 16px;
  font-size: clamp(34px, 6vw, 50px);
  line-height: 1.08;
}

h2 {
  margin: 44px 0 12px;
  font-size: 28px;
}

h3 {
  margin: 28px 0 6px;
  font-size: 20px;
}

.lead {
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
}

.cta-row {
  margin: 24px 0 8px;
}

.cta {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}

.cta:hover {
  opacity: 0.88;
}

.updated {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-2);
}

.body {
  margin-top: 8px;
}

.body ul,
.body ol {
  padding-left: 22px;
}

.body li {
  margin: 6px 0;
}

.body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}

.body th,
.body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

.body th {
  background: var(--field);
  font-weight: 600;
}

.body blockquote {
  margin: 20px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--navy);
  font-family: var(--font-serif);
  font-size: 19px;
}

/* ── Related ────────────────────────────────────────────── */
.related {
  max-width: 68ch;
  margin: 56px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}

.related h2 {
  margin-top: 24px;
  font-size: 22px;
}

.related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.related li a {
  font-weight: 600;
  text-decoration: none;
}

.related li p {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--ink-2);
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  margin-top: 72px;
  padding: 48px 0 40px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(4, 1fr);
  }
}

.footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: auto;
  }
}

.footer-brand p {
  margin: 10px 0 0;
  color: var(--ink-2);
}

.site-footer h2 {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 8px 0;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--navy);
}

/* ── Draft (dev builds only) ───────────────────────────── */
.draft-banner {
  padding: 10px 16px;
  background: #fff4d6;
  color: #6b4e00;
  font-size: 14px;
  text-align: center;
}

/* ── Live listings: designer, city and occasion pages ─────
   Built by the SEO helper (seo/landing.mjs) from the live feed. Flat, like
   the app: plain text links, 6px corners, no pills. */
article.wide {
  max-width: none;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--ink-2);
}

.stats strong {
  color: var(--ink);
  font-weight: 600;
}

.live {
  margin-top: 36px;
}

.live h2 {
  margin: 0;
  font-size: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 20px;
  }
}

@media (min-width: 960px) {
  article.wide .grid,
  .live .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
}

/* The photo on the soft field tone, with the shop's 12px corners. (No
   mix-blend-mode here: Chrome painted some multiplied photos blank.) */
.card-photo {
  display: block;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--field);
  aspect-ratio: 3 / 4;
}

.card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-out;
}

.card a:hover .card-photo img {
  transform: scale(1.03);
}

.card-brand {
  font-size: 12px;
  color: var(--ink-2);
}

.card-name {
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card a:hover .card-name {
  text-decoration: underline;
}

.card-price {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.card-meta {
  font-size: 12px;
  color: var(--ink-2);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.inline-links a {
  font-weight: 500;
  text-decoration: none;
}

.inline-links a:hover {
  text-decoration: underline;
}

.related .inline-links li {
  padding: 0;
  border: 0;
}

h2.letter {
  margin-top: 32px;
  font-size: 22px;
}

.index-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2 180px;
  column-gap: 24px;
}

.index-list li {
  padding: 5px 0;
  break-inside: avoid;
}

.index-list a {
  text-decoration: none;
}

.index-list span {
  margin-left: 4px;
  font-size: 13px;
  color: var(--ink-2);
}

/* Numbered pages of a designer or city (/dress-rental/auburn-al/2): plain
   numbers, the current one in ink, the rest links. */
.pages {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin: 20px 0 0;
}

.pages ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.pages a {
  color: var(--ink-2);
  text-decoration: none;
}

.pages a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.pages [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.pages .pages-next {
  color: var(--ink);
  font-weight: 500;
}

/* ── The /rent page, in the look of the welcome and event emails ─────────────
   Didot caps over full-bleed photos, tracked sans labels, black bars and square
   corners. Same values as nest/assets/email-templates in the API repo. */
.hub-page {
  --hub-ink: #0d0d0d;
  --hub-body: #333333;
  --hub-empty: #e9e9e7;
  --hub-display: Didot, 'Bodoni 72', 'Bodoni Moda', 'Times New Roman', Georgia, serif;
  --hub-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--hub-ink);
  font-family: var(--hub-sans);
}

.hub-page a:focus-visible {
  outline: 2px solid var(--hub-ink);
  outline-offset: 3px;
}

/* Masthead: the email's centered wordmark and tracked nav. */
.hub-page .site-header {
  position: relative;
  border-bottom: 0;
}

.hub-page .header-row {
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  height: auto;
  padding: 18px 0 14px;
}

.hub-page .wordmark {
  flex: 0 0 100%;
  color: var(--hub-ink);
  font-family: var(--hub-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 40px;
  text-align: center;
}

.hub-page .site-header nav {
  display: flex;
  flex: 0 0 100%;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.hub-page .site-header nav::-webkit-scrollbar {
  display: none;
}

/* Centered when it fits; when it doesn't, it scrolls from the first link. */
.hub-page .site-header nav a:first-child {
  margin-left: auto;
}

.hub-page .site-header nav a:last-child {
  margin-right: auto;
}

.hub-page .site-header nav a {
  color: var(--hub-ink);
  font-family: var(--hub-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hub-page .search {
  display: none;
}

.hub-page .utility-row {
  color: var(--hub-body);
}

.hub-page .utility-row a {
  color: var(--hub-ink);
}

/* Hero: one photo on a phone, three side by side on a wide screen. */
.hub-hero {
  position: relative;
  overflow: hidden;
  background: #2a2a2a;
}

.hub-hero-photos {
  display: grid;
  height: min(78svh, 600px);
}

.hub-hero-photos img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hub-hero-photos img + img {
  display: none;
}

.hub-hero::after {
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
  content: '';
}

.hub-hero-copy {
  position: absolute;
  right: 0;
  bottom: 46px;
  left: 0;
  z-index: 1;
  padding: 0 20px;
  color: #ffffff;
  text-align: center;
}

.hub-hero h1 {
  margin: 0;
  color: #ffffff;
  font-family: var(--hub-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 42px;
  text-transform: uppercase;
}

.hub-lead {
  max-width: 34em;
  margin: 14px auto 0;
  font-size: 15px;
  line-height: 22px;
}

.hub-caption {
  position: absolute;
  bottom: 14px;
  left: 20px;
  z-index: 1;
  margin: 0;
  color: #ffffff;
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.hub-bar {
  margin: 14px 14px 0;
}

.hub-bar a {
  display: block;
  padding: 20px 10px;
  background: var(--hub-ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.hub-section {
  margin: 48px auto 0;
  max-width: 1240px;
}

.hub-head {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.hub-kicker {
  margin: 0;
  font-size: 10px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

.hub-head h2,
.hub .live h2,
.hub-lend h2 {
  margin: 8px 0 0;
  color: inherit;
  font-family: var(--hub-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
  text-transform: uppercase;
}

.hub-head h2 + p {
  margin: 12px 0 0;
  color: var(--hub-body);
  font-size: 14px;
  line-height: 22px;
}

.hub-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 10px;
  margin: 24px 0 0;
  padding: 0 14px;
  list-style: none;
}

.hub-tile {
  display: block;
  color: var(--hub-ink);
  text-align: center;
  text-decoration: none;
}

.hub-tile-photo {
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--hub-empty);
}

.hub-tile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hub-tile-name {
  display: block;
  margin-top: 12px;
  font-family: var(--hub-display);
  font-size: 18px;
  line-height: 20px;
  text-transform: uppercase;
}

.hub-tile-shop,
.hub-more a {
  display: inline-block;
  margin-top: 7px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
}

/* Real listings: the shared grid, squared off to match. */
.hub .live {
  margin: 0;
  padding: 0 14px;
}

.hub .live .grid {
  gap: 24px 10px;
  margin-top: 24px;
}

.hub .card-photo {
  border-radius: 0;
  background: var(--hub-empty);
}

.hub .card a {
  color: var(--hub-ink);
}

.hub .card-brand {
  color: var(--hub-ink);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.hub .card-name {
  font-family: var(--hub-sans);
  font-size: 14px;
  line-height: 20px;
}

.hub .card-price {
  color: var(--hub-ink);
  font-size: 13px;
}

.hub .card-meta {
  color: var(--hub-body);
  font-size: 12px;
}

.hub-more {
  margin: 24px 0 0;
  text-align: center;
}

.hub-lend {
  margin-top: 56px;
  background: var(--hub-ink);
  color: #ffffff;
}

.hub-lend img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center 70%;
}

.hub-lend-copy {
  max-width: 480px;
  margin: 0 auto;
  padding: 36px 24px 44px;
  text-align: center;
}

.hub-lend h2 {
  font-size: 50px;
  line-height: 52px;
}

.hub-lend-copy > p:not(.hub-kicker, .hub-more) {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 22px;
}

/* The guide, for anyone reading on. */
.hub-guide {
  max-width: 660px;
  margin: 0 auto;
  padding: 56px 20px 24px;
  color: var(--hub-body);
  font-size: 15px;
  line-height: 24px;
}

.hub-guide h2 {
  margin: 44px 0 14px;
  color: var(--hub-ink);
  font-family: var(--hub-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
  text-transform: uppercase;
}

.hub-guide .body > h2:first-child {
  margin-top: 0;
}

.hub-guide h3 {
  margin: 24px 0 4px;
  color: var(--hub-ink);
  font-family: var(--hub-sans);
  font-size: 15px;
  font-weight: 700;
}

.hub-guide a {
  color: var(--hub-ink);
}

.hub-guide p:has(> strong:only-child) {
  margin: 32px 0 8px;
  color: var(--hub-ink);
  font-size: 10px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

.hub-guide ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-guide li {
  padding: 10px 0;
  border-top: 1px solid var(--hub-empty);
}

.hub-guide .updated {
  margin-top: 32px;
  color: var(--hub-body);
  font-size: 12px;
  text-align: center;
}

@media (min-width: 900px) {
  .hub-page .header-row {
    padding: 22px 0 16px;
  }

  .hub-page .site-header nav {
    gap: 22px;
  }

  .hub-page .search {
    display: block;
    position: absolute;
    right: 24px;
    top: 58px;
  }

  .hub-page .site-header {
    position: relative;
  }

  .hub-hero-photos {
    grid-template-columns: repeat(3, 1fr);
    height: min(82vh, 760px);
  }

  .hub-hero-photos img + img {
    display: block;
  }

  .hub-hero::after {
    inset: 30% 0 0;
  }

  .hub-hero-copy {
    bottom: 56px;
  }

  .hub-hero h1 {
    font-size: 84px;
    line-height: 80px;
  }

  .hub-lead {
    font-size: 17px;
    line-height: 26px;
  }

  .hub-bar {
    max-width: 1240px;
    margin: 14px auto 0;
    padding: 0 14px;
  }

  .hub-section {
    margin-top: 72px;
  }

  .hub-head h2,
  .hub .live h2 {
    font-size: 40px;
    line-height: 42px;
  }

  .hub-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 14px;
    margin-top: 32px;
  }

  .hub-tile-name {
    font-size: 22px;
    line-height: 24px;
  }

  .hub-lend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-top: 80px;
  }

  .hub-lend img {
    height: 620px;
  }

  .hub-lend h2 {
    font-size: 64px;
    line-height: 62px;
  }
}

/* ── Event pages (/rent/holiday-party-dresses and so on): the same look ─────
   On a phone: the title on the photo, then the black bar, the breadcrumb and the
   intro. On a wide screen: the photo beside a black panel holding all of them.
   .event-copy is display: contents on a phone so its children join the grid. */
.event-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.event-photo {
  display: block;
  grid-area: 1 / 1;
  width: 100%;
  height: min(72svh, 560px);
  background: #2a2a2a;
  object-fit: cover;
  object-position: center 18%;
}

.event-hero:not(.no-photo)::before {
  z-index: 1;
  grid-area: 1 / 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.6) 100%);
  content: '';
  pointer-events: none;
}

.event-copy {
  display: contents;
}

.event-copy h1 {
  z-index: 2;
  grid-area: 1 / 1;
  align-self: end;
  margin: 0;
  padding: 0 20px 26px;
  color: #ffffff;
  font-family: var(--hub-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 34px;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

.no-photo .event-copy h1 {
  padding-top: 40px;
  color: var(--hub-ink);
}

.event-bar {
  grid-row: 2;
  margin: 14px 14px 0;
}

.event-bar a {
  display: block;
  padding: 20px 10px;
  background: var(--hub-ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.event-copy .crumbs {
  grid-row: 3;
  margin: 20px 0 0;
  padding: 0 20px;
}

.event-copy .crumbs ol {
  justify-content: center;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.event-copy .crumbs a {
  color: inherit;
}

.event-lead {
  grid-row: 4;
  max-width: 36em;
  margin: 12px auto 0;
  padding: 0 20px;
  color: var(--hub-body);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.event-lead a {
  color: var(--hub-ink);
}

.event .hub-live {
  margin-top: 40px;
}

@media (min-width: 900px) {
  .event-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-hero::before {
    display: none;
  }

  .event-photo {
    height: min(82vh, 720px);
  }

  .event-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: var(--hub-ink);
    color: #ffffff;
  }

  .no-photo .event-copy {
    grid-column: 1 / -1;
  }

  .event-copy .crumbs {
    margin: 0 0 20px;
    padding: 0;
  }

  .event-copy .crumbs li,
  .event-copy .crumbs li::after {
    color: #ffffff;
  }

  .event-copy h1,
  .no-photo .event-copy h1 {
    padding: 0;
    color: #ffffff;
    font-size: 58px;
    line-height: 56px;
  }

  .event-lead {
    margin-top: 20px;
    padding: 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 24px;
  }

  .event-lead a {
    color: #ffffff;
  }

  .event-bar {
    width: 100%;
    max-width: 340px;
    margin: 28px 0 0;
  }

  .event-bar a {
    background: #ffffff;
    color: var(--hub-ink);
  }

  .event .hub-live {
    margin-top: 64px;
  }
}

/* ── School pages (/game-day/:school): a team-colored band, then the grid ── */
.school-hero {
  --school-ink: #ffffff;
  margin: 0 calc(50% - 50vw);
  padding: 40px 16px 44px;
  background: var(--school-bg);
  color: var(--school-ink);
  border-bottom: 8px solid var(--school-accent);
}

.school-hero .hero-grid {
  display: grid;
  gap: 24px;
}

.school-hero .hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.02;
  text-wrap: balance;
}

.school-hero .hero-copy .lead {
  max-width: 36em;
  font-size: 17px;
  line-height: 1.6;
}

.school-hero .hero-copy .cta-row {
  margin: 20px 0 0;
}

.school-hero .hero-photo {
  display: none;
  margin: 0;
}

.school-hero .hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 6px;
}

@media (min-width: 768px) {
  .school-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
    align-items: center;
    gap: 56px;
  }

  .school-hero .hero-photo {
    display: block;
  }
}

.school-hero.is-light {
  --school-ink: #1c1c1c;
}

.school-hero .school-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.school-hero h1 {
  color: var(--school-ink);
  font-family: var(--font-serif);
}

.school-hero .lead {
  color: var(--school-ink);
  opacity: 0.92;
}

.school-hero .cta {
  background: var(--school-ink);
  color: var(--school-bg);
  border-color: var(--school-ink);
}

@media (min-width: 768px) {
  .school-hero {
    padding: 56px max(24px, calc((100vw - 1120px) / 2)) 56px;
  }
}

/* Hero rotator: one photo at a time of real girls in real local rentals,
   cross-fading every 5s; each is a link to the piece. CSS only, no script. */
.hero-rotator {
  position: relative;
  margin: 8px 0 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
}

.hero-rotator a {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  text-decoration: none;
  animation: hero-rot4 20s infinite;
}

.hero-rotator.n3 a {
  animation-name: hero-rot3;
  animation-duration: 15s;
}

.hero-rotator a:first-child {
  opacity: 1;
  visibility: visible;
}

.hero-rotator img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.hero-rotator span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 32px 12px 10px;
  font-size: 13px;
  line-height: 1.3;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

@keyframes hero-rot4 {
  0% { opacity: 0; visibility: visible; }
  3%, 25% { opacity: 1; visibility: visible; }
  28%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes hero-rot3 {
  0% { opacity: 0; visibility: visible; }
  4%, 33% { opacity: 1; visibility: visible; }
  37%, 100% { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotator a {
    animation: none;
  }
}

@media (min-width: 768px) {
  .hero-rotator {
    margin: 20px 0 0;
    aspect-ratio: 4 / 5;
  }

  .school-hero .hero-grid:has(.hero-rotator) {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  }
}

/* The whole school page takes the team's colors: logo, header rule, headings. */
.school-theme .wordmark {
  color: var(--school-logo);
}

.school-theme .site-header {
  border-top: 4px solid var(--school-bg);
}

.school-theme .wide h2,
.school-theme .stats strong,
.school-theme .related a,
.school-theme .card a:hover .card-name {
  color: var(--school-bg);
}

/* Shop-by-look rows: one swipeable line each. */
.look-row {
  margin-top: 40px;
}

article.wide .look-row .grid {
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: 42%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.look-row .card {
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  article.wide .look-row .grid {
    grid-auto-columns: calc((100% - 60px) / 4);
  }
}

.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 3px;
  vertical-align: -1px;
}

/* ── Photo header on every guide, city, designer and hub page ─────────────────
   seo/photos.mjs photoHeaderHtml(): the rent pages' event header, outside any
   .hub-page, so it carries its own palette. Creator photos from Instagram. */
.photo-head {
  --hub-ink: #0d0d0d;
  --hub-body: #333333;
  --hub-display: Didot, 'Bodoni 72', 'Bodoni Moda', 'Times New Roman', Georgia, serif;
  margin-bottom: 8px;
}

.photo-head .event-stats {
  grid-row: 5;
  justify-content: center;
  margin: 14px auto 0;
  padding: 0 20px;
  font-size: 13px;
  text-align: center;
}

.photo-head .event-lead a {
  text-decoration: underline;
}

@media (min-width: 900px) {
  .photo-head .event-copy {
    text-align: center;
  }

  .photo-head .event-stats {
    padding: 0;
    color: rgba(255, 255, 255, 0.82);
  }

  .photo-head .event-stats strong {
    color: #ffffff;
  }

  .photo-head .event-copy .crumbs a {
    color: #ffffff;
  }
}
