/* Gear guide pages (/gear/sdr, /gear/rf-testing, /gear/adapters).
   Loaded after /styles.css; adds the article layout and the generated
   .gear-product cards that scripts/build-snapshots.mjs injects. Uses the
   site tokens only (--ink, --coal, --mist, --sun, --coral, --sea, --sky). */

main.guide {
  gap: 64px;
}

/* Hero */
.guide-hero {
  max-width: 760px;
}

.guide-hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.guide-hero .lead {
  margin-bottom: 18px;
}

.store-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Article body */
.guide-article {
  max-width: 780px;
  display: grid;
  gap: 26px;
}

.guide-article h2 {
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  line-height: 1.2;
  margin-top: 14px;
}

.guide-article h3 {
  font-size: 1.1rem;
  margin-top: 4px;
}

.guide-article p,
.guide-article li {
  line-height: 1.7;
  color: var(--coal);
}

.guide-article ul,
.guide-article ol {
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

.guide-article strong {
  color: var(--ink);
}

.guide-article code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(11, 12, 15, 0.06);
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--ink);
}

/* Checklist card */
.guide-checklist {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(11, 12, 15, 0.06);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 12px 26px rgba(11, 12, 15, 0.08);
}

.guide-checklist h2 {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.guide-checklist ul {
  list-style: none;
  padding: 0;
}

.guide-checklist li {
  position: relative;
  padding-left: 26px;
}

.guide-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sea);
}

/* Tier cards (RF testing) and connector table (adapters) */
.guide-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.guide-tier {
  background: #fff;
  border: 1px solid rgba(11, 12, 15, 0.06);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 22px rgba(7, 9, 20, 0.06);
  display: grid;
  gap: 8px;
  align-content: start;
}

.guide-tier h3 {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  margin: 0;
}

.guide-tier .eyebrow {
  margin-bottom: 0;
}

.guide-tier p,
.guide-tier li {
  font-size: 0.95rem;
  line-height: 1.55;
}

.guide-tier ul {
  padding-left: 1.1em;
  gap: 4px;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(11, 12, 15, 0.08);
}

.guide-table th,
.guide-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(11, 12, 15, 0.08);
  vertical-align: top;
  line-height: 1.5;
  color: var(--coal);
}

.guide-table th {
  background: rgba(11, 12, 15, 0.05);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-table tr:last-child td {
  border-bottom: none;
}

.guide-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Generated product cards (markup from scripts/render-cards.mjs) */
.gear-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gear-product {
  display: grid;
  gap: 10px;
  align-content: start;
  background: #fff;
  border: 1px solid rgba(11, 12, 15, 0.06);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 22px rgba(7, 9, 20, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gear-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(7, 9, 20, 0.12);
}

.gear-product__category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coal);
}

.gear-product__name {
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
}

.gear-product__desc {
  color: var(--coal);
  font-size: 0.92rem;
  line-height: 1.5;
}

.gear-product__why {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--coal);
  background: rgba(91, 192, 199, 0.14);
  border: 1px solid rgba(91, 192, 199, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
}

.gear-product__why strong {
  color: var(--ink);
}

.gear-product__cta {
  margin-top: 4px;
  text-decoration: none;
  font-weight: 600;
  color: var(--coral);
}

.gear-product__cta:hover {
  text-decoration: underline;
}

.gear .category-intro {
  max-width: 720px;
  color: var(--coal);
  line-height: 1.65;
}

.gear-subhead {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  margin: 10px 0 4px;
}

/* FAQ */
.guide-faq {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 26px;
  padding: 36px;
  box-shadow: 0 12px 26px rgba(11, 12, 15, 0.08);
  display: grid;
  gap: 18px;
}

.guide-faq h2 {
  font-family: "Fraunces", serif;
  margin-bottom: 2px;
}

.guide-faq h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.guide-faq p {
  color: var(--coal);
  line-height: 1.65;
  max-width: 780px;
}

/* Related guides */
.guide-related h2 {
  font-family: "Fraunces", serif;
  margin-bottom: 16px;
}

.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.guide-related-grid a {
  display: grid;
  gap: 6px;
  align-content: start;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(11, 12, 15, 0.06);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 22px rgba(7, 9, 20, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-related-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(7, 9, 20, 0.12);
}

.guide-related-grid small {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coal);
}

.guide-related-grid strong {
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
}

.guide-related-grid span {
  color: var(--coal);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* App CTA (same look as the /gear hub) */
.app-callout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
  background: #111827;
  color: #f9fafb;
  border-radius: 26px;
  padding: 36px;
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.35);
}

.app-callout .eyebrow {
  color: #9ca3af;
}

.app-callout h2 {
  font-family: "Fraunces", serif;
  margin-bottom: 12px;
}

.app-callout p {
  color: #d1d5db;
  line-height: 1.65;
}

.app-callout .cta.ghost {
  color: #f9fafb;
  border-color: rgba(249, 250, 251, 0.35);
}

.app-callout .app-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-weight: 700;
  margin-bottom: 14px;
}

/* Footer variant with guide links */
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 600px) {
  main.guide {
    gap: 48px;
  }

  .guide-article h2 {
    font-size: 1.45rem;
  }

  .gear,
  .guide-faq,
  .app-callout,
  .guide-checklist {
    padding: 24px 20px;
  }

  .store-row .cta {
    width: 100%;
    text-align: center;
  }
}
