/* GAPCAP Installation Instructions — shared styles */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #FDB913;
  --yellow-soft: #FFF4D1;
  --dark: #111111;
  --dark-2: #1F1F1F;
  --ink: #111827;
  --ink-2: #374151;
  --gray: #6B7280;
  --gray-2: #9CA3AF;
  --border: #E5E7EB;
  --border-2: #D1D5DB;
  --light: #F3F4F6;
  --paper: #F5F2EC;
  --warn: #B45309;
  --warn-soft: #FEF3C7;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Arial', sans-serif;
}

html { background: #CBD5E1; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  padding: 40px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

a { color: inherit; }

/* ── Letter-size sheet ───────────────────────────── */
.sheet {
  width: 816px;       /* 8.5in × 96dpi */
  min-height: 1056px; /* 11in × 96dpi */
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Top bar ─────────────────────────────────────── */
.topbar {
  background: var(--dark);
  padding: 18px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .logo { height: 30px; display: block; }
.topbar .crumb {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar .crumb .slash { color: rgba(255, 255, 255, 0.25); }
.topbar .crumb a { color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color .15s; }
.topbar .crumb a:hover { color: var(--yellow); }
.topbar .crumb .current { color: #fff; }

/* ── Title block ─────────────────────────────────── */
.title-block {
  padding: 36px 56px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--yellow);
}
.title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--dark);
}
.title small {
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: block;
  margin-top: 4px;
  color: var(--gray);
  text-transform: uppercase;
}
.subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-2);
  margin-top: 14px;
  max-width: 38em;
  line-height: 1.5;
}
.title-img {
  width: 200px;
  aspect-ratio: 1 / 1;
  background: var(--light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.title-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }

/* ── Meta strip (time / tools / etc.) ─────────────── */
.meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.meta .cell {
  padding: 18px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta .cell:last-child { border-right: none; }
.meta .cell:first-child { padding-left: 56px; }
.meta .cell .lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.meta .cell .val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.05;
}
.meta .cell .sub {
  font-size: 12px;
  color: var(--gray);
}

/* ── Body ────────────────────────────────────────── */
.body {
  padding: 36px 56px 32px;
  flex: 1;
}

.section-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gray);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Tools list (chips) ──────────────────────────── */
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--light);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.tool-chip svg { width: 14px; height: 14px; stroke: var(--gray); }

/* ── Steps ───────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 18px 20px 18px 0;
  border-top: 1px solid var(--border);
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step .num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  color: var(--yellow);
  letter-spacing: -0.02em;
}
.step .body-col h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin-bottom: 6px;
}
.step .body-col p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.step .body-col p + p { margin-top: 8px; }
.step .body-col ul {
  margin-top: 8px;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.step .body-col li + li { margin-top: 4px; }
.step .body-col strong { color: var(--dark); font-weight: 700; }

/* ── Callouts ────────────────────────────────────── */
.callout {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}
.callout.note { background: #F3F4F6; }
.callout.tip { background: var(--yellow-soft); }
.callout.warn { background: #FEF3C7; }
.callout .ico {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
}
.callout.note .ico { background: var(--gray); color: #fff; }
.callout.tip .ico { background: var(--yellow); color: var(--dark); }
.callout.warn .ico { background: var(--warn); color: #fff; }
.callout .lbl {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 2px;
  color: var(--dark);
}

/* ── Pro tips block ──────────────────────────────── */
.tips {
  margin-top: 28px;
  background: var(--dark);
  color: #fff;
  padding: 24px 28px;
  border-radius: 8px;
  position: relative;
}
.tips h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--yellow);
  margin-bottom: 12px;
}
.tips ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tips li {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 22px;
  position: relative;
}
.tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  margin-top: auto;
  padding: 20px 56px;
  background: var(--light);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.footer .pgnum { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.footer .web { color: var(--ink); }
.footer .pipe { color: var(--border-2); margin: 0 10px; }

/* ── Print ───────────────────────────────────────── */
@media print {
  html, body { background: #fff; }
  body { padding: 0; gap: 0; }
  .sheet { box-shadow: none; width: 100%; min-height: auto; page-break-after: always; }
  .sheet:last-child { page-break-after: auto; }
  .no-print { display: none !important; }
  @page { size: letter; margin: 0; }
}

/* ── Print/action bar (hidden in print) ──────────── */
.actionbar {
  width: 816px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: -16px;
}
.actionbar .back {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.actionbar .back:hover { color: var(--dark); }
.actionbar .actions { display: flex; gap: 10px; }
.btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  background: #fff;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--yellow); border-color: var(--yellow); }
.btn-primary:hover { background: #E0A510; border-color: #E0A510; }
.btn-outline { border-color: #CBD5E1; color: #334155; background: rgba(255,255,255,0.6); }
.btn-outline:hover { border-color: var(--dark); color: var(--dark); background: #fff; }

/* ── Top-bar back link ───────────────────────────── */
.topbar .back-top {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color .15s;
}
.topbar .back-top:hover { color: var(--yellow); }

/* ── Guide action buttons (top-right of title) ───── */
.guide-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  min-width: 220px;
}
.ga-btn {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 15px 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.ga-btn svg { width: 24px; height: 24px; flex: 0 0 auto; }
.ga-yt { background: var(--yellow); color: var(--dark); }
.ga-yt:hover { background: #E0A510; }
.ga-print { background: #fff; color: var(--dark); border-color: var(--dark); }
.ga-print:hover { background: var(--dark); color: #fff; }
@media print { .guide-actions { display: none !important; } }
