/* Runtime replacements only. Published layout and page CSS precede this file. */
html { scroll-behavior: smooth; }
/* Intrinsic HTML dimensions reserve space; responsive CSS must keep the ratio. */
img { height: auto; max-width: 100%; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
:focus-visible { outline: 2px solid #8ad982; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; background: #121a21; color: #eaeaea; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.navbar-dropdown_component > summary { list-style: none; cursor: pointer; }
.navbar-dropdown_component > summary::-webkit-details-marker { display: none; }
.navbar-dropdown_component[open] > .w-dropdown-list { display: block; text-align: left; background-color: #121212; border: 1px solid #242424; border-radius: .5rem; padding: 1.5rem; }
.navbar-dropdown_component { overflow: visible; }
.navbar_menu-button { background: transparent; color: inherit; }
[hidden] { display: none !important; }
.w-tab-link { cursor: pointer; }
.w-slider-mask { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.w-slide { scroll-snap-align: start; }
.w-slider-arrow-left, .w-slider-arrow-right { background: transparent; border: 0; padding: 0; color: inherit; }
.w-slider-nav button.w-slider-dot { border: 0; padding: 0; }
details.qg-qa > summary, details.faq_accordion > summary { list-style: none; cursor: pointer; }
details.qg-qa > summary::-webkit-details-marker, details.faq_accordion > summary::-webkit-details-marker { display: none; }
details[open] > .faq_answer { height: auto !important; }
details[open] > .faq_question .faq_icon-wrappper { transform: rotate(45deg); }
pre { max-width: 100%; overflow-x: auto; }
.text-rich-text table { display: block; max-width: 100%; overflow-x: auto; }
.text-rich-text img { height: auto; }
.blog_v3_author-wrapper > img { width: 48px; height: 48px; border-radius: 50%; }
/* Let the published two-column callouts shrink without spilling off-screen. */
#qg-pricing .marketplace-grid > .callout-box { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 991px) {
  .navbar_container { position: relative; }
  .navbar_component .navbar_menu.lite-menu-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #121a21; padding: 1rem; max-height: 80vh; overflow-y: auto; z-index: 1000; }
  .navbar_menu .w-dropdown { width: 100%; }
  .navbar_menu .w-dropdown-list { position: static; }
  .navbar-dropdown_component[open] > .w-dropdown-list { border-style: none; width: auto; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Image lightbox overlay only; published page layout is unchanged. */
.qg-lightbox[open] { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 3.25rem 1rem 1rem; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.qg-lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
html:has(.qg-lightbox[open]) { overflow: hidden; }
.qg-lightbox__image { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.qg-lightbox__close { position: fixed; top: 0.75rem; right: 0.75rem; z-index: 1; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgba(18, 18, 18, 0.85); color: #fff; font: 1.75rem/1 sans-serif; cursor: pointer; }

/* Contact mailto fallback: copyable draft shown after Open email draft. */
.mail-fallback { display: grid; gap: 14px; color: #C9D3D8; font-size: 14px; line-height: 1.55; }
.mail-fallback p { margin: 0; }
.mail-fallback a { color: #4FAA45; }
.mail-fallback__row { display: grid; gap: 8px; }
.mail-fallback__label { display: grid; gap: 7px; font-size: 15px; font-weight: 700; color: #EAEAEA; }
.mail-fallback__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mail-fallback input, .mail-fallback textarea { width: 100%; box-sizing: border-box; background: #0E151B; color: #EAEAEA; border: 1px solid #3A4B55; border-radius: 10px; padding: 13px 14px; font: inherit; font-size: 16px; font-weight: 400; line-height: 1.5; }
.mail-fallback textarea { min-height: 150px; resize: vertical; }
.mail-fallback__copy { justify-self: start; background: transparent; color: #EAEAEA; border: 1px solid #3A4B55; border-radius: 10px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; min-height: 40px; }

/* Contact mailto fallback: make it obvious the form has not sent mail. */
.mail-fallback .mail-result { color: #F06A62; font-weight: 700; }

/* Blog index search only: narrower centered bar, Search button on the same row at desktop. */
.blog-search-row { max-width: 600px; width: 100%; margin-left: auto; margin-right: auto; }
.blog-search-row .search-2 { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 12px; margin: 0; }
.blog-search-row .search-2 .w-input { flex: 1 1 auto; width: auto; min-width: 0; margin: 0; }
.blog-search-row .search-2 .search-button-2 { flex: 0 0 auto; width: auto; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
@media (max-width: 479px) {
  .blog-search-row .search-2 { flex-direction: column; }
  .blog-search-row .search-2 .w-input,
  .blog-search-row .search-2 .search-button-2 { width: 100%; }
}

/* FAQ answers split into paragraphs: even gap between paragraphs, nothing extra after the last. */
.faq_answer p:has(+ p), .qgi-faq-answer p:has(+ p), .qgo-faq-answer p:has(+ p), .faq_v1_item p:has(+ p) { margin-bottom: 0; }
.faq_answer p + p, .qgi-faq-answer p + p, .qgo-faq-answer p + p, .faq_v1_item p + p { margin-top: 0.9em; }
.qg-a > p, .faq-answer > p, dl.qg-faq dd > p, .qg-faq details > div > p { margin: 0; font: inherit; color: inherit; letter-spacing: inherit; }
.qg-a > p + p, .faq-answer > p + p, #qg-pricing .faq-answer > p + p, dl.qg-faq dd > p + p, .qg-faq details > div > p + p { margin-top: 0.9em; }

/* 390px containment: chips, comparison tables, and code samples must scroll
   inside their own container instead of widening the page. Desktop (1440)
   already fits these elements, so overflow-x: auto does not change layout. */

/* Blog category chips: keep the existing single row. The live CSS used
   width: 100vw / negative margin, which overflowed the page and clipped
   later labels. At mobile widths, stay inside the container and allow a
   visible horizontal scroll so every chip can be read. */
@media (max-width: 767px) {
  .category-filter-menu,
  .category-filter-menu.no-scrollbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .category-filter-menu .w-dyn-list,
  .category-filter-menu .category-filter-link-wrapper,
  .category-filter-menu .w-dyn-items {
    display: flex;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }
  .category-filter-menu .w-dyn-item,
  .category-filter-menu .category-filter-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  /* Featured artwork was expanding this section to the image's intrinsic width.
     Category indexes use the v1 section class with the same pattern. */
  .section_blog_v3,
  .section_blog_v3 .blog_content_wrapper,
  .section_blog_v3 .padding-global,
  .section_blog_v3 .container-large,
  .section_blog_v3 .padding-section-large,
  .section_blog_v3 .blog_v3_component,
  .section_blog_v1,
  .section_blog_v1 .blog_content_wrapper,
  .section_blog_v1 .padding-global,
  .section_blog_v1 .container-large,
  .section_blog_v1 .padding-section-large,
  .section_blog_v1 .blog_v1_component {
    max-width: 100%;
    min-width: 0;
  }
  .section_blog_v3 .container-large,
  .section_blog_v1 .container-large {
    overflow-x: hidden;
  }
  /* Live-port posts and shared chrome use .container-large { display: flex }.
     Flex items default to min-width: auto, so a wide table, review row, or
     testimonial slide can expand the page. Cap only at mobile. */
  .padding-global,
  .container-large,
  .container-medium,
  .container-small,
  .padding-section-large,
  .padding-section-medium,
  .section_blog-post-header,
  .blog-post_component,
  .max-width-large,
  .testimonial_v5_component,
  .testimonial_v5_slider,
  .testimonial_v5_mask,
  .qg-review-track,
  .w-layout-grid,
  main.main-wrapper {
    max-width: 100%;
    min-width: 0;
  }
  main.main-wrapper,
  main .container-large,
  .section_blog-post-header .container-large {
    overflow-x: hidden;
  }
  .text-rich-text,
  .w-richtext,
  .qg-review-track {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Wide media should never outgrow their column at any breakpoint. */
video, iframe { max-width: 100%; }

/* Pricing comparison tables: scroll inside .table-wrap, not the page.
   Do not change table width at desktop so 1440 layout stays the same. */
#qg-pricing .comparison-block,
#qg-pricing #comparison {
  min-width: 0;
}
#qg-pricing .table-wrap,
.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Blog code samples: scroll inside the pre, not the page.
   Only min-width: 0 here. max-width: 100% would override the desktop
   prose column on .qg-container / .qg-prose and widen 1440 posts. */
article.qg-post,
article.qg-post .qg-container,
article.qg-post .qg-prose,
article.qg-post .text-rich-text {
  min-width: 0;
}
figure.qg-code,
.qg-code {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.qg-code pre,
figure.qg-code pre,
pre[tabindex],
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile readability: 2026-11-29. Overrides only. Desktop (min-width: 768px)
   layout is unchanged. Do not edit hashed live/*.css for these tweaks. */
@media (max-width: 767px) {
  /* Pricing comparison tables: sticky first column, visible swipe cue,
     and plan columns wide enough that a label is not sliced mid-word. */
  #qg-pricing .scroll-hint {
    display: flex !important;
    font-size: 13px;
    font-weight: 700;
    color: #8ad982;
    margin: 0 0 10px;
  }
  #qg-pricing .table-wrap {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  #qg-pricing .table-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2rem;
    pointer-events: none;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(to right, transparent, rgba(18, 26, 33, 0.95));
  }
  #qg-pricing .table-wrap table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }
  #qg-pricing .table-wrap th:first-child,
  #qg-pricing .table-wrap td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 7.25rem;
    max-width: 8.25rem;
    width: 8rem;
    box-shadow: 6px 0 8px -4px rgba(0, 0, 0, 0.45);
  }
  #qg-pricing .table-wrap thead th:first-child {
    z-index: 3;
    background: #0d1117;
  }
  #qg-pricing .table-wrap tbody td:first-child {
    background: #161d24;
  }
  #qg-pricing .table-wrap tbody tr:nth-child(even) td:first-child {
    background: #181f26;
  }
  #qg-pricing .table-wrap th:not(:first-child),
  #qg-pricing .table-wrap td:not(:first-child) {
    min-width: 9.75rem;
  }

  /* Blog and other prose tables: scroll in a wrapper so main-wrapper's
     overflow-x: hidden cannot clip columns. Sticky first column + edge fade. */
  .qg-table-scroll {
    position: relative;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .qg-table-scroll::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1.75rem;
    pointer-events: none;
    background: linear-gradient(to right, transparent, #121a21);
  }
  .qg-table-scroll table,
  .qg-prose .qg-table-scroll table,
  .text-rich-text .qg-table-scroll table,
  .w-richtext .qg-table-scroll table {
    display: table;
    width: max-content;
    max-width: none;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }
  .qg-table-scroll th:first-child,
  .qg-table-scroll td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #121a21;
    box-shadow: 6px 0 8px -4px rgba(0, 0, 0, 0.4);
  }

  /* Blog code: keep horizontal scroll, add a light trailing fade as a cue. */
  .qg-code,
  figure.qg-code,
  .text-rich-text pre,
  .qg-prose pre,
  pre[tabindex] {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.25rem), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.25rem), transparent 100%);
  }

  /* Blog category chips: fade the trailing edge so the horizontal scroll is obvious. */
  .category-filter-menu,
  .category-filter-menu.no-scrollbar {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.75rem), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.75rem), transparent 100%);
  }

  /* Bump 11px labels slightly. */
  .qg-home-hero-2026 .qg-support-pill,
  .qg-home-hero-2026 .qg-reassurance-inner {
    font-size: 13px !important;
  }
  #qg-pricing .tier-infra,
  #qg-pricing .badge {
    font-size: 12px;
  }

  /* Grow tight tap targets toward 44px without changing desktop spacing. */
  .footer_link,
  .footer_legal-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .footer_social-link,
  .footer_social-link.w-inline-block {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .navbar_menu-button,
  .navbar_menu-button.w-nav-button {
    min-width: 44px;
    min-height: 44px;
  }
  .qg-home-hero-2026 .qg-support-pill a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Cookie banner: compact on small screens. Base styles live in production.css
   (production builds only). These rules also apply when that file is present
   if this file is loaded last on staging; production.css adds the same query
   so a later-loaded production.css cannot undo the compact layout. */
@media (max-width: 767px) {
  #custom-cookie-banner {
    padding: 0.65rem 1rem 0.8rem;
    gap: 0.55rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    align-items: flex-start;
    max-height: 40vh;
  }
  #custom-cookie-banner p {
    flex: 1 1 auto;
    max-width: none;
  }
  #custom-cookie-banner .cookie-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 0.5rem;
  }
  #custom-cookie-banner .cookie-actions button {
    min-height: 44px;
    padding: 0.5rem 1rem;
  }
}
