/* Guide and salary pages (/guides/, /salary/). Matches the app's light theme. */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #f8fafc; color: #374151; line-height: 1.7; }
a { color: #2563eb; }


.content { max-width: 860px; margin: 0 auto 40px; padding: 28px 16px 8px; background: #fff; border: 1px solid rgba(59, 130, 246, 0.15); border-radius: 14px; }
@media (min-width: 900px) { .content { padding: 40px 48px 16px; } }
@media (max-width: 600px) { .content { border-radius: 0; border-left: none; border-right: none; } }

.crumbs { font-size: 13px; color: #6b7280; margin-bottom: 14px; }
.crumbs a { color: #6b7280; }
h1 { font-size: 32px; line-height: 1.25; color: #111827; margin-bottom: 12px; }
@media (max-width: 600px) { h1 { font-size: 26px; } }
h2 { font-size: 22px; color: #111827; margin: 30px 0 10px; }
h3 { font-size: 17px; color: #1f2937; margin: 20px 0 6px; }
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 8px; }
blockquote { border-left: 4px solid #3b82f6; background: #eff6ff; padding: 12px 16px; margin: 0 0 16px; border-radius: 0 8px 8px 0; color: #1f2937; }
.meta { color: #6b7280; font-size: 14px; }
.lead { font-size: 18px; color: #4b5563; }

.stat-box { background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%); border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 12px; padding: 20px; margin: 16px 0 20px; text-align: center; }
.stat-label { color: #4b5563; font-size: 14px; margin-bottom: 4px; }
.stat { font-size: 40px; font-weight: 800; color: #1d4ed8; line-height: 1.2; margin-bottom: 6px; }
.stat span { font-size: 18px; font-weight: 600; color: #6b7280; }
.stat-sub { color: #4b5563; margin-bottom: 4px; }

table.figures { width: 100%; border-collapse: collapse; margin: 8px 0 10px; font-size: 15px; }
table.figures th, table.figures td { padding: 10px 8px; border-bottom: 1px solid #e5e7eb; text-align: left; }
table.figures thead th { color: #6b7280; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
table.figures td { font-variant-numeric: tabular-nums; }
.note, .source { font-size: 13px; color: #6b7280; }
.source { margin-top: 24px; border-top: 1px solid #e5e7eb; padding-top: 14px; }

ul.bands { list-style: none; margin-left: 0; }
ul.bands li { margin-bottom: 10px; }
.band { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-right: 6px; }
.band.low { background: #fee2e2; color: #b91c1c; }
.band.mid { background: #e0f2fe; color: #0369a1; }
.band.high { background: #dcfce7; color: #15803d; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; }
.card { display: block; border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 12px; padding: 16px; text-decoration: none; color: #374151; background: #fff; }
.card:hover { border-color: #3b82f6; box-shadow: 0 6px 18px rgba(59, 130, 246, 0.12); }
.card h2 { font-size: 17px; margin: 0 0 6px; color: #1d4ed8; }
.card p { font-size: 14px; margin: 0; color: #6b7280; }

.cta { background: #1e3a8a; color: #e0e7ff; border-radius: 14px; padding: 22px; margin: 28px 0; text-align: center; }
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { color: #c7d2fe; }
.cta-button { display: inline-block; background: #34d399; color: #064e3b; font-weight: 700; padding: 12px 22px; border-radius: 10px; text-decoration: none; }

.related ul { margin-left: 18px; }
.site-footer { text-align: center; font-size: 13px; color: #6b7280; padding: 0 16px 32px; }
.site-footer a { color: #4b5563; }

/* Salary checks: the offer box on salary pages and the calculator. */
.offer-check, .calc { background: #f8fafc; border: 1px solid rgba(59, 130, 246, 0.25); border-radius: 12px; padding: 16px; margin: 12px 0 18px; }
.offer-check label { display: block; font-weight: 700; color: #111827; margin-bottom: 8px; }
.offer-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.offer-dollar { font-weight: 700; color: #374151; }
.offer-row input, .offer-row select, .calc select { font: inherit; font-size: 16px; padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #111827; }
.offer-row input { width: 9em; flex: 1 1 8em; min-width: 0; }
.offer-unit { color: #6b7280; }
.offer-check button { font: inherit; font-weight: 700; padding: 9px 16px; border: none; border-radius: 8px; background: #2563eb; color: #fff; cursor: pointer; }
.offer-result { margin: 10px 0 0; }
.offer-result:empty { display: none; }
.calc { display: grid; gap: 14px; }
.calc label { display: grid; gap: 6px; font-weight: 700; color: #111827; }
.calc select { width: 100%; }
.calc button { border: none; font: inherit; font-weight: 700; cursor: pointer; justify-self: start; }
.calc-result:empty { display: none; }
.calc-result { border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; background: #fff; }
.calc-pct { font-size: 34px; font-weight: 800; margin-bottom: 6px; }
.calc-low { color: #b91c1c; }
.calc-mid { color: #0369a1; }
.calc-high { color: #15803d; }

/* Rankings */
.ranking td:first-child { font-weight: 800; color: #2563eb; width: 2.5em; }
.ranking tbody tr:nth-child(-n+3) td:first-child { color: #059669; }
.ranking tbody tr:nth-last-child(-n+3) td:first-child { color: #dc2626; }
.cite { margin: 28px 0; padding: 16px 18px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; }
.cite h2 { margin-top: 0; font-size: 18px; }
.cite p { margin: 0 0 8px; }
.cite textarea { width: 100%; box-sizing: border-box; font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 8px; border: 1px solid #cbd5e1; border-radius: 8px; resize: none; }
@media (max-width: 600px) {
  .ranking .opt { display: none; }
  .ranking { font-size: 14px; }
  .ranking th, .ranking td { padding: 9px 6px; }
}
/* FAQ page */
.faq details { background: #ffffff; border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; color: #1f2937; font-size: 16px; }
.faq details[open] summary { margin-bottom: 8px; }
.faq details p { color: #4b5563; font-size: 15px; margin: 0; }
