/* Gridlok study tools: checklist + copy buttons.
   Gridlok palette: primary #1D4ED8, charcoal #212529, pale blue #eff6ff / #bfdbfe (same as the FAQ cards).
   Cards stay pale in dark mode like the FAQ cards, so text colors use selectors strong enough
   to beat the theme's ".dark p / .dark li / .dark label" rules. */
.gl-copy-wrap { margin: 0 0 28px; }
.gl-copy-wrap > pre, .gl-copy-wrap > p { margin: 0; }
.gl-copy-wrap > p.gl-cite {
  padding: 18px 20px; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff;
  font-size: 16px; line-height: 1.6; overflow-wrap: anywhere;
}
.dark .gl-copy-wrap > p.gl-cite { color: #334155 !important; }
.gl-copy-wrap > .gl-copy-btn {
  display: inline-block; margin-top: 10px; padding: 8px 16px; border: 1px solid #1D4ED8; border-radius: 6px;
  background: #ffffff; color: #1D4ED8; font: 600 14px/1.2 'Space Grotesk', sans-serif; cursor: pointer;
}
.gl-copy-wrap > .gl-copy-btn:hover, .gl-copy-wrap > .gl-copy-btn:focus-visible { background: #1D4ED8; color: #ffffff; }

.gl-checklist-status { margin: 0 0 8px; font-weight: 700; color: #1D4ED8; }
.dark p.gl-checklist-status { color: #93c5fd; }
.gl-checklist-bar { height: 8px; margin: 0 0 16px; border-radius: 99px; background: #dbeafe; overflow: hidden; }
.gl-checklist-bar span { display: block; height: 100%; width: 0; background: #1D4ED8; transition: width .2s ease; }
ol.gl-checklist-on { list-style: none; margin: 0 0 12px; padding: 0; }
ol.gl-checklist-on > li {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; margin: 0 0 10px; padding: 14px 16px;
  border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff;
}
ol.gl-checklist-on > li::marker { content: none; }
ol.gl-checklist-on > li.is-done { background: #ffffff; border-color: #e5e7eb; }
ol.gl-checklist-on > li .gl-checklist-box { width: 20px; height: 20px; margin: 3px 0 0; accent-color: #1D4ED8; cursor: pointer; }
ol.gl-checklist-on > li .gl-checklist-label { display: block; cursor: pointer; color: #334155 !important; line-height: 1.55; font-size: 17px; }
ol.gl-checklist-on > li .gl-checklist-label strong { display: block; color: #212529 !important; }
/* The theme makes bold text white in dark mode; these cards stay pale, so the text stays dark. */
ol.gl-checklist-on > li .gl-checklist-label span { display: block; margin-top: 4px; color: #475569 !important; font-size: 15px; }
ol.gl-checklist-on > li.is-done .gl-checklist-label strong { text-decoration: line-through; text-decoration-color: #93c5fd; }
.gl-checklist-reset {
  margin: 4px 0 28px; padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 6px; background: #ffffff;
  color: #334155; font: 600 14px/1.2 'Space Grotesk', sans-serif; cursor: pointer;
}
.gl-checklist-reset:hover, .gl-checklist-reset:focus-visible { border-color: #1D4ED8; color: #1D4ED8; }
@media (prefers-reduced-motion: reduce) { .gl-checklist-bar span { transition: none; } }

/* Buyer-question calculator. Pale card like the FAQ answers; stays pale in dark mode,
   so text colors carry !important to beat the theme's dark-mode p and label rules. */
.gl-calc-on {
  margin: 0 0 28px; padding: 22px 24px; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff;
}
.gl-calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 18px; }
@media (max-width: 640px) { .gl-calc-form { grid-template-columns: 1fr; } }
.gl-calc-field { display: block; }
.gl-calc-field span { display: block; margin: 0 0 6px; font: 700 15px/1.35 'Space Grotesk', sans-serif; color: #212529 !important; }
.gl-calc-field input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #93c5fd; border-radius: 6px;
  background: #ffffff; color: #212529; font: 500 17px/1.3 'Space Grotesk', sans-serif;
}
.gl-calc-field input:focus-visible { outline: 2px solid #1D4ED8; outline-offset: 1px; }
.gl-calc-out p { margin: 0 0 10px; }
.gl-calc-on p.gl-calc-big { font: 900 24px/1.25 'Space Grotesk', sans-serif; color: #1D4ED8 !important; }
.gl-calc-on p.gl-calc-note { font-size: 16px; line-height: 1.55; color: #334155 !important; }
.gl-calc-on p.gl-calc-line {
  padding: 12px 14px; border: 1px dashed #93c5fd; border-radius: 6px; background: #ffffff;
  font-size: 15px; line-height: 1.55; color: #334155 !important; overflow-wrap: anywhere;
}
.gl-calc-on p.gl-calc-line:empty { display: none; }
.gl-calc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gl-calc-actions[hidden] { display: none; }
.gl-calc-actions .gl-copy-btn {
  padding: 8px 16px; border: 1px solid #1D4ED8; border-radius: 6px; background: #ffffff; color: #1D4ED8;
  font: 600 14px/1.2 'Space Grotesk', sans-serif; cursor: pointer;
}
.gl-calc-actions .gl-copy-btn:hover, .gl-calc-actions .gl-copy-btn:focus-visible { background: #1D4ED8; color: #ffffff; }
