/**
 * Professional Tab: "The Vintage Field / Inventor's Leather Journal" Stylesheet
 * Hand-stitched leather bound notebook, deckled parchment pages, 3D page flip physics,
 * brass hardware accents, hanging ribbon bookmarks, and authentic paper aesthetics.
 */

:root {
  --desk-bg: #0b0c0f;
  --desk-wood: #131419;
  
  --leather-base: #1c1512;
  --leather-edge: #120e0c;
  --leather-stitch: #4a382a;
  --leather-shadow: rgba(0, 0, 0, 0.75);
  
  --paper-bg: #f5f0e3;
  --paper-bg-warm: #ece5d3;
  --paper-line: rgba(140, 110, 80, 0.08);
  --paper-edge: #dfd5be;
  
  --ink-primary: #1e1b18;
  --ink-secondary: #4a453f;
  --ink-muted: #7c7469;
  --ink-faint: #a89f92;
  
  --brass: #c59b27;
  --brass-dark: #8b6b14;
  --brass-highlight: #f1cf68;
  
  --wax-red: #8f2d22;
  --seal-gold: #c9933b;
  
  --ribbon-1: #942923; /* Crimson - Prologue */
  --ribbon-2: #b57614; /* Amber - Toolbelt */
  --ribbon-3: #2b593f; /* Forest - Inventions I */
  --ribbon-4: #1d3b53; /* Navy - Inventions II */
  --ribbon-5: #5c4738; /* Walnut - Field Log */
  --ribbon-6: #8a3324; /* Terracotta - Correspondence */

  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'DM Mono', monospace;
}

[data-theme="light"] {
  --desk-bg: #e8e3d8;
  --desk-wood: #dfd8cc;
  --leather-base: #2c221d;
  --leather-edge: #1a1411;
  --leather-stitch: #6e5542;
  --leather-shadow: rgba(0, 0, 0, 0.35);
}

/* ── 1. DESK ENVIRONMENT & AMBIENCE ────────────────────────── */
body {
  background-color: var(--desk-bg);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Workbench Surface */
.desk-surface {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 70%),
    linear-gradient(to bottom, var(--desk-wood) 0%, var(--desk-bg) 100%);
  pointer-events: none;
  z-index: 0;
}

.book-app-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 5.5rem;
}

/* ── 2. TOP WORKBENCH HEADER ───────────────────────────────── */
#nav {
  position: sticky;
  top: 0;
  width: 100%;
  height: 58px;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(14, 15, 19, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] #nav {
  background: rgba(232, 227, 216, 0.88);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nl {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}

[data-theme="light"] .nl { color: #1a1411; }

.nl em {
  font-style: normal;
  color: var(--brass-highlight);
}

.journal-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--brass);
  background: rgba(197, 155, 39, 0.1);
  border: 1px solid rgba(197, 155, 39, 0.3);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── 3. BOOK STAGE & 3D JOURNAL CASING ─────────────────────── */
.book-stage-container {
  max-width: 1220px;
  margin: 2.2rem auto 2rem;
  padding: 0 1.5rem;
  perspective: 2200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Outer Leather Binder */
.leather-journal-casing {
  position: relative;
  width: 100%;
  max-width: 1120px;
  background: var(--leather-base);
  border-radius: 12px;
  padding: 18px 22px 22px;
  box-shadow: 
    0 30px 80px var(--leather-shadow),
    0 12px 30px rgba(0, 0, 0, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.08),
    inset 0 -3px 8px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hand-stitched perimeter thread */
.leather-journal-casing::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1.5px dashed var(--leather-stitch);
  border-radius: 8px;
  pointer-events: none;
  opacity: 0.65;
}

/* Vintage Brass Corner Protectors */
.brass-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--brass);
  pointer-events: none;
  z-index: 10;
}

.brass-corner::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--brass);
  border-radius: 50%;
}

.brass-corner.top-left {
  top: 4px; left: 4px;
  border-right: none; border-bottom: none;
  border-top-left-radius: 8px;
}
.brass-corner.top-left::after { top: 3px; left: 3px; }

.brass-corner.top-right {
  top: 4px; right: 4px;
  border-left: none; border-bottom: none;
  border-top-right-radius: 8px;
}
.brass-corner.top-right::after { top: 3px; right: 3px; }

.brass-corner.bottom-left {
  bottom: 4px; left: 4px;
  border-right: none; border-top: none;
  border-bottom-left-radius: 8px;
}
.brass-corner.bottom-left::after { bottom: 3px; left: 3px; }

.brass-corner.bottom-right {
  bottom: 4px; right: 4px;
  border-left: none; border-top: none;
  border-bottom-right-radius: 8px;
}
.brass-corner.bottom-right::after { bottom: 3px; right: 3px; }

/* ── 4. RIBBON BOOKMARK TABS (INSTANT CHAPTER NAVIGATION) ─── */
.bookmark-ribbon-rack {
  position: absolute;
  top: -24px;
  right: 48px;
  display: flex;
  gap: 12px;
  z-index: 50;
}

@media (max-width: 768px) {
  .bookmark-ribbon-rack {
    right: 18px;
    gap: 6px;
    top: -20px;
  }
}

.ribbon-tab {
  position: relative;
  background: var(--ribbon-1);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 6px 12px 14px;
  text-decoration: none;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, padding 0.15s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Ribbon V-Cut Notch Bottom */
.ribbon-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 calc(50%) 6px calc(50%);
  border-color: transparent transparent var(--leather-base) transparent;
}

.ribbon-tab:hover {
  transform: translateY(-4px);
  padding-bottom: 18px;
}

.ribbon-tab.active {
  transform: translateY(-6px);
  padding-bottom: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
  font-weight: 600;
}

.ribbon-tab:nth-child(1) { background: var(--ribbon-1); }
.ribbon-tab:nth-child(2) { background: var(--ribbon-2); }
.ribbon-tab:nth-child(3) { background: var(--ribbon-3); }
.ribbon-tab:nth-child(4) { background: var(--ribbon-4); }
.ribbon-tab:nth-child(5) { background: var(--ribbon-5); }
.ribbon-tab:nth-child(6) { background: var(--ribbon-6); }

/* ── 5. OPEN TWO-PAGE SPREAD ───────────────────────────────── */
.book-spread-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper-bg);
  border-radius: 6px;
  min-height: 720px;
  position: relative;
  box-shadow: 
    inset 0 0 40px rgba(120, 95, 65, 0.2),
    0 10px 25px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

@media (max-width: 860px) {
  .book-spread-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

/* Center Binding Crease & Gutter Shadow */
.book-spread-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 32px;
  transform: translateX(-50%);
  background: linear-gradient(to right, 
    rgba(0, 0, 0, 0) 0%, 
    rgba(0, 0, 0, 0.16) 42%, 
    rgba(0, 0, 0, 0.35) 50%, 
    rgba(0, 0, 0, 0.16) 58%, 
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 25;
}

@media (max-width: 860px) {
  .book-spread-container::before { display: none; }
}

/* Faint Paper Rules */
.book-page-leaf {
  position: relative;
  padding: 3.2rem 3rem 4rem;
  background-image: repeating-linear-gradient(to bottom, transparent, transparent 27px, var(--paper-line) 28px);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.book-page-leaf.left-page {
  border-right: 1px solid var(--paper-edge);
}

.book-page-leaf.right-page {
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 860px) {
  .book-page-leaf {
    padding: 2.2rem 1.6rem 3rem;
  }
  .book-page-leaf.left-page {
    border-right: none;
    border-bottom: 2px solid var(--paper-edge);
  }
}

/* Page Running Header */
.page-running-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Page Running Footer & Number */
.page-running-foot {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.page-num {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  color: var(--ink-secondary);
}

/* Corner Clickable Curl indicator */
.corner-peel {
  position: absolute;
  bottom: 0;
  width: 38px;
  height: 38px;
  cursor: pointer;
  z-index: 30;
  transition: transform 0.15s ease;
}

.corner-peel.right {
  right: 0;
  background: linear-gradient(135deg, transparent 50%, var(--paper-edge) 50%, var(--paper-bg-warm) 100%);
  border-top-left-radius: 4px;
}

.corner-peel.left {
  left: 0;
  background: linear-gradient(225deg, transparent 50%, var(--paper-edge) 50%, var(--paper-bg-warm) 100%);
  border-top-right-radius: 4px;
}

.corner-peel:hover {
  transform: scale(1.18);
}

/* ── 6. SPREAD CHAPTER CONTENT STYLES ──────────────────────── */

/* Spread Chapters Container - Only active spread is shown */
.spread-chapter {
  display: none;
  width: 100%;
}

.spread-chapter.active {
  display: contents;
}

/* Typography Inside Pages */
.p-chapter-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brass-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.4rem;
}

.p-title-main {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink-primary);
  margin-bottom: 1rem;
}

.p-title-main em {
  font-style: italic;
  color: var(--brass-dark);
}

.p-lead-text {
  font-size: 0.94rem;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* Wax Seal & Frontispiece */
.frontispiece-box {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 1.2rem;
  margin: 1.2rem 0;
  position: relative;
}

.wax-seal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wax-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.8rem;
  letter-spacing: 0.04em;
}

/* Metric Parchment Badges */
.p-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.p-metric-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--brass);
}

.p-metric-val {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.p-metric-val em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-weight: 400;
}

.p-metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-secondary);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* Action Buttons (Ink & Parchment Styling) */
.p-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.p-btn-dark {
  background: var(--ink-primary);
  color: #fff;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.6rem 1.1rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.p-btn-dark:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.p-btn-outline {
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink-primary);
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.55rem 0.95rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.p-btn-outline:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.p-btn-outline.copied {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #81c784;
}

/* Toolbelt Clusters */
.p-skill-cluster {
  margin-bottom: 1.2rem;
}

.p-skill-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brass-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 0.6rem;
}

.p-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.p-chip {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-secondary);
  padding: 4px 8px;
  border-radius: 3px;
}

/* Project Entry on Parchment */
.p-project-entry {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 4px;
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.p-project-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.p-project-id {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--brass-dark);
  text-transform: uppercase;
}

.p-project-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 0.35rem;
}

.p-project-body {
  font-size: 0.86rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

/* Diagram Flow on Paper */
.paper-flow-diagram {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  padding: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-primary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.6rem 0;
}

.p-flow-node {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 3px 7px;
  border-radius: 2px;
}

.p-flow-arrow {
  color: var(--ink-muted);
}

/* Timeline & Log Items */
.p-timeline-item {
  position: relative;
  border-left: 2px solid var(--brass);
  padding-left: 1rem;
  margin-bottom: 1.2rem;
}

.p-time-year {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--brass-dark);
  font-weight: 600;
}

.p-time-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin: 0.2rem 0;
}

.p-time-desc {
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

/* Research Memo on Paper */
.p-memo-box {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-left: 3px solid var(--ink-primary);
  border-radius: 3px;
  padding: 0.9rem;
  margin-bottom: 0.9rem;
}

.p-memo-code {
  background: rgba(0, 0, 0, 0.04);
  padding: 0.4rem 0.6rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-primary);
  margin-top: 0.5rem;
  overflow-x: auto;
}

/* Contact Form on Paper */
.paper-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.paper-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.paper-input-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.paper-input,
.paper-textarea {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 3px;
  padding: 0.65rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--ink-primary);
  outline: none;
  transition: all 0.15s ease;
}

.paper-input:focus,
.paper-textarea:focus {
  background: #fff;
  border-color: var(--brass-dark);
}

.paper-textarea {
  resize: vertical;
  min-height: 90px;
}

/* ── 7. BOOK FLIP BOTTOM CONTROLS ──────────────────────────── */
.book-bottom-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1120px;
  margin-top: 1.4rem;
  padding: 0 0.5rem;
}

.book-turn-btn {
  background: var(--leather-base);
  color: var(--brass-highlight);
  border: 1px solid var(--brass);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.55rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease;
}

.book-turn-btn:hover {
  background: #2b201a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.book-turn-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.book-spread-indicator {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #fff;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .book-spread-indicator {
  color: #1a1411;
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

/* ── 8. TOAST NOTIFICATION ─────────────────────────────────── */
#proToast {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  z-index: 9999;
  background: var(--leather-base);
  border: 1px solid var(--brass);
  border-radius: 4px;
  padding: 0.75rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brass-highlight);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#proToast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ── 9. BOTTOM PAGER BAR OVERRIDE ──────────────────────────── */
#pnav {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  display: flex !important;
  align-items: center;
  gap: 6px;
  background: rgba(20, 16, 14, 0.92) !important;
  border: 1px solid rgba(197, 155, 39, 0.35) !important;
  border-radius: 999px !important;
  padding: 5px 8px !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

[data-theme="light"] #pnav {
  background: rgba(245, 240, 227, 0.95) !important;
  border-color: rgba(139, 107, 20, 0.35) !important;
}

.pb {
  border-radius: 999px !important;
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.02em !important;
  text-transform: lowercase !important;
  padding: 0.45rem 1rem !important;
  color: #c5b9a8 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease !important;
  user-select: none;
}

[data-theme="light"] .pb { color: #5c4738 !important; }

.pb:hover {
  color: var(--brass-highlight) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.pb.active {
  background: var(--brass) !important;
  color: #120e0c !important;
  font-weight: 600 !important;
}
