/* ===== role.css — หน้าเลือกบทบาท และหน้าผู้ปกครอง ===== */
.brand{text-align:left;border-radius:16px}
.brand .bt{display:block;font-size:inherit;color:inherit}
.rolehero{margin-top:24px;max-width:680px}
.roles{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:32px}
@media(max-width:860px){.roles{grid-template-columns:1fr}}
.rolecard{display:flex;flex-direction:column;align-items:flex-start;gap:12px;text-align:left;padding:24px;border-radius:24px;background:var(--surface);border:1px solid var(--line);box-shadow:0 18px 50px -34px rgba(91,45,145,.45);transition:transform .5s var(--ease),border-color .3s var(--ease),box-shadow .5s var(--ease)}
.rolecard:hover{transform:translateY(-4px);border-color:var(--brand-2);box-shadow:0 24px 48px -28px rgba(91,45,145,.55)}
.rolecard:active{transform:scale(.98)}
.rolecard .ico{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:var(--lav);color:var(--brand)}
.rolecard .ico svg{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rolecard b{font-size:20px;line-height:28px;font-weight:600}
.rolecard .d{font-size:14px;line-height:20px;color:var(--muted);text-wrap:pretty}
.rolecard .go{margin-top:auto;padding-top:8px;font-size:14px;line-height:20px;font-weight:600;color:var(--brand)}
.why{margin-top:48px}
.why h2{font-size:24px;line-height:32px;color:var(--brand)}
.whygrid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px}
@media(max-width:860px){.whygrid{grid-template-columns:1fr}}
.whyitem{padding:16px;border-radius:16px;background:var(--surface-2);border:1px solid var(--line)}
.whyitem b{display:block;font-size:16px;line-height:24px;font-weight:600;margin-bottom:4px}
.whyitem span{font-size:14px;line-height:20px;color:var(--muted);text-wrap:pretty}

/* --- หน้าผู้ปกครอง --- */
.ptitle{font-size:20px;line-height:28px;font-weight:600;color:var(--brand);margin-bottom:12px}
#pSid{width:100%;font:inherit;padding:12px 14px;border-radius:14px;border:1.5px solid var(--line);background:var(--bg);color:var(--ink)}
@media(prefers-reduced-motion:reduce){.rolecard,.rolecard:hover{transition:none;transform:none}}
.pwatch{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:14px;line-height:20px;color:var(--muted)}
.pwatch input{width:18px;height:18px;accent-color:var(--brand)}
.perr{min-height:20px;margin-top:8px;font-size:14px;line-height:20px;color:var(--bad)}
