/* Global Salary Atlas — Country Page System
   Shared across every country page (countries/usa.html is the master template).
   Kept in its own file so the homepage/company-page stylesheet (style.css)
   never needs to change when new countries are added. Reuses design tokens
   (colors, fonts, spacing) defined in style.css's :root — this file must
   always be loaded AFTER style.css. */

.country-page{max-width:1120px;margin:0 auto;padding:0 24px 40px}

/* Breadcrumb (reuses info-breadcrumb visual style but page isn't wrapped in .info-page) */
.country-breadcrumb{font-size:12px;color:var(--text3);padding:24px 0 0;max-width:1120px;margin:0 auto}
.country-breadcrumb a{color:var(--text3);transition:color .2s}
.country-breadcrumb a:hover{color:var(--neon)}

/* HERO */
.country-hero{display:flex;align-items:flex-start;gap:20px;padding:32px 0 36px;border-bottom:1px solid var(--border);margin-bottom:36px;flex-wrap:wrap}
.country-hero-flag{font-size:56px;line-height:1}
.country-hero-body{flex:1;min-width:260px}
.country-hero h1{font-size:clamp(26px,3.4vw,38px);margin-bottom:8px}
.country-hero-intro{font-size:14px;color:var(--text2);line-height:1.7;max-width:680px;margin-bottom:10px}
.country-updated{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--text3);background:var(--glass);border:1px solid var(--border);border-radius:20px;padding:5px 12px}
.country-updated svg{color:var(--neon)}

/* QUICK FACTS */
.quick-facts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1px;background:var(--border);border:1px solid var(--border);border-radius:var(--radius2);overflow:hidden;margin-bottom:40px}
.quick-fact{background:#fff;padding:18px 20px}
.quick-fact-label{font-size:10px;font-weight:600;color:var(--text3);text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px}
.quick-fact-value{font-size:16px;font-weight:600;color:var(--text);font-family:'Source Serif 4',Georgia,serif}
.quick-fact-value.money{font-family:'IBM Plex Mono',monospace}

/* SECTION WRAPPER */
.country-section{margin-bottom:48px;scroll-margin-top:80px}
.country-section-title{font-size:22px;font-weight:600;font-family:'Source Serif 4',Georgia,serif;color:var(--text);margin:0 0 6px}
.country-section-sub{font-size:13px;color:var(--text2);margin-bottom:20px;max-width:720px}

/* TABLE OF CONTENTS (jump nav) */
.country-toc{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:44px;padding-bottom:32px;border-bottom:1px solid var(--border)}
.country-toc a{font-size:12px;font-weight:500;color:var(--text2);background:var(--glass);border:1px solid var(--border);border-radius:20px;padding:6px 14px;transition:all .2s}
.country-toc a:hover{color:var(--text);border-color:var(--border2)}

/* SALARY TABLE */
.salary-table-controls{margin-bottom:16px}
.salary-search-input{width:100%;max-width:340px;padding:11px 16px;border:1px solid var(--border2);border-radius:9px;font-size:14px;font-family:'Inter',sans-serif;color:var(--text);background:#fff}
.salary-search-input:focus{outline:none;border-color:var(--neon)}
.salary-table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius2);background:#fff}
.salary-table{width:100%;border-collapse:collapse;font-size:13px;min-width:640px}
.salary-table th{text-align:left;font-size:11px;font-weight:600;color:var(--text3);text-transform:uppercase;letter-spacing:.06em;padding:14px 18px;border-bottom:1px solid var(--border);background:var(--bg2);white-space:nowrap}
.salary-table td{padding:13px 18px;border-bottom:1px solid var(--border);color:var(--text2)}
.salary-table tr:last-child td{border-bottom:none}
.salary-table td.profession{color:var(--text);font-weight:500}
.salary-table td.industry-tag{font-size:11px;color:var(--text3)}
.salary-table td.money{font-family:'IBM Plex Mono',monospace;color:var(--text)}
.salary-table tr.no-results td{text-align:center;color:var(--text3);padding:24px}

/* INDUSTRY GRID */
.industry-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.industry-card{padding:18px;border:1px solid var(--border);border-radius:12px;background:#fff}
.industry-card-name{font-size:13px;font-weight:600;color:var(--text);margin-bottom:6px}
.industry-card-range{font-family:'IBM Plex Mono',monospace;font-size:15px;color:var(--neon);margin-bottom:2px}
.industry-card-note{font-size:11px;color:var(--text3)}

/* HIGHEST PAYING LIST */
.highest-paid-list{border:1px solid var(--border);border-radius:var(--radius2);overflow:hidden;background:#fff}
.highest-paid-item{display:flex;align-items:center;gap:14px;padding:14px 18px;border-bottom:1px solid var(--border)}
.highest-paid-item:last-child{border-bottom:none}
.highest-paid-rank{font-family:'IBM Plex Mono',monospace;font-size:13px;color:var(--text3);width:22px;flex-shrink:0}
.highest-paid-name{flex:1;font-size:13px;font-weight:500;color:var(--text)}
.highest-paid-value{font-family:'IBM Plex Mono',monospace;font-size:14px;color:var(--neon);font-weight:600}

/* COST OF LIVING GRID */
.col-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.col-item{padding:16px 18px;border:1px solid var(--border);border-radius:12px;background:#fff;display:flex;justify-content:space-between;align-items:center;gap:10px}
.col-item-label{font-size:13px;color:var(--text2)}
.col-item-value{font-family:'IBM Plex Mono',monospace;font-size:14px;color:var(--text);font-weight:600;white-space:nowrap}

/* TAX CARDS */
.tax-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-bottom:16px}
.tax-card{padding:20px;border:1px solid var(--border);border-radius:12px;background:#fff}
.tax-card-title{font-size:13px;font-weight:600;color:var(--text);margin-bottom:8px}
.tax-card-desc{font-size:12px;color:var(--text2);line-height:1.6}
.tax-bracket-table{width:100%;border-collapse:collapse;font-size:12px;margin-top:10px}
.tax-bracket-table th{text-align:left;color:var(--text3);font-weight:600;padding:6px 0;border-bottom:1px solid var(--border)}
.tax-bracket-table td{padding:6px 0;border-bottom:1px solid var(--border);color:var(--text2)}
.tax-bracket-table td.money{font-family:'IBM Plex Mono',monospace;color:var(--text)}

/* TAKE-HOME EXAMPLES */
.takehome-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.takehome-card{padding:20px;border:1px solid var(--border);border-radius:12px;background:#fff;text-align:center}
.takehome-gross{font-size:12px;color:var(--text3);text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px}
.takehome-net{font-family:'IBM Plex Mono',monospace;font-size:24px;font-weight:600;color:var(--neon);margin-bottom:4px}
.takehome-note{font-size:11px;color:var(--text3)}

/* TWO-COLUMN INFO BLOCK (Housing/Healthcare/Education/Transport/Work Culture) */
.info-2col{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:700px){.info-2col{grid-template-columns:1fr}}

/* BEST CITIES */
.cities-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.city-card{padding:20px;border:1px solid var(--border);border-radius:12px;background:#fff}
.city-card-name{font-size:15px;font-weight:600;font-family:'Source Serif 4',Georgia,serif;color:var(--text);margin-bottom:8px}
.city-card-row{display:flex;justify-content:space-between;font-size:12px;color:var(--text2);padding:5px 0;border-top:1px solid var(--border)}
.city-card-row span:last-child{color:var(--text);font-weight:600;font-family:'IBM Plex Mono',monospace}
.city-card-note{font-size:12px;color:var(--text2);line-height:1.6;margin-top:10px}

/* PROS / CONS */
.pros-cons-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:700px){.pros-cons-grid{grid-template-columns:1fr}}
.pros-card,.cons-card{padding:22px;border-radius:12px;border:1px solid var(--border)}
.pros-card{background:rgba(28,122,77,0.05)}
.cons-card{background:rgba(168,58,58,0.05)}
.pros-card h3,.cons-card h3{font-size:14px;font-weight:600;margin-bottom:12px;color:var(--text)}
.pros-card ul,.cons-card ul{list-style:none;padding:0;margin:0}
.pros-card li,.cons-card li{font-size:13px;color:var(--text2);line-height:1.6;padding:6px 0 6px 22px;position:relative}
.pros-card li:before{content:"+";position:absolute;left:0;color:#1c7a4d;font-weight:700}
.cons-card li:before{content:"–";position:absolute;left:0;color:#a83a3a;font-weight:700}

/* RELATED COUNTRIES */
.related-countries-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.related-country-card{display:flex;align-items:center;gap:10px;padding:14px 16px;border:1px solid var(--border);border-radius:10px;background:#fff;transition:all .2s}
.related-country-card:hover{border-color:var(--border2);box-shadow:0 8px 20px rgba(10,25,48,0.06)}
.related-country-flag{font-size:20px}
.related-country-name{font-size:13px;font-weight:500;color:var(--text)}

/* GENERIC SOURCE NOTE */
.country-source-note{font-size:12px;color:var(--text3);margin-top:14px;padding-top:14px;border-top:1px solid var(--border)}
