/* blog-listing-critical.css
   Slim ATF layout for MasterBlogListing only.
   Do NOT use on home / news / product listing — those keep home-legacy-critical.min.css.
   Covers: container/row/cols, visible-*, modal, clearfix, small spacing helpers.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body {
  margin: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857;
  letter-spacing: 0.02em;
  color: #000;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

img {
  border: 0;
  vertical-align: middle;
}

a {
  background-color: transparent;
}

button,
input {
  margin: 0;
  font: inherit;
  color: inherit;
}

button {
  overflow: visible;
  text-transform: none;
  cursor: pointer;
}

/* Header / location / account — same stack as site master + header-modern */
.tb-header,
.tb-header button,
.tb-header input,
.tb-loc-chip,
.tb-loc-chip__label,
.tb-account-chip,
.tb-account-chip__label,
.tb-site-banner,
.page-wraper,
#main-content {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.clearfix:before,
.clearfix:after,
.container:before,
.container:after,
.row:before,
.row:after {
  content: " ";
  display: table;
}

.clearfix:after,
.container:after,
.row:after {
  clear: both;
}

.container {
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 768px) {
  .container { width: 750px; }
}

@media (min-width: 992px) {
  .container { width: 970px; }
}

@media (min-width: 1200px) {
  .container { width: 1170px; }
}

.row {
  margin-left: -15px;
  margin-right: -15px;
}

/* Cards inside listing grid must never use Bootstrap float widths */
.blog-listing-grid > .blog-card,
.blog-listing-grid > .post.card-container,
.blog-listing-grid > [class*="col-"] {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.col-xs-12,
.col-sm-6,
.col-sm-12,
.col-md-6,
.col-md-12,
.col-lg-6,
.col-lg-12 {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
}

.col-xs-12 {
  float: left;
  width: 100%;
}

@media (min-width: 768px) {
  .col-sm-6 { float: left; width: 50%; }
  .col-sm-12 { float: left; width: 100%; }
}

@media (min-width: 992px) {
  .col-md-6 { float: left; width: 50%; }
  .col-md-12 { float: left; width: 100%; }
}

@media (min-width: 1200px) {
  .col-lg-6 { float: left; width: 50%; }
  .col-lg-12 { float: left; width: 100%; }
}

.text-center {
  text-align: center;
}

/* Bootstrap 3 visible-* (only variants used on blog listing / banner) */
.visible-xs,
.visible-md,
.visible-lg {
  display: none !important;
}

@media (max-width: 767px) {
  .visible-xs {
    display: block !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .visible-md {
    display: block !important;
  }
}

@media (min-width: 1200px) {
  .visible-lg {
    display: block !important;
  }
}

/* Enquiry modal shell (MasterBlogListing) */
.modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}

.modal.fade {
  opacity: 0;
  transition: opacity 0.15s linear;
}

.modal.fade.in {
  opacity: 1;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 10px;
}

.modal-content {
  position: relative;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  background-clip: padding-box;
  outline: 0;
}

.modal-header {
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.modal-header .close {
  margin-top: -2px;
}

.modal-body {
  position: relative;
  padding: 15px;
}

.close {
  float: right;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.2;
  background: transparent;
  border: 0;
  padding: 0;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.5;
}

@media (min-width: 768px) {
  .modal-dialog {
    width: 350px;
    margin: 30px auto;
  }
}

.collapse {
  display: none;
}

.collapse.in {
  display: block;
}

.page-wraper {
  overflow: hidden;
}

.section-full {
  clear: both;
}

.m-t20 { margin-top: 20px; }
.m-t30 { margin-top: 30px; }
.m-b20 { margin-bottom: 20px; }

.marginModal {
  /* keeps enquiry modal wrapper class from master markup */
}

/* Top site banner — fixed slot before CommonBanner paints */
.tb-site-banner {
  box-sizing: border-box;
  padding: 8px 0;
  height: 106px;
  overflow: hidden;
  line-height: 0;
  text-align: center;
  display: block !important;
  visibility: visible !important;
  margin: 0;
}
.tb-site-banner .tb-banner-slot {
  position: relative;
  width: 100%;
  max-width: 970px;
  height: 90px;
  margin: 0 auto;
  background: #eef1f5;
  overflow: hidden;
}
.tb-site-banner a {
  display: block;
  position: absolute;
  inset: 0;
}
.tb-site-banner img,
.tb-site-banner picture {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
  background: #eef1f5;
}
@media (max-width: 767px) {
  .tb-site-banner { height: 66px; }
  .tb-site-banner .tb-banner-slot { height: 50px; max-width: 100%; }
}
