.rpia-page {
    max-width: 1120px;
    margin: 0 auto;
}

.rpia-intro {
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.rpia-intro h2 {
    margin: .35rem 0 .65rem;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.rpia-intro p, .rpia-equivalences p {
    color: #657282;
    margin-bottom: 0;
}

.rpia-kicker {
    color: var(--themecolor, #0c7a75);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rpia-card {
    background: #fff;
    border: 1px solid #e5eaee;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(29, 58, 74, .08);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.rpia-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1.4rem;
}

.rpia-search-form .form-control {
    border-color: #cfd9df;
    min-height: 48px;
}

.rpia-search-form .form-label {
    color: #263641;
    font-weight: 700;
}

.rpia-info-link {
    background: transparent;
    border: 0;
    color: var(--themecolor, #0c7a75);
    font-size: .9rem;
    font-weight: 700;
    padding: 0;
    text-decoration: underline;
}

.rpia-results {
    border-top: 1px solid #e7edf0;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.rpia-results h4 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.rpia-results th {
    color: #70808b;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.rpia-badge {
    background: #e8f5f3;
    border-radius: 999px;
    color: #176b64;
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    padding: .3rem .6rem;
}

.rpia-empty {
    background: #f5f8fa;
    border-radius: 8px;
    color: #53636d;
    padding: 1rem;
}

.rpia-empty i {
    color: var(--themecolor, #0c7a75);
    margin-right: .4rem;
}

.rpia-country-list {
    border-top: 1px solid #e8edef;
    max-height: 340px;
    overflow-y: auto;
}

.rpia-country {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #e8edef;
    color: #2b3a45;
    display: flex;
    font-weight: 600;
    gap: .75rem;
    padding: .78rem .25rem;
    text-align: left;
    width: 100%;
}

.rpia-country:hover, .rpia-country:focus, .rpia-country.is-selected {
    color: var(--themecolor, #0c7a75);
}

.rpia-country span:first-child {
    font-size: 1.4rem;
    line-height: 1;
}

.rpia-country i {
    font-size: .8rem;
    margin-left: auto;
}

.rpia-equivalence-label {
    color: #56716e;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rpia-modal {
    display: none;
    inset: 0;
    position: fixed;
    z-index: 2000;
}

.rpia-modal.is-open {
    display: block;
}

.rpia-modal__backdrop {
    background: rgba(14, 30, 40, .58);
    inset: 0;
    position: absolute;
}

.rpia-modal__panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    left: 50%;
    max-width: 480px;
    padding: 2rem;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2rem);
}

.rpia-modal__panel h3 {
    margin: .4rem 0 1rem;
}

.rpia-modal__panel p {
    color: #60707b;
}

.rpia-modal__close {
    background: transparent;
    border: 0;
    color: #62717b;
    font-size: 2rem;
    line-height: 1;
    position: absolute;
    right: 1rem;
    top: .8rem;
}

.rpia-license-example {
    background: #f4f7f8;
    border: 1px dashed #b9c8ce;
    border-radius: 10px;
    margin: 1.25rem 0;
    padding: 1rem;
}

.rpia-license-example span {
    color: #687984;
    display: block;
    font-size: .8rem;
}

.rpia-license-example strong {
    color: #1f5150;
    font-size: 1.25rem;
    letter-spacing: .08em;
}

body.rpia-modal-open {
    overflow: hidden;
}

.rpia-country-flag {
    object-fit: contain;
}

.rpia-country-detail {
    white-space: pre-line;
}
