/* Replace or Remove Google Fonts — admin styles (v1.7)
   Palette: ink #1e1e2f · violet #5a2ecc · violet-dark #47239e ·
   teal #00b39b · border #e5e2f0 · muted #6b6580 */

.rrgf-wrap {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 1060px;
    margin: 24px 20px 0 2px;
}
.rrgf-main { flex: 1 1 620px; min-width: 0; }
.rrgf-side { flex: 0 0 320px; }

/* ---- Cards ---- */
.rrgf-card {
    background: #fff;
    border: 1px solid #e5e2f0;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 1px 2px rgba(30, 30, 47, .04);
    position: relative;
    overflow: hidden;
}
.rrgf-main .rrgf-card + .rrgf-card { margin-top: 24px; }
.rrgf-main .rrgf-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5a2ecc, #00b39b);
}

.rrgf-card-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.rrgf-card h1 {
    margin: 0;
    padding: 0;
    font-size: 22px;
    font-weight: 650;
    color: #1e1e2f;
    letter-spacing: -.01em;
}
.rrgf-card h2 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 650;
    color: #1e1e2f;
}
.rrgf-version {
    font-size: 11px;
    font-weight: 600;
    color: #5a2ecc;
    background: #f3effc;
    border-radius: 20px;
    padding: 2px 10px;
}
.rrgf-lede, .rrgf-muted {
    color: #6b6580;
    font-size: 13px;
    margin: 8px 0 4px;
    max-width: 56em;
}

/* ---- Settings rows ---- */
.rrgf-card .form-table { margin-top: 8px; }
.rrgf-card .form-table th {
    width: 200px;
    padding: 18px 24px 18px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e1e2f;
}
.rrgf-card .form-table td { padding: 14px 0; }
.rrgf-card .form-table tr { border-bottom: 1px solid #f1eff8; }
.rrgf-card .form-table tr:last-child { border-bottom: none; }

.rrgf-desc {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0 0 14px !important;
    color: #6b6580;
    font-size: 13px;
    max-width: 46em;
}
.rrgf-desc a { color: #5a2ecc; }
.rrgf-note { color: #b45309; }

/* ---- Toggle switch (real checkbox underneath) ---- */
.rrgf-toggle {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    width: 40px;
    height: 22px;
}
.rrgf-toggle input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}
.rrgf-track {
    position: absolute;
    inset: 0;
    background: #d5d2e2;
    border-radius: 22px;
    transition: background .15s ease;
}
.rrgf-track::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 16px; height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(30, 30, 47, .25);
    transition: transform .15s ease;
}
.rrgf-toggle input:checked + .rrgf-track { background: #5a2ecc; }
.rrgf-toggle input:checked + .rrgf-track::after { transform: translateX(18px); }
.rrgf-toggle input:focus-visible + .rrgf-track {
    outline: 2px solid #5a2ecc;
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .rrgf-track, .rrgf-track::after { transition: none; }
}

/* ---- Buttons ---- */
.rrgf-card .button-primary {
    background: #5a2ecc;
    border-color: #5a2ecc;
    border-radius: 8px;
    padding: 2px 18px;
    font-weight: 600;
    text-shadow: none;
    box-shadow: none;
}
.rrgf-card .button-primary:hover,
.rrgf-card .button-primary:focus {
    background: #47239e;
    border-color: #47239e;
}
.rrgf-verify-btn.button {
    margin-top: 10px;
    border: 1px solid #5a2ecc;
    color: #5a2ecc;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    padding: 2px 18px;
}
.rrgf-verify-btn.button:hover,
.rrgf-verify-btn.button:focus {
    background: #f3effc;
    border-color: #47239e;
    color: #47239e;
}

/* ---- Verify results ---- */
#rrgf-verify-result { margin-top: 14px; font-size: 13px; }
#rrgf-verify-result:empty { display: none; }
#rrgf-verify-result.rrgf-ok {
    color: #0b7a63;
    background: #e7f8f4;
    border: 1px solid #b8e9df;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 600;
}
#rrgf-verify-result.rrgf-bad {
    color: #1e1e2f;
    background: #fdf3f2;
    border: 1px solid #f3cfcb;
    border-radius: 8px;
    padding: 12px 14px;
}
#rrgf-verify-result.rrgf-bad > p:first-child { margin-top: 0; color: #b32d2e; }
#rrgf-verify-result ul { margin: 8px 0; padding-left: 18px; list-style: disc; }
#rrgf-verify-result code {
    font-size: 12px;
    word-break: break-all;
    color: #50575e;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 1px 5px;
}
#rrgf-verify-result .rrgf-inline-note {
    margin-bottom: 0;
    background: #fff8e5;
    border-left: 3px solid #dba617;
    border-radius: 0 6px 6px 0;
    padding: 8px 12px;
}
#rrgf-verify-result .rrgf-inline-note a { font-weight: 600; color: #5a2ecc; }

/* ---- Sidebar ---- */
.rrgf-brand-card { padding: 0; }
.rrgf-brand-band {
    background: linear-gradient(135deg, #47239e 0%, #5a2ecc 60%, #6e42e0 100%);
    color: #fff;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rrgf-brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
}
.rrgf-brand-tag {
    font-size: 12px;
    color: rgba(255, 255, 255, .75);
}
.rrgf-side-section { padding: 20px 24px; }
.rrgf-side-divided { border-top: 1px solid #f1eff8; }
.rrgf-side-section h3 {
    margin: 0 0 6px;
    font-size: 13.5px;
    font-weight: 650;
    color: #1e1e2f;
}
.rrgf-side-section p {
    margin: 0 0 12px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #6b6580;
}
.rrgf-btn-teal {
    display: inline-block;
    background: #00b39b;
    color: #fff;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 650;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background .15s ease;
}
.rrgf-btn-teal:hover, .rrgf-btn-teal:focus {
    background: #009583;
    color: #fff;
}
.rrgf-side-link {
    font-size: 12.5px;
    font-weight: 600;
    color: #5a2ecc;
    text-decoration: none;
}
.rrgf-side-link:hover, .rrgf-side-link:focus { color: #47239e; text-decoration: underline; }
.rrgf-side-foot {
    border-top: 1px solid #f1eff8;
    background: #fafafc;
    padding: 12px 24px;
    text-align: center;
}
.rrgf-side-foot a {
    font-size: 12px;
    color: #6b6580;
    text-decoration: none;
}
.rrgf-side-foot a:hover, .rrgf-side-foot a:focus { color: #5a2ecc; }

/* ---- Responsive ---- */
@media screen and (max-width: 960px) {
    .rrgf-wrap { flex-direction: column; }
    .rrgf-side { flex: 1 1 auto; width: 100%; max-width: 480px; }
}
@media screen and (max-width: 600px) {
    .rrgf-card { padding: 20px; }
    .rrgf-card .form-table th { width: auto; padding-bottom: 0; }
    .rrgf-desc { display: block; margin: 8px 0 0 !important; }
}
