/*
Theme Name: SaaS Theme Child
Description: Child theme for SaaS Theme
Template: saas-theme
Version: 2.1
*/

/* Custom styles for child theme */

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Global Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Reset body and main wrapper padding for homepage */
body.page-template-page-home,
body.page-template-page-home-php {
    padding: 0 !important;
    margin: 0 !important;
}

/* Add top padding to regular pages/posts to account for fixed navbar */
body:not(.page-template-page-home):not(.page-template-page-home-php):not(.author):not(.category) {
    padding-top: 4.375rem !important;
}

/* Category pages - no body padding, header handles navbar offset */
body.category {
    padding-top: 0 !important;
}

body.page-template-page-home #main,
body.page-template-page-home .site-main,
body.page-template-page-home main,
body.page-template-page-home-php #main,
body.page-template-page-home-php .site-main,
body.page-template-page-home-php main {
    padding: 0 !important;
    margin: 0 !important;
}

body.page-template-page-home .site-content,
body.page-template-page-home-php .site-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove content-area padding ONLY on homepage */
body.page-template-page-home .content-area,
body.page-template-page-home-php .content-area {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

/* Ensure no wrapper adds padding */
body.page-template-page-home > *,
body.page-template-page-home-php > * {
    margin: 0 !important;
}

/* ========================================
   NAVIGATION (Landing Page Style)
   ======================================== */

.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid #cbd5e1 !important;
    z-index: 1000 !important;
    transition: all 0.3s ease !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08) !important;
}

.nav-container {
    max-width: 75rem !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 4.375rem !important;
}

.nav-brand {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    color: #111827 !important;
    text-decoration: none !important;
}

.brand-icon {
    font-size: 1.5rem !important;
}

.brand-text {
    color: #111827 !important;
}

.footer .brand-text {
    color: white !important;
}

/* Footer Styling */
.footer {
    background: #0f172a !important;
    color: #cbd5e1 !important;
    padding: 3rem 0 1.5rem !important;
}

.footer .container {
    max-width: 75rem !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

.footer-content {
    display: grid !important;
    grid-template-columns: 1fr 3fr !important;
    gap: 3rem !important;
    margin-bottom: 2rem !important;
}

.footer-brand {
    padding: 0 !important;
}

.footer-brand .brand {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    color: white !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
}

.footer-brand .brand-icon {
    line-height: 1 !important;
}

.footer-tagline {
    color: #9ca3af !important;
    font-size: 0.875rem !important;
}

.footer-links {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
}

.link-group h4 {
    color: white !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
}

/* Align footer brand with link-group headers */
.footer-brand .brand {
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.link-group a {
    display: block !important;
    color: #9ca3af !important;
    text-decoration: none !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.875rem !important;
    transition: color 0.2s ease !important;
}

.link-group a:hover {
    color: white !important;
}

.footer-bottom {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 2rem !important;
    border-top: 1px solid #1f2937 !important;
    font-size: 0.875rem !important;
}

.footer-legal {
    display: flex !important;
    gap: 1.5rem !important;
}

.footer-legal a {
    color: #9ca3af !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.footer-legal a:hover {
    color: white !important;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr !important;
    }
}

/* Hero section styles removed - now using parent theme styles */

/* Ensure all sections have correct spacing */
body.page-template-page-home section,
body.page-template-page-home-php section {
    margin: 0 !important;
}


.trusted-by {
    padding: 32px 0 !important;
    margin: 0 !important;
}

/* Hero container styles removed - now using parent theme styles */

/* Hero content and visual styles removed - using parent theme */

/* Center hero elements on mobile */
@media (max-width: 1024px) {
    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }
}

/* Center feature icons in features section only */
#features .feature-icon {
    text-align: center;
}

/* Keep mockup content proportional on mobile */
@media (max-width: 1024px) {
    .mockup-content {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mockup-content {
        height: 200px;
    }

    .preview-sidebar {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .mockup-content {
        height: 180px;
        padding: 1rem;
    }

    .preview-sidebar {
        width: 50px;
    }

    .preview-card {
        height: 45px;
    }
}

.hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    padding: 0.5rem 1rem !important;
    border-radius: 9999px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    margin-bottom: 1.5rem !important;
    border: 1px solid #2563eb !important;
}

.hero-title {
    font-size: clamp(1.5rem, 5vw + 0.5rem, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #111827;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw + 0.3rem, 1.25rem);
    color: #334155;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.hero-stats {
    display: flex !important;
    gap: 2rem !important;
}

.stat {
    text-align: center !important;
}

.stat-number {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    display: block !important;
}

.stat-label {
    font-size: 0.875rem !important;
    color: #475569 !important;
    margin-top: 0.25rem !important;
}

/* Platform Mockup */
.platform-mockup {
    background: white !important;
    border-radius: 1rem !important;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !important;
    overflow: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.mockup-header {
    background: #f3f4f6 !important;
    padding: 1rem !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.mockup-controls {
    display: flex !important;
    gap: 0.5rem !important;
}

.mockup-controls span {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #d1d5db !important;
}

.mockup-controls span:nth-child(1) {
    background: #ff5f56 !important;
}

.mockup-controls span:nth-child(2) {
    background: #ffbd2e !important;
}

.mockup-controls span:nth-child(3) {
    background: #27ca3f !important;
}

.mockup-content {
    padding: 1.5rem !important;
    height: 300px !important;
    overflow: hidden !important;
}

.dashboard-preview {
    display: flex !important;
    gap: 1rem !important;
    height: 100% !important;
    overflow: hidden !important;
}

.preview-sidebar {
    width: 80px !important;
    min-width: 60px !important;
    max-width: 80px !important;
    background: #f3f4f6 !important;
    border-radius: 0.5rem !important;
    flex-shrink: 0 !important;
}

.preview-main {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.preview-card {
    background: #f9fafb !important;
    border-radius: 0.5rem !important;
    height: 60px !important;
}

.preview-chart {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-radius: 0.5rem !important;
    flex: 1 !important;
}

/* Responsive styles removed - now using parent theme styles */

/* 768px media queries removed - using parent theme */

/* 480px media queries removed - using parent theme */

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #4b5563 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.nav-link:hover {
    color: #2563eb !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transform: none !important;
}

.nav-link-cta {
    background: #2563eb !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: background-color 0.2s ease !important;
}

.nav-link-cta:hover {
    background: #1d4ed8 !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 1.5rem;
    height: 0.125rem;
    background: #4b5563;
    border-radius: 0.125rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }

    .nav-links {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        flex-direction: column !important;
        padding: 1rem !important;
        border-top: 1px solid #e5e7eb !important;
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
    }

    .nav-links.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .mockup-content {
        height: 200px !important;
        padding: 1rem !important;
    }

    .preview-sidebar {
        width: 50px !important;
    }

    .dashboard-preview {
        gap: 0.75rem !important;
    }

    .preview-main {
        gap: 0.75rem !important;
    }

    .preview-card {
        height: 40px !important;
    }
}

/* ========================================
   TESTIMONIAL CARDS (Landing Page Style)
   ======================================== */

/* Testimonials — base styles for non-homepage contexts (blog, etc.)
   Homepage overrides are in homepage.css which loads after this */
.testimonials {
    padding: 56px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.testimonial-rating {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-style: italic;
    border: none;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.testimonial-card .author-avatar {
    width: 2.75rem;
    height: 2.75rem;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.author-info {
    display: block;
}

.author-name {
    font-weight: 600;
    font-size: 0.938rem;
    line-height: 1.5;
}

.author-title {
    font-size: 0.813rem;
    margin-top: 0;
    line-height: 1.5;
}

/* ========================================
   RESPONSIVE TABLES
   ======================================== */

/* Basic table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    background-color: #fff;
    box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    font-size: 0.9375rem;
}

table thead {
    background-color: #111827 !important;
    color: #fff !important;
}

table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 700;
    color: #fff !important;
    border-bottom: 0.125rem solid #000;
    white-space: nowrap;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
    line-height: 1.5;
}

table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

table tbody tr:hover {
    background-color: #eef2ff;
}

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

/* Bordered table variant */
table.table-bordered {
    border: 1px solid #e2e8f0;
}

table.table-bordered th,
table.table-bordered td {
    border: 1px solid #e2e8f0;
}

/* Compact table variant */
table.table-compact th,
table.table-compact td {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Auto-responsive table wrapper - wraps all tables in content */
.entry-content table,
.post-content table,
article table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Responsive table wrapper class */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5em 0;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.table-responsive table {
    margin: 0;
    min-width: 37.5rem;
    border-radius: 0;
    box-shadow: none;
}

/* Mobile table improvements */
@media screen and (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }

    table th,
    table td {
        padding: 0.625rem 0.75rem;
    }

    table th {
        white-space: normal;
        font-size: 0.8125rem;
    }
}

/* Mobile: Stack table rows */
@media screen and (max-width: 640px) {
    table.table-mobile-stack {
        border: 0;
        box-shadow: none;
    }

    table.table-mobile-stack thead {
        display: none;
    }

    table.table-mobile-stack tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.5rem;
        overflow: hidden;
        box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1);
    }

    table.table-mobile-stack td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        text-align: right;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e2e8f0;
        font-size: 0.875rem;
    }

    table.table-mobile-stack td:last-child {
        border-bottom: none;
    }

    table.table-mobile-stack td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #667eea;
        text-align: left;
        padding-right: 1rem;
        flex-shrink: 0;
    }
}

/* ========================================
   LIST STYLES
   ======================================== */

/* Fix list indentation - remove negative margin */
article ul,
article ol,
.content ul,
.content ol,
.post-content ul,
.post-content ol {
    margin-left: 0;
    padding-left: 2rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

ul ul,
ol ul {
    list-style-type: circle;
    margin-top: 0.5rem;
}

ul ul ul,
ol ul ul {
    list-style-type: square;
}

ol ol,
ul ol {
    list-style-type: lower-alpha;
    margin-top: 0.5rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Styled list variants */
ul.list-check li {
    list-style: none;
    position: relative;
    padding-left: 1.5em;
}

ul.list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

ul.list-arrow li {
    list-style: none;
    position: relative;
    padding-left: 1.5em;
}

ul.list-arrow li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* ========================================
   PULL QUOTES
   ======================================== */

/* Basic pull quote */
.pullquote {
    font-size: 1.25em;
    line-height: 1.5;
    font-style: italic;
    color: #667eea;
    margin: 2em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #667eea;
    background-color: #f7fafc;
    position: relative;
}

.pullquote::before {
    content: """;
    font-size: 3em;
    position: absolute;
    top: 0;
    left: 10px;
    color: #667eea;
    opacity: 0.3;
    line-height: 1;
}

/* Pull quote left */
.pullquote-left {
    font-size: 1.25em;
    line-height: 1.5;
    font-style: italic;
    color: #667eea;
    width: 40%;
    float: left;
    margin: 0.5em 1.5em 1em 0;
    padding: 1em;
    border-left: 4px solid #667eea;
    background-color: #f7fafc;
}

/* Pull quote right */
.pullquote-right {
    font-size: 1.25em;
    line-height: 1.5;
    font-style: italic;
    color: #667eea;
    width: 40%;
    float: right;
    margin: 0.5em 0 1em 1.5em;
    padding: 1em;
    border-right: 4px solid #667eea;
    background-color: #f7fafc;
}

/* Pull quote attribution */
.pullquote cite,
.pullquote-left cite,
.pullquote-right cite {
    display: block;
    margin-top: 0.5em;
    font-size: 0.85em;
    font-style: normal;
    color: #4a5568;
}

.pullquote cite::before,
.pullquote-left cite::before,
.pullquote-right cite::before {
    content: "— ";
}

/* Mobile: Full width pull quotes */
@media screen and (max-width: 640px) {
    .pullquote-left,
    .pullquote-right {
        width: 100%;
        float: none;
        margin: 1.5em 0;
        border-left: 4px solid #667eea;
        border-right: none;
    }
}

/* Pull quotes using <q> element */
q.pull-quote {
    display: block;
    font-size: 1.25em;
    line-height: 1.5;
    font-style: italic;
    color: #667eea;
    width: 40%;
    float: right;
    margin: 0.5em 0 1em 1.5em;
    padding: 1em;
    border-right: 4px solid #667eea;
    background-color: #f7fafc;
    quotes: none;
}

q.pull-quote::before,
q.pull-quote::after {
    content: '';
}

q.pull-quote.left {
    float: left;
    margin: 0.5em 1.5em 1em 0;
    border-right: none;
    border-left: 4px solid #667eea;
}

/* Mobile: Full width <q> pull quotes */
@media screen and (max-width: 640px) {
    q.pull-quote,
    q.pull-quote.left {
        width: 100%;
        float: none;
        margin: 1.5em 0;
        border-left: 4px solid #667eea;
        border-right: none;
    }
}

/* ========================================
   HEADINGS
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #1a202c;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.75em; }
h4 { font-size: 1.5em; }
h5 { font-size: 1.25em; }
h6 { font-size: 1em; text-transform: uppercase; letter-spacing: 0.05em; }

article header h1,
section header h1 {
    margin-top: 0;
}

/* ========================================
   PARAGRAPHS & TEXT
   ======================================== */

p {
    margin-bottom: 1em;
    line-height: 1.6;
}

/* ========================================
   BLOCKQUOTES
   ======================================== */

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #667eea;
    background-color: #f7fafc;
    font-style: italic;
    color: #4a5568;
}

blockquote p {
    margin-bottom: 0.5em;
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: 1em;
    font-size: 0.9em;
    font-style: normal;
    color: #718096;
}

blockquote cite::before {
    content: "— ";
}

blockquote cite a {
    color: #667eea;
    text-decoration: none;
}

blockquote cite a:hover {
    text-decoration: underline;
}

/* ========================================
   DEFINITION LISTS
   ======================================== */

dl {
    margin: 1em 0;
}

dt {
    font-weight: 600;
    color: #2d3748;
    margin-top: 1em;
}

dt:first-child {
    margin-top: 0;
}

dd {
    margin-left: 2em;
    margin-bottom: 0.5em;
    color: #4a5568;
}

/* ========================================
   HORIZONTAL RULE
   ======================================== */

hr {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 2em 0;
}

/* ========================================
   CODE & PRE
   ======================================== */

code,
kbd,
samp {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
}

kbd {
    background-color: #2d3748;
    color: white;
    border-color: #1a202c;
    box-shadow: 0 2px 0 #1a202c;
}

pre {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 1em;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5em 0;
    line-height: 1.5;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: 0.875em;
}

/* ========================================
   INLINE ELEMENTS
   ======================================== */

a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

strong, b {
    font-weight: 600;
    color: inherit;
}

em, i {
    font-style: italic;
}

u {
    text-decoration: underline;
}

del {
    text-decoration: line-through;
    color: #e53e3e;
}

ins {
    text-decoration: none;
    background-color: #c6f6d5;
    color: #22543d;
    padding: 0 0.2em;
}

s {
    text-decoration: line-through;
    opacity: 0.7;
}

sup {
    vertical-align: super;
    font-size: 0.75em;
}

sub {
    vertical-align: sub;
    font-size: 0.75em;
}

small {
    font-size: 0.875em;
    color: #718096;
}

abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
}

q {
    font-style: italic;
}

q::before {
    content: """;
}

q::after {
    content: """;
}

cite {
    font-style: italic;
    color: #4a5568;
}

dfn {
    font-style: italic;
    font-weight: 600;
}

mark {
    background-color: #fef08a;
    color: #713f12;
    padding: 0.1em 0.3em;
    border-radius: 2px;
}

var {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-style: italic;
    color: #667eea;
}

time {
    color: #718096;
}

/* ========================================
   EMBEDDED CONTENT
   ======================================== */

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

figure {
    margin: 1.5em 0;
}

figcaption {
    font-size: 0.9em;
    color: #718096;
    font-style: italic;
    margin-top: 0.5em;
    text-align: center;
}

audio,
video {
    max-width: 100%;
}

iframe {
    border: 1px solid #e2e8f0;
    max-width: 100%;
}

svg {
    max-width: 100%;
    height: auto;
}

meter,
progress {
    width: 100%;
    max-width: 400px;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1.5em;
    margin: 1.5em 0;
}

legend {
    font-weight: 600;
    color: #2d3748;
    padding: 0 0.5em;
}

label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
    color: #2d3748;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    width: 100%;
    padding: 0.5em 0.75em;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Error and Valid states */
input.is-error,
textarea.is-error {
    border-color: #e53e3e;
}

input.is-error:focus,
textarea.is-error:focus {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

input.is-valid,
textarea.is-valid {
    border-color: #48bb78;
}

input.is-valid:focus,
textarea.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

label.error {
    color: #e53e3e;
}

label.valid {
    color: #48bb78;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75em center;
    background-size: 12px;
    padding-right: 2.5em;
    appearance: none;
}

/* Checkboxes and Radio buttons */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 0.5em;
    cursor: pointer;
}

/* Range input */
input[type="range"] {
    width: 100%;
}

/* Buttons */
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    display: inline-block;
    padding: 0.5em 1.5em;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
    background-color: #5a67d8;
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active {
    transform: translateY(1px);
}

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
input[type="reset"]:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.6;
}

input[type="reset"] {
    background-color: #718096;
}

input[type="reset"]:hover {
    background-color: #4a5568;
}

/* List without bullets */
ul.list--bare {
    list-style: none;
    padding-left: 0;
}

/* ========================================
   TABLE CAPTION
   ======================================== */

table caption {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 0.5em;
    color: #2d3748;
    text-align: left;
}

table tfoot {
    background-color: #edf2f7;
    font-weight: 500;
}

/* ========================================
   TABLE CAPTION
   ======================================== */

table caption {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 0.5em;
    color: #2d3748;
    text-align: left;
}

table tfoot {
    background-color: #edf2f7;
    font-weight: 500;
}

/* ========================================
   CATEGORY PAGE STYLES
   ======================================== */

/* Category Archive Layout */
.category-archive {
    padding-top: 0;
    margin-top: 0;
}


/* Category Header */
.category-header {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    padding: calc(4.375rem + 3rem) 0 3rem 0;
}

.category-header.has-featured-image {
    padding: 0;
    background: #fff;
}

.category-header-inner {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.has-featured-image .category-header-inner {
    max-width: 100%;
    padding: 0;
}

/* Hero Image */
.category-hero-image {
    width: 100%;
    max-height: 24rem;
    overflow: hidden;
    background: #1a202c;
}

.category-hero-image img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    display: block;
    opacity: 0.9;
}

.has-featured-image .category-header-content {
    max-width: 60rem;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
}

/* Category Title */
.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Category Intro/Description */
.category-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
}

.category-intro p {
    margin-bottom: 1.25rem;
}

.category-intro p:last-child {
    margin-bottom: 0;
}

.category-intro p:first-child {
    font-size: 1.25rem;
    color: #2d3748;
    font-weight: 500;
    line-height: 1.6;
}

.category-intro a {
    color: #667eea;
    text-decoration: underline;
    text-decoration-color: rgba(102, 126, 234, 0.3);
    text-underline-offset: 0.15em;
    transition: text-decoration-color 0.2s ease;
}

.category-intro a:hover {
    text-decoration-color: #667eea;
}

/* Posts Section */
.category-posts {
    background: #fff;
    padding: 3rem 0 4rem;
}

.category-posts-container {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.category-posts-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.posts-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Posts Grid */
.category-archive .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 2rem;
}

/* Post Card */
.post-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

.post-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}

.post-card-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card-title a:hover {
    color: #667eea;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.post-card-meta time {
    color: #94a3b8;
}

.post-card-meta .reading-time {
    position: relative;
    padding-left: 1rem;
}

.post-card-meta .reading-time::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.25rem;
    height: 0.25rem;
    background: #cbd5e0;
    border-radius: 50%;
}

.post-card-excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.post-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    transition: gap 0.2s ease;
    margin-top: auto;
}

.post-card-link:hover {
    gap: 0.625rem;
}

.post-card-link svg {
    transition: transform 0.2s ease;
}

.post-card-link:hover svg {
    transform: translateX(0.125rem);
}

/* Pagination */
.category-archive .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.category-archive .pagination a,
.category-archive .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #4a5568;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-archive .pagination a:hover {
    color: #667eea;
    border-color: #667eea;
    background: #f8faff;
}

.category-archive .pagination .current {
    color: #fff;
    background: #667eea;
    border-color: #667eea;
}

.category-archive .pagination .prev,
.category-archive .pagination .next {
    gap: 0.375rem;
    padding: 0 1rem;
}

.category-archive .pagination .dots {
    border: none;
    background: transparent;
    color: #a0aec0;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8fafc;
    border-radius: 0.75rem;
}

.no-posts h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.no-posts p {
    color: #718096;
    margin: 0;
}

/* Responsive Design */
@media screen and (min-width: 1200px) {
    .category-header-inner,
    .has-featured-image .category-header-content,
    .category-posts-container {
        max-width: 64rem;
    }

    .category-title {
        font-size: 3rem;
    }

    .category-intro {
        font-size: 1.1875rem;
    }

    .category-intro p:first-child {
        font-size: 1.375rem;
    }
}

@media screen and (max-width: 768px) {
    .category-header {
        padding: calc(4.375rem + 2rem) 0 2rem 0;
    }

    .category-hero-image,
    .category-hero-image img {
        height: 16rem;
        max-height: 16rem;
    }

    .has-featured-image .category-header-content {
        padding: 1.5rem 1.25rem 2rem;
    }

    .category-title {
        font-size: 1.875rem;
    }

    .category-intro {
        font-size: 1rem;
    }

    .category-intro p:first-child {
        font-size: 1.125rem;
    }

    .category-posts {
        padding: 2rem 0 3rem;
    }

    .category-archive .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-card-content {
        padding: 0.75rem;
    }

    .post-card-title {
        font-size: 1rem;
    }

    .category-archive .pagination {
        gap: 0.375rem;
    }

    .category-archive .pagination a,
    .category-archive .pagination span {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.875rem;
    }

    .category-archive .pagination .prev span,
    .category-archive .pagination .next span {
        display: none;
    }

    .category-archive .pagination .prev,
    .category-archive .pagination .next {
        padding: 0 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .category-hero-image,
    .category-hero-image img {
        height: 12rem;
        max-height: 12rem;
    }

    .category-title {
        font-size: 1.625rem;
    }

    .post-card-image {
        aspect-ratio: 16 / 9;
    }
}

/* ========================================
   POST/PAGE FEATURED IMAGES (Mobile-first)
   ======================================== */

/* Base: Mobile styles */
.post-featured-image {
    margin: 0 -1.25rem 1.5rem -1.25rem;
    padding: 0;
    overflow: hidden;
    background: #f1f5f9;
}

.post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Tablet and up */
@media screen and (min-width: 768px) {
    .post-featured-image {
        margin: 0 0 2rem 0;
        border-radius: 0.5rem;
    }

    .post-featured-image img {
        border-radius: 0.5rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Clear floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ========================================
   CONTENT AREA - RESPONSIVE WIDTH
   ======================================== */

/* Base content area for posts and pages */
.content-area {
    padding: 0 1.25rem 1rem 1.25rem;
}

/* Remove gap between navbar and content on single posts/pages */
body.single #content,
body.page #content,
body.single .site-content,
body.page .site-content {
    margin-top: 0;
    padding-top: 0;
}

body.single .content-area,
body.page .content-area,
body.single article.post,
body.page article.page {
    padding-top: 1.25rem;
}

.content-area,
.entry-content,
.post-content,
article.post,
article.page,
.single .site-main,
.page .site-main {
    max-width: 50rem; /* 800px base */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Wider content on large screens */
@media screen and (min-width: 1200px) {
    .content-area,
    .entry-content,
    .post-content,
    article.post,
    article.page,
    .single .site-main,
    .page .site-main {
        max-width: 56rem; /* 896px - wider on large screens */
    }
}

/* Even wider on extra large screens */
@media screen and (min-width: 1440px) {
    .content-area,
    .entry-content,
    .post-content,
    article.post,
    article.page,
    .single .site-main,
    .page .site-main {
        max-width: 60rem; /* 960px - maximum readable width */
    }
}

/* Ensure nested content doesn't double-constrain */
.content-area .entry-content,
.content-area .post-content,
article.post .entry-content,
article.page .entry-content {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* Full width elements within content */
.content-area .alignfull,
.entry-content .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.content-area .alignwide,
.entry-content .alignwide {
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (min-width: 1200px) {
    .content-area .alignwide,
    .entry-content .alignwide {
        margin-left: calc(-5rem);
        margin-right: calc(-5rem);
        max-width: calc(100% + 10rem);
    }
}

/* Entry title for posts/pages */
.single .entry-title,
.page .entry-title {
    font-size: 2rem;
}

/* ========================================
   POST NAVIGATION
   ======================================== */

.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* Make the heading visible */
.post-navigation h2 {
    clip: unset !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    position: static !important;
    white-space: normal !important;
    font-size: 1rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.post-navigation .nav-links a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 132px;
    padding: 1.5rem;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #1a202c;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    font-weight: 400;
}

.post-navigation .nav-links a:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(45, 55, 72, 0.1);
    transform: translateY(-2px);
    color: #1a202c;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
    display: block;
    font-size: 1.0625rem;
    line-height: 1.45;
    font-weight: 600;
    color: #2d3748;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    min-width: 0;
}

.post-navigation .nav-previous {
    text-align: left;
}

.post-navigation .nav-next {
    text-align: left;
}

@media screen and (max-width: 640px) {
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-navigation .nav-links a {
        min-height: 112px;
        padding: 1.25rem;
    }
}

/* ========================================
   TYPOGRAPHY - RESPONSIVE FONT SIZES
   ======================================== */

/* Base font size on html for rem calculations */
html {
    font-size: 100%; /* 16px base */
}

/* Content typography with relative units */
.entry-content,
.post-content,
article {
    font-size: 1.0625rem; /* 17px - slightly larger for readability */
    line-height: 1.7;
}

/* Responsive heading sizes within content */
.entry-content h1,
.post-content h1 {
    font-size: 2.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content h2,
.post-content h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.entry-content h3,
.post-content h3 {
    font-size: 1.5rem;
    margin-top: 1.75rem;
    margin-bottom: 0.625rem;
}

.entry-content h4,
.post-content h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.entry-content h5,
.post-content h5 {
    font-size: 1.125rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.entry-content h6,
.post-content h6 {
    font-size: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Smaller headings on mobile */
@media screen and (max-width: 640px) {
    .entry-content,
    .post-content,
    article {
        font-size: 1rem;
    }

    .entry-content h1,
    .post-content h1 {
        font-size: 1.875rem;
    }

    .entry-content h2,
    .post-content h2 {
        font-size: 1.5rem;
    }

    .entry-content h3,
    .post-content h3 {
        font-size: 1.3125rem;
    }

    .entry-content h4,
    .post-content h4 {
        font-size: 1.125rem;
    }

    .entry-content h5,
    .post-content h5,
    .entry-content h6,
    .post-content h6 {
        font-size: 1rem;
    }
}

/* ========================================
   AUTHOR BOX (Post Footer)
   ======================================== */

.author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    margin-top: 2.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.author-box .author-photo {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-box .author-info { flex: 1; }

.author-box .author-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.author-box .author-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0.125rem 0 0.5rem;
}

.author-box .author-name a { color: #1a202c; text-decoration: none; }
.author-box .author-name a:hover { color: #667eea; }

.author-box .author-bio {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0 0 0.75rem;
}

.author-box .author-socials { display: flex; gap: 0.5rem; }

.author-box .author-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    color: #64748b;
}

.author-box .author-social-link:hover {
    color: #667eea;
    border-color: #667eea;
}

.author-box .author-social-link svg { width: 1rem; height: 1rem; }

@media screen and (max-width: 640px) {
    .author-box { flex-direction: column; align-items: center; text-align: center; }
    .author-box .author-socials { justify-content: center; }
}

/* ========================================
   ACCESSIBILITY FIXES
   ======================================== */

/* Footer link group titles (replaces h4 for proper heading hierarchy) */
.link-group-title {
    display: block !important;
    color: white !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
}

/* Fix contrast ratio on logo placeholders */
.logo-placeholder {
    color: #6b7280 !important;
    opacity: 1 !important;
}

/* ========================================
   ARTICLE LAYOUT SHORTCODES
   ======================================== */

.tap-article-columns {
    display: grid;
    grid-template-columns: repeat(var(--tap-column-count), minmax(0, 1fr));
    gap: 1.5rem;
    margin: 1.75rem 0;
}

.tap-article-columns--2 { --tap-column-count: 2; }
.tap-article-columns--3 { --tap-column-count: 3; }
.tap-article-columns--4 { --tap-column-count: 4; }

.tap-article-column {
    min-width: 0;
}

.tap-article-column > :first-child,
.tap-info-box__content > :first-child { margin-top: 0; }

.tap-article-column > :last-child,
.tap-info-box__content > :last-child { margin-bottom: 0; }

.tap-info-box {
    --tap-box-accent: #3976d9;
    --tap-box-background: #f1f6ff;
    --tap-box-icon-background: #dce9ff;
    display: flex;
    gap: 0.875rem;
    padding: 1.125rem 1.25rem;
    margin: 1.75rem 0;
    color: #263449;
    background: var(--tap-box-background);
    border: 1px solid color-mix(in srgb, var(--tap-box-accent) 20%, transparent);
    border-left: 4px solid var(--tap-box-accent);
    border-radius: 0.625rem;
}

.tap-info-box--tip {
    --tap-box-accent: #18845b;
    --tap-box-background: #effaf5;
    --tap-box-icon-background: #d7f2e6;
}

.tap-info-box--important {
    --tap-box-accent: #7b57c5;
    --tap-box-background: #f6f2fc;
    --tap-box-icon-background: #e9dff8;
}

.tap-info-box--warning {
    --tap-box-accent: #c46a10;
    --tap-box-background: #fff8eb;
    --tap-box-icon-background: #fbe8c4;
}

.tap-info-box__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    color: var(--tap-box-accent);
    background: var(--tap-box-icon-background);
    border-radius: 50%;
}

.tap-info-box__icon svg {
    width: 1.125rem;
    height: 1.125rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.tap-info-box__content {
    flex: 1;
    min-width: 0;
}

.tap-info-box__title {
    margin-bottom: 0.35rem;
    color: #172033;
    font-weight: 700;
    line-height: 1.35;
}

@media screen and (max-width: 768px) {
    .tap-article-columns {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .tap-info-box {
        padding: 1rem;
    }
}
