/* article-scoped.css - Scoped styles for the 50 new TapQR informational guide pages */

.tapqr-article-page {
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #18181b;
    background-color: #ffffff;
    line-height: 1.6;
}

/* Article Hero & Meta */
.article-hero {
    padding: 120px 0 40px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
}

.article-shell {
    width: min(100%, 1140px);
    margin: 0 auto;
    padding: 0 20px;
}

.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 16px;
}

.article-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s;
}

.article-breadcrumb a:hover,
.article-breadcrumb a:focus-visible {
    color: #1d4ed8;
    text-decoration: underline;
}

.article-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.article-h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 16px;
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Quick Answer Highlight Box */
.article-quick-answer {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-left: 5px solid #16a34a;
    border-radius: 16px;
    padding: 24px 28px;
    margin: 24px 0 32px;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.06);
}

.article-quick-answer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.article-quick-answer h2 {
    font-size: 20px;
    font-weight: 800;
    color: #14532d;
    margin: 0 0 10px;
    line-height: 1.3;
}

.article-quick-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: #166534;
    font-weight: 500;
    margin: 0;
}

/* Hero Visual */
.article-hero-figure {
    margin: 28px 0 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #0f172a;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.article-hero-figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 540px;
}

.article-hero-figure figcaption {
    padding: 12px 20px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    text-align: center;
}

/* Jump Navigation / Table of Contents */
.article-toc-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    margin: 32px 0 48px;
}

.article-toc-header {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.article-toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc-list a {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 4px 0;
    transition: color 0.15s;
}

.article-toc-list a:hover,
.article-toc-list a:focus-visible {
    color: #1d4ed8;
}

/* Article Body Content */
.article-body {
    padding: 40px 0 80px;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
}

.article-section {
    margin-bottom: 56px;
    scroll-margin-top: 100px;
}

.article-section h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.article-section h3 {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.35;
    margin: 28px 0 12px;
}

.article-prose {
    font-size: 16.5px;
    line-height: 1.75;
    color: #334155;
    margin: 0 0 18px;
}

.article-prose strong {
    color: #0f172a;
    font-weight: 700;
}

.article-prose a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.15s;
}

.article-prose a:hover,
.article-prose a:focus-visible {
    color: #1d4ed8;
}

/* In-body figures */
.article-figure {
    margin: 32px 0;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.article-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.article-figure figcaption {
    padding: 12px 18px;
    background: #ffffff;
    font-size: 13.5px;
    color: #64748b;
    font-weight: 500;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

/* Checklists & Steps */
.article-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    gap: 12px;
}

.article-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15.5px;
    color: #334155;
    line-height: 1.6;
}

.article-checklist li strong {
    color: #0f172a;
}

.article-check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22c55e;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    margin-top: 2px;
}

.article-warning-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    margin-top: 2px;
}

/* Ordered Walkthrough Steps */
.article-steps {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    counter-reset: step-counter;
}

.article-steps > li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 56px;
    margin-bottom: 24px;
}

.article-steps > li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.article-steps h4 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    padding-top: 6px;
}

.article-steps p {
    font-size: 15.5px;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

/* Decision Tables & Responsive Tables */
.article-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14.5px;
    min-width: 600px;
}

.article-table th,
.article-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    line-height: 1.55;
    vertical-align: top;
}

.article-table thead th {
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-table tbody tr:last-child td {
    border-bottom: none;
}

.article-table tbody tr:hover td {
    background: #f8fafc;
}

/* Message Template Box */
.article-template-card {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 16px;
    padding: 22px 26px;
    margin: 20px 0;
}

.article-template-card h4 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
}

.article-template-text {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    padding: 16px 20px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.7;
    color: #1e293b;
    margin: 0 0 10px;
    white-space: pre-line;
}

.article-template-note {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    font-style: italic;
}

/* Callouts */
.article-callout {
    padding: 18px 22px;
    border-radius: 14px;
    margin: 24px 0;
    font-size: 15px;
    line-height: 1.65;
}

.article-callout-info {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    color: #1e40af;
}

.article-callout-warning {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #991b1b;
}

.article-callout strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15.5px;
}

/* TapQR Product Fit Section */
.article-tapqr-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 36px 36px;
    margin: 48px 0;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
}

.article-tapqr-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #38bdf8;
    margin-bottom: 8px;
}

.article-tapqr-box h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 14px;
    color: #ffffff;
}

.article-tapqr-box p {
    font-size: 16px;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 0 0 20px;
}

.article-tapqr-points {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 10px;
}

.article-tapqr-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #f1f5f9;
}

.article-tapqr-points li::before {
    content: "✓";
    color: #38bdf8;
    font-weight: 900;
    font-size: 16px;
}

/* Primary Product CTA Button */
.article-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 28px;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s, background 0.15s;
    cursor: pointer;
}

.article-cta-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.article-cta-btn:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 4px;
}

/* FAQs */
.article-faq-list {
    margin: 24px 0;
    display: grid;
    gap: 14px;
}

.article-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.15s;
}

.article-faq-item:hover {
    border-color: #cbd5e1;
}

.article-faq-item summary {
    padding: 18px 22px;
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.article-faq-item summary::-webkit-details-marker {
    display: none;
}

.article-faq-item summary::after {
    content: "+";
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
}

.article-faq-item[open] summary::after {
    content: "−";
}

.article-faq-item p {
    padding: 0 22px 20px;
    margin: 0;
    font-size: 15.5px;
    line-height: 1.7;
    color: #475569;
}

/* Related Guides */
.article-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.article-related-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.article-related-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.article-related-card h4 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.35;
}

.article-related-card p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 14px;
    line-height: 1.55;
    flex-grow: 1;
}

.article-related-card span {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Official Sources */
.article-sources-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    margin: 32px 0;
}

.article-sources-box h4 {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 10px;
}

.article-sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.article-sources-list li a {
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-all;
}

/* Page 43 Comprehensive Directory Grid */
.directory-cluster {
    margin-bottom: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
}

.directory-cluster h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.directory-cluster-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 18px;
}

.directory-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px 18px;
}

.directory-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e40af;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.15s;
}

.directory-links li a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .article-hero {
        padding: 100px 0 32px;
    }
    .article-h1 {
        font-size: 28px;
    }
    .article-quick-answer {
        padding: 18px 20px;
    }
    .article-tapqr-box {
        padding: 24px 20px;
    }
    .article-steps > li {
        padding-left: 48px;
    }
    .article-steps > li::before {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .article-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .article-h1 {
        font-size: 25px;
    }
    .article-cta-btn {
        width: 100%;
        justify-content: center;
    }
}
