/* SEO H1 + intro for SiteBuilder content pages */
.seo-sb-h1 {
  width: 800px;
  max-width: 96%;
  margin: 10px auto 4px;
  padding: 0;
  text-align: center;
  font: bold 18px/22px "Times New Roman", Times, serif;
  color: #d4af37;
  background: #000;
}
.seo-sb-copy {
  width: 800px;
  max-width: 96%;
  margin: 0 auto 10px;
  padding: 0 12px 8px;
  text-align: center;
  font: 12px/16px Verdana, Arial, sans-serif;
  color: #ddd;
  background: #000;
}

/* Soften SiteBuilder absolute canvas on phones (content pages) */
@media (max-width: 860px) {
  .seo-sb-h1,
  .seo-sb-copy {
    width: calc(100% - 24px);
    max-width: 100%;
    box-sizing: border-box;
  }
  .seo-sb-h1 { font-size: 17px; line-height: 22px; }
  .seo-sb-copy { font-size: 13px; line-height: 18px; }

  /* Common SiteBuilder wrappers: allow shrink + horizontal scroll containment */
  html, body {
    overflow-x: auto;
    max-width: 100%;
  }
  body > table,
  body > div > table,
  table[width="800"],
  table[width="802"],
  table[width="780"],
  table[width="938"] {
    width: 100% !important;
    max-width: 100% !important;
  }
  img {
    max-width: 100%;
    height: auto;
  }
}

/* 2026-10-03 text nav + sku pages */
.shop-topnav a, .kenya-topnav a {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  min-width: 64px;
  min-height: 30px;
  padding: 4px 8px;
  color: #d4af37;
  text-decoration: none;
  font: bold 13px/1.2 Verdana, Arial, sans-serif;
}
.shop-topnav a:hover, .kenya-topnav a:hover { color: #fff; }
.mmr-crumb {
  width: 800px;
  max-width: 100%;
  margin: 8px auto 0;
  padding: 0 8px;
  font: 12px/16px Verdana, Arial, sans-serif;
  color: #ccc;
}
.mmr-crumb a { color: #d4af37; }
.sku-fact, .sku-more, .sku-back { text-align: center; font: 13px/18px Verdana, Arial, sans-serif; }
.sku-more a, .sku-back a { color: #d4af37; }
.mmr-footlinks { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: center; width: 100%; margin-top: 6px; }
.mmr-footlinks a { color: #d4af37; font: 12px/16px Verdana, Arial, sans-serif; }
.mmr-footer-line { margin: 0; }
.shop-foot, .kenya-foot { display: block; text-align: center; }
.shop-main--solo { grid-template-columns: minmax(0, 1fr); width: 420px; }
.mmr-prose {
  width: 800px;
  max-width: 100%;
  margin: 0 auto 16px;
  padding: 0 16px;
  font: 15px/1.5 Georgia, "Times New Roman", serif;
  color: #eee;
}
.mmr-prose p { margin: 0 0 12px; }
.mmr-prose a { color: #d4af37; }
a.mmr-textnav {
  display: block;
  width: 95px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  color: #d4af37;
  font: bold 11px/30px Verdana, Arial, sans-serif;
  text-decoration: none;
}
@media (max-width: 480px) {
  .shop-topnav a, .kenya-topnav a {
    flex: 1 1 22%;
    max-width: none;
    font-size: 11px;
    padding: 6px 2px;
  }
}

/* 2026-10-07 responsive fix: SiteBuilder canvas takes real height so the
   site footer flows below it (was absolute top:Npx and overlapped the logo). */
#root { position: relative !important; }
.mmr-site-footer { position: static !important; }
html body { min-height: 0 !important; }
/* Collection panels sit above neighbouring dark spacer boxes (Ring Collection was clipped on About) */
#root > div:has(img[src*="FrontPanels"]) { z-index: 2; }
/* Studio tour: photo + Prev/Next fit inside the visible white box on desktop */
#legacyTourImg { max-height: 380px; width: auto !important; }

/* Phones/tablets: reflow the 882px SiteBuilder canvas into one readable column
   (desktop canvas above 860px is unchanged). */
@media (max-width: 860px) {
  html body { min-width: 0 !important; overflow-x: hidden; }
  #centerwrapper { width: auto !important; max-width: 620px; margin: 0 auto; padding: 0 10px; }
  #root {
    position: static !important; width: auto !important; height: auto !important;
    display: flex; flex-flow: row wrap; justify-content: center; align-items: flex-start; gap: 10px 8px;
    padding-bottom: 6px;
  }
  #root > div {
    position: static !important; width: auto !important; height: auto !important;
    max-width: 100%; flex: 1 1 100%; text-align: center;
  }
  #root div[style*="overflow:auto"] { width: auto !important; height: auto !important; overflow: visible !important; }
  /* decorative empty stripes/boxes and stacked duplicates */
  #root > div:not(:has(img, a, button, input, textarea, select, iframe, td:not(:empty))),
  #root > div.sb-covered { display: none !important; }
  #root :is(table, tbody, tr) { display: block; width: 100% !important; height: auto !important; }
  #root td { display: block; width: auto !important; height: auto !important; white-space: normal !important; overflow: hidden; }
  #root script { display: none; }
  #root br[soft] { display: none; }
  #root col { width: auto !important; }
  #root img { max-width: 100%; height: auto; }
  /* main nav first, as an even 4-across grid */
  #root > div:has(a.mmr-textnav) :is(table, tbody, tr, td) { display: contents; }
  #root > div:has(a.mmr-textnav) col { display: none; }
  #root > div:has(a.mmr-textnav) > table > tbody > tr > td > table,
  #root > div:has(a.mmr-textnav) table { display: contents; }
  #root > div:has(a.mmr-textnav) { display: flex; flex-wrap: wrap; justify-content: center; }
  #root a.mmr-textnav { width: 25%; height: auto; min-height: 40px; display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1.2; }
  /* white text panels: padded, wrapping, readable */
  #root td[bgcolor="#FFFFFF"], #root td[bgcolor="#ffffff"] { padding: 10px 8px; text-align: left; }
  #root td [style*="font-size:12px"] { font-size: 13px !important; line-height: 19px !important; }
  /* collection panels side by side */
  #root > div:has(img[src*="FrontPanels"]) { flex: 0 1 calc(50% - 4px); }
  #root > div:has(img[src*="FrontPanels"]) img { width: 100%; }
  /* studio tour */
  #legacy-tour { width: auto !important; }
  #legacyTourImg { max-height: none; width: 430px !important; max-width: 100% !important; }
  #legacyTourPrev, #legacyTourNext { min-height: 40px; padding: 8px 18px !important; font-size: 14px !important; }
}
