.gpag-wrap {
    --gpag-primary: #173b6c;
    --gpag-primary-dark: #102d54;
    --gpag-accent: #b7892f;
    --gpag-text: #111111;
    --gpag-muted: #222222;
    --gpag-border: #dde5ee;
    --gpag-soft: #f7f9fc;
    width: 100%;
    max-width: 960px;
    margin: 20px auto 28px;
    color: var(--gpag-text) !important;
    font-size: 15px;
    line-height: 1.62;
}

.gpag-wrap *,
.gpag-wrap *::before,
.gpag-wrap *::after {
    box-sizing: border-box;
}

.gpag-language-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin: 0 0 12px;
}

.gpag-language-card {
    appearance: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 70px;
    padding: 10px 12px;
    border: 1px solid var(--gpag-border);
    border-radius: 9px;
    color: #111111 !important;
    background: #ffffff;
    box-shadow: 0 3px 11px rgba(29, 56, 88, .045);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.gpag-language-card:hover,
.gpag-language-card:focus-visible {
    transform: translateY(-1px);
    border-color: #aebdcd;
    box-shadow: 0 6px 15px rgba(29, 56, 88, .08);
    outline: none;
}

.gpag-language-card.is-active {
    border-color: #2b5b95;
    background: #f8fbff;
    box-shadow: 0 4px 13px rgba(23, 59, 108, .075);
}

.gpag-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #ffffff !important;
    background: var(--gpag-primary);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.gpag-card-copy strong,
.gpag-card-copy small {
    display: block;
}

.gpag-card-copy strong {
    margin-bottom: 2px;
    color: #111111 !important;
    font-size: 17.4px;
    font-weight: 750;
    line-height: 1.3;
}

.gpag-card-copy small {
    color: #222222 !important;
    font-size: 15px;
    line-height: 1.38;
}

.gpag-card-arrow {
    color: var(--gpag-primary) !important;
    font-size: 20.4px;
    font-weight: 650;
}

.gpag-content-shell {
    scroll-margin-top: 110px;
}

.gpag-guideline-panel {
    padding: 20px 22px 24px;
    border: 1px solid var(--gpag-border);
    border-radius: 10px;
    color: #111111 !important;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(29, 56, 88, .045);
}

.gpag-guideline-panel[hidden] {
    display: none !important;
}

/* The old version placed a large decorative card inside another card. Keep the
 * selected-language header simple so the page is compact and visually calm. */
.gpag-detail-header {
    position: relative;
    margin: 0 0 14px;
    padding: 0 0 13px;
    border: 0;
    border-bottom: 1px solid var(--gpag-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.gpag-detail-header::after {
    display: none;
}

.gpag-detail-header h2 {
    margin: 8px 0 3px;
    color: #111111 !important;
    font-size: clamp(21.6px, 2.16vw, 25.2px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.gpag-detail-header p {
    max-width: 780px;
    margin: 2px 0 0;
    color: #222222 !important;
    font-size: 15px;
    line-height: 1.55;
}

.gpag-guideline-panel h3 {
    margin: 19px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gpag-border);
    color: #111111 !important;
    font-size: 18.6px;
    font-weight: 750;
    line-height: 1.35;
}

.gpag-guideline-panel p,
.gpag-guideline-panel ul,
.gpag-guideline-panel ol,
.gpag-guideline-panel li,
.gpag-guideline-panel td,
.gpag-guideline-panel th,
.gpag-guideline-panel span,
.gpag-guideline-panel strong {
    color: #111111 !important;
}

.gpag-guideline-panel p,
.gpag-guideline-panel ul,
.gpag-guideline-panel ol {
    margin-top: 0;
    margin-bottom: 11px;
}

.gpag-guideline-panel li {
    margin-bottom: 4px;
}

.gpag-alert,
.gpag-example,
.gpag-note {
    margin: 0 0 13px;
    padding: 8px 10px;
    border-radius: 7px;
    color: #111111 !important;
    font-size: 15px;
}

.gpag-alert {
    border-left: 4px solid #bd4b45;
    background: #fff6f5;
}

.gpag-example {
    border: 1px solid #d9e1ea;
    background: var(--gpag-soft);
}

.gpag-note {
    border-left: 4px solid var(--gpag-accent);
    background: #fbf8f0;
}

.gpag-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 13px 0 17px;
}

.gpag-facts > div {
    padding: 9px 10px;
    border: 1px solid var(--gpag-border);
    border-radius: 8px;
    background: var(--gpag-soft);
}

.gpag-facts strong,
.gpag-facts span {
    display: block;
    color: #111111 !important;
}

.gpag-facts strong {
    margin-bottom: 2px;
    font-size: 15px;
    line-height: 1.4;
}

.gpag-facts span {
    font-size: 15px;
    line-height: 1.42;
}

.gpag-table {
    width: 100%;
    margin: 0 0 15px;
    border: 1px solid var(--gpag-border);
    border-collapse: collapse;
    color: #111111 !important;
    font-size: 15px;
}

.gpag-table th,
.gpag-table td {
    padding: 7px 9px;
    border-bottom: 1px solid var(--gpag-border);
    color: #111111 !important;
    text-align: left;
    vertical-align: top;
}

.gpag-table th {
    width: 34%;
    background: var(--gpag-soft);
    font-weight: 750;
}

@media (prefers-reduced-motion: reduce) {
    .gpag-language-card {
        transition: none;
    }
}

@media (max-width: 820px) {
    .gpag-wrap {
        margin-top: 16px;
        padding: 0 14px;
        font-size: 15px;
    }

    .gpag-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .gpag-wrap {
        margin-top: 12px;
        padding: 0 10px;
    }

    .gpag-language-grid,
    .gpag-facts {
        grid-template-columns: 1fr;
    }

    .gpag-guideline-panel {
        border-radius: 8px;
    }

    .gpag-detail-header h2 {
        font-size: 21.6px;
    }

    .gpag-language-card {
        min-height: 66px;
        padding: 9px 10px;
    }

    .gpag-card-copy strong {
        font-size: 15px;
    }

    .gpag-card-copy small {
        font-size: 15px;
    }

    .gpag-guideline-panel {
        padding: 16px;
    }

    .gpag-guideline-panel h3 {
        font-size: 18px;
    }
}
