/* guides.css — the evergreen guides surface (index + article + latest strip).
   Editorial-first: a narrow measure, generous leading, and the brand gold used
   only as an accent. Shares vc-theme.css tokens; no other dependency. */

.gd-wrap { max-width: 720px; margin: 0 auto; padding: 30px 18px 90px; }

.gd-back { display: inline-block; margin-bottom: 22px; color: var(--vc-text-sub); text-decoration: none; font-size: .9rem; }
.gd-back:hover { color: var(--vc-text); }

/* ── masthead ── */
.gd-head { margin-bottom: 30px; }
.gd-chip { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .02em; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--vc-gold, #fcc61d); color: var(--vc-gold, #fcc61d); margin-bottom: 14px; }
.gd-head h1 { margin: 0 0 12px; font-size: 1.95rem; line-height: 1.28; letter-spacing: -.015em; }
.gd-sub { margin: 0 0 18px; color: var(--vc-text-sub); font-size: 1.02rem; line-height: 1.75; }
.gd-byline { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--vc-border); }
.gd-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--vc-border); }
.gd-byline-text { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.gd-author a { color: var(--vc-text); font-weight: 600; text-decoration: none; }
.gd-author a:hover { text-decoration: underline; }
.gd-dates { color: var(--vc-text-sub); font-size: .8rem; }

/* ── article ── */
.gd-article { font-size: 1.04rem; line-height: 2; }
.gd-article p { margin: 0 0 20px; }
.gd-article h2 { margin: 38px 0 14px; font-size: 1.24rem; line-height: 1.4; padding-inline-start: 12px; border-inline-start: 3px solid var(--vc-gold, #fcc61d); }
.gd-article ul { margin: 0 0 20px; padding-inline-start: 22px; }
.gd-article li { margin-bottom: 10px; }
.gd-article a { color: var(--vc-accent, #5ec2ff); }

/* ── index grid ── */
.gd-grid { display: grid; gap: 14px; }
.gd-card { display: block; border: 1px solid var(--vc-border); border-radius: 14px; padding: 20px 20px 16px; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; background: color-mix(in srgb, var(--vc-text) 3%, transparent); }
.gd-card:hover { border-color: var(--vc-gold, #fcc61d); transform: translateY(-1px); }
.gd-card h2 { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.4; }
.gd-card p { margin: 0 0 12px; color: var(--vc-text-sub); font-size: .92rem; line-height: 1.7; }
.gd-card-go { font-size: .84rem; font-weight: 700; color: var(--vc-gold, #fcc61d); }

/* ── related ── */
.gd-more { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--vc-border); }
.gd-more h2 { margin: 0 0 12px; font-size: 1.05rem; }
.gd-more-list { display: flex; flex-direction: column; gap: 8px; }
.gd-more-list a { color: var(--vc-accent, #5ec2ff); text-decoration: none; font-size: .95rem; }
.gd-more-list a:hover { text-decoration: underline; }

/* ── the section header ────────────────────────────────────────────────────
   The same two tabs the tips pages open with, so tips and guides read as one
   section from either side. Sits where the "back to all tools" link used to —
   the sidebar is that link now. */
.ed-switch { display: flex; gap: 8px; margin-bottom: 20px; }
.ed-switch-tab {
  flex: 1 1 0; text-align: center; padding: 10px 14px; border-radius: 11px;
  border: 1px solid var(--vc-border); text-decoration: none;
  color: var(--vc-text-sub); font-size: .93rem; font-weight: 700;
}
.ed-switch-tab:hover { color: var(--vc-text); border-color: var(--vc-text-sub); }
.ed-switch-tab.is-on { color: #151515; background: var(--vc-gold, #fcc61d); border-color: var(--vc-gold, #fcc61d); }

/* ── the weekly half ───────────────────────────────────────────────────────
   Guides are the evergreen writing; the tips page is this week's. A reader who
   lands on a guide from search has no other way to learn the weekly piece
   exists, so it gets a plain, quiet card of its own rather than a line in the
   footer — deliberately calmer than the gold follow-prompt below it, which is
   the page's one loud call to action. */
.gd-weekly { margin-top: 40px; padding: 18px 20px; border: 1px solid var(--vc-border); border-radius: 14px; }
.gd-weekly h2 { margin: 0 0 6px; font-size: 1.08rem; }
.gd-weekly h2 a { color: var(--vc-text); text-decoration: none; }
.gd-weekly h2 a:hover { color: var(--vc-gold, #fcc61d); }
.gd-weekly p { margin: 0; color: var(--vc-text-sub); font-size: .9rem; line-height: 1.75; }

/* ── follow prompt + recent posts ──────────────────────────────────────────
   A call to action, not a footer: it sits in its own tinted card so it reads
   as an invitation at the end of the piece. The heading and the CTA are always
   present; the post list below them only appears once it has content. */
.gd-latest {
  margin-top: 48px; padding: 24px 22px;
  border: 1px solid color-mix(in srgb, var(--vc-gold, #fcc61d) 30%, var(--vc-border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--vc-gold, #fcc61d) 5%, transparent);
}
.gd-latest h2 { margin: 0 0 8px; font-size: 1.18rem; line-height: 1.4; }
.gd-latest-sub { margin: 0 0 18px; color: var(--vc-text-sub); font-size: .95rem; line-height: 1.8; }
.gd-latest-list { display: grid; gap: 10px; }
.gd-latest-item { display: block; border: 1px solid var(--vc-border); border-radius: 12px; padding: 13px 15px; text-decoration: none; color: inherit; background: color-mix(in srgb, var(--vc-text) 3%, transparent); transition: border-color .15s ease; }
.gd-latest-item:hover { border-color: var(--vc-text-sub); }
/* A post row becomes a thumbnail + text pair when the post carries an image.
   The image is hotlinked from X and may vanish, so the layout must read fine
   without it — hence the modifier class rather than a fixed two-column grid. */
.gd-latest-item.has-img { display: flex; gap: 12px; align-items: flex-start; }
.gd-latest-img { width: 84px; height: 84px; flex: none; border-radius: 9px; object-fit: cover; background: color-mix(in srgb, var(--vc-text) 6%, transparent); }
.gd-latest-body { display: block; min-width: 0; }
.gd-latest-text { display: -webkit-box; margin: 0; font-size: .9rem; line-height: 1.7; color: var(--vc-text); -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gd-latest-date { display: block; margin-top: 6px; font-size: .76rem; color: var(--vc-text-sub); }
.gd-latest-cta { margin: 18px 0 0; }
.gd-latest-cta a {
  display: inline-block; padding: 11px 20px; border-radius: 999px;
  background: var(--vc-gold, #fcc61d); color: #10161f;
  font-size: .93rem; font-weight: 700; text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}
.gd-latest-cta a:hover { filter: brightness(1.08); transform: translateY(-1px); }
.gd-latest-cta a span { font-weight: 600; }
/* Light theme remaps --vc-gold to a mid blue; dark ink on it is unreadable
   (same fix as the segmented buttons in vc-theme.css). */
html[data-vc-theme="light"] .gd-latest-cta a { color: #fff; }

@media (max-width: 560px) { .gd-head h1 { font-size: 1.55rem; } .gd-article { font-size: 1rem; } }

/* ── rich blocks inside a guide (tables, callouts) ────────────────────────
   Added for the evergreen guides: the FPL scoring rules and the author's
   season record read far better as real tables than as bullet lists — and,
   unlike the screenshots they replace, the numbers stay crawlable and never
   go out of date silently. */
.gd-table-wrap { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
.gd-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.gd-table th {
  text-align: start; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--vc-text-sub);
  padding: 0 12px 10px; border-bottom: 1px solid var(--vc-border); white-space: nowrap;
}
.gd-table td { padding: 11px 12px; border-bottom: 1px solid color-mix(in srgb, var(--vc-border) 55%, transparent); }
.gd-table tbody tr:last-child td { border-bottom: none; }
.gd-table tbody tr:hover { background: color-mix(in srgb, var(--vc-text) 3%, transparent); }
/* Tabular figures so numbers line up column-wise. Deliberately NOT nowrap:
   these tables carry prose as well as numbers (the xPts results table has a
   full sentence per row), and forcing one line blew the table off the page.
   Short numeric values are single tokens and never wrap anyway. */
.gd-table td:not(:first-child) { font-variant-numeric: tabular-nums; text-align: start; }
/* Keep the label column from collapsing to one word per line when the value
   column is long. */
.gd-table td:first-child { min-width: 11rem; }

.gd-note {
  margin: 0 0 22px; padding: 14px 18px;
  border-inline-start: 3px solid var(--vc-gold, #fcc61d);
  background: color-mix(in srgb, var(--vc-gold, #fcc61d) 7%, transparent);
  border-radius: 0 12px 12px 0;
}
.gd-note p { margin: 0; font-size: .96rem; line-height: 1.8; }
.gd-note p + p { margin-top: 10px; }

/* Numbered sections (the 10-principles guide) get a quiet counter badge so the
   page scans like a list without the headings shouting. */
.gd-article { counter-reset: gdsec; }
.gd-article h2 { position: relative; }

/* Lead paragraph — the first paragraph of a guide, set slightly larger. */
.gd-article > p:first-of-type { font-size: 1.12rem; line-height: 1.9; color: var(--vc-text); }

@media (max-width: 560px) {
  .gd-table { font-size: .88rem; }
  .gd-table th, .gd-table td { padding-inline: 8px; }
}

/* Section break before a guide's "here is the live version" footer, so that
   footer reads as an aside rather than another paragraph of the argument. */
.gd-article .gd-rule {
  border: 0; height: 1px; margin: 34px 0 26px;
  background: var(--vc-border);
}

/* An embedded image (a graphic from the owner's X post, or one of our own
   generated boards). Full-width of the measure, never wider than the column. */
.gd-figure { margin: 0 0 24px; }
.gd-figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--vc-border); }

/* Player face on a recommendation — inline with the name, never a block. */
.gd-face {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  vertical-align: -9px; margin-inline-end: 6px;
  background: color-mix(in srgb, var(--vc-text) 8%, transparent);
}
