:root {
    --rpbn-gold: #f7d66d;
    --rpbn-gold-deep: #d4a514;
    --rpbn-gold-ink: #6f4700;
    --rpbn-cream: #fff9e9;
    --rpbn-navy: #163f45;
}

.rpbn-page,
.rpbn-archive,
.rpbn-single { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; padding: 3.5rem 0 5rem; }
.rpbn-hero { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 3rem; align-items: center; padding: 3rem; border-radius: 28px; background: linear-gradient(135deg, #edf9f5, #fff9e9); }
.rpbn-hero h1,.rpbn-page h1,.rpbn-archive h1,.rpbn-single h1 { max-width: 850px; margin: .4rem 0 1rem; }
.rpbn-lead { max-width: 800px; font-size: 1.15rem; line-height: 1.7; color: #40565a; }
.rpbn-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.rpb-button--secondary { background: transparent !important; color: var(--rpbn-navy) !important; border: 1px solid var(--rpbn-navy); }
.rpbn-credential { display: flex; width: 100%; min-width: 0; align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid #e5cf75; border-radius: 14px; background: linear-gradient(135deg, #fffbed, #fff3c9); color: var(--rpbn-gold-ink); box-sizing: border-box; }
.rpbn-credential__icon { display: inline-grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #f3cb4d, #c89409); color: #604000; font-size: 1.05rem; font-weight: 900; box-shadow: 0 6px 15px rgba(126, 83, 0, .18); }
.rpbn-credential__copy { display: grid; min-width: 0; gap: 2px; line-height: 1.3; }
.rpbn-credential__copy strong { color: #6a4700; font-size: .86rem; }
.rpbn-credential__copy small { color: #75663c; font-size: .69rem; line-height: 1.4; }
.rpbn-credential--hero { max-width: 390px; margin: 1rem 0; }
.rpbn-credential--example { max-width: 390px; }
.rpbn-credential--card { margin-bottom: 1rem; }
.rpbn-credential--patient-card { margin: 0; }
.rpbn-seal-demo { display: grid; justify-items: center; gap: .75rem; text-align: center; }
.rpbn-seal-demo > span:first-child { font-weight: 800; color: var(--rpbn-gold-ink); }
.rpbn-seal-demo small { color: #655f52; }
.rpbn-section { margin-top: 4rem; }
.rpbn-section > h2 { max-width: 800px; }
.rpbn-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rpbn-three article,.rpbn-request-list article,.rpbn-supervisor-card { padding: 1.5rem; border: 1px solid #d9e4e2; border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(18, 58, 64, .06); }
.rpbn-three h3 { margin-top: 0; }
.rpbn-emphasis { padding: 2rem; border-left: 6px solid var(--rpbn-gold-deep); border-radius: 12px; background: var(--rpbn-cream); }
.rpbn-steps { display: grid; gap: 1rem; padding-left: 1.5rem; }
.rpbn-steps li::marker { color: var(--rpbn-gold-ink); font-weight: 800; }
.rpbn-faq { display: grid; gap: .75rem; }
.rpbn-faq details,.rpbn-request-list details { padding: 1rem 1.15rem; border: 1px solid #dbe6e3; border-radius: 12px; background: #fff; }
.rpbn-faq summary,.rpbn-request-list summary { cursor: pointer; font-weight: 750; }

.rpbn-supervisor-seal { position: absolute; z-index: 4; display: grid; place-items: center; align-content: center; width: 96px; height: 96px; padding: 8px; border: 3px solid #fff4be; border-radius: 50%; color: var(--rpbn-gold-ink); text-align: center; line-height: 1; background: radial-gradient(circle at 35% 25%, #fff9c9 0, var(--rpbn-gold) 40%, var(--rpbn-gold-deep) 100%); box-shadow: 0 7px 20px rgba(126, 83, 0, .30), inset 0 0 0 2px rgba(111, 71, 0, .22); }
.rpbn-supervisor-seal::before,.rpbn-supervisor-seal::after { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(111, 71, 0, .45); border-radius: inherit; }
.rpbn-supervisor-seal small,.rpbn-supervisor-seal span { position: relative; z-index: 1; display: block; text-transform: uppercase; letter-spacing: .06em; font-size: 9px; font-weight: 850; }
.rpbn-supervisor-seal b { position: relative; z-index: 1; display: block; margin: 3px 0; font-size: 24px; text-shadow: 0 1px #fff6b8; }
.rpbn-supervisor-seal--demo { position: relative; width: 128px; height: 128px; }
.rpbn-supervisor-seal--demo small,.rpbn-supervisor-seal--demo span { font-size: 11px; }
.rpbn-supervisor-seal--card,.rpbn-supervisor-seal--patient-card { top: 12px; left: 12px; width: 86px; height: 86px; }
.rpbn-supervisor-seal--profile,.rpbn-supervisor-seal--patient-profile { bottom: 14px; left: 14px; width: 112px; height: 112px; }
.rpbn-seal-note { padding: 1.1rem; border: 1px solid #ead48a; border-radius: 12px; background: var(--rpbn-cream); color: #56420b; }
.rpbn-seal-note strong { display: block; margin-bottom: .35rem; color: var(--rpbn-gold-ink); }

.rpbn-form-page { max-width: 980px; }
.rpbn-form { display: grid; gap: 1.2rem; margin-top: 2rem; }
.rpbn-form fieldset { padding: 1.5rem; border: 1px solid #d9e4e2; border-radius: 14px; }
.rpbn-form legend { padding: 0 .5rem; font-weight: 800; }
.rpbn-form label { display: grid; gap: .4rem; font-weight: 700; color: #253f43; }
.rpbn-form input,.rpbn-form select,.rpbn-form textarea,.rpbn-filter input,.rpbn-filter select { width: 100%; box-sizing: border-box; padding: .82rem .9rem; border: 1px solid #b9ccca; border-radius: 9px; background: #fff; color: #24383b; font: inherit; }
.rpbn-form textarea { resize: vertical; }
.rpbn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rpbn-consent { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 500 !important; }
.rpbn-consent input { width: auto; margin-top: .25rem; }
.rpbn-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rpbn-alert { padding: 1rem 1.2rem; margin: 1.5rem 0; border-radius: 10px; font-weight: 700; }
.rpbn-alert--success { background: #e7f8ef; color: #155b3d; }
.rpbn-alert--error { background: #fff0ee; color: #8a2c22; }
.rpbn-form--compact { margin-top: 1rem; }

.rpbn-board { margin-top: 3rem; }
.rpbn-request-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rpbn-request-list article > span { color: #526d70; font-size: .9rem; font-weight: 700; }
.rpbn-request-list dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem .75rem; font-size: .92rem; }
.rpbn-request-list dt { font-weight: 800; }
.rpbn-request-list dd { margin: 0; }

.rpbn-archive__head { padding: 2rem 0; }
.rpbn-filter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: .75rem; align-items: end; padding: 1.2rem; margin: 1.5rem 0 2.5rem; border-radius: 14px; background: #f0f7f5; }
.rpbn-filter label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 800; }
.rpbn-supervisor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.rpbn-supervisor-card { padding: 0; overflow: hidden; }
.rpbn-supervisor-card__photo { position: relative; display: block; aspect-ratio: 4 / 3; background: #e6f0ee; overflow: hidden; }
.rpbn-supervisor-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.rpbn-supervisor-card__body { padding: 1.35rem; }
.rpbn-supervisor-card__body > .rpb-credential { margin-bottom: .65rem; }
.rpbn-supervisor-card__body h2 { margin: 0 0 .35rem; font-size: 1.35rem; }
.rpbn-supervisor-card__meta { color: #587073; font-weight: 700; }
.rpbn-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0; }
.rpbn-tags span { padding: .35rem .6rem; border-radius: 999px; background: #edf6f4; color: #284f53; font-size: .82rem; font-weight: 700; }

.rpbn-single__hero { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 2.5rem; align-items: center; padding-bottom: 3rem; border-bottom: 1px solid #dce7e5; }
.rpbn-single__photo { position: relative; min-height: 320px; border-radius: 22px; overflow: hidden; background: #e5efed; }
.rpbn-single__photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.rpbn-single__hero .rpb-credential { margin: 1rem 0 .65rem; }
.rpbn-single__hero .rpb-credential + .rpbn-credential { margin-top: 0; }
.rpbn-single__body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2.5rem; margin-top: 3rem; }
.rpbn-single__sidebar { align-self: start; padding: 1.4rem; border: 1px solid #d9e4e2; border-radius: 16px; background: #fff; }
.rpbn-single__sidebar dl { display: grid; grid-template-columns: 1fr; gap: .25rem; }
.rpbn-single__sidebar dt { margin-top: .8rem; font-weight: 800; }
.rpbn-single__sidebar dd { margin: 0; }
.rpbn-prose section { margin-top: 2.2rem; }
.rpbn-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rpbn-admin-grid label { display: grid; gap: 5px; }
.rpbn-admin-grid input,.rpbn-admin-grid textarea { width: 100%; }

@media (max-width: 900px) {
    .rpbn-hero,.rpbn-single__hero,.rpbn-single__body { grid-template-columns: 1fr; }
    .rpbn-three,.rpbn-supervisor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rpbn-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rpbn-seal-demo { justify-self: start; }
}
@media (max-width: 620px) {
    .rpbn-page,.rpbn-archive,.rpbn-single { width: min(100% - 1.2rem, 1160px); padding-top: 2rem; }
    .rpbn-hero { padding: 1.4rem; }
    .rpbn-three,.rpbn-supervisor-grid,.rpbn-request-list,.rpbn-grid,.rpbn-filter,.rpbn-admin-grid { grid-template-columns: 1fr; }
    .rpbn-supervisor-seal--card,.rpbn-supervisor-seal--patient-card { width: 78px; height: 78px; }
    .rpbn-credential { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .rpbn-page * { scroll-behavior: auto !important; }
}
.rpbn-study-filter {
    display:flex;
    align-items:end;
    gap:14px;
    margin:28px 0;
    padding:18px;
    border:1px solid #d5e5e1;
    border-radius:18px;
    background:#f7fbfa;
}
.rpbn-study-filter label { flex:1; font-weight:800; }
.rpbn-study-filter select { display:block; width:100%; margin-top:7px; padding:12px; border:1px solid #c9dcd7; border-radius:10px; background:#fff; }
.rpbn-study-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin:26px 0; }
.rpbn-study-card { display:flex; flex-direction:column; gap:14px; padding:26px; border:1px solid #cfe1dc; border-radius:22px; background:#fff; box-shadow:0 12px 34px rgba(16,43,63,.06); }
.rpbn-study-card > span { color:#087e70; font-size:.72rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.rpbn-study-card h2 { margin:0; font-size:1.5rem; }
.rpbn-study-card p { margin:0; line-height:1.65; }
.rpbn-study-card dl { display:grid; grid-template-columns:auto 1fr; gap:5px 12px; margin:0; font-size:.84rem; }
.rpbn-study-card dt { color:#58706c; font-weight:800; }
.rpbn-study-card dd { margin:0; color:#183a47; }
.rpbn-study-card form { margin-top:auto; }
.rpbn-study-progress { height:10px; overflow:hidden; border-radius:999px; background:#e4efec; }
.rpbn-study-progress span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#0b8a7b,#56b68e); }
.rpbn-study-note { margin-top:22px; padding:18px; border-left:4px solid #0b8a7b; background:#f1f8f6; font-size:.84rem; }
.rpbn-supervisor-price { margin-top:1.25rem; padding:1.4rem; border:1px solid #e5cf75; border-radius:16px; background:linear-gradient(135deg,#fffbed,#fff6d8); }
.rpbn-supervisor-price strong { display:block; color:#6f4700; font-size:1.1rem; }
.rpbn-supervisor-price p { max-width:850px; }
.rpbn-study-intro { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr); gap:1.5rem; align-items:start; margin:2rem 0; padding:2rem; border:1px solid #d5e5e1; border-radius:22px; background:linear-gradient(135deg,#f4faf8,#fffaf0); }
.rpbn-study-intro h2 { margin-top:0; }
.rpbn-study-intro__facts { padding:1.25rem; border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(16,43,63,.06); }
.rpbn-study-intro__facts strong { color:#087e70; }
.rpbn-study-intro__facts ol { margin-bottom:0; padding-left:1.2rem; }
.rpbn-student-interest { margin-top:auto; padding:1rem; border:1px solid #d5e5e1; border-radius:14px; background:#f7fbfa; }
.rpbn-student-interest summary { cursor:pointer; color:#087e70; font-weight:850; }
.rpbn-student-interest .rpbn-form { margin-top:1rem; }
@media (max-width:760px) {
    .rpbn-study-grid { grid-template-columns:1fr; }
    .rpbn-study-filter { align-items:stretch; flex-direction:column; }
    .rpbn-study-intro { grid-template-columns:1fr; padding:1.3rem; }
}
