/** Shopify CDN: Minification failed

Line 22:16 Expected ")" to end URL token
Line 23:16 Expected ")" to end URL token
Line 30:16 Expected ")" to end URL token
Line 31:16 Expected ")" to end URL token
Line 38:16 Expected ")" to end URL token
Line 39:16 Expected ")" to end URL token
Line 46:16 Expected ")" to end URL token
Line 47:16 Expected ")" to end URL token
Line 54:16 Expected ")" to end URL token
Line 55:16 Expected ")" to end URL token

**/
/* ============================================
   TANNING CALCULATOR V2 - Redesigned
   ============================================ */

/* --- Fonts --- */
@font-face {
    font-family: 'Outfit';
    src: url({{ 'Outfit-Light.woff2' | asset_url }}) format('woff2'),
         url({{ 'Outfit-Light.woff' | asset_url }}) format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url({{ 'Outfit-Regular.woff2' | asset_url }}) format('woff2'),
         url({{ 'Outfit-Regular.woff' | asset_url }}) format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url({{ 'Outfit-Medium.woff2' | asset_url }}) format('woff2'),
         url({{ 'Outfit-Medium.woff' | asset_url }}) format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url({{ 'Outfit-SemiBold.woff2' | asset_url }}) format('woff2'),
         url({{ 'Outfit-SemiBold.woff' | asset_url }}) format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url({{ 'Outfit-Bold.woff2' | asset_url }}) format('woff2'),
         url({{ 'Outfit-Bold.woff' | asset_url }}) format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Intro text --- */
.calculator-intro {
    max-width: 960px;
    margin: 0 auto 32px;
    padding: 0 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #4B5563;
}
.calculator-intro p {
    margin-bottom: 12px;
}
.calculator-intro p:last-child {
    margin-bottom: 0;
}

/* --- Sources footer --- */
.calculator-sources {
    max-width: 960px;
    margin: 32px auto 0;
    padding: 0 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #6B7280;
    text-align: center;
}
.calculator-sources a {
    color: #D97706;
    text-decoration: none;
}
.calculator-sources a:hover {
    text-decoration: underline;
}

/* --- Layout for Both Calculators --- */
#calculators-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1080px;
}

@media screen and (min-width: 1024px) {
    #calculators-wrapper {
        flex-direction: row;
        gap: 28px;
    }
    #tanning-calculator {
        flex: 0 0 420px;
        max-width: 420px;
    }
    #weather-calculator {
        flex: 1;
        min-width: 0;
    }
}

/* --- Card Base Style --- */
#tanning-calculator,
#weather-calculator {
    font-family: 'Outfit', sans-serif;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
}

/* Reset theme SVG overrides within calculator */
#tanning-calculator svg,
#weather-calculator svg {
    max-width: none;
    max-height: none;
}

/* --- Heading --- */
#tanning-calculator h2,
#weather-calculator .chart-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    color: #111827;
    margin: 0 0 24px 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Heading icons using CSS background-image data URIs */
.heading-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

@media screen and (min-width: 768px) {
    .heading-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
        background-size: 24px 24px;
    }
}

/* Sun icon - orange (Päevitusaja kalkulaator) */
.heading-icon.icon-sun-orange {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F97316' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
}

/* Cloud-sun icon - blue (Ilmaennustus) */
.heading-icon.icon-cloud-sun-blue {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233B82F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3Cpath d='M15.947 12.65a4 4 0 0 0-5.925-4.128'/%3E%3Cpath d='M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z'/%3E%3C/svg%3E");
}

/* --- Form Styles --- */
#tanningForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#tanning-calculator .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#tanning-calculator .form-group label {
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Field icons using CSS background-image data URIs */
.field-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    opacity: 0.65;
}

.field-icon.icon-map-pin {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.field-icon.icon-user {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.field-icon.icon-shield {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3C/svg%3E");
}

.field-icon.icon-mountain-snow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 3 4 8 5-5 5 15H2L8 3z'/%3E%3Cpath d='M4.14 15.08c2.62-1.57 5.24-1.43 7.86.42 2.74 1.94 5.49 2 8.23.19'/%3E%3C/svg%3E");
}

.field-icon.icon-sun {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
}

#tanning-calculator .form-field {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    box-sizing: border-box;
    background: #FAFAFA;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

#tanning-calculator .form-field:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    background: #FFFFFF;
}

#tanning-calculator .form-field::placeholder {
    color: #9CA3AF;
}

/* Select field */
#tanning-calculator .form-field-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 36px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%236B7280" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M6 8l4 4 4-4" stroke="%236B7280" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
}

/* --- Toggle (Medications) --- */
.form-group-toggle {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 12px !important;
    padding: 12px 16px;
    background: #F9FAFB;
    border-radius: 10px;
    border: 1px solid #F3F4F6;
}

.toggle-question {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    flex: 1;
}

.toggle-control {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

#medicationsLabel {
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    color: #6B7280;
}

#tanning-calculator .toggleSwitch {
    width: 48px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}

#tanning-calculator svg {
    max-width: none;
    max-height: none;
}

/* --- Calculate Button --- */
#calculateBtn {
    width: 100%;
    height: 48px;
    background: #0F172A;
    color: #FFFFFF;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 4px;
}

#calculateBtn:hover {
    background: #1E293B;
}

#calculateBtn:active {
    transform: scale(0.99);
}

/* --- Response Display (Announcement Box) --- */
#responseDisplay {
    margin-top: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 0;
}

#responseDisplay:empty {
    display: none;
}

#responseDisplay:not(:empty) {
    padding: 14px 18px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    color: #92400E;
}

#responseDisplay strong {
    display: block;
    font-weight: 600;
    color: #78350F;
}

#responseDisplay a {
    color: #D97706;
    text-decoration: underline;
    text-decoration-color: rgba(217, 119, 6, 0.3);
    text-underline-offset: 2px;
}

#responseDisplay a:hover {
    text-decoration-color: #D97706;
}

#responseDisplay em {
    display: block;
    margin-top: 10px;
    color: #A16207;
    font-size: 13px;
    font-style: italic;
}

/* --- Help Text --- */
#tanning-calculator .form-help-text {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 2px;
    line-height: 1.4;
}

/* --- Weather Calculator --- */
#weather-calculator {
    position: relative;
    min-height: 400px;
    padding: 28px !important;
    overflow: hidden;
}

.forecast-table th svg.th-icon {
    display: none !important;
}

/* Icon spans using CSS background-image data URIs (immune to theme SVG rules) */
.forecast-table th .th-icon {
    display: block;
    margin: 0 auto 2px;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.55;
}

.th-icon.icon-clock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}

.th-icon.icon-sun {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
}

.th-icon.icon-cloud-rain {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242'/%3E%3Cpath d='M16 14v6'/%3E%3Cpath d='M8 14v6'/%3E%3Cpath d='M12 16v6'/%3E%3C/svg%3E");
}

.th-icon.icon-thermometer {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z'/%3E%3C/svg%3E");
}

.th-icon.icon-wind {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.7 7.7a2.5 2.5 0 1 1 1.8 4.3H2'/%3E%3Cpath d='M9.6 4.6A2 2 0 1 1 11 8H2'/%3E%3Cpath d='M12.6 19.4A2 2 0 1 0 14 16H2'/%3E%3C/svg%3E");
}

#weather-calculator .chart-title {
    font-size: 18px;
    margin-bottom: 4px;
}

/* Location name above table */
#weather-calculator .location-name {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

/* --- Weather Overlay --- */
#weather-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #9CA3AF;
    z-index: 10;
    border-radius: 16px;
}

/* Hide old chart canvas */
#forecastChart {
    display: none !important;
}

/* --- Forecast Table Styles --- */
.forecast-table-container {
    overflow-x: auto;
    margin: 0 -8px;
    padding: 0 8px;
}

.forecast-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
}

.forecast-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.forecast-table th {
    background-color: #F9FAFB;
    padding: 10px 8px;
    text-align: center;
    font-weight: 500;
    font-size: 12px;
    color: #6B7280;
    border-bottom: 1px solid #E5E7EB;
    white-space: nowrap;
}

.forecast-table td {
    padding: 8px;
    border: none;
    border-bottom: 1px solid #F3F4F6;
    text-align: center;
    vertical-align: middle;
    color: #374151;
    font-size: 13px;
}

.forecast-table tr:last-child td {
    border-bottom: none;
}

/* Weather column with Lucide icons */
.forecast-table .weather-cell {
    padding: 4px !important;
    min-width: 28px;
    width: 28px;
}

.forecast-table .weather-cell .weather-icon {
    display: block;
    margin: 0 auto;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}

/* --- Sun/clear icons (orange) --- */

/* lucide-sun: clear sky day — orange-500 */
.wi-sun {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F97316' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
}

/* lucide-cloud-sun: partly cloudy day — orange-400 */
.wi-cloud-sun {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FB923C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3Cpath d='M15.947 12.65a4 4 0 0 0-5.925-4.128'/%3E%3Cpath d='M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z'/%3E%3C/svg%3E");
}

/* --- Night icons (gray) --- */

/* lucide-moon: clear sky night — gray-400 */
.wi-moon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E");
}

/* lucide-cloud-moon: partly cloudy night — gray-400 */
.wi-cloud-moon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z'/%3E%3Cpath d='M10.083 9A6.002 6.002 0 0 1 16.5 3.083'/%3E%3Cpath d='M19.178 5.822a6.003 6.003 0 0 1-3.178 5.178'/%3E%3C/svg%3E");
}

/* --- Cloud icons (gray) --- */

/* lucide-cloud: overcast/cloudy — gray-400 */
.wi-cloud {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z'/%3E%3C/svg%3E");
}

/* lucide-cloud-fog: mist/fog/haze — gray-400 */
.wi-cloud-fog {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242'/%3E%3Cpath d='M16 17H7'/%3E%3Cpath d='M17 21H9'/%3E%3C/svg%3E");
}

/* --- Precipitation icons (blue) --- */

/* lucide-cloud-drizzle: drizzle — blue-500 */
.wi-cloud-drizzle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233B82F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242'/%3E%3Cpath d='M8 19v1'/%3E%3Cpath d='M8 14v1'/%3E%3Cpath d='M16 19v1'/%3E%3Cpath d='M16 14v1'/%3E%3Cpath d='M12 21v1'/%3E%3Cpath d='M12 16v1'/%3E%3C/svg%3E");
}

/* lucide-cloud-rain: rain — blue-500 */
.wi-cloud-rain {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233B82F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242'/%3E%3Cpath d='M16 14v6'/%3E%3Cpath d='M8 14v6'/%3E%3Cpath d='M12 16v6'/%3E%3C/svg%3E");
}

/* lucide-snowflake: snow — blue-500 */
.wi-snowflake {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233B82F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='2' x2='22' y1='12' y2='12'/%3E%3Cline x1='12' x2='12' y1='2' y2='22'/%3E%3Cpath d='m20 16-4-4 4-4'/%3E%3Cpath d='m4 8 4 4-4 4'/%3E%3Cpath d='m16 4-4 4-4-4'/%3E%3Cpath d='m8 20 4-4 4 4'/%3E%3C/svg%3E");
}

/* lucide-cloud-lightning: thunderstorm — blue-500 */
.wi-cloud-lightning {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233B82F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973'/%3E%3Cpath d='m13 12-3 5h4l-3 5'/%3E%3C/svg%3E");
}

/* Date label rows */
.forecast-table .date-label {
    font-weight: 600;
    font-size: 12px;
    color: #111827;
}

.forecast-table .new-date-row td {
    border-top: 2px solid #E5E7EB;
}

/* UV Index color coding */
.forecast-table .uv-value {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    min-width: 32px;
    font-size: 13px;
}

.forecast-table .uv-extreme {
    background: #FEE2E2;
    color: #DC2626;
}

.forecast-table .uv-very-high {
    background: #FEE2E2;
    color: #DC2626;
}

.forecast-table .uv-high {
    background: #FFEDD5;
    color: #EA580C;
}

.forecast-table .uv-moderate {
    background: #FEF3C7;
    color: #D97706;
}

.forecast-table .uv-low {
    background: #ECFDF5;
    color: #059669;
}

.forecast-table .uv-none {
    color: #D1D5DB;
}

/* Tanning time cell */
.forecast-table .tanning-time {
    font-size: 13px;
    white-space: nowrap;
}

/* Weather label styles (for merged cells / backward compat) */
.weather-label {
    display: block;
    padding: 4px;
    font-size: 11px;
    text-align: center;
    color: #6B7280;
}

.weather-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    position: relative;
}

.weather-label-vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    position: absolute;
    font-weight: normal;
    font-size: 11px;
    padding: 4px;
    white-space: nowrap;
    color: #6B7280;
}

/* Weather background colors */
.weather-clear {
    background-color: #FFFEF5;
}

.weather-partly-cloudy {
    background-color: #F8FAFC;
}

.weather-cloudy {
    background-color: #F1F5F9;
}

.weather-rain, .weather-snow, .weather-thunderstorm {
    background-color: #EFF6FF;
}

/* --- Responsive --- */
@media screen and (max-width: 1023px) {
    #calculators-wrapper {
        padding: 0 12px;
    }

    #tanning-calculator,
    #weather-calculator {
        padding: 24px;
        border-radius: 12px;
    }

    .form-group-toggle {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .toggle-control {
        align-self: flex-start;
    }
}

@media screen and (max-width: 768px) {
    .calculator-intro {
        font-size: 14px;
        padding: 0 12px;
    }

    .forecast-table {
        font-size: 12px;
    }

    .forecast-table th, .forecast-table td {
        padding: 6px 4px;
    }

    .forecast-table .weather-cell .weather-icon {
        width: 18px;
        height: 18px;
        background-size: 18px 18px;
    }

    /* Hide rain column on mobile */
    .forecast-table .col-rain {
        display: none;
    }

    /* Keep table full width when rain column is hidden */
    .forecast-table {
        width: 100% !important;
        min-width: 100% !important;
    }

    .forecast-table-container {
        overflow-x: hidden;
    }

    /* Expandable rows */
    .forecast-table .expandable-row {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background-color 0.15s ease;
    }

    .forecast-table .expandable-row:active {
        background-color: #F9FAFB;
    }

    .forecast-table .expandable-row.expanded {
        background-color: #F9FAFB;
    }

    /* Expand detail row */
    .forecast-table .expand-detail td {
        padding: 0 !important;
        border-bottom: 1px solid #E5E7EB;
    }

    .expand-card {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 14px;
        background: #F9FAFB;
        border-top: 1px solid #F3F4F6;
    }

    .expand-weather-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        background-size: 28px 28px !important;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .expand-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 16px;
        flex: 1;
    }

    .expand-item {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .expand-label {
        font-size: 11px;
        font-weight: 500;
        color: #9CA3AF;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .expand-value {
        font-size: 14px;
        font-weight: 600;
        color: #111827;
    }
}

@media screen and (max-width: 480px) {
    #tanning-calculator,
    #weather-calculator {
        padding: 20px 16px;
    }

    .forecast-table {
        font-size: 11px;
    }

    .forecast-table th, .forecast-table td {
        padding: 5px 3px;
    }

    .forecast-table .uv-value {
        padding: 1px 4px;
        font-size: 11px;
    }

    .expand-card {
        padding: 10px 12px;
        gap: 10px;
    }

    .expand-grid {
        gap: 5px 12px;
    }

    .expand-value {
        font-size: 13px;
    }
}

/* --- Scrollbar styling for forecast table --- */
.forecast-table-container::-webkit-scrollbar {
    height: 4px;
}

.forecast-table-container::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 2px;
}

.forecast-table-container::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 2px;
}

.forecast-table-container::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}