/*
  Global stylesheet - single source of truth for the site.

  Structure:
    1) Reset and base
    2) Design tokens (:root) - palette and typography are owned by the
       `brand-guidelines` skill. Spacing, radii, shadows, motion, and layout
       tokens are owned here.
    3) Layout primitives
    4) Components (site-wide reusable primitives only - page-specific
       styles live with their page builds, not here)
    5) Utilities
*/

/* ===== 1) Reset and base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== 2) Design tokens ===== */
/* Palette and typography are written by the `brand-guidelines` skill from
   `build-assets/0-the-brand/tokens.json`. Spacing, radii, shadows, and
   transitions are owned here. */
/* ===== Filipino Girls Dating brand tokens ===== */
:root {
  --color-bg: #FFFFFF; --color-surface: #FFFFFF; --color-surface-soft: #F4EDE8;
  --color-text: #1A1A1A; --color-text-soft: #5C5854; --color-primary: #D46E59;
  --color-primary-dark: #B85643; --color-primary-light: #F6E3DE; --color-accent: #224363; --color-focus: #D46E59;
  --font-heading: "Fraunces", "Times New Roman", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem; --space-5:1.25rem; --space-6:1.5rem; --space-8:2rem; --space-10:2.5rem; --space-12:3rem;
  --radius-sm:4px; --radius-md:4px; --radius-lg:4px; --radius-pill:999px;
  --shadow-sm:0 1px 3px rgba(26,26,26,.08); --shadow-md:0 4px 14px rgba(26,26,26,.1); --shadow-lg:0 12px 32px rgba(26,26,26,.16);
  --transition-fast:180ms ease; --transition-base:260ms ease; --container-max:76rem;
  --header-bg:#fff; --header-fg:#1A1A1A; --btn-radius:4px; --card-radius:4px; --chip-radius:4px;
  --logo-height:2.75rem; --logo-max-width:22rem;
}
@media (min-width:1024px){:root{--logo-height:3.5rem}}


/* Logo grows on wider screens - override the dial at the breakpoint, never per-page. */
@media (min-width: 1024px) {
  :root { --logo-height: 3.5rem; }
}

/* ===== 3) Layout primitives ===== */
.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

.section {
  padding: var(--space-10) 0;
}

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* ===== 4) Components ===== */

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  color: var(--header-fg);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}

.site-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* The header logo is an <img src="{{logo.src}}"> whose REAL file is injected by the CMS
   at upload - its aspect ratio is unknown at build time. HEIGHT is the primary driver
   (a generous --logo-height), so every logo renders at a consistent, prominent height
   regardless of ratio; --logo-max-width is a generous, viewport-relative safety cap that
   only clamps a very wide logo on small screens (it then scales down proportionally, never
   distorts). Never pin width AND height. Tune the dials per brand - never a per-page size. */
.site-logo img {
  height: auto;
  width: auto;
  max-height: var(--logo-height);
  max-width: min(var(--logo-max-width, 22rem), 55vw);
  object-fit: contain;
}

.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-4);
}

.site-cta {
  display: none;
  align-items: center;
  gap: var(--space-2);
}

/* CMS-rendered menus - `{{menu.navigation}}` and `{{menu.footer}}` expand to
   <ul class="canvas-navigation-menu"> / <ul class="canvas-footer-menu"> with
   <li><a> children. Style the generated classes directly. */

.canvas-navigation-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.canvas-navigation-menu > li {
  margin: 0;
}

.canvas-navigation-menu a {
  color: var(--header-fg);
  font-weight: 600;
  font-size: 0.95rem;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.canvas-navigation-menu a:hover,
.canvas-navigation-menu a:focus-visible {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.canvas-footer-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

/* Footers can carry many links. With 8+ items, flow them into responsive columns
   (auto-fill grid) instead of one long, sprawling wrapping row - multi-column on wide
   screens, collapsing toward a single column on mobile. Short footer menus keep the
   inline row above. Where :has() is unsupported it harmlessly stays the flex row. */
.canvas-footer-menu:has(> li:nth-child(8)) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
  align-items: start;
  gap: var(--space-2) var(--space-5);
}

.canvas-footer-menu > li {
  margin: 0;
}

.canvas-footer-menu a {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.canvas-footer-menu a:hover,
.canvas-footer-menu a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--color-primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--color-text-soft);
  opacity: 0.6;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--btn-radius);
  min-height: 2.75rem;
  padding: 0.78rem 1.4rem;
  font-size: 0.98rem;
  line-height: 1;
  letter-spacing: 0.01em;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-offset: 3px; }

.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 28%, transparent);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--color-primary) 40%, transparent);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid color-mix(in srgb, var(--color-text) 16%, transparent);
}

.btn-secondary:hover {
  background: color-mix(in srgb, var(--color-surface-soft) 75%, #fff);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid color-mix(in srgb, var(--color-text) 20%, transparent);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--color-surface-soft) 65%, transparent);
}

/* Header CTAs follow the header foreground so they stay legible on a coloured band
   (no-op on the neutral default where --header-fg == --color-text). */
.site-header .btn-ghost {
  color: var(--header-fg);
  border-color: color-mix(in srgb, var(--header-fg) 20%, transparent);
}

.btn-sm {
  min-height: 2.2rem;
  padding: 0.55rem 1rem;
  font-size: 0.87rem;
}

.btn-lg {
  min-height: 3rem;
  padding: 0.9rem 1.7rem;
  font-size: 1.04rem;
}

.btn-block { width: 100%; }

.btn-icon {
  width: 2.75rem;
  min-width: 2.75rem;
  padding: 0;
  border-radius: 50%;
}

/* Card */
.card {
  background: var(--color-surface);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  padding: var(--space-5);
}

.card-title {
  margin: 0 0 var(--space-2);
  font-size: 1.08rem;
}

.card-text {
  margin: 0;
  color: var(--color-text-soft);
}

/* Chip - pill-shaped tag */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--chip-radius);
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.chip-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Site footer */
.site-footer {
  padding: var(--space-10) 0;
  color: var(--color-text-soft);
  font-size: 0.9rem;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}

/* Member profile */
.profile-head {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  margin-bottom: var(--space-6);
}
.profile-avatar {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: var(--radius-pill);
  object-fit: cover;
}
.profile-id {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.profile-headline {
  font-size: 1.15rem;
  font-weight: 600;
}
.profile-bio {
  color: var(--color-text-soft);
  max-width: 60ch;
}
.profile-interests {
  margin-top: var(--space-3);
}

/* ===== 5) Utilities ===== */
.text-center { text-align: center; }
.muted { color: var(--color-text-soft); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== Split homepage, native drawer, editorial, prose and hubs ===== */
html,body{overflow-x:hidden}.site-header-row{min-width:0;flex-wrap:nowrap}.site-header-row>*{min-width:0}.site-nav,.site-cta{display:none}.site-logo{min-width:0}.site-logo img{width:auto;height:auto;max-height:var(--logo-height);max-width:min(var(--logo-max-width),55vw)}
.nav-toggle-input{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.nav-toggle{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:2.75rem;height:2.75rem;margin-left:auto;padding:.5rem;background:none;border:0;cursor:pointer;z-index:40;flex-shrink:0}.nav-toggle-bar{display:block;width:1.35rem;height:2px;background:var(--header-fg);transition:transform var(--transition-fast),opacity var(--transition-fast)}.nav-toggle-input:checked+.nav-toggle .nav-toggle-bar:nth-child(1){transform:translateY(7px) rotate(45deg)}.nav-toggle-input:checked+.nav-toggle .nav-toggle-bar:nth-child(2){opacity:0}.nav-toggle-input:checked+.nav-toggle .nav-toggle-bar:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.nav-list{display:flex;align-items:center;gap:var(--space-4);margin:0;padding:0;list-style:none;min-width:0;flex-wrap:nowrap}.nav-list>li{min-width:0;flex-shrink:0}.nav-list a{white-space:nowrap}
.btn{border-radius:var(--btn-radius);transition:background-color var(--transition-fast),color var(--transition-fast),border-color var(--transition-fast)}.btn:hover,.hub-grid a.card:hover{transform:none}
.hero-full{position:relative;isolation:isolate;display:grid;align-items:end;overflow:hidden;width:100%;min-height:min(92vh,48rem);background:var(--color-accent)}
.hero-full-media{position:absolute;inset:0;z-index:0}
.hero-full-media img{width:100%;height:100%;object-fit:cover;object-position:center 28%}
.hero-full-content{position:relative;z-index:1;padding:clamp(4rem,10vw,8rem) 0 clamp(3rem,7vw,5rem);color:#fff;background:linear-gradient(to top,rgba(26,26,26,.82) 0%,rgba(26,26,26,.35) 48%,transparent 78%)}
.hero-full h1{font-family:var(--font-heading);font-size:clamp(2.4rem,6vw,4.8rem);line-height:1.08;margin:0 0 var(--space-4);max-width:12ch;color:#fff}
.hero-full .lede{font-size:clamp(1.1rem,2.2vw,1.4rem);margin:0 0 var(--space-4);max-width:34ch;color:#fff}
.hero-full .hero-note{margin:0 0 var(--space-6);max-width:42ch;color:rgba(255,255,255,.92)}
.hero-full-actions{display:flex;flex-wrap:wrap;gap:var(--space-3);min-width:0}
.hero-full-actions>*{min-width:0}
.hero-full .btn-ghost{color:#fff;border-color:rgba(255,255,255,.55)}
.hero-full .btn-ghost:hover{background:rgba(255,255,255,.12)}
.city-grid-section{padding:var(--space-12) 0}
.city-grid-intro{max-width:42rem;margin:0 0 var(--space-8)}
.city-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-5);min-width:0}
.city-card{min-width:0;display:flex;flex-direction:column;gap:var(--space-3);color:inherit}
.city-card figure{margin:0;overflow:hidden;border-radius:4px;aspect-ratio:4/5;background:var(--color-surface-soft)}
.city-card img{width:100%;height:100%;object-fit:cover;object-position:center 20%}
.city-card h3{margin:0;font-family:var(--font-heading);font-size:clamp(1.15rem,2vw,1.45rem)}
.city-card p{margin:0;color:var(--color-text-soft)}
@media (min-width:600px){.city-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:960px){.city-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.prose{max-width:48rem}.prose p,.prose li{font-size:1.05rem}.prose a{color:var(--color-primary);text-decoration:underline;text-underline-offset:3px}.prose a.btn,.prose a.btn:hover,.prose a.btn:focus-visible{color:#fff;text-decoration:none}.prose a.btn-ghost,.prose a.btn-ghost:hover{color:var(--color-text)}.prose a.btn-primary,.prose a.btn-primary:hover{color:#fff;background:var(--color-primary)}.prose a.btn-primary:hover{background:var(--color-primary-dark)}.prose ul,.prose ol{padding-left:1.3rem}.page-hero{position:relative;overflow:hidden;min-height:18rem;display:grid;align-items:end;background:var(--color-accent);color:#fff}.page-hero img{width:100%;height:18rem;object-fit:cover;object-position:center 18%}.page-hero-copy{position:relative;z-index:1;margin-top:-7rem;padding:var(--space-8) 0 var(--space-6);color:#fff;background:linear-gradient(to top,color-mix(in srgb,var(--color-accent) 82%,transparent),transparent)}.page-hero-copy h1{margin:0 0 var(--space-3);color:#fff;max-width:24ch}.page-hero-copy .lede{margin:0;max-width:48ch;color:#fff}.page-hero-copy .hero-note{margin:var(--space-3) 0 0;max-width:48ch;color:rgba(255,255,255,.92)}.age-note{margin:var(--space-4) 0 0;font-size:.85rem;color:rgba(255,255,255,.75)}.sibling-row{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-4)}.sibling-row .chip[aria-current="page"]{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}.hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:var(--space-5)}.compare-wrap{overflow-x:auto}.compare-table{width:100%;border-collapse:collapse;min-width:36rem}.compare-table th,.compare-table td{text-align:left;vertical-align:top;padding:var(--space-3) var(--space-4);border-bottom:1px solid rgba(26,26,26,.1)}.compare-table th{font-family:var(--font-heading);background:var(--color-surface-soft)}
.site-footer{background:var(--color-accent);color:#fff}.site-footer .nav-list{flex-wrap:wrap}.site-footer .nav-list a{color:#fff}.site-footer .nav-list a:hover{color:var(--color-primary-light)}.photo-note{color:rgba(255,255,255,.75)}.footer-legal{display:flex;flex-wrap:wrap;gap:var(--space-3) var(--space-5);min-width:0}.footer-legal a{color:rgba(255,255,255,.8)}
@media (min-width:768px){.site-nav,.site-cta{display:inline-flex;align-items:center}.site-nav{flex:1 1 auto;justify-content:flex-end}.site-cta{gap:var(--space-2);flex-shrink:0}.nav-toggle,.nav-toggle-input{display:none}.hero-full{min-height:min(94vh,52rem)}}
@media (max-width:767px){body:has(.nav-toggle-input:checked){overflow:hidden}.nav-toggle-input:checked~.site-nav{display:flex;flex-direction:column;align-items:stretch;position:fixed;inset:0 0 0 auto;width:min(82vw,22rem);max-width:100%;padding:6rem 1.5rem 8rem;background:#fff;color:var(--color-text);box-shadow:var(--shadow-lg);z-index:30;overflow-y:auto}.nav-toggle-input:checked~.site-nav .nav-list{flex-direction:column;align-items:stretch;gap:0}.nav-toggle-input:checked~.site-nav .nav-list a{display:block;padding:.85rem 0;color:var(--color-text);border-bottom:1px solid rgba(26,26,26,.1)}.nav-toggle-input:checked~.site-cta{display:flex;flex-direction:column;position:fixed;right:0;bottom:0;width:min(82vw,22rem);padding:1rem 1.5rem 1.5rem;background:#fff;z-index:31;gap:.5rem;box-shadow:0 -8px 24px rgba(26,26,26,.08)}.nav-toggle-input:checked~.site-cta .btn{width:100%}.hero-full-content{padding:4rem 0 3rem}}


/* ===== Article page ===== */
.page-article .article-head{max-width:48rem}
.page-article .article-head h1{margin:var(--space-4) 0 var(--space-3)}
.article-feature{display:block;width:100%;max-width:48rem;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:center 18%;border-radius:4px;margin:var(--space-6) 0 var(--space-8);background:var(--color-surface-soft)}
.article-siblings{max-width:48rem;margin:var(--space-10) 0 0;padding-top:var(--space-8);border-top:1px solid rgba(26,26,26,.12)}
.article-siblings h2{font-family:var(--font-heading);font-size:clamp(1.25rem,2vw,1.5rem);margin:0 0 var(--space-4)}
.article-siblings ul{margin:0;padding-left:1.25rem;display:grid;gap:var(--space-2)}
.article-siblings a{color:var(--color-primary);font-weight:600}
.cta-band{background:var(--color-accent);color:#fff;padding:clamp(3rem,7vw,5rem) 0;text-align:center}
.cta-band h2{color:#fff;margin:0 0 var(--space-4)}
.cta-band p{color:rgba(255,255,255,.92);max-width:42rem;margin:0 auto var(--space-6)}
.cta-band .btn-primary{color:#fff}
.cta-band .btn-ghost{color:#fff;border-color:rgba(255,255,255,.55)}
.cta-band .btn-ghost:hover{background:rgba(255,255,255,.12)}
.cta-band-actions{display:flex;flex-wrap:wrap;gap:var(--space-3);justify-content:center}
