/* Destination city-guide pages — the utilities the committed Tailwind build lacks.
 *
 * WHY THIS FILE EXISTS. This repo has no Tailwind toolchain: no tailwind.config.js,
 * no tailwindcss dependency, and scripts/ci-build.sh has no CSS stage — the compiled
 * assets/tailwind.css is committed and shipped verbatim. The city-page template
 * (tools/destination-builder/page-template.html) used to load the Tailwind Play CDN
 * (cdn.tailwindcss.com, a 407 KB render-blocking in-browser JIT compiler) with an
 * inline config instead. Dropping it (port of Thailand 8668706 / d075e54 / d883029,
 * 2026-10-22) needs the utilities those pages use that the committed build does not
 * define — written out here by hand, as Tailwind v3 would emit them, with the brand
 * colours from the template's old inline tailwind.config:
 *   navy / primary = #4d2160 (Murasaki purple — "navy" is kept as the class name to
 *   mirror the builder structure), gold = #b8860b.
 *
 * LOAD ORDER MATTERS: link this AFTER /assets/tailwind.css and BEFORE the page's own
 * inline <style>. The inline block defines .font-serif and the page components, and
 * must keep winning by source order.
 *
 * tools/destination-builder/css-guard.test.mjs fails the build if a class the builder,
 * the ZIP generator or the template emits has no rule in any stylesheet a city page
 * links. Add the rule here and bump this file's ?v= stamp in page-template.html.
 *
 * If a toolchain is ever restored, delete this file and rebuild instead.
 */

/* colours */
.bg-navy { background-color: #4d2160; }
.bg-navy\/10 { background-color: rgba(77, 33, 96, 0.1); }
.text-navy { color: #4d2160; }
.bg-gold { background-color: #b8860b; }
.bg-gold\/10 { background-color: rgba(184, 134, 11, 0.1); }
.text-gold { color: #b8860b; }
.border-gray-100 { border-color: #f3f4f6; }
/* The template's site-chrome header: the brand span, the two menu buttons and the
 * nav links' static markup (arbitrary-value classes the Play CDN used to compile).
 * NOTE: /includes/site.js rewrites the desktop nav links' className at runtime to
 * em-theme-text-hover (assets/home.css, not linked here) — the nav hover colour on
 * a city page is that file's job, not this rule's. */
.text-\[\#4d2160\] { color: #4d2160; }
.hover\:text-\[\#4d2160\]:hover { color: #4d2160; }
.hover\:text-primary:hover { color: #4d2160; }

/* type */
.tracking-wider { letter-spacing: 0.05em; }

/* box */
/* .h-1 is the gold rule under every section heading ("w-24 h-1 bg-gold").
 * 0.25rem (4px) = Tailwind's h-1, as China's city pages render it. Without it the
 * rule is present in the markup and 0px tall (Thailand lived with that unseen). */
.h-1 { height: 0.25rem; }
/* The width caps of a section with exactly ONE card: the builder wraps a lone
 * "top" card in .max-w-sm and a lone left/right card in .max-w-5xl. Without them
 * a one-card section stretches its card to the full 1216px content width.
 * Tailwind's values, as China's city pages render them. */
.max-w-sm { max-width: 24rem; }
.max-w-5xl { max-width: 64rem; }
/* carousel dots — written by the template's inline scripts through className */
.h-2\.5 { height: 0.625rem; }
.w-2\.5 { width: 0.625rem; }
.w-24 { width: 6rem; }
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* responsive */
@media (min-width: 640px) {
  .sm\:mb-16 { margin-bottom: 4rem; }
  .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}

@media (min-width: 768px) {
  .md\:flex-row-reverse { flex-direction: row-reverse; }
  .md\:w-5\/12 { width: 41.666667%; }
  .md\:w-7\/12 { width: 58.333333%; }
}

@media (min-width: 1024px) {
  .lg\:p-10 { padding: 2.5rem; }
}

/* ── Photo slots with no photo (2026-11-23) ──────────────────────────────
 * The Destination Page Builder (and the ZIP generator) write <img src=""> for
 * a hero or a card that has no photo yet. Such a slot is not drawn: the card
 * reads as text across its full width, and a page with no hero photo starts
 * with its title (no empty frame at the top of a phone screen). A slot with a
 * photo is untouched, so a photo staff add later shows by itself once
 * published. Every city page and the builder's Preview link this file, so the
 * Preview shows the same. A browser without :has() still hides the empty
 * image itself (no broken-image icon, no alt text in a box).
 * Guarded by tools/destination-builder/empty-photo-slots.test.mjs. */
img[src=""] { visibility: hidden; }
.dg-hero-media:has(> img[src=""]) { display: none; }
.dg-hero-grid:has(> .dg-hero-media > img[src=""]) { grid-template-columns: 1fr; }
.acc-figure > div:has(> img[src=""]) { display: none; }
.acc-figure:has(> div > img[src=""]) > div { width: 100%; }
.hover-card > div:has(> img[src=""]) { display: none; }
