/*
Theme Name: Qwery
Theme URI: http://qwery.ancorathemes.com/
Description: Qwery is a Premium WordPress theme that has built-in support for popular Page Builders, slider with swipe gestures, and is SEO- and Retina-ready. The unique system of inheritance and override options allows setting up individual parameters for different sections of your site and supported plugins.
Author: AncoraThemes
Author URI: http://ancorathemes.com/
Version: 3.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
Text Domain: qwery
*/
/* TABLE OF CONTENTS:

1. Reset tags and predefined classes
2+ See in the active skin styles

-------------------------------------------------------------- */
/* 1. Reset tags
-------------------------------------------------------------- */
html, body, div, span, applet, object, iframe, video, audio,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, input, textarea, button,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, address, section {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  font-weight: inherit;
  font-style: inherit;
  outline: 0;
  -ms-word-wrap: break-word;
  word-wrap: break-word;
}

applet, object, iframe, video, audio,
fieldset, form, label, legend, input, textarea, button,
table, caption, tbody, tfoot, thead, tr, th, td {
  border: 0;
}

html {
  font-size: 100%;
  /*62.5%;*/
                	          		/* Corrects text resizing oddly in IE6/7 when body font-size is set using em units
									   http://clagnut.com/blog/348/#c790 */
  -webkit-text-size-adjust: 100%;
  /* Prevents iOS text size adjust after orientation change, without disabling user zoom */
  -ms-text-size-adjust: 100%;
                            	/* www.456bereastreet.com/archive/201012/
									   controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
html:not(.edit-post-visual-editor) {
  height: 100%;
  overflow-y: scroll !important;
  overflow-x: hidden;
}

html:not(.edit-post-visual-editor),
body:not(.edit-post-visual-editor) {
  margin: 0;
  padding: 0;
  width: 100%;
}

div.ui-widget,
div.ui-widget .ui-widget,
div.ui-widget .ui-widget-header,
div.ui-widget .ui-widget-content,
div.ui-accordion .ui-accordion-header,
div.ui-state-default,
div.ui-widget-content .ui-state-default,
div.ui-widget-header .ui-state-default {
  font-family: inherit;
  font-size: 1em;
  line-height: inherit;
}

div.ui-widget,
div.ui-widget .ui-widget,
div.ui-widget .ui-widget-header,
div.ui-widget .ui-widget-content,
div.ui-accordion .ui-accordion-header,
div.ui-state-default,
div.ui-widget-content .ui-state-default,
div.ui-widget-header .ui-state-default {
  color: inherit;
  background: none;
  border-style: none;
  -webkit-border-radius: 0;
  -ms-border-radius: 0;
  border-radius: 0;
}

div.ui-datepicker {
  background-color: #fff;
}

div.ui-accordion .ui-accordion-header {
  padding: 0;
}

div.ui-accordion .ui-accordion-header-icon {
  display: none;
}

div.ui-tabs,
div.ui-tabs .ui-tabs-panel,
div.ui-tabs .ui-tabs-nav {
  padding: 0;
}

div.ui-tabs .ui-tabs-nav li {
  float: none;
  margin: 0;
}

div.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
  float: none;
}

/* Predefined classes for users
-------------------------------------------------------------- */
/* Round object corners */
.rounded_none {
  -webkit-border-radius: 0;
  -ms-border-radius: 0;
  border-radius: 0;
}

.rounded_tiny {
  -webkit-border-radius: 4px;
  -ms-border-radius: 4px;
  border-radius: 4px;
}

.rounded_small {
  -webkit-border-radius: 6px;
  -ms-border-radius: 6px;
  border-radius: 6px;
}

.rounded_medium {
  -webkit-border-radius: 10px;
  -ms-border-radius: 10px;
  border-radius: 10px;
}

.rounded_large {
  -webkit-border-radius: 15px;
  -ms-border-radius: 15px;
  border-radius: 15px;
}

.rounded {
  -webkit-border-radius: 50%;
  -ms-border-radius: 50%;
  border-radius: 50%;
}

/* Overflow hidden */
.overflow_hidden {
  overflow: hidden !important;
}

.overflow_x_hidden {
  overflow-x: hidden !important;
}

.overflow_y_hidden {
  overflow-y: hidden !important;
}

/*# sourceMappingURL=style.css.map */

/* ==========================================================
   Web & Mobile Optimisations
   ========================================================== */

/* 1. Fluid images — never overflow their container on any screen */
img,
video,
embed,
object,
iframe {
  max-width: 100%;
  height: auto;
}

/* 2. Touch-friendly tap targets — minimum 44 × 44 px (Apple HIG / WCAG 2.5.5) */
a,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
label,
.menu-item > a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  touch-action: manipulation; /* removes 300 ms tap delay */
}

/* 3. Prevent iOS auto-zoom on focused form inputs (requires font-size >= 16px) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
  font-size: max(16px, 1em); /* iOS will NOT zoom when >= 16 px */
  -webkit-appearance: none;
  border-radius: 0; /* prevents iOS rounded inputs */
}

/* 4. Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* 5. Improved focus visibility for keyboard & touch navigation */
:focus-visible {
  outline: 3px solid #0073aa;
  outline-offset: 3px;
}

/* 6. Better box-sizing model across all elements */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 7. Prevent horizontal overflow on small screens */
body,
.body_wrap,
.page_wrap,
.content_wrap,
.page_content_wrap {
  max-width: 100%;
  overflow-x: hidden;
}

/* 8. Fluid typography — scales smoothly between 320 px and 1200 px viewports */
body {
  font-size: clamp(15px, 1.5vw + 10px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 9. Responsive tables — allow horizontal scroll on small screens */
table {
  width: 100%;
  overflow-x: auto;
  display: block;
  -webkit-overflow-scrolling: touch;
}

/* 10. Mobile-specific layout tweaks */
@media screen and (max-width: 767px) {
  /* Stack sidebars below content on mobile */
  .content_wrap {
    display: flex;
    flex-direction: column;
  }

  /* Full-width images inside posts */
  .post_featured img,
  .wp-post-image {
    width: 100%;
    height: auto;
  }

  /* Remove excessive horizontal padding on small screens */
  .content_wrap,
  .page_content_wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Prevent text overflow on small screens */
  h1, h2, h3, h4, h5, h6, p, li, td, th {
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* 11. High-DPI / Retina display hint — keep border widths sharp */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* 12. Print styles — strip nav, sidebars, footer to save ink */
@media print {
  .header_wrap,
  .footer_wrap,
  .sidebar_wrap,
  nav,
  .menu_mobile,
  .menu_side,
  .back_to_top,
  #addToHomeScreenBtn {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }
}
