/* FiberOpticsTools — Tool Kits guide (/tool-kits/). Uses the frame design tokens. */

#fot-toolkits {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 72px;
  color: var(--ink);
  font-family: var(--sans);
}

#fot-toolkits .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}

/* ── hero ─────────────────────────────────────────────────────────────────── */
.tk-hero {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--line);
}
.tk-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  margin: 0 0 12px;
  text-wrap: balance;
}
.tk-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 60ch;
  margin: 0 0 22px;
}
.tk-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tk-jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .15s, color .15s, background .15s;
}
.tk-jump a:hover { border-color: var(--accent); color: var(--accent); }
.tk-jump a span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--ground);
  border-radius: 999px;
  padding: 1px 7px;
}

/* ── level legend ─────────────────────────────────────────────────────────── */
.tk-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 22px 0 8px;
  padding: 14px 16px;
  background: var(--accent-glow);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
}
.tk-legend-title {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  color: var(--ink-dim);
  margin-right: 4px;
}
.tk-legend-hint { color: var(--muted); margin-right: 10px; }

/* ── level badges ─────────────────────────────────────────────────────────── */
.tk-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.3;
  white-space: nowrap;
}
.tk-badge-entry { background: rgba(102,120,140,.12); color: var(--ink-dim); }
.tk-badge-pro   { background: var(--accent-glow); color: var(--accent-deep); }
.tk-badge-adv   { background: rgba(15,166,190,.14); color: #086b7c; }

/* ── section ──────────────────────────────────────────────────────────────── */
.tk-section { padding: 34px 0 6px; scroll-margin-top: 80px; }
.tk-section .shead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.tk-section .shead h2 {
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.25;
  margin: 0;
  color: var(--ink-dim);
  font-weight: 600;
  max-width: 62ch;
  text-wrap: balance;
}
.tk-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* ── card grid ────────────────────────────────────────────────────────────── */
.tk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.tk-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tk-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 6px 22px rgba(20, 70, 110, .10);
  transform: translateY(-2px);
}
.tk-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--ground);
  overflow: hidden;
}
.tk-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.tk-card-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 15px 15px;
  flex: 1;
}
.tk-card-name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
}
.tk-card-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.tk-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.tk-card-price { font-size: 16px; font-weight: 700; color: var(--ink); }
.tk-card-price .woocommerce-Price-amount { font-weight: 700; }
.tk-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.tk-card:hover .tk-card-cta { color: var(--accent-deep); }
.tk-card:hover .tk-card-cta svg { transform: translateX(2px); }
.tk-card-cta svg { transition: transform .15s; }

/* ── help CTA ─────────────────────────────────────────────────────────────── */
.tk-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding: 26px 28px;
  background: var(--accent-deep);
  color: var(--on-accent);
  border-radius: var(--radius);
}
/* The band is the one dark surface on the page, so its text is set explicitly: the page's
   #fot-toolkits .eyebrow rule and Kadence's global h2 colour both outrank what the band
   would otherwise inherit, and both are dark blue on dark blue here. */
#fot-toolkits .tk-help .eyebrow { color: #b9dcf2; }
.tk-help h2 { margin: 0; font-size: clamp(18px, 2.4vw, 24px); line-height: 1.2; text-wrap: balance; color: var(--on-accent); }
.tk-help-cta {
  flex: none;
  background: var(--on-accent);
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
}
.tk-help-cta:hover { background: #eaf4fb; }

@media (max-width: 600px) {
  .tk-section .shead { flex-direction: column; align-items: flex-start; gap: 4px; }
  .tk-help { flex-direction: column; align-items: flex-start; }
}
