/* --- 1. Basic & Font Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #212529;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* --- 2. Two-Column Grid Layout --- */
.tna-page-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* --- 3. Sticky Sidebar Navigation --- */
#tna-sidebar-nav {
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: 90vh;
    overflow-y: auto;
    border-right: 1px solid #e9ecef;
    padding-right: 20px;
}
#tna-sidebar-nav h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #343a40;
    margin-top: 0;
    margin-bottom: 0.5rem; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#tna-sidebar-nav .tna-nav-section-spacer {
    margin-top: 2rem; 
}
#tna-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#tna-sidebar-nav li {
    margin-bottom: 0.5rem;
}
#tna-sidebar-nav li.tna-nav-separator {
    border-bottom: 1px solid #e9ecef; 
    padding-bottom: 8px; 
    margin-bottom: 8px;
}
#tna-sidebar-nav a {
    font-size: 0.9rem;
    color: #495057;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    line-height: 1.4;
    border-radius: 4px;
}
#tna-sidebar-nav a:hover {
    color: #0056b3;
    background-color: #e6f2ff;
}


/* --- 4. Main Article Content --- */
main {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px 40px;
    overflow: hidden; 
}

header {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
    padding-bottom: 20px;
}
header::after {
    content: "";
    display: table;
    clear: both;
}


h1 {
    color: #212529;
    font-size: 2.2em;
    line-height: 1.2;
    margin-bottom: 10px;
}

.tna-subtitle {
    font-size: 1.0em;
    color: #6c757d;
    font-style: italic;
    line-height: 1.5;
}

.tna-byline {
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
    margin-top: -10px; 
    padding-bottom: 10px;
}

h2 {
    font-size: 1.8em;
    color: #212529;
    margin-top: 40px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    clear: both;
}

h3 {
    font-size: 1.3em;
    color: #343a40;
    margin-top: 25px;
    margin-bottom: 10px;
    scroll-margin-top: 20px; 
}

p { margin-bottom: 15px; }

a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
}
a:hover { text-decoration: underline; }

/* Numbered List (Pillars) */
ol {
    list-style-type: none;
    counter-reset: pillar-counter;
    padding-left: 0;
}
ol > li {
    position: relative;
    counter-increment: pillar-counter;
    margin-bottom: 30px;
    padding-left: 35px;
}
ol > li::before {
    content: counter(pillar-counter) ".";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.1em;
    font-weight: bold;
    color: #495057;
}

/* Bulleted Sub-lists */
main ul,
ol > li ul {
    list-style-type: disc; 
    margin-top: -10px;
    margin-bottom: 15px;
    padding-left: 40px; 
}
main ul li,
ol > li ul li {
    margin-bottom: 8px;
    padding-left: 0; 
    position: static; 
}
ol > li ul li::before {
    content: none; 
}


blockquote {
    font-style: italic;
    font-size: 1.1em;
    color: #495057;
    margin: 30px 0;
    padding: 15px 20px;
    border-left: 5px solid #ced4da;
    background-color: #f8f9fa;
    border-radius: 0 5px 5px 0;
}

/* --- 5. Responsive Mobile Styles --- */
@media (max-width: 960px) {
    .tna-page-container {
        grid-template-columns: 1fr;
        padding: 0 10px;
        margin: 10px auto;
    }

    #tna-sidebar-nav {
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding-right: 0;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    main {
        padding: 15px 20px;
    }

    /* UPDATED: Targets .tna-icon */
    .tna-icon {
        float: none;
        width: 100%;
        max-width: 250px; /* Use max-width from original style */
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

/* --- 6. Competitive Analysis Box --- */
.tna-competitive-analysis {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 5px solid #0056b3; 
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 25px;
    margin-bottom: 25px;
    overflow: auto; 
}
.tna-competitive-analysis h4 {
    font-size: 1.2em;
    color: #0056b3; 
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
}
.tna-competitive-analysis ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}
.tna-competitive-analysis ul li {
    margin-bottom: 10px;
}
.tna-competitive-analysis ul li strong {
    color: #343a40;
}
.tna-label-pro {
    font-weight: 600;
    color: #057a55; /* Dark Green */
}
.tna-label-con {
    font-weight: 600;
    color: #c81e1e; /* Dark Red */
}


/* --- 7. Conclusion Matrix Table --- */
.tna-matrix-table {
    width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden; 
}
.tna-matrix-table th,
.tna-matrix-table td {
    border: 1px solid #dee2e6;
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}
.tna-matrix-table thead {
    background-color: #f8f9fa;
}
.tna-matrix-table thead th {
    font-weight: 600;
    color: #343a40;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 12px;
    vertical-align: top; 
}
.tna-matrix-subtitle {
    display: block;
    font-size: 0.85em;
    color: #495057;
    margin-top: 2px;
}
.tna-matrix-subtitle strong {
    font-weight: 700;
    color: #343a40;
}
.tna-matrix-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}
.tna-matrix-table td {
    text-align: center;
    color: #495057;
}
.tna-matrix-table td strong {
    color: #212529;
    font-size: 1.1em;
}
.tna-matrix-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: #343a40;
}
.tna-matrix-table tfoot {
    background-color: #e9ecef;
}
.tna-matrix-table tfoot td {
    text-align: center;
    font-weight: 600;
    color: #212529;
}
.tna-matrix-table tfoot strong {
    font-size: 1.1em;
}

/* --- 8. Shared Article Styles --- */
/* REPLACED: .tna-article-image with .tna-box */
.tna-box { 
    box-shadow: 15px 15px 20px rgba(0, 0, 0, 0.5); 
    width: 90%; 
    max-width: 700px; 
    border-radius: 8px; /* Added from my old style */
    margin: 1rem auto;
    display: block;
}

main ul.tna-sub-list {
    list-style-type: circle; 
    margin-left: 40px;
    margin-top: 10px;
    margin-bottom: 15px;
}
.tna-references-section {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}
.tna-references-section h3 {
    font-size: 1.5em; 
    color: #343a40;
    margin-bottom: 1.5rem;
}
.tna-references-list {
    list-style-type: none;
    padding-left: 0;
}
.tna-references-list li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.tna-references-list .tna-ref-number {
    font-weight: 600;
    margin-right: 5px;
}

/* --- 9. Floating Image --- */
/* REPLACED: .tna-image-float-right with .tna-icon */
.tna-icon { 
    box-shadow:10px 10px 15px rgba(0, 0, 0, 0.5); 
    max-width: 250px;
    border-radius:10px;
    width:30%;
    float:right;
    margin-left: 20px; /* Added margin */
    margin-bottom: 10px; /* Added margin */
}

/* Clearfix for float - applies to sections */
section::after {
    content: "";
    display: table;
    clear: both;
}
