/* =============================================
   CSS Custom Properties — Google-inspired palette
   ============================================= */
:root {
    /* Primary */
    --blue:          #1a73e8;
    --blue-hover:    #1557b0;
    --blue-light:    #e8f0fe;

    /* Semantic */
    --green:         #34a853;
    --green-light:   #e6f4ea;
    --green-border:  #ceead6;
    --red:           #ea4335;
    --red-light:     #fce8e6;
    --red-border:    #f5c6cb;
    --yellow:        #fbbc04;
    --yellow-light:  #fef7e0;

    /* Neutral */
    --text-primary:   #202124;
    --text-secondary: #5f6368;
    --text-tertiary:  #80868b;
    --surface:        #ffffff;
    --background:     #f8f9fa;
    --border:         #dadce0;
    --divider:        #e8eaed;

    /* Elevation (Google Material) */
    --shadow-1: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    --shadow-2: 0 1px 2px 0 rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
    --shadow-3: 0 1px 3px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);

    /* Radii */
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;
    --radius-xl:  24px;
    --radius-full:9999px;

    /* Font */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Sizing */
    --container: 1100px;
    --nav-height: 64px;

    /* Transition */
    --ease: 200ms cubic-bezier(.4,0,.2,1);
}


/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 16px); }
body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
kbd {
    display: inline-block;
    padding: 2px 6px;
    font-size: .85em;
    font-family: inherit;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}


/* =============================================
   Accessibility — Skip Link
   ============================================= */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--blue);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 600;
}
.skip-link:focus { top: 12px; }


/* =============================================
   Layout
   ============================================= */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.hidden { display: none !important; }


/* =============================================
   Navbar
   ============================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface);
    border-bottom: 1px solid var(--divider);
    height: var(--nav-height);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -.02em;
}
.logo svg { color: var(--blue); }
.logo:hover { text-decoration: none; }

.nav-links {
    display: flex;
    gap: 8px;
}
.nav-links li a {
    display: block;
    padding: 8px 14px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: background var(--ease), color var(--ease);
}
.nav-links li a:hover {
    background: var(--blue-light);
    color: var(--blue);
    text-decoration: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: background var(--ease);
}
.mobile-menu-btn:hover { background: var(--background); }


/* =============================================
   Hero / Checker Section
   ============================================= */
.hero {
    background: var(--surface);
    padding: 72px 0 64px;
    text-align: center;
}
.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}


/* =============================================
   Search Box
   ============================================= */
.search-box {
    max-width: 580px;
    margin: 0 auto 28px;
}
.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    padding: 6px 6px 6px 20px;
    transition: border-color var(--ease), box-shadow var(--ease);
}
.search-input-wrapper:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26,115,232,.15);
}
.search-icon {
    flex-shrink: 0;
}
.search-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-family: var(--font);
    color: var(--text-primary);
    background: transparent;
    padding: 10px 0;
    min-width: 0;
}
.search-input-wrapper input::placeholder {
    color: var(--text-tertiary);
}
.search-input-wrapper button {
    flex-shrink: 0;
    padding: 12px 28px;
    background: var(--blue);
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--ease), box-shadow var(--ease);
    white-space: nowrap;
}
.search-input-wrapper button:hover {
    background: var(--blue-hover);
    box-shadow: var(--shadow-1);
}
.search-input-wrapper button:active {
    transform: scale(.98);
}
.search-input-wrapper button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.search-hint {
    margin-top: 12px;
    font-size: .85rem;
    color: var(--text-tertiary);
}

.request-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: .85rem;
    color: var(--text-secondary);
}
.request-counter svg { color: var(--text-tertiary); }


/* =============================================
   Trust Badges
   ============================================= */
.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 28px;
}
.trust-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-secondary);
}


/* =============================================
   Loading Spinner
   ============================================= */
.loading {
    text-align: center;
    padding: 48px 0 24px;
}
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--divider);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading p {
    font-size: .95rem;
    color: var(--text-secondary);
}


/* =============================================
   Error Card
   ============================================= */
.error-card {
    max-width: 580px;
    margin: 32px auto 0;
    background: var(--red-light);
    color: #c5221f;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--red-border);
    font-size: .95rem;
    text-align: center;
}


/* =============================================
   Result Card
   ============================================= */
.result-card {
    max-width: 720px;
    margin: 40px auto 0;
    background: var(--surface);
    border: 1px solid var(--green-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    text-align: left;
    animation: fadeSlideUp .35s var(--ease);
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--green-light);
    border-bottom: 1px solid var(--green-border);
}
.result-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #137333;
    margin: 0;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: .85rem;
    font-weight: 500;
    font-family: var(--font);
    color: var(--blue);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--ease), border-color var(--ease);
}
.btn-outline:hover {
    background: var(--blue-light);
    border-color: var(--blue);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--divider);
}
.result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px;
    background: var(--surface);
}
.result-label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-tertiary);
}
.result-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}


/* =============================================
   Section Styles (shared)
   ============================================= */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 560px;
    margin: -8px auto 48px;
    font-size: 1.05rem;
}


/* =============================================
   Features Section
   ============================================= */
.features-section {
    background: var(--background);
    padding: 80px 0;
}
.features-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--surface);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--divider);
    text-align: center;
    transition: box-shadow var(--ease), transform var(--ease);
}
.feature-card:hover {
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
}
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}
.icon-blue   { background: var(--blue-light);   color: var(--blue); }
.icon-green  { background: var(--green-light);  color: var(--green); }
.icon-red    { background: #fce8e6;             color: var(--red); }
.icon-yellow { background: var(--yellow-light); color: #e37400; }

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.feature-card p {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* =============================================
   How It Works Section
   ============================================= */
.how-section {
    background: var(--surface);
    padding: 80px 0;
}
.how-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}
.step-card {
    text-align: center;
    padding: 24px;
    flex: 1;
    max-width: 280px;
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.step-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.step-card p {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.step-connector {
    display: flex;
    align-items: center;
    padding-top: 36px;
}


/* =============================================
   About Section
   ============================================= */
.about-section {
    background: var(--background);
    padding: 80px 0;
}
.about-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
}
.about-content {
    max-width: 780px;
    margin: 0 auto;
}
.about-text {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--divider);
}
.about-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 12px;
}
.about-text h3:first-child {
    margin-top: 0;
}
.about-text p {
    font-size: .95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}
.about-text ul {
    margin: 12px 0 16px 24px;
    list-style: disc;
}
.about-text li {
    font-size: .95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 6px;
}
.about-text strong {
    color: var(--text-primary);
}


/* =============================================
   FAQ Section
   ============================================= */
.faq-section {
    background: var(--surface);
    padding: 80px 0;
}
.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--divider);
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    transition: color var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-tertiary);
    transition: transform var(--ease);
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item summary:hover { color: var(--blue); }
.faq-answer {
    padding: 0 0 20px;
}
.faq-answer p {
    font-size: .95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}


/* =============================================
   Footer
   ============================================= */
footer {
    background: var(--text-primary);
    color: #bdc1c6;
    padding: 60px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 12px;
}
.footer-logo svg { color: var(--blue); }
.footer-logo:hover { text-decoration: none; color: #fff; }
.footer-brand p {
    font-size: .875rem;
    line-height: 1.7;
    color: #9aa0a6;
    max-width: 360px;
}
.footer-links h4 {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #e8eaed;
    margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    font-size: .875rem;
    color: #9aa0a6;
    transition: color var(--ease);
    text-decoration: none;
}
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
    border-top: 1px solid #3c4043;
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    font-size: .8rem;
    color: #9aa0a6;
    margin-bottom: 4px;
}


/* =============================================
   Focus Visible (Accessibility)
   ============================================= */
*:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
input:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}


/* =============================================
   Responsive — Tablet
   ============================================= */
@media (max-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* =============================================
   Responsive — Mobile
   ============================================= */
@media (max-width: 768px) {
    :root {
        --nav-height: 56px;
    }

    .mobile-menu-btn { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 8px 16px 16px;
        border-bottom: 1px solid var(--divider);
        box-shadow: var(--shadow-2);
        gap: 2px;
    }
    .nav-links.active { display: flex; }
    .nav-links li a {
        padding: 12px 16px;
        font-size: .95rem;
        border-radius: var(--radius-md);
    }

    .hero { padding: 48px 0 40px; }
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 32px; }

    .search-input-wrapper {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 12px;
        gap: 10px;
    }
    .search-icon { display: none; }
    .search-input-wrapper input {
        width: 100%;
        text-align: center;
        padding: 8px 12px;
    }
    .search-input-wrapper button {
        width: 100%;
        padding: 14px;
    }

    .trust-badges { gap: 16px; }

    .result-grid {
        grid-template-columns: 1fr;
    }
    .result-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .features-section,
    .how-section,
    .about-section,
    .faq-section { padding: 56px 0; }

    .features-section h2,
    .how-section h2,
    .about-section h2,
    .faq-section h2 { font-size: 1.6rem; }

    .features-grid { grid-template-columns: 1fr; }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }
    .step-connector {
        transform: rotate(90deg);
        padding: 0;
    }
    .step-card { max-width: 100%; }

    .about-text { padding: 24px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-brand { grid-column: 1; }
}

/* =============================================
   Responsive — Small Mobile
   ============================================= */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.7rem; }
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}


/* =============================================
   Print Styles
   ============================================= */
@media print {
    .navbar,
    .search-box,
    .trust-badges,
    .features-section,
    .how-section,
    .faq-section,
    footer { display: none; }
    .hero { padding: 20px 0; }
    .result-card { box-shadow: none; border: 1px solid #ccc; }
}

/* =============================================
   Page Hero (Subpages)
   ============================================= */
.page-hero {
    background: var(--surface);
    padding: 56px 0 48px;
    text-align: center;
    border-bottom: 1px solid var(--divider);
}
.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}
.page-hero .hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}


/* =============================================
   Section Light (Checker Background)
   ============================================= */
.section-light {
    background: var(--background);
    padding: 56px 0;
    text-align: center;
}
.section-light h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.text-center { text-align: center; }


/* =============================================
   Article / Content Body
   ============================================= */
.content-section {
    padding: 64px 0;
}
.article-body {
    max-width: 780px;
    margin: 0 auto;
    background: var(--surface);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--divider);
}
.article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 40px 0 16px;
    padding-top: 8px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 28px 0 10px;
}
.article-body p {
    font-size: .95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}
.article-body ul,
.article-body ol {
    margin: 12px 0 20px 28px;
    list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li {
    font-size: .95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}
.article-body a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}
.article-body a:hover { text-decoration: underline; }
.article-body strong { color: var(--text-primary); }


/* =============================================
   Tables
   ============================================= */
.info-table-wrapper {
    overflow-x: auto;
    margin: 20px 0 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--divider);
}
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.info-table th,
.info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--divider);
}
.info-table th {
    background: var(--background);
    font-weight: 600;
    color: var(--text-primary);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.info-table td {
    color: var(--text-secondary);
}
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:hover td { background: #f1f3f4; }


/* =============================================
   Related Section
   ============================================= */
.related-section {
    background: var(--background);
    padding: 64px 0;
}
.related-section h2 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.related-card {
    background: var(--surface);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--divider);
    text-decoration: none;
    transition: box-shadow var(--ease), transform var(--ease);
}
.related-card:hover {
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
    text-decoration: none;
}
.related-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 8px;
}
.related-card p {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* =============================================
   Breadcrumbs
   ============================================= */
.breadcrumb-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--divider);
    padding: 12px 0;
}
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    flex-wrap: wrap;
}
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li::after {
    content: '›';
    color: var(--text-tertiary);
    font-size: 1rem;
}
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a {
    color: var(--blue);
    text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li[aria-current] {
    color: var(--text-secondary);
}


/* =============================================
   Footer Grid — 4 columns on desktop
   ============================================= */
@media (min-width: 769px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}


/* =============================================
   Subpage Responsive Tweaks
   ============================================= */
@media (max-width: 768px) {
    .page-hero { padding: 40px 0 32px; }
    .page-hero h1 { font-size: 1.85rem; }
    .article-body { padding: 24px; }
    .related-grid { grid-template-columns: 1fr; }
    .content-section { padding: 40px 0; }
    .related-section { padding: 40px 0; }
}
@media (max-width: 480px) {
    .page-hero h1 { font-size: 1.5rem; }
}