/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #F5F5F5;
    padding: 40px 20px;
    color: #1A1A1A;
    line-height: 1.5;
    min-height: 100vh;
}

/* Netherlands guide page styles (no background image) */
.page-container { background: #FFFFFF; }
.site-header { background: #FFFFFF; color: #1A1A1A; border-bottom: 1px solid #E9ECEF; padding: 16px 0; }
.site-header .header-content { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.back-home-link { color: #F05D23; text-decoration: none; font-weight: 600; }
.country-guide .hero-section { background: #FFFFFF; border-bottom: 1px solid #E9ECEF; padding: 32px 0; }
.country-guide .hero-content { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.country-guide .page-title { font-size: 2rem; font-weight: 800; margin: 12px 0 6px 0; }
.country-guide .hero-subtitle { color: #6C757D; }
.flag-icon { width: 120px; height: 80px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.content-wrapper { max-width: 1100px; margin: 0 auto; padding: 24px 20px; display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.article-content { background: #FFFFFF; border: 1px solid #E9ECEF; border-radius: 12px; padding: 20px; }
.sidebar .sidebar-content { position: sticky; top: 16px; background: #FFFFFF; border: 1px solid #E9ECEF; border-radius: 12px; padding: 16px; }
.section-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.quick-facts-card { background: #FFFFFF; border: 1px solid #E9ECEF; border-radius: 12px; padding: 16px; }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.fact-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; background: #F8F9FA; border-radius: 8px; }
.fact-label { color: #6C757D; }
.fact-value { font-weight: 700; }
.ad-container { margin: 16px auto; max-width: 1100px; }
.ad-top-banner, .ad-bottom-banner { min-height: 90px; }
.ad-mid-content { min-height: 250px; }
.cities-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.city-card { background: #F8F9FA; border: 1px solid #E9ECEF; border-radius: 10px; padding: 12px; }
.city-name { font-weight: 700; margin-bottom: 4px; }
.pros-cons-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.pros-column, .cons-column { background: #FFFFFF; border: 1px solid #E9ECEF; border-radius: 10px; padding: 12px; }
.column-title.positive { color: #059669; }
.column-title.negative { color: #F05D23; }
.tip-box { background: #FFF7F2; border: 1px solid #FDE7DB; border-radius: 10px; padding: 12px; }
.industry-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.industry-item { background: #FFFFFF; border: 1px solid #E9ECEF; border-radius: 10px; padding: 12px; }
.industry-name { font-weight: 700; }
.industry-rating { color: #059669; font-weight: 700; }
.site-footer { background: #FFFFFF; color: #1A1A1A; border-top: 1px solid #E9ECEF; padding: 12px 16px; text-align: center; font-size: 13px; margin-top: 24px; }
.site-footer .footer-primary { color: #F05D23; font-weight: 600; margin-bottom: 6px; }
.site-footer .footer-primary a { color: #F05D23; text-decoration: none; }
.site-footer .footer-primary a:hover { text-decoration: underline; }
.site-footer .footer-blog { margin-bottom: 6px; }
.site-footer .footer-blog a { color: #1A1A1A; text-decoration: none; margin: 0 8px; font-weight: 600; }
.site-footer .footer-blog a:hover { color: #F05D23; }
.site-footer .footer-links a { color: #1A1A1A; text-decoration: none; margin: 0 8px; font-weight: 600; }
.site-footer .footer-links a:hover { color: #F05D23; }

@media (max-width: 900px) {
  .content-wrapper { grid-template-columns: 1fr; }
  .industry-list, .cities-grid, .facts-grid { grid-template-columns: 1fr; }
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(26, 26, 26, 0.08);
    overflow: hidden;
}

/* Header */
.header {
    padding: 32px 32px 0 32px;
    border-bottom: 1px solid #F5F5F5;
    margin-bottom: 32px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #1a1a1a;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.compass-logo {
    width: 64px;
    height: 64px;
    animation: spin 30s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.progress-bar {
    height: 4px;
    background: #F5F5F5;
    border-radius: 2px;
    margin-bottom: 24px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #F05D23;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Main Content */
.main-content {
    padding: 0 32px 32px 32px;
}

.screen {
    display: none;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Question transition animations */
.question-content {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s ease;
}

.question-content.show {
    opacity: 1;
    transform: translateX(0);
}

.question-content.hide {
    opacity: 0;
    transform: translateX(-30px);
}

/* Question header animations */
.question-header {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    transition-delay: 0.05s;
}

.question-header.show {
    opacity: 1;
    transform: translateY(0);
}

.question-header.hide {
    opacity: 0;
    transform: translateY(-20px);
}

/* Option animations */
.option {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.2s ease;
}

.option.show {
    opacity: 1;
    transform: translateY(0);
}

.option:nth-child(1) { transition-delay: 0.05s; }
.option:nth-child(2) { transition-delay: 0.1s; }
.option:nth-child(3) { transition-delay: 0.15s; }
.option:nth-child(4) { transition-delay: 0.2s; }
.option:nth-child(5) { transition-delay: 0.25s; }
.option:nth-child(6) { transition-delay: 0.3s; }

/* Welcome Screen */
.welcome-content {
    text-align: center;
    padding: 2rem 0;
}

.welcome-content h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    color: #666666;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.feature p {
    color: #64748b;
    font-size: 0.95rem;
}

.welcome-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Guides: inline CTA to statistics */
.stats-link-btn {
    display: inline-block;
    max-width: 280px;
    width: auto;
    background: #F05D23;
    color: #FFFFFF !important;
    text-decoration: none;
    text-align: center;
}
.stats-link-btn:hover { background: #E04A1A; box-shadow: 0 6px 14px rgba(240,93,35,0.25); transform: translateY(-1px); }

.btn-primary {
    background: #F05D23;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #E04A1A;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: #666666;
    border: 1px solid #F5F5F5;
}

.btn-secondary:hover {
    background: #F5F5F5;
    color: #1A1A1A;
}

/* Quiz Screen */
.quiz-container {
    padding: 0;
}

.question-header {
    text-align: left;
    margin-bottom: 32px;
}

.question-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.question-description {
    color: #666666;
    font-size: 14px;
}

.question-content {
    margin-bottom: 32px;
}

/* Importance Selector */
.importance-selector {
    margin-bottom: 32px;
}

.importance-selector label {
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
    margin-bottom: 16px;
    display: block;
}

.importance-options {
    display: flex;
    gap: 8px;
}

.importance-option {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid #F5F5F5;
    border-radius: 8px;
    background: #FFFFFF;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.importance-option:hover {
    border-color: #F05D23;
    background: #FFFFFF;
}

.importance-option.selected {
    border-color: #F05D23;
    background: #F05D23;
    color: #FFFFFF;
}

.importance-option input[type="radio"] {
    display: none;
}

.importance-option span {
    font-weight: 500;
    font-size: 14px;
}

/* Question Types */
.question-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.option {
    border: 1.5px solid #F5F5F5;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #FFFFFF;
    position: relative;
}

.option:hover {
    border-color: #F05D23;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 93, 35, 0.12);
}

.option.selected {
    border-color: #059669;
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.15);
}

.option.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    color: #059669;
    font-weight: bold;
    font-size: 18px;
}

.option input[type="radio"],
.option input[type="checkbox"] {
    display: none;
}

.option label {
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    color: #1A1A1A;
}

/* Slider */
.slider-container {
    padding: 2rem;
    background: #FFFFFF;
    border-radius: 12px;
    text-align: center;
    border: 1.5px solid #F5F5F5;
}

.slider-description {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(240, 93, 35, 0.1);
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    border-left: 4px solid #F05D23;
}

.slider-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0 12px;
}

.slider-mark {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    margin: 2rem 0;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F05D23;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(240, 93, 35, 0.3);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F05D23;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 8px rgba(240, 93, 35, 0.3);
}

.slider-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #F05D23;
    margin-bottom: 1rem;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.9rem;
}

/* Multi-select */
.multi-select-options {
    display: grid;
    gap: 1rem;
}

.multi-select-option {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.multi-select-option:hover {
    border-color: #f05d23;
    background: rgba(240, 93, 35, 0.05);
}

.multi-select-option.selected {
    border-color: #f05d23;
    background: rgba(240, 93, 35, 0.1);
}

.multi-select-option input[type="checkbox"] {
    margin-right: 1rem;
    transform: scale(1.2);
}

/* Question Navigation */
.question-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid #F5F5F5;
    margin-top: 32px;
}

/* Tallenna vastaukset -nappi */
#saveAnswersBtn {
    background-color: #059669;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#saveAnswersBtn:hover {
    background-color: #047857;
}

#saveAnswersBtn:disabled {
    background-color: #6b7280;
    cursor: not-allowed;
}

/* Results Screen */
.results-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.top-result {
    background: rgba(240, 93, 35, 0.1);
    border: 2px solid #F05D23;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.result-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.rank-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rank-badge.top-rank {
    background: #F05D23;
}

.rank-badge.good-rank {
    background: #059669;
}

.rank-badge.other-rank {
    background: #6B7280;
}

.country-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.country-flag {
    font-size: 2rem;
}

/* PNG flag images */
.country-flag img.flag-img {
    width: 36px;
    height: 24px;
    border-radius: 4px;
    border: 3px solid #E5E7EB; /* näkyvä kehys valkoisille lipuille */
    display: inline-block;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Guides: 2x bigger flags */
.country-guide .country-flag img.flag-img {
    width: 72px;
    height: 48px;
}

/* Statistics pages (intro-section title) same size as guides */
.intro-section .country-flag img.flag-img {
    width: 72px;
    height: 48px;
}

/* Hero flag row for statistics pages */
.hero-flag { margin: 8px 0 0 0; }
.hero-flag .flag-img { width: 72px; height: 48px; border-radius: 4px; border: 3px solid #E5E7EB; }

/* Yhtenäiset otsikot (kuten guides) myös statistics-sivuilla */
.article-content .section-title {
    position: relative;
    padding-left: 18px;
    margin: 18px 0 12px 0;
}
.article-content .section-title:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 1.2em;
    border-radius: 3px;
    background: #F05D23;
}

/* Linkkien väri */
body a { color: #58A4B0; }
a.back-home-link { color: #F05D23 !important; }
.site-footer .footer-links a { color: #1A1A1A; }

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #059669; /* brand green */
    color: #FFFFFF;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 999;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: #04815b; transform: translateY(-2px); }
.back-to-top svg { width: 22px; height: 22px; stroke: currentColor; }

.country-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.score {
    font-weight: 500;
    color: #F05D23;
    font-size: 1.1rem;
}

.city {
    color: #000000;
    font-weight: 500;
    margin-bottom: 1rem;
}

.pros-cons {
    font-size: 0.9rem;
}

.pros {
    color: #059669;
    margin-bottom: 0.5rem;
}

.cons {
    color: #DC2626;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive styles */
@media (max-width: 640px) {
    body {
        padding: 20px 10px;
    }
    
    .question-options {
        grid-template-columns: 1fr;
    }
    
    .importance-options {
        flex-direction: column;
    }
    
    .header, .main-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .app-container {
        border-radius: 12px;
    }

    /* Header fix: prevent overlap, wrap back-link, align logo to right */
    .site-header .header-content {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
    .site-header .back-home-link {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        display: block;
        width: 100%;
        white-space: normal;
        line-height: 1.2;
        text-align: left;
        margin: 0;
    }
    .site-header .logo { width: 100%; display: flex; justify-content: flex-end; }
    .site-header .brand-wordmark { height: 38px; }
}

.results-summary {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(240, 93, 35, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(240, 93, 35, 0.2);
}

.summary-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #F05D23;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.top-result {
    background: linear-gradient(135deg, #f05d23, #e04a1a);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.top-result .country-name {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.top-result .country-flag {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.top-result .score {
    font-size: 1.5rem;
    opacity: 0.95;
    color: #FFFFFF;
}

.top-result .city {
    font-size: 1.3rem;
    opacity: 0.85;
    margin-top: 1rem;
    color: #FFFFFF;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.result-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.result-card .country-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.result-card .country-flag {
    font-size: 2rem;
}

.result-card .country-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.result-card .score {
    font-weight: 600;
    color: #f05d23;
    font-size: 1.1rem;
}

.result-card .pros-cons {
    margin-top: 1rem;
}

.result-card .pros,
.result-card .cons {
    margin-bottom: 0.5rem;
}

.result-card .pros strong,
.result-card .cons strong {
    color: #059660;
}

.result-card .cons strong {
    color: #dc2626;
}

/* Painoarvojen säätö */
.weight-adjustment-section {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #E9ECEF;
}

.weight-adjustment-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
}

.weight-sliders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.weight-slider-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weight-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
}

.weight-slider-value {
    font-weight: 600;
    color: #F05D23;
    min-width: 40px;
    text-align: right;
}

.weight-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E9ECEF;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.weight-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #F05D23;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(240, 93, 35, 0.3);
}

.weight-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #F05D23;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(240, 93, 35, 0.3);
}

.weight-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #E9ECEF;
    font-size: 14px;
    color: #6C757D;
}

.weight-buttons {
    display: flex;
    gap: 12px;
}

.weight-summary span {
    font-weight: 500;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 6px;
}

/* Tulosten tulkintaohjeet */
.results-guide {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #E9ECEF;
}

.guide-content h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
}

.guide-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.tip {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #E9ECEF;
}

.tip strong {
    color: #1A1A1A;
    font-size: 14px;
    display: block;
    margin-bottom: 12px;
}

/* Estä kappaleiden sisäisten korostusten hyppääminen omille riveilleen */
.tip p strong {
    display: inline;
    margin-bottom: 0;
}

.tip ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.5;
    color: #6C757D;
}

.tip li {
    margin-bottom: 6px;
}

.tip li strong {
    color: #F05D23;
    font-weight: 600;
    display: inline;
    margin-bottom: 0;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-bar {
        max-width: 100%;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .welcome-content,
    .quiz-container,
    .results-container {
        padding: 2rem 1rem;
    }
    
    .welcome-content h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .question-header h2 {
        font-size: 1.5rem;
    }
    
    .question-navigation {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .top-result .country-name {
        font-size: 2rem;
    }
    
    .top-result .country-flag {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .welcome-content h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .question-header h2 {
        font-size: 1.25rem;
    }
    
    .option {
        padding: 1rem;
    }
    
    .slider-container {
        padding: 1.5rem;
    }
}

.brand-wordmark { height: 42px; width: auto; vertical-align: middle; display: inline-block; }
.site-header .brand-wordmark { height: 42px; }

/* Reduce top whitespace on data pages */
.article-content > .section-title:first-child { margin-top: 4px !important; }

/* Mobile compaction for quiz */
@media (max-width: 640px) {
    /* Tighter vertical rhythm on quiz */
    .question-header { margin-bottom: 16px; }
    .question-content { margin-bottom: 16px; }

    /* Keep importance options on one row */
    .importance-options {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
    }
    .importance-option {
        padding: 8px 10px;
        font-size: 13px;
        flex: 1 1 0;
        min-width: 0;
    }
    .importance-option span { font-size: 13px; }

    /* Place Prev/Next on one line */
    .question-navigation {
        flex-direction: row;
        align-items: center;
        padding: 12px 0;
        margin-top: 16px;
        gap: 8px;
    }
    .question-navigation .btn {
        width: auto;
        flex: 1 1 0;
        padding: 10px 12px;
        justify-content: center;
    }
    /* Next-tekstin oikealle laitaan: lisätään väli tilaa ikonille */
    #nextBtn {
        display: flex;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    /* Extra tightening on very small phones */
    .question-header h2 { margin-bottom: 4px; }
    .option { padding-top: 12px; padding-bottom: 12px; }
}
