/* ═══════════════════════════════════════════
   RESTAURANT RAG — style.css
   Palette: Slate & Amber
═══════════════════════════════════════════ */

:root {
  --ink:          #0F1318;
  --slate:        #2E4057;
  --slate-mid:    #3D5470;
  --slate-light:  #4A6585;
  --amber:        #D4842A;
  --amber-light:  #E8A050;
  --cream:        #F4EFE4;
  --ivory:        #FAFAF5;
  --warm-gray:    #8A8880;
  --tan:          #D4CEC0;
  --sage:         #4A6645;
  --charcoal:     #1E2830;
  --max-width:    1100px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ══════════════════════════════════════════
   PUBLICATION BAR
══════════════════════════════════════════ */
.pub-bar {
  background: var(--ink);
  color: var(--tan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 2rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(212,206,192,0.1);
}
.pub-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--cream);
}
.pub-tagline { opacity: 0.55; }

/* ══════════════════════════════════════════
   MASTHEAD
══════════════════════════════════════════ */
.masthead {
  background: var(--ink);
  color: var(--cream);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--slate);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
}
.masthead-left {
  display: flex;
  align-items: center;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--cream);
  text-decoration: none;
  line-height: 1;
}
.logo em { color: var(--amber-light); font-style: italic; }

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  color: var(--tan);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: all 0.2s;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  background: var(--slate);
  color: white;
}
.nav-btn {
  background: var(--amber);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-btn:hover { background: var(--amber-light); }

/* ══════════════════════════════════════════
   USER MENU
══════════════════════════════════════════ */
.user-menu { position: relative; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  color: var(--tan);
  font-size: 0.85rem;
  transition: background 0.2s;
}
.user-chip:hover { background: rgba(255,255,255,0.08); }
.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--slate);
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.verified-dot { color: var(--sage); font-size: 0.75rem; }
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--ivory);
  border: 1px solid var(--tan);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15,19,24,0.15);
  min-width: 180px;
  overflow: hidden;
  z-index: 200;
}
.user-menu.open .user-dropdown { display: block; }
.user-dropdown a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--charcoal);
  transition: background 0.15s;
}
.user-dropdown a:hover { background: var(--cream); }
.dropdown-divider { height: 1px; background: var(--tan); margin: 0.25rem 0; }
.logout-link { color: var(--amber) !important; }

/* ══════════════════════════════════════════
   MOBILE NAV
══════════════════════════════════════════ */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--tan);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--ink);
  border-bottom: 2px solid var(--slate);
  padding: 1rem 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--tan);
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(212,206,192,0.08);
  transition: background 0.15s;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.04); color: var(--cream); }
.mobile-join {
  background: var(--amber);
  color: white !important;
  margin: 0.75rem 2rem 0;
  border-radius: 4px;
  text-align: center;
  border-bottom: none !important;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  background: var(--ink);
  color: var(--cream);
  padding: 5.5rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 4px double rgba(212,132,42,0.18);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(46,64,87,0.6) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(212,132,42,0.1) 0%, transparent 55%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.hero-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.hero-kicker::before,
.hero-kicker::after {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--amber);
  opacity: 0.4;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}
.hero p {
  font-size: 1.05rem;
  color: rgba(244,239,228,0.72);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.75;
  font-weight: 300;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212,206,192,0.35);
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn-primary {
  background: var(--amber);
  color: white;
  border: none;
  padding: 0.75rem 1.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--amber-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(244,239,228,0.25);
  padding: 0.75rem 1.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover { border-color: rgba(244,239,228,0.6); }

.btn-secondary {
  background: var(--ivory);
  color: var(--charcoal);
  border: 1.5px solid var(--tan);
  padding: 0.65rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--amber); color: var(--amber); }

.btn-slate {
  background: var(--slate);
  color: white;
  border: none;
  padding: 0.75rem 1.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-slate:hover { background: var(--slate-mid); }

/* ══════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════ */
.stats-bar {
  background: var(--slate);
  color: white;
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 1.1rem 2rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  line-height: 1.1;
}
.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 0.15rem;
}

/* ══════════════════════════════════════════
   VERIFIED BANNER
══════════════════════════════════════════ */
.verified-banner {
  background: var(--charcoal);
  padding: 0.75rem 2rem;
  border-bottom: 1px solid rgba(212,206,192,0.08);
}
.verified-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.vb-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--sage);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}
.vb-text {
  font-size: 0.8rem;
  color: var(--tan);
  line-height: 1.5;
}
.vb-text strong { color: var(--cream); }

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
.section {
  padding: 3.5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-rule {
  height: 1px;
  background: var(--tan);
  margin-bottom: 2.25rem;
  position: relative;
}
.section-rule::before {
  content: '✦';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--cream);
  padding: 0 0.75rem;
  color: var(--amber);
  font-size: 0.7rem;
}
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.6rem;
}
.section-head { margin-bottom: 2.5rem; }
.section-title-lg {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--charcoal);
}

/* ══════════════════════════════════════════
   FEATURE / PILLAR GRID
══════════════════════════════════════════ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--tan);
  border: 1px solid var(--tan);
  border-radius: 8px;
  overflow: hidden;
}
.feature-card {
  background: var(--ivory);
  padding: 2rem;
  transition: background 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.feature-card:hover { background: var(--cream); }
.feature-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.6rem;
}
.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}
.feature-card p {
  color: var(--warm-gray);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ══════════════════════════════════════════
   ROLES STRIP
══════════════════════════════════════════ */
.roles-strip {
  background: var(--slate);
  color: white;
  padding: 2.25rem 2rem;
}
.roles-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.roles-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.85rem;
}
.roles-list {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.9;
}
.roles-dot { opacity: 0.3; margin: 0 0.2rem; }

/* ══════════════════════════════════════════
   PAGE HEADERS
══════════════════════════════════════════ */
.page-header {
  background: var(--ink);
  color: var(--cream);
  padding: 2.5rem 2rem;
  border-bottom: 3px solid var(--slate);
}
.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
  line-height: 1.1;
}
.page-header p {
  color: var(--tan);
  font-weight: 300;
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════
   CONTENT LAYOUT
══════════════════════════════════════════ */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}
.sidebar-card {
  background: var(--ivory);
  border: 1px solid var(--tan);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.sidebar-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--tan);
}
.card {
  background: var(--ivory);
  border: 1px solid var(--tan);
  border-radius: 8px;
  padding: 1.5rem;
}

/* ══════════════════════════════════════════
   FORMS
══════════════════════════════════════════ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.form-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--tan);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  background: var(--cream);
  color: var(--charcoal);
  transition: border-color 0.2s;
  appearance: none;
}
.form-input:focus { outline: none; border-color: var(--amber); }

/* ══════════════════════════════════════════
   AUTH PAGES
══════════════════════════════════════════ */
.auth-page {
  min-height: calc(100vh - 104px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--cream);
}
.auth-box {
  background: var(--ivory);
  border: 1px solid var(--tan);
  border-radius: 10px;
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
}
.auth-box h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
  line-height: 1.15;
}
.auth-sub {
  color: var(--warm-gray);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--warm-gray);
}
.auth-switch a { color: var(--amber); font-weight: 500; }
.alert {
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.alert-error   { background: rgba(212,132,42,0.08); color: #9B4A0A; border: 1px solid rgba(212,132,42,0.25); }
.alert-success { background: rgba(74,102,69,0.08);  color: var(--sage); border: 1px solid rgba(74,102,69,0.25); }

/* ══════════════════════════════════════════
   RANKINGS PAGE
══════════════════════════════════════════ */
.rankings-bar {
  background: var(--ink);
  color: var(--cream);
  padding: 2rem 2rem 0;
  border-bottom: 3px solid var(--slate);
}
.rankings-bar-top {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
}
.rankings-bar h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
}
.rankings-bar p { color: var(--tan); font-size: 0.85rem; margin-top: 0.2rem; }
.cat-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-group-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212,206,192,0.4);
  padding: 0.5rem 0.75rem 0.4rem;
  white-space: nowrap;
  display: flex;
  align-items: flex-end;
  border-bottom: 2px solid transparent;
}
.cat-nav-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--tan);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.65rem 0.9rem 0.55rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cat-nav-btn:hover { color: var(--cream); border-bottom-color: rgba(212,206,192,0.3); }
.cat-nav-btn.active { color: var(--amber-light); border-bottom-color: var(--amber); }
.list-toggle {
  display: flex;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(212,206,192,0.18);
  border-radius: 5px;
  overflow: hidden;
}
.toggle-btn {
  padding: 0.5rem 1.1rem;
  border: none;
  background: none;
  color: var(--tan);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.toggle-btn.active { background: var(--amber); color: white; }
.rankings-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
.cat-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cat-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.1;
}
.cat-subtitle { font-size: 0.82rem; color: var(--warm-gray); margin-top: 0.2rem; }
.mode-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  border: 1.5px solid;
  white-space: nowrap;
}
.mode-badge.community { color: var(--sage); border-color: var(--sage); background: rgba(74,102,69,0.07); }
.mode-badge.personal  { color: var(--amber); border-color: var(--amber); background: rgba(212,132,42,0.07); }
.rank-list { display: flex; flex-direction: column; gap: 0; }
.rank-row {
  background: var(--ivory);
  border: 1px solid var(--tan);
  border-bottom: none;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background 0.15s;
}
.rank-row:first-child { border-radius: 8px 8px 0 0; }
.rank-row:last-child  { border-bottom: 1px solid var(--tan); border-radius: 0 0 8px 8px; }
.rank-row:only-child  { border-radius: 8px; border-bottom: 1px solid var(--tan); }
.rank-row:hover { background: var(--cream); }
.rn {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  min-width: 2.25rem;
  text-align: center;
  color: var(--tan);
  flex-shrink: 0;
}
.gold-rank   { color: #C8923A; }
.silver-rank { color: #9BA8B0; }
.bronze-rank { color: #C4874A; }
.ri { flex: 1; min-width: 0; }
.rname {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rmeta {
  font-size: 0.75rem;
  color: var(--warm-gray);
  margin-top: 0.15rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.rscore { text-align: right; flex-shrink: 0; }
.rscore-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amber);
  display: block;
  line-height: 1.1;
}
.rscore-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
.personal-controls { display: none; flex-direction: column; gap: 2px; flex-shrink: 0; }
.personal-mode .personal-controls { display: flex; }
.pmove {
  background: none;
  border: 1px solid var(--tan);
  border-radius: 3px;
  width: 24px; height: 20px;
  cursor: pointer;
  font-size: 0.6rem;
  color: var(--warm-gray);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pmove:hover { background: var(--amber); border-color: var(--amber); color: white; }
.premove {
  background: none;
  border: none;
  color: rgba(212,132,42,0.3);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 0.25rem;
  transition: color 0.15s;
  flex-shrink: 0;
}
.premove:hover { color: var(--amber); }
.qs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.qs-item { background: var(--cream); border-radius: 6px; padding: 0.75rem; text-align: center; }
.qs-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amber);
  display: block;
}
.qs-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

/* ══════════════════════════════════════════
   JOBS PAGE
══════════════════════════════════════════ */
.job-card {
  background: var(--ivory);
  border: 1px solid var(--tan);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s;
}
.job-card:hover {
  box-shadow: 0 4px 16px rgba(15,19,24,0.09);
  transform: translateY(-2px);
}
.job-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}
.job-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
}
.job-restaurant { color: var(--warm-gray); font-size: 0.875rem; margin-top: 0.15rem; }
.job-type-badge {
  background: var(--sage);
  color: white;
  font-size: 0.62rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.job-type-badge.foh        { background: var(--slate); }
.job-type-badge.management { background: var(--amber); }
.job-type-badge.other      { background: var(--warm-gray); }
.job-details { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.job-detail { font-size: 0.82rem; color: var(--warm-gray); }
.job-detail strong { color: var(--charcoal); }
.job-desc { font-size: 0.875rem; color: var(--warm-gray); line-height: 1.65; margin-bottom: 1rem; }
.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--tan);
}
.posted-time { font-size: 0.78rem; color: var(--warm-gray); font-style: italic; }
.apply-btn {
  background: var(--amber);
  color: white;
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.apply-btn:hover { background: var(--amber-light); }

/* ══════════════════════════════════════════
   BLOG / OUR RAG
══════════════════════════════════════════ */
.blog-tag-btn {
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  border: 1.5px solid var(--tan);
  background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--charcoal);
  text-decoration: none;
  display: inline-block;
}
.blog-tag-btn:hover, .blog-tag-btn.active {
  background: var(--slate);
  border-color: var(--slate);
  color: white;
}
.blog-post-card {
  background: var(--ivory);
  border: 1px solid var(--tan);
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
}
.blog-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15,19,24,0.09);
}
.bpc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.bpc-type {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.bpc-ai-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  background: rgba(74,102,69,0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}
.bpc-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.bpc-excerpt {
  font-size: 0.875rem;
  color: var(--warm-gray);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.bpc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tan);
}
.bpc-author { display: flex; align-items: center; gap: 0.65rem; }
.bpc-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.bpc-slate    { background: var(--slate); }
.bpc-amber    { background: var(--amber); }
.bpc-sage     { background: var(--sage); }
.bpc-charcoal { background: var(--charcoal); }
.bpc-author-name { font-size: 0.85rem; font-weight: 500; }
.bpc-author-role { font-size: 0.75rem; color: var(--warm-gray); }
.bpc-stats { display: flex; gap: 0.4rem; font-size: 0.75rem; color: var(--warm-gray); }
.type-opt {
  border: 1.5px solid var(--tan);
  border-radius: 6px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  font-family: 'DM Sans', sans-serif;
}
.type-opt:hover, .type-opt.selected {
  border-color: var(--amber);
  background: rgba(212,132,42,0.06);
}
.ai-status-box {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(74,102,69,0.06);
  border: 1px solid rgba(74,102,69,0.2);
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--sage);
  line-height: 1.5;
}
.ai-status-box strong { display: block; margin-bottom: 0.2rem; }
.ai-status-box.checking {
  background: rgba(212,132,42,0.06);
  border-color: rgba(212,132,42,0.25);
  color: var(--amber);
}
.ai-status-box.rejected {
  background: rgba(139,58,42,0.06);
  border-color: rgba(139,58,42,0.25);
  color: #8B3A2A;
}
.post-body { font-size: 1.05rem; line-height: 1.85; color: var(--charcoal); }
.post-body p { margin-bottom: 1.25rem; }

/* ══════════════════════════════════════════
   MEMBERS PAGE
══════════════════════════════════════════ */
.member-card {
  background: var(--ivory);
  border: 1px solid var(--tan);
  border-radius: 8px;
  padding: 1.75rem;
  transition: all 0.2s;
}
.member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15,19,24,0.1);
}
.mc-top { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.mc-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.mc-slate    { background: var(--slate); }
.mc-amber    { background: var(--amber); }
.mc-sage     { background: var(--sage); }
.mc-charcoal { background: var(--charcoal); }
.mc-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; }
.mc-role { font-size: 0.82rem; color: var(--warm-gray); margin-top: 0.1rem; }
.mc-restaurant {
  font-size: 0.78rem;
  color: var(--warm-gray);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--tan);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.mc-stat {
  flex: 1;
  text-align: center;
  padding: 0.6rem 0.5rem;
  border-right: 1px solid var(--tan);
}
.mc-stat:last-child { border-right: none; }
.mc-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
  display: block;
}
.mc-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
.mc-footer { padding-top: 0.75rem; border-top: 1px solid var(--tan); }

/* ══════════════════════════════════════════
   VERIFIED BADGE
══════════════════════════════════════════ */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(74,102,69,0.09);
  color: var(--sage);
  font-size: 0.62rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

/* ══════════════════════════════════════════
   MODAL
══════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,19,24,0.75);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--ivory);
  border-radius: 10px;
  padding: 2.5rem;
  width: 100%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--warm-gray);
  transition: color 0.15s;
}
.modal-close:hover { color: var(--charcoal); }

/* ══════════════════════════════════════════
   SEARCH DROPDOWN
══════════════════════════════════════════ */
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--ivory);
  border: 1px solid var(--tan);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15,19,24,0.12);
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  display: none;
}
.search-dropdown.open { display: block; }
.sdrop-item {
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(212,206,192,0.3);
  transition: background 0.1s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sdrop-item:last-child { border-bottom: none; }
.sdrop-item:hover { background: var(--cream); }
.sdrop-name { font-weight: 500; }
.sdrop-meta { font-size: 0.75rem; color: var(--warm-gray); margin-top: 0.15rem; }
.sdrop-add  { font-size: 0.72rem; color: var(--amber); font-weight: 500; flex-shrink: 0; }

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 300;
  border-left: 3px solid var(--amber);
  pointer-events: none;
  max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.toast-error   { border-left-color: #8B3A2A; }
.toast.toast-success { border-left-color: var(--sage); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  color: var(--tan);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
  border-top: 3px solid var(--slate);
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top { margin-bottom: 2rem; }
.footer-masthead { margin-bottom: 0.5rem; }
.footer-masthead .logo { font-size: 1.5rem; display: inline-block; margin-bottom: 0.4rem; }
.footer-masthead p {
  font-size: 0.85rem;
  color: var(--warm-gray);
  font-style: italic;
  font-family: 'Playfair Display', serif;
}
.footer-rule { height: 1px; background: rgba(212,206,192,0.1); margin-top: 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h5 {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 0.85rem;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--warm-gray);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212,206,192,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(138,136,128,0.4);
}
.footer-bottom-mid { opacity: 0.7; }

/* ══════════════════════════════════════════
   MOBILE
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .pub-date, .pub-tagline { display: none; }
  .pub-bar { justify-content: center; }

  .hero { padding: 3.5rem 1.25rem 3rem; }
  .hero p { font-size: 0.975rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas a, .hero-ctas button { width: 100%; text-align: center; }

  .stats-bar { gap: 1.5rem; padding: 1rem; }
  .stat-num  { font-size: 1.25rem; }

  .section { padding: 2rem 1.25rem; }
  .feature-grid { grid-template-columns: 1fr; }

  .page-header { padding: 2rem 1.25rem; }
  .page-header h1 { font-size: 1.75rem; }

  .content-layout { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.25rem; }

  .rankings-bar { padding: 1.25rem 1.25rem 0; }
  .rankings-bar h2 { font-size: 1.5rem; }
  .rankings-bar-top { flex-direction: column; align-items: flex-start; }
  .rankings-body { grid-template-columns: 1fr; padding: 1.25rem; }
  .cat-title { font-size: 1.2rem; }
  .cat-group-label { display: none; }
  .cat-nav-btn { font-size: 0.78rem; padding: 0.55rem 0.65rem; }

  .rank-row { padding: 0.85rem 1rem; gap: 0.75rem; }
  .rn { font-size: 1.1rem; min-width: 1.75rem; }
  .rname { font-size: 0.9rem; }
  .rscore-num { font-size: 1rem; }

  .job-card { padding: 1.25rem; }
  .job-card-top { flex-direction: column; gap: 0.5rem; }

  .blog-post-card { padding: 1.25rem; }
  .bpc-title { font-size: 1rem; }
  .bpc-meta { flex-direction: column; gap: 0.5rem; }

  .auth-page { padding: 1.25rem; align-items: flex-start; }
  .auth-box { padding: 1.75rem 1.25rem; }
  .auth-box h1 { font-size: 1.5rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .modal { padding: 1.5rem 1.25rem; }
  .verified-banner-inner { flex-direction: column; gap: 0.5rem; }
  .roles-list { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.5rem; }
  .section { padding: 1.5rem 1rem; }
  .auth-box { padding: 1.5rem 1rem; }
  .stats-bar { gap: 1rem; }
  .stat-num { font-size: 1.1rem; }
  .rankings-body { padding: 1rem; }
  .content-layout { padding: 1rem; }
}
