/* Core layout for Resources. Load before resources-pages.css via <link>. Scope: body.resource-site */

*, *::before, *::after {
    box-sizing: border-box;
}

body.resource-site {
    font-family: 'Inter', sans-serif;
    color: #1e1e1e;
    background: #f8fafc;
    line-height: 1.65;
    scroll-behavior: smooth;
    margin: 0;
}

.resource-site .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 28px);
}

.resource-site header {
    background: #0a2a3b;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.resource-site .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 0;
    gap: 0.75rem;
}

.resource-site .logo {
    text-decoration: none;
}

.resource-site .logo h1 {
    font-size: 1.75rem;
    color: #fff;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.resource-site .logo span {
    color: #e68a2e;
    font-weight: 300;
}

.resource-site .nav-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    align-items: center;
}

.resource-site .nav-links a {
    color: #f0f6fa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.resource-site .nav-links a:hover {
    color: #e68a2e;
}

.resource-site .menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.resource-site .breadcrumb-wrap {
    background: #f0f4f7;
    border-bottom: 1px solid #dce6ec;
    padding: 0.65rem 0;
    font-size: 0.875rem;
}

.resource-site .breadcrumb-wrap a {
    color: #0a2a3b;
    font-weight: 500;
    text-decoration: none;
}

.resource-site .breadcrumb-wrap a:hover {
    color: #e68a2e;
    text-decoration: underline;
}

.resource-site .breadcrumb-wrap span {
    color: #6b7a8a;
}

.resource-site .article-hero-band {
    background: linear-gradient(135deg, #0a2a3b 0%, #143d52 42%, #1a4a63 100%);
    color: #fff;
    padding: clamp(2rem, 5vw, 3.25rem) 0;
    position: relative;
    overflow: hidden;
}

.resource-site .article-hero-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(230, 138, 46, 0.18), transparent 55%);
    pointer-events: none;
}

.resource-site .article-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 52rem;
}

.resource-site .article-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e68a2e;
    margin: 0 0 0.75rem;
}

.resource-site .article-hero-band h1 {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.85rem;
    color: #fff;
}

.resource-site .article-deck {
    margin: 0;
    font-size: 1.05rem;
    color: #c8dbe8;
    max-width: 40rem;
    line-height: 1.55;
}

/* Centered title strip when a page uses main.container + .article-hero (e.g. generator wrap_page) */
.resource-site main.container .article-hero {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 0.5rem;
    text-align: center;
}

.resource-site main.container .article-hero h1 {
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
    font-weight: 800;
    color: #0a2a3b;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.resource-site .article-shell {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 6vw, 4rem);
}

.resource-site .article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

@media (min-width: 1024px) {
    .resource-site .article-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 2.5rem 3rem;
    }
}

.resource-site .article-toc-wrap {
    display: none;
}

@media (min-width: 1024px) {
    .resource-site .article-toc-wrap {
        display: block;
        position: sticky;
        top: 5.5rem;
    }
}

.resource-site .article-toc {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 8px 30px rgba(10, 42, 59, 0.06);
}

.resource-site .article-toc-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 1rem;
}

.resource-site .article-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.resource-site .article-toc li {
    margin-bottom: 0.45rem;
}

.resource-site .article-toc a {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0a2a3b;
    text-decoration: none;
    padding: 0.35rem 0;
    border-left: 3px solid transparent;
    padding-left: 0.65rem;
    margin-left: -0.65rem;
    transition: border-color 0.2s, color 0.2s;
}

.resource-site .article-toc a:hover {
    color: #e68a2e;
    border-left-color: #e68a2e;
}

.resource-site .article-toc .toc-step a {
    font-weight: 600;
}

.resource-site .toc-mobile {
    display: block;
    margin-bottom: 0.5rem;
}

@media (min-width: 1024px) {
    .resource-site .toc-mobile {
        display: none;
    }
}

.resource-site .toc-mobile summary {
    cursor: pointer;
    font-weight: 600;
    color: #0a2a3b;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    list-style: none;
}

.resource-site .toc-mobile summary::-webkit-details-marker {
    display: none;
}

.resource-site .toc-mobile[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.resource-site .toc-mobile .article-toc {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
    margin-top: 0;
}

.resource-site .article-column {
    min-width: 0;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e8eef2;
    box-shadow: 0 12px 40px rgba(10, 42, 59, 0.07);
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.resource-site .article-prose {
    max-width: 48rem;
}

.resource-site .aeo-box {
    background: linear-gradient(90deg, #f1f5f9 0%, #f8fafc 100%);
    border-left: 4px solid #e68a2e;
    padding: 1.15rem 1.35rem;
    margin: 0 0 1.75rem;
    border-radius: 0 12px 12px 0;
    font-size: 0.95rem;
    box-shadow: 0 2px 12px rgba(10, 42, 59, 0.04);
}

.resource-site .article-feature-figure {
    margin: 0 0 1.75rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 48px rgba(10, 42, 59, 0.12);
    line-height: 0;
}

.resource-site .article-feature-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.resource-site .article-content h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.45rem);
    color: #0a2a3b;
    margin: 2rem 0 0.75rem;
    scroll-margin-top: 5.5rem;
    line-height: 1.3;
}

.resource-site .article-content h2:first-child {
    margin-top: 0;
}

.resource-site .article-content h2.process-step {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    background: linear-gradient(90deg, rgba(230, 138, 46, 0.1) 0%, rgba(230, 138, 46, 0.02) 100%);
    border-left: 4px solid #e68a2e;
    border-radius: 0 12px 12px 0;
}

.resource-site .article-content h3 {
    font-size: 1.08rem;
    color: #1e3a4c;
    margin: 1.35rem 0 0.5rem;
}

.resource-site .article-content p {
    margin-bottom: 1rem;
}

.resource-site .article-content a {
    color: #0a4a66;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.resource-site .article-content a:hover {
    color: #e68a2e;
}

.resource-site .article-content ul {
    margin: 0 0 1rem 1.15rem;
    padding: 0;
}

.resource-site .article-content ul li {
    margin-bottom: 0.35rem;
}

.resource-site .article-content ul li::marker {
    color: #e68a2e;
}

.resource-site .article-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
    border: 1px solid #e8eef2;
}

.resource-site .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.25rem 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fafcfd;
}

.resource-site .article-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.82rem;
}

.resource-site .article-table th,
.resource-site .article-table td {
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.resource-site .article-table th {
    background: #0a2a3b;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.resource-site .article-table tbody tr:nth-child(even) {
    background: rgba(241, 245, 249, 0.6);
}

.resource-site .article-faq-wrap {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8eef2;
}

.resource-site .article-faq-wrap h3 {
    font-size: 1rem;
    margin-top: 1.5rem;
    padding: 0.65rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #0a2a3b;
}

.resource-site .article-faq-wrap h3:first-of-type {
    margin-top: 1rem;
}

.resource-site .cta-bar {
    background: linear-gradient(97deg, #0f2c36 0%, #1d424f 100%);
    color: #fff;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border-radius: 16px;
    text-align: center;
    margin: 2rem 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(10, 42, 59, 0.2);
}

.resource-site .cta-bar p {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.resource-site .cta-bar a {
    color: #ffd9a8;
    font-weight: 600;
}

.resource-site .btn-primary {
    background: #e68a2e;
    color: #0a2a3b;
    padding: 0.8rem 1.75rem;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.75rem;
    transition: background 0.2s, color 0.2s;
    border: none;
}

.resource-site .btn-primary:hover {
    background: #cf7418;
    color: #fff;
}

.resource-site footer {
    background: #071d26;
    color: #adc4ce;
    padding: 2.5rem 0 1.5rem;
    margin-top: 0;
}

.resource-site .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 28px);
}

.resource-site .footer-grid h4 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.resource-site .footer-grid a {
    color: #adc4ce;
    text-decoration: none;
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.resource-site .footer-grid a:hover {
    color: #e68a2e;
}

.resource-site .copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #2a4b58;
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .resource-site .menu-toggle {
        display: block;
    }

    .resource-site .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0 1rem;
        gap: 0.75rem;
    }

    .resource-site .nav-links.active {
        display: flex;
    }
}
