/* =========================================================
   BASE — Reset, Variables, Typography, Container, Helpers
   ========================================================= */

/* --- Reset --- */
*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
    -webkit-text-size-adjust: 100%; 
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #0f172a;
    background: #ffffff;
    overflow-x: hidden;
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

a { 
    color: inherit; 
    text-decoration: none; 
    transition: color .2s ease; 
}

a:hover { 
    color: var(--primary); 
}

ul, ol { 
    list-style: none; 
}

button { 
    font-family: inherit; 
    cursor: pointer; 
    border: none; 
    background: none; 
}

/* --- CSS Variables --- */
:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --navy-dark: #08183a;
    --accent-gold: #f59e0b;
    --dark: #08183a;
    --gray: #64748b;
    --light-gray: #f8fafc;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 4px 12px rgba(8, 24, 58, 0.05);
    --shadow-hover: 0 8px 24px rgba(8, 24, 58, 0.1);
    --container: 1280px;
    --share-bar-height: 60px;
}

/* --- Typography Scale (Desktop Base) --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy-dark);
    margin-bottom: 12px;
}

h1 { font-size: 2.1rem; letter-spacing: -0.02em; }
h2 { font-size: 1.65rem; letter-spacing: -0.015em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }
p { margin-bottom: 16px; }

/* --- Responsive Typography (Tablet & Mobile Scaling) --- */
@media (max-width: 768px) {
    body { font-size: 15px; line-height: 1.6; }
    h1 { font-size: 1.55rem; line-height: 1.25; margin-bottom: 10px; }
    h2 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 10px; }
    h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 8px; }
    h4 { font-size: 1.05rem; margin-bottom: 6px; }
    h5 { font-size: 0.95rem; }
    h6 { font-size: 0.85rem; }
    p { margin-bottom: 14px; }
}

@media (max-width: 480px) {
    body { font-size: 14.5px; line-height: 1.58; }
    h1 { font-size: 1.4rem; line-height: 1.25; }
    h2 { font-size: 1.22rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    p { margin-bottom: 12px; }
}

/* --- Flexbox Sticky Footer --- */
html, body {
    height: 100%;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.site-content > * {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto !important;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 600px) {
    .container { 
        padding: 0 14px; 
    }
}

/* --- Back To Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .3s ease;
    z-index: 1001;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover { 
    background: var(--primary-dark); 
    color: #fff; 
}

/* --- Screen Reader & Alignment Helpers --- */
.screen-reader-text {
    position: absolute; 
    width: 1px; 
    height: 1px;
    padding: 0; 
    margin: -1px; 
    overflow: hidden;
    clip: rect(0,0,0,0); 
    white-space: nowrap; 
    border: 0;
}

.alignleft { 
    float: left; 
    margin: 0 20px 20px 0; 
}

.alignright { 
    float: right; 
    margin: 0 0 20px 20px; 
}

.aligncenter { 
    display: block; 
    margin: 20px auto; 
}

/* =========================================================
   COMPACT & STRIPE TABLES WITH CLEAN VERTICAL BORDERS
   ========================================================= */

.entry-content table,
.tso-table-content table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 20px 0;
    font-size: 14px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(8, 24, 58, 0.03);
}

.entry-content th,
.entry-content td,
.tso-table-content th,
.tso-table-content td {
    padding: 10px 14px;
    text-align: left;
    vertical-align: middle;
    line-height: 1.5;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 600px) {
    .entry-content table,
    .tso-table-content table {
        font-size: 12.5px;
        margin: 14px 0;
    }
    .entry-content th,
    .entry-content td,
    .tso-table-content th,
    .tso-table-content td {
        padding: 7px 10px;
    }
}

.entry-content tr > *:first-child,
.tso-table-content tr > *:first-child {
    border-left: 1px solid #cbd5e1;
}

.entry-content tr > *:last-child,
.tso-table-content tr > *:last-child {
    border-right: 1px solid #cbd5e1;
}

.entry-content thead tr:first-child > *,
.entry-content tbody tr:first-child > *,
.tso-table-content thead tr:first-child > *,
.tso-table-content tbody tr:first-child > * {
    border-top: 1px solid #cbd5e1;
}

.entry-content tr:last-child > *,
.tso-table-content tr:last-child > * {
    border-bottom: 1px solid #cbd5e1;
}

.entry-content th,
.tso-table-content th {
    background: #f1f5f9;
    color: #08183a;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-bottom: 2px solid #cbd5e1;
}

.entry-content table.is-style-stripes tbody tr:nth-child(odd) td,
.tso-stripe-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.entry-content table.is-style-stripes tbody tr:nth-child(even) td,
.tso-stripe-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.entry-content table tbody tr:hover td,
.tso-table-content tbody tr:hover td {
    background: #f1f5f9;
}

.entry-content figure.wp-block-table,
.tso-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 0;
}