/* Page title spacing for tablets and phones. Desktop typography stays unchanged. */
@media (max-width: 1024px) {
  /* The About hero has a fixed 64px declaration in the widget stylesheet. */
  .okca-hero h1 {
    max-width: 100%;
    font-size: clamp(36px, 5.2vw, 48px);
    line-height: 1.15;
    overflow-wrap: break-word;
  }

  /* Preserve the ad artwork's aspect ratio instead of stretching it to 332px. */
  .okc-header-shell .okc-header-ads,
  .okc-fixed-ad-root .okc-header-ads,
  .okc-header-shell .okc-header-ads__slide a,
  .okc-header-shell .okc-header-ads__slide picture,
  .okc-fixed-ad-root .okc-header-ads__slide a,
  .okc-fixed-ad-root .okc-header-ads__slide picture {
    height: auto;
  }

  .okc-header-shell .okc-header-ads__slide img,
  .okc-fixed-ad-root .okc-header-ads__slide img {
    height: auto !important;
    object-fit: contain;
  }

  .okc-ed-hero h1,
  .okc-bd-hero h1,
  .okc-article-header h1,
  .okc-stories-hero h1,
  .okc-business-list .okc-business-hero h1,
  .okc-business-list .okc-business-hero h1 span,
  .okc-event-list h1,
  .okc-page-header h1,
  .okc-single-header h1 {
    font-size: clamp(32px, 4.5vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.025em;
  }

  .okc-ed-hero h1,
  .okc-bd-hero h1,
  .okc-article-header h1,
  .okc-stories-hero h1,
  .okc-business-list .okc-business-hero h1 {
    overflow-wrap: break-word;
  }
}

@media (max-width: 767px) {
  .okca-hero h1 {
    font-size: clamp(30px, 8vw, 38px);
    line-height: 1.16;
    letter-spacing: -0.02em;
  }

  /* Keep the full sponsor image available to swipe at a readable size. */
  .okc-header-shell .okc-header-ads__slide picture,
  .okc-fixed-ad-root .okc-header-ads__slide picture {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .okc-header-shell .okc-header-ads__slide picture::-webkit-scrollbar,
  .okc-fixed-ad-root .okc-header-ads__slide picture::-webkit-scrollbar {
    display: none;
  }

  .okc-header-shell .okc-header-ads__slide img,
  .okc-fixed-ad-root .okc-header-ads__slide img {
    width: max(100%, 620px) !important;
    max-width: none !important;
  }

  .okc-header-shell .okc-header-ads__slide::after,
  .okc-fixed-ad-root .okc-header-ads__slide::after {
    content: "Swipe ad to read →";
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgb(0 0 0 / 80%);
    color: #fff;
    font: 600 11px/1.3 Inter, sans-serif;
    pointer-events: none;
  }

  .okc-event-categories,
  .okc-business-categories {
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .okc-event-categories::-webkit-scrollbar,
  .okc-business-categories::-webkit-scrollbar {
    display: none;
  }

  .okc-event-categories a,
  .okc-business-categories a {
    scroll-snap-align: start;
  }

  .okc-article-breadcrumb {
    gap: 5px 8px;
    margin-bottom: 24px;
    color: #d0d0d0;
  }

  .okc-article-breadcrumb a,
  .okc-article-breadcrumb [aria-current] {
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.04em;
  }

  .okc-article-breadcrumb [aria-current] {
    max-width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .okc-bd-kicker span:first-child {
    font-size: 12px;
    line-height: 1.4;
  }

  .ourkutch-contact-form .ourkutch-contact-form__grid {
    gap: 14px;
  }

  .ourkutch-contact-form .ourkutch-contact-form__label {
    margin-bottom: 6px;
  }

  .ourkutch-contact-form .ourkutch-contact-form__field > br {
    display: none;
  }

  .okc-ed-hero h1,
  .okc-bd-hero h1,
  .okc-article-header h1,
  .okc-stories-hero h1,
  .okc-business-list .okc-business-hero h1,
  .okc-business-list .okc-business-hero h1 span,
  .okc-event-list h1,
  .okc-page-header h1,
  .okc-single-header h1 {
    font-size: clamp(28px, 6.5vw, 36px);
    line-height: 1.18;
    letter-spacing: -0.02em;
  }

  .okc-ed-hero-content {
    row-gap: 14px;
  }

  .okc-ed-hero h1,
  .okc-bd-hero h1,
  .okc-article-header h1,
  .okc-stories-hero h1 {
    margin-block: 12px 18px;
  }
}

@media (min-width: 601px) and (max-width: 767px) {
  .okc-header-shell .okc-header-ads__slide::after,
  .okc-fixed-ad-root .okc-header-ads__slide::after {
    display: none;
  }
}

/* Keep page-specific mobile header rules from centering the logo or widening the dropdown. */
@media (max-width: 767px) {
  body .okc-header-nav-bar.okc-header-nav-bar,
  body .okc-header-nav-bar.okc-header-nav-bar > .e-con-inner {
    display: grid !important;
    gap: 0 !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 52px auto auto;
    justify-content: stretch !important;
  }

  body .okc-header-nav-bar {
    height: 64px !important;
    min-height: 64px !important;
  }

  body .okc-header-nav-bar .elementor-widget-okc-site-logo {
    align-self: center !important;
    grid-column: 1;
    grid-row: 1;
    justify-self: start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    width: 64px !important;
  }
  body .okc-header-nav-bar .okc-site-logo-widget__image {
    max-height: 38px;
    width: 64px;
	  margin-top:-10px
  }

  body .okc-header-nav-bar .okc-nav-actions {
    flex: none !important;
    grid-row: 2;
    justify-self: end !important;
    max-width: calc(100vw - 24px) !important;
    width: 280px !important;
  }

  body .okc-header-nav-bar .okc-nav-links {
    flex: none !important;
    grid-row: 3;
    justify-self: end !important;
    max-width: calc(100vw - 24px) !important;
    width: 280px !important;
  }

  body .okc-nav-links .elementor-widget-navigation-menu,
  body .okc-nav-links .elementor-widget-navigation-menu > .elementor-widget-container,
  body .okc-nav-links .hfe-nav-menu-layout,
  body .okc-nav-links nav.hfe-nav-menu__layout-horizontal {
    max-width: 100% !important;
    width: 100% !important;
  }

  body .okc-header-nav-bar .okc-nav-actions > .elementor-element {
    align-self: stretch !important;
    flex: none !important;
    width: 100% !important;
  }

  body .okc-header-nav-bar .okc-nav-actions > .elementor-widget:last-child .elementor-button {
    display: flex;
    justify-content: center;
    width: 100% !important;
  }
}
