/* /guide: the print + image quality guide.
   gd- prefix, scoped to this view. Shares the fd-hero / fd-cta primitives with
   the fold how-tos (fold.css) and the card / kicker / button primitives with
   site.css; everything else is defined here so it stands on its own regardless
   of stylesheet load order. */

/* ---- jump nav ---- */

.gd-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 34px;
  padding: 0;
}

.gd-jump a {
  font-family: "Special Elite", "Courier New", monospace;
  text-transform: lowercase;
  font-size: 12.5px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 5px 11px;
}

.gd-jump a:hover {
  background: var(--paper-dim);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ---- sections ---- */

.gd-section {
  margin: 0 0 44px;
  scroll-margin-top: 84px;
}

/* section heading with a full-width rule (self-contained, not site-rulehead,
   so cascade order can't strip the margins) */
.gd-rule {
  margin: 0 0 24px;
  font-family: "Special Elite", "Courier New", monospace;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 2px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
}

/* ---- card grid ---- */

.gd-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 26px;
}

.gd-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

/* a card that should span the full row (the pixel table) */
.gd-card-wide { grid-column: 1 / -1; }

.gd-card-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Special Elite", "Courier New", monospace;
  text-transform: lowercase;
  font-size: 18px;
  font-weight: 400;
}

.gd-card-body {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.gd-card-body strong { color: var(--ink); }

.gd-fine { font-size: 12px; color: var(--ink-faint); }

/* ---- diagram inset (300 dpi comparison) ---- */

.gd-art {
  background: var(--paper);
  border: 2px solid var(--ink);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gd-art svg { overflow: visible; }

/* ---- pixel reference table ---- */

.gd-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Special Elite", "Courier New", monospace;
  font-size: 12.5px;
}

.gd-table th {
  text-align: left;
  text-transform: lowercase;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 6px 8px;
}

.gd-table td {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--paper-dim);
  padding: 6px 8px;
}

.gd-table tr:last-child td { border-bottom: none; }
.gd-table td:last-child { color: var(--ink); }

/* ---- inline low-res badge, mirrors the editor's ---- */

.gd-badge {
  display: inline-block;
  vertical-align: middle;
  background: #b3123c;
  color: #fff;
  font-family: "Special Elite", "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
  line-height: 1.4;
  padding: 1px 6px;
}

/* ---- trim / safe / bleed diagram ---- */

.gd-diagram {
  margin: 0 0 28px;
  padding: 24px;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(22, 19, 15, 0.3);
}

.gd-diagram svg {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
}

.gd-legend {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-family: "Special Elite", "Courier New", monospace;
  font-size: 12px;
  color: var(--ink-soft);
}

.gd-legend li { display: flex; align-items: center; gap: 8px; }

.gd-swatch {
  width: 22px;
  height: 12px;
  display: inline-block;
  border: 2px solid var(--ink);
}

.gd-sw-bleed { border-color: #b3123c; border-style: dashed; background: #fbe3e8; }
.gd-sw-trim  { border-color: var(--ink); background: #fff; }
.gd-sw-safe  { border-color: #8a8375; border-style: dashed; background: #fff; }

/* ---- warning callout (print at actual size, etc.) ---- */

.gd-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 8px;
  padding: 16px 18px;
  background: #fbe3e8;
  border: 2px solid #b3123c;
  box-shadow: 4px 4px 0 rgba(179, 18, 60, 0.25);
}

.gd-note-mark {
  flex: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #b3123c;
  color: #fff;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 16px;
  line-height: 1;
}

.gd-note p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.6;
}

.gd-note strong { font-weight: 700; }

/* ---- printer test sheet page (/calibration) ---- */

.cal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 4px 0 0;
}

.cal-preview-link {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cal-preview-link:hover { color: var(--ink); }

.cal-steps {
  margin: 0;
  padding: 0 0 0 22px;
  display: grid;
  gap: 12px;
  max-width: 68ch;
}

.cal-steps li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.cal-steps strong { font-weight: 700; }
