/* The city pages (/best-dating-apps/<city>, build/cityPages.ts): the React
   page they were until Nov 2026 (BestDatingApps.tsx), in plain CSS. Values
   are its Tailwind classes in px and Tailwind's colors and shadows; text is
   Space Grotesk throughout, as in the app. Hover styles only apply on devices
   that can hover, as the app's do (tailwind.config.js). */

.city-body {
  background: #0f252d;
  --city-shadow-md: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
  --city-shadow-lg: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
  --city-shadow-xl: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
}
/* The header's frosted glass would turn white over the card, so on mouse and
   trackpad devices it takes the page's color, as the app's header did on
   these pages. Touch devices keep their teal bar. */
.city-body .pm-header::before { background: #0f252dcc; }
@media (hover: none) and (pointer: coarse) {
  .city-body .pm-header::before { background: #0e637480; }
}

.city-page { color: #374151; font-family: var(--font-display); line-height: 1.5; }
.city-page h1, .city-page h2, .city-page h3 { margin: 0; font-family: var(--font-display); letter-spacing: normal; }
.city-page a { text-underline-offset: auto; }
.city-page strong { font-weight: 700; }

/* The white card: full width on phones, at most 896px (and the desktop page
   width) elsewhere. */
.city-wrap { position: relative; z-index: 1; width: min(100%, var(--page-max-width)); max-width: 896px; margin-inline: auto; }
.city-card { padding: 16px 8px; background: #fff; border: 1px solid #e5e7eb; box-shadow: var(--city-shadow-lg); color-scheme: light; }
@media (min-width: 768px) {
  .city-card { padding: 16px 48px 48px; }
}

/* Headings and the section photos */
.city-hero { text-align: center; }
.city-hero h1 { color: #111827; font-size: 24px; font-weight: 700; line-height: 1.25; }
.city-hero h1 span { color: #2563eb; }
.city-page h2 { color: #111827; font-size: 24px; font-weight: 700; line-height: 32px; text-align: center; }
@media (min-width: 768px) {
  .city-hero h1 { line-height: 32px; }
}
@media (min-width: 1024px) {
  .city-hero h1, .city-page h2 { font-size: 36px; line-height: 40px; }
}
.city-photo { margin-top: 8px; }
.city-photo img { width: 100%; height: auto; border-radius: 8px; box-shadow: var(--city-shadow-xl); }
.city-overview, .city-intro, .city-outro { max-width: 672px; margin: 8px auto 0; color: #374151; font-size: 14px; line-height: 1.625; text-align: center; }
.city-intro { line-height: 20px; }
.city-brand { color: #2563eb; text-decoration: none; }

/* Sections and lists */
.city-rankings { padding-top: 12px; }
.city-section { padding-top: 24px; }
.city-section .city-list { padding-top: 12px; }
.city-list > [hidden] { display: none; }
.city-list > :not([hidden]) ~ :not([hidden]) { margin-top: 12px; }

/* Cards: an app's ranking, or a place */
.city-item { position: relative; background: #fff; border: 1px solid #e5e7eb; box-shadow: var(--city-shadow-lg); transition: all .3s cubic-bezier(.4, 0, .2, 1); }
.city-app { border-radius: 6px; }
.city-place { overflow: hidden; border-radius: 8px; }
.city-score { position: absolute; top: 0; right: 0; padding: 8px; background: #fff; border: 1px solid #e5e7eb; border-radius: 0 6px 0 8px; box-shadow: var(--city-shadow-md); font-size: 18px; font-weight: 700; line-height: 28px; }
.city-app-head, .city-place-head { display: flex; gap: 12px; padding: 8px; background: #e5e7eb; }
.city-app-head { border-radius: 4px 4px 0 0; }
.city-place-head { min-height: 64px; border-radius: 8px 8px 0 0; }
.city-logo, .city-thumb { flex-shrink: 0; width: 64px; height: 64px; overflow: hidden; border-radius: 6px; }
.city-logo img, .city-thumb img { width: 100%; height: 100%; }
.city-logo img { object-fit: contain; }
.city-thumb img { object-fit: cover; }
.city-app-info { display: flex; flex: 1 1 0%; flex-direction: column; }
.city-app-title { display: flex; align-items: center; gap: 8px; }
.city-rank, .city-app-name, .city-place-name { color: #111827; font-size: 20px; font-weight: 700; line-height: 28px; }
.city-app-name { white-space: nowrap; }
.city-app-name.is-long { font-size: 18px; }
.city-app-fact { color: #374151; font-size: 14px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.city-blue { color: #2563eb; }
.city-place-name { flex: 1 1 0%; padding-right: 56px; }
.city-page .city-underline { text-decoration-line: underline; text-decoration-thickness: 2px; text-decoration-color: #9ca3af; text-underline-offset: 4px; transition: color .15s cubic-bezier(.4, 0, .2, 1), text-decoration-color .15s cubic-bezier(.4, 0, .2, 1); }
.city-blurb { padding: 8px; color: #374151; font-size: 14px; line-height: 1.625; }
.city-map { position: absolute; top: 8px; right: 8px; z-index: 10; display: inline-flex; border-radius: 4px; color: #2563eb; transition: color .15s cubic-bezier(.4, 0, .2, 1); }
.city-map svg { display: block; }
.city-map:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

.city-more { display: flex; justify-content: center; margin-top: 12px; }
.city-more-button { padding: 8px 24px; border: 0; border-radius: 4px; background: #e5e7eb; box-shadow: var(--city-shadow-lg); color: #111827; font: 600 16px/1.5 var(--font-display); cursor: pointer; transition: all .2s cubic-bezier(.4, 0, .2, 1); }

/* Photo credits, a plain disclosure (not the static pages' FAQ style) */
.city-credits { margin-top: 24px; border: 0; color: #4b5563; font-size: 12px; line-height: 16px; }
.city-credits summary { display: list-item; padding: 0; font-size: inherit; font-weight: inherit; list-style: revert; cursor: pointer; }
.city-credits summary::-webkit-details-marker { display: revert; }
.city-credits summary::after, .city-credits[open] summary::after { content: none; }
.city-credits ul { margin: 8px 0 0; padding: 0; list-style: none; }
.city-credits li + li { margin-top: 4px; }
.city-credits a { text-decoration: underline; }
.city-credits p { max-width: none; margin-top: 8px; padding: 0; color: inherit; font-size: inherit; }

/* The closing button */
.city-cta { display: flex; justify-content: center; margin-top: 16px; }
.city-cta-button { display: inline-block; padding: 12px 32px; border-radius: 4px; background: #2563eb; box-shadow: var(--city-shadow-lg); color: #fff; font-weight: 600; text-decoration: none; transition: all .2s cubic-bezier(.4, 0, .2, 1); }

@media (hover: hover) and (pointer: fine) {
  .city-item:hover { border-color: #d1d5db; box-shadow: var(--city-shadow-xl); }
  .city-brand:hover { color: #1e40af; text-decoration: underline; }
  .city-page .city-underline:hover { text-decoration-color: #111827; }
  .city-map:hover { color: #1e40af; }
  .city-more-button:hover { background: #d1d5db; box-shadow: var(--city-shadow-xl); }
  .city-cta-button:hover { background: #1d4ed8; box-shadow: var(--city-shadow-xl); }
}
