/* =============================================================================
   MiraChlor — shared light chrome + content styling for sub-pages
   (posts like /oralcare/, default-template pages, archives, search, 404).
   Loaded by functions.php only when NOT the front page and NOT a wound-care
   template. The reset is scoped to .mc-siteheader / .mc-sitefooter ONLY, so it
   never touches page/post content (Flatsome shortcode output stays intact).
   ============================================================================= */

/* ---------- page background ---------- */
body.mc-site-page{background:#F5F8FC}
.mc-main{min-height:55vh;background:#F5F8FC}

/* ---------- header / footer chrome reset (scoped) ---------- */
.mc-siteheader,.mc-siteheader *,.mc-sitefooter,.mc-sitefooter *{box-sizing:border-box}
.mc-siteheader *,.mc-sitefooter *{margin:0;padding:0}
.mc-siteheader a,.mc-sitefooter a{text-decoration:none;color:inherit}
.mc-siteheader img,.mc-sitefooter img{display:block;max-width:100%}

/* nav hover states (same as homepage) */
.mc-navlink{transition:color .2s}
.mc-navlink:hover{color:#E8521F}
.mc-btn-shop-nav{transition:background .2s,transform .2s}
.mc-btn-shop-nav:hover{background:#cf4514;transform:translateY(-1px)}
.mc-foot-link{transition:color .2s}
.mc-foot-link:hover{color:#fff}
.mc-btn-shop-foot{transition:background .2s}
.mc-btn-shop-foot:hover{background:#ff6336}

/* constrain the sticky nav content to a centered 1180px block (like the homepage
   header) so the logo + menu don't drift to the edges on ultra-wide / 4K. */
.mc-siteheader > nav{
  padding-left:  max(clamp(20px,5vw,64px), calc((100% - 1180px) / 2)) !important;
  padding-right: max(clamp(20px,5vw,64px), calc((100% - 1180px) / 2)) !important;
}
@media (max-width:620px){
  .mc-siteheader nav img{height:32px!important}
}

/* ---------- content shells ---------- */
.mc-shell{
  max-width:1180px;margin:0 auto;
  padding:clamp(40px,6vw,76px) clamp(20px,5vw,40px) clamp(56px,7vw,88px);
  font-family:'Hanken Grotesk',system-ui,sans-serif;color:#0E1B33;
}

/* ---------- single post / page article ---------- */
.mc-article__head{max-width:820px;margin:0 auto 30px;text-align:center}
.mc-eyebrow{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:#E8521F;font-weight:800;margin-bottom:14px}
.mc-eyebrow a{color:#E8521F}
.mc-eyebrow a:hover{text-decoration:underline}
.mc-article__title{font-family:'Schibsted Grotesk',system-ui,sans-serif;font-weight:800;font-size:clamp(30px,4.4vw,52px);line-height:1.08;letter-spacing:-.02em;color:#0E1B33;text-wrap:balance}
.mc-article__meta{color:#8A98B0;font-size:14px;font-weight:600;margin-top:14px}
.mc-article__media{max-width:980px;margin:0 auto 36px}
.mc-article__media img{width:100%;height:auto;border-radius:20px;display:block}

/* ---------- flowing content typography ---------- */
.mc-content{
  max-width:820px;margin:0 auto;
  font-family:'Hanken Grotesk',system-ui,sans-serif;
  font-size:17px;line-height:1.7;color:#33415C;
}
.mc-content > *:first-child{margin-top:0}
.mc-content p{margin:0 0 1.1em}
.mc-content h1,.mc-content h2,.mc-content h3,.mc-content h4,.mc-content h5{
  font-family:'Schibsted Grotesk',system-ui,sans-serif;color:#0E1B33;
  line-height:1.2;letter-spacing:-.01em;margin:1.7em 0 .5em;font-weight:800;
}
.mc-content h2{font-size:clamp(24px,3vw,34px)}
.mc-content h3{font-size:clamp(20px,2.4vw,27px)}
.mc-content h4{font-size:19px}
.mc-content a{color:#E8521F;text-decoration:underline;text-underline-offset:2px}
.mc-content a:hover{color:#cf4514}
.mc-content strong{color:#0E1B33}
.mc-content img{max-width:100%;height:auto;border-radius:14px;margin:1.1em 0}
.mc-content figure{margin:1.3em 0}
.mc-content figcaption{font-size:13.5px;color:#8A98B0;text-align:center;margin-top:8px}
.mc-content ul,.mc-content ol{margin:0 0 1.1em;padding-left:1.3em;display:flex;flex-direction:column;gap:.45em}
.mc-content li{padding-left:.2em}
.mc-content blockquote{border-left:3px solid #E8521F;background:#fff;border-radius:0 12px 12px 0;padding:16px 22px;margin:1.4em 0;color:#33415C}
.mc-content blockquote p:last-child{margin-bottom:0}
.mc-content hr{border:none;border-top:1px solid #E3EAF3;margin:2em 0}
.mc-content table{width:100%;border-collapse:collapse;margin:1.4em 0;font-size:15.5px}
.mc-content th,.mc-content td{border:1px solid #E3EAF3;padding:12px 14px;text-align:left}
.mc-content th{background:#EAF1F8;color:#11294F;font-weight:700}
.mc-content iframe,.mc-content video{max-width:100%;border-radius:14px}
.mc-linkpages{margin-top:1.5em;font-weight:700}

/* ---------- post navigation (prev/next) ---------- */
.mc-postnav{max-width:820px;margin:48px auto 0;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid #E3EAF3;padding-top:22px;font-weight:700}
.mc-postnav a{color:#11294F}
.mc-postnav a:hover{color:#E8521F}

/* ---------- archive / blog / search ---------- */
.mc-archive__head{text-align:center;max-width:760px;margin:0 auto 44px}
.mc-archive__title{font-family:'Schibsted Grotesk',system-ui,sans-serif;font-weight:800;font-size:clamp(30px,4vw,50px);line-height:1.08;letter-spacing:-.02em;color:#0E1B33;text-wrap:balance}
.mc-archive__desc{color:#5C6B85;font-size:17px;line-height:1.6;margin-top:14px}
.mc-postgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:28px}
.mc-postcard{background:#fff;border:1px solid #E3EAF3;border-radius:20px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 1px 2px rgba(16,27,51,.04);transition:transform .25s,box-shadow .25s}
.mc-postcard:hover{transform:translateY(-4px);box-shadow:0 22px 44px rgba(16,27,51,.12)}
.mc-postcard__media{display:block}
.mc-postcard__media img{width:100%;height:200px;object-fit:cover;display:block}
.mc-postcard__body{padding:22px 24px 26px;display:flex;flex-direction:column;gap:10px;flex:1}
.mc-postcard__title{font-family:'Schibsted Grotesk',system-ui,sans-serif;font-size:20px;font-weight:700;line-height:1.25}
.mc-postcard__title a{color:#0E1B33}
.mc-postcard__title a:hover{color:#E8521F}
.mc-postcard__excerpt{color:#5C6B85;font-size:15px;line-height:1.55;flex:1}
.mc-readmore{color:#E8521F;font-weight:700;font-size:15px;margin-top:6px;display:inline-block}
.mc-readmore:hover{color:#cf4514}
.mc-empty{text-align:center;color:#5C6B85}

/* ---------- pagination ---------- */
.mc-pagination{margin-top:48px;text-align:center}
.mc-pagination .page-numbers{display:inline-block;padding:9px 15px;margin:0 3px;border-radius:10px;border:1px solid #E3EAF3;color:#11294F;font-weight:700;text-decoration:none}
.mc-pagination .page-numbers.current{background:#E8521F;color:#fff;border-color:#E8521F}
.mc-pagination a.page-numbers:hover{border-color:#E8521F;color:#E8521F}
.mc-pagination .current:hover{color:#fff}
