:root{
  --bg:#f5f7fa;
  --card:#ffffff;
  --ink:#1f2937;
  --muted:#6b7280;
  --line:#e5e7eb;
  --brand:#2f6f4f;
  --brand-dark:#1f4d37;
  --brand-light:#e7f2ec;
  --accent:#b45309;
  --radius:12px;
  --shadow:0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --maxw:1100px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.5;
}
a{color:var(--brand-dark)}
a:hover{color:var(--brand)}
img{max-width:100%;height:auto;display:block}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 18px 60px}

header.site-header{
  background:var(--brand);
  color:#fff;
  padding:22px 18px;
  margin-bottom:24px;
}
header.site-header .wrap{padding:0}
header.site-header h1{margin:0;font-size:1.5rem;font-weight:700}
header.site-header p{margin:4px 0 0;opacity:.92;font-size:.95rem}
header.site-header a{color:#fff;text-decoration:none}
header.site-header .backlink{display:inline-block;margin-bottom:8px;font-size:.9rem;opacity:.9}
header.site-header .backlink:before{content:"← "}

.linkrow{
  display:flex;flex-wrap:wrap;gap:10px;
  margin:0 0 26px;
}
.linkrow a{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:999px;
  padding:9px 16px;
  font-size:.92rem;
  font-weight:600;
  text-decoration:none;
  color:var(--brand-dark);
  box-shadow:var(--shadow);
}
.linkrow a:hover{border-color:var(--brand)}

h2.section-title{
  font-size:1.05rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--muted);
  margin:34px 0 12px;
  border-bottom:1px solid var(--line);
  padding-bottom:6px;
}

.teacher-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  gap:14px;
}
.teacher-card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px 18px;
  text-decoration:none;
  color:var(--ink);
  display:block;
  border:1px solid var(--line);
  transition:transform .1s ease, box-shadow .1s ease;
}
.teacher-card:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  border-color:var(--brand);
}
.teacher-card .role{
  display:inline-block;
  background:var(--brand-light);
  color:var(--brand-dark);
  font-weight:700;
  font-size:.82rem;
  padding:2px 9px;
  border-radius:6px;
  margin-bottom:8px;
}
.teacher-card .name{
  font-size:1.08rem;
  font-weight:700;
  margin:0 0 4px;
}
.teacher-card .phone{
  color:var(--muted);
  font-size:.9rem;
}
.teacher-card .phone a{color:var(--muted); text-decoration:none}

/* Teacher page */
.teacher-hero{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:center;
  justify-content:space-between;
}
.teacher-hero .info h1{margin:0 0 2px;font-size:1.5rem}
.teacher-hero .info .role{
  display:inline-block;
  background:rgba(255,255,255,.18);
  padding:2px 10px;
  border-radius:6px;
  font-weight:600;
  font-size:.9rem;
  margin-bottom:6px;
}
.teacher-hero .phone-box{
  background:rgba(255,255,255,.14);
  border-radius:var(--radius);
  padding:10px 18px;
  font-size:.95rem;
}
.teacher-hero .phone-box .big{font-size:1.25rem;font-weight:700}

.daytabs{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin:0 0 20px;
}
.daytabs a{
  padding:9px 16px;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  font-size:.92rem;
  background:var(--card);
  color:var(--ink);
  border:1px solid var(--line);
}
.daytabs a.active{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}
.daytabs a.today-marker:after{content:" •";}

.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid var(--line);
  padding:20px 22px;
  margin-bottom:22px;
}
.card h3{margin:0 0 12px;font-size:1.05rem;color:var(--brand-dark)}

.duty-list{list-style:none;margin:0;padding:0}
.duty-list li{
  display:flex;justify-content:space-between;gap:10px;
  padding:8px 0;
  border-bottom:1px dashed var(--line);
}
.duty-list li:last-child{border-bottom:none}
.duty-list .area{color:var(--muted);font-size:.9rem}
.empty-note{color:var(--muted);font-style:italic}

table.simple{
  width:100%;
  border-collapse:collapse;
  font-size:.92rem;
}
table.simple th, table.simple td{
  padding:8px 10px;
  border-bottom:1px solid var(--line);
  text-align:left;
}
table.simple th{color:var(--muted);font-weight:600;font-size:.82rem;text-transform:uppercase}
table.simple tr.highlight td{background:var(--brand-light);font-weight:700}

.schedule-img-wrap{overflow-x:auto}
.schedule-img-wrap img{border:1px solid var(--line);border-radius:8px}

.guide-btn{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  padding:12px 20px;
  border-radius:8px;
  font-weight:700;
  text-decoration:none;
}
.guide-btn:hover{background:#8a3d05;color:#fff}

.muted{color:var(--muted);font-size:.88rem}

footer.site-footer{
  text-align:center;
  color:var(--muted);
  font-size:.85rem;
  padding:30px 18px 10px;
}

@media (max-width: 600px){
  header.site-header h1{font-size:1.25rem}
  .teacher-hero{flex-direction:column;align-items:flex-start}
  .card{padding:16px}
}
