/* =========================================
   1. RESET & BASICS
   ========================================= */
@font-face {
    font-family: 'Lexend Deca Fallback';
    ascent-override: 91%;
    descent-override: 23%;
    line-gap-override: 0%;
    src: local('Arial');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lexend Deca', 'Lexend Deca Fallback', sans-serif !important;
    background-color: #f4f6f8 !important;
    color: #222222;
    line-height: 1.6;
}

/* =========================================
   2. LAYOUT & MAIN CONTAINER
   ========================================= */
main {
    min-height: 100vh;
    max-width: 120ch;
    margin: 0 auto;
    padding: 2rem 1rem !important;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0,0,0,0.03);
    position: relative;
}

main > h1 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #051538;
    text-align: center;
    font-weight: 700;
    font-size: 1.8rem !important;
}

a {
    color: #0645ad;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #007961;
    text-decoration: underline;
}

/* =========================================
   3. ARTICLE & TYPOGRAPHY
   ========================================= */
article {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem !important;
    color: #222222;
}

article h1, article h2, article h3, article h4, article h5 {
    color: #1e1e1e;
    margin-bottom: 1rem;
    line-height: 1.3;
    max-width: 600px;
}

article h1 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

article h2 {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 5px solid #dca535;
}

article h3 {
    font-weight: 600;
}

article p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

/* Images within article */
article img {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    display: block;
    border-radius: 4px;
}

article .in-article-img {
    margin: auto;
    height: 50vh;
    padding: 2vh;
    object-fit: contain;
}

/* Blockquotes */
article blockquote {
    border-left: 4px solid #dca535;
    background-color: #fffbf2;
    padding: 1.5rem;
    margin: 2rem 0;
    color: #444;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Lists styling */
article ol, article ul {
    margin: 1.5rem 0 2rem 0;
    padding: 2rem;
    background-color: #fcfcfc;
    list-style-position: inside;
}

/* Remove border for nested lists */
article ol ol, article ol ul, article ul ol, article ul ul {
    border: none !important;
    background: transparent;
    padding: 0 0 0 1.5rem;
    margin: 0.5rem 0;
}

article li {
    margin-bottom: 0.75rem;
}

article ol li::marker, article ul li::marker {
    color: #dca535;
    font-weight: bold;
}

/* Tables */
article table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

article th, article td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

article th {
    background-color: #f1f3f5;
    font-weight: 700;
    color: #333;
}

article tr:nth-child(even) {
    background-color: #f9f9f9;
}

figure, table, th {
    word-break: break-word !important;
}

/* =========================================
   4. NAVIGATION
   ========================================= */
.site-header {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top-bar {
    background-color: #111827;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.header-top-bar .container {
    flex-wrap: wrap;
    gap: 10px;
}

.header-top-bar a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.header-top-bar a:hover {
    opacity: 1;
}

.logo-area, .top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-main {
    background-color: #fff;
    padding: 15px 0;
}

.logo-main img.logo {
    height: 45px;
    width: auto;
    display: block;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 1px solid #e0e0e0;
    padding-left: 20px;
}

.logo-text strong {
    font-size: 20px;
    color: #333;
    display: block;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text small {
    font-size: 13px;
    color: #666;
    display: block;
}

/* Navbar */
.navbar {
    background: #f7f8fa;
    border-top: 1px solid #e7e7e7;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #444;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    display: block;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #007961;
    background-color: rgba(0, 121, 97, 0.05);
}

.nav-menu a.active {
    border-bottom-color: #007961;
    font-weight: 700;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
}

/* Nav Media Queries */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 0 20px;
        box-shadow: -2px 0 15px rgba(0, 0, 0, .2);
        z-index: 1000;
        overflow-y: auto;
        transition: right .35s ease-in-out;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
         border-bottom: 1px solid #f0f0f0;
    }

    .hamburger {
        display: flex;
        z-index: 1100;
    }
    
    .navbar .container {
        justify-content: flex-end;
    }
}

@media (min-width: 769px) {
    .logo, .nav-menu { width: 100%; }
    article .in-article-img { height: 85vh; }
    .nav-menu { justify-content: center; }
}

@media (max-width: 768px) {
    .logo-area { flex-direction: row; gap: 15px; }
    .logo-text { border-left: none; padding-left: 0; }
    .logo-text small { font-size: 11px; }
    .char-counter, .mobile-hide { display: none !important; }
    .header-top-bar .container { justify-content: center; text-align: center; }
    .header-main .container { display: flex; justify-content: space-between; }
}

/* =========================================
   5. COMPONENT: STATUS CARD & FORMS
   ========================================= */
.status-card {
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    width: 100%;
    overflow: hidden;
    margin: 2rem auto;
    max-width: 600px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.status-card .header {
    background-color: #fff;
    color: #222222;
    text-align: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.status-card .header h1 {
    margin: 0;
    font-size: 1.25rem !important;
    font-weight: 600;
    color: #111;
}

.status-card .header p {
    margin: 0.5rem 0 0;
    font-size: 0.85rem !important;
    color: #5f6368;
}

.status-card form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.status-card label {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
    display: block;
}




.char-counter {
    font-size: 0.75rem;
    color: #5f6368;
    text-align: right;
}

.status-card button {
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    background: #dca535;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.status-card button:hover {
    background-color: #c9932b;
}

/* Loading Spinner */
form button[type=submit] {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    display: none;
}

form button[type=submit].loading .spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================
   6. COMPONENT: RESULTS & FEEDBACK
   ========================================= */
#results.results-hidden {
    display: none;
}

#results, #resultsBank, #resultsVerify {
    padding: 0 1rem;
    margin-top: 1rem;
}

.message {
    padding: 12px 16px;
    margin-bottom: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.message.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.message.info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Results Accordion Sections */
.section {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.section-header {
    padding: 12px 16px;
    font-weight: 600;
    background-color: #f8f9fa;
    color: #444;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header:hover {
    background-color: #e9ecef;
}

.section-body {
    padding: 16px;
    display: none;
    border-top: 1px solid #e0e0e0;
}

.section.open .section-body {
    display: block;
}

.section.open .section-header::after {
    content: '−';
}
.section-header::after {
    content: '+';
    font-weight: bold;
}

.field {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.9rem;
}

.field label {
    font-weight: 600;
    color: #555;
}

/* =========================================
   7. COMPONENT: FAQ & HIGHLIGHTS
   ========================================= */
.faq-section details {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.faq-section summary {
    font-weight: 600;
    padding: 16px;
    cursor: pointer;
    list-style: none; /* Hides default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-section summary::-webkit-details-marker { display: none; }

.faq-section summary:after {
    content: '+';
    font-size: 1.25em;
    color: #007961;
}

.faq-section details[open] summary:after {
    content: '−';
}

.faq-section details[open] summary {
    background-color: #f8fcfb;
    border-bottom: 1px solid #eee;
}

.faq-section .faq-answer {
    padding: 16px;
    color: #444;
}

section.highlight-section {
    background-color: #f0f9ff;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    border: 1px solid #bae6fd;
}

section.highlight-section h2 {
    color: #0369a1;
    margin-top: 0;
    font-size: 1.5rem;
}

/* =========================================
   8. FOOTER & MISC
   ========================================= */
.check-link-card {
    padding: 1.5rem;
    background: #2d3748;
    color: #dca535;
    display: block;
    margin: 20px auto;
    border-radius: 6px;
    text-align: center;
    width: 90%;
    max-width: 600px;
}

@media (min-width: 769px) {
    .check-link-card { width: 45%; }
}

.site-footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 60px 20px 30px;
    font-size: 0.95rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    color: #dca535;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li a {
    color: #d1d5db;
    text-decoration: none;
    display: block;
    padding: 6px 0;
    transition: all 0.2s;
}

.footer-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
}

.social-icons a {
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.2s;
}

.social-icons a:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Help Footer (Hidden by default in original, kept hidden) */
.help-footer {
    display: none;
}

/* Ads */
.top-display-ad { margin-top: 15px !important; }
.ad-container-horizontal {
    width: 100%;
    max-width: 728px;
    max-height: 120px !important;
    margin: 20px auto;
    background: #f1f1f1; /* Placeholder bg */
}