/*
 * kookclub.css
 * Main stylesheet for De Kookclub
 *
 * Fonts loaded via Google Fonts - add to base template:
 *   <link rel="preconnect" href="https://fonts.googleapis.com">
 *   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 *   <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,500&family=Figtree:wght@300;400;500;600&display=swap" rel="stylesheet">
 *
 * Usage:
 *   {% load static %}
 *   <link rel="stylesheet" href="{% static 'css/kookclub.css' %}">
 *
 * Classes overview:
 *   Layout:   .nav, .page, .cols, .col
 *   Sections: .section-head, .section-title, .section-all
 *   Cards:    .card-stack, .card, .recipe-row, .menu-row, .les-row
 *   Recipe:   .recipe-top, .recipe-name, .star-btn, .doc-ref, .doc-tag, .snippet, .ts
 *   Menu:     .menu-add-row, .menu-add-input, .btn-add, .menu-head, .menu-owner, .menu-date, .menu-recipes
 *   Lessons:  .les-head, .les-title, .les-recipes, .badge
 *   Nav:      .nav-brand, .nav-logo, .nav-name, .nav-search, .nav-right,
 *             .nav-icon-btn, .notif-dot, .nav-user, .nav-avatar, .nav-username
 */

:root {
  --bg:        #F0EEE9;
  --card:      #FFFFFF;
  --ink:       #1C1917;
  --ink-2:     #44403C;
  --ink-3:     #78716C;
  --ink-4:     #A8A29E;
  --border:    #E7E4DF;
  --green:     #1C3829;
  --green-2:   #2D5740;
  --green-bg:  #F0F5F2;
  --accent:    #B91C1C;
  --accent-bg: #FEE2E2;
}

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

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar ── */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo {
  width: 34px; height: 34px;
  background: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-search {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.nav-search svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-4);
  pointer-events: none;
}
.nav-search input {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 1rem 0.55rem 2.5rem;
  font-family: 'Figtree', sans-serif;
  font-size: 0.875rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.nav-search input:focus {
  border-color: var(--green-2);
  background: white;
  box-shadow: 0 0 0 3px rgba(45,87,64,0.08);
}
.nav-search input::placeholder { color: var(--ink-4); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink-2);
  position: relative;
  transition: background 0.12s, border-color 0.12s;
}
.nav-icon-btn:hover { background: var(--bg); border-color: var(--ink-4); }
.notif-dot {
  position: absolute;
  top: 5px; right: 5px;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  border: 1.5px solid white;
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  padding: 0.22rem 0.65rem 0.22rem 0.3rem;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  background: white;
  transition: background 0.12s, border-color 0.12s;
}
.nav-user:hover { background: var(--bg); border-color: var(--ink-4); }
.nav-avatar {
  width: 28px; height: 28px;
  background: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}
.nav-username {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* ── Page ── */
.page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

/* ── Columns ── */
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.col {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeup 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.col:nth-child(1) { animation-delay: 0.08s; }
.col:nth-child(2) { animation-delay: 0.16s; }
.col:nth-child(3) { animation-delay: 0.24s; }
@keyframes fadeup { to { opacity: 1; transform: translateY(0); } }

/* ── Section head ── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-all {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  white-space: nowrap;
  transition: color 0.12s;
}
.section-all:hover { color: var(--ink); }

/* ── Card stack ── */
.card-stack { display: flex; flex-direction: column; gap: 0.6rem; }

.card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  border-color: #D6D2CC;
}

/* ── Recipe card ── */
.recipe-row { padding: 1.35rem 1.5rem; }

.recipe-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.recipe-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.12s;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color 0.12s;
}
.card:hover .recipe-name,
.card:hover .menu-owner,
.card:hover .les-title { color: lab(46.7923 35.3122 29.9336); }

.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  flex-shrink: 0;
  line-height: 1;
  color: var(--ink-4);
  transition: color 0.12s, transform 0.1s;
}
.star-btn:hover { color: #D97706; transform: scale(1.2); }
.star-btn.filled { color: #D97706; }

.doc-ref {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--ink-4);
  font-size: 0.75rem;
  font-weight: 400;
  text-decoration: none;
  margin-bottom: 0.35rem;
  transition: color 0.12s;
}
.doc-ref:hover { color: var(--ink-2); }
/* lesson tag above recipe name in col 1 */
.doc-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.18rem 0.5rem 0.18rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: border-color 0.12s, color 0.12s;
}
.doc-tag:hover { border-color: var(--ink-3); color: var(--ink-2); }
.doc-tag svg { opacity: 0.5; flex-shrink: 0; }

.doc-ref svg { opacity: 0.6; }

.snippet {
  font-size: 0.8rem;
  color: var(--ink-3);
  font-weight: 300;
  line-height: 1.55;
  font-style: italic;
}
.with-thumb {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.thumb {
  width: 44px; height: 44px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.ts {
  display: block;
  font-size: 0.7rem;
  color: var(--ink-4);
  margin-top: 0.4rem;
  font-weight: 300;
}

/* ── Menu card ── */
.menu-add-row {
  padding: 0.85rem 1.5rem;
  display: flex;
  gap: 0.4rem;
}
.menu-add-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-family: 'Figtree', sans-serif;
  font-size: 0.82rem;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.menu-add-input:focus { border-color: var(--green-2); background: white; }
.menu-add-input::placeholder { color: var(--ink-4); }
.btn-add {
  width: 32px; height: 32px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--ink-3);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}
.btn-add:hover { border-color: var(--green-2); color: var(--green); }

.menu-row { padding: 1.35rem 1.5rem; }

.menu-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}
.menu-owner {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.12s;
  text-decoration: none;
}
.menu-date {
  font-size: 0.72rem;
  color: var(--ink-4);
  font-weight: 300;
  white-space: nowrap;
}
.menu-recipes {
  font-size: 0.8rem;
  color: var(--ink-3);
  font-weight: 300;
  line-height: 1.85;
}
.menu-recipes a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.12s;
}
.menu-recipes a:hover { color: var(--green); text-decoration: underline; }

/* ── Les card ── */
.les-row { padding: 1.35rem 1.5rem; }

.les-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}
.les-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color 0.12s;
}

.badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 5px;
  margin-top: 1px;
}

.les-recipes {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--ink-3);
  font-weight: 300;
  line-height: 1.85;
}
.les-recipes a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.12s;
}
.les-recipes a:hover { color: var(--green); text-decoration: underline; }

/* ════════════════════════════════════
   CSS-only tabs
   ════════════════════════════════════ */

.tab-radio { display: none; }

.tab-bar {
  display: flex;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab-label {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: color 0.12s, border-color 0.12s;
}
.tab-label:hover { color: var(--ink-2); }

.tab-panel { display: none; }

#tab-lijst:checked ~ .tab-bar .tab-label[for="tab-lijst"],
#tab-instructies:checked ~ .tab-bar .tab-label[for="tab-instructies"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
#tab-lijst:checked ~ .panel-lijst { display: block; }
#tab-instructies:checked ~ .panel-instructies { display: block; }

/* ════════════════════════════════════
   Lesson / menu detail pages
   ════════════════════════════════════ */

.lesson-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1.5px solid var(--border);
}
.lesson-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.lesson-date {
  font-size: 0.82rem;
  color: var(--ink-4);
  font-weight: 300;
}
.lesson-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.source-link:hover {
  border-color: var(--ink-3);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.source-link svg { color: var(--ink-4); flex-shrink: 0; }
.source-link-name { font-weight: 600; }
.source-link-sub { color: var(--ink-4); font-weight: 300; margin-left: 0.1rem; }

.recipe-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.recipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.recipe-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.15s, border-color 0.15s;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeup 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.recipe-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.07); border-color: #D6D2CC; }
.recipe-card:nth-child(1)  { animation-delay: 0.05s; }
.recipe-card:nth-child(2)  { animation-delay: 0.09s; }
.recipe-card:nth-child(3)  { animation-delay: 0.13s; }
.recipe-card:nth-child(4)  { animation-delay: 0.17s; }
.recipe-card:nth-child(5)  { animation-delay: 0.21s; }
.recipe-card:nth-child(6)  { animation-delay: 0.25s; }
.recipe-card:nth-child(7)  { animation-delay: 0.29s; }
.recipe-card:nth-child(8)  { animation-delay: 0.33s; }
.recipe-card:nth-child(9)  { animation-delay: 0.37s; }
.recipe-card:nth-child(10) { animation-delay: 0.41s; }
@keyframes fadeup { to { opacity: 1; transform: translateY(0); } }

.recipe-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.12s;
}
a.recipe-card:hover .recipe-card-title,
.recipe-card:hover a.recipe-card-title { color: lab(46.7923 35.3122 29.9336); }

.recipe-card-snippet {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-3);
  font-weight: 300;
  line-height: 1.55;
  font-style: italic;
}
.recipe-card-meta {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--ink-4);
  font-weight: 300;
}
.recipe-card-meta a { color: var(--ink-3); text-decoration: none; }
.recipe-card-meta a:hover { color: var(--ink-2); }

.recipe-card-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}
.btn-xs {
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  border-radius: 6px;
  line-height: 1.4;
}
.btn-danger {
  background: var(--accent-bg);
  border: 1.5px solid var(--accent-bg);
  color: var(--accent);
}
.btn-danger:hover { background: var(--accent); border-color: var(--accent); color: white; }

/* ════════════════════════════════════
   Recipe detail page
   ════════════════════════════════════ */

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.12s;
}
.back-link:hover { color: var(--ink); }

/* ── Recipe header ── */
.recipe-header { margin-bottom: 2rem; }

.source-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.6rem 0.25rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: border-color 0.15s, color 0.15s;
}
.source-tag:hover { border-color: var(--ink-3); color: var(--ink-2); }
.source-tag svg { opacity: 0.5; flex-shrink: 0; }

.recipe-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

/* ── Action row ── */
.action-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-bottom: 1.75rem;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: 'Figtree', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  text-decoration: none;
}
.btn-outline {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--ink-2);
}
.btn-outline:hover { background: var(--bg); border-color: var(--ink-3); color: var(--ink); }
.btn-primary {
  background: var(--green);
  border: 1.5px solid var(--green);
  color: white;
}
.btn-primary:hover { background: var(--green-2); border-color: var(--green-2); }

/* ── Content grid ── */
.content-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* ── Section label ── */
.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.85rem;
}

/* ── Ingredients ── */
.ingredients-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
}
.ingredients-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.ingredients-table td {
  padding: 0.45rem 1rem 0.45rem 0;
  font-size: 0.875rem;
  color: var(--ink-2);
  font-weight: 400;
  line-height: 1.4;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.ingredients-table td:last-child { padding-right: 0; }
.ingredients-table tr:last-child td { border-bottom: none; }

/* ── Instructions ── */
.instructions-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
}
.instructions-text {
  font-size: 0.925rem;
  color: var(--ink-2);
  line-height: 1.75;
  font-weight: 300;
}

/* ── Full-width cards ── */
.full-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
}

/* ── Menu widget ── */
.menu-widget-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.menu-label { font-size: 0.875rem; color: var(--ink-2); font-weight: 400; }
.menu-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.42rem 2rem 0.42rem 0.75rem;
  font-family: 'Figtree', sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2378716C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  transition: border-color 0.15s;
}
.menu-select:focus { border-color: var(--green-2); }

/* ── Photos ── */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.photo-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-4);
  font-size: 0.75rem;
  font-weight: 300;
}
.photo-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-meta {
  font-size: 0.7rem;
  color: var(--ink-4);
  font-weight: 300;
  margin-top: 0.3rem;
  text-align: center;
}
.photo-upload {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.file-input-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: white;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.file-input-label:hover { border-color: var(--ink-3); color: var(--ink-2); }

/* ── Login form fields ── */
.full-card label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.4rem;
}
.full-card input[type="text"],
.full-card input[type="password"] {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-family: 'Figtree', sans-serif;
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.full-card input[type="text"]:focus,
.full-card input[type="password"]:focus {
  border-color: var(--green-2);
  background: white;
  box-shadow: 0 0 0 3px rgba(45,87,64,0.08);
}

/* ── Search highlight ── */
mark {
  background: #FEF08A;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* ── Search results layout ── */
.search-cols {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 720px) {
  .search-cols { grid-template-columns: 1fr; }
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  list-style: none;
  padding: 1.5rem 0;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.pagination a:hover { border-color: var(--ink-4); background: var(--bg); }
.pagination .active a,
.pagination .active span {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.pagination .disabled a,
.pagination .disabled span {
  color: var(--ink-4);
  pointer-events: none;
  background: var(--bg);
}
