/* ============================================================
   ORA-PRO-NÓBIS 11 em 1 — Design System
   Público: 40+ | Mobile-first | Acessível
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --proto-1: #2E7D50; --proto-1-bg: #e8f5ee;
  --proto-2: #1B6B93; --proto-2-bg: #e3f0f7;
  --proto-3: #B5382A; --proto-3-bg: #f9e8e6;
  --proto-4: #7B6D3A; --proto-4-bg: #f5f1e3;
  --proto-5: #8B4513; --proto-5-bg: #f5ebe3;
  --proto-6: #D4760A; --proto-6-bg: #fef0e0;
  --proto-7: #6A4C93; --proto-7-bg: #f0ebf8;
  --proto-8: #C62368; --proto-8-bg: #fde8f2;
  --proto-9: #D4527B; --proto-9-bg: #fde8ef;
  --proto-10: #C41E3A; --proto-10-bg: #fde8ec;
  --proto-11: #E6A817; --proto-11-bg: #fef7e0;

  --green-900: #123d28;
  --green-800: #174d32;
  --green-700: #1f6541;
  --green-600: #2e7d50;
  --green-500: #4aa66d;
  --green-200: #ccebd5;
  --green-100: #eaf7ee;
  --green-050: #f5fbf7;

  --gold: #f1bb3b;
  --ink: #1a2e25;
  --text: #2d4a3e;
  --muted: #6b7f76;
  --light: #adbdb6;
  --white: #ffffff;
  --bg: #f7faf8;
  --border: #d4e3db;
  --danger: #c0392b;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;

  --nav-h: 68px;
  --header-h: 56px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + 16px);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; }

/* ---------- Global Icons ---------- */
svg { max-width: 100%; display: inline-block; vertical-align: middle; }
.ui-icon { width: 24px; height: 24px; flex-shrink: 0; }
.badge .ui-icon { width: 14px; height: 14px; }
.info-card h2 .ui-icon, .proto-section h2 .ui-icon, .detail-section h2 .ui-icon { width: 22px; height: 22px; color: var(--green-600); margin-right: 6px; }
.recipe-card-meta .ui-icon { width: 16px; height: 16px; margin-right: 4px; }
.btn-primary .ui-icon, .shop-actions button .ui-icon, .act-btn .ui-icon { width: 18px; height: 18px; }
.home-search .ui-icon { width: 20px; height: 20px; }
.ing-check .ui-icon, .shop-check .ui-icon { width: 16px; height: 16px; }
.shop-del .ui-icon, .meal-remove .ui-icon { width: 20px; height: 20px; }
.faq-q .ui-icon { width: 20px; height: 20px; transition: transform 0.3s; }

/* ---------- Loading ---------- */
.loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-content { text-align: center; color: white; }
.loading-leaf { font-size: 48px; animation: spin 2s linear infinite; }
.loading-title { font-family: 'Playfair Display', serif; font-size: 28px; margin-top: 12px; color: var(--gold); }
.loading-subtitle { font-size: 16px; opacity: 0.8; margin-top: 4px; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- Bottom Nav ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 11px; font-weight: 700;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-item.active { color: var(--green-700); }
.nav-icon { width: 24px; height: 24px; }
.nav-item.active .nav-icon { color: var(--green-600); }

/* ---------- Toast ---------- */
#toast-container {
  position: fixed; bottom: calc(var(--nav-h) + 16px);
  left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--green-800); color: white;
  padding: 12px 24px; border-radius: var(--radius-full);
  font-size: 15px; font-weight: 700;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s ease;
  white-space: nowrap;
}
.toast.error { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Container ---------- */
.container { width: min(600px, 100%); margin: 0 auto; padding: 0 20px; }

/* ---------- Page Header ---------- */
.page-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
}
.page-header .back-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--green-050);
}
.page-header .back-btn svg { width: 22px; height: 22px; color: var(--green-700); }
.page-header h1 { font-size: 18px; font-weight: 800; flex: 1; }

/* ---------- HOME ---------- */
.home-hero {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: white; padding: 32px 24px 28px; text-align: center;
  border-radius: 0 0 28px 28px;
  margin-bottom: 24px;
}
.home-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 26px; color: white; margin-bottom: 6px;
}
.home-hero p { font-size: 16px; opacity: 0.9; margin-bottom: 20px; }
.home-search {
  background: rgba(255,255,255,0.2); border-radius: var(--radius-full);
  padding: 14px 20px; display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.7); font-size: 16px;
  cursor: pointer; transition: background 0.2s;
}
.home-search:active { background: rgba(255,255,255,0.3); }
.home-search svg { width: 20px; height: 20px; }

.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; padding: 0 4px;
}
.section-header h2 { font-size: 20px; font-weight: 800; }
.section-header a { color: var(--green-600); font-weight: 700; font-size: 15px; }

.section-block { margin-bottom: 28px; }

/* Quick Actions */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 20px 12px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center;
  font-weight: 800; font-size: 14px; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.quick-btn:active { transform: scale(0.97); }
.quick-btn .emoji { font-size: 28px; }

/* ---------- PROTOCOL CARDS ---------- */
.proto-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.proto-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius); cursor: pointer;
  color: white; min-height: 88px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.proto-card:active { transform: scale(0.98); }
.proto-icon { font-size: 36px; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.proto-info { flex: 1; min-width: 0; }
.proto-info h3 { font-size: 17px; font-weight: 800; color: white; margin-bottom: 3px; }
.proto-info p { font-size: 13px; opacity: 0.85; line-height: 1.4; }
.proto-count {
  background: rgba(255,255,255,0.25); padding: 4px 10px;
  border-radius: var(--radius-full); font-size: 12px; font-weight: 800;
  white-space: nowrap; flex-shrink: 0;
}
.proto-arrow { flex-shrink: 0; opacity: 0.7; }
.proto-arrow svg { width: 20px; height: 20px; }

/* Protocol Detail Hero */
.proto-detail-hero {
  padding: 36px 24px 28px; text-align: center; color: white;
  margin-bottom: 20px;
}
.proto-detail-hero .emoji { font-size: 48px; margin-bottom: 10px; }
.proto-detail-hero h1 { font-size: 24px; color: white; margin-bottom: 8px; }
.proto-detail-hero p { font-size: 15px; opacity: 0.9; max-width: 500px; margin: 0 auto; }

.proto-section { background: var(--white); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.proto-section h2 { font-size: 18px; margin-bottom: 10px; color: var(--ink); }
.proto-section p { font-size: 15px; line-height: 1.7; white-space: pre-line; }

/* ---------- RECIPE CARDS ---------- */
.recipe-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.recipe-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid var(--border);
}
.recipe-card:active { transform: scale(0.98); box-shadow: var(--shadow-md); }
.recipe-card-img {
  width: 100%; height: 180px; object-fit: cover;
  background: var(--green-100);
}
.recipe-card-body { padding: 16px; }
.recipe-card-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 800; white-space: nowrap;
}
.badge-proto { color: white; }
.badge-type { background: var(--green-100); color: var(--green-800); }
.recipe-card-title { font-size: 17px; font-weight: 800; line-height: 1.35; margin-bottom: 8px; color: var(--ink); }
.recipe-card-meta { display: flex; gap: 16px; font-size: 14px; color: var(--muted); font-weight: 600; }
.recipe-card-meta svg { width: 16px; height: 16px; }
.meta-item { display: flex; align-items: center; gap: 4px; }

.recipe-card-fav {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.recipe-card-fav svg { width: 20px; height: 20px; color: var(--muted); }
.recipe-card-fav.active svg { color: var(--danger); fill: var(--danger); }
.recipe-card-img-wrap { position: relative; }

/* ---------- RECIPE DETAIL ---------- */
.detail-hero { width: 100%; height: 260px; object-fit: cover; background: var(--green-100); }
.detail-card {
  background: var(--white); border-radius: var(--radius) var(--radius) 0 0;
  margin-top: -24px; position: relative; z-index: 2;
  padding: 24px 20px 20px;
}
.detail-title { font-family: 'Playfair Display', serif; font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
.detail-stats {
  display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
  margin-bottom: 16px;
}
.detail-stat {
  flex: 1; text-align: center; padding: 12px 8px;
  border-right: 1px solid var(--border);
}
.detail-stat:last-child { border-right: none; }
.detail-stat .val { font-size: 16px; font-weight: 800; color: var(--ink); display: block; }
.detail-stat .lbl { font-size: 12px; color: var(--muted); font-weight: 600; }

.detail-actions {
  display: flex; gap: 8px; margin-bottom: 20px;
}
.detail-actions .act-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 12px; border-radius: var(--radius-sm);
  background: var(--green-100); color: var(--green-800);
  font-weight: 800; font-size: 14px;
  transition: background 0.15s;
}
.detail-actions .act-btn:active { background: var(--green-200); }
.detail-actions .act-btn svg { width: 18px; height: 18px; }

.detail-section { margin-bottom: 24px; }
.detail-section h2 {
  font-size: 18px; font-weight: 800; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
  color: var(--ink);
}
.detail-section h2 svg { width: 20px; height: 20px; color: var(--green-600); }

.detail-why {
  background: var(--green-050); border-left: 4px solid var(--green-500);
  padding: 16px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px; line-height: 1.7; color: var(--text);
  margin-bottom: 24px;
}

.ingredient-list { display: flex; flex-direction: column; gap: 6px; }
.ingredient-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--green-050);
  border-radius: var(--radius-sm); font-size: 16px;
  cursor: pointer; transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.ingredient-item.checked { background: var(--green-200); text-decoration: line-through; color: var(--muted); }
.ing-check {
  width: 24px; height: 24px; flex-shrink: 0;
  border: 2px solid var(--green-500); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.ingredient-item.checked .ing-check { background: var(--green-500); }
.ing-check svg { width: 16px; height: 16px; color: white; opacity: 0; }
.ingredient-item.checked .ing-check svg { opacity: 1; }

.step-list { display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.step-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.step-num {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--green-600); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900;
}
.step-text { font-size: 16px; line-height: 1.6; color: var(--text); padding-top: 4px; }

.sub-list { display: flex; flex-direction: column; gap: 10px; }
.sub-item {
  padding: 12px 16px; background: var(--green-050);
  border-radius: var(--radius-sm); font-size: 15px; line-height: 1.55;
}
.sub-item strong { color: var(--green-700); }

.alert-box {
  padding: 14px 18px; background: #fff3e0; border-left: 4px solid #D4760A;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px; line-height: 1.6; color: #5d3a00;
}

.tip-box {
  padding: 14px 18px; background: var(--green-050);
  border-left: 4px solid var(--green-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px; line-height: 1.6;
}

.conservation-box {
  padding: 14px 18px; background: #f0f4ff; border-left: 4px solid #4a6fa5;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px; line-height: 1.6;
}

/* ---------- SEARCH ---------- */
.search-wrap {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--green-050); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 12px 18px;
}
.search-bar svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 16px; font-family: inherit; color: var(--ink);
}
.search-input::placeholder { color: var(--light); }

.filter-row {
  display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.filter-chip {
  padding: 8px 16px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 700; white-space: nowrap;
  background: var(--white); border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  transition: all 0.15s;
}
.filter-chip.active { background: var(--green-600); color: white; border-color: var(--green-600); }

.results-count {
  padding: 8px 20px; font-size: 14px; color: var(--muted); font-weight: 700;
}

/* ---------- FAVORITES, SHOPPING, PLANNER ---------- */
.empty-state {
  text-align: center; padding: 60px 20px;
}
.empty-state .emoji { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-full);
  background: var(--green-600); color: white;
  font-weight: 800; font-size: 16px;
  box-shadow: 0 4px 16px rgba(46,125,80,0.3);
  transition: transform 0.15s;
}
.btn-primary:active { transform: scale(0.97); }

.notice-box {
  background: var(--green-050); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 14px; color: var(--muted); text-align: center;
  margin-bottom: 16px;
}

/* Shopping list */
.shop-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--white);
  border-bottom: 1px solid var(--border);
}
.shop-check {
  width: 24px; height: 24px; flex-shrink: 0;
  border: 2px solid var(--green-500); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.shop-item.checked .shop-check { background: var(--green-500); }
.shop-item.checked .shop-check svg { opacity: 1; }
.shop-check svg { width: 16px; height: 16px; color: white; opacity: 0; }
.shop-text { flex: 1; font-size: 16px; }
.shop-item.checked .shop-text { text-decoration: line-through; color: var(--light); }
.shop-recipe { font-size: 12px; color: var(--muted); }
.shop-del { padding: 8px; color: var(--muted); }
.shop-del svg { width: 18px; height: 18px; }

.shop-actions {
  display: flex; gap: 8px; padding: 16px; justify-content: center; flex-wrap: wrap;
}
.shop-actions button {
  padding: 12px 20px; border-radius: var(--radius-full);
  font-weight: 800; font-size: 14px;
  background: var(--green-100); color: var(--green-800);
}
.shop-actions button.danger { background: #fde8ec; color: var(--danger); }
.shop-actions button.whatsapp { background: #dcf8c6; color: #075e54; }

/* Planner */
.planner-days {
  display: flex; gap: 6px; padding: 12px 16px; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.planner-day-btn {
  padding: 10px 16px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 700; white-space: nowrap;
  background: var(--white); border: 1px solid var(--border);
  color: var(--text);
}
.planner-day-btn.active { background: var(--green-600); color: white; border-color: var(--green-600); }

.meal-slots { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.meal-slot {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm);
}
.meal-label { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.meal-empty {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px; border: 2px dashed var(--border); border-radius: var(--radius-sm);
  color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer;
}
.meal-empty svg { width: 20px; height: 20px; }
.meal-filled {
  display: flex; align-items: center; gap: 12px;
}
.meal-filled img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; }
.meal-filled-info { flex: 1; }
.meal-filled-info .name { font-weight: 700; font-size: 15px; }
.meal-filled-info .time { font-size: 13px; color: var(--muted); }
.meal-remove { padding: 8px; color: var(--muted); }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.5);
  display: none; align-items: flex-end; justify-content: center;
}
.modal.open { display: flex; }
.modal-sheet {
  background: var(--white); border-radius: var(--radius) var(--radius) 0 0;
  width: 100%; max-width: 600px; max-height: 80vh;
  display: flex; flex-direction: column;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.modal-head h2 { font-size: 18px; }
.modal-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.modal-close svg { width: 22px; height: 22px; }
.modal-body { overflow-y: auto; padding: 12px 16px; flex: 1; }
.modal-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 12px; border-bottom: 1px solid var(--border);
  cursor: pointer; font-size: 15px; font-weight: 600;
}
.modal-item:active { background: var(--green-050); }

/* ---------- INFO PAGE ---------- */
.info-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.info-card h2 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.info-card p { font-size: 15px; line-height: 1.7; }

.info-highlight {
  margin-top: 12px; padding: 14px 16px;
  background: var(--green-100); border-radius: var(--radius-sm);
  font-size: 15px; line-height: 1.6;
}

.equiv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.equiv-box { background: var(--green-050); padding: 14px; border-radius: var(--radius-sm); text-align: center; }
.equiv-box .emoji { font-size: 28px; }
.equiv-box .label { font-size: 14px; font-weight: 800; margin: 4px 0 2px; }
.equiv-box .desc { font-size: 13px; color: var(--muted); }

.equiv-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.equiv-table th { background: var(--green-100); padding: 10px 12px; text-align: left; font-weight: 800; color: var(--green-800); }
.equiv-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; padding: 16px 4px; display: flex; justify-content: space-between;
  align-items: center; gap: 12px;
  font-size: 16px; font-weight: 700; color: var(--ink); text-align: left;
  cursor: pointer;
}
.faq-q svg { width: 18px; height: 18px; color: var(--green-600); flex-shrink: 0; transition: transform 0.3s; }
.faq-q.open svg { transform: rotate(90deg); }
.faq-a { padding: 0 4px 16px; font-size: 15px; color: var(--text); line-height: 1.7; }

.ref-item {
  padding: 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--green-050);
  margin-bottom: 12px;
}
.ref-tipo { font-size: 12px; font-weight: 800; color: var(--green-700); background: var(--green-100); padding: 2px 8px; border-radius: var(--radius-full); }
.ref-ano { font-size: 12px; color: var(--muted); font-weight: 700; margin-left: 6px; }
.ref-fonte { font-size: 14px; font-weight: 800; margin: 6px 0 2px; }
.ref-titulo { font-size: 15px; font-weight: 700; color: var(--green-800); font-style: italic; margin-bottom: 6px; }
.ref-desc { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 8px; }
.ref-link { color: var(--green-700); font-weight: 800; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (min-width: 480px) {
  .recipe-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .recipe-grid { grid-template-columns: 1fr 1fr 1fr; }
  .proto-grid { grid-template-columns: 1fr 1fr; }
  .equiv-grid { grid-template-columns: repeat(4, 1fr); }
}
