/* Salary to Hourly - Static Site Styles */
/* Swiss Utility Design - Blue/Slate palette */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-50: #eff6ff; --blue-100: #dbeafe; --blue-200: #bfdbfe; --blue-300: #93c5fd;
  --blue-500: #3b82f6; --blue-600: #2563eb; --blue-700: #1d4ed8; --blue-800: #1e40af;
  --slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0; --slate-300: #cbd5e1;
  --slate-400: #94a3b8; --slate-500: #64748b; --slate-600: #475569; --slate-700: #334155;
  --slate-800: #1e293b; --slate-900: #0f172a;
  --white: #ffffff; --radius: 0.75rem; --radius-xl: 1rem; --radius-2xl: 1.25rem;
}

html { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: var(--slate-900); scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--slate-50); }
a { color: var(--blue-700); text-decoration: none; } a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
main { flex: 1; }

/* Typography */
h1 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; color: var(--slate-900); }
h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; color: var(--slate-900); }
h3 { font-size: 1.125rem; font-weight: 700; color: var(--slate-900); }
p { color: var(--slate-600); line-height: 1.7; }

/* Layout */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--slate-100); border-bottom: 1px solid var(--slate-100); }
.section-muted { background: rgba(248,250,252,0.8); border-top: 1px solid var(--slate-100); border-bottom: 1px solid var(--slate-100); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--slate-300); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; }
.site-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.125rem; color: var(--slate-900); text-decoration: none; }
.logo-icon { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
.nav-links { display: none; align-items: center; gap: 0.25rem; }
.nav-link { padding: 0.5rem 1rem; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500; color: var(--slate-600); text-decoration: none; transition: all 0.15s; }
.nav-link:hover { color: var(--slate-900); background: var(--slate-50); text-decoration: none; }
.mobile-menu-btn { display: flex; padding: 0.5rem; border: none; background: none; color: var(--slate-600); cursor: pointer; border-radius: 0.375rem; }
.mobile-menu-btn:hover { color: var(--slate-900); background: var(--slate-100); }
.mobile-nav { display: none; padding: 0.5rem 1rem 1rem; border-top: 1px solid var(--slate-300); background: var(--white); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.75rem 1rem; color: var(--slate-600); font-size: 0.875rem; font-weight: 500; border-radius: 0.375rem; text-decoration: none; }
.mobile-nav a:hover { color: var(--slate-900); background: var(--slate-50); }

/* Footer */
.site-footer { background: var(--slate-800); color: var(--slate-300); padding: 3rem 0 2rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-brand { font-size: 1.125rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.footer-desc { font-size: 0.875rem; color: var(--slate-400); }
.footer-heading { font-size: 0.75rem; font-weight: 600; color: var(--slate-400); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--slate-300); font-size: 0.875rem; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { border-top: 1px solid var(--slate-700); margin-top: 2rem; padding-top: 1.5rem; text-align: center; font-size: 0.75rem; color: var(--slate-500); }

/* Hero */
.hero { background: linear-gradient(to bottom, var(--white), var(--slate-50)); border-bottom: 1px solid var(--slate-100); padding: 3.5rem 0 3.5rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero p { font-size: 1rem; max-width: 48rem; }
.hero-compact { padding: 2rem 0 1.5rem; }
.hero-compact h1 { margin-bottom: 0; }

/* Cards */
.card { border-radius: var(--radius-2xl); border: 2px solid var(--slate-300); background: var(--white); padding: 1.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04); transition: all 0.2s; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: var(--blue-300); }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { text-decoration: none; }
.card-icon { width: 2.75rem; height: 2.75rem; border-radius: var(--radius); background: var(--blue-700); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 1.125rem; box-shadow: 0 2px 4px rgba(29,78,216,0.2); }
.card-header { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1rem; }
.card-arrow { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--blue-700); font-weight: 600; font-size: 0.875rem; margin-top: 1.25rem; }

/* Calculator */
.calc-card { border-radius: var(--radius-2xl); border: 2px solid var(--slate-300); background: var(--white); padding: 2rem; box-shadow: 0 4px 6px rgba(0,0,0,0.04); }
.calc-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--slate-900); }
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--slate-700); margin-bottom: 0.375rem; }
.form-input { width: 100%; padding: 0.625rem 0.75rem; border: 2px solid var(--slate-300); border-radius: var(--radius); font-size: 1rem; color: var(--slate-900); transition: border-color 0.15s; background: var(--white); }
.form-input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
/* Answer-first block */
.answer-first { padding: 1.25rem 0; background: var(--blue-50); border-bottom: 1px solid var(--blue-100); }
.answer-box { text-align: center; }
.answer-primary { font-size: 2rem; font-weight: 800; color: var(--blue-600); font-family: var(--font-mono); letter-spacing: -0.02em; }
.answer-detail { font-size: 0.875rem; color: var(--slate-500); margin-top: 0.25rem; }

/* Ad containers */
.ad-container { margin: 1.5rem auto; max-width: 48rem; min-height: 90px; text-align: center; overflow: hidden; }

/* Engagement sections */
.section-engage { border-top: 1px solid var(--slate-300); }
.engage-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.engage-link { display: inline-block; padding: 0.5rem 1rem; background: white; border: 1px solid var(--slate-300); border-radius: 0.5rem; color: var(--blue-600); font-weight: 500; font-size: 0.875rem; text-decoration: none; transition: background 0.15s, border-color 0.15s; }
.engage-link:hover { background: var(--blue-50); border-color: var(--blue-300); }
.mt-8 { margin-top: 2rem; }

@media (max-width: 640px) {
  .answer-primary { font-size: 1.5rem; }
}

select.form-input { appearance: auto; cursor: pointer; }
.calc-btn { width: 100%; padding: 0.75rem; background: var(--blue-700); color: var(--white); border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.calc-btn:hover { background: var(--blue-800); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.5rem; }
.result-item { padding: 1rem; background: var(--slate-50); border: 1px solid var(--slate-300); border-radius: var(--radius); }
.result-item.primary { background: var(--blue-50); border-color: var(--blue-200); grid-column: 1 / -1; }
.result-label { font-size: 0.75rem; font-weight: 600; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.05em; }
.result-value { font-size: 1.25rem; font-weight: 700; color: var(--slate-900); font-variant-numeric: tabular-nums; }
.result-item.primary .result-value { font-size: 1.75rem; color: var(--blue-700); }

/* Tables */
.data-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--slate-300); }
.data-table thead tr { background: var(--slate-800); color: var(--white); }
.data-table th { text-align: left; padding: 0.875rem 1.25rem; font-weight: 600; }
.data-table td { padding: 0.75rem 1.25rem; border-top: 1px solid var(--slate-300); color: var(--slate-700); }
.data-table tbody tr:hover { background: rgba(239,246,255,0.4); }
.text-mono { font-family: ui-monospace, 'Cascadia Code', 'Courier New', monospace; }
.text-bold { font-weight: 600; }
.text-blue { color: var(--blue-700); }
.text-right { text-align: right; }

/* Formula Block */
.formula-block { font-family: ui-monospace, monospace; font-size: 0.875rem; background: var(--blue-50); border: 1px solid var(--blue-200); color: var(--slate-800); padding: 1rem; border-radius: var(--radius); }
.formula-card { padding: 1.5rem; border-radius: var(--radius-2xl); border: 2px solid var(--slate-300); background: var(--white); transition: border-color 0.15s; }
.formula-card:hover { border-color: var(--blue-200); }
.formula-example { margin-top: 0.75rem; font-size: 0.875rem; color: var(--slate-500); }
.formula-example strong { color: var(--blue-700); font-weight: 600; }

/* Country Link Cards */
.country-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border-radius: var(--radius); border: 2px solid var(--slate-300); background: var(--white); text-decoration: none; color: inherit; transition: all 0.2s; }
.country-card:hover { border-color: var(--blue-300); box-shadow: 0 4px 8px rgba(0,0,0,0.06); text-decoration: none; }
.country-card img { width: 2rem; height: 1.5rem; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); flex-shrink: 0; }
.country-card .name { font-size: 0.875rem; font-weight: 700; color: var(--slate-800); }
.country-card .hours { font-size: 0.75rem; color: var(--slate-400); margin-top: 0.125rem; }
.country-card .arrow { margin-left: auto; color: var(--slate-300); flex-shrink: 0; transition: all 0.2s; }
.country-card:hover .arrow { color: var(--blue-500); transform: translateX(4px); }
.country-card:hover .name { color: var(--blue-700); }

/* Variant/Link Cards */
.variant-card { display: block; padding: 1.25rem; border-radius: var(--radius); border: 2px solid var(--slate-300); background: var(--white); text-decoration: none; transition: all 0.2s; }
.variant-card:hover { border-color: var(--blue-300); box-shadow: 0 4px 8px rgba(0,0,0,0.06); text-decoration: none; }
.variant-card .label { font-size: 0.875rem; font-weight: 700; color: var(--slate-800); }
.variant-card .sublabel { font-size: 0.75rem; color: var(--slate-400); margin-top: 0.25rem; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--slate-300); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; font-weight: 600; font-size: 0.9375rem; color: var(--slate-800); cursor: pointer; background: none; border: none; width: 100%; text-align: left; }
.faq-q:hover { background: var(--slate-50); }
.faq-q .chevron { transition: transform 0.2s; font-size: 1.25rem; color: var(--slate-400); flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a { padding: 0 1.25rem 1rem; font-size: 0.9375rem; color: var(--slate-600); line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }

/* Breadcrumbs */
.breadcrumbs { padding: 0.75rem 0; font-size: 0.8125rem; color: var(--slate-400); }
.breadcrumbs a { color: var(--slate-500); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-700); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 0.375rem; }

/* Related Links */
.related-section { padding: 2rem 0; }
.related-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.related-link { display: inline-block; padding: 0.5rem 1rem; border: 1px solid var(--slate-300); border-radius: 9999px; font-size: 0.8125rem; color: var(--slate-600); text-decoration: none; transition: all 0.15s; background: var(--white); }
.related-link:hover { border-color: var(--blue-300); color: var(--blue-700); background: var(--blue-50); text-decoration: none; }

/* Section Headers */
.section-icon { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; }
.section-icon svg { width: 1.25rem; height: 1.25rem; color: var(--blue-700); }
.section-sub { color: var(--slate-500); margin-top: 0.5rem; max-width: 42rem; font-size: 0.9375rem; }

/* Content */
.content-block { max-width: 48rem; line-height: 1.8; color: var(--slate-600); font-size: 0.9375rem; }
.content-block p { margin-bottom: 1rem; }
.note-block { padding: 1rem 1.25rem; background: var(--slate-50); border-left: 3px solid var(--blue-500); border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.875rem; color: var(--slate-600); margin: 1.5rem 0; }

/* Utility */
.mb-2 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.text-sm { font-size: 0.875rem; } .text-xs { font-size: 0.75rem; }
.hidden-sm { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Responsive */
@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hidden-sm { display: table-cell; }
  h1 { font-size: 2.75rem; }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
  .hero { padding: 5rem 0; }
  .hero-compact { padding: 2.5rem 0 2rem; }
  .hero p { font-size: 1.125rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .hidden-md { display: table-cell; }
  h2 { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  h1 { font-size: 3rem; }
}

/* Explore More Calculators */
.explore-grid { display: grid; gap: 0.75rem; }
.explore-category { border: 1px solid var(--slate-300); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.explore-toggle { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; font-weight: 600; font-size: 0.9375rem; color: var(--slate-800); cursor: pointer; background: none; border: none; width: 100%; text-align: left; }
.explore-toggle:hover { background: var(--slate-50); }
.explore-toggle .chevron { transition: transform 0.2s; color: var(--slate-400); flex-shrink: 0; margin-left: 1rem; }
.explore-category.open .explore-toggle .chevron { transform: rotate(180deg); }
.explore-links { display: none; padding: 0 1.25rem 1rem; display: none; }
.explore-category.open .explore-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.explore-links a { display: inline-block; padding: 0.375rem 0.75rem; font-size: 0.8125rem; color: var(--blue); background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 999px; text-decoration: none; transition: background 0.15s, border-color 0.15s; }
.explore-links a:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }


/* Editorial / Guide Pages */
.editorial-content { max-width: 52rem; }
.editorial-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.375rem; }
.editorial-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.125rem; }
.editorial-content p { margin-bottom: 1.125rem; font-size: 1rem; line-height: 1.8; }
.editorial-content ul, .editorial-content ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--slate-600); }
.editorial-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.editorial-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.editorial-content th, .editorial-content td { padding: 0.75rem 1rem; border: 1px solid var(--slate-200); text-align: left; }
.editorial-content th { background: var(--slate-50); font-weight: 600; color: var(--slate-800); }
.editorial-content strong { color: var(--slate-800); }
.editorial-content a { color: var(--blue-700); text-decoration: underline; text-decoration-color: var(--blue-200); text-underline-offset: 2px; }
.editorial-content a:hover { text-decoration-color: var(--blue-700); }

/* Assumptions / Info Blocks */
.assumptions-block, .change-block, .match-block { padding: 1.5rem 2rem; border-radius: var(--radius); margin: 0; }
.assumptions-block { background: var(--blue-50); border-left: 4px solid var(--blue-500); }
.change-block { background: #fefce8; border-left: 4px solid #eab308; }
.match-block { background: #fef2f2; border-left: 4px solid #ef4444; }
.assumptions-block h2, .change-block h2, .match-block h2 { font-size: 1.125rem; margin-bottom: 0.75rem; }
.assumptions-block p, .change-block p, .match-block p { font-size: 0.9375rem; margin-bottom: 0.5rem; }
.assumptions-block ul, .change-block ul, .match-block ul { margin: 0.5rem 0 0 1.25rem; }
.assumptions-block li, .change-block li, .match-block li { font-size: 0.9375rem; margin-bottom: 0.375rem; color: var(--slate-600); }
