/* Make Quarto (BS5) use the exact BS4.6 stack */
:root{
  --bs-font-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                        "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans",
                        sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
                        "Segoe UI Symbol", "Noto Color Emoji";
  --bs-body-font-family: var(--bs-font-sans-serif);
}

/* Apply it site-wide */
html, body { font-family: var(--bs-body-font-family) !important; }


/* Center the page symmetrically and cap width */
#quarto-document-content {
  max-width: 1200px;
  margin-inline: auto;      /* equal left/right */
  padding-inline: 16px;     /* small, even gutter */
}

/* One-card layout: image left, text right */
.class-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
  margin: 16px 0;
}
.class-card .card-left {
  flex: 0 0 360px;          /* fixed left column */
  max-width: 100%;
}
.class-card .card-left img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.class-card .card-right {
  flex: 1 1 auto;           /* text fills remaining space */
  min-width: 0;             /* prevents overflow */
}
.class-card .card-right h3 {
  margin: 4px 0 8px;
}

/* Stack on narrow screens */
@media (max-width: 900px) {
  .class-card {
    flex-direction: column;
  }
  .class-card .card-left { flex-basis: auto; }
}

/* Card subheading for examples */
.class-card .card-right .card-subhead {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 12px 0 4px;
  color: #444;
}
.class-card .card-right .examples {
  margin: 0;
}


/* Email gate CTA */
.cta-section {
  margin: 1.75rem 0 2.25rem;
  padding: 1.25rem 1.25rem;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
@media (min-width: 800px) {
  .cta-section {
    display: grid;
    grid-template-columns: 3fr 1fr;
    align-items: center;
    gap: 1rem;
  }
}
.cta-text h2 {
  margin: 0 0 .35rem;
  font-size: 1.35rem;
}
.cta-text p { margin: 0; color: #444; }

.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
@media (min-width: 800px) { .cta-actions { align-items: flex-end; } }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  background: #1a73e8;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: transform .05s ease, filter .15s ease;
}
.cta-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.cta-arrow { font-size: 1.15em; line-height: 1; }

.cta-note { margin: 0; font-size: .85rem; color: #666; }

/* =========================
   NAVBAR — clean, single source of truth
   ========================= */

.navbar,
.navbar .nav-link,
.navbar-brand {
  font-family: inherit !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Bar look */
.navbar {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  min-height: 64px;
}

/* Brand container */
.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin-right: 1rem;
}

/* Logo — single authoritative rule (removes caps, sets size) */
.navbar .navbar-brand img,
.navbar-brand img,
img.navbar-logo {
  max-height: none !important;   /* override any theme cap */
  height: 30px !important;       /* <-- adjust here (e.g., 44–52px) */
  width: auto !important;
  display: block;
}

/* Nav labels — larger + lighter */
.navbar .nav-link {
  font-weight: 300 !important;   /* you said 300 looks closest */
  font-size: 1.08rem;            /* tweak 1.05–1.12 if needed */
  line-height: 1.2;
  letter-spacing: 0;
  color: #808080;
  padding: .55rem .8rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s ease-in-out;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #ff0000;
  text-decoration: none;
}

/* Spacing between right-side items */
.navbar .navbar-nav .nav-item + .nav-item {
  margin-left: .35rem;
}

/* “Contact Us” button styling */
.navbar .nav-link[href*="contact-us"] {
  background: #ff0000;
  color: #fff !important;
  border-radius: .5rem;
  padding: .5rem .85rem !important;
}
.navbar .nav-link[href*="contact-us"]:hover,
.navbar .nav-link[href*="contact-us"]:focus {
  background: #cc0000;
  color: #fff !important;
}

/* Mobile: scale back to avoid wrapping */
@media (max-width: 991.98px) {
  .navbar .navbar-brand img,
  .navbar-brand img,
  img.navbar-logo { height: 42px !important; }
  .navbar .nav-link { font-size: 1rem; padding: .5rem .7rem; }
}

/* Space between logo and title */
.navbar .navbar-title {
  margin-left: .6rem;         /* tweak: .5–.8rem */
  font-weight: 400;
  font-size: 1.08rem;
  color: #333;
  text-decoration: none;      /* never underline */
  cursor: default;            /* don't look like a link */
}

/* Keep the title from changing color on hover/focus */
.navbar .navbar-title:hover,
.navbar .navbar-title:focus {
  color: #333;
  text-decoration: none;
}

/* If your theme makes the TITLE itself an <a>, neutralize the click. 
   (Logo remains clickable; title behaves like plain text.) */
.navbar a.navbar-title {
  pointer-events: none;
}


/* =========================
   FOOTER — Quarto page-footer, flush-right links
   ========================= */

/* Black bar */
footer.footer {
  background: #000 !important;
  color: #fff !important;
  border-top: none !important;
}

/* Full-width row, compact padding */
footer.footer .nav-footer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;   /* we'll use the center as spacer */
  gap: 16px !important;
  padding: 6px 16px !important;
  background: #000 !important;
  color: #fff !important;
  line-height: 1.2;
  font-size: 1.02rem;
}

/* Left: content width only */
footer.footer .nav-footer-left {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Center: take up the remaining space (acts as spacer) */
footer.footer .nav-footer-center {
  flex: 1 1 auto !important;      /* <-- this fills the middle */
  min-width: 0 !important;
}

/* Right: shrink-to-fit + push to the edge */
footer.footer .nav-footer-right {
  flex: 0 0 auto !important;      /* <-- stop it from owning extra width */
  margin-left: auto !important;    /* <-- pins it to the right edge */
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

/* Links */
footer.footer .nav-footer a {
  color: #fff !important;
  text-decoration: none !important;
}
footer.footer .nav-footer a:hover,
footer.footer .nav-footer a:focus {
  color: #ff0000 !important;
  text-decoration: none !important;
}

/* “Contact Us” pill */
footer.footer .nav-footer a[href*="contact-us"] {
  background: #ff0000 !important;
  color: #fff !important;
  border-radius: .45rem !important;
  padding: .35rem .6rem !important;
  white-space: nowrap !important;
}
footer.footer .nav-footer a[href*="contact-us"]:hover,
footer.footer .nav-footer a[href*="contact-us"]:focus {
  background: #cc0000 !important;
  color: #fff !important;
}

/* Safety */
html, body { overflow-x: hidden; }

/* Make the footer link list a flex row and center items vertically */
footer.footer .nav-footer-right .footer-items,
footer.footer .nav-footer-left  .footer-items {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Ensure each list item centers its anchor */
footer.footer .nav-footer-right .footer-items li,
footer.footer .nav-footer-left  .footer-items li {
  display: flex !important;
  align-items: center !important;
}

/* Make anchors participate in vertical centering */
footer.footer .nav-footer a {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.2 !important;
}
