/* Skip link (acessibilidade) */
        .skip-link { position: absolute; top: -40px; left: 0; background: #0A4D68; color: #fff; padding: 8px 16px; z-index: 9999; font-size: 14px; border-radius: 0 0 4px 0; transition: top .2s; text-decoration: none; }
        .skip-link:focus { top: 0; }
        /* --- GLOBAL VARIABLES --- */
        :root {
            --primary: #0A4D68;
            --primary-dark: #06384d;
            --accent: #047857;
            --secondary: #D97706;
            --bg-body: #FAFAF9;
            --bg-card: #FFFFFF;
            --bg-calc-item: #FFFFFF;
            --bg-calc-item-hover: #FAFAF9;
            --border-calc: #E7E5E4;
            --text-main: #1C1917;
            --text-muted: #57534E;
            --border-subtle: #E7E5E4;
            --container-width: 1200px;
            --header-height: 90px;
        }

        [data-theme="dark"] {
            --bg-body: #0C0A09;
            --bg-card: #1C1917;
            --bg-calc-item: #292524;
            --bg-calc-item-hover: #44403C;
            --border-calc: #44403C;
            --text-main: #F5F5F4;
            --text-muted: #A8A29E;
            --primary: #38BDF8;
            --accent: #34D399;
            --border-subtle: #292524;
        }

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

        body {
            font-family: 'Source Sans 3', sans-serif;
            background-color: var(--bg-body);
            color: var(--text-main);
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
            transition: background-color 0.5s ease, color 0.5s ease;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Playfair Display', serif;
            font-weight: 700;
            color: var(--primary);
            letter-spacing: -0.02em;
        }

        a { text-decoration: none; color: inherit; transition: 0.3s ease; }
        ul { list-style: none; }
        img { max-width: 100%; display: block; }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes rotate-scale {
            0% { transform: rotate(0) scale(1); }
            50% { transform: rotate(180deg) scale(1.2); }
            100% { transform: rotate(360deg) scale(1); }
        }
        .animate-fade-in { animation: fadeInUp 0.8s ease-out forwards; }
        .animate-theme-switch i, .animate-theme-switch svg { animation: rotate-scale 0.5s ease-in-out; }

        .container {
            max-width: var(--container-width);
            margin: 0 auto;
            padding: 0 24px;
        }

        .top-bar {
            background-color: #0A4D68;
            color: #fff;
            padding: 8px 0;
            font-size: 0.85rem;
            position: relative;
            z-index: 1002;
        }
        .top-bar .container {
            display: flex;
            justify-content: flex-end;
            gap: 20px;
            padding-right: 20px;
        }

        .main-header {
            position: absolute;
            top: 40px;
            width: 100%;
            z-index: 1000;
            height: var(--header-height);
            border-bottom: 1px solid rgba(255,255,255,0.15);
            background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
        }
        .main-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100%;
            margin: 0;
            max-width: 100%;
            padding-left: 40px;
            padding-right: 40px;
        }

        .logo {
            font-family: 'Playfair Display', serif;
            font-size: 2rem;
            font-weight: 700;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 12px;
            letter-spacing: -0.03em;
        }

        .nav-menu { display: flex; gap: 32px; }
        .nav-link {
            font-family: 'Source Sans 3', sans-serif;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            position: relative;
        }
        .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -4px;
            left: 0;
            background-color: var(--secondary);
            transition: width 0.3s;
        }
        .nav-link:hover::after { width: 100%; }
        .nav-link:hover { color: #fff; }

        .btn-outline-white {
            border: 1px solid rgba(255,255,255,0.4);
            color: #fff;
            padding: 8px 24px;
            border-radius: 2px;
            text-transform: uppercase;
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: 0.05em;
        }
        .btn-outline-white:hover {
            background-color: #fff;
            color: var(--primary);
            border-color: #fff;
        }

        .theme-toggle {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            background: none;
            border: none;
            color: #fff;
            font-size: 0.85rem;
        }
        .lang-selector {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .lang-selector select {
            background: transparent;
            border: none;
            color: #fff;
            font-size: 0.85rem;
            cursor: pointer;
            outline: none;
        }
        .lang-selector select option { color: #1C1917; }

        .article-hero {
            height: 60vh;
            min-height: 500px;
            background-image: linear-gradient(to right, rgba(10, 77, 104, 0.95) 0%, rgba(10, 77, 104, 0.8) 50%, rgba(0,0,0,0.4) 100%), url("../../img/cabecario.webp");
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            display: flex;
            align-items: center;
            position: relative;
            padding-top: 80px;
            color: #fff;
        }

        .article-hero-content {
            max-width: 800px;
            padding-left: 20px;
        }

        .article-tag {
            background-color: var(--secondary);
            color: #fff;
            padding: 4px 12px;
            text-transform: uppercase;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            border-radius: 2px;
            display: inline-block;
            margin-bottom: 20px;
        }

        .article-hero h1 {
            font-size: 3.5rem;
            color: #fff;
            line-height: 1.1;
            margin-bottom: 20px;
        }

        .article-meta {
            display: flex;
            align-items: center;
            gap: 20px;
            font-size: 0.9rem;
            color: rgba(255,255,255,0.8);
            font-family: 'Source Sans 3', sans-serif;
            margin-top: 30px;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .breadcrumb-bar {
            background-color: var(--bg-card);
            border-bottom: 1px solid var(--border-subtle);
            padding: 12px 0;
            font-size: 0.875rem;
            color: var(--text-muted);
        }
        .breadcrumb-bar .container {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .breadcrumb-bar a { color: var(--primary); }
        .breadcrumb-bar a:hover { text-decoration: underline; }

        .article-container {
            max-width: 900px;
            margin: 60px auto;
            padding: 0 24px;
            display: block;
        }

        .article-body {
            font-size: 1.2rem;
            color: var(--text-main);
            line-height: 1.85;
        }

        .article-body p {
            margin-bottom: 1.8em;
            text-align: justify;
        }

        .article-body h2 {
            font-size: 2.2rem;
            margin-top: 2.5em;
            margin-bottom: 0.8em;
            color: var(--primary);
            text-align: center;
            border-bottom: 2px solid var(--accent);
            border-left: none;
            padding-left: 0;
            padding-bottom: 10px;
            display: inline-block;
            width: 100%;
        }

        .article-body h3 {
            font-size: 1.6rem;
            margin-top: 2.2em;
            margin-bottom: 0.8em;
            color: var(--text-main);
            font-family: 'Playfair Display', serif;
            font-weight: 700;
        }

        .article-body ul, .article-body ol {
            margin-bottom: 2em;
            padding-left: 20px;
            max-width: 90%;
            margin-left: auto;
            margin-right: auto;
        }

        .article-body li {
            margin-bottom: 0.8em;
            padding-left: 10px;
            position: relative;
        }

        .article-body ul li::marker { color: var(--accent); }
        .article-body strong { color: var(--primary); font-weight: 700; }

        .clinical-pearl {
            background-color: rgba(4, 120, 87, 0.05);
            border-left: 4px solid var(--accent);
            padding: 30px;
            margin: 50px auto;
            border-radius: 4px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.03);
        }

        .clinical-pearl h4 {
            color: var(--accent);
            font-family: 'Source Sans 3', sans-serif;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 0.1em;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        [data-theme="dark"] .clinical-pearl { background-color: rgba(4, 120, 87, 0.15); }

        .warning-box {
            background-color: rgba(217, 119, 6, 0.07);
            border-left: 4px solid var(--secondary);
            padding: 30px;
            margin: 50px auto;
            border-radius: 4px;
        }

        .warning-box h4 {
            color: var(--secondary);
            font-family: 'Source Sans 3', sans-serif;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 0.1em;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        [data-theme="dark"] .warning-box { background-color: rgba(217, 119, 6, 0.15); }

        .scientific-quote {
            font-family: 'Playfair Display', serif;
            font-style: italic;
            font-size: 1.5rem;
            color: var(--text-muted);
            border-left: none;
            text-align: center;
            margin: 50px 0;
            padding: 0 40px;
            position: relative;
        }
        .scientific-quote::before {
            content: '"';
            font-size: 4rem;
            color: var(--secondary);
            opacity: 0.3;
            display: block;
            line-height: 0.5;
            margin-bottom: 20px;
        }

        .scientific-table {
            width: 100%;
            border-collapse: collapse;
            margin: 50px 0;
            font-size: 0.95rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            border-radius: 6px;
            overflow: hidden;
        }
        .scientific-table th {
            background-color: var(--primary);
            color: #fff;
            padding: 18px;
            text-align: left;
            font-family: 'Source Sans 3', sans-serif;
            font-weight: 600;
            letter-spacing: 0.05em;
        }
        .scientific-table td {
            border-bottom: 1px solid var(--border-subtle);
            padding: 18px;
            vertical-align: top;
        }
        .scientific-table tr:nth-child(even) { background-color: rgba(0,0,0,0.02); }
        [data-theme="dark"] .scientific-table tr:nth-child(even) { background-color: rgba(255,255,255,0.02); }

        .faq-section { margin-top: 60px; }
        .faq-item {
            border: 1px solid var(--border-subtle);
            border-radius: 6px;
            margin-bottom: 16px;
            overflow: hidden;
        }
        .faq-question {
            padding: 20px 24px;
            cursor: pointer;
            font-weight: 600;
            font-size: 1.05rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--bg-card);
        }
        .faq-answer {
            padding: 0 24px 20px;
            font-size: 1rem;
            line-height: 1.7;
            color: var(--text-muted);
            background: var(--bg-card);
        }

        .references-section {
            margin-top: 100px;
            padding-top: 60px;
            border-top: 1px solid var(--border-subtle);
            font-size: 0.9rem;
            color: var(--text-muted);
        }
        .references-section h3 {
            margin-top: 0;
            font-size: 1.5rem;
            margin-bottom: 30px;
            text-align: left;
            border-bottom: none;
            width: auto;
            display: block;
        }
        .ref-item {
            margin-bottom: 15px;
            word-break: break-word;
            padding-left: 20px;
            text-indent: -20px;
        }

        .toc-integrated {
            background-color: var(--bg-body);
            border: 1px solid var(--border-subtle);
            border-top: 4px solid var(--secondary);
            padding: 30px;
            margin-bottom: 60px;
            border-radius: 4px;
        }
        .toc-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.3rem;
            margin-bottom: 20px;
            color: var(--text-main);
            font-weight: 700;
            text-align: center;
        }
        .toc-list {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px 30px;
            padding: 0;
        }
        .toc-list li { list-style: none; margin: 0; font-size: 0.95rem; }
        .toc-list a {
            color: var(--primary);
            text-decoration: none;
            border-bottom: 1px dotted transparent;
            transition: all 0.2s;
        }
        .toc-list a:hover { color: var(--accent); border-bottom-color: var(--accent); }

        footer {
            background-color: #1C1917;
            color: #A8A29E;
            padding: 80px 0 0;
            font-size: 0.95rem;
            font-family: 'Source Sans 3', sans-serif;
            border-top: 4px solid var(--accent);
            margin-top: 100px;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 50px;
            padding-bottom: 60px;
        }
        .footer h4 {
            color: #fff;
            font-family: 'Playfair Display', serif;
            font-size: 1.3rem;
            margin-bottom: 25px;
            letter-spacing: 0.05em;
            position: relative;
        }
        .footer h4::after {
            content: '';
            display: block;
            width: 30px;
            height: 2px;
            background-color: var(--accent);
            margin-top: 10px;
        }
        .footer ul li { margin-bottom: 12px; }
        .footer ul li a { color: #A8A29E; transition: 0.2s; display: inline-block; }
        .footer ul li a:hover { color: #fff; transform: translateX(5px); }
        .footer-bottom {
            border-top: 1px solid #333;
            padding: 30px 0;
            text-align: center;
            font-size: 0.85rem;
            background-color: #151312;
        }

        @media (max-width: 900px) {
            .nav-menu { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
            .article-hero h1 { font-size: 2.2rem; }
            .article-container { padding: 0 20px; }
            .toc-list { grid-template-columns: 1fr; }
            .main-header .container { padding-left: 20px; }
            .scientific-quote { padding: 0; }
        }
