/* ─────────────────────────────────────────────────────────────
   GUIDES · SHARED STYLESHEET
   The Outsourcer -- content pages (long-form guides, not the
   animated homepage). Loaded after ../styles.css, which pulls in
   the token files (colors, fonts, spacing) these rules rely on.
   Kept in one file so editing one guide's look updates them all.
   ───────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── TOP BAR ── */
.g-topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.g-brand {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--color-primary); text-decoration: none; letter-spacing: -0.01em;
  flex-shrink: 0;
}
.g-brand span { color: #e1b218; }
.g-nav { display: flex; align-items: center; gap: 22px; }
.g-nav a {
  font-size: 14px; font-weight: 500; color: var(--color-text);
  text-decoration: none; transition: color .15s;
  white-space: nowrap;
}
.g-nav a:hover { color: #006400; font-weight: 600; }
.g-nav a.g-cta {
  background: var(--color-primary-light); color: #000;
  padding: 9px 18px; border-radius: 999px; font-weight: 700;
}
.g-nav a.g-cta:hover { background: #e6c800; }
@media (max-width: 640px) {
  .g-nav a:not(.g-cta) { display: none; }
  .g-topbar { padding: 0 16px; }
}

/* ── ARTICLE SHELL ── */
.g-wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.g-hero { padding: 44px 0 8px; }
.g-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #b08900; margin: 0 0 12px;
}
.g-h1 {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 42px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.01em; color: var(--color-primary); margin: 0 0 14px;
}
.g-dek { font-size: 17px; line-height: 1.6; color: var(--color-text-secondary); margin: 0 0 8px; }
.g-meta { font-size: 12.5px; color: var(--color-text-tertiary); margin: 18px 0 0; }

.g-article { padding: 28px 0 0; font-size: 16px; line-height: 1.7; }
.g-article h2 {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  color: var(--color-primary); margin: 40px 0 14px; letter-spacing: -0.005em;
}
.g-article h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--color-primary); margin: 28px 0 10px;
}
.g-article p { margin: 0 0 16px; }
.g-article ul, .g-article ol { margin: 0 0 16px; padding-left: 22px; }
.g-article li { margin-bottom: 8px; }
.g-article strong { color: var(--color-primary); }

/* Role/earnings table */
.g-table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--color-border); border-radius: 12px; }
.g-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 480px; }
.g-table th, .g-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--color-border); }
.g-table th { background: var(--color-background); font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.g-table tr:last-child td { border-bottom: 0; }
.g-table td.num { white-space: nowrap; font-weight: 600; }

/* Inline callout (safety notes, tips) */
.g-callout {
  background: #fbf6df; border: 1px solid #ecdb9a; border-radius: 12px;
  padding: 16px 18px; margin: 0 0 22px; font-size: 14.5px; line-height: 1.6;
}
.g-callout strong { display: block; margin-bottom: 4px; color: var(--color-primary); }

/* Mid-article CTA card */
.g-cta-card {
  background: var(--color-primary); color: #fff; border-radius: 16px;
  padding: 28px 26px; margin: 32px 0; text-align: center;
}
.g-cta-card h3 { font-family: var(--font-display); color: #fff; margin: 0 0 8px; font-size: 20px; }
.g-cta-card p { color: rgba(255,255,255,0.75); margin: 0 0 18px; font-size: 14.5px; }
.g-cta-card a {
  display: inline-block; background: var(--color-primary-light); color: #000;
  font-weight: 700; padding: 12px 26px; border-radius: 999px; text-decoration: none;
  font-size: 14.5px;
}
.g-cta-card a:hover { background: #e6c800; }

/* On-page mini FAQ (accordion, matches homepage FAQ pattern) */
.g-faq-item {
  background: var(--color-background); border: 1px solid var(--color-border);
  border-radius: 12px; margin-bottom: 10px; overflow: hidden;
}
.g-faq-item summary {
  cursor: pointer; padding: 15px 18px; font-weight: 700; font-size: 14.5px;
  color: var(--color-primary); list-style: none; position: relative;
}
.g-faq-item summary::-webkit-details-marker { display: none; }
.g-faq-item summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 18px; color: #b08900; font-weight: 700;
}
.g-faq-item[open] summary::after { content: '\2212'; }
.g-faq-item .g-faq-a { padding: 0 18px 16px; font-size: 14.5px; line-height: 1.6; color: var(--color-text-secondary); }

/* Related guides */
.g-related { padding: 8px 0 48px; }
.g-related h2 { font-family: var(--font-display); font-size: 19px; color: var(--color-primary); margin: 0 0 14px; }
.g-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.g-related-card {
  display: block; text-decoration: none; border: 1px solid var(--color-border);
  border-radius: 12px; padding: 16px 18px; transition: border-color .15s;
}
.g-related-card:hover { border-color: var(--color-primary-light); }
.g-related-card .kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #b08900; margin-bottom: 6px; }
.g-related-card .title { font-weight: 700; color: var(--color-primary); font-size: 14.5px; line-height: 1.35; }

/* ── FOOTER (mirrors index.html's, so guide pages share the same
   site-wide navigation and internal-link structure) ── */
footer.g-footer { background: var(--color-primary); color: rgba(255,255,255,0.85); padding: 48px 24px 24px; margin-top: 24px; }
.g-footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.g-footer-col h3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.g-footer-col p { margin: 0 0 12px; line-height: 1.5; font-size: 14px; }
.g-footer-col ul { list-style: none; margin: 0; padding: 0; }
.g-footer-col li { margin-bottom: 10px; }
.g-footer-col a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color .2s; font-size: 14px; }
.g-footer-col a:hover { color: #fff; }
.g-footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 12.5px; color: rgba(255,255,255,0.6); }
