/* Public guide pages on the marketing host: site bar, footer and cookie banner.
   render_guide() in app/utils/marketing_guides.py adds this file; the banner rules
   are the same as in landing.css. */
.guide-bar,
.guide-footer,
.consent-banner {
  --color-primary: #0d1412;
  --color-accent-dark: #14817a;
  --color-bg: #ffffff;
  --color-bg-alt: #eef5f3;
  --color-text: #1c2623;
  --color-text-muted: #5b6b66;
  --color-border: #e3e9e7;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.guide-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}
.guide-bar a { color: var(--color-primary); text-decoration: none; }
.guide-bar__brand { font-weight: 700; }
.guide-bar__links { display: flex; align-items: center; gap: 16px; }
.guide-bar .guide-bar__start {
  padding: 8px 14px;
  color: #fff;
  font-weight: 600;
  background: var(--color-accent-dark);
  border-radius: 8px;
}
.guide-footer {
  padding: 24px 16px 32px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.8125rem;
}
.guide-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-footer a { color: var(--color-text-muted); }
/* Wide tables and result cards scroll on their own, so the page keeps the screen width. */
@media (max-width: 767px) {
  table,
  pre,
  .md-card {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
  pre { overflow-x: auto !important; }
  code,
  .references p,
  .ui-field-value { overflow-wrap: anywhere; }
}
@media print {
  .guide-bar,
  .guide-footer,
  .consent-banner { display: none; }
}

/* --- Cookie consent banner (consent.js builds the markup; classes only) --- */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  box-sizing: border-box;
  max-height: 100vh;
  overflow-y: auto;
  background: var(--color-bg);
  color: var(--color-primary);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 20px rgba(0,0,0,.08);
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-body);
}
.consent-banner.is-hidden { display: none; }
.consent-banner:focus { outline: none; }
.consent-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.consent-banner__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text);
}
.consent-banner__link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.consent-banner__link:hover,
.consent-banner__link:focus-visible { color: var(--color-primary); }
.consent-banner__details {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-radius: 8px;
  padding: 12px 14px;
}
.consent-banner__details p + p { margin-top: 8px; }
.consent-banner__details.is-hidden { display: none; }
.consent-banner__note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.consent-banner__note.is-hidden { display: none; }
.consent-banner__text.is-hidden { display: none; }
.consent-banner__actions {
  display: flex;
  gap: 10px;
}
/* Decline and Accept keep the same size and stay equally easy to reach. */
.consent-banner__btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-bg);
  border: 1px solid var(--color-text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.consent-banner__btn:hover { background: var(--color-bg-alt); }
.consent-banner__btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.consent-banner__btn--accept {
  font-weight: 600;
  color: #fff;
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}
.consent-banner__btn--accept:hover {
  background: #0d5f59;
  border-color: #0d5f59;
}
.consent-banner__btn.is-hidden { display: none; }
body.consent-banner-open { padding-bottom: 220px; }

@media (min-width: 768px) {
  .consent-banner {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 380px;
    max-height: calc(100vh - 48px);
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.14);
  }
}
