/* =====================================================
   mir-ads.css — sponsor + ad slots
   Meanwhile in Ridgefield · v2 editorial style
   Place at: wp-content/themes/divi-child/mir-ads.css
   Enqueued site-wide (it's small) from functions.php.

   Zero radius, hairlines, small-caps labels, no icons.
   Carries its own variables so it looks the same inside
   any guide template or a Divi post, old style or new.
   ===================================================== */

.mir-ad {
  --ad-dark:     #333333;
  --ad-tan:      #c3a571;
  --ad-slate:    #5d7b90;
  --ad-forest:   #778c6a;
  --ad-hairline: #e2ded6;
  --ad-off:      #fafafa;
  --ad-white:    #ffffff;
  --ad-muted:    #9a948a;

  display: block;
  clear: both;
  margin: 32px 0;
  padding: 0;
  font-family: 'Libre Baskerville', Georgia, serif;
  color: var(--ad-dark);
  text-align: left;
  border-radius: 0;
  box-shadow: none;
}

.mir-ad,
.mir-ad * { box-sizing: border-box; }

.mir-ad a,
.mir-ad a:hover {
  color: inherit;
  text-decoration: none;
  border: 0;
  background: none;
}

.mir-ad img {
  border-radius: 0;
  max-width: 100%;
  display: block;
}

.mir-ad .mir-ad-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--ad-muted);
  margin: 0;
}

.mir-ad .mir-ad-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--ad-dark);
  line-height: 1.25;
}

.mir-ad .mir-ad-tagline {
  font-style: italic;
  color: #66625b;
  line-height: 1.6;
}

/* =====================================================
   PRESENTING — one line under the hero, between hairlines
   ===================================================== */
.mir-ad--presenting {
  border-top: 1px solid var(--ad-hairline);
  border-bottom: 1px solid var(--ad-hairline);
}

.mir-ad--presenting .mir-ad-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  padding: 14px 2px;
}

.mir-ad--presenting .mir-ad-sponsor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mir-ad--presenting .mir-ad-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.mir-ad--presenting .mir-ad-name {
  font-size: 19px;
  border-bottom: 1px solid var(--ad-tan);
  padding-bottom: 1px;
}

.mir-ad--presenting .mir-ad-tagline {
  font-size: 14.5px;
  flex: 1 1 220px;
}

.mir-ad--presenting .mir-ad-link:hover .mir-ad-name {
  color: var(--ad-slate);
}

/* =====================================================
   SECTION / ZONE — compact block under a section heading
   ===================================================== */
.mir-ad--section {
  background: var(--ad-off);
  border-top: 3px solid var(--ad-tan);
  border-bottom: 1px solid var(--ad-hairline);
  margin: 0 0 32px;
}

/* On off-white sections (Moving guide alt rows) go white so it still reads */
.mtr-section--alt .mir-ad--section,
.mir-ad--section.mir-ad--on-tint {
  background: var(--ad-white);
}

.mir-ad--section .mir-ad-link {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 22px 20px;
}

.mir-ad--section .mir-ad-logo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--ad-hairline);
  background: var(--ad-white);
}

.mir-ad--section .mir-ad-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mir-ad--section .mir-ad-name {
  font-size: 20px;
}

.mir-ad--section .mir-ad-tagline {
  font-size: 15px;
}

.mir-ad--section .mir-ad-cta {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ad-slate);
  align-self: flex-start;
  border-bottom: 1px solid var(--ad-tan);
  padding-bottom: 1px;
}

.mir-ad--section .mir-ad-link:hover .mir-ad-cta {
  color: var(--ad-forest);
}

/* =====================================================
   IN-ARTICLE — labeled image between two hairlines
   ===================================================== */
.mir-ad--inpost {
  border-top: 1px solid var(--ad-hairline);
  border-bottom: 1px solid var(--ad-hairline);
  padding: 12px 0 18px;
  margin: 44px 0;
}

.mir-ad--inpost .mir-ad-label {
  text-align: center;
  margin-bottom: 12px;
}

.mir-ad--inpost .mir-ad-link { display: block; }

.mir-ad--inpost .mir-ad-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mir-ad--inpost .mir-ad-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  padding-top: 10px;
}

.mir-ad--inpost .mir-ad-name { font-size: 18px; }
.mir-ad--inpost .mir-ad-tagline { font-size: 14.5px; }

.mir-ad--inpost .mir-ad-link:hover .mir-ad-name { color: var(--ad-slate); }

/* =====================================================
   HOUSE — unsold slot, one quiet line
   ===================================================== */
.mir-ad--house {
  border-top: 1px solid var(--ad-hairline);
  border-bottom: 1px solid var(--ad-hairline);
  margin: 0 0 28px;
}

.mir-ad--house a {
  display: block;
  padding: 10px 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--ad-muted);
}

.mir-ad--house .mir-ad-dot {
  color: var(--ad-tan);
  padding: 0 8px;
}

.mir-ad--house .mir-ad-house-cta {
  color: var(--ad-slate);
  border-bottom: 1px solid var(--ad-tan);
}

.mir-ad--house a:hover .mir-ad-house-cta { color: var(--ad-forest); }

/* Inside a dark hero or dark section, keep house lines legible */
.mtr-section--fit .mir-ad--house a { color: rgba(255,255,255,0.6); }

/* The events calendar zeroes margins on everything inside it;
   give the sponsor line its breathing room back */
.mir-cal-root .mir-ad { margin: -1rem 0 1.75rem; border-top: 0; }
.mir-cal-root .mir-ad--house a { text-align: center; }
.mir-cal-root .mir-ad--presenting .mir-ad-link { justify-content: center; }

/* =====================================================
   FOCUS + MOBILE
   ===================================================== */
.mir-ad a:focus-visible {
  outline: 2px solid var(--ad-slate);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .mir-ad--presenting .mir-ad-link { gap: 6px 12px; }
  .mir-ad--presenting .mir-ad-tagline { flex-basis: 100%; }
  .mir-ad--section .mir-ad-link { padding: 16px 18px 18px; gap: 14px; }
  .mir-ad--section .mir-ad-logo { flex-basis: 52px; width: 52px; height: 52px; }
  .mir-ad--section .mir-ad-name { font-size: 18px; }
}
