/* Long-form guides under /resources/ (loaded after site.css and service.css).
   service.css supplies the hero, byline, sticky "On this page" bar and section
   bands; this file adds the reading column, tables, callouts and the ranked
   company profiles. */

/* ---------- Hero ---------- */
.guide-hero .svc-hero-copy { padding-top: 0; }
.guide-dates { display: block; }

/* ---------- Reading column ---------- */
/* A long read: tighter bands than the one-idea-per-screen service pages. */
.guide .svc-block { padding: 64px 0; }
.guide #glance { padding: 48px 0; }
@media (min-width: 900px) { .guide .svc-block { padding: 88px 0; } .guide #glance { padding: 56px 0; } }
.guide-col { max-width: 820px; }
.guide-prose > * + * { margin-top: 1.1rem; }
.guide-prose p { margin-bottom: 0; font-size: 1.0938rem; line-height: 1.75; }
.guide-prose .svc-answer { margin-top: 18px; }
.guide-prose h3 { margin-top: 2rem; font-size: 1.3rem; line-height: 1.3; }
.guide-prose strong { color: var(--ink); }
.guide-prose ol.guide-num { counter-reset: n; display: grid; gap: 14px; }
.guide-prose ol.guide-num > li { position: relative; padding-left: 44px; line-height: 1.7; counter-increment: n; }
.guide-prose ol.guide-num > li::before {
  content: counter(n); position: absolute; left: 0; top: 1px; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .875rem; font-weight: 800;
}
.guide-prose .svc-head { margin-bottom: 8px; }
.svc-block .guide-prose + .guide-prose { margin-top: 1.1rem; }

/* ---------- At a glance + callouts ---------- */
.guide-glance {
  margin: 0; padding: 26px 28px; border-radius: var(--radius-lg); background: #fff;
  border: 1px solid var(--line); border-left: 5px solid var(--blue); box-shadow: var(--shadow);
  font-size: 1.0938rem; line-height: 1.7;
}
.guide-glance strong:first-child { color: var(--ink); }
.guide-callout { padding: 28px 30px; border-radius: var(--radius-lg); background: var(--navy); color: var(--on-dark); }
.guide-callout p { margin: 0; line-height: 1.7; }
.guide-callout p + p { margin-top: 12px; }
.guide-callout strong { color: #fff; }

/* ---------- Key takeaways ---------- */
.guide-takeaways { display: grid; gap: 0; counter-reset: t; }
.guide-takeaways li { position: relative; padding: 18px 0 18px 40px; border-bottom: 1px solid var(--line); line-height: 1.65; }
.guide-takeaways li:last-child { border-bottom: 0; }
.guide-takeaways li::before {
  content: ""; position: absolute; left: 0; top: 21px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a66db' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.guide-takeaways strong { color: var(--ink); }

/* ---------- Tables ---------- */
.guide-table-wrap { margin: 28px 0 0; overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
.svc-block--tint .guide-table-wrap { border-color: transparent; box-shadow: var(--shadow); }
.guide-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9688rem; line-height: 1.5; }
.guide-table th, .guide-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide-table thead th { background: var(--navy); color: #fff; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.guide-table tbody tr:last-child > * { border-bottom: 0; }
.guide-table tbody th { color: var(--ink); font-weight: 700; }
.guide-table td.guide-num-cell, .guide-table th.guide-num-cell { width: 1%; white-space: nowrap; text-align: center; }
.guide-table a { font-weight: 700; text-decoration: none; }
.guide-table a:hover { text-decoration: underline; }
.guide-table .is-us { background: var(--blue-soft); }
/* Phones: each row becomes a small stacked card, labeled from data-label. */
@media (max-width: 639px) {
  .guide-table { min-width: 0; }
  .guide-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .guide-table tr { display: block; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .guide-table tbody tr:last-child { border-bottom: 0; }
  .guide-table th, .guide-table td, .guide-table td.guide-num-cell { display: block; width: auto; padding: 2px 0; border: 0; text-align: left; white-space: normal; }
  .guide-table tbody th { margin-bottom: 4px; font-size: 1.0625rem; }
  .guide-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink); }
  .guide-table td.guide-num-cell { font-size: .8125rem; color: var(--muted); }
}
.guide-table-note { margin: 14px 0 0; font-size: .9375rem; line-height: 1.6; color: var(--muted); }

/* ---------- Ranked company profiles ---------- */
.guide-cos { display: grid; gap: 28px; margin-top: 40px; counter-reset: none; }
.guide-co { padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); scroll-margin-top: calc(var(--topbar-h) + 72px); }
.svc-block--tint .guide-co { border-color: transparent; box-shadow: var(--shadow); }
.guide-co--top { border: 2px solid var(--blue); box-shadow: 0 24px 56px -30px rgba(42, 102, 219, .55); }
.guide-co-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 20px; }
.guide-co h3 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.2; letter-spacing: -.02em; }
.guide-co-rank { color: var(--blue); }
.guide-co-site { font-size: .9375rem; font-weight: 600; }
.guide-co-site .icon { width: 14px; height: 14px; margin-left: 4px; vertical-align: -1px; }

.guide-shot { margin: 0 0 24px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--tint); box-shadow: 0 18px 40px -26px rgba(11, 18, 36, .45); }
.guide-shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #e9ecf5; border-bottom: 1px solid var(--line); }
.guide-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c6cbda; }
.guide-shot-bar span { margin-left: 10px; padding: 2px 12px; border-radius: 999px; background: #fff; font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-shot img { width: 100%; height: auto; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }
.guide-shot figcaption { padding: 8px 14px; background: #fff; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }

.guide-facts { display: grid; gap: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.guide-facts div { display: grid; gap: 2px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.guide-facts dt { font-size: .875rem; font-weight: 700; color: var(--ink); }
.guide-facts dd { margin: 0; line-height: 1.55; }
@media (min-width: 640px) { .guide-facts div { grid-template-columns: 150px minmax(0, 1fr); } }

.guide-co p { margin: 0 0 14px; line-height: 1.7; }
.guide-co p:last-child { margin-bottom: 0; }
.guide-co h4 { margin: 26px 0 10px; font-size: 1.125rem; line-height: 1.3; color: var(--ink); }
.guide-label { color: var(--ink); }
.guide-skip { padding: 14px 18px; border-radius: var(--radius); background: var(--tint); }
.guide-co ul.guide-bullets { display: grid; gap: 8px; margin: 0 0 14px; }
.guide-co ul.guide-bullets li { position: relative; padding-left: 22px; line-height: 1.6; }
.guide-co ul.guide-bullets li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.guide-pull { margin: 24px 0; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--tint); }
.guide-pull blockquote { margin: 0 0 10px; font-size: 1.1875rem; font-weight: 600; line-height: 1.5; color: var(--ink); }
.guide-pull figcaption { font-size: .875rem; color: var(--muted); }
.guide-co .cta-block { align-items: flex-start; gap: 14px; margin: 24px 0 0; }
.guide-co .trust-badges { justify-content: flex-start; }
@media (max-width: 640px) {
  .guide-co { padding: 22px 18px; }
  .guide-co .cta-block { align-items: stretch; }
  .guide-co .trust-badges { justify-content: center; }
}

/* ---------- How to choose: numbered questions with a red flag ---------- */
.guide-qs { display: grid; gap: 18px; margin-top: 8px; }
.guide-qs > li { padding: 24px 26px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.guide-qs h3 { margin: 0 0 10px; font-size: 1.1875rem; line-height: 1.3; }
.guide-qs p { margin: 0; line-height: 1.7; }
.guide-qs .guide-flag { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .9688rem; }
.guide-flag em { font-weight: 700; color: var(--danger); }

/* ---------- Workstreams ---------- */
.guide-work { display: grid; gap: 0; }
.guide-work li { padding: 16px 0; border-bottom: 1px solid var(--line); line-height: 1.7; }
.guide-work li:last-child { border-bottom: 0; }

/* ---------- FAQ inside the reading column ---------- */
.guide-col .faq { margin-top: 28px; }

/* ---------- About the author ---------- */
.guide-author { display: grid; gap: 20px; align-items: center; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.guide-author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--hl-dark); }
.guide-author h2 { margin-bottom: 8px; font-size: 1.375rem; line-height: 1.25; }
.guide-author p { margin: 0; line-height: 1.7; }
@media (min-width: 640px) { .guide-author { grid-template-columns: 96px minmax(0, 1fr); gap: 28px; } }
