/* ==========================================================
   All Keyboards – how-to guide + FAQ below the translator and typing tutor
   (markup: includes/tool-guides.php; FAQ items styled in style.css)
   ========================================================== */
.guide,
.guide-faq {
  margin-top: 40px;
  padding: 36px 40px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid #e2e9eb;
  font-family: "Plus Jakarta Sans", var(--font-hi), system-ui, sans-serif;
  color: #2b3d42;
  font-size: 1rem;
  line-height: 1.7;
}
.guide-faq { margin-top: 20px; }
.guide h2,
.guide-faq h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.25;
  color: #10262c;
}
.guide h2:not(:first-child) { margin-top: 32px; padding-top: 28px; border-top: 1px solid #e2e9eb; }
.guide p { margin: 0 0 12px; }
.guide ul { margin: 0 0 12px; padding-left: 22px; }
.guide li + li { margin-top: 6px; }
.guide a { color: var(--teal-dark); font-weight: 600; text-underline-offset: 3px; }
.guide strong { color: #10262c; }
.guide [lang]:not([lang="en"]) { font-family: var(--font-hi); }

/* numbered steps */
.guide-steps { margin: 0 0 8px; padding: 0; list-style: none; counter-reset: guide-step; display: grid; gap: 10px; }
.guide-steps li {
  position: relative;
  margin: 0 !important;
  padding: 12px 16px 12px 52px;
  border-radius: 12px;
  background: #f3f7f8;
  counter-increment: guide-step;
}
.guide-steps li::before {
  content: counter(guide-step);
  position: absolute;
  left: 14px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: .8rem;
  font-weight: 800;
}

/* translation pairs */
.guide-pairs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 !important; list-style: none; }
.guide-pairs li { margin: 0 !important; }
.guide-pairs a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #cfe3e8;
  background: #f6fbfc;
  font-size: .9rem;
  text-decoration: none;
}
.guide-pairs a:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* phrases table */
.guide-table-wrap { overflow-x: auto; margin: 4px 0 12px; border: 1px solid #e2e9eb; border-radius: 12px; }
.guide-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .92rem; }
.guide-table th { padding: 10px 14px; background: #e3f1f4; color: var(--teal-dark); text-align: left; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.guide-table td { padding: 10px 14px; border-top: 1px solid #e2e9eb; vertical-align: top; }
.guide-table td:first-child { font-size: 1.1rem; font-weight: 600; color: #10262c; }

/* call to action box */
.guide-cta {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 14px;
  background: #e3f1f4;
  border: 1px solid #cfe3e8;
}
.guide-cta > i { margin-top: 4px; font-size: 1.3rem; color: var(--teal-dark); }
.guide .guide-cta h2 { margin: 0 0 4px; padding: 0; border: 0; font-size: 1.05rem; }
.guide-cta p { margin: 0; }

.guide-faq .faq-item summary { color: #10262c; }
.guide-faq .faq-item a { color: var(--teal-dark); font-weight: 600; }
.guide-updated { margin: 16px 4px 0; font-size: .82rem; color: #5b6b70; }

@media (max-width: 575.98px) {
  .guide, .guide-faq { padding: 24px 18px; }
}
