/* KinkChart — Yes/No/Maybe Interest Inventory
   Design: dark editorial, matches KinkCodex/KinkCode aesthetic
   ================================================= */

@import url('/fonts/fonts.css');

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

:root {
  /* Core palette */
  --bg0: #0a0a0a;
  --bg1: #111111;
  --bg2: #161616;
  --bg3: #1e1e1e;
  --border: #2a2a2a;
  --border-s: #242424;
  --text: #f5f0eb;
  --muted: #a0a0a0;
  --dim: #555555;
  --red: #c0392b;
  --red-d: #96281b;
  --red-text: #d64d3e; /* accessible variant of --red for text on --bg0 (4.5:1+) */
  --red-bg: rgba(192, 57, 43, 0.12);
  --red-selected: rgba(192, 57, 43, 0.18);
  --gold: #c9a84c;
  --gold-d: rgba(201,168,76,0.45);

  /* Rating tier colors */
  --rating-hard-no:  #555555;
  --rating-pass:     #6b5b3a;
  --rating-maybe:    #c9a84c;
  --rating-yes:      #4a7c4e;
  --rating-love:     #c0392b;

  /* Typography */
  --sans: 'DM Sans', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --mono: 'DM Mono', 'Courier New', monospace;

  /* Layout */
  --max-w: 680px;
  --pad: 20px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg0);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--red-text);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--red-d); }

/* ─── HEADER (matches KinkCodex site-header exactly) ─ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
}

.topbar {
  padding: 18px 32px;
  display: flex;
  align-items: center;
}

.logo {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
  text-decoration: none;
  flex: 1;
}
.logo em { color: var(--red-text); font-style: italic; }

.tb-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.tb-nav-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.tb-nav-link:hover { color: var(--text); background: var(--bg3); }

.tb-back-btn {
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.tb-back-btn:hover { color: var(--text); background: var(--bg3); }

@media (max-width: 480px) {
  .topbar { padding: 14px 16px; }
  .logo { font-size: 17px; }
}

/* ─── PAGE WRAPPER ───────────────────────────────── */

.kc-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px var(--pad) 80px;
}

/* ─── EYEBROW LABEL ──────────────────────────────── */

.kc-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: 10px;
}

/* ─── HEADINGS ───────────────────────────────────── */

.kc-h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.kc-h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 8px;
}

.kc-lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 520px;
}

/* ─── RESUME BANNER ──────────────────────────────── */

.kc-resume-banner {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.kc-resume-banner p {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  min-width: 180px;
}
.kc-resume-banner p strong { color: var(--gold); }

.kc-resume-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ─── CATEGORY GRID ──────────────────────────────── */

.kc-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.kc-cat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.kc-cat-card:hover {
  border-color: var(--border-s);
  background: var(--bg3);
}

.kc-cat-card.selected {
  background: var(--red-selected);
  border-color: var(--red);
}

.kc-cat-card .cat-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  font-weight: 700;
}

.kc-cat-card.selected .cat-check {
  display: flex;
}

.cat-icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
  line-height: 1;
}

.cat-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.2;
}

.cat-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ─── START BUTTON ───────────────────────────────── */

.kc-start-wrap {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--bg0) 70%, transparent);
  padding: 16px 0 24px;
  margin: 0 calc(-1 * var(--pad));
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.kc-btn-primary {
  display: block;
  width: 100%;
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: -0.01em;
}
.kc-btn-primary:hover { background: var(--red-d); color: #fff; text-decoration: none; }
.kc-btn-primary:active { transform: scale(0.98); }
.kc-btn-primary:disabled {
  background: var(--bg3);
  color: var(--dim);
  cursor: not-allowed;
}

.kc-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg3);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}
.kc-btn-secondary:hover {
  background: var(--bg2);
  border-color: var(--border-s);
  color: var(--text);
}

.kc-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: none;
}
.kc-btn-ghost:hover { color: var(--text); }

/* ─── PROGRESS BAR ───────────────────────────────── */

.kc-progress-bar-wrap {
  height: 3px;
  background: var(--bg3);
  width: 100%;
  position: sticky;
  top: 61px;
  z-index: 99;
}

.kc-progress-bar {
  height: 3px;
  background: var(--red);
  transition: width 0.3s ease;
  width: 0%;
}

.kc-progress-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ─── QUIZ CARD ──────────────────────────────────── */

.kc-quiz-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Full viewport minus header + progress bar */
  min-height: calc(100vh - 64px);
  gap: 16px;
}

.kc-activity-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px 24px;
  margin-bottom: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kc-activity-cat {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-text);
}

.kc-activity-name {
  font-family: var(--serif);
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

.kc-activity-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.kc-learn-more {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  transition: color 0.15s;
}
.kc-learn-more:hover { color: var(--text); }

/* ─── RATING BUTTONS ─────────────────────────────── */

.kc-rating-wrap {
  width: 100%;
  padding: 8px 0 24px;
}

.kc-rating-inner {
  width: 100%;
}

.kc-rating-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.kc-rating-btn {
  background: var(--bg3);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
  min-height: 64px;
}

.kc-rating-btn .r-icon { font-size: 20px; line-height: 1; }
.kc-rating-btn .r-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.kc-rating-btn:hover,
.kc-rating-btn.active {
  transform: translateY(-2px);
}

.kc-rating-btn[data-rating="0"]:hover,
.kc-rating-btn[data-rating="0"].active {
  background: rgba(85,85,85,0.25);
  border-color: var(--rating-hard-no);
}
.kc-rating-btn[data-rating="1"]:hover,
.kc-rating-btn[data-rating="1"].active {
  background: rgba(107,91,58,0.25);
  border-color: var(--rating-pass);
}
.kc-rating-btn[data-rating="2"]:hover,
.kc-rating-btn[data-rating="2"].active {
  background: rgba(201,168,76,0.15);
  border-color: var(--rating-maybe);
}
.kc-rating-btn[data-rating="3"]:hover,
.kc-rating-btn[data-rating="3"].active {
  background: rgba(74,124,78,0.2);
  border-color: var(--rating-yes);
}
.kc-rating-btn[data-rating="4"]:hover,
.kc-rating-btn[data-rating="4"].active {
  background: rgba(192,57,43,0.2);
  border-color: var(--rating-love);
}

.kc-rating-btn[data-rating="0"].active .r-label { color: var(--rating-hard-no); }
.kc-rating-btn[data-rating="1"].active .r-label { color: var(--rating-pass); }
.kc-rating-btn[data-rating="2"].active .r-label { color: var(--rating-maybe); }
.kc-rating-btn[data-rating="3"].active .r-label { color: var(--rating-yes); }
.kc-rating-btn[data-rating="4"].active .r-label { color: var(--rating-love); }

/* ─── QUIZ NAV ───────────────────────────────────── */

.kc-quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kc-nav-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.kc-nav-btn:hover { background: var(--bg2); }
.kc-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.kc-save-notice {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding-top: 6px;
}

/* ─── AUTOSAVE TOAST ─────────────────────────────── */

.kc-toast {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
  z-index: 200;
}
.kc-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── RESULTS PAGE ───────────────────────────────── */

.kc-results-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.kc-summary-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--mono);
}
.kc-summary-chip .chip-num {
  font-size: 18px;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--text);
}
.kc-summary-chip .chip-label { color: var(--muted); font-size: 11px; }

/* ─── CATEGORY RESULT CARDS ──────────────────────── */

.kc-result-cats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }

.kc-result-cat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.kc-result-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.kc-result-cat-header:hover { background: var(--bg3); }

.kc-result-cat-icon { font-size: 22px; flex-shrink: 0; }
.kc-result-cat-info { flex: 1; }
.kc-result-cat-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.kc-result-bar {
  display: flex;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
  background: var(--bg3);
}
.kc-result-bar .bar-yes  { background: var(--rating-yes); }
.kc-result-bar .bar-maybe { background: var(--rating-maybe); }
.kc-result-bar .bar-no   { background: var(--rating-hard-no); }

.kc-result-cat-chevron {
  color: var(--dim);
  font-size: 16px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.kc-result-cat.open .kc-result-cat-chevron { transform: rotate(90deg); }

.kc-result-cat-list {
  display: none;
  border-top: 1px solid var(--border-s);
  padding: 4px 0 8px;
}
.kc-result-cat.open .kc-result-cat-list { display: block; }

.kc-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-s);
}
.kc-result-item:last-child { border-bottom: none; }

.kc-result-item .ri-name {
  flex: 1;
  color: var(--text);
}
.kc-result-item .ri-rating {
  font-size: 13px;
  flex: 1;
  white-space: nowrap;
  text-align: center;
}
.kc-result-item .ri-link {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s;
  flex-shrink: 0;
}
.kc-result-item .ri-link:hover { color: var(--gold); }

.kc-result-item a.ri-name {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.kc-result-item a.ri-name:hover { color: var(--gold); text-decoration: underline; }
.kc-result-item .ri-rating.r-hard-no { color: #c0392b; }
.kc-result-item .ri-rating.r-pass    { color: #e07060; }
.kc-result-item .ri-rating.r-maybe   { color: var(--rating-maybe, #f0c040); }
.kc-result-item .ri-rating.r-yes     { color: var(--rating-yes, #5cb85c); }
.kc-result-item .ri-rating.r-love    { color: #ff8c42; }

.kc-result-item:has(.r-love)     { background: rgba(255, 140, 66,  0.18); }
.kc-result-item:has(.r-yes)      { background: rgba(92,  184, 92,  0.18); }
.kc-result-item:has(.r-maybe)    { background: rgba(240, 192, 64,  0.15); }
.kc-result-item:has(.r-pass)     { background: rgba(180, 60,  60,  0.15); }
.kc-result-item:has(.r-hard-no)  { background: rgba(120, 40,  40,  0.22); }

/* ─── DEMOGRAPHICS GATE ──────────────────────────── */

.kc-demo-gate {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 32px;
}

.kc-demo-gate .gate-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.kc-demo-gate .gate-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.kc-demo-gate .gate-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

.kc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.kc-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.kc-form-field label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.kc-form-field select {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.kc-form-field select:focus {
  border-color: var(--red);
  outline: none;
}

.kc-form-full { grid-column: 1 / -1; }

.kc-skip-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
  margin-top: 12px;
  cursor: pointer;
  transition: color 0.15s;
}
.kc-skip-link:hover { color: var(--muted); }

/* ─── SHARE SECTION ──────────────────────────────── */

.kc-share-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  margin-bottom: 16px;
}

.kc-share-section h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.kc-share-section p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.kc-share-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kc-share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
  text-align: left;
}
.kc-share-btn:hover { background: var(--bg1); border-color: var(--border-s); }
.kc-share-btn .sb-icon { font-size: 18px; }
.kc-share-btn .sb-label { flex: 1; }
.kc-share-btn .sb-copied {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: none;
}
.kc-share-btn.copied .sb-copied { display: block; }

/* ─── SHARED RESULT PAGE ─────────────────────────── */

.kc-shared-header {
  text-align: center;
  padding: 32px var(--pad) 24px;
  border-bottom: 1px solid var(--border-s);
  margin-bottom: 28px;
}

.kc-shared-header .sh-name {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.kc-shared-cta {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  text-align: center;
  margin-top: 32px;
}

.kc-shared-cta p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ─── DIVIDER ────────────────────────────────────── */

.kc-divider {
  height: 1px;
  background: var(--border-s);
  margin: 24px 0;
}

/* ─── EMPTY STATE ────────────────────────────────── */

.kc-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}
.kc-empty .empty-icon { font-size: 40px; margin-bottom: 12px; }
.kc-empty p { font-size: 15px; }

/* ─── MOBILE ─────────────────────────────────────── */

@media (max-width: 480px) {
  :root { --pad: 16px; }

  .kc-cat-grid { gap: 8px; }
  .kc-cat-card { padding: 14px 12px; }
  .cat-icon { font-size: 24px; margin-bottom: 8px; }
  .cat-name { font-size: 14px; }

  .kc-rating-buttons { gap: 4px; }
  .kc-rating-btn { padding: 10px 2px; min-height: 56px; }
  .kc-rating-btn .r-icon { font-size: 18px; }

  .kc-form-grid { grid-template-columns: 1fr; }
  .kc-form-full { grid-column: 1; }

  .kc-results-summary { gap: 6px; }
}

@media (max-width: 340px) {
  .kc-cat-grid { grid-template-columns: 1fr; }
}

/* ─── KINKCODEX SEARCH PANEL OVERRIDES ──────────────
   kinkcodex.js injects a search results panel that must
   stay hidden until the user explicitly opens search.   */
.sr-panel-new:not(.open) { display: none !important; }
.sr-panel-footer { display: none; }
.sr-esc { display: none; }

/* ─── NAV DRAWER — do not override kinkcodex.css styles ─
   Ensure KinkChart pages render the nav drawer identically
   to KinkCodex pages.                                      */
.nav-drawer .dr-item.primary {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}
.nav-drawer .dr-label { display: block !important; }
.nav-drawer .dr-sub   { display: block !important; }
