/* App shell tweaks for the Next.js mirror.
   Theme CSS is loaded from /obesityinpractice/styles/Obesity_colors.css (public) so webpack
   does not try to resolve missing Edurock template image URLs. */

/* Design tokens for Cvent Agenda / Faculty widgets (aligned to Obesity brand). */
:root {
  --healio-white: #ffffff;
  --healio-page-bg: var(--bodyBg, #fbfbfb);
  --healio-border: var(--borderColor1, #e5e5e5);
  --healio-placeholder: #dadada;
  --healio-label: #8c8c8c;
  --healio-text-secondary: var(--contentColor, #5f6c76);
  --healio-text: var(--bodyColor, #333333);
  --healio-heading: var(--headingColor, #778a67);
  --healio-blue: var(--primaryColor, #778a67);
  --healio-blue-hover: var(--primaryColor_dkr, #5e6550);
  --healio-orange: var(--secondaryColor, #e8b05b);
  --healio-font-sans: var(--bodyFont, Inter, sans-serif);
  --healio-radius: 10px;
  --meeting-heading-font: var(--headingFont, Hind, sans-serif);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* Root globals.css applies a gradient; the meeting theme owns this background. */
  background-image: none;
  background-color: var(--bodyBg, #fbfbfb);
}

.site-main {
  min-height: 50vh;
}

/* Mobile header / off-canvas (from top_navigation.html) */
@media (max-width: 991px) {
  .header__area {
    position: relative;
    z-index: 100;
  }

  .mob_menu_wrapper {
    position: relative;
    z-index: 100;
  }

  .mobile-logo {
    position: relative;
    z-index: 101;
  }

  .mobile-off-canvas-active {
    position: fixed;
    z-index: 2000;
  }

  .body-overlay {
    z-index: 1500;
  }

  .mobile-off-canvas .mobile-aside-button {
    position: relative;
    z-index: 2100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
  }

  .mobile-off-canvas {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 2100;
  }

  .mobile-aside-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2101;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
  }

  .mobile-menu .dropdown-toggle {
    background: transparent;
    border: 0;
    color: inherit;
    width: 100%;
    text-align: left;
    padding: 0;
    cursor: pointer;
  }

  .mobile-menu .dropdown-toggle::after {
    display: none;
  }
}

/* Keep desktop Program submenu a vertical list like the other meeting sites.
   `.menu__right__aligned nav ul { display: flex }` would otherwise lay it out
   in a row. */
.headerarea__main__menu nav ul.headerarea__submenu {
  display: block;
}

.contact-method i {
  width: 1.15em;
  text-align: center;
}

/* Newsletter notice on Vercel mirror */
.email-signup-notice a {
  text-decoration: underline;
}

/* Text links are underlined. Menus, tabs, buttons, and image links stay plain. */
@media screen {
  .site-main a,
  .footerarea a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
  }

  .site-main nav a,
  .site-main .nav-tab,
  .footerarea nav a,
  .footerarea__bottom__social a,
  .site-main .social-button,
  .site-main a.default__button,
  .site-main a.btn,
  .site-main .gallery__icon a,
  .site-main a:has(> img:only-child),
  .footerarea a:has(> img:only-child) {
    text-decoration: none;
  }
}

/* Policy iframes */
#autoHeightIframe {
  width: 100%;
  min-height: 80vh;
  border: 0;
}

.obesity-industry {
  --industry-nav-size: 16px;
  --industry-heading-size: 20px;
  --exhibitor-heading-size: 20px;
  --exhibitor-name-size: 1.35rem;
  --contentColor: #555;
  --company-name-line-height: 2rem;
  --section-header-gap: 100px;
}

.obesity-industry h2 {
  letter-spacing: 0.06em;
}

/* Cvent Agenda / Faculty widgets inside Edurock page shells */
.cvent-widget-shell {
  margin-top: 24px;
}

.cvent-widget-shell :where(button, input, select) {
  font: inherit;
}

/* Stova agenda / faculty widget frames, before their content is measured. */
iframe[data-containerid] {
  width: 100%;
  min-height: 70vh;
  border: 0;
}

/* Agenda intro: "Why Attend?" sits with the body copy, one vertical rule. */
.eventarea__content {
  position: relative;
}

.eventarea__content::before {
  position: absolute;
  content: "";
  width: 1px;
  height: 100%;
  background: var(--darkdeep7, #dddddd);
  left: -30px;
}

.eventarea__content h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--headingColor, #778a67);
}

.eventarea__content p::before {
  display: none;
}

.eventlistarea .social__wrapper {
  margin-top: 24px;
}

/* Avoid double horizontal scroll from CMS fragments */
.page-html-content img {
  max-width: 100%;
  height: auto;
}

/* NPACE endorsement callout on the registration page. */
.page-html-content .npace-endorsement {
  margin: 0 0 48px;
  padding: 28px 32px;
  border: 2px solid var(--primaryColor, #778a67);
  border-radius: var(--borderRadius3, 10px);
  background: #fff;
}

.page-html-content .npace-endorsement__logo {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 0 16px;
}

.page-html-content .npace-endorsement h3 {
  margin: 0 0 12px;
  font-family: var(--headingFont, Hind, sans-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--headingColor, #778a67);
}

.page-html-content .npace-endorsement p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bodyColor, #333);
}

.page-html-content .npace-endorsement p:last-child {
  margin-bottom: 0;
}

.page-html-content .npace-endorsement p.npace-endorsement__about {
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .page-html-content .npace-endorsement {
    padding: 20px;
  }
}

/* Partner logos and labels sit on white, with space and a rule above the footer. */
.obesity-footer {
  margin-top: 50px;
  background: #fff;
  border-top: 2px solid #666;
}

.obesity-partner-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  column-gap: 100px;
  row-gap: 1.5rem;
}

.obesity-partner-bar__item {
  text-align: center;
}

.obesity-partner-bar__item span {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #333;
  font-size: 85%;
  line-height: 1.3;
}

.obesity-partner-bar__item a {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.obesity-partner-bar__item a img {
  height: 60px;
}

.obesity-partner-bar__item img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media print {
  @page {
    margin: 0.5in;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .site-header-root,
  footer,
  .breadcrumbarea_secondary_pg {
    display: none !important;
  }

  .sp_top_100,
  .sp_bottom_100 {
    padding: 0 !important;
  }

  .cvent-widget-shell {
    margin-top: 0;
  }

  .section__title__2,
  .section__title__heading__2,
  .section__title__heading__3 {
    margin: 0 0 8pt !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .section__title__2 h2,
  .heading__fontsize__2 h2 {
    color: #000 !important;
    font-size: 14pt !important;
    font-weight: 700 !important;
    margin: 0 !important;
  }

  .container {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
  }
}
