/* ธีมหน้าเว็บครู — ใช้ร่วมกันทั้งหน้าแก้ไข (teacher_pa_report.php) และหน้าเผยแพร่ (teacher_pa_public.php) */
.frame{container-type:inline-size;background:#fff;overflow:clip}
/* ---------- ธีมของหน้าเว็บครู ---------- */
.ph img,.crest img,.lg img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.site{--a:#1550c8;--f:'Sarabun';font-family:var(--f),sans-serif;color:#20293a}
.site h2{font-size:19px;margin:0 0 12px}
.site p{line-height:1.85;margin:0 0 10px;white-space:pre-wrap}
.hero{padding:38px 34px}
.avatar{width:96px;height:96px;border-radius:50%;background:var(--a);color:#fff;display:grid;place-items:center;font-size:34px;font-weight:700}
.name{font-size:27px;font-weight:700;margin:0}
.role{color:#66718a;margin:5px 0 0;font-size:14px}
.body{padding:0 34px 40px}
.sec{padding:22px 0;border-top:1px solid #e8ecf4}
.frame.mobile .hero{padding:26px 20px}
.frame.mobile .body{padding:0 20px 30px}

/* ================= ธีมสถานศึกษา (3 คอลัมน์) ================= */
.t-official{background:var(--a2,#f2f4f7)}
.t-official .topbar{background:var(--a);padding:12px 18px;display:flex;align-items:center;gap:13px}
.t-official .crest{width:52px;height:52px;border-radius:50%;background:#fff;color:var(--a);display:grid;place-items:center;font-size:21px;font-weight:700;flex:none;border:2px solid rgba(255,255,255,.6)}
.t-official .orgname{color:#fff;line-height:1.35}
.t-official .orgname b{display:block;font-size:17px}
.t-official .orgname span{font-size:11px;opacity:.85;letter-spacing:.4px}
.t-official .nav{background:rgba(0,0,0,.18);display:flex;flex-wrap:wrap;gap:2px;padding:0 10px}
.t-official .nav a{color:#fff;font-size:12px;padding:9px 11px;text-decoration:none;white-space:nowrap;opacity:.92}
.t-official .nav a:first-child{background:rgba(255,255,255,.16);font-weight:600}
.t-official .marquee{background:#fff;border-top:2px solid var(--a);padding:9px 16px;font-size:12.5px;color:var(--a);text-align:right;overflow:hidden;white-space:nowrap}
.t-official .cols{display:grid;grid-template-columns:210px 1fr 210px;gap:13px;padding:14px}
.t-official .card{background:#fff;border-radius:7px;box-shadow:0 1px 4px rgba(20,30,60,.09);overflow:hidden;margin-bottom:13px}
.t-official .card h3{margin:0;background:var(--a);color:#fff;font-size:13.5px;padding:9px 12px;text-align:center;font-weight:600}
.t-official .card .in{padding:11px 13px;font-size:12.5px;line-height:1.75}
.t-official .menu{list-style:none;margin:0;padding:6px 0}
.t-official .menu li{padding:7px 13px;font-size:12.5px;border-bottom:1px dotted #dfe4ec;color:#39435a}
.t-official .menu li:last-child{border:0}
.t-official .menu li::before{content:'❖';color:var(--a);margin-right:7px;font-size:10px}
.t-official .portrait{background:#fff;border-radius:7px;box-shadow:0 1px 4px rgba(20,30,60,.09);padding:14px;text-align:center;margin-bottom:13px}
.t-official .portrait .ph{overflow:hidden;width:104px;height:132px;margin:0 auto 10px;border-radius:4px;background:linear-gradient(160deg,var(--a),#0b1b3a);color:#fff;display:grid;place-items:center;font-size:38px;font-weight:700;border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.t-official .portrait b{display:block;font-size:14px;color:#1a2233}
.t-official .portrait span{display:block;font-size:11.5px;color:#66718a;margin-top:3px;line-height:1.5}
/* ---- สไลด์รูปตรงกลาง (สูงสุด 10 รูป) ---- */
.slider{position:relative;border-radius:7px;overflow:hidden;margin-bottom:13px;background:#0b1b3a;box-shadow:0 1px 4px rgba(20,30,60,.12)}
.track{display:flex;transition:transform .45s ease}
.slide{flex:0 0 100%;position:relative;aspect-ratio:16/9;overflow:hidden;min-height:0;background:linear-gradient(120deg,var(--a),#0b1b3a);display:grid;place-items:center}
/* วางรูปแบบ absolute เพื่อไม่ให้รูปที่สูงกว่ากรอบดันสัดส่วน 16:9 เพี้ยน */
.slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;display:block}
.slide .empty{color:rgba(255,255,255,.72);font-size:13px;text-align:center;padding:20px;line-height:1.9}
.cap{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(transparent,rgba(0,0,0,.72));color:#fff;font-size:12.5px;padding:22px 14px 10px}
.arw{position:absolute;top:50%;transform:translateY(-50%);width:32px;height:32px;border:0;border-radius:50%;background:rgba(255,255,255,.85);color:#1a2233;font-size:15px;cursor:pointer;display:grid;place-items:center;box-shadow:0 1px 5px rgba(0,0,0,.25)}
.arw.l{left:9px} .arw.r{right:9px}
.dots{position:absolute;bottom:9px;left:0;right:0;display:flex;justify-content:center;gap:6px}
.dots i{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer;display:block}
.t-official .dots i.on{background:#fff;width:19px;border-radius:4px}
.t-official .tabhead{display:flex;align-items:flex-end;justify-content:space-between;border-bottom:2px solid var(--a);margin-bottom:11px}
.t-official .tabhead b{background:var(--a);color:#fff;font-size:13px;padding:7px 15px;border-radius:5px 5px 0 0}
.t-official .tabhead i{font-style:normal;font-size:11.5px;color:#66718a;padding-bottom:5px}
.t-official .item{display:flex;gap:11px;padding:11px 0;border-bottom:1px dashed #dfe4ec}
.t-official .item:last-child{border:0}
.t-official .ico{width:42px;height:42px;border-radius:50%;background:var(--a);color:#fff;display:grid;place-items:center;font-size:15px;flex:none;font-weight:700}
.t-official .item .tx{font-size:12.5px;line-height:1.75;color:#2b3448;white-space:pre-wrap}
.t-official .item .tx b{display:block;color:var(--a);font-size:13px;margin-bottom:2px}
.t-official .foot{background:var(--a);color:rgba(255,255,255,.9);text-align:center;font-size:11.5px;padding:13px}
/* ================= ธีมเรซูเม่ (ไซด์บาร์ + พื้นสี) ================= */
.t-resume{background:var(--a2,#f5c542);display:flex;min-height:100%}
.t-resume .side{width:190px;flex:none;background:#2b2b2b;color:#fff;display:flex;flex-direction:column;
  position:sticky;top:0;align-self:flex-start;max-height:100vh;overflow-y:auto;z-index:2}
.t-resume .side::-webkit-scrollbar{width:6px}
.t-resume .side::-webkit-scrollbar-thumb{background:#4a4a4a;border-radius:3px}
/* สลับแถบข้างไปอยู่ฝั่งขวา */
.t-resume.side-right{flex-direction:row-reverse}
.t-resume .side .pic{aspect-ratio:1/1;background:linear-gradient(160deg,var(--a),#111);display:grid;place-items:center;font-size:52px;font-weight:700;color:#fff;overflow:hidden}
.t-resume .side .pic img{width:100%;height:100%;object-fit:cover;display:block}
/* ชื่อ-ตำแหน่งใต้รูปในแถบข้าง */
.t-resume .side .who{padding:13px 14px;text-align:center;border-bottom:1px solid #3d3d3d;background:rgba(255,255,255,.04)}
.t-resume .side .who b{display:block;font-size:14px;line-height:1.4}
.t-resume .side .who span{display:block;font-size:11px;color:#a8a8a8;margin-top:4px;line-height:1.55}
.t-resume .side .who i{display:block;width:26px;height:2px;background:var(--a);margin:8px auto 0}
.t-resume .side nav{padding:6px 0;flex:1}
.t-resume .side a{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#d8d8d8;text-decoration:none;font-size:12.5px;padding:10px 15px;border-bottom:1px solid #383838}
.t-resume .side a:first-child{color:var(--a);font-weight:600}
.t-resume .side a em{font-style:normal;opacity:.65;font-size:11px}
.t-resume .side .soc{display:flex;gap:7px;justify-content:center;padding:16px 0}
.t-resume .side .soc b{width:28px;height:28px;border-radius:5px;background:var(--a);color:#fff;display:grid;place-items:center;font-size:12px}
.t-resume .main{flex:1;padding:18px;display:flex;flex-direction:column;gap:16px;min-width:0}
.t-resume .rcard{background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.09)}
.t-resume .rhero{display:flex;align-items:center;gap:16px;padding:26px 30px}
.t-resume .rhero .im{color:var(--a);font-size:14px;font-weight:600;margin-bottom:2px}
.t-resume .rhero h1{margin:0;font-size:34px;font-weight:700;letter-spacing:-.5px;line-height:1.15}
.t-resume .rhero .sub{color:#6d6d6d;font-size:14px;margin-top:6px;border-right:2px solid var(--a);display:inline-block;padding-right:3px}
.t-resume .rhero .ph{overflow:hidden;width:120px;height:120px;flex:none;border-radius:6px;background:linear-gradient(160deg,var(--a),#2b2b2b);color:#fff;display:grid;place-items:center;font-size:44px;font-weight:700}
/* สไลด์รูปเต็มความกว้างการ์ด hero ของธีมเรซูเม่ */
.t-resume .rcard>.slider{margin:0;border-radius:0;box-shadow:none}
.t-resume .heroimg{aspect-ratio:16/9;overflow:hidden}
.t-resume .heroimg img{width:100%;height:100%;object-fit:cover;object-position:center center;display:block}
.t-resume .rcard>.slider .slide{aspect-ratio:16/9}
.t-resume .rbtns{display:flex}
.t-resume .rbtns span{flex:1;text-align:center;padding:13px;font-size:13.5px;font-weight:600;color:#fff}
.t-resume .rbtns span:first-child{background:#2b2b2b}
.t-resume .rbtns span:last-child{background:var(--a)}
.t-resume .rsec{padding:24px 30px}
.t-resume .rsec h2{margin:0 0 4px;font-size:23px;font-weight:700;letter-spacing:.5px;color:#3a3a3a}
.t-resume .rsec .ul{width:52px;height:3px;background:var(--a);margin-bottom:16px}
.t-resume .rsec p{font-size:13.5px;line-height:1.9;color:#555;white-space:pre-wrap;margin:0}
.t-resume .tl{border-left:2px solid #e6e6e6;margin-left:5px;padding-left:20px}
.t-resume .tl .row{position:relative;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid #eee}
.t-resume .tl .row:last-child{border:0;margin-bottom:0;padding-bottom:0}
.t-resume .tl .row::before{content:'';position:absolute;left:-27px;top:5px;width:11px;height:11px;border-radius:50%;background:var(--a);border:2px solid #fff;box-shadow:0 0 0 2px var(--a)}
.t-resume .tl .row b{display:block;font-size:16px;color:#3a3a3a;margin-bottom:4px}
.t-resume .gal{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.t-resume .gal figure{margin:0;position:relative;border-radius:4px;overflow:hidden;aspect-ratio:4/3;background:#eee}
.t-resume .gal img{width:100%;height:100%;object-fit:cover;display:block}
.t-resume .gal figcaption{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(transparent,rgba(0,0,0,.75));color:#fff;font-size:11.5px;padding:16px 8px 7px}

/* ================= ธีมพอร์ตโฟลิโอ (โมเดิร์น) ================= */
.t-picto{background:var(--a2,#fff)}
.t-picto .pnav{display:flex;align-items:center;gap:12px;padding:15px 28px}
.t-picto .pnav .lg{width:32px;height:32px;border-radius:50%;background:var(--a);color:#fff;display:grid;place-items:center;font-weight:700;font-size:14px}
.t-picto .pnav .bn{font-weight:700;font-size:17px;flex:1}
.t-picto .pnav a{color:#4a4f5c;text-decoration:none;font-size:12.5px}
.t-picto .pnav .cta{background:var(--a);color:#fff;padding:8px 17px;border-radius:22px;font-size:12.5px;font-weight:600}
.t-picto .phero{display:flex;align-items:center;gap:26px;padding:34px 28px 40px;
  background:radial-gradient(1100px 300px at 78% 0%,color-mix(in srgb,var(--a) 18%,#fff),#fff)}
.t-picto .heroslide{flex:1 1 auto;min-width:0}
.t-picto.photo-left .phero{flex-direction:row-reverse}
.t-picto .heroslide .slider{margin:0;border-radius:18px;box-shadow:0 14px 34px rgba(20,20,40,.16)}
.t-picto .noimg{aspect-ratio:16/9;border-radius:18px;background:#eef0f4;color:#8b91a0;font-size:13px;display:grid;place-items:center;text-align:center;padding:16px}
.t-picto .pcard{width:210px;flex:none;text-align:center}
.t-picto .pcard b{display:block;font-size:17px;margin-top:14px;letter-spacing:-.3px}
.t-picto .pcard span{display:block;font-size:12px;color:#5a6070;margin-top:5px;line-height:1.65}
.t-picto .pcard .ph{overflow:hidden;width:100%;aspect-ratio:3/3.4;border-radius:22px;background:linear-gradient(160deg,var(--a),#1b2230);color:#fff;display:grid;place-items:center;font-size:64px;font-weight:700;box-shadow:0 16px 40px rgba(20,20,40,.2)}
.t-picto .psec{padding:30px 28px;border-top:1px solid #eef0f4}
.t-picto .psec.alt{background:#f8f9fb}
.t-picto .psec h2{margin:0 0 14px;font-size:24px;font-weight:700;letter-spacing:-.4px}
.t-picto .psec p{font-size:13.5px;line-height:1.9;color:#5a6070;white-space:pre-wrap;margin:0}
.t-picto .steps{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}
.t-picto .steps div{background:#fff;border:1px solid #eaecf1;border-radius:14px;padding:17px}
.t-picto .steps b{display:block;color:var(--a);font-size:13px;margin-bottom:6px}
.t-picto .steps b i{font-style:normal;opacity:.45;margin-right:6px}
.t-picto .pcta{margin:26px 28px 0;background:#1b2230;color:#fff;border-radius:18px;padding:28px;text-align:center}
.t-picto .pcta b{font-size:19px;display:block;margin-bottom:6px}
.t-picto .pcta span{font-size:13px;opacity:.75;white-space:pre-wrap}
.t-picto .pfoot{text-align:center;color:#8b91a0;font-size:11.5px;padding:22px}

/* ยุบคอลัมน์ตามความกว้างจริงของหน้าเว็บ (ไม่ใช่ของจอ) */
.frame{container-type:inline-size}
@container (max-width:820px){
  .t-official .cols{grid-template-columns:190px 1fr}
  .t-official .cols>div:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:13px;align-items:start}
}
@container (max-width:600px){
  .t-official .cols{grid-template-columns:1fr}
  .t-official .cols>div:last-child{grid-template-columns:1fr}
  .t-official .nav{overflow-x:auto;flex-wrap:nowrap}
  .t-official .marquee{text-align:center}
}
@container (max-width:700px){
  .t-resume .side{width:150px}
  .t-resume .rhero{flex-direction:column;text-align:center}
  .t-resume .gal{grid-template-columns:repeat(2,1fr)}
  .t-picto .phero{flex-direction:column;text-align:center}
  .t-picto .pcard{width:100%;max-width:240px;margin:0 auto;order:-1}
  /* จอแคบ: ซ่อนเมนูข้อความ เหลือโลโก้ ชื่อ และปุ่มติดต่อ */
  .t-picto .pnav a{display:none}
  .t-picto .pnav .bn{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
  /* เรียงเป็นแนวตั้งแล้ว flex:1 จะทำให้สไลด์สูง 0 */
  .t-picto .heroslide{width:100%;flex:none}
  .t-picto .steps{grid-template-columns:1fr}
}
@container (max-width:470px){
  .t-resume{flex-direction:column}
  /* คอลัมน์เดียวแล้ว ต้องเลิก sticky ไม่งั้นแถบข้างจะค้างทับเนื้อหา */
  .t-resume .side{width:100%;position:static;max-height:none;overflow:visible}
  .t-resume.side-right{flex-direction:column}
  .t-resume .side .pic{aspect-ratio:16/7}
  .t-resume .gal{grid-template-columns:1fr}
}

/* ---- ลิงก์ในหน้าเว็บ ---- */
.site a{color:inherit}
.site .sec-anchor{scroll-margin-top:12px}
.t-official .menu li a,.t-official .nav a{text-decoration:none}
.t-picto .pnav a.cta{color:#fff;text-decoration:none}
.t-resume .rbtns a{flex:1;text-align:center;padding:13px;font-size:13.5px;font-weight:600;color:#fff;text-decoration:none;background:var(--a)}
/* ธีมพอร์ตโฟลิโอที่ไม่มีรูปสไลด์: ไม่เว้นช่องว่าง ให้การ์ดครูอยู่กลาง */
.t-picto .heroslide:empty{display:none}
.t-picto .phero:has(.heroslide:empty){justify-content:center}

/* ---- การพัฒนาตนเอง: การ์ดเกียรติบัตรอบรม เลื่อนทีละใบ ---- */
.tcar{container-type:inline-size;white-space:normal;margin-top:6px}
.tc-viewport{overflow:hidden;border-radius:10px}
.tc-track{display:flex;transition:transform .45s ease}
.tc-card{flex:0 0 100%;min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start;
  background:#fff;border:1px solid #e3e8f0;border-radius:10px;padding:14px}
.tc-img{border-radius:6px;overflow:hidden;box-shadow:0 2px 10px rgba(20,30,60,.14);background:#f5f6f8}
.tc-img img{width:100%;height:auto;display:block}
.tc-noimg{aspect-ratio:1.414/1;display:grid;place-items:center;font-size:46px;color:#b8c0cc}
.tc-title{font-weight:700;font-size:14px;line-height:1.55;color:#1a2233;margin-bottom:8px}
.tc-row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #eef1f5;font-size:12.5px}
.tc-row span{color:#66718a;white-space:nowrap}
.tc-row b{text-align:right;color:#1a2233}
.tc-ph-h{font-size:12.5px;font-weight:700;color:#39435a;margin:12px 0 7px}
.tc-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.tc-photos a{display:block;aspect-ratio:4/3;border-radius:6px;overflow:hidden;background:#eee}
.tc-photos img{width:100%;height:100%;object-fit:cover;display:block}
.tc-nav{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:10px}
.tc-nav button{width:32px;height:32px;border-radius:50%;border:1px solid #d5dbe5;background:#fff;font-size:17px;cursor:pointer;color:var(--a)}
.tc-nav button:hover{background:var(--a);color:#fff;border-color:var(--a)}
.tc-count{font-size:12px;color:#66718a;min-width:44px;text-align:center}
@container (max-width:480px){
  .tc-card{grid-template-columns:1fr}
}
/* ธีมสถานศึกษา: หัวข้อการพัฒนาตนเองใช้ความกว้างเต็ม */
.t-official .item.wide{display:block}
.t-official .item.wide .tx{white-space:normal}
.t-official .item.wide .tx>b{display:flex;align-items:center;gap:9px;margin-bottom:8px}
.t-official .ico.sm{width:30px;height:30px;font-size:13px}

/* ---- หน้าแยก (เช่น /<slug>/self-development) ---- */
.pg-back{display:inline-block;margin:0 0 12px;font-size:13px;font-weight:600;color:var(--a);text-decoration:none}
.pg-back:hover{text-decoration:underline}
.t-official .cols.one{grid-template-columns:1fr}
.t-official .cols.one>div:last-child{display:block}
.tc-more{display:inline-block;margin-top:8px;padding:6px 12px;border-radius:6px;background:var(--a);color:#fff !important;
  text-decoration:none;font-size:12.5px;font-weight:600;white-space:normal}
.tc-more:hover{filter:brightness(1.1)}
/* หน้าการพัฒนาตนเอง: ย่อการ์ดให้กะทัดรัด วางกลาง */
.frame.sub .tcar{max-width:560px;margin:6px auto 0}
.frame.sub .tc-card{grid-template-columns:5fr 6fr;gap:14px;padding:12px}
.frame.sub .tc-title{font-size:13px}
.frame.sub .tc-row{padding:6px 0;font-size:12px}
.frame.sub .tc-photos{gap:5px}
/* การ์ดทุกใบสูงเท่าใบที่สูงที่สุด เวลาเลื่อนกรอบจะไม่ยืดหด */
.tc-track{align-items:stretch}
.tc-card{height:auto}

/* ---- ส่วนหัวของหน้าแยก ---- */
.pg{padding:26px 24px 30px;max-width:720px;margin:0 auto}
.pg-head{text-align:center;margin-bottom:20px}
.pg-head .pg-back{display:inline-block;margin:0 0 14px;font-size:12.5px;font-weight:600;color:var(--a);text-decoration:none;
  padding:5px 12px;border:1px solid color-mix(in srgb,var(--a) 30%,#fff);border-radius:20px;background:#fff}
.pg-head .pg-back:hover{background:var(--a);color:#fff}
.pg-head h1{margin:0;font-size:26px;font-weight:700;letter-spacing:-.3px;color:#1a2233}
.pg-head h1::after{content:'';display:block;width:48px;height:3px;border-radius:2px;background:var(--a);margin:10px auto 0}
.pg-head p{margin:10px 0 0;font-size:13px;color:#66718a;white-space:normal}
.t-official .pg{background:#fff;border-radius:7px;box-shadow:0 1px 4px rgba(20,30,60,.09)}
.t-resume .pg{background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.09);max-width:none;width:100%}
.t-picto .pg{padding-top:34px}

/* ปุ่มกลับหน้าหลัก: มุมซ้ายบนสุดของหน้าแยก */
.pg{padding-top:14px}
.t-picto .pg{padding-top:14px}
.pg-top{margin:0 0 18px;text-align:left}
.pg-top .pg-back{display:inline-flex;align-items:center;gap:4px;margin:0;font-size:12.5px;font-weight:600;color:var(--a);
  text-decoration:none;padding:6px 14px;border:1px solid color-mix(in srgb,var(--a) 30%,#fff);border-radius:20px;background:#fff}
.pg-top .pg-back:hover{background:var(--a);color:#fff}

/* ปุ่มกลับหน้าหลักในแถบเมนูบน (หน้าแยก) */
.t-picto .pnav a.nav-back{display:inline-flex !important;align-items:center;color:var(--a);font-weight:600;padding:6px 14px;
  border:1px solid color-mix(in srgb,var(--a) 30%,#fff);border-radius:20px;background:#fff;text-decoration:none}
.t-picto .pnav a.nav-back:hover{background:var(--a);color:#fff}
.t-official .nav a.nav-back{background:rgba(255,255,255,.22);font-weight:600}
.t-resume .side a.nav-back{color:#fff;font-weight:600;background:rgba(255,255,255,.08)}
/* จอแคบ: การ์ดเรียงบน-ล่าง (ต้องเขียนซ้ำเพราะกฎของหน้าแยกเจาะจงกว่า) */
@container (max-width:480px){
  .pg .tc-card,.frame.sub .tc-card{grid-template-columns:1fr}
}

/* ---- ตัวกรองปีการศึกษา/ภาคเรียน ---- */
.tc-filter{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 16px;margin:0 0 16px}
.tc-filter label{display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;color:#39435a}
.tc-filter select{font:inherit;font-weight:500;font-size:12.5px;padding:6px 28px 6px 11px;border:1px solid #d5dbe5;border-radius:8px;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2366718a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance:none;appearance:none;color:#1a2233;cursor:pointer}
.tc-filter select:focus{outline:2px solid color-mix(in srgb,var(--a) 35%,#fff);border-color:var(--a)}
.tc-empty{max-width:560px;margin:0 auto;padding:40px 16px;text-align:center;color:#8b95a8;font-size:13px;
  background:#fff;border:1px dashed #d5dbe5;border-radius:10px}
/* ธีมเรซูเม่บนจอแคบ: รูปครูเป็นกรอบสี่เหลี่ยมจัตุรัสกลางแถบ ไม่ครอปเป็นแถบยาวจนหน้าขาด */
@container (max-width:470px){
  .t-resume .side .pic{aspect-ratio:1/1;width:160px;margin:20px auto 0;border-radius:50%;
    border:3px solid var(--a);box-shadow:0 6px 18px rgba(0,0,0,.35)}
  .t-resume .side .pic img{object-position:center 25%}
  .t-resume .side .who{border-top:0}
}
/* ธีมพอร์ตโฟลิโอบนจอแคบ: เรียงบน-ล่างเสมอ แม้ครูเลือก "รูปครูอยู่ฝั่งซ้าย" (กฎ photo-left เจาะจงกว่ากฎจอแคบเดิม) */
@container (max-width:700px){
  .t-picto.photo-left .phero{flex-direction:column}
}
