/* MD's Choice — Mobirise 5 MedicalAMP-inspired theme */
:root {
  --amp-teal: #2bbbad;
  --amp-teal-d: #1e9086;
  --amp-mint: #e7f7f5;
  --amp-ice: #f3faf9;
  --amp-navy: #16324f;
  --amp-ink: #243244;
  --amp-muted: #5d6b7a;
  --amp-gold: #d4a017;
  --amp-line: #d7ece9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--amp-ink);
  background: #fff;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  font-size: 1.02rem;
}
a { color: var(--amp-teal-d); text-decoration: none; }
a:hover { color: var(--amp-navy); text-decoration: underline; }
h1,h2,h3,h4,h5,.display-1,.display-2,.display-4,.display-5,.display-7,.page-title,.block-title,.mbr-section-title {
  font-family: "Montserrat", "Roboto", sans-serif;
  color: var(--amp-navy);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.amp-topbar {
  background: var(--amp-navy);
  color: #d7ece9;
  font-size: .86rem;
  padding: .45rem 0;
}
.amp-topbar a { color: #fff; }
.navbar-mds {
  background: #fff;
  border-bottom: 3px solid var(--amp-teal);
  box-shadow: 0 8px 24px rgba(22,50,79,.06);
}
.navbar-mds .navbar-brand { color: var(--amp-navy) !important; font-weight: 800; }
.navbar-mds .nav-link {
  color: var(--amp-navy) !important;
  font-weight: 500;
  font-size: .88rem;
  padding: .65rem .55rem !important;
}
.navbar-mds .nav-link:hover { color: var(--amp-teal-d) !important; }
.navbar-mds .btn-cart {
  background: var(--amp-teal);
  color: #fff !important;
  font-weight: 700;
  border: 0;
  border-radius: 2rem;
  padding: .4rem 1rem;
  text-decoration: none !important;
}
.navbar-mds .btn-cart:hover { background: var(--amp-teal-d); }
.cid-hero {
  min-height: 68vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, rgba(10,28,48,.88) 0%, rgba(10,28,48,.72) 42%, rgba(14,70,68,.62) 100%);
  display: flex;
  align-items: center;
  color: #fff;
}
.cid-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1579684385127-1ef15d508118?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
  opacity: 0.7;
  z-index: 0;
}
.cid-hero > * { position: relative; z-index: 1; }
.cid-hero .mbr-section-title, .cid-hero h1 { color: #fff; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.cid-hero .mbr-text { font-size: 1.12rem; max-width: 740px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.55); }
.section-label {
  color: var(--amp-teal);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .74rem;
}
.cid-hero .section-label { color: #b7fff4; }
.btn-gold, .btn-amp {
  background: var(--amp-teal);
  color: #fff;
  font-weight: 700;
  border: 0;
  border-radius: 2rem;
  padding: .75rem 1.45rem;
  text-decoration: none !important;
  display: inline-block;
}
.btn-gold:hover, .btn-amp:hover { background: var(--amp-teal-d); color: #fff; }
.btn-outline-light-mds {
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
  border-radius: 2rem;
  padding: .68rem 1.3rem;
  text-decoration: none !important;
}
.btn-outline-light-mds:hover { background: #fff; color: var(--amp-navy); }
section { padding: 4.2rem 0; }
.cid-cream, .cid-mint { background: var(--amp-mint); }
.cid-navy { background: var(--amp-navy); color: #e8f4f2; }
.cid-navy h2, .cid-navy h3, .cid-navy .block-title { color: #fff; }
.cid-white { background: #fff; }
.feature-card, .product-card, .study-card, .doc-card {
  background: #fff;
  border: 1px solid var(--amp-line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(22,50,79,.06);
  height: 100%;
}
.feature-card:hover, .product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(43,187,173,.18);
  transition: .2s ease;
}
.product-card .badge-guarantee {
  background: var(--amp-teal);
  color: #fff;
  font-size: .72rem;
  letter-spacing: .04em;
  border-radius: 2rem;
}
.tm { font-size: .65em; vertical-align: super; }
.topic-list a {
  display: block;
  padding: .5rem .8rem;
  border-bottom: 1px solid var(--amp-line);
  color: var(--amp-navy);
  text-decoration: none;
}
.topic-list a:hover { background: var(--amp-mint); }
.topic-col h5 {
  background: var(--amp-navy);
  color: #fff;
  padding: .7rem 1rem;
  border-radius: 10px 10px 0 0;
  margin: 0;
  font-size: 1rem;
}
.topic-col .box {
  border: 1px solid var(--amp-line);
  border-radius: 0 0 10px 10px;
  background: #fff;
}
.article-body article, .abstract {
  border-left: 4px solid var(--amp-teal);
  padding: .25rem 0 .25rem 1rem;
  margin-bottom: 1.25rem;
}
.update-band {
  background: #fff;
  border: 1px solid var(--amp-teal);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 2rem;
}
.cid-footer {
  background: #102536;
  color: #c5d6d3;
  padding: 3rem 0 1.4rem;
  font-size: .92rem;
}
.cid-footer a { color: #8fe8de; text-decoration: none; }
.cid-footer a:hover { color: #fff; }
.cid-footer h6 { color: #fff; font-weight: 700; }
.disclaimer { font-size: .84rem; color: var(--amp-muted); }
img.product-shot { max-height: 280px; width: auto; background: transparent; }
.guarantee-seal { width: 170px; height: auto; background: transparent; }
.navbar-brand img { height: 52px; width: auto; }
@media (max-width: 991px) {
  .cid-hero { min-height: 58vh; padding-top: 4.5rem; }
}

/* Article library — normal reading sizes (override old Dreamweaver px classes) */
.article-body { font-size: 1.05rem; line-height: 1.75; color: var(--amp-ink); max-width: 920px; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.article-body h1.page-title, .article-body h1 { font-size: 2rem; margin-bottom: 1rem; }
.article-body h2 { font-size: 1.45rem; margin-top: 1.6rem; }
.article-body h3, .article-body h5, .article-body .abstract-title {
  font-size: 1.12rem; margin-top: 1.4rem; margin-bottom: .4rem; color: var(--amp-navy);
}
.article-body p, .article-body li { font-size: 1.05rem; line-height: 1.75; }
.article-body table { font-size: 0.98rem; width: 100%; }
.article-body .arial16px, .article-body .arial14px-bold, .article-body .arial20px-red-bold,
.article-body .arial-red, .article-body .verdana18px-blue, .article-body .verdana20px-red {
  font-family: inherit !important; font-size: inherit !important; color: inherit !important;
  font-weight: inherit;
}

/* Compact element-index tables at foot of vitamin monographs */
.element-index { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--amp-line); }
.element-index h2 { font-size: 1.15rem; margin-bottom: .6rem; }
.element-index table { width: 100%; font-size: .92rem; border-collapse: collapse; margin-bottom: 1rem; }
.element-index th { text-align: left; background: var(--amp-mint); padding: .35rem .5rem; }
.element-index td { padding: .25rem .5rem; vertical-align: top; width: 25%; }
.element-index a { display: inline; }
.article-body ol.steps { margin-left: 1.25rem; padding-left: 1rem; }
.article-body ol.steps li { margin-bottom: .4rem; }
.article-body h2 + h2 { margin-top: .3rem; font-size: 1.2rem; font-weight: 600; }

.product-card img { max-height: 280px; width: auto; max-width: 100%; object-fit: contain; display: block; margin-left: auto; margin-right: auto; }

.product-img-sm { max-height: 220px; width: auto; max-width: 70%; object-fit: contain; }

.article-body article, .article-body h5.abstract-title { border-top: 1px solid #c5d4c8; padding-top: 1rem; margin-top: 1.25rem; }
hr.abstract-rule { border: 0; border-top: 1px solid #c5d4c8; margin: 1.5rem 0; }
.update-band article { border-top: 1px solid #d7e6db; padding-top: .75rem; margin-top: .75rem; }


/* content links: bold dark green, hover black (guarantee is the opposite pair) */
a { font-weight: 700; }
.article-body a, .cid-white a, .cid-cream a, .cid-mint a, .product-card a, main a {
  color: #0b6b2b;
  font-weight: 700;
}
.article-body a:hover, .cid-white a:hover, .cid-cream a:hover, .cid-mint a:hover, .product-card a:hover, main a:hover {
  color: #000;
}
a[href*="guarantee"] { color: #000 !important; font-weight: 800; }
a[href*="guarantee"]:hover { color: #0b6b2b !important; }
.navbar a, .amp-topbar a, .cid-hero a, .cid-navy a, .cid-footer a { font-weight: 700; }
.navbar a:hover, .cid-navy a:hover, .cid-footer a:hover { color: #b7fff4; }

.hero-copy-panel {
  max-width: 760px;
  background: rgba(8, 20, 36, 0.82);
  border-radius: 16px;
  padding: 1.35rem 1.5rem 1.45rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.hero-copy-panel .mbr-text,
.hero-copy-panel h1,
.hero-copy-panel .section-label { text-shadow: none; color: #fff; }
.hero-copy-panel a[href*="guarantee"] { color: #c8ffd4 !important; }
.hero-copy-panel a[href*="guarantee"]:hover { color: #fff !important; }

a.product-zoom img { cursor: zoom-in; background: transparent; }

.chem-card { display:flex; gap:1rem; align-items:flex-start; flex-wrap:wrap; background:#f7fbfa; border:1px solid #cfe4df; border-radius:12px; padding:1rem; margin:1.25rem 0 1.5rem; }
.chem-card img, .chem-card svg { flex:0 0 auto; }
.chem-card p { margin:0; font-size:1rem; line-height:1.45; }

section.cid-white .container.article-body,
section.cid-cream .container.article-body {
  max-width: 960px;
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
}
.article-body table,
.article-body img,
.article-body pre {
  max-width: 100%;
}
.article-body table { display: block; overflow-x: auto; }
.element-index { padding-left: 0.75rem; padding-right: 0.5rem; }

/* Device-width gutters: keep text off the glass on phone, tablet, and desktop */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video, iframe { max-width: 100%; height: auto; }
.container,
.container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
  padding-left: clamp(1.2rem, 5vw, 2.5rem) !important;
  padding-right: clamp(1.2rem, 5vw, 2.5rem) !important;
}
.article-body {
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.2rem, 5vw, 2.25rem) !important;
  padding-right: clamp(1.2rem, 5vw, 2.25rem) !important;
}
section.cid-white .container.article-body,
section.cid-cream .container.article-body,
section.cid-mint .container.article-body {
  max-width: 900px !important;
}
.element-index table { width: 100%; }
.navbar .container, .amp-topbar .container, .cid-footer .container {
  padding-left: clamp(1rem, 4vw, 2rem) !important;
  padding-right: clamp(1rem, 4vw, 2rem) !important;
}
@media (max-width: 576px) {
  .article-body, .container { padding-left: 1.15rem !important; padding-right: 1.15rem !important; }
}

/* research-column-match: same measure as articles/research.html */
section.cid-white > .container.article-body,
section.cid-cream > .container.article-body,
section.cid-mint > .container.article-body,
.article-body {
  max-width: 960px !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.5rem, 5vw, 2.75rem) !important;
  padding-right: clamp(1.15rem, 4vw, 2rem) !important;
  box-sizing: border-box;
}
.article-body table { display: table; width: 100%; max-width: 100%; }
.element-index {
  max-width: 100%;
  padding-left: 0.85rem;
  padding-right: 0.5rem;
}
.element-index table {
  display: table;
  table-layout: fixed;
  width: 100%;
}
.element-index td {
  width: 25%;
  max-width: 25%;
  padding: 0.35rem 0.65rem 0.35rem 0.15rem;
  word-wrap: break-word;
}
@media (max-width: 767px) {
  .element-index td { width: 50%; max-width: 50%; }
  .element-index tr { display: flex; flex-wrap: wrap; }
  .element-index td { flex: 1 1 46%; }
}
.listContainer-135px {
  max-width: 100%;
  padding-left: 0.85rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem 1rem;
}
@media (max-width: 767px) {
  .listContainer-135px { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* cols-3-vm */
.element-index.cols-3 table { table-layout: fixed; width: 100%; }
.element-index.cols-3 tr { display: flex; flex-wrap: wrap; }
.element-index.cols-3 td { flex: 1 1 30%; max-width: 33.33%; padding-left: 0.7rem; box-sizing: border-box; }
@media (max-width: 767px) {
  .element-index.cols-3 td { flex: 1 1 46%; max-width: 50%; }
}
.article-body.vm-page {
  max-width: 90% !important;
  width: 90% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.25rem, 4vw, 2.5rem) !important;
}

.page-toc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 0.4rem 0 1.4rem;
  padding: 0.75rem 0.9rem 0.75rem 1rem;
  background: #f3faf9;
  border-left: 4px solid #1a7a6d;
}
.page-toc a { font-weight: 700; }
.article-body ol, .article-body ul {
  padding-left: 1.6rem;
  margin: 0.4rem 0 0.8rem;
}
.article-body ol ol, .article-body ul ul { padding-left: 1.25rem; }
.article-body li { margin-bottom: 0.25rem; }
.topic-list a { display: block; padding: 0.2rem 0; }

.vm-index-wrap {
  max-width: 90% !important;
  width: 90% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.15rem, 4vw, 2.25rem) !important;
  padding-right: clamp(1.15rem, 4vw, 2.25rem) !important;
}
.article-body.vm-page,
.article-body {
  max-width: 90% !important;
  width: 90% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.25rem, 4vw, 2.5rem) !important;
  padding-right: clamp(1.1rem, 3vw, 2rem) !important;
}

.bottom-link-menu,
.element-index {
  max-width: 90% !important;
  width: 90% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1rem, 3vw, 1.75rem) !important;
  padding-right: clamp(0.75rem, 2vw, 1.25rem) !important;
  box-sizing: border-box;
}
.article-body .page-toc,
.article-body .update-band,
.article-body h1.page-title,
.article-body .chem-card {
  max-width: 100%;
}
