:root {
    --brand: #5b5ce2;
    --brand-2: #7c3aed;
    --ink: #161827;
    --muted: #667085;
    --bg: #f7f8fc;
    --surface: #ffffff;
    --surface-2: #f1f2fa;
    --border: #e4e6ef;
    --success: #159a64;
    --danger: #d94f63;
    --shadow: 0 16px 42px rgba(31, 34, 61, .08);
}

html[data-theme="dark"] {
    --ink: #f3f4f7;
    --muted: #a8adbc;
    --bg: #0f1118;
    --surface: #181b25;
    --surface-2: #222532;
    --border: #303544;
    --shadow: 0 18px 50px rgba(0, 0, 0, .25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container-narrow {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-row {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.brand-logo {
    width: 142px;
    height: auto;
    display: block;
}

.brand-logo-dark {
    display: none;
}

html[data-theme="dark"] .brand-logo-light {
    display: none;
}

html[data-theme="dark"] .brand-logo-dark {
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
}

.nav-link-custom,
.nav-dropdown summary {
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.nav-link-custom:hover,
.nav-link-custom.active,
.nav-dropdown[open] summary {
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown-menu {
    position: absolute;
    top: 43px;
    left: 0;
    width: 230px;
    max-height: 430px;
    overflow: auto;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.nav-dropdown-menu a {
    display: block;
    padding: 9px 10px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 13px;
}

.nav-dropdown-menu a:hover {
    color: var(--brand);
    background: var(--surface-2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.header-icon-link,
.theme-toggle {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    border-radius: 10px;
    cursor: pointer;
}

.header-icon-link img {
    width: 18px;
    height: 18px;
    filter: var(--icon-filter, none);
}

html[data-theme="dark"] .header-icon-link img {
    filter: invert(1) brightness(.9);
}

.theme-toggle {
    cursor: pointer;
    font-size: 18px;
}

.theme-moon {
    display: none;
}

html[data-theme="dark"] .theme-sun {
    display: none;
}

html[data-theme="dark"] .theme-moon {
    display: inline;
}

.mobile-nav-toggle {
    display: none;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 10px;
    padding: 8px;
}

.mobile-nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    margin: 4px 0;
    border-radius: 2px;
}

/* =========================================================
   INFYVO HERO
   Blueprint layout - existing colors preserved
   ========================================================= */

.hero-home {
    padding: 34px 0 20px;
}

.hero-grid {
    position: relative;

    display: grid;
    grid-template-columns: 1fr 0.92fr;

    gap: 0;

    align-items: stretch;

    min-height: 440px;

    overflow: hidden;

    border-radius: 30px;

    background: var(--surface);

    box-shadow: var(--shadow);
}


/* =========================================================
   LEFT SIDE
   ========================================================= */

.hero-copy-panel {
    position: relative;
    z-index: 2;

    min-height: 440px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 48px 45px 48px 52px;

    border-radius: 0;

    background: linear-gradient(
        135deg,
        #4848bf,
        #7c3aed
    );

    color: #fff;

    box-shadow: none;
}


.eyebrow {
    margin-bottom: 12px;

    color: #ffffff;

    text-transform: uppercase;

    letter-spacing: .10em;

    font-size: 11px;

    font-weight: 850;

    line-height: 1.4;
}


.hero-title {
    margin: 0 0 16px;

    max-width: 600px;

    color: #ffffff;

    font-size: clamp(44px, 5vw, 66px);

    line-height: .99;

    letter-spacing: -.055em;

    font-weight: 900;
}


.hero-description {
    max-width: 570px;

    margin: 0;

    color: rgba(255, 255, 255, .92);

    font-size: 17px;

    line-height: 1.6;
}


/* =========================================================
   SEARCH
   ========================================================= */

.hero-search {
    width: min(100%, 600px);

    margin-top: 24px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 7px;

    border-radius: 15px;

    background: #ffffff;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .12);
}


.hero-search input {
    flex: 1;

    min-width: 0;

    height: 44px;

    border: 0;

    outline: 0;

    padding: 10px 13px;

    background: transparent;

    color: #171827;

    font-size: 14px;
}


.hero-search input::placeholder {
    color: #8589a1;
}


.hero-search button {
    flex: 0 0 auto;

    height: 44px;

    border: 0;

    border-radius: 10px;

    padding: 0 23px;

    background: #5b5ce2;

    color: #ffffff;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;

    transition: all .2s ease;
}


.hero-search button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(91, 92, 226, .28);
}


/* =========================================================
   SEARCH SUGGESTIONS
   ========================================================= */

.search-suggestions {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 12px;
}


.search-suggestions a {
    display: inline-flex;

    align-items: center;

    min-height: 29px;

    padding: 5px 11px;

    border: 1px solid rgba(255, 255, 255, .30);

    border-radius: 999px;

    background: rgba(255, 255, 255, .04);

    color: #ffffff;

    font-size: 11px;

    text-decoration: none;

    transition: all .2s ease;
}


.search-suggestions a:hover {
    background: rgba(255, 255, 255, .13);

    border-color: rgba(255, 255, 255, .50);

    transform: translateY(-1px);
}


/* =========================================================
   RIGHT IMAGE
   ========================================================= */

.hero-visual {
    position: relative;

    min-height: 440px;

    display: flex;

    align-items: flex-end;

    justify-content: center;

    overflow: hidden;

    border-radius: 0;

    border: 0;

    background: var(--surface);

    box-shadow: none;
}


.hero-visual::before {
    content: "";

    position: absolute;

    width: 390px;

    height: 390px;

    right: -55px;

    bottom: -180px;

    border-radius: 50%;

    background: rgba(91, 92, 226, .08);
}


.hero-visual img {
    position: relative;

    z-index: 2;

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center center;
}


/* =========================================================
   DESKTOP REFINEMENT
   ========================================================= */

@media (min-width: 1100px) {

    .hero-copy-panel {
        padding-left: 58px;
        padding-right: 48px;
    }

    .hero-title {
        font-size: 64px;
    }

    .hero-description {
        font-size: 17px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .hero-grid {
        grid-template-columns: 1fr 0.85fr;

        min-height: 400px;
    }

    .hero-copy-panel {
        min-height: 400px;

        padding: 38px 30px 38px 38px;
    }

    .hero-visual {
        min-height: 400px;
    }

    .hero-title {
        font-size: clamp(42px, 6vw, 56px);
    }

    .hero-description {
        font-size: 15px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .hero-home {
        padding: 20px 0 25px;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        min-height: auto;

        border-radius: 24px;
    }

    .hero-copy-panel {
        min-height: auto;

        padding: 38px 25px 25px;

        border-radius: 0;
    }

    .hero-title {
        font-size: clamp(42px, 12vw, 58px);
    }

    .hero-description {
        font-size: 15px;

        line-height: 1.55;
    }

    .hero-search {
        width: 100%;
    }

    .hero-visual {
        min-height: 310px;

        height: 310px;
    }

    .hero-visual img {
        width: 100%;

        height: 310px;

        object-fit: cover;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .hero-copy-panel {
        padding: 30px 20px 22px;
    }

    .eyebrow {
        font-size: 9px;
    }

    .hero-title {
        font-size: 43px;

        letter-spacing: -.045em;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-search {
        flex-direction: column;

        align-items: stretch;

        padding: 6px;
    }

    .hero-search input {
        height: 42px;
    }

    .hero-search button {
        width: 100%;
    }

    .hero-visual {
        min-height: 260px;

        height: 260px;
    }

    .hero-visual img {
        height: 260px;
    }

}

.section {
    padding: 42px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 30px;
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -.035em;
    margin: 0;
}

.section-lead {
    color: var(--muted);
    margin: 7px 0 0;
    max-width: 760px;
}

.view-all {
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 17px;
}

.stat-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--ink);
    line-height: 1;
}

.stat-label {
    color: var(--muted);
    font-size: 12px;
    margin-top: 7px;
}

.task-grid,
.tool-grid,
.guide-grid,
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.content-card {
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 19px;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}

.card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.icon-box {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--brand) 11%, transparent);
    color: var(--brand);
}

.icon-box img {
    width: 27px;
    height: 27px;
}

.card-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--ink);
}

.card-description {
    color: var(--muted);
    font-size: 13px;
    margin: 8px 0 0;
}

.badge-soft {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    font-size: 10px;
    font-weight: 800;
}

.category-card {
    display: block;
    text-align: center;
}

.category-card .icon-box {
    margin: 0 auto 12px;
}

.category-card strong {
    display: block;
    font-size: 14px;
}

.category-card span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.workflow {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.workflow-step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 16px 12px;
    min-height: 142px;
}

.workflow-number {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--brand);
    font-weight: 900;
    font-size: 12px;
}

.workflow-step strong {
    display: block;
    font-size: 13px;
    margin-top: 13px;
}

.workflow-step span {
    color: var(--muted);
    font-size: 11px;
    display: block;
    margin-top: 5px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.trust-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 17px;
}

.trust-card strong {
    display: block;
    font-size: 13px;
    margin-top: 8px;
}

.trust-card p {
    color: var(--muted);
    font-size: 11px;
    margin: 4px 0 0;
}

.page-head {
    padding: 45px 0 22px;
}

.page-head h1 {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -.04em;
    margin: 8px 0 6px;
}

.page-head p {
    color: var(--muted);
    max-width: 760px;
}

.filter-panel {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--surface);
    margin-bottom: 22px;
}

.form-control,
.form-select {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--border);
}

.form-control:focus,
.form-select:focus {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 15%, transparent);
}

.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 750;
}

.btn-brand:hover {
    background: #4949c6;
    border-color: #4949c6;
    color: #fff;
}

.detail-shell,
.tool-workspace,
.prose-shell {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.detail-shell {
    padding: 30px;
}

.prose-shell {
    padding: 30px;
}

.prose-shell h2 {
    margin-top: 28px;
    font-size: 24px;
    font-weight: 850;
}

.prose-shell h2:first-child {
    margin-top: 0;
}

.prose-shell h3 {
    margin-top: 23px;
    font-size: 19px;
    font-weight: 800;
}

.prose-shell p,
.prose-shell li {
    color: var(--muted);
    line-height: 1.8;
}

.prose-shell li {
    margin: 6px 0;
}

.tool-workspace {
    padding: 26px;
    min-height: 340px;
}

.result-box {
    padding: 17px;
    border-radius: 15px;
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.drop-zone {
    padding: 28px;
    border: 1.5px dashed var(--border);
    border-radius: 18px;
    background: var(--surface-2);
    text-align: center;
}

.preview-img {
    max-height: 260px;
    display: none;
    margin: 15px auto;
    border-radius: 13px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.info-card {
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
}

.info-card strong {
    display: block;
    font-size: 13px;
}

.info-card p {
    color: var(--muted);
    font-size: 12px;
    margin: 5px 0 0;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.site-footer {
    margin-top: 60px;
    background: #171827;
    color: #c7cad9;
}

.footer-grid {
    padding: 45px 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-logo {
    width: 145px;
}

.footer-copy {
    max-width: 390px;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 15px;
}

.footer-small {
    max-width: 450px;
    font-size: 11px;
    color: #9296aa;
}

.site-footer h3 {
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 10px;
}

.site-footer a {
    display: block;
    color: #c7cad9;
    font-size: 12px;
    margin: 6px 0;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 15px 0 20px;
    border-top: 1px solid #2c2f40;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 10px;
    color: #8f93a6;
}

.legal-page {
    padding: 45px 0 20px;
}

.legal-title {
    font-size: 45px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.search-page {
    padding: 45px 0;
}

.search-hero {
    padding: 30px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.search-hero h1 {
    font-size: 38px;
    font-weight: 900;
}

@media(max-width:1050px) {
    .site-nav {
        gap: 0
    }

    .nav-link-custom,
    .nav-dropdown summary {
        padding: 8px 7px;
        font-size: 12px
    }

    .hero-grid {
        grid-template-columns: 1fr
    }

    .hero-visual {
        min-height: 300px
    }

    .task-grid,
    .tool-grid,
    .guide-grid,
    .category-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .workflow {
        grid-template-columns: repeat(3, 1fr)
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr)
    }

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

@media(max-width:780px) {
    .header-row {
        min-height: 66px
    }

    .mobile-nav-toggle {
        display: block
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        padding: 10px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 15px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch
    }

    .nav-open .site-nav {
        display: flex
    }

    .nav-dropdown-menu {
        position: static;
        width: auto;
        box-shadow: none;
        border: 0;
        background: var(--surface-2);
        margin: 4px
    }

    .header-actions {
        margin-left: 0
    }

    .brand-logo {
        width: 125px
    }

    .hero-copy-panel {
        padding: 32px 25px;
        min-height: 0
    }

    .hero-title {
        font-size: 46px
    }

    .stat-strip {
        grid-template-columns: repeat(2, 1fr)
    }

    .info-grid {
        grid-template-columns: 1fr
    }

    .footer-bottom {
        flex-direction: column
    }

    .page-head h1,
    .legal-title {
        font-size: 36px
    }
}

@media(max-width:560px) {
    .container-narrow {
        width: min(100% - 22px, 1180px)
    }

    .task-grid,
    .tool-grid,
    .guide-grid,
    .category-grid,
    .workflow,
    .trust-grid {
        grid-template-columns: 1fr
    }

    .hero-title {
        font-size: 40px
    }

    .hero-search {
        flex-direction: column
    }

    .hero-search button {
        width: 100%
    }

    .section-title {
        font-size: 26px
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .detail-shell,
    .prose-shell,
    .tool-workspace {
        padding: 20px
    }
}

.ad-slot {
    min-height: 90px;
    margin: 24px 0;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center
}

.ad-slot:before {
    content: "Advertisement";
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .08em;
    text-transform: uppercase
}

.adsbygoogle {
    z-index: 1
}

.theme-toggle img {
    width: 18px;
    height: 18px
}

.theme-sun,
.theme-moon {
    display: flex;
    align-items: center;
    justify-content: center
}

.theme-moon {
    display: none
}

html[data-theme="dark"] .theme-sun {
    display: none
}

html[data-theme="dark"] .theme-moon {
    display: flex
}

/* ---- Pagination (Bootstrap 5 view, styled to match brand) ---- */
.pagination {
    gap: 6px;
    flex-wrap: wrap
}

.page-link {
    border-radius: 10px !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    background: var(--surface) !important;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 13px
}

.page-link:hover {
    color: var(--brand) !important;
    background: color-mix(in srgb, var(--brand) 10%, transparent) !important;
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border)) !important
}

.page-item.active .page-link {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important
}

.page-item.disabled .page-link {
    opacity: .45;
    background: var(--surface-2) !important
}

/* ---- Colored icon variants (trending tasks / categories) ---- */
.icon-box.icon-blue {
    background: color-mix(in srgb, #2563eb 14%, transparent);
    color: #2563eb
}

.icon-box.icon-green {
    background: color-mix(in srgb, #16a34a 14%, transparent);
    color: #16a34a
}

.icon-box.icon-orange {
    background: color-mix(in srgb, #f97316 14%, transparent);
    color: #f97316
}

.icon-box.icon-red {
    background: color-mix(in srgb, #dc2626 14%, transparent);
    color: #dc2626
}

.icon-box.icon-teal {
    background: color-mix(in srgb, #0d9488 14%, transparent);
    color: #0d9488
}

.icon-box.icon-purple {
    background: color-mix(in srgb, #7c3aed 14%, transparent);
    color: #7c3aed
}

/* ---- Task/Guide dynamic detail widgets ---- */
.fee-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 18px 0
}

.fee-info-card {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2)
}

.fee-info-card strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin-bottom: 4px
}

.fee-info-card span {
    font-size: 15px;
    font-weight: 800
}

.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px
}

.step-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start
}

.step-list .step-num {
    flex: 0 0 26px;
    height: 26px;
    width: 26px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 14%, transparent);
    color: var(--brand);
    font-weight: 900;
    font-size: 12px;
    display: grid;
    place-items: center;
    margin-top: 2px
}

.checklist-preview {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.checklist-preview li {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    font-weight: 600
}

.checklist-preview li:before {
    content: "";
    flex: 0 0 18px;
    height: 18px;
    width: 18px;
    border-radius: 5px;
    background: #16a34a url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><path d="M5 13l4 4L19 7"/></svg>') center/12px no-repeat
}

/* ---- Task page flow strip (homepage, matches reference "TASK PAGE FLOW" box) ---- */
.flow-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow)
}

.flow-strip-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px
}

.flow-strip-step .icon-box {
    width: 44px;
    height: 44px;
    flex: 0 0 44px
}

.flow-strip-step span {
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    color: var(--text)
}

.flow-strip-arrow {
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 18px;
    margin: 0 2px
}

.flow-strip-step.is-done .icon-box {
    background: color-mix(in srgb, #16a34a 16%, transparent);
    color: #16a34a
}

@media(max-width:780px) {
    .flow-strip {
        justify-content: center
    }

    .flow-strip-arrow {
        display: none
    }

    .flow-strip-step {
        min-width: 70px
    }
}
/* Blueprint task/guide step media */
.task-hero-media img,
.step-image img,
img.step-image {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.task-step-card {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}
.task-step-card:last-child { border-bottom: 0; }

/* INFYVO content visuals */
.content-card { overflow: hidden; }
.content-card-media { margin: -18px -18px 16px; }
.content-card-media img { display:block; width:100%; height:150px; object-fit:cover; border-bottom:1px solid var(--border); }
.step-image { overflow:hidden; }
.step-image img { display:block; }

/* Final task-guide blueprint layout */
.task-page{padding:24px 0 70px;background:var(--bg)}
.task-breadcrumb{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:5px 0 18px}.task-breadcrumb a:hover{color:var(--brand)}
.task-hero-card{display:grid;grid-template-columns:1.2fr .8fr;overflow:hidden;border:1px solid var(--border);border-radius:22px;background:linear-gradient(135deg,color-mix(in srgb,var(--surface) 94%,var(--brand) 6%),var(--surface));box-shadow:var(--shadow);margin-bottom:22px}.task-hero-copy{padding:34px}.task-hero-copy h1{font-size:clamp(32px,4vw,48px);line-height:1.08;letter-spacing:-.04em;margin:12px 0 8px}.task-hero-copy>p{max-width:700px;color:var(--muted);font-size:16px;margin:0 0 24px}.task-hero-image{min-height:270px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;padding:18px}.task-hero-image img{width:100%;height:100%;max-height:280px;object-fit:contain}.task-meta-row{display:flex;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:18px;gap:0}.task-meta-row>div{padding:0 22px;border-right:1px solid var(--border);min-width:150px}.task-meta-row>div:first-child{padding-left:0}.task-meta-row>div:last-child{border-right:0}.task-meta-row span,.task-fact span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}.task-meta-row strong{display:block;font-size:13px;margin-top:4px}
.task-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.task-section,.sidebar-card,.official-source-card,.task-fact{border:1px solid var(--border);background:var(--surface);border-radius:18px;box-shadow:0 10px 30px rgba(31,34,61,.05)}.task-section{padding:26px;margin-bottom:22px}.section-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--brand);font-weight:900}.task-section h2,.official-source-card h2,.related-section h2{font-size:24px;letter-spacing:-.025em;margin:7px 0 15px}.task-description{color:var(--muted)}.task-description h2{font-size:18px;color:var(--ink);margin-top:20px}.task-description p:last-child{margin-bottom:0}.task-overview-card{scroll-margin-top:100px}
.task-facts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:22px}.task-fact{padding:17px}.task-fact strong{display:block;font-size:13px;line-height:1.5;margin-top:5px}
.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:18px}.section-heading h2{margin-bottom:0}.step-count{font-size:11px;color:var(--muted);border:1px solid var(--border);padding:6px 9px;border-radius:999px}.workflow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.workflow-card{border:1px solid var(--border);border-radius:16px;padding:15px;background:var(--surface);overflow:hidden}.workflow-top{display:flex;gap:11px;align-items:flex-start}.workflow-number{flex:0 0 32px;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--brand) 12%,var(--surface));color:var(--brand);font-weight:900}.workflow-top h3{font-size:16px;margin:1px 0 3px}.workflow-top p{font-size:11px;color:var(--muted);margin:0}.workflow-image{display:block;margin:13px 0;border:1px solid var(--border);border-radius:11px;overflow:hidden;background:var(--surface-2)}.workflow-image img{width:100%;height:185px;object-fit:cover;display:block}.workflow-copy{font-size:13px;color:var(--muted)}.workflow-copy p{margin:8px 0}.workflow-copy strong{color:var(--ink)}.workflow-note,.workflow-warning{padding:9px 10px;border-radius:9px;margin-top:9px;background:var(--surface-2);font-size:11px}.workflow-note strong,.workflow-warning strong{display:block;color:var(--brand);margin-bottom:2px}.workflow-warning strong{color:var(--danger)}.workflow-action{font-size:12px;margin-top:7px}
.deadline-list{display:grid;gap:10px}.deadline-card{padding:14px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}.deadline-card strong{font-size:13px}.deadline-card p{font-size:12px;color:var(--muted);margin:4px 0}.deadline-card span{font-size:11px;font-weight:800}.task-checklist{list-style:none;padding:0;margin:0;display:grid;gap:8px}.task-checklist li{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:13px}.task-checklist li span{width:18px;height:18px;border:1px solid var(--border);border-radius:5px;display:inline-block;background:var(--surface-2)}
.official-source-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px;margin-bottom:22px;background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 10%,var(--surface)),var(--surface))}.official-source-card p{color:var(--muted);font-size:12px;margin:0;max-width:650px}.official-source-card h2{margin-bottom:7px}
.task-sidebar{display:grid;gap:14px}.sidebar-card{padding:18px}.sticky-task-flow{position:sticky;top:94px}.sidebar-card h3{font-size:16px;margin:8px 0}.sidebar-card p{font-size:12px;color:var(--muted);margin:0 0 12px}.flow-nav{display:grid;gap:7px;margin-top:12px}.flow-nav a{display:flex;gap:10px;align-items:center;padding:9px;border:1px solid var(--border);border-radius:11px;background:var(--surface)}.flow-nav a:hover{border-color:color-mix(in srgb,var(--brand) 40%,var(--border));background:var(--surface-2)}.flow-nav b{flex:0 0 25px;width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:color-mix(in srgb,var(--brand) 12%,var(--surface));color:var(--brand);font-size:11px}.flow-nav span{min-width:0}.flow-nav strong,.flow-nav small{display:block}.flow-nav strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.flow-nav small{font-size:9px;color:var(--muted);margin-top:2px}.sidebar-link{font-size:12px;color:var(--brand);font-weight:800}.related-section{padding:20px 0}.related-section h2{margin-bottom:15px}
html[data-theme="dark"] .task-hero-card{background:linear-gradient(135deg,var(--surface),color-mix(in srgb,var(--brand) 10%,var(--surface)))}
@media(max-width:1100px){.workflow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.task-hero-card,.task-layout{grid-template-columns:1fr}.task-sidebar{order:-1}.sticky-task-flow{position:static}.workflow-grid{grid-template-columns:1fr}.task-hero-image{min-height:220px}.task-meta-row>div{margin-bottom:10px}}
@media(max-width:600px){.task-page{padding-top:15px}.task-hero-copy{padding:23px}.task-section{padding:19px}.task-facts-grid{grid-template-columns:1fr}.task-meta-row{display:grid;grid-template-columns:1fr 1fr}.task-meta-row>div{padding:0 10px;min-width:0}.task-meta-row>div:first-child{padding-left:0}.task-meta-row>div:nth-child(2){border-right:0}.task-meta-row>div:last-child{grid-column:1/-1;border-top:1px solid var(--border);padding:10px 0 0}.official-source-card{align-items:flex-start;flex-direction:column}.workflow-image img{height:160px}}
