/* Shared page guides. Applied only after the original content is enhanced. */
body.page #Content .gk-guide-section {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
    padding-right: clamp(16px, 4vw, 28px) !important;
    padding-left: clamp(16px, 4vw, 28px) !important;
    background-color: #f7f9fc !important;
    background-image: none !important;
}

body.page #Content .gk-guide-host {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.page #Content .infobox.gk-page-guide {
    --gk-guide-ink: #132844;
    --gk-guide-copy: #4b6078;
    --gk-guide-line: #dce5ee;
    --gk-guide-accent: #b08334;
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1180px;
    min-width: 0;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--gk-guide-ink);
    text-align: left !important;
}

body.page #Content .gk-page-guide *,
body.page #Content .gk-page-guide *::before,
body.page #Content .gk-page-guide *::after {
    box-sizing: border-box;
}

body.page #Content .gk-page-guide > h3.title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 7px !important;
    padding: 0 !important;
    color: #62738a !important;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.5 !important;
    letter-spacing: 0.02em;
    text-align: left !important;
}

body.page #Content .gk-page-guide > h3.title::before {
    content: "";
    flex: 0 0 20px;
    height: 2px;
    background: var(--gk-guide-accent);
}

body.page #Content .gk-page-guide.gk-guide-source > h3.title {
    color: var(--gk-guide-ink) !important;
    font-size: 24px !important;
    margin-bottom: 18px !important;
}

body.page #Content .gk-page-guide > .gk-guide-summary {
    max-width: 100%;
    margin: 0 0 18px !important;
    padding: 0 !important;
    color: var(--gk-guide-ink) !important;
    font-size: clamp(22px, 1.9vw, 28px) !important;
    font-weight: 700;
    line-height: 1.42 !important;
    letter-spacing: -0.045em;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

body.page #Content .gk-page-guide > .infobox_wrapper {
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
}

body.page #Content .gk-page-guide > .infobox_wrapper > ul {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.page #Content .gk-page-guide[data-card-count="1"] > .infobox_wrapper > ul {
    grid-template-columns: minmax(0, 1fr) !important;
}

body.page #Content .gk-page-guide[data-card-count="2"] > .infobox_wrapper > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.page #Content .gk-page-guide > .infobox_wrapper > ul > li.gk-guide-card {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    width: auto;
    min-width: 0;
    margin: 0 !important;
    padding: 17px 18px !important;
    border: 1px solid var(--gk-guide-line) !important;
    border-radius: 13px;
    background: #f0f4f9 !important;
    color: var(--gk-guide-copy) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    list-style: none !important;
    text-align: left;
    box-shadow: 0 2px 6px rgba(19, 40, 68, 0.025);
}

/* Remove the BeTheme checklist marker, which otherwise doubles the SVG icon. */
body.page #Content .gk-page-guide > .infobox_wrapper > ul > li.gk-guide-card::before,
body.page #Content .gk-page-guide > .infobox_wrapper > ul > li.gk-guide-card::after {
    display: none !important;
    content: none !important;
}

body.page #Content .gk-page-guide .gk-guide-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    background: #edf3fa;
    color: #24486e;
    line-height: 1;
}

body.page #Content .gk-page-guide .gk-guide-icon > svg {
    display: block;
    width: 21px;
    height: 21px;
    max-width: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.page #Content .gk-page-guide .gk-guide-copy {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

body.page #Content .gk-page-guide .gk-guide-card-title {
    display: block;
    margin: 0 0 4px !important;
    padding: 0 !important;
    color: var(--gk-guide-ink) !important;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.5 !important;
    letter-spacing: -0.025em;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

body.page #Content .gk-page-guide .gk-guide-card-text {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--gk-guide-copy) !important;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.65 !important;
    letter-spacing: -0.01em;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

body.page #Content .gk-page-guide > .gk-guide-cue {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 13px 0 0 !important;
    padding: 0 !important;
    color: #586d85 !important;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.65 !important;
    letter-spacing: -0.01em;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

body.page #Content .gk-page-guide > .gk-guide-cue::before {
    content: "\2193";
    flex: 0 0 auto;
    color: var(--gk-guide-accent);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

/* Additional explanation stays available without lengthening the first view. */
body.page #Content .gk-page-guide .gk-guide-details {
    margin: 13px 0 0;
    padding: 0;
    color: var(--gk-guide-copy);
    font-size: 14px;
    line-height: 1.75;
}

body.page #Content .gk-page-guide .gk-guide-details > summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    margin: 0;
    padding: 4px 0;
    color: #315575;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
    border-radius: 3px;
    text-decoration: underline;
    text-decoration-color: #c4d3e1;
    text-underline-offset: 4px;
}

body.page #Content .gk-page-guide .gk-guide-details > summary::-webkit-details-marker {
    display: none;
}

body.page #Content .gk-page-guide .gk-guide-details > summary::after {
    content: "";
    width: 6px;
    height: 6px;
    margin: -3px 2px 0;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

body.page #Content .gk-page-guide .gk-guide-details[open] > summary::after {
    margin-top: 2px;
    transform: rotate(225deg);
}

body.page #Content .gk-page-guide .gk-guide-details > summary:hover {
    color: var(--gk-guide-ink);
    text-decoration-color: currentColor;
}

body.page #Content .gk-page-guide .gk-guide-original {
    margin: 7px 0 0;
    padding: 14px 17px;
    border: 1px solid var(--gk-guide-line);
    border-radius: 10px;
    background: #fffdf8;
    color: var(--gk-guide-copy);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

body.page #Content .gk-page-guide .gk-guide-original > :first-child {
    margin-top: 0;
}

body.page #Content .gk-page-guide .gk-guide-original > :last-child {
    margin-bottom: 0;
}

body.page #Content .gk-page-guide .gk-guide-original ul,
body.page #Content .gk-page-guide .gk-guide-original ol {
    margin: 8px 0;
    padding-left: 1.4em;
}

body.page #Content .gk-page-guide .gk-guide-original li {
    display: list-item;
    margin: 4px 0;
    padding: 0;
    border: 0;
    line-height: 1.75;
}

body.page #Content .gk-page-guide .gk-guide-original li::before {
    content: none !important;
}

body.page #Content .gk-page-guide a {
    color: #244f7b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.page #Content .gk-page-guide a:focus-visible,
body.page #Content .gk-page-guide button:focus-visible,
body.page #Content .gk-page-guide summary:focus-visible {
    outline: 2px solid #315b88;
    outline-offset: 4px;
}

@media (min-width: 1120px) {
    body.page #Content .gk-page-guide[data-card-count="4"] > .infobox_wrapper > ul {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    body.page #Content .gk-page-guide[data-card-count="4"] > .infobox_wrapper > ul > li.gk-guide-card {
        gap: 10px;
        padding: 16px !important;
    }
}

@media (min-width: 768px) and (max-width: 1119px) {
    body.page #Content .gk-page-guide[data-card-count="4"] > .infobox_wrapper > ul {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.page #Content .gk-page-guide > .infobox_wrapper > ul > li.gk-guide-card {
        gap: 10px;
        padding: 15px 14px !important;
    }

    body.page #Content .gk-page-guide .gk-guide-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 767px) {
    body.page #Content .gk-guide-section {
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }

    body.page #Content .gk-page-guide > h3.title {
        margin-bottom: 6px !important;
        font-size: 12px !important;
    }

    body.page #Content .gk-page-guide > .gk-guide-summary {
        margin-bottom: 14px !important;
        font-size: 22px !important;
        line-height: 1.4 !important;
    }

    body.page #Content .gk-page-guide > .infobox_wrapper > ul,
    body.page #Content .gk-page-guide[data-card-count] > .infobox_wrapper > ul {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    body.page #Content .gk-page-guide > .infobox_wrapper > ul > li.gk-guide-card {
        gap: 11px;
        padding: 13px 14px !important;
        border-radius: 11px;
        box-shadow: none;
    }

    body.page #Content .gk-page-guide .gk-guide-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    body.page #Content .gk-page-guide .gk-guide-icon > svg {
        width: 19px;
        height: 19px;
    }

    body.page #Content .gk-page-guide .gk-guide-card-title {
        margin-bottom: 2px !important;
        font-size: 15px !important;
    }

    body.page #Content .gk-page-guide .gk-guide-card-text {
        font-size: 14px !important;
        line-height: 1.65 !important;
    }

    body.page #Content .gk-page-guide > .gk-guide-cue {
        margin-top: 11px !important;
        font-size: 12px !important;
    }

    body.page #Content .gk-page-guide .gk-guide-original {
        padding: 12px 14px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page #Content .gk-page-guide .gk-guide-details > summary::after {
        transition: none;
    }
}
