.rdpg {
    --rdpg-surface: var(--rd-card, #fff);
    --rdpg-text: var(--rd-deep, #202630);
    --rdpg-border: var(--rd-line, #dbe0e7);
    box-sizing: border-box;
    max-width: 100%;
    margin: 14px 0 18px;
    padding: 16px;
    border: 1px solid var(--rdpg-border);
    border-radius: 16px;
    background: var(--rdpg-surface);
    color: var(--rdpg-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    scroll-margin-top: 110px;
}

.rdpg .rdpg-title, .rdpg .rdpg-subtitle {
    margin: 0 0 8px;
    color: inherit;
    font-size: 16px;
    font-weight: 750;
    letter-spacing: normal;
    line-height: 1.35;
    text-transform: none;
}

.rdpg .rdpg-intro, .rdpg .rdpg-note, .rdpg .rdpg-status, .rdpg .rdpg-example {
    margin: 0 0 8px;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.rdpg .rdpg-form { margin: 8px 0 0; padding: 0; }
.rdpg .rdpg-form-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rdpg .rdpg-input {
    box-sizing: border-box;
    flex: 1 1 180px;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #858e9d;
    border-radius: 9px;
    background: var(--rdpg-surface);
    color: var(--rdpg-text);
    font: inherit;
}

.rdpg .rdpg-submit, .rdpg .rdpg-quote {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: #b9231d;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.rdpg .rdpg-submit:hover, .rdpg .rdpg-quote:hover { background: #971a16; color: #fff; }
.rdpg :is(a, button, input):focus-visible { outline: 2px solid #bf3028; outline-offset: 3px; }
.rdpg .rdpg-links, .rdpg .rdpg-topics { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 2px; }
.rdpg .rdpg-links a, .rdpg .rdpg-topics a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: inherit;
    font-weight: 650;
    text-underline-offset: 3px;
    text-decoration: underline;
}

.rdpg .rdpg-links a:hover, .rdpg .rdpg-topics a:hover { text-decoration-thickness: 2px; }
.rdpg .rdpg-status:empty, .rdpg .rdpg-results:empty { display: none; }
.rdpg .rdpg-status, .rdpg .rdpg-results { margin-top: 10px; }
.rdpg .rdpg-results { border-top: 1px solid var(--rdpg-border); padding-top: 12px; }
.rdpg .rdpg-result { padding: 12px 0; border-bottom: 1px solid var(--rdpg-border); }
.rdpg .rdpg-result:last-child { border-bottom: 0; padding-bottom: 0; }
.rdpg .rdpg-result > :last-child { margin-bottom: 0; }
.rdpg .rdpg-result .rdpg-subtitle a { color: inherit; text-underline-offset: 3px; }
.rdpg .rdpg-facts { display: grid; gap: 4px 12px; grid-template-columns: max-content minmax(0, 1fr); margin: 0 0 8px; }
.rdpg .rdpg-facts dt { font-weight: 700; margin: 0; }
.rdpg .rdpg-facts dd { min-width: 0; margin: 0; }
.rdpg .rdpg-facts a { color: inherit; text-decoration: underline; }
.rdpg .rdpg-list { list-style: disc; padding: 0 0 0 18px; margin: 0 0 8px; }
.rdpg .rdpg-list a { color: inherit; text-underline-offset: 3px; }
.rdpg .rdpg-list li + li { margin-top: 4px; }
.rdpg .rdpg-detail { margin-top: 4px; }

@media (max-width: 480px) {
    .rdpg { padding: 12px; }
    .rdpg .rdpg-form-row { align-items: stretch; }
    .rdpg .rdpg-input { flex-basis: 125px; }
    .rdpg .rdpg-links a, .rdpg .rdpg-topics a { min-height: 38px; }
}
