/*
 * Senego Tools - Design System
 * Reproduces senego.com visual identity for the /outils/ platform
 */

/* === Font Faces (local) === */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/outils/static/fonts/roboto-v30-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/outils/static/fonts/roboto-v30-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/outils/static/fonts/roboto-v30-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/outils/static/fonts/oswald-v53-latin-700.woff2') format('woff2');
}

/* === Variables === */
:root {
    --color-text: #000000;
    --color-meta: #666;
    --color-background: #dddddd;
    --color-primary: #ff9900;
    --color-secondary: #e68a00;
    --color-border: #e0e0e0;
    --color-bg-alt: #ffffff;
    --color-bg-subtle: #fafafa;
    --color-top-bar-bg: #000000;
    --color-top-bar-text: #fff;
    --font-primary: 'Roboto', sans-serif;
    --font-headings: 'Oswald', sans-serif;
    --spacing-unit: 1rem;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    margin: 0;
    overflow-x: hidden;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-secondary); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0 0 0.5em;
}

img { max-width: 100%; height: auto; }

.container {
    max-width: 1400px;
    width: 92%;
    margin: 0 auto;
}

/* === Top Bar === */
.top-bar {
    background-color: var(--color-top-bar-bg);
    color: var(--color-top-bar-text);
    padding: 6px 0;
    font-size: 13px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left { display: none; }
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
.contact-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-top-bar-text);
    transition: color 0.2s;
}
.contact-link:hover { color: var(--color-primary); }
.very-top-menu-icon { color: var(--color-primary); }
.top-bar-separator {
    width: 1px;
    height: 16px;
    background: #444;
}
.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}
.social-links a {
    color: var(--color-primary);
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}
.social-links a:hover { opacity: 0.8; }
.social-icon { width: 18px; height: 18px; }

/* === Main Navigation === */
.main-navigation-container {
    background-color: var(--color-bg-alt);
    border-bottom: 3px solid var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-navigation-container .container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}
.menu-toggle-wrapper { display: none; }
.drawer-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text);
}
.site-branding a { display: flex; align-items: center; }
.site-logo { display: block; }
.desktop-navigation { flex: 1; }
.desktop-navigation .menu,
#primary-menu-desktop {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    justify-content: center;
}
#primary-menu-desktop li a {
    padding: 0.5rem 1rem;
    color: #000;
    font-weight: bold;
    font-family: var(--font-headings);
    text-transform: uppercase;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
    display: block;
    font-size: 0.95rem;
}
#primary-menu-desktop li a:hover,
#primary-menu-desktop .current-menu-item a {
    background-color: var(--color-primary);
    color: #fff;
}
.header-actions { flex-shrink: 0; }
.search-form { display: flex; }
.search-field {
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-subtle);
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    width: 200px;
    font-size: 0.9rem;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s;
    outline: none;
}
.search-field:focus {
    width: 280px;
    background-color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

/* === Drawer Menu (Mobile) === */
.drawer-menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}
.drawer-menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}
.drawer-menu {
    position: fixed;
    top: 0; left: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background-color: #fff;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    z-index: 1999;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.drawer-menu.is-open { transform: translateX(0); }
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--color-primary);
}
.drawer-title {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-text);
}
.drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--color-meta);
}
.drawer-navigation {
    list-style: none;
    padding: 0;
    margin: 0;
}
.drawer-navigation li a {
    display: block;
    padding: 0.9rem 1.5rem;
    color: var(--color-text);
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s;
}
.drawer-navigation li a:hover {
    background-color: var(--color-bg-subtle);
    color: var(--color-primary);
}

/* === Footer === */
.site-footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}
.footer-top-line {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}
.logo-footer { display: block; margin-bottom: 0.8rem; }
.footer-description { font-size: 0.9rem; color: #999; margin: 0; }
.links-footer-container h3,
.social-media-container h3 {
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
}
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-list li { margin-bottom: 0.5rem; }
.footer-links-list a { color: #ccc; transition: color 0.2s; }
.footer-links-list a:hover { color: var(--color-primary); }
.social-media-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}
.social-media-list a {
    color: #ccc;
    font-size: 1.3rem;
    transition: color 0.2s;
}
.social-media-list a:hover { color: var(--color-primary); }
.copyright-container {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #777;
}

/* === Breadcrumb === */
.breadcrumb { padding: 1rem 0; font-size: 0.9rem; }
.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.breadcrumb-list li::after { content: ">"; margin-left: 0.5rem; color: var(--color-meta); }
.breadcrumb-list li:last-child::after { content: none; }
.breadcrumb-list a { color: var(--color-primary); }
.breadcrumb-list li:last-child { color: var(--color-meta); }

/* === Tools Page === */
.tools-page {
    background-color: var(--color-bg-alt);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}
.tools-hero {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-primary);
}
.tools-hero h1 {
    font-size: 2.2rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}
.tools-hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-meta);
    max-width: 700px;
    margin: 0 auto;
}

/* === Category Sections === */
.tools-category { margin-bottom: 2.5rem; }
.category-title {
    font-size: 1.4rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 1.2rem;
}
.category-icon { font-size: 1.3rem; }

/* === Tool Cards Grid === */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}
.tool-card {
    display: block;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.2rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    color: var(--color-text);
}
.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}
.tool-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.tool-card h3 {
    font-family: var(--font-headings);
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 0.3rem;
}
.tool-card p {
    font-size: 0.85rem;
    color: var(--color-meta);
    margin: 0;
    line-height: 1.4;
}

/* === CTA Button (for showcase pages) === */
.cta-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-family: var(--font-headings);
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 700;
    transition: background-color 0.2s, transform 0.2s;
    text-decoration: none;
    text-align: center;
}
.cta-button:hover {
    background-color: var(--color-secondary);
    color: #fff;
    transform: translateY(-2px);
}

/* === SEO Content === */
.seo-content {
    line-height: 1.8;
    color: #333;
}
.seo-content h2 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}
.seo-content h3 {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-top: 1.5rem;
}
.seo-content p {
    margin-bottom: 1rem;
}
.seo-content ul, .seo-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.seo-content li { margin-bottom: 0.3rem; }

/* === FAQ Section === */
.faq-section { margin-top: 2rem; }
.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}
.faq-question {
    font-family: var(--font-headings);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    padding-top: 0.8rem;
    color: #444;
    line-height: 1.7;
}

/* === Showcase Page === */
.showcase-hero {
    text-align: center;
    padding: 2.5rem 1rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff8ee 0%, #fff 100%);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}
.showcase-hero-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.showcase-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.showcase-hero-description { color: var(--color-meta); font-size: 1.1rem; margin-bottom: 1.5rem; }
.showcase-partner-info {
    background: var(--color-bg-subtle);
    border-left: 4px solid var(--color-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

/* === Tool Card Badge === */
.tool-card-badge {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* === Converter Widget === */
.converter-widget {
    background: var(--color-bg-alt);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
}
.converter-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}
.converter-input-group {
    flex: 1;
    min-width: 150px;
}
.converter-input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--color-meta);
}
.converter-input-group input,
.converter-input-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.2s;
}
.converter-input-group input:focus,
.converter-input-group select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15);
}
.converter-swap-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s, transform 0.2s;
}
.converter-swap-btn:hover {
    background: var(--color-secondary);
    transform: rotate(180deg);
}
.converter-result-box {
    text-align: center;
    padding: 1.5rem;
    margin-top: 1.5rem;
    background: var(--color-bg-subtle);
    border-radius: 8px;
}
.converter-result-value {
    font-family: var(--font-headings);
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 700;
}
.converter-result-rate {
    font-size: 0.9rem;
    color: var(--color-meta);
    margin-top: 0.3rem;
}

/* === Rates Table === */
.rates-section { margin: 2rem 0; }
.rates-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-alt);
    border-radius: 8px;
    overflow: hidden;
}
.rates-table th {
    background: var(--color-primary);
    color: #fff;
    padding: 0.8rem 1rem;
    text-align: left;
    font-family: var(--font-headings);
    text-transform: uppercase;
    font-size: 0.85rem;
}
.rates-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--color-border);
}
.rates-table tr:hover { background: var(--color-bg-subtle); }

/* === Calculator Widget === */
.calculator-widget {
    background: var(--color-bg-alt);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
}
.calculator-form { display: grid; gap: 1rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label {
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.form-group input, .form-group select {
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15);
}
.calculator-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-family: var(--font-headings);
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
}
.calculator-btn:hover { background: var(--color-secondary); }
.calculator-result-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--color-bg-subtle);
    border-radius: 8px;
}
.result-main {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    color: var(--color-primary);
    font-weight: 700;
}
.result-details { margin-top: 1rem; }
.result-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}
.result-label { color: var(--color-meta); }
.result-value { font-weight: 500; }

/* === FAQ Accordion === */
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-toggle {
    font-size: 1.3rem;
    color: var(--color-primary);
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

/* === Tool Subtitle === */
.tool-subtitle {
    color: var(--color-meta);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* === City Pages === */
.city-selector { margin-bottom: 1.5rem; }
.city-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
    overflow-x: auto;
}
.city-tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 25px;
    background: var(--color-bg-alt);
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: var(--font-primary);
}
.city-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.city-tab.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.city-data-widget { min-height: 200px; }
.loading-spinner { text-align: center; padding: 2rem; color: var(--color-meta); }

/* Weather styles */
.weather-current {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1a73e8, #4fc3f7);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 1.5rem;
}
.weather-temp {
    font-family: var(--font-headings);
    font-size: 3.5rem;
    font-weight: 700;
}
.weather-desc { font-size: 1.2rem; margin-top: 0.3rem; }
.weather-details {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}
.forecast-day {
    text-align: center;
    padding: 1rem 0.5rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}
.forecast-dayname {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}
.forecast-temps { margin: 0.3rem 0; }
.temp-max { font-weight: 700; color: var(--color-text); }
.temp-min { color: var(--color-meta); margin-left: 0.3rem; }
.forecast-desc { font-size: 0.75rem; color: var(--color-meta); }

/* Pharmacy styles */
.pharmacy-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.pharmacy-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.2rem;
    position: relative;
}
.pharmacy-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
.pharmacy-address { font-size: 0.85rem; color: var(--color-meta); margin-bottom: 0.3rem; }
.pharmacy-phone a { color: var(--color-primary); font-weight: 500; }
.pharmacy-guard-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: #27ae60;
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 700;
}
.no-data { text-align: center; padding: 2rem; color: var(--color-meta); }

/* Directory styles */
.directory-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.directory-search input {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
}
.directory-search select {
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
}
.directory-results { min-height: 200px; }
.directory-item {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 0.8rem;
}
.directory-item h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.directory-item-meta { font-size: 0.85rem; color: var(--color-meta); }
.directory-item-meta span { margin-right: 1rem; }
.directory-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background: var(--color-bg-alt);
    cursor: pointer;
    font-family: var(--font-primary);
}
.page-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Content Hub styles */
.content-hub-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}
.content-hub-sidebar {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--color-text);
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    border-left-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-bg-subtle);
}
.content-hub-main { min-height: 400px; }

/* Live Scores styles */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1a1a1a;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.live-dot {
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.scores-widget { min-height: 200px; }
.scores-placeholder {
    text-align: center;
    padding: 2rem;
    color: var(--color-meta);
    background: var(--color-bg-subtle);
    border-radius: 8px;
}

/* Coming soon === */
.tools-coming-soon {
    text-align: center;
    padding: 3rem;
    color: var(--color-meta);
    font-size: 1.1rem;
}

/* === Ad Slots === */
.ad-slot {
    text-align: center;
    margin: 1.5rem 0;
    min-height: 100px;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #999;
}

/* === Responsive: Tablet (768-991px) === */
@media (max-width: 991px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    .footer-top-line {
        grid-template-columns: 1fr 1fr;
    }
    .search-field { width: 160px; }
    .search-field:focus { width: 200px; }
}

/* === Responsive: Mobile (<=767px) === */
@media (max-width: 767px) {
    .menu-toggle-wrapper { display: block; }
    .desktop-navigation { display: none; }
    .header-actions { display: none; }

    .main-navigation-container .container {
        justify-content: space-between;
    }
    .site-logo { width: 140px; height: auto; }

    .top-bar .container { justify-content: flex-end; }
    .contact-link span { display: none; }
    .social-icon { width: 16px; height: 16px; }

    .tools-hero h1 { font-size: 1.6rem; }
    .tools-hero-subtitle { font-size: 0.95rem; }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-top-line {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-media-list { justify-content: center; }

    .tools-page { padding: 1rem; margin: 0.5rem 0; }

    .converter-row { flex-direction: column; }
    .converter-swap-btn { align-self: center; transform: rotate(90deg); }
    .converter-swap-btn:hover { transform: rotate(270deg); }

    .forecast-grid { grid-template-columns: repeat(4, 1fr); }

    .content-hub-layout { grid-template-columns: 1fr; }
    .content-hub-sidebar { position: static; max-height: none; }
    .sidebar-nav { display: flex; flex-wrap: wrap; gap: 0.3rem; }
    .sidebar-nav li a { padding: 0.4rem 0.8rem; border: 1px solid var(--color-border); border-radius: 5px; border-left: none; font-size: 0.8rem; }

    .pharmacy-list { grid-template-columns: 1fr; }
}

/* === Responsive: Very small mobile (<=479px) === */
@media (max-width: 479px) {
    .top-bar { padding: 4px 0; font-size: 12px; }
    .tools-hero h1 { font-size: 1.3rem; }
    .tool-card { padding: 1rem; }
    .cta-button { padding: 0.8rem 1.5rem; font-size: 1rem; }
}

/* === Skip link === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 8px;
    z-index: 10000;
}
.skip-link:focus { top: 0; }

/* === Screen reader text === */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
