/* =========================================================================
   Tracking guides: /glp-1-tracker and /glp-1-tracker/{slug}
   -------------------------------------------------------------------------
   Loaded only by MedicationGuideController (layouts/marketing 'styles'), after
   app.css and marketing.css. Public pages are always light, so there is no dark
   block; it still styles with the brand variables so it tracks any change to
   them. Mobile first: everything works at 360px with a 16px gutter and no
   horizontal page scroll.
   ========================================================================= */

.gd {
  background: var(--card, #fff);
  color: var(--ink);
  line-height: 1.6;
}
.gd-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}
.gd h1, .gd h2, .gd h3 { color: var(--mk-night, #150726); }
.gd h1, .gd h2 {
  font-family: var(--mk-display, Georgia, serif);
  letter-spacing: -.01em;
}

/* ---- Hero --------------------------------------------------------------- */
.gd-hero {
  background: var(--mk-tint, #faf7fc);
  border-bottom: 1px solid var(--line);
  padding: 22px 0 30px;
}
.gd-crumbs {
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.gd-crumbs a { color: var(--plum); }
.gd-hero h1 {
  font-size: clamp(2rem, 7vw, 3.1rem);
  line-height: 1.08;
  margin: .55rem 0 .7rem;
  font-weight: 700;
}
.gd-identity {
  margin: 0 0 .5rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
}
.gd-lede {
  font-size: 1.08rem;
  max-width: 66ch;
  margin: 0;
}
.gd-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.25rem;
}
.gd-cta .btn { white-space: normal; text-align: center; }
.gd-fine {
  margin: .7rem 0 0;
  font-size: .85rem;
  color: var(--muted);
}

/* ---- The tracking-app notice (every page, near the top) ----------------- */
.gd-notice {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: .75rem;
  align-items: start;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--plum);
  border-radius: 12px;
  background: var(--mk-tint, #faf7fc);
}
.gd-notice-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--plum-tint, rgba(109,63,122,.09));
  color: var(--plum);
}
.gd-notice p { margin: 0; font-size: .95rem; }
.gd-notice .gd-notice-links {
  margin-top: .45rem;
  font-size: .88rem;
}
.gd-notice-links a { font-weight: 600; }

/* ---- Sections ----------------------------------------------------------- */
.gd-body { padding-bottom: 32px; }
.gd-section { padding-top: 40px; }
.gd-section h2 {
  font-size: clamp(1.4rem, 4.6vw, 1.85rem);
  line-height: 1.2;
  margin: 0 0 .75rem;
}
.gd-section h3 { font-size: 1.02rem; line-height: 1.35; }
.gd-prose p, .gd-intro { max-width: 70ch; }
.gd-prose p { margin: 0 0 .9rem; }
.gd-intro { margin: 0 0 .4rem; color: var(--muted); }
.gd-note {
  font-size: .86rem;
  color: var(--muted);
  max-width: 70ch;
  margin: .9rem 0 0;
}
.gd-note a { white-space: nowrap; }

/* ---- "What you can log" ------------------------------------------------- */
.gd-track {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem 2rem;
}
@media (min-width: 720px) {
  .gd-track { grid-template-columns: 1fr 1fr; }
}
.gd-track li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: .8rem;
  align-items: start;
}
.gd-track-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--plum-tint, rgba(109,63,122,.09));
  color: var(--plum);
}
.gd-track h3 { margin: .1rem 0 .25rem; }
.gd-track p { margin: 0; font-size: .95rem; }
.gd-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: .3rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: .7rem;
  font-weight: 700;
  color: var(--plum);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: .05rem .45rem;
  white-space: nowrap;
}

/* ---- App sketch (made-up entries, no doses) ----------------------------- */
.gd-preview {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}
@media (min-width: 720px) {
  .gd-preview { grid-template-columns: repeat(3, 1fr); }
}
.gd-mock {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg, #f4f4f6);
  box-shadow: var(--shadow);
  font-size: .92rem;
}
.gd-mock-k {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--plum);
  margin-bottom: .2rem;
}
.gd-mock strong { font-size: 1.05rem; color: var(--ink); }
.gd-mock-sub { color: var(--muted); font-size: .82rem; }

/* ---- Setup steps -------------------------------------------------------- */
.gd-steps {
  list-style: none;
  counter-reset: gd-step;
  margin: 1rem 0 0;
  padding: 0;
  max-width: 70ch;
}
.gd-steps li {
  counter-increment: gd-step;
  position: relative;
  padding: 0 0 .9rem 2.6rem;
}
.gd-steps li::before {
  content: counter(gd-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  background: var(--teal);
}

/* ---- FAQ ---------------------------------------------------------------- */
.gd-faqs { border-top: 1px solid var(--line); }
.gd-faq {
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
}
.gd-faq h3 { margin: 0 0 .35rem; }
.gd-faq p { margin: 0; max-width: 72ch; }

/* ---- Other trackers and tools ------------------------------------------- */
.gd-more {
  display: grid;
  gap: 1.5rem 2.5rem;
}
@media (min-width: 720px) {
  .gd-more { grid-template-columns: 1fr 1fr; }
}
.gd-more h2 { font-size: 1.3rem; }
.gd-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gd-links li {
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
}
.gd-links a { font-weight: 600; }
.gd-links span {
  display: block;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---- Hub cards ---------------------------------------------------------- */
.gd-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .8rem;
}
@media (min-width: 640px) {
  .gd-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .gd-cards { grid-template-columns: repeat(3, 1fr); }
}
.gd-cards li { display: flex; }
.gd-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card, #fff);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.gd-card:hover {
  text-decoration: none;
  border-color: var(--plum);
  box-shadow: var(--shadow);
}
.gd-card:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.gd-card-title {
  font-family: var(--mk-display, Georgia, serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mk-night, #150726);
  line-height: 1.25;
}
.gd-card-meta { font-size: .82rem; color: var(--muted); }
.gd-card-text { font-size: .93rem; line-height: 1.5; }
.gd-card-go {
  margin-top: auto;
  padding-top: .4rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--plum);
}

/* ---- Closing CTA and footer note ---------------------------------------- */
.gd-end {
  margin-top: 44px;
  padding: 24px 20px;
  border-radius: 16px;
  background: var(--mk-tint, #faf7fc);
  border: 1px solid var(--line);
}
.gd-end h2 {
  font-size: clamp(1.35rem, 4.4vw, 1.7rem);
  margin: 0 0 .5rem;
}
.gd-end p { margin: 0; max-width: 62ch; }
.gd-foot {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--muted);
}
.gd-foot p { max-width: 80ch; }
.gd-tm { font-size: .8rem; }

@media (min-width: 720px) {
  .gd-wrap { padding: 0 24px; }
  .gd-hero { padding: 28px 0 40px; }
  .gd-section { padding-top: 52px; }
  .gd-end { padding: 32px; }
}

/* ===== Comparison and situation pages (landings/show) ===== */
.ld-h { font-size: 1.45rem; line-height: 1.25; margin: 40px 0 12px; }
.ld-p { max-width: 70ch; margin: 0 0 .9rem; line-height: 1.6; }
.ld-list { max-width: 72ch; margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .45rem; line-height: 1.55; }
.ld-track { margin-bottom: 1rem; }
.ld-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 28px 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.ld-table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
.ld-table th, .ld-table td { text-align: left; vertical-align: top; padding: .75rem .9rem; border-bottom: 1px solid var(--line); line-height: 1.45; }
.ld-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg); }
.ld-table tbody th { font-weight: 700; color: var(--ink); width: 22%; }
.ld-table tbody tr:last-child th, .ld-table tbody tr:last-child td { border-bottom: 0; }
.ld-hub { margin-top: 8px; }
