/* ============================================================
   Dog Names — /dog-names/ landing page and /dog-names/<slug>/ list pages
   Tokens: ink #141414, amber #fbbf00 (site brand), gold #c99a2e + casino-red
   #b3362e (this plugin's own identity — distinct from Gift Guides' plum and
   Observances' teal, so each content type reads as its own section).
   Self-contained — no dependency on the other plugins' CSS.
   ============================================================ */

.dgn-wrap { font-family: 'Inter', system-ui, sans-serif; color: #141414; -webkit-font-smoothing: antialiased; }
.dgn-wrap a { color: inherit; }

/* ── Full-bleed hero — same escape-viewport technique as the other plugins ── */
.dgn-hero {
  position: relative; width: 100vw; max-width: 100vw; left: 50%; transform: translateX(-50%);
  box-sizing: border-box; background: #141414; color: #fff; padding: 44px 20px 40px; margin-top: 0;
}
@media (min-width: 900px) { .dgn-hero { padding-left: 48px; padding-right: 48px; } }

.dgn-crumb { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.dgn-crumb a { text-decoration: none; color: rgba(255,255,255,.72); }
.dgn-crumb a:hover { color: #fff; }

.dgn-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fbbf00; margin-bottom: 14px; }
.dgn-h1 { font-family: 'Poppins', sans-serif; font-size: clamp(26px,3.8vw,36px); font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.15; }
.dgn-rule { width: 40px; height: 3px; background: #fbbf00; border-radius: 2px; margin: 16px 0; }
.dgn-intro { font-size: 14.5px; color: rgba(255,255,255,.68); max-width: 600px; line-height: 1.6; margin: 0 0 24px; }

.dgn-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.dgn-stat b { display: block; font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 800; color: #fff; }
.dgn-stat span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.45); }

/* ── Layout (list page): main first in DOM so mobile stacks it above the
   sidebar naturally; desktop uses order to put the sidebar back on the left. ── */
.dgn-layout { display: grid; grid-template-columns: 220px 1fr; gap: 26px; padding: 28px 20px 40px; align-items: start; }
@media (min-width: 900px) { .dgn-layout { padding-left: 48px; padding-right: 48px; } }
@media (min-width: 821px) { .dgn-sidebar { order: 1; } .dgn-main { order: 2; } }
@media (max-width: 820px) { .dgn-layout { grid-template-columns: 1fr; } }

.dgn-sidebar { min-width: 0; }
.dgn-sb-card { background: #fff; border: 1px solid #EAEAE7; border-radius: 12px; padding: 16px; }
.dgn-sb-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; padding: 0; margin-bottom: 12px; cursor: default; }
.dgn-sb-head { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #585856; display: flex; align-items: center; gap: 6px; }
.dgn-sb-head:before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #c99a2e; flex-shrink: 0; }
.dgn-sb-chevron { display: none; }
.dgn-sb-body { display: block; }
@media (max-width: 820px) {
  .dgn-sb-toggle { cursor: pointer; margin-bottom: 0; }
  .dgn-sb-chevron { display: block; color: #585856; transition: transform .15s; flex-shrink: 0; }
  .dgn-sb-card.is-open .dgn-sb-chevron { transform: rotate(180deg); }
  .dgn-sb-body { display: none; margin-top: 12px; }
  .dgn-sb-card.is-open .dgn-sb-body { display: block; }
}
/* Search + a capped, scrollable row list — with hundreds of lists, showing
   every one unbounded made the sidebar absurdly long. ~10 rows visible
   (34px each), the rest reachable by scrolling inside this box, or found
   instantly by typing. */
.dgn-sb-search {
  width: 100%; box-sizing: border-box; padding: 8px 10px; margin-bottom: 8px;
  border: 1px solid #EAEAE7; border-radius: 8px; font-size: 12.5px; font-family: 'Inter', sans-serif;
}
.dgn-sb-search:focus { outline: none; border-color: #c99a2e; }
.dgn-sb-rows { max-height: 340px; overflow-y: auto; }
.dgn-sb-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; padding: 8px 0; border-top: 1px solid #EAEAE7; text-decoration: none; color: #141414; }
.dgn-sb-row:first-of-type { border-top: none; padding-top: 0; }
.dgn-sb-row.is-active { color: #8a6a1f; }
.dgn-sb-n { font-size: 10.5px; font-weight: 700; color: #585856; background: #F7EFDC; padding: 2px 7px; border-radius: 100px; flex-shrink: 0; }
.dgn-sb-row.is-active .dgn-sb-n { background: #c99a2e; color: #fff; }
.dgn-sb-no-results { font-size: 12px; color: #8A8A87; padding: 10px 0 2px; margin: 0; }

.dgn-main { min-width: 0; }
.dgn-empty { color: #8A8A87; font-size: 14px; padding: 0 20px; }
@media (min-width: 900px) { .dgn-empty { padding-left: 48px; padding-right: 48px; } }

/* ── Name card grid ── */
.dgn-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
@media (max-width: 820px) { .dgn-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } }

.dgn-card { position: relative; border: 1px solid #EAEAE7; border-radius: 12px; padding: 16px 14px; text-align: center; background: #fff; min-width: 0; }

.dgn-card-topleft { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.dgn-card-badge { background: #c99a2e; color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 100px; }
.dgn-card-appears-badge { display: flex; align-items: center; gap: 3px; background: #F7EFDC; color: #8a6a1f; border: none; border-radius: 100px; padding: 4px 9px 4px 7px; font-size: 10px; font-weight: 800; cursor: pointer; }
.dgn-card-appears-badge svg { width: 10px; height: 10px; }
.dgn-card-appears-badge:hover { background: #c99a2e; color: #fff; }

.dgn-card-topright { position: absolute; top: 6px; right: 4px; display: flex; align-items: center; }
.dgn-card-info { background: none; border: none; color: #C7C5BE; cursor: pointer; padding: 4px; line-height: 1; }
.dgn-card-info svg { width: 15px; height: 15px; display: block; }
.dgn-card-info:hover { color: #8a6a1f; }
.dgn-heart { background: none; border: none; font-size: 16px; color: #ddd; cursor: pointer; padding: 4px; line-height: 1; }
.dgn-heart.is-saved { color: #b3362e; }
.dgn-card-name { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 800; color: #141414; margin: 10px 0 3px; overflow-wrap: break-word; }
.dgn-card-gender { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a6a1f; text-decoration: none; }
.dgn-card-gender:hover { text-decoration: underline; }

/* ── Landing page: lists grid ── */
.dgn-landing-body { padding: 32px 20px 60px; }
@media (min-width: 900px) { .dgn-landing-body { padding-left: 48px; padding-right: 48px; } }
.dgn-section-head { font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 800; margin: 0 0 16px; }

.dgn-list-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 8px; }
@media (max-width: 820px) { .dgn-list-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .dgn-list-grid { grid-template-columns: minmax(0,1fr); } }

.dgn-list-card { display: flex; flex-direction: column; border: 1px solid #EAEAE7; border-radius: 14px; overflow: hidden; background: #fff; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.dgn-list-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.1); transform: translateY(-2px); }
.dgn-list-card-art { height: 76px; }
.dgn-list-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; }
.dgn-list-card-name { font-family: 'Poppins', sans-serif; font-size: 14.5px; font-weight: 800; color: #141414; }
.dgn-list-card-intro { font-size: 11.5px; color: #585856; line-height: 1.5; }
.dgn-list-card-count { font-size: 10.5px; font-weight: 700; color: #8a6a1f; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

/* ── A-Z nav — shared by the landing page and every letter page (see
   dgn_render_az_nav()), so both always show the identical bar. The active
   letter (or "All") is filled solid rather than just tinted. ── */
.dgn-az-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.dgn-az-letter { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; background: #F7EFDC; color: #8a6a1f; font-size: 12.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.dgn-az-letter.is-muted { background: #F5F3EE; color: #C7C5BE; }
.dgn-az-letter.is-active { background: #c99a2e; color: #fff; }
.dgn-az-all { font-family: 'Poppins', sans-serif; }

.dgn-see-more { font-size: 12.5px; color: #585856; margin-top: 14px; }

/* ── Name card footer: gender link + "Appears In" trigger ── */

/* ── "Appears In" popup — same overlay/modal pattern as the shortlist ── */
.dgn-appears-overlay { position: fixed; inset: 0; z-index: 9998; background: rgba(20,20,20,.6); display: none; align-items: center; justify-content: center; padding: 20px; }
.dgn-appears-overlay.show { display: flex; }
.dgn-appears-modal { width: 100%; max-width: 380px; background: #fff; border-radius: 16px; padding: 26px 22px; position: relative; max-height: 80vh; overflow-y: auto; }
.dgn-appears-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: #F5F3EE; border: none; font-size: 18px; cursor: pointer; }
.dgn-appears-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a6a1f; margin-bottom: 6px; }
.dgn-appears-h2 { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 800; margin: 0 0 16px; }
.dgn-appears-list { display: flex; flex-direction: column; }
.dgn-appears-row { display: block; padding: 12px 4px; font-size: 13.5px; font-weight: 700; color: #141414; text-decoration: none; border-top: 1px solid #EAEAE7; }
.dgn-appears-row:first-child { border-top: none; }
.dgn-appears-row:hover { color: #8a6a1f; }

/* ── Name meaning popup (info icon on each card) — same pattern again ── */
.dgn-info-overlay { position: fixed; inset: 0; z-index: 9998; background: rgba(20,20,20,.6); display: none; align-items: center; justify-content: center; padding: 20px; }
.dgn-info-overlay.show { display: flex; }
.dgn-info-modal { width: 100%; max-width: 360px; background: #fff; border-radius: 16px; padding: 26px 22px; position: relative; max-height: 80vh; overflow-y: auto; }
.dgn-info-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: #F5F3EE; border: none; font-size: 18px; cursor: pointer; }
.dgn-info-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a6a1f; margin-bottom: 6px; }
.dgn-info-h2 { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 800; margin: 0 0 12px; }
.dgn-info-text { font-size: 13.5px; color: #585856; line-height: 1.55; margin: 0; }

/* ── Landing page: browse by gender ── */
.dgn-gender-rail { display: flex; gap: 12px; margin-bottom: 8px; }
@media (max-width: 560px) { .dgn-gender-rail { flex-direction: column; } }
.dgn-gender-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 14px; border: 1px solid #EAEAE7; border-radius: 12px; text-decoration: none; color: #141414; background: #fff; transition: border-color .15s, transform .15s; }
.dgn-gender-item:hover { border-color: #c99a2e; transform: translateY(-2px); }
.dgn-gender-ic { width: 38px; height: 38px; }
.dgn-gender-name { font-family: 'Poppins', sans-serif; font-size: 13.5px; font-weight: 800; }
.dgn-gender-n { font-size: 11px; color: #585856; font-weight: 600; }

/* ── FAQ (same pattern as the other plugins) ── */
.dgn-faq { max-width: 760px; margin: 40px auto 0; padding-top: 32px; border-top: 1px solid #EAEAE7; }
.dgn-faq-head { font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 800; margin: 0 0 16px; }
.dgn-faq-list { display: flex; flex-direction: column; }
.dgn-faq-item { border-bottom: 1px solid #EAEAE7; }
.dgn-faq-item:first-child { border-top: 1px solid #EAEAE7; }
.dgn-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: none; text-align: left; cursor: pointer; padding: 16px 4px; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700; color: #141414; }
.dgn-faq-chevron { flex-shrink: 0; font-size: 16px; font-weight: 400; color: #c99a2e; transition: transform .15s; }
.dgn-faq-item.is-open .dgn-faq-chevron { transform: rotate(45deg); }
.dgn-faq-a { display: none; padding: 0 4px 16px; }
.dgn-faq-item.is-open .dgn-faq-a { display: block; }
.dgn-faq-a p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #585856; }

/* ── Slot machine — trigger bar opens the machine in a popup, same modal
   pattern as the shortlist, rather than expanding in place. ── */
.dgn-slot-collapsed { padding: 0 20px; }
@media (min-width: 900px) { .dgn-slot-collapsed { padding-left: 48px; padding-right: 48px; } }
.dgn-slot-reveal {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  background: #F7EFDC; border: 1px solid #e8dcc0; border-radius: 12px; padding: 16px 18px;
  cursor: pointer; font-size: 13px; color: #141414; font-family: 'Inter', sans-serif;
}
.dgn-slot-reveal:hover { background: #f2e6c8; }
.dgn-slot-reveal-ic { font-size: 22px; flex-shrink: 0; }
.dgn-slot-reveal b { font-family: 'Poppins', sans-serif; display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 1px; }

.dgn-slot-overlay {
  position: fixed; inset: 0; z-index: 9998; background: rgba(20,20,20,.72);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.dgn-slot-overlay.show { display: flex; }
.dgn-slot-modal {
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  background: #141414; border-radius: 20px; padding: 36px 24px 40px; text-align: center;
  position: relative; overflow-x: hidden;
}
.dgn-slot-modal:before { content: ''; position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 20% 20%, rgba(201,154,46,.18), transparent 50%), radial-gradient(circle at 80% 80%, rgba(179,54,46,.15), transparent 50%); }
.dgn-slot-modal > * { position: relative; z-index: 1; }
.dgn-slot-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; border: none; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.dgn-slot-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fbbf00; margin-bottom: 8px; }
.dgn-slot-h2 { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.dgn-slot-sub { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 24px; }

.dgn-machine { display: inline-block; background: linear-gradient(160deg,#3a3a3a,#181818); border-radius: 18px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.06); }
.dgn-reels { display: flex; gap: 8px; background: #0a0a0a; border-radius: 10px; padding: 14px; margin-bottom: 18px; border: 3px solid #c99a2e; }
.dgn-reel { width: 88px; height: 64px; background: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dgn-reel-inner { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 800; color: #141414; }

.dgn-spin-btn { background: #b3362e; color: #fff; border: none; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 14px 34px; border-radius: 10px; cursor: pointer; box-shadow: 0 6px 0 #7a231d; }
.dgn-spin-btn:active { box-shadow: 0 2px 0 #7a231d; transform: translateY(4px); }
.dgn-spin-btn:disabled { opacity: .5; cursor: default; box-shadow: none; transform: none; }

.dgn-slot-result { display: none; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.dgn-slot-result.show { display: block; }
.dgn-slot-result-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fbbf00; margin-bottom: 6px; }
.dgn-slot-result-name { font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.dgn-slot-result-meaning { font-size: 12.5px; color: rgba(255,255,255,.6); max-width: 380px; margin: 0 auto 16px; line-height: 1.5; }
.dgn-slot-result-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.dgn-slot-result-btn { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 9px 16px; border-radius: 8px; cursor: pointer; }
.dgn-slot-result-btn.primary { background: #fbbf00; color: #141414; border-color: #fbbf00; }

/* ── Shortlist ── */
.dgn-shortlist-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 500;
  background: #141414; color: #fff; border: none; border-radius: 100px;
  padding: 12px 18px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px;
  cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.dgn-shortlist-overlay { position: fixed; inset: 0; z-index: 9998; background: rgba(20,20,20,.6); display: none; align-items: center; justify-content: center; padding: 20px; }
.dgn-shortlist-overlay.show { display: flex; }
.dgn-shortlist-modal { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 26px 22px; position: relative; max-height: 80vh; overflow-y: auto; }
.dgn-shortlist-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: #F5F3EE; border: none; font-size: 18px; cursor: pointer; }
.dgn-shortlist-h2 { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 800; margin: 0 0 16px; }
.dgn-shortlist-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid #EAEAE7; }
.dgn-shortlist-row:first-child { border-top: none; }
.dgn-shortlist-row-name { font-family: 'Poppins', sans-serif; font-size: 13.5px; font-weight: 700; }
.dgn-shortlist-row-meaning { font-size: 11px; color: #585856; }
.dgn-shortlist-empty { font-size: 13px; color: #8A8A87; }
