.guide-page {
    --guide-line: #e0e8f2;
    color: var(--stocks-ink);
    background: linear-gradient(160deg, #f6f2ff 0%, #f8faff 36%, #f1fbf7 100%);
}

.guide-page .guide-hero {
    min-height: 0;
    background: linear-gradient(110deg, #51368a, #215078 57%, #15725c);
}

.guide-page .guide-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(24px, 6vw, 80px);
    padding-block: clamp(44px, 8vw, 90px);
}

.guide-page .guide-hero h1 {
    max-width: 20ch;
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 5.4vw, 3.75rem);
    overflow-wrap: anywhere;
}

.guide-page .guide-hero__copy {
    max-width: 72ch;
}

.guide-hero__copy :is(h2, p, blockquote) {
    color: #fff;
}

.guide-hero__copy p {
    line-height: 1.65;
}

.guide-hero__copy > :last-child,
.guide-hero__copy blockquote > :last-child {
    margin-bottom: 0;
}

.guide-hero__copy blockquote {
    margin: 20px 0 0;
    padding: 12px 16px;
    border-inline-start: 3px solid #84f1c7;
    border-radius: 0 10px 10px 0;
    background: #ffffff18;
    font-size: inherit;
}

.guide-hero__art {
    display: grid;
    width: clamp(122px, 16vw, 202px);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid #ffffff65;
    border-radius: 26%;
    background: linear-gradient(145deg, #fff, #def9ef);
    box-shadow: 0 20px 50px #14294c55;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
    padding-block: clamp(28px, 5vw, 64px);
}

.guide-card {
    min-width: 0;
    padding: clamp(18px, 3.2vw, 38px);
    border: 1px solid var(--guide-line);
    border-top: 3px solid #9b74d4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px #1d274e0b;
    line-height: 1.65;
}

.guide-card:nth-child(even) {
    border-top-color: #38b395;
}

.guide-card--wide,
.guide-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.guide-card > h2 {
    margin: 0 0 14px;
    color: var(--stocks-ink);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 700;
    line-height: 1.25;
}

.guide-card h3 {
    font-size: 1.125rem;
    line-height: 1.4;
}

.guide-card > :last-child {
    margin-bottom: 0;
}

.guide-card a {
    color: #254c96;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.guide-card :is(.advanced-table, details, .table-note) {
    border: 1px solid var(--guide-line);
    border-radius: 10px;
}

.guide-card .advanced-table {
    overflow: auto;
    margin-block: 16px;
    background: #fff;
}

.guide-card .advanced-table table {
    width: 100%;
    min-width: 460px;
    margin: 0;
}

.guide-card .advanced-table thead th {
    color: #fff;
    background: #35477c;
}

.guide-card :is(details, .table-note) {
    margin-block: 12px;
    padding: 12px 16px;
    background: #f5f8fd;
}

.guide-card summary {
    cursor: pointer;
    font-weight: 650;
}

.guide-card details p {
    margin: 8px 0 0;
}

.guide-card :is(summary, a):focus-visible {
    outline: 2px solid #654bab;
    outline-offset: 4px;
}

@media (max-width: 680px) {
    .guide-page .guide-hero__grid,
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .guide-hero__art {
        display: none;
    }
}
