/* BAY School visual system — live kruart.online Golden UI authority + KRUART Ecosystem Asset Vault v2 */
:root{
  --bay-navy:#0b3d91;
  --bay-blue:#176de5;
  --bay-blue-2:#2f8cff;
  --bay-orange:#ff7a00;
  --bay-ink:#11325f;
  --bay-muted:#657d99;
  --bay-line:#dbe8f4;
  --bay-line-strong:#c7dcec;
  --bay-bg:#f5faff;
  --bay-raised:#f7fbff;
  --bay-soft:#eaf5ff;
  --bay-sky:#dff4ff;
  --bay-sky-2:#edf8ff;
  --bay-card:#fff;
  --bay-green:#16a36a;
  --bay-violet:#7667e8;
  --bay-radius-sm:12px;
  --bay-radius-md:16px;
  --bay-radius:22px;
  --bay-radius-lg:28px;
  --bay-shadow:0 10px 30px rgba(20,61,117,.075);
  --bay-shadow-float:0 20px 52px rgba(20,61,117,.12);
  --bay-touch:44px;
  --bay-max:1240px;
}
html{background:var(--bay-bg)}
body{
  background:var(--bay-bg);
  color:var(--bay-ink);
  font-family:"Noto Sans Thai","Leelawadee UI",Tahoma,system-ui,-apple-system,sans-serif;
}
a:focus-visible,button:focus-visible{outline:3px solid rgba(23,109,229,.28);outline-offset:3px}
/* Content must remain readable without JavaScript/IntersectionObserver. Motion is enhancement only. */
.reveal,.reveal.is-visible{opacity:1!important;transform:none!important;will-change:auto!important}
.topline{background:#fff;border-bottom:1px solid var(--bay-line);color:var(--bay-muted)}
.topline .container{min-height:34px;font-size:.76rem}
.topline .container:before{
  content:"BAY SCHOOL";
  margin-right:12px;padding:3px 8px;border-radius:999px;
  background:#eaf4ff;color:var(--bay-blue);font-weight:900;letter-spacing:.05em;
}
.topline .container:after{
  content:"";width:4px;height:4px;border-radius:50%;background:var(--bay-orange);
  position:absolute;margin-left:7px;
}
.topline-right a{color:var(--bay-muted);font-weight:750}
.site-header{
  background:rgba(255,255,255,.98);
  border-bottom:1px solid #e3edf6;
  box-shadow:0 5px 18px rgba(20,61,117,.05);
  backdrop-filter:none;
}
.navbar{min-height:76px}
.brand{gap:12px}
.brand-logo{
  width:48px;height:56px;padding:2px;object-fit:contain;
  filter:drop-shadow(0 5px 8px rgba(11,61,145,.08));
}
.brand-copy strong{font-size:1rem;color:var(--bay-navy);font-weight:950}
.brand-copy span{font-size:.72rem;color:var(--bay-muted);font-weight:760}
.brand-copy span:before{content:"BAY School · ";color:var(--bay-blue);font-weight:900}
.desktop-nav{gap:4px}
.desktop-nav>a{
  min-height:40px;padding:0 11px;border-radius:12px;color:#526b87;
  display:inline-flex;align-items:center;font-size:.84rem;font-weight:800;
}
.desktop-nav>a:hover{background:#f0f7ff;color:var(--bay-blue)}
.desktop-nav>a[aria-current="page"]{background:#e9f4ff;color:var(--bay-blue)}
.desktop-nav .nav-cta{
  margin-left:6px;background:var(--bay-navy);color:#fff;padding-inline:15px;
  box-shadow:0 9px 20px rgba(11,61,145,.16)
}
.desktop-nav .nav-cta:hover{background:#124fae;color:#fff}
.nav-toggle{border:1px solid var(--bay-line);background:#f6faff;color:var(--bay-navy);border-radius:14px}

.hero{
  padding:34px 0 42px;
  background:
    radial-gradient(circle at 5% 15%,rgba(255,122,0,.07),transparent 22%),
    radial-gradient(circle at 92% 7%,rgba(23,109,229,.10),transparent 28%),
    linear-gradient(180deg,#f7fcff 0%,#eef9ff 62%,#f6faff 100%);
}
.hero-grid{
  grid-template-columns:minmax(0,.88fr) minmax(520px,1.12fr);
  gap:42px;align-items:center;
}
.hero-copy{padding:32px 0}
.eyebrow{
  color:var(--bay-blue);font-size:.76rem;font-weight:950;letter-spacing:.08em
}
.eyebrow:before{
  width:7px;height:7px;background:var(--bay-orange);
  box-shadow:0 0 0 5px rgba(255,122,0,.10)
}
.hero h1{
  margin-top:16px;color:var(--bay-navy);font-size:clamp(3rem,5.25vw,5.25rem);
  line-height:.98;letter-spacing:-.055em;font-weight:950
}
.hero h1 em{color:var(--bay-blue);font-style:normal}
.hero h1 .warm{color:var(--bay-orange)}
.hero .lead{max-width:660px;color:#5f7692;font-size:1rem;line-height:1.85}
.hero-actions{margin:26px 0 20px}
.btn{
  border-radius:14px;min-height:46px;padding-inline:18px;
  font-weight:850;font-size:.9rem
}
.btn-primary{
  min-height:var(--bay-touch);border:0;
  background:linear-gradient(135deg,var(--bay-orange),#ff943f);
  box-shadow:0 8px 20px rgba(255,122,0,.18)
}
.btn-primary:hover{background:linear-gradient(135deg,#ef7200,#ff8a2d);box-shadow:0 9px 22px rgba(20,61,117,.10)}
.btn-secondary{border-color:var(--bay-line);box-shadow:none;color:var(--bay-navy)}
.hero-trust .pill{font-size:.76rem;padding:7px 10px;background:rgba(255,255,255,.78)}
.hero-media{min-height:430px}
.photo-frame{
  inset:14px 0 16px 0;border:1px solid #c9e5f8;border-radius:30px;
  background:#dff4ff url("/assets/images/school-community.webp") center/cover no-repeat;
  box-shadow:var(--bay-shadow-float)
}
.photo-frame img{opacity:0}
.photo-frame:after{
  background:
    linear-gradient(180deg,transparent 70%,rgba(11,61,145,.04)),
    linear-gradient(90deg,rgba(255,255,255,.08),transparent)
}
.float-card{
  border:1px solid #d9e7f5;border-radius:18px;padding:11px 13px;
  box-shadow:0 16px 35px rgba(20,61,117,.13)
}
.float-card .icon{
  background:#e7f3ff;color:var(--bay-blue);border-radius:13px
}
.fc-one{left:-20px;top:40px}
.fc-two{right:-14px;bottom:34px}
.spark{right:8px;top:-5px;width:54px;height:54px;border-radius:18px;background:linear-gradient(135deg,#ffb13b,var(--bay-orange))}

.quick-wrap{padding:8px 0 28px}
.quick-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.quick-card{
  min-height:142px;padding:17px;border:1px solid var(--bay-line);
  border-radius:18px;box-shadow:0 7px 20px rgba(20,61,117,.07);
  display:grid;grid-template-columns:44px 1fr;column-gap:13px;align-content:start
}
.quick-card:hover{transform:translateY(-2px);border-color:#b9d9f1;box-shadow:var(--bay-shadow)}
.quick-icon{
  grid-row:1/3;margin:0;width:42px;height:42px;border-radius:13px;
  background:#e9f4ff;color:var(--bay-blue)
}
.quick-card:nth-child(2) .quick-icon{background:#fff2e5;color:var(--bay-orange)}
.quick-card:nth-child(1){background:linear-gradient(145deg,#fff4dc,#fffaf0)}
.quick-card:nth-child(2){background:linear-gradient(145deg,#eaf6ff,#f8fcff)}
.quick-card:nth-child(3){background:linear-gradient(145deg,#f2efff,#fbfaff)}
.quick-card:nth-child(4){background:linear-gradient(145deg,#ecfaf4,#fbfffd)}
.quick-card:nth-child(3) .quick-icon{background:#f0edff;color:var(--bay-violet)}
.quick-card:nth-child(4) .quick-icon{background:#e9f8f1;color:var(--bay-green)}
.quick-card h3{font-size:.98rem;margin:2px 0 4px;color:var(--bay-navy)}
.quick-card p{font-size:.78rem;line-height:1.55}

.section{padding:72px 0}
.section-soft{background:#eef8ff;border-block:1px solid #e1f0fb}
.section-head{margin-bottom:28px}
.section-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.section-actions .btn{white-space:nowrap}
.section-head h2{color:var(--bay-navy);font-size:clamp(2rem,4vw,3.35rem);letter-spacing:-.04em}
.section-head .lead{max-width:620px;color:var(--bay-muted);font-size:.94rem}
.story-grid{grid-template-columns:.88fr 1.12fr;gap:18px}
.story-copy{
  padding:28px;border-radius:24px;background:
  radial-gradient(circle at 92% 5%,rgba(255,122,0,.20),transparent 30%),
  linear-gradient(145deg,#0b3d91,#176de5);box-shadow:var(--bay-shadow)
}
.story-copy h3{font-size:1.55rem;line-height:1.35;margin-top:14px}
.story-copy p{font-size:.9rem;line-height:1.75}
.story-stats{gap:10px;margin-top:18px}
.story-stat{border-radius:15px;padding:13px}
.story-photo{min-height:400px;border-radius:24px;box-shadow:var(--bay-shadow)}
.principal{
  grid-template-columns:106px 1fr auto;gap:20px;padding:22px;border-radius:22px;
  box-shadow:0 6px 18px rgba(20,61,117,.06)
}
.principal-mark{
  width:94px;height:94px;padding:11px;border-radius:22px;background:#f5faff
}
.principal-copy h3{color:var(--bay-navy);font-size:1.35rem}
.principal-role{color:var(--bay-blue)}

.news-list{gap:14px}
.news-entry{
  border-radius:20px;border-color:var(--bay-line);
  box-shadow:0 5px 16px rgba(20,61,117,.055)
}
.news-entry-media{aspect-ratio:16/10}
.news-entry-body{padding:17px}
.news-entry-meta{font-size:.72rem}
.news-entry h3{font-size:1.03rem;line-height:1.45;color:var(--bay-navy)}
.news-entry p{font-size:.82rem;line-height:1.62}
.news-entry:hover{border-color:#bddaf0;box-shadow:var(--bay-shadow)}

.section-blue{
  color:var(--bay-ink);background:#eef8ff;border-block:1px solid #dceefb
}
.section-blue .section-head h2{color:var(--bay-navy)}
.section-blue .section-head .lead{color:var(--bay-muted)!important}
.section-blue .eyebrow{color:var(--bay-blue)!important}
.service-grid{gap:12px}
.service-card{
  min-height:172px;padding:20px;border:1px solid var(--bay-line);
  border-radius:20px;background:#fff;backdrop-filter:none;color:var(--bay-ink);
  box-shadow:0 5px 16px rgba(20,61,117,.05)
}
.service-card:after{background:#edf7ff;width:110px;height:110px}
.service-card:hover{border-color:#b9d9f1;box-shadow:var(--bay-shadow);transform:translateY(-2px)}
.service-icon{width:44px;height:44px;border-radius:13px;background:#e9f4ff;color:var(--bay-blue)}
.service-card:nth-child(2) .service-icon{background:#fff2e5;color:var(--bay-orange)}
.service-card:nth-child(3) .service-icon{background:#f0edff;color:var(--bay-violet)}
.service-card:nth-child(4) .service-icon{background:#e9f8f1;color:var(--bay-green)}
.service-card h3{color:var(--bay-navy);font-size:1.08rem}
.service-card p{color:var(--bay-muted);font-size:.84rem}
.service-link{color:var(--bay-blue);font-size:.82rem}

.trust-strip{gap:12px}
.trust-card{
  border-radius:18px;padding:18px;box-shadow:0 4px 13px rgba(20,61,117,.04)
}
.trust-card strong{color:var(--bay-navy)}
.publisher-callout{
  border-radius:22px;border-color:#cfe4f5;background:
  radial-gradient(circle at 95% 0,rgba(255,122,0,.12),transparent 25%),
  linear-gradient(135deg,#eaf7ff,#fff)
}

.page-hero{
  padding:34px 0 28px;background:var(--bay-bg)
}
.page-hero>.container{
  position:relative;min-height:275px;padding:40px 46% 34px 34px;
  border:1px solid #cfe5f7;border-radius:28px;overflow:hidden;
  background:linear-gradient(120deg,#dff4ff 0,#f7fcff 58%,#fff1e2 100%);box-shadow:0 18px 46px rgba(20,61,117,.10)
}
.page-hero>.container:after{
  content:"";position:absolute;right:0;top:0;width:48%;height:100%;
  background:var(--page-hero-image-desktop,var(--page-hero-image,url("/assets/images/school-community.webp"))) center/cover no-repeat
}
.page-hero>.container:before{
  content:"BAY SCHOOL";position:absolute;z-index:2;right:22px;top:18px;
  padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.9);
  color:var(--bay-blue);font-size:.68rem;font-weight:950;letter-spacing:.07em;
  box-shadow:0 6px 16px rgba(20,61,117,.09)
}
.page-hero h1{font-size:clamp(2.35rem,4.2vw,3.85rem);line-height:1.05;color:var(--bay-navy);letter-spacing:-.045em}
.page-hero .lead{font-size:.94rem;color:#58738f;max-width:650px}
.breadcrumb{margin-bottom:16px;color:#6c849e;font-size:.78rem}
.breadcrumb a{color:var(--bay-blue);font-weight:850}

.content-grid{grid-template-columns:minmax(0,1fr) 300px;gap:18px}
.content-card{
  padding:24px;border-radius:20px;border-color:var(--bay-line);
  box-shadow:0 5px 16px rgba(20,61,117,.05)
}
.content-card h2,.content-card h3{color:var(--bay-navy)}
.content-card p,.clean-list{color:var(--bay-muted)}
.info-item{border:1px solid #e1edf8;background:#f7fbff;border-radius:16px}
.info-item .icon{background:#e9f4ff;color:var(--bay-blue);border-radius:12px}
.notice{border-radius:16px;background:#edf7ff;border-color:#d3e7f7;color:#426587}

.people-grid{gap:14px}
.person-card{
  border-radius:20px;padding:20px;border-color:var(--bay-line);
  box-shadow:0 5px 15px rgba(20,61,117,.045)
}
.person-avatar{
  width:76px;height:76px;border-radius:22px;padding:0;background:
  radial-gradient(circle at 50% 35%,#fff 0 13px,transparent 14px),
  radial-gradient(ellipse at 50% 105%,#fff 0 29px,transparent 30px),
  linear-gradient(145deg,#e7f4ff,#cfe9ff);
  border:1px solid #cae2f6
}
.person-avatar img{display:none}
.person-card h3{font-size:1.05rem;color:var(--bay-navy)}
.person-card p{font-size:.8rem}
.person-group+.person-group{margin-top:44px}

.doc-grid{gap:14px}
.doc-card{
  min-height:188px;border-radius:20px;padding:20px;border-color:var(--bay-line);
  box-shadow:0 5px 15px rgba(20,61,117,.045);
  position:relative
}
.doc-card:before{
  content:"";display:block;width:42px;height:42px;margin-bottom:13px;border-radius:13px;
  background:#e9f4ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23176de5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v5h5M9 12h6M9 16h6'/%3E%3C/svg%3E") center/22px no-repeat
}
.doc-card h3{font-size:1.08rem;color:var(--bay-navy)}
.doc-card p{font-size:.82rem}

.calendar-grid{gap:14px}
.calendar-card{
  border-radius:20px;padding:20px;border-color:var(--bay-line);
  box-shadow:0 5px 15px rgba(20,61,117,.045)
}
.calendar-state{background:#e9f4ff;color:var(--bay-blue)}

.contact-grid{gap:18px}
.contact-card{
  border-radius:24px;padding:26px;background:
  radial-gradient(circle at 100% 0,rgba(255,122,0,.23),transparent 28%),
  linear-gradient(145deg,#0b3d91,#176de5)
}
.map-card{border-radius:24px;min-height:380px;border-color:var(--bay-line);background:#edf8ff}

.site-footer{
  background:#082f72;padding:44px 0 24px;border-top:4px solid var(--bay-orange)
}
.footer-grid{gap:28px}
.footer-brand img{width:46px;height:54px}
.footer-title{font-size:.9rem}
.footer-links a{font-size:.84rem}
.footer-bottom{font-size:.75rem}

.mobile-dock{
  border-radius:20px;border-color:#d4e5f3;box-shadow:0 16px 42px rgba(20,61,117,.16)
}
.mobile-dock a{border-radius:14px}
.mobile-dock a.active{background:#e9f4ff;color:var(--bay-blue)}
.mobile-dock .dock-icon{font-size:0;width:20px;height:20px;position:relative}
.mobile-dock a:nth-child(1) .dock-icon:before,
.mobile-dock a:nth-child(2) .dock-icon:before,
.mobile-dock a:nth-child(3) .dock-icon:before,
.mobile-dock a:nth-child(4) .dock-icon:before{
  content:"";position:absolute;inset:0;background-position:center;background-repeat:no-repeat;background-size:20px
}
.mobile-dock a:nth-child(1) .dock-icon:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23176de5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10.5V20h13v-9.5'/%3E%3C/svg%3E")}
.mobile-dock a:nth-child(2) .dock-icon:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23176de5' stroke-width='2'%3E%3Crect x='4' y='4' width='16' height='16' rx='3'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E")}
.mobile-dock a:nth-child(3) .dock-icon:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23176de5' stroke-width='2'%3E%3Crect x='4' y='4' width='6' height='6' rx='1'/%3E%3Crect x='14' y='4' width='6' height='6' rx='1'/%3E%3Crect x='4' y='14' width='6' height='6' rx='1'/%3E%3Crect x='14' y='14' width='6' height='6' rx='1'/%3E%3C/svg%3E")}
.mobile-dock a:nth-child(4) .dock-icon:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23176de5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4 4.5 6.5c1.6 6.2 6.8 11.4 13 13L20 17l-4-3-2 2c-2.7-1.3-4.7-3.3-6-6l2-2z'/%3E%3C/svg%3E")}

@media(max-width:1040px){
  .hero-grid{grid-template-columns:1fr 1fr;gap:24px}
  .hero-media{min-height:380px}
  .quick-grid{grid-template-columns:repeat(2,1fr)}
  .page-hero>.container{padding-right:42%}
}
@media(max-width:760px){
  .container{width:min(calc(100% - 24px),var(--container))}
  .topline .container:before{font-size:.62rem}
  .navbar{min-height:66px}
  .brand-logo{width:42px;height:48px}
  .hero{padding:22px 0 24px}
  .hero-grid{grid-template-columns:1fr;gap:12px}
  .hero-copy{padding:12px 0 0}
  .hero h1{font-size:clamp(2.65rem,12vw,3.8rem)}
  .hero .lead{font-size:.91rem;line-height:1.7}
  .hero-media{min-height:270px;margin-top:4px}
  .photo-frame{inset:8px 0;border-radius:22px}
  .fc-one{left:8px;top:24px}
  .fc-two{right:8px;bottom:20px}
  .float-card{max-width:175px;padding:8px 10px}
  .float-card .icon{width:35px;height:35px}
  .float-card strong{font-size:.78rem}
  .float-card span{font-size:.67rem}
  .spark{display:none}
  .quick-wrap{padding-top:4px}
  .quick-grid{grid-template-columns:1fr 1fr;gap:9px}
  .quick-card{min-height:118px;padding:14px;grid-template-columns:36px 1fr;column-gap:10px}
  .quick-icon{width:36px;height:36px;border-radius:11px}
  .quick-card h3{font-size:.88rem}
  .quick-card p{font-size:.7rem}
  .section{padding:54px 0}
  .section-head h2{font-size:2rem}
  .story-grid{grid-template-columns:1fr}
  .story-copy{padding:22px;border-radius:20px}
  .story-photo{min-height:300px;border-radius:20px}
  .principal{grid-template-columns:72px 1fr;padding:16px}
  .principal-mark{width:66px;height:66px;border-radius:17px}
  .news-list,.service-grid,.trust-strip,.people-grid,.doc-grid,.calendar-grid{grid-template-columns:1fr}
  .page-hero{padding:20px 0}
  .page-hero>.container{
    min-height:330px;padding:24px 20px 178px;border-radius:22px
  }
  .page-hero>.container:after{left:0;right:0;top:auto;bottom:0;width:100%;height:160px;background-image:var(--page-hero-image-mobile,var(--page-hero-image));background-position:center 48%}
  .page-hero>.container:before{right:14px;top:12px}
  .page-hero h1{font-size:2.45rem}
  .content-grid,.contact-grid{grid-template-columns:1fr}
  .content-card{padding:20px;border-radius:18px}
}
@media(max-width:420px){
  .quick-grid{grid-template-columns:1fr}
  .quick-card{min-height:92px}
  .hero-actions{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .quick-card:hover,.service-card:hover{transform:none}
}
/* BAY School closure v2 — component anatomy from KRUART / LearnLab reference set */
svg{width:1em;height:1em;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.topline .container:before,.topline .container:after{display:none!important}
.product-rail{position:relative;display:flex;justify-content:space-between;align-items:center}
.product-rail>span:first-child{display:flex;align-items:center;gap:9px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-rail>span:first-child b{color:var(--bay-blue);font-weight:950;letter-spacing:.045em}
.product-rail>span:first-child i{width:4px;height:4px;border-radius:50%;background:var(--bay-orange);flex:none}
.topline-right{display:flex;align-items:center;gap:14px}
.topline-right a{display:inline-flex;align-items:center;gap:6px}
.topline-right svg{width:14px;height:14px}
.brand-copy span b{color:var(--bay-blue)}
.brand-copy span:before{display:none}

.hero.bay-home{padding:30px 0 42px}
.hero-shell{
  display:grid;grid-template-columns:minmax(0,.88fr) minmax(520px,1.12fr);
  gap:38px;align-items:center;
  padding:34px;border:1px solid #cfe5f7;border-radius:30px;
  background:linear-gradient(120deg,#dff4ff 0,#f7fcff 57%,#fff1e2 100%);
  box-shadow:0 18px 46px rgba(20,61,117,.11);
}
.hero-shell .hero-copy{padding:8px 0}
.hero-kicker{display:flex;align-items:center;gap:10px;margin-bottom:14px;color:var(--bay-muted);font-size:.78rem;font-weight:800}
.bay-chip{
  display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;
  background:#fff;border:1px solid #cfe4f5;color:var(--bay-blue);font-weight:950;letter-spacing:.06em;
  box-shadow:0 5px 12px rgba(20,61,117,.06)
}
.bay-chip svg{width:16px;height:16px;color:var(--bay-orange)}
.hero-shell h1{margin:8px 0 18px;font-size:clamp(3rem,5vw,5rem);line-height:.99;letter-spacing:-.055em}
.hero-actions svg,.section-link svg,.service-link svg,.card-link svg{width:17px;height:17px}
.hero-trust .pill svg{width:15px;height:15px;color:var(--bay-blue)}
.hero-frontdoor-promise{margin:-4px 0 0;color:#315b78;font-size:.9rem;font-weight:850;letter-spacing:-.01em}
.hero-search-callout{
  width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) 24px;align-items:center;gap:11px;
  margin:-8px 0 20px;padding:11px 13px;border:1px solid #cfe3f4;border-radius:16px;
  background:#fff;color:#23435e;text-align:left;font:inherit;cursor:pointer;box-shadow:0 8px 22px rgba(20,61,117,.055);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease
}
.hero-search-callout:hover,.hero-search-callout:focus-visible{border-color:#8abcf2;box-shadow:0 0 0 4px rgba(23,109,229,.08),0 10px 26px rgba(20,61,117,.08);outline:0;transform:translateY(-1px)}
.hero-search-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#eaf4ff;color:var(--bay-blue)}
.hero-search-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.hero-search-copy{display:grid;gap:2px;min-width:0}.hero-search-copy strong{font-size:.92rem}.hero-search-copy small{color:#6d8093;font-size:.76rem;line-height:1.4}
.hero-search-arrow{color:#7b91a4;font-weight:900}
.hero-art-real img{object-position:center 58%}

.hero-visual{
  position:relative;min-height:430px;border:1px solid #cfe5f7;border-radius:24px;
  background:rgba(255,255,255,.94);box-shadow:0 10px 28px rgba(20,61,117,.07);padding:16px;overflow:hidden
}
.hero-visual:before{
  content:"";position:absolute;inset:0;background:
    radial-gradient(circle at 86% 12%,rgba(255,122,0,.11),transparent 20%),
    linear-gradient(180deg,#fff,#f6fbff);pointer-events:none
}
.hero-visual-head{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.bay-wordmark{color:var(--bay-navy);font-size:.92rem;font-weight:950;letter-spacing:.02em}
.bay-wordmark b{color:var(--bay-blue)}
.status-chip{
  display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;
  background:#e9f8f1;color:#157f56;font-size:.7rem;font-weight:850
}
.status-chip i{width:7px;height:7px;border-radius:50%;background:#23b47e;box-shadow:0 0 0 4px rgba(35,180,126,.12)}
.hero-art{
  position:relative;z-index:1;overflow:hidden;border-radius:19px;border:1px solid #dcebf7;
  background:#dff4ff;aspect-ratio:2.5/1
}
.hero-art img{width:100%;height:100%;object-fit:cover;display:block}
.visual-cards{position:relative;z-index:3;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}
.visual-card{
  min-height:72px;display:flex;align-items:center;gap:10px;padding:11px;
  border:1px solid var(--bay-line);border-radius:16px;background:#fff
}
.visual-icon{
  width:38px;height:38px;border-radius:12px;display:grid;place-items:center;
  background:#e8f3ff;color:var(--bay-blue);flex:none
}
.visual-icon.orange{background:#fff0e2;color:var(--bay-orange)}
.visual-icon svg{width:20px;height:20px}
.visual-card b{display:block;color:var(--bay-navy);font-size:.82rem}
.visual-card small{display:block;color:var(--bay-muted);font-size:.67rem;margin-top:2px}

.quick-card{grid-template-columns:44px minmax(0,1fr) 22px;align-items:start}
.quick-icon{grid-row:auto;margin:0}
.quick-icon svg{width:22px;height:22px}
.quick-icon.orange{background:#fff2e5!important;color:var(--bay-orange)!important}
.quick-icon.violet{background:#f0edff!important;color:var(--bay-violet)!important}
.quick-icon.green{background:#e9f8f1!important;color:var(--bay-green)!important}
.quick-arrow{align-self:center;color:#9ab0c6;margin-top:8px}
.quick-arrow svg{width:18px;height:18px}
.quick-card:hover .quick-arrow{color:var(--bay-blue);transform:translateX(2px)}

.story-copy h3{font-size:1.55rem;margin-top:14px}
.section-link{
  display:inline-flex;align-items:center;gap:7px;color:var(--bay-blue);font-size:.84rem;font-weight:900;
  padding:8px 10px;border-radius:12px
}
.section-link:hover{background:#eaf4ff}
.ecosystem-shell{
  padding:28px;border-radius:26px;border:1px solid #d0e6f5;background:
  radial-gradient(circle at 94% 4%,rgba(255,122,0,.10),transparent 24%),
  rgba(255,255,255,.55)
}
.ecosystem-shell .section-head{margin-bottom:22px}
.service-icon svg{width:22px;height:22px}
.service-icon.orange{background:#fff2e5;color:var(--bay-orange)}
.service-icon.violet{background:#f0edff;color:var(--bay-violet)}
.service-icon.green{background:#e9f8f1;color:var(--bay-green)}
.service-link{display:inline-flex;align-items:center;gap:7px}
.trust-icon{
  width:38px;height:38px;border-radius:12px;display:grid;place-items:center;
  margin-bottom:12px;background:#eaf4ff;color:var(--bay-blue)
}
.trust-card:nth-child(2) .trust-icon{background:#f0edff;color:var(--bay-violet)}
.trust-card:nth-child(3) .trust-icon{background:#e9f8f1;color:var(--bay-green)}
.trust-icon svg{width:20px;height:20px}

.page-hero>.container{display:block}
.page-hero-panel{position:relative;z-index:2}
.page-hero-copy{max-width:660px;position:relative;z-index:3}
.page-hero-art{display:none}
.page-hero .eyebrow{display:inline-flex}
.person-avatar svg{width:34px;height:34px;color:var(--bay-blue)}
.doc-card{gap:14px}
.doc-card:before{display:none}
.doc-card-top{display:flex;justify-content:space-between;gap:12px;align-items:center}
.doc-icon{
  width:42px;height:42px;border-radius:13px;display:grid;place-items:center;
  background:#e9f4ff;color:var(--bay-blue)
}
.doc-icon svg{width:22px;height:22px}
.card-link{display:inline-flex;align-items:center;gap:6px;color:var(--bay-blue);font-size:.8rem;font-weight:900;margin-top:auto}
.card-link svg{width:15px;height:15px}
.info-item .icon svg{width:20px;height:20px}
.contact-card .info-item .icon{background:rgba(255,255,255,.15);color:#fff}
.contact-card .info-item .icon svg{width:20px;height:20px}

.mobile-dock .dock-icon{font-size:inherit;width:20px;height:20px}
.mobile-dock .dock-icon:before{display:none!important}
.mobile-dock .dock-icon svg{width:20px;height:20px}
.mobile-dock a:not(.active) .dock-icon svg{color:#60708a}
.mobile-dock a.active .dock-icon svg{color:var(--bay-blue)}

@media(max-width:1040px){
  .hero-shell{grid-template-columns:1fr 1fr;gap:22px;padding:26px}
  .hero-visual{min-height:370px}
}
@media(max-width:760px){
  .product-rail>span:first-child{font-size:.68rem}
  .product-rail>span:first-child b{font-size:.64rem}
  .hero.bay-home{padding:18px 0 26px}
  .hero-shell{grid-template-columns:1fr;padding:18px;border-radius:22px;gap:16px}
  .hero-shell .hero-copy{padding:4px 2px}
  .hero-kicker{flex-wrap:wrap;font-size:.72rem}
  .hero-shell h1{font-size:clamp(2.65rem,12vw,3.75rem)}
  .hero-visual{min-height:300px;border-radius:19px;padding:12px}
  .hero-art{border-radius:15px}
  .visual-card{min-height:62px;padding:9px}
  .visual-icon{width:34px;height:34px}
  .visual-card b{font-size:.76rem}
  .visual-card small{font-size:.62rem}
  .quick-card{grid-template-columns:36px 1fr 18px}
  .quick-arrow{margin-top:5px}
  .ecosystem-shell{padding:18px;border-radius:20px}
}
@media(max-width:420px){
  .hero.bay-home{padding-bottom:10px}
  .hero-shell h1{font-size:clamp(2.35rem,11vw,3rem)}
  .hero-actions{display:flex;flex-wrap:nowrap;gap:8px}
  .hero-actions .btn{width:auto;flex:1;padding-inline:10px}
  .hero-trust{display:none}
  .visual-cards{display:none}
  .hero-visual{min-height:0;padding:10px}
  .hero-visual-head{margin-bottom:8px}
  .hero-art{aspect-ratio:3/1}
  .hero-search-callout{margin-top:-10px;margin-bottom:14px}
  .hero-search-copy small{font-size:.72rem}
  .status-chip{font-size:.62rem}
}

/* iOS/WebKit full-page screenshot stability
   Safari can rasterize layered gradients/backdrop-filter/animated compositing layers
   as black during full-page capture even when the live page paints correctly. */
@supports (-webkit-touch-callout: none) {
  html, body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .site-header,
  .mobile-dock {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background-color: #fff !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .hero,
  .hero-shell,
  .hero-visual,
  .story-copy,
  .section-blue,
  .ecosystem-shell,
  .publisher-callout,
  .contact-card,
  .page-hero,
  .person-avatar {
    background-image: none !important;
  }

  .hero { background-color: #f2faff !important; }
  .hero-shell { background-color: #eef9ff !important; }
  .hero-visual { background-color: #fff !important; }
  .hero-visual::before { display: none !important; }
  .story-copy { background-color: #0b3d91 !important; }
  .section-blue { background-color: #eef8ff !important; }
  .ecosystem-shell { background-color: #fff !important; }
  .publisher-callout { background-color: #edf8ff !important; }
  .contact-card { background-color: #0b3d91 !important; }
  .page-hero { background-color: #eef8ff !important; }
  .person-avatar { background-color: #e7f4ff !important; }

  .brand-logo {
    filter: none !important;
  }
}

/* Digital School Gateway — Parent Connect + audience-oriented services */
.btn-line{
  background:#16a36a;color:#fff;border-color:#16a36a;
  box-shadow:0 12px 26px rgba(22,163,106,.18)
}
.btn-line:hover{background:#118657;color:#fff;border-color:#118657}
.parent-home-section{padding-top:28px}
.parent-gateway{
  display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);
  gap:22px;align-items:stretch;padding:28px;border:1px solid #cfe4f5;border-radius:26px;
  background:#fff;box-shadow:var(--bay-shadow)
}
.parent-gateway-copy{padding:6px 4px}
.parent-gateway h2,.service-audience h2,.parent-entry-main h2,.source-boundary h2{
  color:var(--bay-navy);font-size:clamp(2rem,4vw,3.2rem);line-height:1.08;letter-spacing:-.04em
}
.parent-gateway p{color:var(--bay-muted);line-height:1.8;max-width:720px}
.parent-mini-features{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 4px}
.parent-mini-features span{
  display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;
  background:#f2f8ff;color:#4b6f96;font-size:.76rem;font-weight:800
}
.parent-mini-features svg{width:15px;height:15px;color:var(--bay-blue)}
.parent-gateway-preview{
  padding:15px;border:1px solid var(--bay-line);border-radius:20px;background:#f7fbff;
  display:flex;flex-direction:column;gap:9px
}
.parent-preview-head{display:grid;grid-template-columns:42px 1fr auto;gap:9px;align-items:center;padding:4px 2px 8px}
.parent-preview-head strong{display:block;color:var(--bay-navy);font-size:.9rem}
.parent-preview-head small{display:block;color:var(--bay-muted);font-size:.68rem;margin-top:1px}
.parent-preview-row{
  display:grid;grid-template-columns:36px 1fr;gap:10px;align-items:center;
  padding:10px;border:1px solid #e0edf7;border-radius:14px;background:#fff
}
.parent-preview-row>span{
  width:34px;height:34px;border-radius:11px;background:#e9f4ff;color:var(--bay-blue);
  display:grid;place-items:center
}
.parent-preview-row>span svg{width:18px;height:18px}
.parent-preview-row b{display:block;color:var(--bay-navy);font-size:.78rem}
.parent-preview-row small{display:block;color:var(--bay-muted);font-size:.65rem;margin-top:1px}

.service-audience-section{padding-top:48px}
.service-audience{
  display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:22px;
  padding:28px;border:1px solid #cce5f6;border-radius:26px;background:#edf9ff;
  margin-bottom:42px
}
.audience-label{
  display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;
  background:#fff;color:var(--bay-blue);font-size:.76rem;font-weight:950
}
.audience-label svg{width:16px;height:16px}
.audience-copy p{color:#5f7894;line-height:1.75}
.audience-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.audience-card{
  min-height:118px;padding:14px;border:1px solid var(--bay-line);border-radius:16px;background:#fff
}
.audience-card>span{
  width:34px;height:34px;border-radius:11px;display:grid;place-items:center;
  background:#e9f4ff;color:var(--bay-blue);margin-bottom:9px
}
.audience-card>span svg{width:18px;height:18px}
.audience-card b{display:block;color:var(--bay-navy);font-size:.82rem}
.audience-card small{display:block;color:var(--bay-muted);font-size:.68rem;line-height:1.45;margin-top:3px}
.role-services{display:flex;flex-direction:column;gap:42px}
.role-service-head{display:flex;align-items:center;gap:12px;margin-bottom:15px}
.role-service-head h2{color:var(--bay-navy);font-size:1.75rem;margin:0}
.role-badge{
  width:46px;height:46px;border-radius:15px;display:grid;place-items:center;
  background:#e9f4ff;color:var(--bay-blue);flex:none
}
.role-badge.teacher{background:#f0edff;color:var(--bay-violet)}
.role-badge.public{background:#e9f8f1;color:var(--bay-green)}
.role-badge svg{width:23px;height:23px}
.role-service-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.role-service-grid-3{grid-template-columns:repeat(3,1fr)}
.role-service-card{
  min-height:118px;display:grid;grid-template-columns:44px 1fr 20px;gap:12px;align-items:center;
  padding:16px;border:1px solid var(--bay-line);border-radius:18px;background:#fff;
  box-shadow:0 4px 13px rgba(20,61,117,.04)
}
.role-service-card:hover{border-color:#bddaf0;box-shadow:var(--bay-shadow);transform:translateY(-2px)}
.role-service-card h3{color:var(--bay-navy);font-size:.94rem;margin:0 0 4px}
.role-service-card p{color:var(--bay-muted);font-size:.74rem;line-height:1.5;margin:0}
.source-boundary{
  display:grid;grid-template-columns:54px 1fr auto;gap:18px;align-items:center;
  padding:22px;border:1px solid var(--bay-line);border-radius:22px;background:#fff
}
.source-icon{
  width:52px;height:52px;border-radius:16px;background:#e9f8f1;color:var(--bay-green);
  display:grid;place-items:center
}
.source-icon svg{width:25px;height:25px}
.source-boundary h2{font-size:1.6rem;margin:3px 0 5px}
.source-boundary p{color:var(--bay-muted);font-size:.82rem;line-height:1.6;margin:0}

.parent-entry-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:start}
.parent-entry-main{
  padding:28px;border:1px solid var(--bay-line);border-radius:24px;background:#fff;
  box-shadow:0 6px 18px rgba(20,61,117,.055)
}
.parent-entry-main h2{margin:12px 0}
.parent-entry-main>.lead{color:var(--bay-muted);font-size:.94rem}
.parent-feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0}
.parent-feature{
  min-height:96px;display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:start;
  padding:13px;border:1px solid #e0edf7;border-radius:15px;background:#f9fcff
}
.parent-feature>span{
  width:36px;height:36px;border-radius:11px;background:#e9f4ff;color:var(--bay-blue);
  display:grid;place-items:center
}
.parent-feature>span svg{width:18px;height:18px}
.parent-feature b{display:block;color:var(--bay-navy);font-size:.82rem}
.parent-feature small{display:block;color:var(--bay-muted);font-size:.69rem;line-height:1.5;margin-top:2px}
.btn-parent-launch{display:inline-flex;margin-top:2px}
.parent-entry-note{margin:13px 0 0;color:#738ba2;font-size:.72rem;line-height:1.6}
.parent-entry-side{display:flex;flex-direction:column;gap:12px}
.parent-line-card{
  padding:22px;border-radius:22px;background:#0b3d91;color:#fff;box-shadow:var(--bay-shadow)
}
.parent-line-card .service-icon{background:rgba(255,255,255,.13);color:#fff;margin-bottom:15px}
.parent-line-card .eyebrow{color:#9fd9ff}
.parent-line-card h3{font-size:1.25rem;margin:9px 0 15px}
.parent-line-card ol{list-style:none;padding:0;margin:0;counter-reset:steps}
.parent-line-card li{
  counter-increment:steps;display:grid;grid-template-columns:28px 1fr;gap:10px;
  padding:10px 0;border-top:1px solid rgba(255,255,255,.12)
}
.parent-line-card li:before{
  content:counter(steps);width:24px;height:24px;border-radius:8px;background:#fff;color:var(--bay-navy);
  display:grid;place-items:center;font-size:.7rem;font-weight:950
}
.parent-line-card li b{display:block;font-size:.8rem}
.parent-line-card li span{display:block;color:#c9d9ec;font-size:.67rem;line-height:1.45;margin-top:2px}
.parent-safety .trust-icon{margin-bottom:10px}
.parent-safety p{font-size:.78rem;color:var(--bay-muted);line-height:1.6}

@media(max-width:1040px){
  .parent-gateway,.service-audience{grid-template-columns:1fr}
  .parent-entry-layout{grid-template-columns:1fr 310px}
  .role-service-grid-3{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .parent-home-section{padding-top:18px}
  .parent-gateway{grid-template-columns:1fr;padding:18px;border-radius:20px}
  .parent-gateway h2,.service-audience h2,.parent-entry-main h2{font-size:2rem}
  .parent-gateway-preview{border-radius:16px}
  .service-audience{padding:18px;border-radius:20px}
  .audience-cards{grid-template-columns:1fr 1fr}
  .role-service-grid,.role-service-grid-3{grid-template-columns:1fr}
  .role-services{gap:32px}
  .source-boundary{grid-template-columns:46px 1fr;padding:17px}
  .source-boundary .btn{grid-column:1/-1}
  .source-icon{width:44px;height:44px}
  .parent-entry-layout{grid-template-columns:1fr}
  .parent-entry-main{padding:19px;border-radius:20px}
  .parent-feature-grid{grid-template-columns:1fr}
}
@media(max-width:420px){
  .audience-cards{grid-template-columns:1fr}
  .parent-mini-features{display:grid;grid-template-columns:1fr 1fr}
  .parent-mini-features span{justify-content:flex-start}
}

/* Parent Connect mobile step layout fix */
.parent-line-card li::before{
  grid-column:1;
  grid-row:1 / span 2;
  align-self:start;
}
.parent-line-card li>b,
.parent-line-card li>span{
  grid-column:2;
  min-width:0;
}
.parent-line-card li>b{
  grid-row:1;
}
.parent-line-card li>span{
  grid-row:2;
  overflow-wrap:anywhere;
  word-break:normal;
}
@media(max-width:420px){
  .parent-line-card{padding:18px}
  .parent-line-card li{grid-template-columns:26px minmax(0,1fr);gap:9px}
}
/* Final public-site accessibility and iOS closure — KRUART-aligned, WCAG-adapted */
:root{
  /* KRUART #657d99 is retained in the design contract; public copy uses a darker
     derivative so small Thai text clears WCAG AA against white/light surfaces. */
  --muted:#5b718c;
  --bay-muted:#5b718c;
  --bay-action-green:#118657;
}

/* Public primary actions use KRUART navy; orange remains the brand/accent color. */
.btn-primary{
  background:var(--bay-navy);
  color:#fff;
  border-color:var(--bay-navy);
  box-shadow:0 8px 20px rgba(11,61,145,.18)
}
.btn-primary:hover{
  background:#124fae;
  border-color:#124fae;
  color:#fff;
}
.btn-line{
  background:var(--bay-action-green);
  border-color:var(--bay-action-green);
  color:#fff;
}
.btn-line:hover{background:#0d7a50;border-color:#0d7a50;color:#fff}

/* Small supporting copy must not fall back to low-contrast gray tokens. */
.visual-card small,.parent-preview-head small,.parent-preview-row small,
.audience-card small,.role-service-card p,.parent-feature small,
.parent-entry-note,.source-boundary p,.brand-copy span{
  color:var(--bay-muted)
}

@media(max-width:760px){
  body{padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))}
  .mobile-dock{
    bottom:max(10px,env(safe-area-inset-bottom,0px));
    left:max(10px,env(safe-area-inset-left,0px));
    right:max(10px,env(safe-area-inset-right,0px))
  }
}

/* Final public readability floor — supporting copy must remain readable on phones. */
.visual-card small,
.parent-preview-head small,
.parent-preview-row small,
.audience-card small,
.role-service-card p,
.parent-feature small,
.parent-line-card li span,
.status-chip{
  font-size:.75rem;
  line-height:1.45;
}
@media(max-width:760px){
  .brand-copy span,
  .topline .container:before{
    font-size:.75rem;
    line-height:1.35;
  }
}


/* BAY School Experience Layer · 2026-09-28 */
.today-hub{padding:18px 0 6px;background:linear-gradient(180deg,#f7fbff 0%,#fff 100%)}
#today-title{scroll-margin-top:112px}
.today-shell{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.8fr);gap:18px;padding:22px;border:1px solid #dceaf6;border-radius:28px;background:rgba(255,255,255,.94);box-shadow:0 18px 54px rgba(28,82,136,.08)}
.today-main{padding:8px 6px}.today-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}.today-live{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:#eef8ff;color:#315b78;font-size:.82rem;font-weight:700}.today-live i{width:8px;height:8px;border-radius:50%;background:#27a36a;box-shadow:0 0 0 4px rgba(39,163,106,.1)}
.today-date{margin:14px 0 4px;color:#61738a;font-weight:700}.today-main h2{margin:0;font-size:clamp(1.65rem,3vw,2.5rem);letter-spacing:-.03em}.today-summary{max-width:720px;margin:10px 0 18px;color:#5b6a7c;line-height:1.75}.today-actions{display:flex;gap:10px;flex-wrap:wrap}
.role-launcher{padding:18px;border-radius:22px;background:#f4f9ff;border:1px solid #dceaf6}.role-launcher-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.role-launcher h3{margin:4px 0 0;font-size:1.05rem}.role-reset{border:0;background:transparent;color:var(--bay-blue);font:inherit;font-weight:700;cursor:pointer;padding:8px}
.role-switcher{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.role-switcher button{min-height:46px;border:1px solid #d5e4f1;border-radius:14px;background:#fff;color:#26435d;font:inherit;font-weight:700;cursor:pointer;padding:10px 12px;transition:.18s ease}.role-switcher button:hover,.role-switcher button:focus-visible{border-color:#8abcf2;box-shadow:0 0 0 4px rgba(23,109,229,.08);outline:0}.role-switcher button[aria-pressed="true"]{background:#e8f3ff;border-color:#9bc5f1;color:#0d5fc5}
.role-destination{display:grid;gap:5px;margin-top:12px;padding-top:12px;border-top:1px solid #dceaf6}.role-destination strong{font-size:.95rem;color:#223c52}.role-destination span{font-size:.86rem;color:#61738a;line-height:1.55}.role-destination a{display:inline-flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px;padding:11px 12px;border-radius:13px;background:#fff;border:1px solid #d5e4f1;color:#174f8f;font-weight:800;text-decoration:none}.role-destination a:hover{border-color:#8abcf2}
@view-transition{navigation:auto}
@media(max-width:860px){.today-shell{grid-template-columns:1fr}.today-main{padding:2px}.role-launcher{order:-1;padding:16px}}
@media(max-width:560px){.today-hub{padding-top:10px}.today-shell{padding:14px;border-radius:22px;gap:12px}.today-topline{align-items:flex-start;flex-direction:column}.today-live{font-size:.76rem}.today-actions .btn{width:100%;justify-content:center}.role-switcher{grid-template-columns:1fr 1fr}.role-switcher button{min-height:48px}}
@media(prefers-reduced-motion:reduce){.role-switcher button{transition:none}}


/* Universal School Search */
.site-search-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:42px;height:42px;padding:0 12px;border:1px solid #d7e5f2;border-radius:14px;background:#fff;color:#24425c;font:inherit;font-weight:750;cursor:pointer;white-space:nowrap}
.site-search-trigger:hover,.site-search-trigger:focus-visible{border-color:#8abcf2;box-shadow:0 0 0 4px rgba(23,109,229,.08);outline:0}.site-search-trigger svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.school-search-dialog{width:min(680px,calc(100vw - 28px));padding:0;border:0;border-radius:24px;background:#fff;color:#1d354a;box-shadow:0 24px 90px rgba(17,52,84,.22)}.school-search-dialog::backdrop{background:rgba(24,48,72,.26);backdrop-filter:blur(5px)}
.school-search-shell{padding:16px}.school-search-head{display:flex;align-items:center;gap:10px}.school-search-field{flex:1;display:flex;align-items:center;gap:10px;padding:0 14px;border:1px solid #d8e5f1;border-radius:16px;background:#f8fbfe}.school-search-field svg{width:20px;height:20px;fill:none;stroke:#5c7184;stroke-width:2}.school-search-field input{width:100%;height:52px;border:0;outline:0;background:transparent;font:inherit;font-size:1.04rem;color:#19364e}.school-search-close{width:44px;height:44px;border:0;border-radius:14px;background:#eef5fb;color:#395970;font:inherit;font-weight:800;cursor:pointer}
.school-search-hint{margin:10px 4px 4px;color:#718294;font-size:.82rem}.school-search-results{display:grid;gap:7px;max-height:min(56vh,460px);overflow:auto;margin-top:12px;padding:2px}.school-search-result{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:11px;padding:11px;border:1px solid #e1ebf3;border-radius:16px;background:#fff;color:inherit;text-decoration:none}.school-search-result:hover,.school-search-result:focus-visible{border-color:#9bc6f2;background:#f6faff;outline:0}.school-search-result-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eaf4ff;color:#176de5;font-weight:900}.school-search-result-copy{display:grid;gap:2px}.school-search-result-copy strong{font-size:.96rem}.school-search-result-copy small{color:#6b7b8c;line-height:1.4}.school-search-result-arrow{color:#6f8293;font-size:1.1rem}.school-search-empty{padding:24px 14px;text-align:center;color:#718294}
@media(max-width:1040px){.site-search-trigger span{display:none}.site-search-trigger{padding:0;width:42px}.desktop-nav+.site-search-trigger{margin-left:auto}}
@media(max-width:760px){.site-search-trigger{order:2;margin-left:auto}.nav-toggle{order:3}.school-search-dialog{border-radius:22px}.school-search-shell{padding:12px}.school-search-result{grid-template-columns:38px 1fr auto;padding:9px}.school-search-result-icon{width:38px;height:38px}}

/* School Digital Front Door · Next Wave */
.school-search-group-label{padding:8px 8px 2px;color:#60758a;font-size:.76rem;font-weight:800;letter-spacing:.04em}
.school-search-result[data-search-kind="content"] .school-search-result-icon{background:#f1ecff;color:#6944c6}
.school-search-result[data-search-kind="content"] small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.school-search-source{font-size:.72rem;color:#8392a2}

.today-smart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.today-smart-card{display:flex;min-width:0;flex-direction:column;gap:6px;padding:14px 15px;border:1px solid #dce9f5;border-radius:17px;background:rgba(255,255,255,.86);color:#27445d;text-decoration:none;box-shadow:0 8px 24px rgba(42,82,115,.055)}
.today-smart-card:hover,.today-smart-card:focus-visible{border-color:#9bc5ef;background:#fff;outline:0;box-shadow:0 10px 28px rgba(42,82,115,.09)}
.today-smart-card strong{color:#183a57;font-size:.95rem;line-height:1.45}
.today-smart-card>span:not(.today-smart-kicker){font-size:.8rem;line-height:1.5;color:#687b8d}
.today-smart-kicker{color:#0d67ca;font-size:.72rem;font-weight:850;letter-spacing:.035em}
.today-weather-card{background:linear-gradient(135deg,#f6fbff,#eef7ff)}
.today-weather-card small{font-size:.68rem;color:#7b8d9e}
.today-weather-card small a{color:#436b91}
.today-role-route{max-width:100%}

.photo-story-link{display:block;color:inherit;text-decoration:none;cursor:zoom-in}
.story-photo>.photo-story-link,.news-entry-media>.photo-story-link{width:100%;height:100%}
.photo-story-link img{display:block}

.story-carousel-dots{display:none}
@media(max-width:760px){
  .today-smart-grid{grid-template-columns:1fr}
  .today-smart-card{padding:13px 14px}
  .story-carousel-viewport{overflow:hidden;margin-inline:-2px;padding-inline:2px}
  .story-carousel-container{display:flex!important;grid-template-columns:none!important;gap:12px}
  .story-carousel-slide{flex:0 0 min(88%,380px);min-width:0}
  .story-carousel-dots{display:flex;justify-content:center;gap:7px;margin-top:13px}
  .story-carousel-dots button{width:8px;height:8px;border:0;border-radius:999px;background:#c6d4e0;padding:0;cursor:pointer}
  .story-carousel-dots button[aria-current="true"]{width:22px;background:#438cd8}
}
@media(prefers-reduced-motion:reduce){
  .today-smart-card,.story-carousel-dots button{transition:none!important}
}


/* School homepage mobile composition — authentic photos, content first, fewer stacked empty cards. */
@media (max-width:760px){
  body.school-home .hero.bay-home{padding:12px 0 16px}
  body.school-home .hero-shell{padding:14px;border-radius:21px;gap:11px;background:linear-gradient(145deg,#fff9f2 0%,#fff 65%,#f5f7fa 100%);border-color:#ecdacc}
  body.school-home .hero-shell .hero-copy{padding:0 2px}
  body.school-home .hero-kicker{gap:6px;letter-spacing:0}
  body.school-home .hero-shell h1{font-size:clamp(1.96rem,8vw,2.75rem);line-height:1.21;letter-spacing:-.028em;margin:9px 0 11px;color:#2b3a46;overflow-wrap:break-word}
  body.school-home .hero-shell h1 em{color:#b75711}
  body.school-home .hero-shell .lead{font-size:.89rem;line-height:1.65;margin:0 0 10px;color:#52606b}
  body.school-home .hero-frontdoor-promise,body.school-home .hero-trust{display:none}
  body.school-home .hero-actions{margin:12px 0 8px;gap:8px}
  body.school-home .hero-actions .btn{min-height:46px}
  body.school-home .hero-search-callout{margin:8px 0 1px;padding:10px 12px;border-radius:14px}
  body.school-home .hero-search-copy small{font-size:.72rem}
  body.school-home .hero-visual{min-height:0;padding:9px;border-radius:18px}
  body.school-home .hero-visual-head{margin:0 0 7px}
  body.school-home .hero-visual-head .status-chip{display:none}
  body.school-home .hero-art{aspect-ratio:16/10;min-height:0;max-height:370px;overflow:hidden}
  body.school-home .hero-art img{width:100%;height:100%;object-fit:cover;object-position:center 43%}
  body.school-home .visual-cards{display:none}
  body.school-home .section{padding:32px 0}
  body.school-home .section-head{margin-bottom:14px;gap:9px}
  body.school-home .section-head h2{font-size:clamp(1.45rem,5.8vw,1.9rem);line-height:1.32;letter-spacing:-.02em}
  body.school-home .section-head .lead{font-size:.88rem;line-height:1.6}
  body.school-home .today-hub{padding:10px 0 6px}
  body.school-home .today-shell{gap:10px;padding:12px;border-radius:18px;border-color:#e5e6e8;box-shadow:none}
  body.school-home .today-main{order:0}
  body.school-home .role-launcher{order:1;padding:13px;border-radius:16px;background:#f8f9fa;border-color:#e5e6e8}
  body.school-home .today-main h2{font-size:1.45rem;line-height:1.35}
  body.school-home .today-summary{font-size:.85rem;line-height:1.6;margin:6px 0 11px}
  body.school-home .today-smart-grid{gap:7px;margin:10px 0}
  body.school-home .today-smart-card{padding:10px;border-radius:13px;min-height:0}
  body.school-home .today-actions{gap:7px}
  body.school-home .today-actions .btn{width:auto;flex:1;min-width:0;padding-inline:10px}
  body.school-home .quick-wrap{padding:12px 0}
  body.school-home .quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  body.school-home .quick-card{min-height:86px;padding:12px 9px;grid-template-columns:32px minmax(0,1fr);gap:8px;align-items:center}
  body.school-home .quick-icon{width:32px;height:32px}
  body.school-home .quick-card h3{font-size:.84rem;line-height:1.45;margin:0;overflow-wrap:break-word}
  body.school-home .quick-card p,body.school-home .quick-arrow{display:none}
  body.school-home .principal{padding:14px;gap:10px}
  body.school-home .principal-copy p{font-size:.85rem;line-height:1.5}
  body.school-home .story-photo{min-height:245px}
  body.school-home .story-copy{padding:18px}
  body.school-home .news-list[data-photo-gallery="home-news"]{display:grid;grid-template-columns:1fr;gap:9px}
  body.school-home .news-list[data-photo-gallery="home-news"] .news-entry{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:stretch;border-radius:16px}
  body.school-home .news-list[data-photo-gallery="home-news"] .news-entry-media{aspect-ratio:auto;min-height:105px;padding:8px 5px;gap:3px;border-radius:0;background:#faf7f4}
  body.school-home .news-list[data-photo-gallery="home-news"] .school-news-branding img{max-width:38px;max-height:48px}
  body.school-home .news-list[data-photo-gallery="home-news"] .school-news-branding small{font-size:.55rem;line-height:1.35;max-width:66px}
  body.school-home .news-list[data-photo-gallery="home-news"] .news-entry-body{padding:12px 12px 11px}
  body.school-home .news-list[data-photo-gallery="home-news"] .news-entry-body h3{font-size:.92rem;line-height:1.45;margin:5px 0}
  body.school-home .news-list[data-photo-gallery="home-news"] .news-entry-body>p:first-of-type{display:none}
  body.school-home .news-list[data-photo-gallery="home-news"] .news-entry-meta{font-size:.7rem;line-height:1.4;gap:2px}
  body.school-home .news-list[data-photo-gallery="home-news"] .news-entry-body a{font-size:.8rem}
  body.school-home #school-gallery-real-photos .news-list{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:11px;padding:2px 2px 14px;-webkit-overflow-scrolling:touch}
  body.school-home #school-gallery-real-photos .news-entry{flex:0 0 min(76vw,290px);scroll-snap-align:start;border-radius:18px}
  body.school-home #school-gallery-real-photos .news-entry-media{aspect-ratio:4/3;background:#f8f8f8}
  body.school-home #school-gallery-real-photos .news-entry-media img{object-fit:contain}
  body.school-home #school-gallery-real-photos .news-entry-body{padding:12px}
  body.school-home #school-gallery-real-photos .news-entry h3{font-size:.93rem}
  body.school-home .parent-gateway{padding:18px;border-radius:20px}
  body.school-home .parent-home-section .hero-actions{flex-wrap:wrap}
}
@media(max-width:420px){
  body.school-home .hero-shell h1{font-size:clamp(1.89rem,8vw,2.28rem)}
  body.school-home .hero-art{aspect-ratio:16/10}
  body.school-home .role-switcher{gap:6px}
  body.school-home .role-switcher button{min-height:44px;padding:8px 9px;font-size:.84rem}
}

body.school-home .topline .container:before{content:"โรงเรียนของชุมชน";letter-spacing:0}


/* School header 390px accessibility finish */
@media(max-width:760px){
  .site-header .navbar{gap:7px;min-width:0}
  .site-header .brand{flex:1 1 auto;min-width:0;max-width:calc(100% - 103px);gap:7px}
  .site-header .brand-logo{width:36px;height:42px;flex:0 0 36px}
  .site-header .brand-copy{min-width:0;flex:1 1 auto;overflow:hidden}
  .site-header .brand-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-size:.9rem;line-height:1.35}
  .site-header .brand-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-size:.68rem;line-height:1.5}
  .site-header .site-search-trigger{order:2;flex:0 0 40px;min-width:40px;width:40px;margin-left:auto}
  .site-header .nav-toggle{order:3;flex:0 0 42px;width:42px;height:42px}
  body.school-home .quick-card{min-height:74px;align-content:center}
}


/* School mobile experience — final editorial compact layout, no simulated app preview */
@media(max-width:760px){
  body.school-home .parent-gateway-preview{display:none}
  body.school-home .parent-home-section{padding:18px 0 23px}
  body.school-home .parent-gateway{gap:10px}
  body.school-home .parent-gateway .lead{line-height:1.6;font-size:.88rem}
  body.school-home .service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  body.school-home .service-card{min-height:190px;padding:15px 12px;display:flex;flex-direction:column;gap:6px;border-radius:16px}
  body.school-home .service-card h3{font-size:.93rem;line-height:1.3;overflow-wrap:break-word}
  body.school-home .service-card p{font-size:.77rem;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:0;margin:0}
  body.school-home .service-card .service-icon{width:38px;height:38px;min-height:38px}
  body.school-home .service-card .service-link{margin-top:auto;font-size:.76rem;line-height:1.4}
  body.school-home .ecosystem-shell{padding:14px}
  body.school-home .section-blue{padding:24px 0}
  body.school-home .section-blue .section-head{margin-bottom:16px}
  body.school-home .section-blue .section-head .lead{font-size:.85rem;line-height:1.55}
  body.school-home .service-audience-section{padding:26px 0}
  body.school-home .service-audience{gap:12px;padding:14px}
  body.school-home .audience-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  body.school-home .audience-card{min-height:0;padding:12px}
  body.school-home .audience-card:last-child:nth-child(odd){grid-column:1/-1}
  body.school-home .audience-card small{font-size:.73rem;line-height:1.5}
  body.school-home .source-boundary{margin-top:12px}
  body.school-home .source-boundary p{font-size:.8rem;line-height:1.5}
  body.school-home .site-footer{padding:34px 0 calc(20px + env(safe-area-inset-bottom,0px))}
  body.school-home .footer-grid{gap:22px}
  body.school-home .footer-grid>div:nth-child(2) .footer-links{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;row-gap:11px}
  body.school-home .footer-grid>div:nth-child(2) .footer-links a{font-size:.82rem}
  body.school-home .site-footer p{font-size:.84rem;line-height:1.65}
}


/* School mobile WCAG contrast exact fixes — measured with axe-core */
body.school-home #school-gallery-real-photos .eyebrow,
body.school-home #school-gallery-real-photos .section-link,
body.school-home .mobile-dock .active>span:nth-child(2){color:#125cbe}
