/* ===============================
   Base & Reset
================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* ===============================
   Layout
================================ */

.container {
  max-width: 520px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Reduce space between header and main content */
main.container {
  margin-top: 20px;
}

/* ===============================
   Header (Ad-safe)
================================ */

.site-header {
  background: transparent;
  border-bottom: none;
  margin: 0;
  padding: 8px 0;
}

/* Reserved space for future ads */
.header-ad-slot {
  min-height: 0;         /* No ad yet */
  width: 100%;
}

/* Header inner */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-nav a {
  font-weight: 500;
  text-decoration: none;
}

/* Logo */
.site-header img {
  height: 38px;
  width: auto;
}

.site-nav a {
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* ===============================
   Header spacing fix
================================ */

.site-header .container {
  margin: 0 auto;
  padding: 0;
}

.header-nav a[href="/employee-vs-contractor-guide"] {
  font-weight: 600;
}

/* ===============================
   Typography
================================ */

h1 {
  text-align: center;
  font-size: 2rem;
  color: #1a73e8;
  margin-bottom: 10px;
}

h2 {
  color: #1a73e8;
  margin-top: 40px;
  margin-bottom: 15px;
}

h3 {
  color: #1a73e8;
  margin-top: 30px;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 10px 0;
}

.hint {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  font-style: italic;
}

.intro {
  text-align: center;
  margin-bottom: 30px;
  color: #555;
}

/* ===============================
   Forms & Inputs
================================ */

label {
  display: block;
  margin-bottom: 20px;
  font-weight: 600;
}

input[type="number"],
input[type="date"] {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}

input:focus {
  outline: none;
  border-color: #1a73e8;
}

/* ===============================
   Select (Dropdowns)
================================ */

select {
  width: 100%;
  margin-top: 6px;
  padding: 12px 40px 12px 12px;
  font-size: 1rem;
  font-family: inherit;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;

  /* Remove default OS styling */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Custom dropdown arrow */
  background-image:
    linear-gradient(45deg, transparent 50%, #555 50%),
    linear-gradient(135deg, #555 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

select:focus {
  outline: none;
  border-color: #1a73e8;
}

/* Disabled state */
select:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Ensure label spacing consistency */
label select {
  margin-top: 6px;
}

/* ===============================
   Hub & Cross-Navigation Links
================================ */

.hub-link {
  margin: 18px 0 28px;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}

.hub-link a {
  font-weight: 600;
  color: #1a73e8;
  text-decoration: none;
}

.hub-link a:hover {
  text-decoration: underline;
}

/* ===============================
   Results Box
================================ */

.result {
  margin-top: 25px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  font-size: 1.05rem;
}

.result p {
  margin: 8px 0;
}

/* ===============================
   Tool List (Homepage)
================================ */

.tools {
  margin-top: 40px;
}

.tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tool-list li {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.tool-list a {
  display: block;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.tool-list a:hover {
  background: #f1f5ff;
}

/* ===============================
   Footer
================================ */

.site-footer {
  background: transparent;
  border-top: none;
  margin-top: 40px;
}

.site-footer .container {
  text-align: center;
  padding: 10px 0;
}

.footer-links {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 6px;
  line-height: 1.5;
}

.footer-links a {
  color: #777;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.75rem;
  color: #999;
  margin: 0;
}

/* ===============================
   Mobile
================================ */

@media (max-width: 400px) {
  .container {
    margin: 25px auto;
    padding: 0 15px;
  }

  h1 {
    font-size: 1.6rem;
  }
}

/* ===============================
   Mobile Header
================================ */

@media (max-width: 480px) {

  .header-inner {
    padding: 6px 0;
  }

  .site-header img {
    height: 32px;
  }
}

/* =========================
   Tool list grouping labels
   ========================= */

.tool-group {
  list-style: none;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

.tool-group + li {
  margin-top: 0.25rem;
}

.related-calculators {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: #666;
}

.related-calculators a {
  font-weight: 500;
}

/* ===============================
   Homepage Enhancements
   =============================== */

/* Hero section */
.hero {
  margin-bottom: 35px;
}

.hero h1 {
  margin-bottom: 12px;
}

.hero .intro {
  font-size: 1.05rem;
}

/* ===============================
   Category Hub
   =============================== */

.categories {
  margin-top: 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.category-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.category-card:hover {
  background: #f1f5ff;
}

.category-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.category-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
}

/* ===============================
   Popular Tools
   =============================== */

.popular-tools {
  margin-top: 45px;
}

/* Reuse existing tool-list styles */
.popular-tools .tool-list li {
  margin-bottom: 10px;
}

/* ===============================
   Authority Content
   =============================== */

.authority {
  margin-top: 45px;
  font-size: 0.95rem;
  color: #555;
}

.authority p {
  margin-bottom: 12px;
}

.authority a {
  font-weight: 500;
}

/* ===============================
   FAQ Section
   =============================== */

.faq {
  margin-top: 45px;
}

.faq h3 {
  margin-top: 22px;
  margin-bottom: 6px;
  font-size: 1rem;
}

.faq p {
  margin-top: 0;
  font-size: 0.95rem;
  color: #555;
}

/* ===============================
   Comparison Tables (SEO)
================================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

thead {
  background: #f1f5ff;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
}

th {
  font-weight: 600;
  color: #1a73e8;
}

tbody tr:not(:last-child) {
  border-bottom: 1px solid #eee;
}

tbody tr strong {
  color: #111;
}

@media (max-width: 480px) {
  table {
    font-size: 0.9rem;
  }
}

/* ===============================
   Tooltip (calculator hints)
================================ */

.tooltip {
  position: relative;
  display: inline-block;
  margin-left: 4px;
  cursor: help;
  font-size: 0.9em;
  opacity: 0.7;
}

.tooltip:hover {
  opacity: 1;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 125%;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 280px;
  padding: 8px 10px;
  background: #111;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.4;
  border-radius: 6px;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 115%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #111 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
}

/* ===============================
   Primary Tool Highlight Box
   =============================== */

.primary-tool {
  margin: 1.75rem 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #2563eb; /* subtle authority cue */
  background-color: #f9fafb;
  border-radius: 6px;
}

.primary-tool__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.primary-tool__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.primary-tool__title a {
  color: #111827;
  text-decoration: none;
}

.primary-tool__title a:hover {
  text-decoration: underline;
}

.primary-tool__description {
  font-size: 0.9rem;
  color: #374151;
  margin: 0;
}

.primary-tool + section {
  margin-top: 2.5rem;
}

/* ===============================
   Employee vs Contractor Teaser
================================ */

.calculator-teaser {
  margin: 40px 0;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.calculator-teaser h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #1a73e8;
  text-align: center;
}

.calculator-teaser p {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}

/* Form inside teaser */
.calculator-teaser .calculator-form {
  display: grid;
  gap: 16px;
}

.calculator-teaser .calculator-form label {
  margin-bottom: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.calculator-teaser .calculator-form input[type="number"] {
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
}

.calculator-teaser .teaser-result {
  margin-top: 20px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 10px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  font-size: 0.95rem;
}

.calculator-teaser .teaser-result p {
  margin: 6px 0;
  line-height: 1.4;
}

.calculator-teaser .teaser-result strong {
  color: #111;
}

@media (max-width: 480px) {
  .calculator-teaser {
    padding: 16px;
  }

  .calculator-teaser h2 {
    font-size: 1.3rem;
  }

  .calculator-teaser p {
    font-size: 0.9rem;
  }

  .calculator-teaser .calculator-form input[type="number"] {
    font-size: 0.95rem;
    padding: 8px 10px;
  }
}

.btn-primary {
  display: inline-block;
  padding: 12px 22px;
  background-color: #1a73e8;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn-primary:hover {
  background-color: #1666c1;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f1f5ff;
  color: #1a73e8;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background-color: #e0e7ff;
}

/* ===============================
   Call-to-Action Wrappers
=============================== */

/* Hero section CTA */
.hero-cta {
  text-align: center;
  margin-top: 20px;
}

/* Calculator pages / teaser CTA */
.calculator-teaser-cta,
.calculator-cta {
  text-align: center;
  margin: 18px 0 28px;
}

/* Guide page CTA */
.guide-cta {
  text-align: center;
  margin: 18px 0 28px;
}

/* FAQ page CTA */
.faq-cta {
  text-align: center;
  margin: 18px 0 28px;
}

/* Button styles are reused from btn-primary / btn-secondary */

/* ===============================
   Lead Capture / Email Form
================================ */
.lead-capture {
  margin-top: 30px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.lead-capture form {
  display: grid;
  gap: 16px;
}

.lead-capture label {
  font-weight: 600;
  font-size: 0.95rem;
}

.lead-capture input[type="text"],
.lead-capture input[type="email"] {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
}

.lead-capture button {
  display: inline-block;
  padding: 12px 22px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  background-color: #1a73e8;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.lead-capture button:hover {
  background-color: #1666c1;
}


/* ===============================
   Download Report Form Spacing
================================ */
#downloadReportForm label {
  display: block;
  margin-bottom: 6px;  /* space below label */
  font-weight: 600;
}

#downloadReportForm input {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 16px; /* space below input */
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#downloadReportForm button {
  margin-top: 10px;
}

.tool-list a .muted {
  display: block;
  margin-top: 4px;
}

/* ===============================
   Contractor Rate Calculator
   Results display components
   Add to end of main.css
================================ */

/* --- Rate display: min and recommended side by side --- */
.crc-rate-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.crc-rate-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 14px 10px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.crc-rate-block.crc-rate-rec {
  background: #f0f6ff;
  border-color: #bfdbfe;
}

.crc-rate-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 4px;
}

.crc-rate-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.crc-rate-value--highlight {
  color: #1a73e8;
}

.crc-rate-sub {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 3px;
}

.crc-rate-divider {
  font-size: 1.4rem;
  color: #d1d5db;
  flex-shrink: 0;
  padding: 0 4px;
}

/* --- Section label inside result box --- */
.crc-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin: 0 0 10px;
  text-align: left;
}

/* --- Breakdown table inside result box ---
     Overrides base table styles for a compact
     in-results look without box-shadow/border-radius */
.crc-breakdown-table {
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  margin: 0 0 8px !important;
  font-size: 0.88rem !important;
}

.crc-breakdown-table th,
.crc-breakdown-table td {
  padding: 8px 6px !important;
}

.crc-breakdown-table th {
  font-size: 0.78rem;
  color: #6b7280 !important;
  background: transparent !important;
  border-bottom: 1px solid #e5e7eb;
}

.crc-breakdown-table tbody tr:not(:last-child) {
  border-bottom: 1px solid #f3f4f6 !important;
}

/* Subtotal row: light separator above */
.crc-subtotal-row td {
  border-top: 1px solid #e5e7eb !important;
  padding-top: 10px !important;
  font-weight: 600;
  color: #374151;
}

/* Buffer row */
.crc-buffer-row td {
  color: #6b7280;
  font-style: italic;
}

/* Total row: strong highlight */
.crc-total-row td {
  border-top: 2px solid #bfdbfe !important;
  padding-top: 10px !important;
  background: #f0f6ff;
  font-weight: 700;
  color: #111827;
}

/* --- Income projection grid --- */
.crc-income-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.crc-income-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.crc-income-item:nth-child(2) {
  background: #f0f6ff;
  border-color: #bfdbfe;
}

.crc-income-label {
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 5px;
  line-height: 1.3;
}

.crc-income-item span:last-child {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

/* --- Responsive: stack rate blocks on very small screens --- */
@media (max-width: 400px) {
  .crc-rate-display {
    flex-direction: column;
    gap: 8px;
  }

  .crc-rate-divider {
    transform: rotate(90deg);
  }

  .crc-income-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   Contract Rate vs Salary Calculator
   Add to end of main.css.
   All classes prefixed crv- to avoid collisions.
================================ */

/* --- Winner banner --- */
.crv-winner {
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 16px;
  background: #f3f4f6;
  color: #374151;
  transition: background 0.2s, color 0.2s;
}

.crv-banner--contract {
  background: #dcfce7;
  color: #14532d;
}

.crv-banner--salary {
  background: #dbeafe;
  color: #1e3a8a;
}

.crv-banner--tie {
  background: #f3f4f6;
  color: #374151;
}

/* --- Side-by-side comparison grid --- */
.crv-compare-grid {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.crv-compare-col {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Winning column highlight */
.crv-winner-col {
  border-color: #86efac;
  box-shadow: 0 0 0 2px #bbf7d0;
}

.crv-compare-header {
  background: #f1f5ff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a73e8;
  padding: 8px 10px;
  text-align: center;
}

.crv-compare-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 10px;
  border-top: 1px solid #f3f4f6;
  gap: 6px;
}

.crv-compare-row--deduct {
  background: #fafafa;
}

.crv-compare-row--add {
  background: #f0fdf4;
}

.crv-compare-row--total {
  border-top: 2px solid #e5e7eb;
  background: #f8faff;
  padding-top: 8px;
  padding-bottom: 8px;
}

.crv-compare-row--spacer {
  opacity: 0;
  pointer-events: none;
}

.crv-compare-label {
  font-size: 0.78rem;
  color: #6b7280;
  flex-shrink: 0;
  white-space: nowrap;
}

.crv-compare-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
  text-align: right;
  white-space: nowrap;
}

.crv-compare-total {
  font-size: 0.95rem;
  color: #1a73e8;
}

/* Deduction (red-tinted) and addition (green-tinted) values */
.crv-neg {
  color: #dc2626;
}

.crv-pos {
  color: #16a34a;
}

/* Divider between columns */
.crv-compare-divider {
  font-size: 0.85rem;
  font-weight: 700;
  color: #9ca3af;
  padding-top: 36px;
  flex-shrink: 0;
  align-self: flex-start;
}

/* --- Difference row --- */
.crv-diff-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
}

.crv-diff-label {
  font-size: 0.85rem;
  color: #6b7280;
  flex-shrink: 0;
}

.crv-diff-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.crv-diff-pct {
  font-size: 0.85rem;
  color: #6b7280;
}

/* --- Verdict text --- */
.crv-verdict {
  font-style: italic;
  text-align: left !important;
  margin-top: 4px;
}

/* --- Section label (reuses crc-section-label pattern) --- */
.crv-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin: 0 0 10px;
  text-align: left;
}

/* --- Equivalent values grid --- */
.crv-equiv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.crv-equiv-item {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.crv-equiv-label {
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 5px;
  line-height: 1.3;
}

.crv-equiv-value {
  font-size: 1rem;
  font-weight: 700;
  color: #1a73e8;
}

/* --- Responsive --- */
@media (max-width: 420px) {
  .crv-compare-grid {
    flex-direction: column;
  }

  .crv-compare-divider {
    align-self: center;
    padding-top: 0;
    transform: rotate(90deg);
  }

  .crv-equiv-grid {
    grid-template-columns: 1fr;
  }

  .crv-compare-row--spacer {
    display: none;
  }
}

/* ===============================
   California Misclassification Calculator
   Add to end of main.css.
   All classes prefixed cal- to avoid collisions.
================================ */

/* --- Summary totals grid --- */
.cal-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.cal-summary-item {
  padding: 14px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  text-align: center;
}

.cal-summary-item--total {
  border-color: #fca5a5;
  background: #fff5f5;
}

.cal-summary-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 6px;
}

.cal-summary-range {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.cal-summary-low {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
}

.cal-summary-high {
  font-size: 1.1rem;
  font-weight: 700;
  color: #dc2626;
}

.cal-summary-item--total .cal-summary-low {
  color: #b91c1c;
}

.cal-summary-sep {
  font-size: 0.75rem;
  color: #9ca3af;
}

.cal-summary-sub {
  display: block;
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 4px;
  font-style: italic;
}

/* --- Section labels --- */
.cal-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #374151;
  margin: 0 0 6px;
}

/* --- Breakdown table --- */
.cal-breakdown-table {
  width: 100%;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  margin: 0 0 4px !important;
  font-size: 0.88rem !important;
  border: 1px solid #e5e7eb;
  border-radius: 6px !important;
  overflow: hidden;
}

.cal-breakdown-table td {
  padding: 8px 10px !important;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.cal-breakdown-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  min-width: 80px;
}

.cal-breakdown-table tbody tr:last-child td {
  border-bottom: none;
}

/* Subtotal rows */
.cal-subtotal-row td {
  border-top: 2px solid #e5e7eb !important;
  background: #f8faff;
  color: #1a73e8 !important;
}

.cal-subtotal-row td:last-child {
  color: #1a73e8 !important;
}

/* Note cell (non-numeric, right column) */
.cal-td-note {
  font-size: 0.8rem !important;
  color: #6b7280 !important;
  font-weight: 400 !important;
  font-style: italic;
  text-align: right;
}

/* --- Responsive --- */
@media (max-width: 420px) {
  .cal-summary-grid {
    grid-template-columns: 1fr;
  }

  .cal-breakdown-table {
    font-size: 0.82rem !important;
  }

  .cal-breakdown-table td {
    padding: 7px 8px !important;
  }
}

/* ===============================
   Warning / Update Notice
================================ */

.notice-warning {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
  padding: 16px 16px 16px 20px;
  border-radius: 6px;
  margin: 24px 0;
}

.notice-warning h2 {
  margin-top: 0;
}

/* ===============================
   Pay Gap Calculator
   Page: /how-much-more-do-contractors-make
   All classes prefixed pg- to avoid collisions.
================================ */

/* Overhead note inside fieldset */
.pg-overhead-note {
  font-size: 0.85rem;
  color: #6b7280;
  font-style: italic;
  margin: 0 0 16px;
  font-weight: 400;
}

/* Verdict banner */
.pg-verdict-banner {
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 16px;
  background: #f3f4f6;
  color: #374151;
  transition: background 0.2s, color 0.2s;
}

.pg-verdict-contract {
  background: #dcfce7;
  color: #14532d;
}

.pg-verdict-salary {
  background: #dbeafe;
  color: #1e3a8a;
}

.pg-verdict-tie {
  background: #f3f4f6;
  color: #374151;
}

/* Divider */
.pg-divider {
  margin: 16px 0;
  opacity: 0.15;
  border: none;
  border-top: 1px solid #333;
}

/* Side-by-side compare row */
.pg-compare-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.pg-compare-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pg-compare-item--winner {
  background: #f0fdf4;
  border-color: #86efac;
  box-shadow: 0 0 0 2px #bbf7d0;
}

.pg-compare-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 6px;
}

.pg-compare-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.pg-compare-sub {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 4px;
  font-style: italic;
}

.pg-compare-divider {
  font-size: 0.85rem;
  font-weight: 700;
  color: #9ca3af;
  padding-top: 30px;
  flex-shrink: 0;
  align-self: flex-start;
}

/* Gap summary row */
.pg-gap-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.pg-gap-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-align: center;
}

.pg-gap-label {
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 5px;
  line-height: 1.3;
}

.pg-gap-value {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

/* Sensitivity table highlight row */
.pg-sens-highlight {
  background: #f0f6ff;
}

.pg-sens-highlight td {
  font-weight: 600;
}

.pg-sens-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: #1a73e8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 4px;
}

/* Responsive */
@media (max-width: 480px) {
  .pg-compare-row {
    flex-direction: column;
  }

  .pg-compare-divider {
    align-self: center;
    padding-top: 0;
  }

  .pg-gap-row {
    grid-template-columns: 1fr;
  }

  .pg-compare-value {
    font-size: 1.25rem;
  }
}
