/* NameHarmonyPh.com extras on top of the copied design system */

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

.page-wrap, .page-narrow {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}
.page-narrow { max-width: 720px; }

.page-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}
.page-section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.hero-field .search-input,
.maiden-form .search-input,
.ai-form .search-input { width: 100%; }
.hero-pair-form { max-width: 720px; }
.hero-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-field span {
  display: block;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #e2e8f0;
  margin-bottom: 6px;
}
.hero .hero-field span { color: var(--neutral-700); }
.hero-gender { color: var(--neutral-800); }
.page-wrap .hero-field span, .ai-form .hero-field span { color: var(--neutral-700); }
.hero-pair-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.hero-gender {
  display: flex;
  gap: 16px;
  color: inherit;
  font-weight: 600;
  border:none
}
.hero-gender label { display: flex; gap: 6px; align-items: center; cursor: pointer; }

.combo-hero { margin-bottom: 28px; }
.combo-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 8px;
}
.combo-hero h1, .page-wrap h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--neutral-900);
  margin-bottom: 12px;
}
.combo-lead { font-size: 1.08rem; color: var(--neutral-700); margin-bottom: 16px; }
.combo-structure {
  font-size: 1.05rem;
  background: var(--white);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}
.combo-structure span { color: var(--brand); font-weight: 800; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.section-more { margin-top: 18px; }
.section-more a { font-weight: 700; color: var(--brand); text-decoration: none; }

.ai-inline-banner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.ai-inline-banner h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 6px; }
.ai-inline-compact { margin: 12px 0 32px; }

.gender-tabs { display: flex; gap: 10px; margin: 12px 0 24px; }
.catalog-section { margin-bottom: 48px; }
.catalog-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.load-more-wrap { text-align: center; margin: 12px 0 32px; }

.maiden-cta {
  background: var(--white);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 36px;
}
.maiden-form { display: flex; gap: 12px; margin-top: 12px; max-width: none; }
.maiden-form .search-input { flex: 1; }

.ai-form fieldset {
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 18px;
  background: white;
}
.ai-form legend { font-weight: 800; padding: 0 8px; }
.ai-form { max-width: none; }
.ai-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--neutral-700);
  margin: 14px 0 8px;
}
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  cursor: pointer;
}
.ai-special { flex-direction: column; align-items: flex-start; gap: 10px; }
.field-help { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--neutral-500); }
.ai-form-error { color: #b91c1c; font-weight: 700; margin-bottom: 12px; }
.ai-privacy-note {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--neutral-600);
  margin: 0 0 14px;
  max-width: 46rem;
}
.ai-privacy-note a { font-weight: 700; }
.ai-loading { padding: 28px 0; font-size: 1.15rem; }
.ai-cached-note {
  background: #eff6ff;
  border-left: 4px solid #1563a0;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
}
.ai-disclaimer {
  background: #fff7ed;
  border-left: 4px solid #c2410c;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: #9a3412;
  font-weight: 600;
}
.ai-results { margin-top: 28px; }
.ai-results-lead { margin-bottom: 18px; font-size: 1.05rem; }
.ai-rank {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-bottom: 4px;
}
.ai-hook {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  margin: 6px 0 0;
  color: var(--neutral-700);
}
.ai-reasoning {
  font-size: 1.02rem;
  line-height: 1.55;
  border-left: 3px solid var(--neutral-200);
  padding-left: 14px;
  margin: 12px 0 16px;
}
.ai-meta { color: var(--neutral-600); margin-bottom: 8px; }
.ai-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.ai-analysis-item {
  background: var(--neutral-100, #f8fafc);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.92rem;
}
.ai-analysis-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--neutral-600);
}
.ai-result-card.name-entry { margin-bottom: 18px; }
.ai-form .filter-group .search-input,
.ai-form .filter-group select { width: 100%; }

.ac-item {
  display: block; width: 100%; text-align: left; padding: 10px 14px;
  border: 0; background: white; cursor: pointer; font-family: Nunito, sans-serif;
}
.ac-item:hover { background: var(--neutral-100); }
.ac-item small { color: #94a3b8; }

.data-table { width: 100%; border-collapse: collapse; background: white; }
.data-table th, .data-table td { padding: 10px 14px; border-bottom: 1px solid var(--neutral-200); text-align: left; }

.name-entry-title { text-decoration: none; color: inherit; display: inline-block; }

/* Gender color — first names blue / pink, surnames stay gray */
.given-male,
.name-card-male .name-card-name,
.name-entry-head-male .name-entry-title,
.name-detail-head-male h1,
.section-title.given-male,
h1.given-male,
.summary-card-value.given-male,
.catalog-section#boys > h2 {
  color: #1563a0;
}
.given-female,
.name-card-female .name-card-name,
.name-entry-head-female .name-entry-title,
.name-detail-head-female h1,
.section-title.given-female,
h1.given-female,
.summary-card-value.given-female,
.catalog-section#girls > h2 {
  color: #b84068;
}
.name-card-name .surname-part,
.name-entry-title .surname-part,
h1 .surname-part {
  color: var(--neutral-700);
  font-weight: 500;
}

.given-name { font-weight: 800; }

.name-card-male,
.name-detail-head-male,
.name-entry:has(.name-entry-head-male) {
  border-left: 4px solid var(--male);
}
.name-card-female,
.name-detail-head-female,
.name-entry:has(.name-entry-head-female) {
  border-left: 4px solid var(--female);
}

.header-nav .nav-boy { color: #1563a0; }
.header-nav .nav-boy:hover { color: #0d4f82; background: var(--male-soft); }
.header-nav .nav-girl { color: #b84068; }
.header-nav .nav-girl:hover { color: #8e2d4e; background: var(--female-soft); }
.footer-links a.link-boy { color: #7ec8f0; }
.footer-links a.link-girl { color: #f4a0b8; }
.footer-spot-name {
  display: block;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #e2e8f0;
  margin: 0 0 8px;
}
.footer-spot-name:hover { color: #fff; }
.footer-spot-male .given-male { color: #7ec8f0; }
.footer-spot-female .given-female { color: #f4a0b8; }
.footer-spot-name .surname-part { color: #94a3b8; font-weight: 500; }
.footer-spot-meta {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #64748b;
}
.footer-spot-score {
  font-weight: 800;
  color: #e2e8f0;
}
.footer-spot-more {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: none;
}
.footer-spot-more:hover { color: #fff; }
.hero-gender .opt-boy { color: #1563a0; }
.hero-gender .opt-girl { color: #b84068; }
.name-badge-popular { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.name-badge-rare { background: #f3e8ff; color: #6b21a8; border: 1px solid #d8b4fe; }
.name-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #eff6ff; color: #1d4ed8; }

.analysis-card { background: var(--neutral-50); border-color: var(--neutral-200); }

.enrich-block { margin-top: 8px; }
.enrich-prose { font-size: 1.08rem; color: var(--neutral-800); line-height: 1.65; margin-bottom: 12px; }
.enrich-prose-muted { color: var(--neutral-700); font-size: 1.02rem; }
.enrich-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.enrich-forms { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.enrich-forms li {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: 99px;
  padding: 6px 14px;
  font-weight: 700;
}
.enrich-forms small { font-weight: 600; color: var(--neutral-700); margin-left: 6px; }

.origin-mix { margin: 16px 0 8px; }
.origin-mix-bar {
  display: flex;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--neutral-200);
}
.origin-mix-seg { display: block; height: 100%; }
.origin-mix-spanish { background: #c2410c; }
.origin-mix-filipino { background: #15803d; }
.origin-mix-english { background: #1d4ed8; }
.origin-mix-biblical { background: #7c3aed; }
.origin-mix-chinese { background: #b45309; }
.origin-mix-arabic { background: #0f766e; }
.origin-mix-other { background: #64748b; }
.origin-mix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--neutral-700);
}
.origin-filter-row { margin-top: 12px; flex-wrap: wrap; }
.enrich-combo-notes {
  margin-top: 8px;
  font-size: 1.02rem;
  color: var(--neutral-700);
  line-height: 1.55;
}
.enrich-combo-notes p { margin-bottom: 8px; }
.combo-catalog-note {
  font-size: 0.95rem;
  color: var(--neutral-600);
  margin: 4px 0 12px;
}
.page-narrow h2 {
  font-size: 1.25rem;
  margin: 28px 0 8px;
}
.page-narrow h3 {
  font-size: 1.05rem;
  margin: 18px 0 6px;
}
.page-narrow ul {
  padding-left: 1.25rem;
  margin: 0 0 16px;
  line-height: 1.6;
}
.site-footer .footer-bottom-links a { color: #94a3b8; }
.site-footer .footer-bottom-links a:hover { color: #fff; }
.name-detail-head .name-detail-meaning {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--neutral-800);
  margin: 6px 0 10px;
}

@media (max-width: 800px) {
  .hero-pair-grid, .page-section-split, .maiden-form, .ai-inline-banner {
    grid-template-columns: 1fr;
    flex-direction: column;
    display: flex;
  }
  .combo-hero h1 { font-size: 1.7rem; }
}

/* Philippines-popular share networks */
.share-btn-facebook { background: #1877F2; color: #fff; }
.share-btn-whatsapp { background: #25D366; color: #fff; }
.share-btn-viber { background: #7360F2; color: #fff; }
.share-btn-telegram { background: #2CA5E0; color: #fff; }

.share-sheet-btn.share-btn-copy {
  background: var(--neutral-100);
  color: var(--neutral-800);
  border: 1.5px solid var(--neutral-200);
}

.name-entry-body .name-entry-actions {
  margin-top: 14px;
}

@media (max-width: 640px) {
  .share-sheet-btn.share-btn-native {
    display: flex;
  }
  .page-wrap:has(.share-sticky-bar) {
    padding-bottom: 96px;
  }
}

.compare-scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 28px;
}
.compare-scenario-card {
  background: #fff;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.compare-scenario-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}
.compare-scenario-card p {
  margin: 0;
  color: var(--neutral-700);
  font-size: 0.95rem;
}
.compare-verdict-card {
  background: linear-gradient(135deg, #eff6ff, #fff);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 22px;
}
.compare-verdict-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 6px;
}
.compare-verdict-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin: 0 0 10px;
}
.compare-verdict-text, .compare-final-advice { margin: 8px 0 0; line-height: 1.55; }
.compare-ratings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.compare-rating-card {
  background: #fff;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}
.compare-rating-card.leader { border-color: #1563a0; box-shadow: 0 0 0 1px #1563a0; }
.compare-rating-card .score { font-size: 1.6rem; font-weight: 800; }
.compare-rating-sub { font-size: 0.75rem; color: var(--neutral-500); }
.compare-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  margin: 8px 0 12px;
}
.compare-table-wrap { overflow: auto; margin-bottom: 28px; }
.compare-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 480px; }
.compare-table th, .compare-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--neutral-200);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}
.compare-table th { background: #f8fafc; }
.compare-cell-score { font-weight: 800; }
.compare-tag {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 99px;
  padding: 2px 8px;
  margin: 0 4px 4px 0;
  font-size: 0.78rem;
  font-weight: 700;
}
.compare-name-detail--winner { outline: 2px solid #1563a0; }
.compare-origin { margin: 0 0 10px; }
.compare-site-card {
  background: #f8fafc;
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0 16px;
}
.compare-site-label { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--neutral-600); margin: 0 0 4px; }
.compare-site-score { font-size: 1.4rem; font-weight: 800; margin: 0 0 6px; }
.compare-site-score span { font-size: 0.85rem; font-weight: 600; color: var(--neutral-500); }
.compare-warn { color: #b91c1c; font-weight: 700; }
.compare-pros, .compare-cons { margin: 10px 0; }
.compare-pros ul, .compare-cons ul { margin: 6px 0 0 18px; }
.compare-metric-score { display: block; font-weight: 800; margin-bottom: 4px; }

@media (max-width: 800px) {
  .compare-scenarios { grid-template-columns: 1fr; }
}

.seo-block {
  max-width: 680px;
  margin: 32px auto 8px;
  padding: 0;
  color: var(--neutral-700, #334155);
  line-height: 1.7;
}
.page-section.seo-block {
  max-width: 680px;
  margin: 8px auto 48px;
  padding: 40px 24px 64px;
}
.seo-block h2 {
  font-size: 1.35rem;
  margin: 0 0 12px;
  color: var(--neutral-900, #0f172a);
}
.seo-block p { margin: 0 0 12px; }
.seo-block a { font-weight: 650; }
.seo-faq {
  margin-top: 28px;
}
.seo-faq h2 {
  font-size: 1.25rem;
  margin: 0 0 14px;
}
.seo-faq-item {
  border: 1px solid var(--neutral-200, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  margin: 0 0 8px;
  padding: 0 16px;
}
.seo-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  list-style: none;
}
.seo-faq-item summary::-webkit-details-marker { display: none; }
.seo-faq-item summary::after {
  content: '+';
  float: right;
  font-weight: 700;
  color: var(--neutral-500, #64748b);
}
.seo-faq-item[open] summary::after { content: '–'; }
.seo-faq-item p {
  margin: 0 0 14px;
  color: var(--neutral-700, #334155);
}
