.fohow-complexes-guide {
    --complex-accent: #0f766e;
    --complex-accent-dark: #115e59;
    --complex-gold: #b7791f;
    --complex-soft: rgba(15, 118, 110, 0.08);
    --complex-gold-soft: rgba(183, 121, 31, 0.12);
    background:
        radial-gradient(circle at 18% 10%, rgba(15, 118, 110, 0.10), transparent 30%),
        radial-gradient(circle at 86% 18%, rgba(183, 121, 31, 0.11), transparent 32%),
        #f8f6ef;
}

.fohow-complexes-guide .meridian-guide__hero-copy {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.91)),
        linear-gradient(135deg, rgba(15, 118, 110, 0.10), rgba(183, 121, 31, 0.12));
}

.fohow-complexes-guide .meridian-guide__breadcrumbs {
    max-width: 1320px;
    margin: calc(var(--guide-header-height) + 12px) auto 0;
    padding: 0 20px;
    color: var(--guide-muted);
    font-size: 14px;
    line-height: 1.5;
}

.fohow-complexes-guide .meridian-guide__breadcrumbs a {
    color: var(--complex-accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.fohow-complexes-guide .meridian-guide__breadcrumbs span {
    margin: 0 6px;
}

.fohow-complexes-guide .meridian-guide__hero {
    max-width: 1320px;
    margin: 14px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 24px;
    align-items: stretch;
}

.fohow-complexes-guide .meridian-guide__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.fohow-complexes-guide .meridian-guide__stat {
    padding: 16px;
}

.fohow-complexes-guide .meridian-guide__stat strong {
    font-size: 26px;
}

.fohow-complexes-guide__hero-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
    max-width: 420px;
    margin: 0 auto;
}

.fohow-complexes-guide__hero-visual img {
    width: 100%;
    height: 154px;
    object-fit: contain;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.fohow-complexes-guide__summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0 0;
}

.fohow-complexes-guide__summary-item,
.fohow-complexes-guide__complex,
.fohow-complexes-guide__link-card {
    border: 1px solid var(--guide-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.96));
    box-shadow: var(--guide-shadow);
}

.fohow-complexes-guide__summary-item {
    padding: 16px;
    border-radius: 18px;
}

.fohow-complexes-guide__summary-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--guide-ink);
    font-size: 28px;
    line-height: 1;
}

.fohow-complexes-guide__summary-item span {
    color: var(--guide-text);
    font-size: 14px;
    line-height: 1.45;
}

.fohow-complexes-guide__section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

.fohow-complexes-guide__section-nav a,
.fohow-complexes-guide__product-link {
    color: var(--complex-accent-dark);
    font-weight: 800;
    text-decoration: none;
}

.fohow-complexes-guide__section-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 118, 110, 0.22);
    background: rgba(15, 118, 110, 0.08);
}

.fohow-complexes-guide__section-nav a:hover,
.fohow-complexes-guide__product-link:hover,
.fohow-complexes-guide__section-nav a:focus-within,
.fohow-complexes-guide__product-link:focus-within{
    color: var(--complex-gold);
}

.fohow-complexes-guide__group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.fohow-complexes-guide__complex {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border-radius: 20px;
}

.fohow-complexes-guide__complex img {
    width: 94px;
    height: 94px;
    object-fit: contain;
    border-radius: 14px;
    background: #f8fafc;
}

.fohow-complexes-guide__complex h3 {
    margin: 0 0 8px;
    color: var(--guide-ink);
    font-size: 18px;
    line-height: 1.3;
}

.fohow-complexes-guide__complex p {
    margin: 0;
    color: var(--guide-text);
    font-size: 15px;
    line-height: 1.6;
}

.fohow-complexes-guide__complex p + p,
.fohow-complexes-guide__official-list {
    margin-top: 8px;
}

.fohow-complexes-guide__official-list {
    margin-bottom: 0;
    padding-left: 18px;
    color: var(--guide-text);
    font-size: 15px;
    line-height: 1.55;
}

.fohow-complexes-guide__official-list li + li {
    margin-top: 4px;
}

.fohow-complexes-guide__mini-gallery,
.fohow-complexes-guide__mini-gallery.article-gallery {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    gap: 7px;
    max-width: 100%;
    margin-top: 10px;
    padding: 2px 2px 7px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.fohow-complexes-guide__mini-gallery figure {
    flex: 0 0 62px;
    min-width: 0;
    margin: 0 !important;
    padding: 5px 4px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.fohow-complexes-guide__mini-gallery img {
    display: block;
    width: 50px !important;
    height: 50px !important;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
}

.fohow-complexes-guide__mini-gallery figcaption {
    display: -webkit-box;
    min-height: 22px;
    margin-top: 4px;
    overflow: hidden;
    color: var(--guide-muted);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.fohow-complexes-guide__note-grid,
.fohow-complexes-guide__links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.fohow-complexes-guide__link-card {
    display: block;
    padding: 18px;
    border-radius: 18px;
    color: var(--guide-text);
    text-decoration: none;
}

.fohow-complexes-guide__link-card strong {
    display: block;
    margin-bottom: 7px;
    color: var(--guide-ink);
    font-size: 16px;
}

.fohow-complexes-guide__link-card span {
    display: block;
    font-size: 14px;
    line-height: 1.5;
}

.fohow-complexes-guide__link-card:hover strong,
.fohow-complexes-guide__link-card:focus-within strong{
    color: var(--complex-accent-dark);
}

.fohow-complexes-guide__product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(146px, 176px));
    justify-content: center;
    gap: 18px;
    margin-top: 20px;
}

.fohow-complexes-guide__product-card {
    width: 100%;
    max-width: 176px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--guide-border);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.96));
    box-shadow: var(--guide-shadow);
    text-align: center;
}

.fohow-complexes-guide__product-card img {
    display: block;
    width: min(100%, 142px);
    max-height: 142px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
}

.fohow-complexes-guide__product-card figcaption {
    margin-top: 10px;
    color: var(--guide-ink);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 800;
}

.fohow-complexes-guide .training-guide__warning a,
.fohow-complexes-guide .training-guide__note a {
    color: var(--complex-accent-dark);
    font-weight: 800;
}

html[data-effective-theme="dark"] .fohow-complexes-guide {
    --guide-ink: #f8fafc;
    --guide-text: #d1d5db;
    --guide-muted: #a7b0bd;
    --guide-border: rgba(148, 163, 184, 0.28);
    --guide-surface: #111827;
    background:
        radial-gradient(circle at 18% 10%, rgba(20, 184, 166, 0.12), transparent 30%),
        radial-gradient(circle at 86% 18%, rgba(245, 158, 11, 0.10), transparent 32%),
        #0b1120;
}

html[data-effective-theme="dark"] .fohow-complexes-guide .meridian-guide__hero-copy,
html[data-effective-theme="dark"] .fohow-complexes-guide .meridian-guide__panel,
html[data-effective-theme="dark"] .fohow-complexes-guide__summary-item,
html[data-effective-theme="dark"] .fohow-complexes-guide__complex,
html[data-effective-theme="dark"] .fohow-complexes-guide__link-card,
html[data-effective-theme="dark"] .fohow-complexes-guide__product-card {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.96));
    border-color: rgba(148, 163, 184, 0.28);
}

html[data-effective-theme="dark"] .fohow-complexes-guide__hero-visual img,
html[data-effective-theme="dark"] .fohow-complexes-guide__complex img,
html[data-effective-theme="dark"] .fohow-complexes-guide__product-card img {
    background: #f8fafc;
}

html[data-effective-theme="dark"] .fohow-complexes-guide__mini-gallery figure {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.74);
}

html[data-effective-theme="dark"] .fohow-complexes-guide__mini-gallery img {
    background: #f8fafc;
}

@media (max-width: 1080px) {
    .fohow-complexes-guide .meridian-guide__hero {
        grid-template-columns: 1fr;
    }

    .fohow-complexes-guide__summary,
    .fohow-complexes-guide__note-grid,
    .fohow-complexes-guide__links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fohow-complexes-guide__group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .fohow-complexes-guide .meridian-guide__breadcrumbs {
        display: none;
    }

    .fohow-complexes-guide .meridian-guide__hero {
        margin-top: calc(var(--guide-header-height) + 22px);
    }

    .fohow-complexes-guide .meridian-guide__stats {
        grid-template-columns: 1fr;
    }

    .fohow-complexes-guide__hero-visual {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 320px;
    }

    .fohow-complexes-guide__hero-visual img {
        height: 124px;
    }

    .fohow-complexes-guide__summary,
    .fohow-complexes-guide__note-grid,
    .fohow-complexes-guide__links-grid {
        grid-template-columns: 1fr;
    }

    .fohow-complexes-guide__complex {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .fohow-complexes-guide__complex img {
        width: 76px;
        height: 76px;
    }

    .fohow-complexes-guide__complex h3 {
        font-size: 16px;
    }

    .fohow-complexes-guide__complex p {
        font-size: 14px;
    }

    .fohow-complexes-guide__official-list {
        font-size: 14px;
    }

    .fohow-complexes-guide__mini-gallery img {
        width: 48px !important;
        height: 48px !important;
    }

    .fohow-complexes-guide__product-gallery {
        grid-template-columns: repeat(2, minmax(0, 156px));
        gap: 14px;
    }

    .fohow-complexes-guide__product-card {
        max-width: 156px;
        padding: 10px;
    }

    .fohow-complexes-guide__product-card img {
        width: min(100%, 122px);
        max-height: 122px;
    }
}

@media (max-width: 420px) {
    .fohow-complexes-guide__complex {
        grid-template-columns: 1fr;
    }

    .fohow-complexes-guide__complex img {
        width: 96px;
        height: 96px;
    }
}
