/* ===== layout.css — โครงหน้า: พื้นหลัง, แถบหัว, โลโก้, แท็บนักเรียน/ครู, การ์ด, หัวเรื่อง ===== */
.bg-art{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.bg-art i{position:absolute;border-radius:50%;background:var(--lav);opacity:.7}
.bg-art i:nth-child(1){width:520px;height:520px;right:-180px;top:-160px}
.bg-art i:nth-child(2){width:300px;height:300px;left:-120px;bottom:8%;opacity:.45}
.top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px clamp(16px,4vw,48px)}
.brand{display:flex;align-items:center;gap:12px}
.crest{width:50px;height:50px;border-radius:50%;background:#fff;object-fit:contain;display:block;box-shadow:0 4px 14px -6px rgba(91,45,145,.5)}
.brand b{display:block;font-size:16px;line-height:1.2}
.brand span{font-size:12.5px;color:var(--muted)}
.tabs{position:relative;display:flex;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:4px}
.tabs .pill{position:absolute;top:4px;bottom:4px;left:4px;width:0;border-radius:999px;background:var(--brand)}
.tabs button{position:relative;z-index:1;padding:8px 20px;border-radius:999px;font-weight:500;font-size:14.5px;color:var(--muted);transition:color .2s}
.tabs button[aria-selected="true"]{color:var(--brand-ink)}
.hero{display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(20px,4vw,56px);align-items:start;margin-top:12px}
@media(max-width:860px){.hero{grid-template-columns:1fr}}
.title{font-size:clamp(34px,6vw,60px);font-weight:700;line-height:1.12;letter-spacing:-.5px;color:var(--brand)}
.title span{display:block;overflow:hidden}
.title span em{display:block;font-style:normal}
.lead{margin-top:16px;color:var(--muted);max-width:46ch}
.card{background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:clamp(18px,3vw,28px);box-shadow:0 18px 50px -28px rgba(91,45,145,.45)}
.thead{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:28px 0 14px}
.thead h2{font-size:clamp(22px,3.5vw,30px);color:var(--brand)}
.thead p{font-size:13.5px;color:var(--muted)}
