@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --ink: #0d1117;
    --paper: #f0f5fe;
    --cream: #fffefe;
    --accent: #6b7280;
    --accent-dark: #0d2d6b;
    --steel: #1a4fa0;
    --steel-light: #2563c8;
    --muted: #6b7280;
    --border: #e0d9cc;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(13, 45, 107, .09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

.main-nav a {
    transition: color .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--steel);
}

.nav-cta {
    padding: 11px 17px;
    color: white !important;
    background: var(--accent-dark);
    border-radius: 7px;
}

.nav-cta i {
    margin-left: 7px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: var(--paper);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .48;
    background-image: linear-gradient(rgba(26, 79, 160, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 79, 160, .06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, #000, transparent 80%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1160px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .71rem;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--steel);
}

.eyebrow span {
    width: 24px;
    height: 2px;
    background: var(--steel-light);
    display: inline-block;
}

.hero h1,
h2,
.article-title {
    font-family: 'Playfair Display', serif;
    letter-spacing: -.045em;
}

.hero h1 {
    max-width: 680px;
    margin: 20px 0 18px;
    font-size: 44px;
    line-height: 1.02;
    font-weight: 700;
}

h1 em,
h2 em {
    color: var(--steel);
    font-weight: 600;
}

.hero-copy {
    max-width: 560px;
    color: #596579;
    font-size: 1.08rem;
}

.hero-link {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--steel);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: .9rem;
}

.hero-stats {
    display: flex;
    gap: 42px;
    margin-top: 48px;
}

.hero-stats div {
    display: grid;
    gap: 2px;
}

.hero-stats strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent-dark);
}

.hero-stats span {
    color: var(--muted);
    font-size: .78rem;
}

.hero-art {
    position: absolute;
    width: 410px;
    height: 360px;
    right: max(5vw, calc((100vw - 1160px) / 2));
    top: 50%;
    transform: translateY(-50%);
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(37, 99, 200, .16);
    border-radius: 50%;
}

.orbit-one {
    width: 400px;
    height: 400px;
    right: -0;
    top: 40px;
}

.orbit-two {
    width: 300px;
    height: 300px;
    right: 50px;
    top: 90px;
}

.art-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .8);
}

.art-card-main {
    width: 270px;
    height: 245px;
    right: 32px;
    top: 36px;
    padding: 28px;
    background: rgba(255, 254, 254, .94);
    border-radius: 18px;
    transform: rotate(3deg);
}

.art-card-main i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    color: white;
    background: var(--steel);
    font-size: 1.45rem;
    margin-bottom: 22px;
}

.art-card span {
    font-size: .75rem;
    color: var(--muted);
}

.art-card strong {
    color: var(--accent-dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-top: 2px;
}

.art-line {
    height: 1px;
    background: var(--border);
    margin: 18px 0 15px;
}

.art-dots {
    display: flex;
    gap: 7px;
}

.art-dots b {
    height: 7px;
    border-radius: 8px;
    background: #b8cbed;
    width: 28px;
}

.art-dots b:first-child {
    background: var(--steel-light);
    width: 48px;
}

.art-card-small {
    right: 0;
    bottom: 20px;
    width: 190px;
    padding: 19px;
    border-radius: 14px;
    background: var(--accent-dark);
    color: white;
    transform: rotate(-5deg);
}

.art-card-small i {
    font-size: 1.35rem;
    color: #a9c8ff;
    margin-bottom: 9px;
}

.art-card-small span,
.art-card-small strong {
    color: white;
}

.art-card-small strong {
    font-size: 1rem;
}

.art-cross {
    position: absolute;
    left: 20px;
    bottom: 48px;
    color: var(--steel-light);
    font-size: 2rem;
    font-weight: 300;
}

.content-section {
    padding: 94px 0 100px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 36px;
    margin-bottom: 36px;
}

.eyebrow.dark {
    color: var(--steel);
}

.section-heading h2,
.newsletter h2 {
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    line-height: 1.1;
    margin: 13px 0 0;
}

.section-heading>p {
    max-width: 380px;
    color: var(--muted);
    margin: 0 0 5px;
    font-size: .95rem;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.search-box {
    min-width: 230px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    background: white;
    padding: 11px 14px;
    border-radius: 8px;
    color: var(--muted);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: .86rem;
    color: var(--ink);
}

.category-filters {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.filter-btn {
    border: 1px solid transparent;
    background: transparent;
    padding: 9px 12px;
    border-radius: 7px;
    color: #697386;
    font-size: .78rem;
    cursor: pointer;
    transition: .2s ease;
}

.filter-btn:hover {
    border-color: var(--border);
    color: var(--steel);
}

.filter-btn.active {
    background: var(--accent-dark);
    color: white;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 330px;
    overflow: hidden;
    border-radius: 17px;
    background: var(--accent-dark);
    color: white;
    margin-bottom: 25px;
}

.featured-copy {
    padding: 38px 42px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.featured-label {
    color: #b9d2ff;
    font-size: .7rem;
    letter-spacing: .15em;
    font-weight: 700;
    text-transform: uppercase;
}

.featured-copy h3 {
    margin: 17px 0 12px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.featured-copy p {
    color: #d0daec;
    font-size: .9rem;
    max-width: 480px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    font-size: .74rem;
    color: inherit;
    opacity: .8;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.featured-visual {
    min-height: 280px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1a4fa0, #477fce);
}

.featured-visual:before,
.featured-visual:after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
}

.featured-visual:before {
    width: 330px;
    height: 330px;
}

.featured-visual:after {
    width: 230px;
    height: 230px;
}

.featured-visual i {
    z-index: 1;
    font-size: 6.5rem;
    color: rgba(255, 255, 255, .94);
}

.featured-visual .visual-tag {
    position: absolute;
    z-index: 2;
    padding: 9px 13px;
    background: rgba(13, 17, 23, .2);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 7px;
    color: white;
    font-size: .73rem;
    backdrop-filter: blur(8px);
}

.visual-tag.tag-one {
    top: 24%;
    left: 11%;
}

.visual-tag.tag-two {
    right: 9%;
    bottom: 23%;
}

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-weight: 700;
    font-size: .85rem;
    color: inherit;
    cursor: pointer;
    border: 0;
    background: transparent;
    padding: 0;
}

.read-link i {
    transition: transform .2s;
}

.read-link:hover i {
    transform: translate(3px, -3px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.blog-card {
    border: 1px solid var(--border);
    background: white;
    border-radius: 13px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: #b8cbed;
}

.blog-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.blog-card:focus-visible {
    outline: 3px solid #2563c8;
    outline-offset: 4px;
}

.blog-card .read-link {
    cursor: pointer;
}

.card-visual {
    height: 165px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--paper);
}

.card-visual:before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(26, 79, 160, .17);
    border-radius: 50%;
}

.card-visual:after {
    content: "";
    position: absolute;
    width: 118px;
    height: 118px;
    border: 1px solid rgba(26, 79, 160, .2);
    border-radius: 50%;
}

.card-visual i {
    z-index: 1;
    color: var(--steel);
    font-size: 3.4rem;
}

.card-visual .visual-chip {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 12px;
    background: white;
    border: 1px solid var(--border);
    padding: 5px 8px;
    border-radius: 5px;
    font-size: .64rem;
    color: var(--accent-dark);
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 23px 23px 21px;
}

.card-category {
    color: var(--steel);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .65rem;
    font-weight: 700;
}

.card-body h3 {
    margin: 12px 0 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.38rem;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.card-body p {
    color: var(--muted);
    font-size: .84rem;
    margin: 0 0 20px;
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #eeeae2;
    padding-top: 15px;
}

.card-footer .article-meta {
    padding: 0;
    margin: 0;
    color: var(--muted);
    gap: 8px;
    font-size: .68rem;
}

.card-footer .read-link {
    margin: 0;
    color: var(--accent-dark);
    white-space: nowrap;
    font-size: .77rem;
}

.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--muted);
}

.empty-state i {
    font-size: 2rem;
    color: var(--steel);
}

.empty-state h3 {
    color: var(--ink);
    margin-bottom: 0;
}

.load-more-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 28px;
    color: var(--muted);
    font-size: .8rem;
}

.text-link {
    color: var(--steel);
    font-weight: 700;
}

.text-link i {
    margin-left: 6px;
}

.newsletter {
    background: var(--accent-dark);
    color: white;
    padding: 64px 0;
    overflow: hidden;
    position: relative;
}

.newsletter:after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    right: -120px;
    top: -210px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(255, 255, 255, .025), 0 0 0 90px rgba(255, 255, 255, .025);
}

.newsletter-inner {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.newsletter-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, .1);
    color: #b9d2ff;
    font-size: 1.7rem;
}

.eyebrow.light {
    color: #b9d2ff;
}

.eyebrow.light span {
    background: #b9d2ff;
}

.newsletter h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    max-width: 670px;
    margin-top: 10px;
}

.newsletter h2 em {
    color: #b9d2ff;
}

.newsletter p {
    margin-bottom: 0;
    color: #c9d4e7;
    font-size: .9rem;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    border-radius: 7px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: .84rem;
    white-space: nowrap;
}

.button-light {
    background: white;
    color: var(--accent-dark);
}

.footer-brand .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 1rem;
    background: var(--steel-light);
}

.footer-brand .brand-accent {
    color: #b9d2ff;
}

.footer-inner p {
    margin: 0;
}

.article-dialog {
    position: fixed;
    inset: 0;
    margin: auto;

    width: min(760px, calc(100% - 28px));
    max-height: 88vh;
    padding: 0;

    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 100px rgba(0, 0, 0, .3);

    color: var(--ink);
    overflow-y: auto;
}

.article-dialog::backdrop {
    background: rgba(5, 15, 35, .65);
    backdrop-filter: blur(4px);
}

.dialog-close {
    position: sticky;
    float: right;
    top: 14px;
    margin: 14px 14px -48px 0;
    z-index: 3;
    border: 0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    background: white;
    color: var(--ink);
    box-shadow: 0 2px 10px #0002;
    cursor: pointer;
}

.dialog-content {
    padding: 44px clamp(22px, 6vw, 56px) 50px;
    overflow-y: auto;
    max-height: 88vh;
}

.dialog-content .card-category {
    display: block;
    margin-bottom: 12px;
}

.dialog-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin: 0 0 15px;
}

.dialog-content .article-meta {
    color: var(--muted);
    margin: 0 0 25px;
    padding: 0;
}

.dialog-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-dark);
    margin-top: 28px;
}

.dialog-content p,
.dialog-content li {
    color: #4f5968;
    font-size: .95rem;
}

.dialog-content ul {
    padding-left: 22px;
}

@media (max-width: 980px) {
    .hero-art {
        right: -65px;
        opacity: .45;
        transform: translateY(-50%) scale(.85);
    }

    .hero-content {
        max-width: 100%;
    }

    .toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-filters {
        justify-content: flex-start;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .newsletter-inner {
        grid-template-columns: 55px 1fr;
    }

    .newsletter-inner .button {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 32px, 1160px);
    }

    .nav-wrap {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 67px;
        padding: 18px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: white;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 17px;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav .nav-cta {
        text-align: center;
    }

    .hero {
        min-height: 0;
    }

    .hero-content {
        padding-block: 68px 58px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero-copy {
        font-size: .97rem;
    }

    .hero-art,
    .hero-orbit {
        display: none;
    }

    .hero-stats {
        gap: 28px;
        margin-top: 35px;
    }

    .content-section {
        padding: 65px 0 70px;
    }

    .section-heading {
        display: block;
    }

    .section-heading>p {
        margin-top: 17px;
    }

    .category-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 6px;
        justify-content: flex-start;
    }

    .filter-btn {
        flex: 0 0 auto;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-copy {
        padding: 28px 25px;
        min-height: 300px;
    }

    .featured-visual {
        min-height: 190px;
    }

    .featured-visual i {
        font-size: 4.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card-visual {
        height: 150px;
    }

    .card-body {
        padding: 21px;
    }

    .load-more-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter {
        padding: 48px 0;
    }

    .newsletter-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .newsletter-inner .button {
        grid-column: auto;
    }

    .newsletter-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .footer-inner {
        flex-wrap: wrap;
    }

    .footer-inner p {
        order: 3;
        width: 100%;
    }

    .footer-inner>span {
        margin-left: auto;
    }
}


/* Dialog enhancements for the complete single-article guide */
.dialog-toc {
    margin: 24px 0 32px;
    padding: 18px 20px;
    background: #f0f5fe;
    border: 1px solid #e0d9cc;
    border-radius: 12px;
    position: relative;
}

.dialog-toc>strong {
    display: block;
    color: #0d2d6b;
    font-size: .76rem;
    letter-spacing: .12em;
    margin-bottom: 12px;
}

.dialog-toc>div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 18px;
}

.dialog-toc a {
    color: #1a4fa0;
    font-size: .88rem;
    text-decoration: none;
}

.dialog-toc a:hover {
    color: #2563c8;
    text-decoration: underline;
}

.dialog-content .article-section {
    padding: 20px 0 26px;
    border-bottom: 1px solid #e8edf4;
    scroll-margin-top: 18px;
}

.dialog-content .section-number {
    display: inline-block;
    color: #2563c8;
    font-weight: 700;
    letter-spacing: .1em;
    margin-bottom: 8px;
}

.dialog-content .article-cta {
    margin-top: 28px;
    padding: 24px;
    border-radius: 14px;
    background: #f0f5fe;
}

.dialog-content .article-cta-button {
    display: inline-block;
    margin-top: 8px;
    padding: 11px 16px;
    border-radius: 8px;
    background: #0d2d6b;
    color: #fff;
    text-decoration: none;
}

.dialog-content .article-disclaimer {
    font-size: .8rem;
    color: #6b7280;
    margin-top: 18px;
}

/* Social sharing section for the IngrOInfo blog dialog */
.article-share {
    margin: 2.5rem 0 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid #e0e9f7;
    border-radius: 18px;
    background: #f5f8ff;
}

.article-share-copy {
    max-width: 720px;
}

.article-share .article-eyebrow {
    margin: 0 0 .5rem;
    color: #2563c8;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.article-share h2 {
    margin: 0 0 .65rem;
    color: #0d2d6b;
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
}

.article-share-copy>p:last-child {
    margin: 0;
    color: #586579;
}

.article-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.25rem;
}

.article-share .share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 42px;
    padding: .65rem .9rem;
    border: 1px solid #d8e2f1;
    border-radius: 999px;
    background: #fff;
    color: #16345e;
    font: inherit;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.article-share .share-button:hover {
    transform: translateY(-2px);
    border-color: #2563c8;
    background: #edf4ff;
}

.article-share .share-button:focus-visible {
    outline: 3px solid #2563c8;
    outline-offset: 3px;
}

.article-share .share-feedback {
    min-height: 1.2em;
    margin: .75rem 0 0;
    color: #1a4fa0;
    font-size: .9rem;
}

@media (max-width: 480px) {
    .article-share-actions {
        gap: .5rem;
    }

    .article-share .share-button {
        padding: .6rem .75rem;
        font-size: .84rem;
    }
}


@media(max-width:520px) {
    .dialog-toc>div {
        grid-template-columns: 1fr
    }

    .dialog-content .article-cta {
        padding: 18px
    }
}


/* Original IngrOInfo navigation/footer remain styled by css/styles.css. */
.article-dialog {
    max-width: min(920px, calc(100vw - 28px));
}

.article-dialog::backdrop {
    background: rgba(8, 18, 35, .72);
    backdrop-filter: blur(5px);
}

.dialog-content {
    scroll-behavior: smooth;
}

.dialog-content .article-section {
    scroll-margin-top: 18px;
}


@media (max-width: 768px) {

    .up,
    .wa {
        right: 14px;
    }
}