/* The existing Sheshi shell remains shared; all new surface rules are scoped. */
.names-main { --names-ink: #19242a; --names-muted: #52636e; --names-line: #d8e1e6; --names-accent: #3d596a; color: var(--names-ink); background: #fff; padding-bottom: 80px; }
.names-main [hidden] { display: none !important; }
.names-main, .names-main * { box-sizing: border-box; }
.names-main, .names-main * { font-family: var(--sheshi-font, system-ui, sans-serif) !important; }
.names-main span { color: inherit; }
.names-main .names-card h2 > span { font: inherit; color: inherit; }
.names-main .names-wrap { max-width: 1200px; width: calc(100% - 64px); padding: 0; margin: 0 auto; }
.names-main a { color: var(--names-accent); }
.names-main button, .names-main input, .names-main select { font: inherit; }
.names-main :is(a,button,input,select,summary):focus-visible { outline: 3px solid #2c607e; outline-offset: 4px; }
.names-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 25px 0 20px; font-size: 13px; color: var(--names-muted); }
.names-breadcrumb a { text-decoration: none; }
.names-breadcrumb a:hover { text-decoration: underline; }
.names-navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--names-line); }
.names-navigation-links { display: flex; gap: 28px; }
.names-navigation a { min-width: 44px; min-height: 49px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 2px solid transparent; }
.names-navigation a[aria-current] { color: var(--names-ink); border-bottom-color: var(--names-ink); }
.names-saved-link span { min-width: 23px; height: 23px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #eef2f4; font-size: 12px; }
.names-hero { padding: 52px 0 40px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 70px; align-items: end; }
.names-main .names-eyebrow { margin: 0 0 15px; color: var(--names-accent); font-size: 12px; font-weight: 650; line-height: 1.5; letter-spacing: .035em; }
.names-main .names-hero h1 { max-width: 700px; margin: 0; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.055em; font-weight: 750; color: var(--names-ink); overflow-wrap: normal; }
.names-main .names-intro { max-width: 640px; margin: 24px 0 0; color: var(--names-muted); font-size: 17px; line-height: 1.65; }
.names-hero-note { padding: 6px 0 6px 24px; border-left: 2px solid var(--names-line); }
.names-hero-note > span { font-size: 13px; font-weight: 650; }
.names-hero-note p { margin: 8px 0 0; color: var(--names-muted); font-size: 14px; line-height: 1.6; }
.names-filters { display: grid; grid-template-columns: minmax(220px, 1fr) 200px 170px auto; gap: 16px; align-items: end; margin: 0; padding: 24px; background: #f3f6f7; border: 1px solid var(--names-line); border-radius: 12px; }
.names-filters label { display: block; margin: 0 0 9px; font-size: 12px; font-weight: 650; color: var(--names-ink); }
.names-filters :is(input,select) { width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 10px 13px; border: 1px solid #a9bac5; border-radius: 6px; background: #fff; color: var(--names-ink); font-size: 15px; box-shadow: none; line-height: 1.4; }
.names-filters input::placeholder { color: #60717d; opacity: 1; }
.names-filters select { padding-right: 30px; }
.names-filters .names-filter-submit { display: inline-flex; gap: 18px; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; color: #fff; background: var(--names-accent); border: 1px solid var(--names-accent); border-radius: 6px; font-size: 14px; font-weight: 650; cursor: pointer; }
.names-results-bar { min-height: 75px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.names-results-bar p { margin: 0; font-size: 13px; color: var(--names-muted); }
.names-results-bar > div { display: flex; align-items: center; gap: 20px; }
.names-results-bar :is(a,button) { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--names-accent); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; cursor: pointer; }
.names-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.names-card { display: flex; flex-direction: column; min-height: 288px; padding: 20px 24px 12px; border: 1px solid var(--names-line); border-radius: 10px; background: #fff; }
.names-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 40px; }
.names-card-gender { color: var(--names-muted); font-size: 11px; }
.names-main .names-save { display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; margin: 0 -8px 0 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--names-muted); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.names-save svg { width: 20px; height: 20px; flex: 0 0 20px; }
.names-main .names-save:hover { background: #f1f5f7; color: var(--names-ink); }
.names-main .names-save[aria-pressed="true"] { color: #314f61; background: #edf3f6; }
.names-save[aria-pressed="true"] svg { fill: currentColor; }
.names-main .names-card h2 { margin: 13px 0 8px; font-size: 33px; line-height: 1.15; font-weight: 720; letter-spacing: -.04em; color: var(--names-ink); }
.names-card h2 a { color: inherit; text-decoration: none; }
.names-card h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.names-main .names-card-meaning { margin: 0; color: var(--names-ink); font-size: 15px; font-weight: 600; line-height: 1.5; }
.names-main .names-card-note { margin: 13px 0 20px; color: var(--names-muted); font-size: 13px; line-height: 1.65; }
.names-main .names-uncertain { margin: 0 0 15px; color: #6d4b1e; font-size: 12px; line-height: 1.5; }
.names-card-bottom { margin-top: auto; border-top: 1px solid #e4eaee; }
.names-card-bottom > .names-profile-link { border-bottom: 1px solid #e4eaee; }
.names-profile-link { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-size: 12px; font-weight: 650; text-decoration: none; }
.names-profile-link:hover { text-decoration: underline; }
.names-sources summary { display: flex; align-items: center; min-height: 48px; gap: 10px; cursor: pointer; color: var(--names-accent); font-size: 12px; font-weight: 600; list-style: none; }
.names-sources summary::-webkit-details-marker { display: none; }
.names-sources summary::after { content: '+'; margin-left: auto; font-size: 19px; font-weight: 400; }
.names-sources[open] summary::after { content: '−'; }
.names-sources ul { margin: 0; padding: 0 0 0 17px; }
.names-sources li { margin: 0 0 15px; padding: 0; font-size: 12px; overflow-wrap: anywhere; }
.names-sources li a { text-decoration: underline; text-underline-offset: 3px; }
.names-sources li p, .names-sources > p { margin: 6px 0 12px; color: var(--names-muted); font-size: 12px; line-height: 1.6; }
.names-editorial { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; margin-top: 64px; padding: 42px 0 0; border-top: 1px solid var(--names-line); }
.names-main .names-editorial h2 { max-width: 420px; margin: 0; font-size: 31px; line-height: 1.15; letter-spacing: -.035em; color: var(--names-ink); }
.names-editorial > div > p:not(.names-eyebrow) { margin: 0 0 16px; color: var(--names-muted); font-size: 14px; line-height: 1.75; }
.names-empty { text-align: center; padding: 48px 24px; background: #f5f7f8; border: 1px solid var(--names-line); border-radius: 10px; }
.names-main .names-empty h2 { margin: 0; font-size: 27px; line-height: 1.25; letter-spacing: -.035em; }
.names-empty p { margin: 16px 0; color: var(--names-muted); font-size: 15px; }
.names-text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; color: var(--names-accent); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.names-main .names-storage-note, .names-main .names-noscript { padding: 18px; border: 1px solid var(--names-line); background: #f5f7f8; color: #3a4d58; font-size: 14px; line-height: 1.6; margin: 24px 0 0; border-radius: 6px; }
.names-profile-hero { display: flex; justify-content: space-between; gap: 32px; align-items: center; padding: 54px 0 45px; border-bottom: 1px solid var(--names-line); }
.names-main .names-profile-hero h1 { margin: 0; font-size: clamp(62px, 9vw, 110px); line-height: 1; font-weight: 740; letter-spacing: -.055em; color: var(--names-ink); }
.names-main .names-profile-meaning { color: var(--names-ink); margin: 18px 0; font-size: 23px; font-weight: 500; }
.names-profile-action .names-save { min-height: 48px; padding: 12px 20px; border: 1px solid var(--names-line); font-size: 14px; margin: 0; }
.names-profile-action > p { margin: 12px 0 0; color: var(--names-muted); font-size: 12px; }
.names-profile-layout { display: grid; grid-template-columns: minmax(0, 680px) minmax(220px, 1fr); gap: 90px; padding-top: 42px; }
.names-profile-text > section { margin: 0 0 35px; }
.names-main .names-profile-text h2, .names-main .names-profile-aside h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.03em; margin: 0 0 15px; color: var(--names-ink); }
.names-profile-text > section > p { color: #485b67; font-size: 16px; line-height: 1.8; margin: 0; }
.names-profile-aside { align-self: start; padding: 24px; border: 1px solid var(--names-line); border-radius: 10px; background: #f5f7f8; }
.names-profile-aside dl { margin: 0; }
.names-profile-aside dl > div { padding: 16px 0; border-top: 1px solid var(--names-line); }
.names-profile-aside dt { color: var(--names-muted); font-size: 12px; font-weight: 400; }
.names-profile-aside dd { margin: 6px 0 0; font-size: 15px; font-weight: 550; }
.names-profile-aside > a { margin-top: 16px; }
.names-profile-text > .names-sources { border-top: 1px solid var(--names-line); }
.names-profile-text > .names-sources summary { font-size: 14px; }
@media (max-width: 1023px) {
  .names-hero { grid-template-columns: minmax(0,1fr); gap: 22px; padding-top: 36px; }
  .names-hero-note { display: none; }
  .names-filters { grid-template-columns: minmax(0, 1fr) minmax(150px, .7fr); }
  .names-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .names-editorial { gap: 36px; }
  .names-profile-layout { gap: 32px; grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 639px) {
  .names-main { padding-bottom: 44px; }
  .names-main .names-wrap { width: calc(100% - 32px); }
  .names-breadcrumb { font-size: 12px; padding: 19px 0 12px; }
  .names-navigation { gap: 8px; flex-wrap: wrap; }
  .names-navigation-links { gap: 19px; }
  .names-navigation a { font-size: 12px; min-height: 48px; }
  .names-saved-link { margin-left: auto; }
  .names-hero { padding: 30px 0 26px; }
  .names-main .names-hero h1 { font-size: 38px; line-height: 1.06; overflow-wrap: anywhere; }
  .names-main .names-intro { margin-top: 17px; font-size: 15px; line-height: 1.65; }
  .names-filters { padding: 16px; gap: 14px 12px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border-radius: 8px; }
  .names-search-field { grid-column: 1 / -1; }
  .names-filters :is(input,select) { font-size: 16px; }
  .names-filters .names-filter-submit { grid-column: 1 / -1; }
  .names-results-bar { min-height: 65px; align-items: center; flex-wrap: wrap; gap: 0 10px; padding: 10px 0; }
  .names-results-bar p { font-size: 12px; }
  .names-results-bar > div { gap: 12px; }
  .names-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .names-card { min-height: 255px; padding: 15px 20px 8px; }
  .names-main .names-card h2 { margin-top: 9px; font-size: 32px; }
  .names-main .names-card-note { margin-bottom: 18px; }
  .names-editorial { grid-template-columns: 1fr; gap: 24px; margin-top: 38px; padding-top: 32px; }
  .names-main .names-editorial h2 { font-size: 28px; }
  .names-profile-hero { align-items: start; flex-direction: column; padding: 32px 0; gap: 12px; }
  .names-main .names-profile-hero h1 { font-size: 70px; overflow-wrap: anywhere; }
  .names-profile-action > p { display: none; }
  .names-profile-layout { display: flex; flex-direction: column; gap: 28px; padding-top: 30px; }
  .names-profile-aside { width: 100%; }
  .names-profile-text > section > p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .names-main *, .names-main *::before, .names-main *::after { scroll-behavior: auto !important; transition: none !important; } }

.names-main .names-origin { display: inline-block; align-self: flex-start; margin: 0 0 12px; padding: 4px 8px; border-radius: 4px; background: #eef3f5; color: #3d596a; font-size: 11px; line-height: 1.5; font-weight: 600; }
.names-profile-hero .names-origin { margin-top: 22px; }
.names-guide-entry { margin: -12px 0 22px; font-size: 14px; }
.names-guide-entry a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.names-extra-filters { grid-column: 1 / -1; border-top: 1px solid var(--names-line); }
.names-extra-filters > summary { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-top: 14px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--names-accent); list-style: none; }
.names-extra-filters > summary::-webkit-details-marker { display: none; }
.names-extra-filters > summary::after { content: '+'; margin-left: auto; font-size: 20px; font-weight: 400; }
.names-extra-filters[open] > summary::after { content: '−'; }
.names-extra-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; padding-top: 16px; }
.names-guide-layout { display: grid; grid-template-columns: minmax(0, 680px) minmax(240px,1fr); gap: 64px; }
.names-guide-links { list-style: none; margin: 0; padding: 0; }
.names-guide-links li { padding: 12px 0; border-top: 1px solid var(--names-line); }
.names-guide-links a { display: inline-flex; min-height: 44px; align-items: center; font-size: 18px; font-weight: 600; }
.names-guide-links span { display: block; color: var(--names-muted); font-size: 12px; }
.names-main .names-frequency { margin-top: 40px; padding: 26px; border: 1px solid var(--names-line); border-radius: 10px; background: #f5f7f8; }
.names-main :is(.names-frequency,.names-comparison) h2 { margin: 0 0 14px; font-size: 23px; line-height: 1.3; letter-spacing: -.025em; color: var(--names-ink); }
.names-main :is(.names-frequency,.names-comparison,.names-profile-aside) > p { max-width: 780px; color: var(--names-muted); font-size: 14px; line-height: 1.7; }
.names-comparison { margin-bottom: 32px; }
.names-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--names-line); border-radius: 8px; }
.names-table-scroll:focus-visible { outline: 3px solid #2c607e; outline-offset: 4px; }
.names-comparison table { width: 100%; min-width: 600px; border-collapse: collapse; margin: 0; }
.names-comparison :is(th,td) { text-align: left; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--names-line); font-size: 13px; line-height: 1.5; vertical-align: top; }
.names-comparison thead { background: #f3f6f7; }
.names-comparison tbody th { font-size: 16px; color: var(--names-ink); }
.names-comparison tbody tr:last-child > * { border-bottom: 0; }
.names-comparison .names-scroll-hint { display: none; font-size: 12px; }
@media (max-width: 1023px) { .names-guide-layout { grid-template-columns: minmax(0,1fr); gap: 30px; } .names-filters:has(.names-extra-filters[open]) .names-filter-submit { order: 2; grid-column: 1 / -1; } .names-extra-filters { order: 1; } }
@media (max-width: 639px) { .names-extra-fields { grid-template-columns: minmax(0,1fr); } .names-main .names-frequency { padding: 20px; } }
@media (max-width: 639px) { .names-comparison .names-scroll-hint { display: block; } .names-comparison tr > :first-child { position: sticky; left: 0; background: #fff; border-right: 1px solid var(--names-line); } .names-comparison thead tr > :first-child { background: #f3f6f7; } }
