/* ------------------------------------------------------------------
   Digital Escape Tools — long-form guide / Top-X articles
   Works with site-pages.css + style4a30.css
------------------------------------------------------------------ */

.guide-article {
  max-width: 72ch;
}

.guide-article--wide {
  max-width: none;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--page-muted, #9aa0a6);
}

.guide-meta .tag {
  font-size: 11px;
}

.guide-meta__sep {
  opacity: 0.4;
}

.guide-disclosure {
  border-radius: 10px;
  border: 1px dashed rgba(255, 193, 7, 0.35);
  background: rgba(255, 193, 7, 0.06);
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #bdc1c6;
  margin-bottom: 24px;
}

.guide-disclosure a {
  color: #8ab4f8;
}

/* Quick picks table */
.guide-picks-wrap {
  overflow-x: auto;
  margin: 0 0 28px;
  border-radius: 12px;
  border: 1px solid var(--page-border, rgba(255, 255, 255, 0.12));
}

.guide-picks {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}

.guide-picks th,
.guide-picks td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-picks th {
  background: rgba(0, 0, 0, 0.22);
  color: #e6edf3;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.guide-picks td {
  color: #bdc1c6;
}

.guide-picks tr:last-child td {
  border-bottom: 0;
}

.guide-picks td:first-child {
  color: var(--page-muted, #9aa0a6);
  font-weight: 500;
  white-space: nowrap;
}

.guide-picks a {
  color: #8ab4f8;
  text-decoration: none;
  font-weight: 600;
}

.guide-picks a:hover {
  text-decoration: underline;
  color: #c8e0ff;
}

/* Tool entry cards */
.guide-tool {
  border-radius: 14px;
  border: 1px solid var(--page-border, rgba(255, 255, 255, 0.12));
  background: linear-gradient(
    165deg,
    rgba(47, 54, 61, 0.72),
    rgba(36, 41, 46, 0.55)
  );
  padding: 20px 18px 18px;
  margin-bottom: 22px;
  scroll-margin-top: 90px;
}

.guide-tool__head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.guide-tool__rank {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--page-amber, #e4f88a);
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.25);
}

.guide-tool__logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px;
}

.guide-tool__title-wrap {
  flex: 1;
  min-width: 0;
}

.guide-tool__title-wrap h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: #e6edf3;
}

.guide-tool__tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--page-muted, #9aa0a6);
}

.guide-tool__body p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: #bdc1c6;
}

.guide-tool__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.guide-tool__col h4 {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--page-muted, #9aa0a6);
  font-weight: 600;
}

.guide-tool__col ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #bdc1c6;
}

.guide-tool__col li {
  margin-bottom: 4px;
}

.guide-tool__col--cons ul {
  color: #c9b8b8;
}

.guide-tool__notes {
  border-radius: 10px;
  border: 1px solid rgba(52, 152, 219, 0.25);
  background: rgba(52, 152, 219, 0.06);
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #bdc1c6;
  margin: 12px 0;
}

.guide-tool__notes strong {
  color: #8ab4f8;
}

.guide-tool__why {
  font-size: 0.92rem;
  color: #9aa0a6;
  font-style: italic;
  margin: 0 0 14px;
}

.guide-tool__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.guide-tool__actions .page-btn--ghost {
  font-size: 12px;
  padding: 8px 12px;
}

/* Comparison matrix */
.guide-compare-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border-radius: 12px;
  border: 1px solid var(--page-border, rgba(255, 255, 255, 0.12));
}

.guide-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
}

.guide-compare th,
.guide-compare td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  color: #bdc1c6;
}

.guide-compare th {
  background: rgba(0, 0, 0, 0.2);
  color: #e6edf3;
  font-size: 12px;
}

.guide-compare td:first-child,
.guide-compare th:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--page-muted, #9aa0a6);
  position: sticky;
  left: 0;
  background: rgba(36, 41, 46, 0.98);
  z-index: 1;
}

.guide-compare .guide-rating {
  color: var(--page-amber, #e4f88a);
  letter-spacing: 1px;
}

.guide-compare .guide-rating--low {
  color: #6e7681;
}

/* Honest drawbacks block */
.guide-caveats {
  border-left: 3px solid rgba(248, 81, 73, 0.5);
  padding: 4px 0 4px 16px;
  margin: 20px 0;
}

.guide-caveats li {
  margin-bottom: 8px;
  color: #bdc1c6;
}

/* CTA band */
.guide-cta {
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--page-border, rgba(255, 255, 255, 0.12));
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(255, 193, 7, 0.1), transparent),
    rgba(47, 54, 61, 0.6);
  margin-top: 32px;
}

.guide-cta h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: #e6edf3;
}

.guide-cta p {
  margin: 0 0 16px;
  color: #bdc1c6;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.guide-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Engagement mount placeholder */
.guide-engagement {
  margin: 36px 0 24px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.12);
}

.guide-toc {
  border-radius: 12px;
  border: 1px solid var(--page-border, rgba(255, 255, 255, 0.12));
  background: var(--page-glass, rgba(255, 255, 255, 0.04));
  padding: 16px 18px;
  margin-bottom: 28px;
}

.guide-toc h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #e6edf3;
}

.guide-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 1;
}

@media (min-width: 640px) {
  .guide-toc ol {
    columns: 2;
    column-gap: 24px;
  }
}

.guide-toc li {
  margin-bottom: 6px;
  font-size: 0.9rem;
  break-inside: avoid;
}

.guide-toc a {
  color: #8ab4f8;
  text-decoration: none;
}

.guide-toc a:hover {
  text-decoration: underline;
}

.guide-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.guide-related a {
  display: block;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--page-border, rgba(255, 255, 255, 0.12));
  background: rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: #e6edf3;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

.guide-related a:hover {
  border-color: rgba(255, 193, 7, 0.4);
}

.guide-related a span {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--page-muted, #9aa0a6);
}

@media (max-width: 600px) {
  .guide-tool__head {
    flex-wrap: wrap;
  }

  .guide-tool__grid {
    grid-template-columns: 1fr;
  }
}
