/* Creatine Insider: single stylesheet, no framework. */
:root {
  --blue: #3a7ca5;
  --blue-dark: #2c6286;
  --navy: #15213f;
  --ink: #0d141a;
  --muted: #55606b;
  --line: #dde3e8;
  --tint: #eef6fb;
  --bg: #ffffff;
  --radius: 10px;
  --wide: 76rem;
  --narrow: 46rem;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; color: var(--navy); font-weight: 700; margin: 2rem 0 .75rem; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); margin-top: .5rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.3rem; }
h4, h5, h6 { font-size: 1.1rem; }
p, ul, ol, table, figure, blockquote { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .35rem; }
li::marker { color: var(--blue); }
figure img { border-radius: var(--radius); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.lead { font-size: 1.2rem; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: 1.25rem; }
.wrap-narrow { max-width: calc(var(--narrow) + 2.5rem); margin-inline: auto; padding-inline: 1.25rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.logo img { width: 210px; }
.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: .5rem .75rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--tint); color: var(--blue-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--navy); position: relative; content: ""; transition: transform .2s; }
.bars::before { position: absolute; top: -7px; } .bars::after { position: absolute; top: 7px; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.06); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem 1rem 1rem; }
  .site-nav a { padding: .75rem; }
  .logo img { width: 170px; }
}

/* Buttons */
.btn { display: inline-block; background: var(--blue); color: #fff; border: 2px solid var(--blue); padding: .7rem 1.4rem; border-radius: 8px; font-weight: 700; text-decoration: none; line-height: 1.3; cursor: pointer; font: inherit; font-weight: 700; transition: background .15s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--blue-dark); }
.btn-secondary:hover { background: var(--tint); color: var(--navy); }
.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: 0; margin: 1.25rem 0 .5rem; font-size: .875rem; color: var(--muted); }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); }

/* Content pages built from sections */
.page .section { padding: 2.5rem max(1.25rem, calc((100% - var(--wide)) / 2)); }
.page .section > *:not(.cols):not(.embed):not(.cards):not(.chips):not(figure) { max-width: var(--narrow); margin-inline: auto; }
.page .section > figure { max-width: var(--narrow); margin: 1.5rem auto; }
.page .section > h1:first-child, .page .section > h2:first-child { margin-top: 0; }
.page .section > .btn-group { justify-content: flex-start; }
.page .section:nth-of-type(even):not(.section-hero):not(.section-posts) { background: #f7fafc; }
.section-hero { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; padding-block: 4rem !important; }
.section-hero[style*="--hero-bg"] { background: linear-gradient(rgba(21,33,63,.82), rgba(21,33,63,.72)), var(--hero-bg) center / cover no-repeat; }
.section-hero h1, .section-hero h2, .section-hero h3, .section-hero a:not(.btn) { color: #fff; }
.section-hero .btn { background: #fff; color: var(--navy); border-color: #fff; }
.section-hero .btn:hover { background: var(--tint); }
.section-hero .btn-secondary { background: transparent; color: #fff; }
.is-home .section-hero:first-child { padding-block: 5.5rem !important; text-align: center; }
.is-home .section-hero:first-child .btn-group { justify-content: center; }
.is-home .section-hero:first-child h1 { font-size: clamp(2.4rem, 1.6rem + 3.5vw, 4rem); }

.cols { display: grid; gap: 2rem; align-items: start; max-width: var(--narrow); margin: 1.5rem auto; }
.cols:has(figure), .cols:has(.embed), .cols-3, .cols-4 { max-width: 64rem; }
.cols:has(figure) { align-items: center; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col > *:first-child { margin-top: 0; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 1rem; } }
.page-header { padding: 1rem 0 .5rem; }
.embed { max-width: var(--wide); margin: 1.5rem auto; overflow-x: auto; }

/* Articles */
.post-header { padding-bottom: .5rem; }
.post-cats { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 .25rem; }
.post-cats a, .chips a { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; background: var(--tint); color: var(--blue-dark); padding: .25rem .6rem; border-radius: 99px; }
.standfirst { font-size: 1.2rem; color: var(--muted); line-height: 1.55; }
.post-meta { font-size: .9rem; color: var(--muted); }
.post-cover { margin-top: 1rem; }
.post-body > .section { padding: 0; }
.post-body > .section > *:not(.cols):not(.embed) , .post-body > *:not(.section) { max-width: var(--narrow); margin-inline: auto; }
.post-body .embed { max-width: 60rem; margin-inline: auto; }
.post-body .cols { margin-inline: auto; }
.post-body > .section > figure { max-width: var(--narrow); margin: 1.75rem auto; }
.post-body { padding-inline: 1.25rem; }
.post-body h2 { margin-top: 2.75rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.prose th { background: var(--tint); }
.prose blockquote { border-left: 4px solid var(--blue); margin-left: 0; padding: .25rem 0 .25rem 1.25rem; color: var(--muted); }
.toc details { background: var(--tint); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.toc summary { font-weight: 700; cursor: pointer; color: var(--navy); }
.toc ol { margin: .75rem 0 0; }
.toc li { margin-bottom: .2rem; }
.post-footer { margin-top: 2.5rem; }

.notice { border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .92rem; line-height: 1.55; margin: 1.25rem 0; }
.notice p { margin: 0; }
.notice-affiliate { background: #fff8e6; border: 1px solid #f1dca4; }
.notice-medical { background: #f3f5f7; border: 1px solid var(--line); }
.author-box { display: flex; gap: 1rem; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2rem; font-size: .95rem; }
.author-box img { border-radius: 50%; flex: none; }
.author-name { font-weight: 700; margin-bottom: .35rem; }
.author-profile img { border-radius: 50%; float: right; margin: 0 0 1rem 1.5rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.5rem; margin: 1.5rem auto; max-width: var(--wide); }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 24px rgba(21,33,63,.1); transform: translateY(-2px); }
.card-img img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: 0; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); margin: 0 0 .35rem; }
.card-title { font-size: 1.1rem; margin: 0 0 .5rem; }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { color: var(--blue-dark); text-decoration: underline; }
.card-desc { font-size: .92rem; color: var(--muted); line-height: 1.55; flex: 1; }
.card-meta { font-size: .8rem; color: var(--muted); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; max-width: var(--wide); margin: 1rem auto; }
.chips a[aria-current="page"] { background: var(--blue); color: #fff; }
.related { padding-block: 2.5rem; }
.related h2 { margin-top: 0; }

/* Newsletter */
.newsletter label { display: block; font-weight: 600; margin-bottom: .5rem; }
.newsletter-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter input[type=email] { flex: 1 1 12rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; min-width: 0; }
.newsletter .hp { position: absolute; left: -9999px; }
.form-msg { margin-top: .5rem; font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy); color: #d6dde6; margin-top: 3rem; padding-top: 3rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 2rem; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-brand, .footer-head { font-weight: 700; color: #fff; margin-bottom: .75rem; }
.footer-brand { font-size: 1.2rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-block: 1.25rem; font-size: .85rem; color: #aab5c3; }
.site-footer .newsletter label { color: #fff; font-weight: 400; }
.site-footer .btn { background: var(--blue); border-color: var(--blue); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cookie banner */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 40rem; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.15); padding: 1rem 1.25rem; font-size: .92rem; }
.cookie-banner p { margin-bottom: .75rem; }
.cookie-actions { display: flex; gap: .5rem; justify-content: flex-end; }
.cookie-actions .btn { padding: .5rem 1rem; }

.page-404 { padding-block: 3rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .cookie-banner, .related, .toc { display: none; } }

.cols figure img { max-height: 34rem; width: 100%; object-fit: cover; }
.section-posts > h2, .section-posts > .btn-group { max-width: var(--wide) !important; }
.is-author .page-header { max-width: var(--narrow); margin-inline: auto; }
.table-wrap { overflow-x: auto; margin: 0 auto 1.1rem; max-width: var(--narrow); }
.table-wrap table { margin: 0; min-width: 32rem; }

/* Brand pages */
.brand-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: 2.5rem; align-items: center; max-width: 64rem; margin: 0 auto; }
.brand-hero-inner > div > * { max-width: none; }
.brand-logo { margin: 0; }
.brand-logo img { width: 13rem; height: 13rem; object-fit: contain; background: #fff; border-radius: 16px; padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
@media (max-width: 760px) { .brand-hero-inner { grid-template-columns: 1fr; } .brand-logo { order: -1; } .brand-logo img { width: 7rem; height: 7rem; padding: .5rem; } }
.verdict { background: var(--tint); border-left: 5px solid var(--blue); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem auto; }
.verdict p { margin-bottom: .5rem; }
.verdict p:last-child { margin-bottom: 0; }
.verdict-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-dark); }
.verdict-text { font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.glance th { width: 38%; background: #f7fafc; font-weight: 600; }
.glance table, table.glance { min-width: 0; }
.small-print { font-size: .85rem; color: var(--muted); margin-top: .75rem; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.5rem; max-width: var(--wide); margin: 1.5rem auto; }
.page .section > .brand-grid, .page .section > .brand-list { max-width: var(--wide) !important; }
.brand-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: #fff; display: flex; flex-direction: column; }
.brand-card h3 { margin: .75rem 0 .5rem; }
.brand-card h3 a { color: var(--navy); text-decoration: none; }
.brand-card p { font-size: .93rem; line-height: 1.6; }
.brand-card p:last-child { margin: auto 0 0; }
.brand-card-logo img { width: 100%; max-width: 160px; aspect-ratio: 1; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); }
.brand-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: 1rem; margin: 1.5rem auto; }
.brand-card-compact { flex-direction: row; gap: 1rem; align-items: flex-start; }
.brand-card-compact img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.brand-card-compact h3 { margin-top: 0; font-size: 1.1rem; }
.brand-card-compact p { margin-bottom: .5rem; }
@media (max-width: 520px) { .brand-list { grid-template-columns: 1fr; } }

/* Product picks on brand pages */
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; max-width: 52rem !important; margin: 1.5rem auto; }
.pick { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: #fff; display: flex; flex-direction: column; }
.pick h3 { margin: .25rem 0 .5rem; font-size: 1.2rem; }
.pick p { font-size: .95rem; }
.pick-img { display: block; width: 100%; height: 11rem; object-fit: contain; margin: 0 0 .75rem; }
.pick-type { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); margin: 0; }
.pick-facts { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .92rem; }
.pick-facts li { padding: .3rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.pick-facts li:last-child { border-bottom: 0; }
.pick-price { font-size: .85rem; color: var(--muted); background: #f7fafc; border-radius: 6px; padding: .5rem .7rem; }
.pick-cta { margin: auto 0 0; }
.pick-cta .btn { width: 100%; text-align: center; }
.page .section > .picks { max-width: 52rem; }

/* Price history charts */
.pi-chart { margin: 1.25rem auto 2rem; max-width: var(--narrow); }
.pi-chart figcaption { font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.pi-chart-plot { position: relative; }
.pi-chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.pi-chart-svg .grid { stroke: #e9edf1; stroke-width: 1; }
.pi-chart-svg .tick { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.pi-chart-svg .crosshair { stroke: #9aa5b1; stroke-width: 1; }
.chart-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1rem; padding: 0; margin: 0 0 .5rem; font-size: .85rem; color: var(--ink); }
.chart-legend li { margin: 0; display: flex; align-items: center; gap: .4rem; }
.chart-legend .key { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.pi-tip { position: absolute; top: 0; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.12); padding: .5rem .7rem; font-size: .82rem; line-height: 1.5; min-width: 11rem; z-index: 2; }
.pi-tip strong { display: block; color: var(--navy); }
.pi-tip .row { display: flex; align-items: center; gap: .4rem; justify-content: space-between; }
.pi-tip .row span:first-child { display: flex; align-items: center; gap: .4rem; }
.pi-tip .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chart-table summary { cursor: pointer; font-size: .85rem; color: var(--blue-dark); margin-top: .5rem; }
.chart-table table { font-size: .85rem; margin-top: .5rem; }
.chart-empty { background: #f7fafc; border: 1px dashed var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; color: var(--muted); font-size: .92rem; }
.ci-table td a { color: #1d4f6a; }
@media (max-width: 600px) { .pi-chart-svg .tick { font-size: 22px; } }

/* Figure captions in articles */
.prose figure img { margin-inline: auto; }
.prose figcaption { font-size: .85rem; color: var(--muted); line-height: 1.5; margin-top: .6rem; text-align: center; }
.post-body > .section > figure img[width="800"], .post-body > .section > figure img[width="1000"] { max-width: 30rem; }
.post-body > .section > figure img[width="1200"][height="1200"] { max-width: 34rem; }
