/* Meaning of Name — rebuild styles. Plain CSS, no build step. */
* { box-sizing: border-box; }
body { margin: 0; font-family: Georgia, 'Times New Roman', serif; color: #1f2937; background: #fdfbf7; line-height: 1.6; }
a { color: #173f5f; }
a:hover { text-decoration: underline; }
header.site { background: #173f5f; color: #fff; padding: 0 16px; }
header.site .wrap { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; }
header.site a.brand { color: #fff; font-size: 1.4rem; font-weight: bold; text-decoration: none; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
header.site nav a { color: #dbeafe; text-decoration: none; font-family: Arial, Helvetica, sans-serif; font-size: .95rem; }
header.site nav a:hover { color: #fff; text-decoration: underline; }
.searchbox { margin-left: auto; display: flex; gap: 6px; }
.searchbox input { padding: 7px 10px; border: 1px solid #94a3b8; border-radius: 4px; font-size: 1rem; min-width: 180px; }
.searchbox button, .btn { background: #c9a227; color: #1f2937; border: none; padding: 8px 14px; border-radius: 4px; cursor: pointer; font-size: 1rem; text-decoration: none; display: inline-block; }
.btn.secondary { background: #e2e8f0; }
main { max-width: 1080px; margin: 0 auto; padding: 16px; }
footer.site { background: #1f2937; color: #cbd5e1; margin-top: 40px; padding: 24px 16px; font-family: Arial, Helvetica, sans-serif; font-size: .92rem; }
footer.site .wrap { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
footer.site a { color: #e2e8f0; text-decoration: none; display: block; padding: 2px 0; }
footer.site h3 { color: #fff; margin: 0 0 8px; font-size: 1rem; }
.breadcrumbs { font-family: Arial, Helvetica, sans-serif; font-size: .88rem; color: #64748b; margin-bottom: 12px; }
.breadcrumbs a { color: #64748b; }
h1 { font-size: 2rem; line-height: 1.2; margin: .2em 0 .4em; }
h2 { font-size: 1.4rem; margin-top: 1.6em; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: .92rem; color: #475569; }
.notice { background: #fef3c7; border: 1px solid #f59e0b; border-radius: 6px; padding: 12px 14px; margin: 12px 0; font-family: Arial, Helvetica, sans-serif; }
.notice.draft { background: #f1f5f9; border-color: #94a3b8; }
table.names { width: 100%; border-collapse: collapse; background: #fff; font-family: Arial, Helvetica, sans-serif; }
table.names th, table.names td { border-bottom: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; }
.name-card { background: #faf6ee; color: #1f2a44; border-radius: 6px; padding: 48px 24px 36px; text-align: center; max-width: 540px; margin: 16px auto; border: 1px solid #ac8a52; outline: 1px solid #ac8a52; outline-offset: 5px; font-family: Georgia, 'Gelasio', 'Times New Roman', serif; }
.name-card.girl { color: #8a2f56; }
.name-card.unisex { color: #404a6e; }
.name-card .eyebrow { letter-spacing: .35em; font-size: .8rem; color: #ac8a52; text-transform: uppercase; font-family: Arial, Helvetica, sans-serif; }
.name-card .big { font-size: 3.4rem; margin: 18px 0 18px; line-height: 1.1; font-weight: 700; }
.name-card .sub { color: #ac8a52; font-family: Arial, Helvetica, sans-serif; letter-spacing: .08em; }
.name-card .divider { width: 160px; height: 1px; background: #ac8a52; margin: 22px auto; position: relative; }
.name-card .divider::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; background: #faf6ee; border: 1px solid #ac8a52; transform: translate(-50%, -50%) rotate(45deg); }
.name-card .meaning { font-size: 1.3rem; margin: 22px 0 6px; font-style: italic; }
.name-card .about { font-size: 1rem; line-height: 1.55; margin: 18px auto 0; max-width: 420px; font-family: Arial, Helvetica, sans-serif; }
.name-card .foot { color: #ac8a52; font-family: Arial, Helvetica, sans-serif; margin-top: 28px; letter-spacing: .25em; font-size: .85rem; }
/* The card PNG shown on a name page (1080x1350, displayed at 540px). */
.name-card-img { max-width: 540px; margin: 16px auto; text-align: center; }
.name-card-img img { width: 100%; height: auto; display: block; border-radius: 6px; }
.name-card-img figcaption { margin-top: 10px; font-size: .9rem; font-family: Arial, Helvetica, sans-serif; }
/* Social share buttons under the name card. */
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 18px auto; max-width: 540px; }
.share-buttons .share-label { font-weight: 700; font-family: Arial, Helvetica, sans-serif; margin-right: 2px; }
.share-btn { display: inline-block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-family: Arial, Helvetica, sans-serif; font-size: .9rem; border: 1px solid transparent; cursor: pointer; background: #fff; }
.share-btn:hover { opacity: .85; }
/* Native share button: hidden until JS confirms the browser supports the
   phone's built-in share menu (navigator.share). Gold so it stands out
   as the main share action on phones. */
.share-btn.share-native { display: none; background: #ac8a52; color: #fff; }
.share-facebook { background: #1877f2; color: #fff; }
.share-x { background: #000; color: #fff; }
.share-whatsapp { background: #25d366; color: #fff; }
.share-pinterest { background: #e60023; color: #fff; }
.share-copy { background: #faf6ee; color: #1f2a44; border-color: #ac8a52; }
.facts { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 18px; font-family: Arial, Helvetica, sans-serif; }
.facts dt { font-weight: bold; }
.facts dd { margin: 0 0 8px; }
.faq details { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 10px 14px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: bold; font-family: Arial, Helvetica, sans-serif; }
.pagination { margin: 20px 0; font-family: Arial, Helvetica, sans-serif; }
.pagination a, .pagination span { padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 4px; margin-right: 4px; text-decoration: none; background: #fff; }
.pagination span.current { background: #173f5f; color: #fff; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; font-family: Arial, Helvetica, sans-serif; font-size: .92rem; }
.admin-table th, .admin-table td { border-bottom: 1px solid #e2e8f0; padding: 8px; text-align: left; vertical-align: top; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8rem; font-family: Arial, Helvetica, sans-serif; background: #e2e8f0; }
.badge.real { background: #dcfce7; } .badge.uncertain, .badge.invented { background: #fee2e2; } .badge.variant { background: #fef3c7; }
.badge.ai-approved { background: #dcfce7; } .badge.ai-unsure { background: #fef3c7; } .badge.ai-rejected { background: #fee2e2; }
form.inline { display: inline; }
input[type=text], input[type=password], textarea, select { padding: 8px; border: 1px solid #94a3b8; border-radius: 4px; font-size: 1rem; width: 100%; }
label { font-family: Arial, Helvetica, sans-serif; font-weight: bold; display: block; margin: 12px 0 4px; }

/* Search results page (new design, 2026-12-02): name + category only. */
.search-results { list-style: none; padding: 0; margin: 0 0 18px; }
.search-results li { padding: 9px 0; border-bottom: 1px solid #e2e8f0; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.search-results li a { font-weight: 600; }
.search-cat { color: #64748b; font-size: .9rem; }
.ai-search-box { background: #faf6ee; border: 1px solid #d4af37; border-radius: 8px; padding: 16px; margin: 18px 0; }
.ai-search-box h2 { margin-top: 0; }
.ai-search-box label { display: inline-block; margin: 0 12px 10px 0; font-weight: 600; }
.ai-search-box select { padding: 6px 8px; border: 1px solid #94a3b8; border-radius: 4px; margin-left: 6px; background: #fff; }
.muted { color: #64748b; font-size: .9rem; }
