/* ==========================================================
   HOWTOTYPEIT - MASTER FRONTEND STYLESHEET
   Website: HowToTypeIT (http://howtotypeit.org)
   Version: 16.5.0
   Features:
   - 100% Zero-Scroll Responsive Mobile Card Tables
   - One-Click Single Symbol Hero Copy Box
   - Multi-Symbol Interactive Grid Keyboard Pad
   - 3D Realistic Physical Key Badges (<kbd>)
   - Authority Collapsible TOC
   - Modern FAQ Accordion Cards
   ========================================================== */

:root {
    --geo-primary: #0284c7;
    --geo-primary-dark: #0369a1;
    --geo-primary-soft: rgba(2, 132, 199, 0.08);
    --geo-slate-dark: #0f172a;
    --geo-slate-body: #334155;
    --geo-slate-muted: #64748b;
    --geo-border-subtle: #e2e8f0;
    --geo-card-bg: #ffffff;
    --geo-success: #16a34a;
}

/* Smooth Scrolling & Sticky Header Offset */
html {
    scroll-behavior: smooth;
}

:target::before {
    content: "";
    display: block;
    height: 85px;
    margin: -85px 0 0;
}

/* --- EDITORIAL ARTICLE LINKS --- */
.geo-article-content a {
    color: var(--geo-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1.5px solid rgba(2, 132, 199, 0.3);
    padding-bottom: 1px;
    transition: all 0.2s ease;
}

.geo-article-content a:hover,
.geo-article-content a:focus {
    color: var(--geo-primary-dark);
    border-bottom-color: var(--geo-primary);
    background: var(--geo-primary-soft);
    border-radius: 2px;
}

/* ==========================================================
   1. ONE-CLICK SINGLE SYMBOL HERO COPY BOX
   ========================================================== */
.symbol-hero-copy-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    margin: 20px 0 28px 0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.symbol-glyph-preview {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--geo-slate-dark);
    margin-bottom: 16px;
    user-select: all;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.symbol-copy-trigger {
    background: var(--geo-primary);
    color: #ffffff !important;
    border: none;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.symbol-copy-trigger:hover {
    background: var(--geo-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.symbol-copy-trigger.copied {
    background: var(--geo-success) !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35) !important;
    transform: scale(1.02);
}

.symbol-copy-badge {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--geo-slate-muted);
    font-weight: 500;
}

/* ==========================================================
   2. MULTI-SYMBOL INTERACTIVE GRID KEYBOARD PAD
   ========================================================== */
.symbol-grid-container {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    margin: 24px 0 30px 0;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
}

.symbol-grid-header {
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--geo-slate-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.symbol-grid-pad {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 10px;
}

.symbol-grid-btn {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    outline: none;
}

.symbol-grid-btn:hover {
    background: #f0f9ff;
    border-color: var(--geo-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.15);
}

.symbol-grid-btn.copied {
    background: #dcfce7 !important;
    border-color: var(--geo-success) !important;
}

.grid-glyph {
    font-size: 1.8rem;
    font-weight: 750;
    color: var(--geo-slate-dark);
    line-height: 1;
}

.grid-copy-hint {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--geo-slate-muted);
    letter-spacing: 0.3px;
}

/* ==========================================================
   3. 3D REALISTIC PHYSICAL KEYBOARD BADGES (<kbd>)
   ========================================================== */
kbd {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-bottom: 2.5px solid #94a3b8;
    border-radius: 6px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04), inset 0 1px 0 #ffffff;
    color: var(--geo-slate-dark);
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
    font-size: 0.86em;
    font-weight: 750;
    line-height: 1.25;
    padding: 3px 8px;
    margin: 0 2px;
    white-space: nowrap;
    vertical-align: middle;
}

/* ==========================================================
   4. MOZ-STYLE VERTICAL TOC (<nav class="settings-toc-wrapper">)
   ========================================================== */
nav.settings-toc-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 3.5px solid var(--geo-primary);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 26px 0 32px 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    clear: both;
}

.settings-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.settings-toc-title {
    font-weight: 750;
    font-size: 1.08em;
    color: var(--geo-slate-dark);
}

.settings-toc-arrow {
    font-size: 1.1em;
    color: var(--geo-primary);
    transition: transform 0.25s ease;
    font-weight: bold;
}

nav.settings-toc-wrapper.collapsed .settings-toc-arrow {
    transform: rotate(180deg);
}

nav.settings-toc-wrapper.collapsed .settings-toc-list {
    display: none;
}

.settings-toc-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-toc-list li {
    margin: 0;
    padding: 0;
    line-height: 1.45;
}

.settings-toc-link {
    display: inline-block;
    color: #475569 !important;
    font-size: 0.94em;
    font-weight: 550;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: all 0.2s ease;
}

.settings-toc-link:hover {
    color: var(--geo-primary) !important;
    padding-left: 4px;
    background: transparent !important;
}

/* ==========================================================
   5. TROUBLESHOOTING CHECKLIST BOX
   ========================================================== */
.key-checklist-box {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-left: 4px solid var(--geo-success);
    padding: 18px 22px;
    border-radius: 0 10px 10px 0;
    margin: 24px 0;
    color: #14532d;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.04);
}

.key-checklist-box strong {
    color: #15803d;
    font-size: 1.05em;
    display: block;
    margin-bottom: 8px;
}

.key-checklist-box ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.key-checklist-box ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.key-checklist-box ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--geo-success);
    font-weight: 800;
}

/* ==========================================================
   6. HEADINGS & TYPOGRAPHY
   ========================================================== */
.geo-article-content h2.wp-block-heading,
.geo-article-content h2 { 
    color: var(--geo-slate-dark);
    font-size: 1.6em;
    font-weight: 780;
    line-height: 1.35;
    margin-top: 42px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--geo-border-subtle);
    position: relative;
}

.geo-article-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 44px;
    height: 3px;
    background: var(--geo-primary);
    border-radius: 3px;
}

.geo-article-content h3.wp-block-heading,
.geo-article-content h3:not(.geo-faq-title) { 
    color: #1e293b;
    font-size: 1.25em;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
}

/* ==========================================================
   7. 100% ZERO-SCROLL RESPONSIVE CARD TABLE
   ========================================================== */
/* Desktop View */
.geo-responsive-card-table-wrapper,
figure.wp-block-table { 
    margin: 28px 0; 
    border-radius: 12px; 
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.geo-card-table,
figure.wp-block-table table { 
    width: 100%; 
    border-collapse: collapse; 
    text-align: left; 
    font-size: 0.95em; 
}

.geo-card-table th,
figure.wp-block-table th { 
    background: #f8fafc; 
    color: var(--geo-slate-dark); 
    padding: 13px 18px; 
    font-weight: 700; 
    font-size: 0.88em; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    border-bottom: 2px solid #cbd5e1; 
}

.geo-card-table td,
figure.wp-block-table td { 
    border-bottom: 1px solid #e2e8f0; 
    padding: 13px 18px; 
    color: var(--geo-slate-body); 
    line-height: 1.55; 
}

.geo-card-table tr:nth-child(even),
figure.wp-block-table tr:nth-child(even) { 
    background: #fafafa; 
}

.geo-card-table tr:hover,
figure.wp-block-table tr:hover { 
    background: #f0f9ff; 
}

/* --- MOBILE SPECIFIC: ZERO HORIZONTAL SCROLL CARD MODE --- */
@media screen and (max-width: 768px) {
    .geo-article-content figure.wp-block-table,
    .geo-responsive-card-table-wrapper,
    figure.wp-block-table {
        overflow-x: visible !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .geo-article-content table,
    .geo-card-table,
    figure.wp-block-table table {
        display: block !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .geo-article-content thead,
    .geo-card-table thead,
    figure.wp-block-table thead {
        display: none !important;
    }

    .geo-article-content tbody,
    .geo-card-table tbody,
    figure.wp-block-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .geo-article-content tr,
    .geo-card-table tr,
    figure.wp-block-table tr {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-left: 4px solid var(--geo-primary) !important;
        border-radius: 10px !important;
        padding: 12px 16px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    }

    .geo-article-content td,
    .geo-card-table td,
    figure.wp-block-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: right !important;
        padding: 9px 0 !important;
        border: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 0.92em !important;
        word-break: break-word !important;
    }

    .geo-article-content tr td:last-child,
    .geo-card-table tr td:last-child,
    figure.wp-block-table tr td:last-child {
        border-bottom: none !important;
    }

    .geo-article-content td::before,
    .geo-card-table td::before,
    figure.wp-block-table td::before {
        content: attr(data-label) !important;
        font-weight: 700 !important;
        color: var(--geo-slate-muted) !important;
        text-align: left !important;
        padding-right: 12px !important;
        font-size: 0.85em !important;
        text-transform: uppercase !important;
        letter-spacing: 0.4px !important;
        flex-shrink: 0 !important;
        max-width: 48% !important;
    }
}

/* ==========================================================
   8. MODERN FAQ ACCORDIONS
   ========================================================= */
.geo-faq-modern-container {
    margin: 40px 0;
    padding: 28px 24px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.geo-faq-modern-container h2 {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-size: 1.45em !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.geo-faq-modern-container h2::after {
    display: none !important;
}

.geo-faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.geo-faq-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.geo-faq-card[open] {
    border-color: var(--geo-primary);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}

.geo-faq-question {
    cursor: pointer;
    list-style: none;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    user-select: none;
    width: 100%;
}

.geo-faq-question::-webkit-details-marker {
    display: none;
}

.geo-faq-question span.geo-faq-icon {
    font-size: 1.1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #f0f9ff;
    border-radius: 50%;
    flex-shrink: 0;
}

.geo-faq-question h3,
.geo-faq-question .geo-faq-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.02em !important;
    font-weight: 700 !important;
    color: var(--geo-slate-dark) !important;
    border: none !important;
    flex: 1 1 auto !important;
}

.geo-faq-question::after {
    content: "▾";
    font-size: 1.25em;
    color: #94a3b8;
    margin-left: auto;
    transition: transform 0.25s ease;
}

.geo-faq-card[open] .geo-faq-question::after {
    transform: rotate(180deg);
    color: var(--geo-primary);
}

.geo-faq-answer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
    color: #475569;
    line-height: 1.65;
    font-size: 0.96em;
}