/* ================================================================== */
/*  Plant Based Quest — v1.9  Full customization + fixes                */
/* ================================================================== */

/* ---- Self-hosted Arial MT font family --------------------------- */
@font-face {
  font-family: 'Arial MT';
  src: url('fonts/ARIALMTLIGHT.TTF') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Arial MT';
  src: url('fonts/arialmt.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Arial MT';
  src: url('fonts/ARIALMTITALIC.OTF') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Arial MT';
  src: url('fonts/ARIALMTMEDIUM.TTF') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Arial MT';
  src: url('fonts/ARIALBOLDMT.OTF') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Arial MT';
  src: url('fonts/ARIALBOLDITALICMT.OTF') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Arial MT';
  src: url('fonts/ARIALMTEXTRABOLD.TTF') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Arial MT';
  src: url('fonts/ARIALMTBLACK.TTF') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Arial Rounded MT';
  src: url('fonts/ARIALROUNDEDMTLIGHT.TTF') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Arial Rounded MT';
  src: url('fonts/ARIALROUNDEDMT.TTF') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Arial Rounded MT';
  src: url('fonts/ARLRDBD.TTF') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Arial Rounded MT';
  src: url('fonts/ARIALROUNDEDMTEXTRABOLD.TTF') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Hide WP theme chrome ---------------------------------------- */
body:has(#pbq-app) #masthead,
body:has(#pbq-app) .site-header,
body:has(#pbq-app) header.entry-header,
body:has(#pbq-app) .site-footer,
body:has(#pbq-app) #colophon,
body:has(#pbq-app) .nav-menu,
body:has(#pbq-app) .main-navigation,
body:has(#pbq-app) .site-branding,
body:has(#pbq-app) .entry-title,
body:has(#pbq-app) .entry-header,
body:has(#pbq-app) footer.site-footer,
body:has(#pbq-app) .wp-site-blocks > header,
body:has(#pbq-app) .wp-site-blocks > footer {
  display: none !important;
}
body:has(#pbq-app) .site-content,
body:has(#pbq-app) .entry-content,
body:has(#pbq-app) main,
body:has(#pbq-app) .site-main,
body:has(#pbq-app) article {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* Hide any Substack embeds or other widgets on the PBQ page */
body:has(#pbq-app) .widget-area,
body:has(#pbq-app) .sidebar,
body:has(#pbq-app) aside,
body:has(#pbq-app) .wp-block-embed,
body:has(#pbq-app) iframe[src*="substack"] {
  display: none !important;
}

/* ---- Reset ------------------------------------------------------- */
#pbq-app *, #pbq-app *::before, #pbq-app *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
#pbq-app {
  font-family: var(--pbq-global-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif);
  color: #202124;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
#pbq-app .pbq-hidden { display: none !important; }

/* ================================================================== */
/*  HERO — 100vh, static until recipe is generated                     */
/* ================================================================== */
#pbq-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}

/* Custom background image — no filter */
#pbq-app[style*="--pbq-bg-image"] #pbq-hero {
  background: var(--pbq-bg-image) center / cover no-repeat;
}

/* ================================================================== */
/*  TOP BAR                                                            */
/* ================================================================== */
#pbq-app .pbq-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem 0;
  flex-shrink: 0;
}
#pbq-app .pbq-topbar-left {
  display: flex;
  gap: 1rem;
}
#pbq-app .pbq-topbar-link {
  font-size: 0.9rem;
  color: rgba(0,0,0,0.87);
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: background 0.15s;
}
#pbq-app[style*="--pbq-bg-image"] .pbq-topbar-link {
  color: rgba(255,255,255,0.9);
}
#pbq-app .pbq-topbar-link:hover {
  background: rgba(0,0,0,0.04);
}
#pbq-app[style*="--pbq-bg-image"] .pbq-topbar-link:hover {
  background: rgba(255,255,255,0.15);
}
#pbq-app .pbq-topbar-right {
  display: flex;
  align-items: center;
}

/* ================================================================== */
/*  HAMBURGER                                                          */
/* ================================================================== */
#pbq-app .pbq-menu-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: background 0.15s;
  z-index: 1001;
}
#pbq-app .pbq-menu-btn:hover { background: rgba(0,0,0,0.04); }
#pbq-app[style*="--pbq-bg-image"] .pbq-menu-btn:hover { background: rgba(255,255,255,0.15); }
#pbq-app .pbq-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #5f6368;
  border-radius: 1px;
  transition: all 0.3s ease;
}
#pbq-app[style*="--pbq-bg-image"] .pbq-menu-btn span { background: rgba(255,255,255,0.9); }
#pbq-app .pbq-menu-btn.pbq-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#pbq-app .pbq-menu-btn.pbq-open span:nth-child(2) { opacity: 0; }
#pbq-app .pbq-menu-btn.pbq-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Drawer ------------------------------------------------------ */
#pbq-app .pbq-menu-drawer {
  position: fixed;
  top: 0; right: -280px;
  width: 260px; height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 4.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  overflow-y: auto;
}
#pbq-app .pbq-menu-drawer.pbq-open { right: 0; }
#pbq-app .pbq-menu-link {
  display: block;
  padding: 0.8rem 0.5rem;
  font-size: 1rem;
  color: #3c4043;
  text-decoration: none;
  border-bottom: 1px solid #f1f3f4;
  transition: color 0.15s, padding-left 0.15s;
}
#pbq-app .pbq-menu-link:hover { color: #1b4332; padding-left: 0.75rem; }

/* ---- Overlay ----------------------------------------------------- */
#pbq-app .pbq-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3); z-index: 999;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
#pbq-app .pbq-menu-overlay.pbq-open { opacity: 1; pointer-events: auto; }

/* ================================================================== */
/*  CENTERED CONTENT                                                   */
/* ================================================================== */
#pbq-app .pbq-hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  margin-top: -2vh;
  width: 100%;
  box-sizing: border-box;
}

/* ---- Logo / Doodle ---------------------------------------------- */
#pbq-app .pbq-logo-wrap { margin-bottom: 0.75rem; }
#pbq-app .pbq-logo-img {
  display: block;
  max-width: 600px; max-height: 250px;
  width: auto; height: auto;
  object-fit: contain;
}

/* ---- Title ------------------------------------------------------ */
#pbq-app .pbq-title {
  text-align: center;
  font-size: var(--pbq-title-size, 4rem);
  font-family: var(--pbq-title-font, var(--pbq-global-font, inherit));
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}
#pbq-app .pbq-title-word { color: var(--pbq-title-color, #2d6a4f); }
#pbq-app .pbq-title-word + .pbq-title-word { margin-left: 0.2em; }
/* Default color variation when no custom color is set */
#pbq-app .pbq-title-word-0 { color: var(--pbq-title-color, #2d6a4f); }
#pbq-app .pbq-title-word-1 { color: var(--pbq-title-color, #059669); }
#pbq-app .pbq-title-word-2 { color: var(--pbq-title-color, #1b4332); }
/* On background images */
#pbq-app[style*="--pbq-bg-image"] .pbq-title-word {
  color: var(--pbq-title-color, #fff);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ---- Search bar ------------------------------------------------- */
#pbq-app .pbq-search-bar {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 680px;
  background: #fff;
  border: 1px solid #dfe1e5;
  border-radius: 32px;
  padding: 0 0.7rem 0 1.2rem;
  height: 56px;
  box-shadow: 0 1px 6px rgba(32,33,36,0.08);
  transition: box-shadow 0.2s, border-color 0.15s;
}
#pbq-app .pbq-search-bar:hover {
  box-shadow: 0 1px 8px rgba(32,33,36,0.15);
  border-color: rgba(223,225,229,0);
}
#pbq-app .pbq-search-bar:focus-within {
  box-shadow: 0 1px 8px rgba(32,33,36,0.2);
  border-color: rgba(223,225,229,0);
}
#pbq-app .pbq-search-icon { flex-shrink: 0; margin-right: 0.6rem; opacity: 0.55; }
#pbq-app .pbq-search-bar input[type="text"] {
  flex: 1; border: none; outline: none;
  font-size: 1.15rem; color: #202124;
  background: transparent; padding: 0;
  height: 100%; min-width: 0;
}
#pbq-app .pbq-search-bar input[type="text"]::placeholder { color: #9aa0a6; }
#pbq-app .pbq-search-bar button {
  padding: 0 1.4rem; height: 44px;
  font-size: 1rem; font-weight: 600;
  color: #fff; background: #1b4332;
  border: none; border-radius: 22px;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s; margin-left: 0.4rem;
}
#pbq-app .pbq-search-bar button:hover { background: #143528; }
#pbq-app .pbq-search-bar button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Controls bubble (behind hint + filters on bg images) ------- */
#pbq-app .pbq-controls-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  width: 100%;
}
#pbq-app[style*="--pbq-bg-image"] .pbq-controls-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 1rem 2rem;
  margin-top: 0.7rem;
  max-width: 780px;
}

/* ---- Hint line (right under search bar) ------------------------- */
#pbq-app .pbq-hint {
  text-align: center;
  font-size: var(--pbq-text-size, 1.1rem);
  color: var(--pbq-text-color, #70757a);
  margin-top: 0.6rem;
  line-height: 1.5;
  font-weight: 500;
}
#pbq-app .pbq-hint strong { color: var(--pbq-text-color, #5f6368); }
#pbq-app[style*="--pbq-bg-image"] .pbq-hint { color: var(--pbq-text-color, rgba(255,255,255,0.95)); text-shadow: 0 1px 3px rgba(0,0,0,0.2); }
#pbq-app[style*="--pbq-bg-image"] .pbq-hint strong { color: var(--pbq-text-color, #fff); }

/* ---- Filters ---------------------------------------------------- */
#pbq-app .pbq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  justify-content: center;
  margin-top: 0.6rem;
  font-size: var(--pbq-text-size, 1.1rem);
}
#pbq-app .pbq-filter {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--pbq-text-color, #5f6368);
  font-weight: 500;
}
#pbq-app[style*="--pbq-bg-image"] .pbq-filter { color: var(--pbq-text-color, rgba(255,255,255,0.95)); text-shadow: 0 1px 3px rgba(0,0,0,0.2); }
#pbq-app .pbq-filter input[type="number"] {
  width: 3.5rem; padding: 0.25rem;
  border: 1px solid #dadce0; border-radius: 6px;
  font-size: var(--pbq-text-size, 1.1rem); text-align: center;
  background: #fff; color: #3c4043;
}
#pbq-app .pbq-filter select {
  padding: 0.25rem 0.6rem;
  border: 1px solid #dadce0; border-radius: 6px;
  font-size: var(--pbq-text-size, 1.1rem); background: #fff;
  color: #3c4043; cursor: pointer;
}
#pbq-app .pbq-toggle {
  cursor: pointer; user-select: none;
  padding: 0.25rem 0.5rem; border-radius: 6px;
  transition: background 0.15s;
}
#pbq-app .pbq-toggle:hover { background: rgba(0,0,0,0.04); }
#pbq-app[style*="--pbq-bg-image"] .pbq-toggle:hover { background: rgba(255,255,255,0.15); }
#pbq-app .pbq-toggle input[type="checkbox"] {
  accent-color: #1b4332; width: 16px; height: 16px; cursor: pointer;
}

/* ---- Creativity slider ------------------------------------------ */
#pbq-app .pbq-creativity {
  margin: 0.5rem auto 0;
  display: flex;
  justify-content: center;
  width: 100%;
}
#pbq-app .pbq-creativity-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-size: var(--pbq-text-size, 1.1rem);
  color: var(--pbq-text-color, #5f6368);
  font-weight: 500;
}
#pbq-app[style*="--pbq-bg-image"] .pbq-creativity-label { color: var(--pbq-text-color, rgba(255,255,255,0.95)); text-shadow: 0 1px 3px rgba(0,0,0,0.2); }
#pbq-app .pbq-creativity-text { white-space: nowrap; min-width: 4.5em; }
#pbq-app .pbq-creativity-text:first-child { text-align: right; }
#pbq-app .pbq-creativity-text:last-child { text-align: left; }
#pbq-app .pbq-creativity input[type="range"] {
  width: 140px;
  height: 6px;
  accent-color: #1b4332;
  cursor: pointer;
}

/* ---- Tagline (under title, before search bar) ------------------- */
#pbq-app .pbq-tagline {
  text-align: center;
  font-size: var(--pbq-tagline-size, 1.5rem);
  font-family: var(--pbq-tagline-font, var(--pbq-global-font, inherit));
  color: var(--pbq-tagline-color, #5f6368);
  margin-top: 0;
  margin-bottom: 0.2rem;
  max-width: 650px;
  line-height: 1.4;
}
#pbq-app .pbq-tagline strong { color: var(--pbq-tagline-color, #3c4043); }
#pbq-app[style*="--pbq-bg-image"] .pbq-tagline { color: var(--pbq-tagline-color, rgba(255,255,255,0.85)); }
#pbq-app[style*="--pbq-bg-image"] .pbq-tagline strong { color: var(--pbq-tagline-color, #fff); text-shadow: 0 1px 4px rgba(0,0,0,0.2); }

/* ---- Fun message ------------------------------------------------ */
#pbq-app .pbq-fun-msg {
  text-align: center;
  font-size: var(--pbq-fun-msg-size, 1.35rem);
  font-family: var(--pbq-tagline-font, var(--pbq-global-font, inherit));
  color: var(--pbq-fun-msg-color, #70757a);
  margin-top: 0;
  margin-bottom: 0.85rem;
  max-width: 650px;
  line-height: 1.4;
  font-style: italic;
  font-weight: 500;
}
#pbq-app .pbq-fun-msg a { color: #1a73e8; text-decoration: none; font-style: normal; font-weight: 600; }
#pbq-app .pbq-fun-msg a:hover { text-decoration: underline; }
#pbq-app[style*="--pbq-bg-image"] .pbq-fun-msg { color: var(--pbq-fun-msg-color, rgba(255,255,255,0.95)); text-shadow: 0 1px 3px rgba(0,0,0,0.2); }
#pbq-app[style*="--pbq-bg-image"] .pbq-fun-msg a { color: #bbdefb; }

/* ---- Instagram link ---------------------------------------------- */
#pbq-app .pbq-instagram-link {
  text-align: center;
  margin-top: 0.75rem;
  font-size: var(--pbq-text-size, 1.1rem);
}
#pbq-app .pbq-instagram-link a {
  color: #c13584;
  text-decoration: none;
  font-weight: 600;
  font-style: normal;
  transition: opacity 0.2s;
}
#pbq-app .pbq-instagram-link a:hover {
  opacity: 0.8;
  text-decoration: underline;
}
#pbq-app[style*="--pbq-bg-image"] .pbq-instagram-link a {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  text-decoration: none;
}

/* ---- Admin message area ----------------------------------------- */
#pbq-app .pbq-message {
  text-align: center;
  font-size: 0.75rem;
  color: #1a73e8;
  margin-top: 0.4rem;
  max-width: 480px;
  line-height: 1.3;
}
#pbq-app .pbq-message a { color: #1a73e8; text-decoration: underline; }
#pbq-app[style*="--pbq-bg-image"] .pbq-message { color: #bbdefb; }
#pbq-app[style*="--pbq-bg-image"] .pbq-message a { color: #bbdefb; }

/* ================================================================== */
/*  BOTTOM BAR                                                         */
/* ================================================================== */
#pbq-app .pbq-bottombar {
  flex-shrink: 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 0.4rem 1rem;
}
#pbq-app .pbq-bottombar-text { font-size: 0.7rem; color: #70757a; }
#pbq-app[style*="--pbq-bg-image"] .pbq-bottombar {
  border-top-color: rgba(255,255,255,0.15);
  background: transparent;
}
#pbq-app[style*="--pbq-bg-image"] .pbq-bottombar-text { color: rgba(255,255,255,0.6); }

/* ================================================================== */
/*  RESULTS                                                            */
/* ================================================================== */
#pbq-app #pbq-results-area {
  max-width: 750px;
  margin: 0 auto;
  padding: 2.5rem 3rem 4rem;
}

/* ---- Status ------------------------------------------------------ */
#pbq-app .pbq-status {
  text-align: center; padding: 1rem 1.25rem; border-radius: 12px;
  margin-bottom: 1rem; font-size: 0.9rem; font-weight: 500;
}
#pbq-app .pbq-loading {
  color: #1b4332; background: #ecfdf5; border: 1px solid #d1fae5;
}
#pbq-app .pbq-loading::before {
  content: ''; display: inline-block; width: 16px; height: 16px;
  border: 2.5px solid #2d6a4f; border-top-color: transparent;
  border-radius: 50%; animation: pbq-spin 0.65s linear infinite;
  vertical-align: middle; margin-right: 0.6rem;
}
@keyframes pbq-spin { to { transform: rotate(360deg); } }
#pbq-app .pbq-error {
  color: #991b1b; background: #fef2f2; border: 1px solid #fecaca;
}

/* ---- Recipe card ------------------------------------------------- */
#pbq-app .pbq-recipe {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 20px;
  padding: 2.5rem 3.5rem; box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
#pbq-app .pbq-recipe-header h2 {
  font-size: 1.5rem; font-weight: 800; color: #1b4332;
  margin: 0 0 0.5rem; line-height: 1.3;
}
#pbq-app .pbq-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  font-size: 0.82rem; color: #6b7280;
  margin-bottom: 0.6rem; padding-bottom: 0.6rem; border-bottom: 1px solid #f3f4f6;
}
#pbq-app .pbq-meta strong { color: #374151; }
#pbq-app .pbq-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.25rem; }
#pbq-app .pbq-tag {
  display: inline-block; background: #ecfdf5; color: #065f46;
  padding: 0.2em 0.7em; border-radius: 999px; font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  border: 1px solid #d1fae5;
}
#pbq-app .pbq-section { margin-top: 1.75rem; }
#pbq-app .pbq-section h3 {
  font-weight: 700; margin: 0 0 0.6rem; color: #1b4332;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem;
}
#pbq-app .pbq-ingredients {
  list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem;
}
#pbq-app .pbq-ingredients li {
  padding: 0.35rem 0; border-bottom: 1px solid #f3f4f6;
  font-size: 0.88rem; break-inside: avoid;
}
#pbq-app .pbq-ingredients li:last-child { border-bottom: none; }
#pbq-app .pbq-ingredients li strong { color: #2d6a4f; font-weight: 600; }
#pbq-app .pbq-steps { list-style: none; padding: 0; margin: 0; }
#pbq-app .pbq-steps li {
  padding: 0.55rem 0; line-height: 1.6; font-size: 0.88rem;
  border-bottom: 1px solid #f9fafb;
}
#pbq-app .pbq-steps li:last-child { border-bottom: none; }
#pbq-app .pbq-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; background: #ecfdf5; color: #1b4332;
  font-weight: 700; font-size: 0.75rem; border-radius: 50%; margin-right: 0.6rem;
}
#pbq-app .pbq-section ul { margin: 0; padding-left: 1.2rem; }
#pbq-app .pbq-section ul li { margin-bottom: 0.3rem; font-size: 0.86rem; color: #4b5563; }
#pbq-app .pbq-nutrition-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
#pbq-app .pbq-nutrition-grid > div {
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 0.65rem 1rem; text-align: center; min-width: 85px; flex: 1;
}
#pbq-app .pbq-nutrition-grid strong {
  display: block; font-size: 1.15rem; font-weight: 800; color: #1b4332; line-height: 1.3;
}
#pbq-app .pbq-nutrition-grid small {
  font-size: 0.7rem; color: #9ca3af; text-transform: uppercase;
  letter-spacing: 0.04em; font-weight: 600;
}
#pbq-app .pbq-per { font-weight: 400; font-size: 0.75rem; color: #9ca3af; }
#pbq-app .pbq-warnings ul, #pbq-app .pbq-warnings ul li { color: #991b1b; }
#pbq-app .pbq-disclaimer {
  text-align: center; font-size: 0.75rem; color: #9ca3af;
  margin: 2rem 0 1rem; font-style: italic;
  padding-top: 1rem; border-top: 1px solid #f3f4f6;
}
#pbq-app .pbq-actions { display: flex; gap: 0.75rem; justify-content: center; }
#pbq-app .pbq-btn {
  padding: 0.55rem 1.5rem; font-size: 0.85rem; font-weight: 600;
  border-radius: 4px; border: 1px solid #dadce0; cursor: pointer;
  transition: all 0.15s; background: #f8f9fa; color: #3c4043;
}
#pbq-app .pbq-btn:hover {
  box-shadow: 0 1px 3px rgba(0,0,0,0.12); border-color: #ccc;
}
#pbq-app .pbq-btn-secondary { background: #fff; }

/* ---- Share buttons ---------------------------------------------- */
#pbq-app .pbq-share {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}
#pbq-app .pbq-share .pbq-share-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
  border: none;
  border-radius: 25px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(193,53,132,0.25);
}
#pbq-app .pbq-share .pbq-share-btn:hover {
  opacity: 0.9;
  box-shadow: 0 4px 18px rgba(193,53,132,0.35);
}

/* ---- Allergen note ---------------------------------------------- */
#pbq-app .pbq-allergen-note {
  text-align: center;
  font-size: 0.78rem;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-top: 1.25rem;
  line-height: 1.4;
}

/* ---- Report recipe link ----------------------------------------- */
#pbq-app .pbq-report {
  text-align: center;
  margin-top: 1rem;
}
#pbq-app .pbq-report-link {
  font-size: 0.75rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}
#pbq-app .pbq-report-link:hover {
  color: #6b7280;
  text-decoration: underline;
}

/* ---- Toggles row (separate from servings/people) ---------------- */
#pbq-app .pbq-filters-toggles {
  margin-top: 0.25rem;
}

/* ---- Filter icons (allergen SVGs) ------------------------------- */
#pbq-app .pbq-filter-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ---- Secondary hint line ---------------------------------------- */
#pbq-app .pbq-hint-secondary {
  margin-top: 0;
}

/* ================================================================== */
/*  Responsive                                                         */
/* ================================================================== */
@media (max-width: 560px) {
  #pbq-app .pbq-title { font-size: 2.5rem; }
  #pbq-app .pbq-logo-img { max-width: 280px; max-height: 140px; }
  #pbq-app .pbq-search-bar { max-width: 100%; border-radius: 24px; height: 46px; }
  #pbq-app .pbq-search-bar button { padding: 0 1rem; height: 34px; font-size: 0.82rem; border-radius: 17px; }
  #pbq-app .pbq-filters { gap: 0.3rem 0.6rem; font-size: 0.85rem; }
  #pbq-app .pbq-creativity input[type="range"] { width: 80px; }
  #pbq-app .pbq-recipe { padding: 1.25rem; border-radius: 16px; }
  #pbq-app .pbq-ingredients { columns: 1; }
  #pbq-app .pbq-nutrition-grid > div { min-width: 60px; padding: 0.5rem 0.6rem; }
  #pbq-app .pbq-actions { flex-direction: column; }
  #pbq-app .pbq-topbar { padding: 0.3rem 0.5rem 0; }
  #pbq-app .pbq-hero-center { margin-top: -1vh; }
}
