@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/roboto-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/roboto-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/roboto-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/montserrat-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/montserrat-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/montserrat-800.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg-main: #0B0C0F;
  --bg-card: #121419;
  --bg-card-hover: #171A20;
  --bg-elevated: #1A1D23;
  --bg-input: #101216;

  --border-color: #23262D;
  --border-hover: #313640;
  --border-focus: #C4E230;

  --text-main: #E9EBEF;
  --text-muted: #A2A9B4;
  --text-dim: #6E7682;

  --accent-primary: #C4E230;
  --accent-primary-hover: #D2EE4C;
  --accent-soft: rgba(196, 226, 48, 0.12);
  --accent-border: rgba(196, 226, 48, 0.35);
  --accent-contrast: #10140A;
  --accent-rose: #F87171;
  --accent-amber: #FBBF24;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
  line-height: 1.6;
}

.site-main {
  flex: 1;
  padding: 2.25rem 0 4.5rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text-main);
}

.gradient-text {
  color: var(--text-main);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #2A2E36;
  border-radius: 6px;
  border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
  background: #3A404A;
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.glass-card:hover {
  border-color: var(--border-hover);
}

.glass-nav {
  background: rgba(11, 12, 15, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--accent-contrast);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.prose {
  width: 100%;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.prose > * + * {
  margin-top: 1.05rem;
}

.prose h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2.5rem;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.075rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 1.75rem;
}

.prose h2 + p,
.prose h3 + p {
  margin-top: 0.75rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose strong {
  color: var(--text-main);
  font-weight: 600;
}

.prose a {
  color: var(--accent-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-border);
}

.prose a:hover {
  border-bottom-color: var(--accent-primary);
}

.prose ul,
.prose ol {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.prose li {
  position: relative;
  padding-left: 1.4rem;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.prose ol {
  counter-reset: prose-counter;
}

.prose ol > li {
  counter-increment: prose-counter;
  padding-left: 1.75rem;
}

.prose ol > li::before {
  content: counter(prose-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  color: var(--text-main);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}

.prose blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.45rem 1.55rem;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid rgba(197, 247, 30, 0.7);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.prose blockquote strong {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.16rem 0.48rem;
  color: #10140a;
  background: var(--accent-primary);
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.note-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
}

.note-card h3 {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 0.35rem 0;
}

.note-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.section-heading {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.page-hero {
  max-width: 760px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0.9rem 0 0.85rem 0;
}

.page-hero p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.generator-feature-image {
  width: 100%;
  max-width: 100%;
  margin: 1.75rem 0 2.25rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-elevated);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.generator-feature-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.names-grid,
.support-sections {
  contain: layout;
}

.prose .generator-feature-image + h2 {
  margin-top: 2rem;
}

.support-sections {
  width: 100%;
  max-width: 760px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.breadcrumbs {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--text-main);
}

.breadcrumbs span[aria-current] {
  color: var(--text-dim);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.18s ease-out forwards;
}

.spin-icon {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

button {
  font-family: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto;
  }
}

.generator-card {
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}

.generator-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.generator-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.generator-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .generator-card {
    padding: 1.25rem;
  }
  .generator-search-row {
    grid-template-columns: 1fr;
  }
  .generator-search-row > button {
    width: 100%;
    justify-content: center;
    padding: 13px 0 !important;
  }
  .generator-controls-grid {
    grid-template-columns: 1fr;
  }
  .generator-header-row {
    flex-direction: column;
    align-items: stretch;
  }
  .generator-header-row > div {
    width: 100%;
    justify-content: space-between;
  }
  .generator-header-row .filter-input-wrapper {
    width: 100% !important;
  }
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

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

body {
  overflow-x: hidden;
}

input,
button,
select,
textarea {
  font-family: inherit;
  max-width: 100%;
}

@media (max-width: 900px) {
  .prose {
    font-size: 0.975rem;
  }
  .note-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 15.5px;
  }
  .page-hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }
  .prose h2 {
    font-size: 1.2rem;
    margin-top: 2rem;
  }
  .prose blockquote {
    padding: 1.2rem 1.1rem;
    font-size: 0.95rem;
  }
  .glass-card {
    border-radius: 12px;
  }
  .generator-feature-image {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
  }
  .chip-current {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

@media (max-width: 380px) {
  .badge {
    font-size: 0.72rem;
  }
}

/* Generator */
  .control-label {
    display: block;
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .generate-btn {
    padding: 0 1.75rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .chip-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
  }

  .chip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .chip:hover {
    border-color: var(--border-hover);
    color: var(--text-main);
  }

  .chip[aria-pressed='true'] {
    border-color: var(--accent-primary);
    background: var(--accent-soft);
    color: var(--accent-primary);
  }

  .count-btn {
    flex: 1;
    min-height: 40px;
    padding: 6px 0;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-muted);
    cursor: pointer;
  }

  .count-btn[aria-pressed='true'] {
    border-color: var(--accent-primary);
    background: var(--accent-soft);
    color: var(--accent-primary);
  }

  .toggle-group {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    cursor: pointer;
    transition: border-color 0.15s ease;
  }

  .toggle-row:hover,
  .toggle-row:has(input:checked) {
    border-color: var(--accent-primary);
  }

  .toggle-row input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    accent-color: var(--accent-primary);
    cursor: pointer;
  }

  .toggle-text {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-main);
  }

  .toggle-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
  }

  .shuffle-btn,
  .saved-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .shuffle-btn:hover,
  .saved-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-main);
  }

  .names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
    min-height: 380px;
  }

  .name-card {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .name-card.is-copied {
    border-color: var(--accent-primary);
    background: var(--accent-soft);
  }

  .name-text {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--text-main);
    word-break: break-word;
  }

  .name-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .name-save {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1;
    padding: 4px 6px;
    cursor: pointer;
  }

  .name-save.is-saved {
    color: var(--accent-rose);
  }

  .name-copy {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.775rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .name-copy:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
  }

  .names-empty {
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
  }

  .reset-btn {
    margin-top: 1rem;
    padding: 8px 18px;
    font-size: 0.875rem;
  }

  .toast {
    position: fixed;
    bottom: 120px;
    right: 24px;
    z-index: 999999;
    background: var(--bg-elevated);
    border: 1px solid var(--accent-primary);
    color: var(--text-main);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 1.05rem;
  }

  .saved-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }

  .saved-modal[hidden] {
    display: none;
  }

  .saved-panel {
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
  }

  .saved-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
  }

  .saved-head .saved-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
  }

  .saved-head button {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
  }

  .saved-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
  }

  .saved-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2.5rem 1rem;
  }

  .saved-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
  }

  .saved-row span {
    font-weight: 700;
    color: var(--text-main);
    word-break: break-word;
  }

  .saved-row button {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 10px;
    cursor: pointer;
  }

  .saved-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
  }

  .saved-actions button {
    flex: 1;
    padding: 9px;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
  }

  .clear-all {
    flex: 0 0 auto;
    color: var(--accent-rose);
    padding: 9px 14px;
  }

  @media (max-width: 640px) {
    .chip-row {
      grid-template-columns: 1fr 1fr;
    }
    .chip {
      font-size: 0.8rem;
    }
    .chip-wide {
      grid-column: 1 / -1;
    }
    .toggle-text {
      font-size: 0.8rem;
    }
    .toggle-text span {
      display: block;
    }
    .generator input[type='text'],
    .generator input[type='search'],
    .generator select {
      font-size: 16px !important;
    }
    .names-grid {
      grid-template-columns: 1fr;
    }
    .saved-panel {
      padding: 1.25rem;
    }
  }
/* FAQ */
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.18s ease;
  }

  .faq-item[open] {
    border-color: var(--border-hover);
  }

  .faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.3rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    background: var(--bg-elevated);
  }

  .faq-item summary::-webkit-details-marker {
    display: none;
  }
  .faq-item summary::marker {
    content: '';
  }

  .faq-item summary:hover {
    color: var(--text-main);
  }

  .faq-item summary:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
  }

  .faq-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-primary);
  }

  .faq-answer {
    padding: 1rem 1.3rem 1.35rem 1.3rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.935rem;
    line-height: 1.75;
  }
/* Footer */
  .footer-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2.5rem;
    margin-bottom: 3rem;
  }

  .footer-section {
    flex: 1;
  }

  .footer-section.brand-section {
    flex: 1.3;
  }

  @media (max-width: 860px) {
    .footer-grid {
      flex-direction: column;
      gap: 2.5rem;
    }

    .footer-section {
      width: 100%;
    }
  }

  .footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
  }
  .footer-link:hover {
    color: var(--text-main);
  }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; }
.header-bar { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-icon { width: 34px; height: 34px; border-radius: 8px; display: block; }
.brand-name { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); display: block; line-height: 1.15; }
.brand-tag { display: block; font-size: 0.68rem; color: var(--text-dim); font-weight: 500; letter-spacing: 0.02em; }
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 14px; border-radius: var(--radius-md); font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--text-muted); background: transparent; border: none; transition: color 0.15s ease, background-color 0.15s ease; }
.nav-link:hover, .nav-link.is-active { background: var(--bg-elevated); color: var(--text-main); }
.nav-more { cursor: pointer; display: flex; align-items: center; gap: 6px; font-family: inherit; }
.dropdown-container { position: relative; }
.dropdown-menu { display: none; position: absolute; right: 0; top: 110%; min-width: 250px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 6px; box-shadow: var(--shadow-lg); z-index: 200; }
.dropdown-container:hover .dropdown-menu { display: block !important; }
.dropdown-link { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; text-decoration: none; display: block; color: var(--text-muted); transition: background 0.15s; }
.dropdown-link:hover { background: var(--bg-elevated); color: var(--text-main); }
.dropdown-link.is-active { background: var(--bg-elevated); color: var(--accent-primary); }
.mobile-menu-btn { display: none; background: var(--bg-elevated); border: 1px solid var(--border-color); color: var(--text-main); padding: 8px 12px; border-radius: var(--radius-md); cursor: pointer; }
.mobile-drawer { display: none; background: var(--bg-card); border-top: 1px solid var(--border-color); padding: 1rem 1.25rem; flex-direction: column; gap: 8px; }
.mobile-link { padding: 10px 14px; border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 600; text-decoration: none; display: block; color: var(--text-muted); background: var(--bg-input); border: 1px solid var(--border-color); }
.mobile-link.is-active { background: var(--bg-elevated); color: var(--text-main); border-color: var(--border-hover); }
.mobile-nested { margin-top: 4px; border-top: 1px solid var(--border-color); padding-top: 8px; }
.mobile-nested-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bg-elevated); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-main); font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: inherit; }
#nestedChevronIcon { transition: transform 0.2s; }
.mobile-submenu { display: none; flex-direction: column; gap: 6px; padding: 8px 0 0 12px; margin-top: 6px; border-left: 2px solid var(--border-color); }
.mobile-sublink { padding: 9px 12px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; text-decoration: none; display: block; color: var(--text-muted); background: var(--bg-card); }
.mobile-sublink.is-active { background: var(--bg-elevated); color: var(--accent-primary); }
@media (max-width: 980px) {
  .desktop-nav { display: none !important; }
  .mobile-menu-btn { display: flex !important; align-items: center; justify-content: center; }
}

/* Footer layout */
.site-footer { margin-top: auto; border-top: 1px solid var(--border-color); background: var(--bg-main); padding: 3.5rem 0 2rem 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-icon { width: 30px; height: 30px; border-radius: 7px; display: block; }
.footer-brand-name { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text-main); }
.footer-about { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; max-width: 320px; }
.footer-about .footer-link { text-decoration: underline; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-heading { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--text-main); margin: 0 0 1.2rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 1.5rem; text-align: center; font-size: 0.825rem; color: var(--text-dim); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }

/* Generator controls (formerly inline styles) */
.seed-wrap { position: relative; }
.seed-input { width: 100%; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-main); padding: 14px 44px 14px 18px; font-size: 0.975rem; outline: none; }
.seed-clear { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; font-weight: 700; padding: 4px; }
.category-block { margin-bottom: 1.5rem; }
.decoration-select { width: 100%; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-main); padding: 8px 12px; font-size: 0.85rem; outline: none; }
.count-row { display: flex; gap: 6px; }
.results-title-row, .results-tools { display: flex; align-items: center; gap: 12px; }
.results-title { font-size: 1.35rem; font-weight: 600; color: var(--text-main); }
.filter-input-wrapper { position: relative; width: 220px; }
.filter-input { width: 100%; background: var(--bg-elevated); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 8px 14px; font-size: 0.825rem; color: var(--text-main); outline: none; }
.page-article { margin-top: 4rem; }
.not-found-cta { margin-top: 1.5rem; }
.not-found-btn { display: inline-block; padding: 12px 24px; font-weight: 600; text-decoration: none; }

/* Article tables */
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 0.65rem 0.9rem; border: 1px solid var(--border-color); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-elevated); color: var(--text-main); font-weight: 600; white-space: nowrap; }
.prose td { color: var(--text-muted); }


/* Article rhythm: even spacing for every block, even inside wrapper elements. */
.prose :is(p, ul, ol, table, pre) {
  margin-top: 0;
  margin-bottom: 1.15rem;
}
.prose li > :is(p, ul, ol) {
  margin-bottom: 0.4rem;
}
.prose :is(ul, ol) {
  gap: 0.75rem;
}
.prose h2 {
  margin-top: 2.6rem;
  margin-bottom: 0.9rem;
}
.prose h3 {
  margin-top: 1.9rem;
  margin-bottom: 0.65rem;
}
.prose :is(h2, h3) + :is(p, ul, ol, table) {
  margin-top: 0;
}
.prose > :first-child,
.prose > div:first-child > :first-child {
  margin-top: 0;
}
.prose > :last-child,
.prose > div:last-child > :last-child {
  margin-bottom: 0;
}
.prose :is(blockquote, li, td, th) > :last-child {
  margin-bottom: 0;
}
