/* Shared styles for Dosey blog posts.
   Included by every post via <link rel="stylesheet" href="/blog/blog.css">. */

:root {
  --ink: #14213D;
  --ink-soft: #475569;
  --ink-muted: #7c8794;
  --bg: #F4F6FA;
  --surface: #ffffff;
  --border: #DDE3EC;
  --brand: #0FBA82;
  --brand-deep: #0C9669;
  --display: "Host Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px; line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-deep); }
a:hover { text-decoration: underline; }
p { margin: 0 0 18px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

/* NAV */
nav { padding: 24px 0 8px; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-mark img { display: block; height: 42px; width: auto; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: 15px;
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--ink); color: white;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: #0c1a30; text-decoration: none; }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ARTICLE */
article { max-width: 720px; margin: 0 auto; padding: 32px 24px 56px; }
.post-meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.post-meta .dot { opacity: 0.4; }
article h1 {
  font-size: clamp(32px, 4.4vw, 44px);
  letter-spacing: -1px;
  margin: 0 0 24px;
  line-height: 1.12;
}
article h2 {
  font-size: 24px;
  margin: 36px 0 14px;
  letter-spacing: -0.4px;
}
article h3 {
  font-size: 18px;
  margin: 24px 0 8px;
  letter-spacing: -0.2px;
}
article p, article li { color: var(--ink-soft); }
article p strong { color: var(--ink); font-weight: 600; }
article ul, article ol {
  padding-left: 20px;
  margin: 0 0 20px;
}
article li { margin: 6px 0; }

/* TL;DR card */
.tldr {
  background: rgba(15, 186, 130, 0.06);
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 28px 0;
}
.tldr h2 {
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--brand-deep);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tldr ul { margin: 0; padding-left: 18px; }
.tldr li { margin: 4px 0; color: var(--ink); }
.tldr strong { color: var(--ink); }

/* Dose / reference tables */
.dose-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
}
.dose-table th {
  background: rgba(20, 33, 61, 0.04);
  color: var(--ink);
  text-align: left;
  font-weight: 600;
  padding: 12px 14px;
  font-family: var(--display);
  letter-spacing: -0.01em;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.dose-table td {
  padding: 12px 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.dose-table tbody tr:last-child td { border-bottom: none; }
.dose-table tbody tr:hover { background: rgba(20, 33, 61, 0.015); }
@media (max-width: 600px) {
  .dose-table { font-size: 14px; }
  .dose-table th, .dose-table td { padding: 10px 10px; }
}

/* Two-column comparison */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.compare-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.compare-col h3 {
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}
.compare-col dl { margin: 0; font-size: 14.5px; line-height: 1.55; }
.compare-col dt {
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 14px;
  font-weight: 700;
}
.compare-col dt:first-of-type { margin-top: 0; }
.compare-col dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
}
@media (max-width: 600px) {
  .compare { grid-template-columns: 1fr; }
}

/* Callout for disclaimers */
.callout {
  background: rgba(15, 186, 130, 0.08);
  border: 1px solid rgba(15, 186, 130, 0.25);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 28px 0;
  font-size: 15.5px;
}
.callout strong { color: var(--ink); font-weight: 600; }
.callout p { margin: 0; }
.callout p + p { margin-top: 10px; }

/* Warning callout (red-ish) */
.callout.warning {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.25);
}

/* Sources list */
.sources {
  font-size: 14px;
  padding-left: 18px;
}
.sources li { margin: 4px 0; color: var(--ink-muted); }
.sources li a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--border); }
.sources li a:hover { text-decoration-color: var(--brand-deep); color: var(--ink); }

/* Back link */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 24px;
}
.back-link:hover { color: var(--ink); text-decoration: none; }

/* Post footer CTA */
.post-foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--ink-muted);
}

/* Review strip — small grey "last reviewed + not medical advice" line that
   sits between the byline and the H1 on every post. */
.review-strip {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
  background: rgba(20, 33, 61, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  margin: 0 0 28px;
}
.review-strip strong { color: var(--ink-soft); font-weight: 600; }

/* CTA card — store-badge download prompt that sits near the end of every
   post. Matches the landing hero treatment: App Store badge is live;
   Google Play badge is greyed out with a hover overlay until the Android
   build is in production. */
.cta-card {
  margin: 56px 0 0;
  background: linear-gradient(135deg, rgba(15, 186, 130, 0.10) 0%, rgba(20, 33, 61, 0.05) 100%);
  border: 1px solid rgba(15, 186, 130, 0.22);
  border-radius: 16px;
  padding: 28px 28px 26px;
  text-align: center;
}
.cta-card h2 {
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.cta-card p {
  margin: 0 auto 20px;
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 42ch;
}
.cta-store-badges {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-store-badge {
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s ease;
}
.cta-store-badge img {
  display: block;
  height: 48px;
  width: auto;
}
.cta-store-badge:hover { transform: translateY(-1px); text-decoration: none; }
.cta-store-badge.coming-soon {
  position: relative;
  display: inline-flex;
  cursor: not-allowed;
  border-radius: 8px;
  overflow: hidden;
}
.cta-store-badge.coming-soon:hover { transform: none; }
.cta-store-badge.coming-soon::after {
  content: "Coming soon";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 18, 0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cta-store-badge.coming-soon:hover::after { opacity: 1; }

/* Site footer */
footer {
  padding: 56px 0 64px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6); font-size: 14px;
  margin-top: 56px;
}
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-mark img { height: 28px; width: auto; display: block; filter: brightness(0) invert(1); }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.15s ease; }
.foot-links a:hover { color: white; text-decoration: underline; }
.foot-tag { font-size: 12px; opacity: 0.5; }
