/* Nameframe name pages. Inherits the theme's design tokens (--color-*, --font-*). */

/* Breathing room between the sticky nav and the footer. Lives on .site-main
   because the theme's `.container { padding: 0 ... }` shorthand zeroes any
   top/bottom padding set on the page wrappers. */
.nf-names-page .site-main {
    padding-top: 20px;
    padding-bottom: 20px;
}

.nf-name-page {
    max-width: 760px;
}

.nf-name-breadcrumb {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}
.nf-name-breadcrumb a { color: inherit; text-decoration: none; }
.nf-name-breadcrumb a:hover { text-decoration: underline; }
.nf-name-breadcrumb span[aria-hidden] { margin: 0 0.4rem; opacity: 0.5; }

.nf-name-hero {
    text-align: center;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    margin-bottom: 2.5rem;
}
.nf-name-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.05;
    margin: 0 0 1rem;
}
.nf-name-origins { margin: 0 0 1rem; display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.nf-origin-badge {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--color-accent, #2563EB) 40%, transparent);
    color: var(--color-accent, #2563EB);
    text-decoration: none;
}
.nf-origin-badge:hover { background: var(--color-accent, #2563EB); color: #fff; }

.nf-name-meaning {
    font-size: 1.4rem;
    font-style: italic;
    opacity: 0.85;
    margin: 0 0 1.75rem;
}
.nf-name-cta { display: inline-block; }

.nf-name-section { margin-bottom: 2.75rem; }
.nf-name-section h2 { font-size: 1.5rem; margin: 0 0 0.9rem; }
.nf-name-origin p { font-size: 1.1rem; line-height: 1.7; opacity: 0.9; }

.nf-poem {
    border-left: 3px solid var(--color-accent, #2563EB);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 0 0 1rem;
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
}
.nf-stanza { display: block; }
.nf-stanza + .nf-stanza { margin-top: 1.1em; }
.nf-poem-note { font-size: 0.95rem; opacity: 0.65; }

.nf-gallery-empty {
    border: 1px dashed color-mix(in srgb, currentColor 20%, transparent);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    opacity: 0.85;
}

.nf-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}
.nf-related-list a { color: var(--color-accent, #2563EB); text-decoration: none; }
.nf-related-list a:hover { text-decoration: underline; }

/* ---- Names index (hub) at /names/ ---- */
.nf-names-index { max-width: 960px; }
.nf-index-header { text-align: center; margin-bottom: 2.5rem; }
.nf-index-header h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); margin: 0 0 0.5rem; }
.nf-index-intro { opacity: 0.75; margin: 0 0 1.75rem; }

.nf-index-search {
    width: 100%;
    max-width: 420px;
    padding: 0.7rem 1rem;
    font: inherit;
    color: inherit;
    background: transparent;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}
.nf-index-search:focus { outline: 2px solid var(--color-accent, #2563EB); outline-offset: 1px; }

.nf-origin-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.25rem; }
.nf-chip {
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    color: inherit;
    background: transparent;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    transition: background .15s, color .15s, border-color .15s;
}
.nf-chip:hover { border-color: var(--color-accent, #2563EB); }
.nf-chip.is-active { background: var(--color-accent, #2563EB); color: #fff; border-color: var(--color-accent, #2563EB); }
.nf-chip-count { opacity: 0.6; font-size: 0.8em; }
.nf-chip.is-active .nf-chip-count { opacity: 0.85; }

.nf-az-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; justify-content: center; font-size: 0.9rem; }
.nf-az-nav a { color: var(--color-accent, #2563EB); text-decoration: none; }
.nf-az-nav a:hover { text-decoration: underline; }

.nf-letter-group { margin-top: 2.25rem; scroll-margin-top: 90px; }
.nf-letter-head {
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.nf-name-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem 1rem;
}
.nf-name-card a {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.nf-name-card a:hover { background: color-mix(in srgb, var(--color-accent, #2563EB) 8%, transparent); }
.nf-card-name { font-weight: 600; }
.nf-card-origin { font-size: 0.8rem; opacity: 0.6; }
.nf-no-results { text-align: center; opacity: 0.7; margin-top: 2rem; }
