/* Client checklist fixes: shared ad system, hero readability, adaptive ad layouts, state banner, service area. */
.mlg-page .mlg-live-weather {width:100%;box-sizing:border-box;padding:24px;color:#fff;background:#083b2e;border-radius:12px;text-align:left;}
.mlg-page .mlg-live-weather header {display:flex;justify-content:space-between;align-items:center;gap:20px;}
.mlg-page .mlg-live-weather h3 {margin:4px 0;font:28px/1.2 Georgia,serif;color:#fff;}
.mlg-page .mlg-live-weather header p {margin:4px 0 16px;font-size:13px;}
.mlg-page .mlg-live-weather a {color:#fff;font-size:13px;}
.mlg-live-weather__periods {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;}
.mlg-live-weather__periods article {padding:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:8px;}
.mlg-page .mlg-live-weather__periods h4 {font:600 14px/1.3 Arial,sans-serif;margin:0 0 12px;color:#fff;}
.mlg-live-weather__periods strong {font:36px/1.1 Georgia,serif;color:#f4d8a5;}
.mlg-page .mlg-live-weather__periods p {font:13px/1.4 Arial,sans-serif;margin:12px 0;}
.mlg-live-weather__periods small,.mlg-live-weather footer {font:11px/1.5 Arial,sans-serif;color:#d1e5dc;}
.mlg-live-weather footer {margin-top:14px;}
@media(max-width:800px){.mlg-live-weather__periods{grid-template-columns:repeat(3,minmax(0,1fr));}.mlg-page .mlg-live-weather header{align-items:flex-start;flex-direction:column;gap:0;margin-bottom:14px;}}
@media(max-width:420px){.mlg-live-weather__periods{grid-template-columns:repeat(2,minmax(0,1fr));}.mlg-page .mlg-live-weather{padding:16px;}}

/* 1. Shared clickable ad wrapper */
.mlg-page .mlg-ad-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.mlg-page .mlg-ad-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: inherit;
  pointer-events: none;
}
.mlg-page .mlg-ad-card .mlg-ad-link img {
  border-radius: inherit;
}
.mlg-page .mlg-ad-link:focus-visible {
  outline: 3px solid #d4ac62;
  outline-offset: 2px;
}
.mlg-page .mlgs-sponsor__track > .mlgs-sponsor__link {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: auto;
}
.mlg-page .mlgs-sponsor__track > .mlgs-sponsor__link img {
  height: auto;
}

/* 2. State banner ad: fill the horizontal container without distortion */
.mlg-state-page .mlgs-sponsor {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.mlg-state-page .mlgs-sponsor__track {
  width: 100%;
  min-height: 0;
}
.mlg-state-page .mlgs-sponsor img,
.mlg-state-page .mlgs-sponsor__track > .mlgs-sponsor__link img {
  display: block;
  width: 100%;
  min-width: 100%;
  height: auto;
  aspect-ratio: 838 / 95;
  object-fit: contain;
  margin: 0;
}
.mlg-state-page .mlgs-county-popup .mlgs-sponsor img {
  width: 100%;
  height: auto;
}

/* 3. Hero / story text readability (site-wide rule for text placed on photographs) */
.mlg-page .mlgs-hero__content h1,
.mlg-page .mlgs-hero__content strong,
.mlg-page .mlgs-hero__content div,
.mlg-page .mlgs-hero__content span,
.mlg-page .mlgc-hero__content h1,
.mlg-page .mlgc-hero__content strong,
.mlg-page .mlgc-hero__content div,
.mlg-page .mlgc-hero__content::before,
.mlg-page .mlgs-dispatch__lead > div,
.mlg-page .mlgc-lead__card,
.mlg-page .mlgs-gallery__hero,
.mlg-page .mlgc-gallery__hero,
.mlg-page .mlgs-dispatch__title,
.mlg-page .mlgs-help .mlg-wrap,
.mlg-page .mlgs-journey .mlg-wrap,
.mlg-page .mlgc-help .mlg-wrap,
.mlg-page .mlgc-directory__header > div {
  text-shadow: 0 2px 6px rgba(0, 0, 0, .75), 0 4px 22px rgba(0, 0, 0, .55);
}
.mlg-page .mlgs-hero__content h1,
.mlg-page .mlgc-hero__content h1,
.mlg-page .mlgs-dispatch__lead h3,
.mlg-page .mlgc-lead__card h2,
.mlg-page .mlgs-gallery__hero h2,
.mlg-page .mlgc-gallery__hero h2 {
  text-shadow: 0 3px 8px rgba(0, 0, 0, .85), 0 8px 30px rgba(0, 0, 0, .6);
}
.mlg-page .mlgs-hero__shade,
.mlg-page .mlgc-hero__shade {
  background:
    linear-gradient(90deg, rgba(4, 22, 17, .9) 0%, rgba(4, 22, 17, .72) 34%, rgba(4, 22, 17, .34) 60%, rgba(4, 22, 17, .08) 100%),
    linear-gradient(180deg, rgba(4, 22, 17, .35) 0%, rgba(4, 22, 17, 0) 30%, rgba(4, 22, 17, 0) 70%, rgba(4, 22, 17, .45) 100%);
}
.mlg-state-page .mlgs-dispatch__lead::before,
.mlg-page .mlgc-lead::before {
  background:
    linear-gradient(90deg, rgba(4, 24, 18, .9) 0%, rgba(4, 24, 18, .7) 38%, rgba(4, 24, 18, .25) 68%, rgba(4, 24, 18, 0) 100%),
    linear-gradient(0deg, rgba(4, 24, 18, .7) 0%, rgba(4, 24, 18, .1) 45%, rgba(4, 24, 18, 0) 100%);
}
.mlg-state-page .mlgs-dispatch__lead::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}
.mlg-state-page .mlgs-gallery__hero::before {
  background: linear-gradient(180deg, rgba(8, 27, 22, .55), rgba(8, 27, 22, .2) 45%, rgba(8, 27, 22, .55));
}
.mlg-county-page .mlgc-gallery__hero {
  position: relative;
  isolation: isolate;
}
.mlg-county-page .mlgc-gallery__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 27, 22, .5), rgba(8, 27, 22, .18) 45%, rgba(8, 27, 22, .5));
  pointer-events: none;
}
.mlg-page .mlgs-dispatch__title {
  position: relative;
  isolation: isolate;
}
.mlg-page .mlgs-dispatch__title::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 24, 18, .35), rgba(4, 24, 18, .55));
  pointer-events: none;
}

/* 4. County business ads: balanced static layout for 1-3 ads, carousel for 4+ */
.mlg-county-page .mlgc-business-slider--static {
  display: block;
}
.mlg-county-page .mlgc-business-slider--static .mlg-slider__arrow,
.mlg-county-page .mlgc-business-slider--static .mlg-slider__dots {
  display: none;
}
.mlg-county-page .mlgc-business-slider--static .mlg-slider__viewport {
  padding: 4px 0 40px;
  perspective: none;
  overflow: visible;
}
.mlg-county-page .mlgc-business-slider--static .mlg-slider__track {
  position: static;
  display: flex;
  height: auto;
  justify-content: center;
  align-items: stretch;
  gap: 28px;
  transform: none !important;
}
.mlg-county-page .mlgc-business-slider--static .mlg-ad-card {
  position: static;
  flex: 0 1 32%;
  width: 32%;
  max-width: 340px;
  height: auto;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-box-reflect: unset;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.mlg-county-page .mlgc-business-slider--static .mlg-ad-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.mlg-county-page .mlgc-business-slider--count-1 .mlg-ad-card {
  flex-basis: 36%;
  width: 36%;
  max-width: 380px;
}
.mlg-county-page .mlgc-business-slider--count-2 .mlg-ad-card {
  flex-basis: 34%;
  width: 34%;
}
@media (max-width: 760px) {
  .mlg-county-page .mlgc-business-slider--static .mlg-slider__track {
    gap: 16px;
  }
  .mlg-county-page .mlgc-business-slider--static .mlg-ad-card,
  .mlg-county-page .mlgc-business-slider--count-1 .mlg-ad-card,
  .mlg-county-page .mlgc-business-slider--count-2 .mlg-ad-card {
    flex-basis: 46%;
    width: 46%;
  }
  .mlg-county-page .mlgc-business-slider--count-3 .mlg-slider__track {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .mlg-county-page .mlgc-business-slider--static .mlg-slider__track {
    flex-wrap: wrap;
  }
  .mlg-county-page .mlgc-business-slider--static .mlg-ad-card,
  .mlg-county-page .mlgc-business-slider--count-1 .mlg-ad-card,
  .mlg-county-page .mlgc-business-slider--count-2 .mlg-ad-card {
    flex-basis: 78%;
    width: 78%;
  }
}

/* 5. Business page ads: keep the section intentional with any number of ads */
.mlg-ad-page .mlg-ad-current .mlg-ad-coverflow--single {display:block;}
.mlg-ad-page .mlg-ad-current .mlg-ad-coverflow--single .mlg-slider__viewport {width:100%;padding:12px 0;perspective:none;}
.mlg-ad-page .mlg-ad-current .mlg-ad-coverflow--single .mlg-slider__track {display:flex;width:100%;height:auto;transform:none!important;}
.mlg-ad-page .mlg-ad-current .mlg-ad-coverflow--single .mlg-ad-card {position:static;flex:0 1 380px!important;width:min(100%,380px)!important;max-width:380px!important;min-width:0;height:auto!important;padding:0!important;aspect-ratio:2/3!important;transform:none!important;filter:none;-webkit-box-reflect:unset;}
.mlg-ad-page .mlg-ad-current .mlg-ad-coverflow--single .mlg-ad-card img {width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:2/3;object-fit:contain;}
.mlg-ad-page .mlg-ad-current .mlg-slider__track {
  justify-content: center;
}
.mlg-ad-page .mlg-ad-coverflow--single .mlg-slider__arrow,
.mlg-ad-page .mlg-ad-coverflow--single .mlg-slider__dots,
.mlg-ad-page .mlg-ad-coverflow--cycling .mlg-slider__dots {
  display: none;
}
.mlg-ad-page .mlg-ad-current .mlg-ad-card .mlg-ad-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* 6. Service area: center a single city, balance small lists */
.mlg-ad-page .mlg-ad-area__box--single .mlg-ad-area__content ul,
.mlg-ad-page .mlg-ad-area__box--single .mlg-ad-area__content ol,
.mlg-ad-page .mlg-ad-area__box--few .mlg-ad-area__content ul,
.mlg-ad-page .mlg-ad-area__box--few .mlg-ad-area__content ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 48px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  grid-template-columns: none;
}
.mlg-ad-page .mlg-ad-area__box--single .mlg-ad-area__content li,
.mlg-ad-page .mlg-ad-area__box--few .mlg-ad-area__content li {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  text-align: center;
}

/* 7. Weather widget embed: dark panel so light widget text stays readable */
.mlg-page .mlgs-weather--embed {
  min-height: 0;
  padding: 14px 18px;
  border-radius: 10px;
  background: #073b2d;
  color: #fff;
}
.mlg-page .mlgs-weather--embed iframe {
  min-height: 0;
}

/* Texas homepage: transparent weather embed and county navigation. */
.mlg-state-page .mlgs-weather.mlgs-weather--embed { background:transparent; border:0; box-shadow:none; padding:0; height:auto; min-height:0; }
.mlg-state-page .mlgs-weather--embed iframe { background:transparent; min-height:0; }
.mlg-state-page .mlgs-county-list { max-height:560px; overflow-y:auto; }
.mlg-state-page .mlgs-county-popup__list { max-height:420px; overflow-y:auto; }
.mlg-state-page .mlgs-mountain-divider { display:none; }
.mlg-state-page .mlgs-resources [role="tabpanel"] h4 { margin:22px 0 6px; }
.mlg-state-page .mlgs-resources [role="tabpanel"] p { line-height:1.65; }

/* County content support. */
.mlg-county-page .weatherwidget-io {width:100%;}
.mlg-county-page .mlgc-directory-section a {overflow-wrap:anywhere;}

/* County forecast links remain readable on the transparent weather panel. */
.mlg-county-page .mlg-local-forecast{color:#153c31;padding:20px 28px;text-align:left;background:transparent;}
.mlg-county-page .mlg-local-forecast h3,.mlg-county-page .mlg-local-forecast p{color:#153c31;}
.mlg-county-page .mlg-local-forecast a{color:#153c31;text-decoration:underline;text-underline-offset:3px;}

/* October 5: restore the supplied design; preserve the original content layout. */
.mlg-county-page .mlgc-directory-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 48px;}
.mlg-county-page .mlgc-directory-grid h3 {font-size:24px;}
.mlg-county-page .mlgc-directory-grid li {font-size:17px;line-height:1.6;margin-bottom:12px;}
.mlg-county-page .mlgc-directory-grid ol {columns:1;}
.mlg-county-page .mlgc-directory-grid section {border:0;}

.mlg-county-page .mlgc-resource-panels p {line-height:1.65;}
.mlg-county-page .mlgc-resource-tabs {display:flex;flex-wrap:wrap;justify-content:center;}
.mlg-county-page .mlgc-resource-tabs button {width:auto;flex:0 0 11.111%;}
.mlg-county-page .mlgs-weather--embed {background:#073b2d;color:white;border-radius:10px;padding:14px 18px;}
.mlg-county-page .mlg-local-forecast,.mlg-county-page .mlg-local-forecast h3,.mlg-county-page .mlg-local-forecast p,.mlg-county-page .mlg-local-forecast a {color:white;}
@media(max-width:700px){
 .mlg-county-page .mlgc-directory-grid {grid-template-columns:1fr;}
 .mlg-county-page .mlgc-resource-tabs button {flex-basis:33.333%;}
}

.mlg-county-page .mlg-resource-entry {margin:0 0 12px;text-align:left;}
.mlg-county-page .mlg-resource-entry p {margin:0;line-height:1.5;}
.mlg-county-page .mlg-resource-entry strong {font-weight:700;}

/* Resource contact layout: October 5, 2026. */
.mlg-county-page .mlg-resource-group {margin:28px 0 36px;text-align:left;}
.mlg-county-page .mlg-resource-group>h4 {font:600 13px/1.5 Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#77623b;margin:0 0 8px;}
.mlg-county-page .mlg-resource-cards {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:48px;}
.mlg-county-page .mlg-resource-cards>.mlg-resource-entry {border-top:1px solid #dce4de;padding:20px 0;margin:0;min-width:0;}
.mlg-county-page .mlg-resource-entry>p:first-child {margin-bottom:6px;font-size:19px;color:#153c31;}
.mlg-county-page .mlg-resource-entry p {line-height:1.6;overflow-wrap:anywhere;}
.mlg-county-page .mlg-resource-entry>p:last-child {margin-top:12px;}
.mlg-county-page .mlg-resource-contact {margin-top:12px;}
.mlg-county-page .mlg-resource-contact p {margin:4px 0;}
.mlg-county-page .mlg-resource-contact span {font-weight:600;margin-right:6px;}
.mlg-county-page .mlg-resource-entry a {text-underline-offset:3px;}
@media(max-width:700px){.mlg-county-page .mlg-resource-cards{grid-template-columns:1fr;}.mlg-county-page .mlg-resource-contact a{display:inline-block;padding:3px 0;}}

/* Advertiser refresh: retain the cream, green, gold and painted image edges. */
.mlg-ad-page .mlg-ad-hero__copy { padding:48px 32px; }
.mlg-ad-page .mlg-ad-hero__copy h1 { font-size:clamp(34px,3.5vw,66px); line-height:1.08; text-wrap:balance; margin:20px auto; max-width:850px; }
.mlg-ad-page .mlg-ad-hero__rich { max-width:650px; margin:0 auto; }
.mlg-ad-page .mlg-ad-hero__location { margin:22px auto 0; font:16px/1.6 var(--mlg-font-body,Arial,sans-serif); max-width:600px; }
.mlg-ad-page .mlg-ad-hero__location p { margin:0; font-size:16px; }
.mlg-ad-page .mlg-ad-hero__actions { margin-top:26px; gap:16px; flex-wrap:wrap; }
.mlg-ad-page .mlg-ad-hero__nav { display:flex; justify-content:center; flex-wrap:wrap; gap:12px 24px; margin:24px auto 0; font:15px/1.5 Arial,sans-serif; }
.mlg-ad-page .mlg-ad-hero__nav a { color:#153c31; text-underline-offset:4px; }
.mlg-ad-page .mlg-ad-services__content { max-width:1200px; margin-inline:auto; }
.mlg-ad-page .mlg-ad-services__grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:22px; border:0; }
.mlg-ad-page .mlg-ad-services__grid article { border:1px solid #cba052; border-radius:8px; padding:26px; background:rgba(255,255,255,.3); }
.mlg-ad-page .mlg-ad-services__grid article:last-child { border-right:1px solid #cba052; }
.mlg-ad-page .mlg-ad-services__grid article:only-child { max-width:100%; }
.mlg-ad-page .mlg-ad-services__grid article:only-child ul { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:12px 30px; }
.mlg-ad-page .mlg-ad-services__grid h3 { font-size:24px; margin-top:0; }
.mlg-ad-page .mlg-ad-services__grid p,.mlg-ad-page .mlg-ad-services__grid li { font-size:18px; line-height:1.65; }
.mlg-ad-page .mlg-ad-story__grid h2 { font-size:clamp(30px,3vw,48px); line-height:1.2; margin:16px 0 24px; }
.mlg-ad-page .mlg-ad-story__copy { max-width:720px; margin:auto; font-size:19px; line-height:1.7; }
.mlg-ad-page .mlg-ad-story__grid h3 { font-size:27px; }
.mlg-ad-page .mlg-ad-before__heading { text-align:center; max-width:1000px; margin:0 auto 30px; }
.mlg-ad-page .mlg-ad-before__heading h2 { margin:0 0 14px; font-size:clamp(32px,3.6vw,58px); line-height:1.15; }
.mlg-ad-page .mlg-ad-before__heading p { font-size:18px; }
.mlg-ad-page .mlg-ad-before__grid--single { display:block; max-width:1050px; margin-inline:auto; }
.mlg-ad-page .mlg-ad-before__grid--single > div { width:100%; }
.mlg-ad-page .mlg-ad-before .mlg-faq__question { font-size:18px; line-height:1.5; }
.mlg-ad-page .mlg-ad-before .mlg-faq__answer { font-size:17px; line-height:1.7; }
.mlg-ad-page .mlg-ad-area__content ul { display:flex; flex-wrap:wrap; justify-content:center; gap:15px 38px; list-style:none; padding:0; }
.mlg-ad-page .mlg-ad-area__content a { color:#153c31; text-decoration:underline; text-underline-offset:5px; }
.mlg-ad-page .mlg-ad-map__frame iframe { width:100%; height:430px; border:0; display:block; }
.mlg-ad-page .mlg-ad-map__frame > p { text-align:center; margin:18px 0; }
.mlg-ad-page [id] { scroll-margin-top:25px; }
@media(max-width:700px) {
 .mlg-ad-page .mlg-ad-hero__copy { padding:32px 20px; }
 .mlg-ad-page .mlg-ad-services__grid { grid-template-columns:1fr; }
 .mlg-ad-page .mlg-ad-hero__actions a { max-width:100%; }
 .mlg-ad-page .mlg-ad-map__frame iframe { height:350px; }
 .mlg-ad-page .mlg-ad-before .mlg-faq__question { font-size:16px; }
 .mlg-ad-page .mlg-ad-before .mlg-faq__answer { padding:16px; }
}
