/* netkubelab.com — the public front door. One page, no application.
 *
 * The colour tokens are copied from the portal's stylesheet deliberately, not
 * imported: the two sites are separate deployments and the marketing one must
 * never depend on a file that lives behind the login. Copied values are why
 * verify.py checks the pairs here as well -- a token that drifts here would
 * fail AA silently, on the one page that strangers actually see.
 */
:root{
  --bg:#f7f8fa; --surface:#ffffff; --surface-2:#eef1f5; --border:#d8dee6;
  --text:#1a2029; --muted:#5b6675; --accent:#0b6fd4; --accent-soft:#e3eefb;
  --on-accent:#ffffff;
  /* The hero is dark whichever theme the page is in. It is the one band that
     leads rather than informs, and a background that flips underneath a fixed
     headline makes the site read as two different pages. Its pairs therefore
     travel with it instead of inheriting -- and are checked as their own set. */
  --hero-bg:#111820; --hero-text:#f2f6fa; --hero-muted:#a9b6c4;
  --hero-line:#2a3644; --hero-chip:#1b2530;
  --hero-accent:#5aa9f8; --hero-on-accent:#0d1117;
  --shadow:0 1px 2px rgba(16,24,40,.06),0 4px 12px rgba(16,24,40,.05);
  --radius:12px; --maxw:880px;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#11151b; --surface:#171d25; --surface-2:#1e2630; --border:#2b3541;
    --text:#e4e9ef; --muted:#9aa7b6; --accent:#5aa9f8; --accent-soft:#16283f;
    --on-accent:#0d1117;
    --shadow:0 1px 2px rgba(0,0,0,.4),0 4px 14px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"]{
  --bg:#11151b; --surface:#171d25; --surface-2:#1e2630; --border:#2b3541;
  --text:#e4e9ef; --muted:#9aa7b6; --accent:#5aa9f8; --accent-soft:#16283f;
  --on-accent:#0d1117;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 4px 14px rgba(0,0,0,.3);
}
*{box-sizing:border-box}

/* Thai needs the extra leading; 1.75 is what the portal settled on after the
   lab pages were read on phones. */
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:"Noto Sans Thai","Sarabun",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.75; font-size:17px; -webkit-font-smoothing:antialiased;
}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 20px}
a{color:var(--accent)}
:where(a,button):focus-visible{outline:2px solid var(--accent); outline-offset:2px; border-radius:5px}

/* header */
header.top{
  position:sticky; top:0; z-index:20; background:var(--surface);
  border-bottom:1px solid var(--border);
}
header.top .wrap{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px;
  min-height:58px; padding-top:8px; padding-bottom:8px;
}
.brand{font-weight:700; text-decoration:none; color:var(--text); white-space:nowrap; font-size:1.05rem}
.brand span{color:var(--accent)}
.spacer{flex:1}
nav.top-nav{display:flex; flex-wrap:wrap; gap:4px 16px; font-size:.9rem}
nav.top-nav a{color:var(--muted); text-decoration:none}
nav.top-nav a:hover{color:var(--accent)}
.btn{
  background:var(--surface-2); color:var(--text); border:1px solid var(--border);
  border-radius:8px; padding:6px 12px; font:inherit; font-size:.85rem;
  cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; gap:6px;
}
.btn:hover{border-color:var(--accent); color:var(--accent)}

/* hero */
.hero{
  background:var(--hero-bg); color:var(--hero-text);
  padding:78px 0 60px; border-bottom:1px solid var(--hero-line);
}
.hero h1{font-size:2.5rem; line-height:1.4; margin:0 0 18px; letter-spacing:-.02em}
/* the separators between the four beats of the method, not decoration */
.hero h1 .beat{color:var(--hero-accent); font-weight:400}
.hero .lead{font-size:1.1rem; color:var(--hero-muted); margin:0 0 26px; max-width:40rem}
.actions{display:flex; flex-wrap:wrap; gap:12px; margin:0 0 22px}
.cta-primary,.cta-ghost{
  display:inline-flex; align-items:center; gap:8px; text-decoration:none;
  font-weight:600; padding:12px 22px; border-radius:10px;
}
.cta-primary{background:var(--hero-accent); color:var(--hero-on-accent)}
.cta-primary:hover{filter:brightness(1.08)}
.cta-ghost{border:1px solid var(--hero-line); color:var(--hero-text)}
.cta-ghost:hover{border-color:var(--hero-accent); color:var(--hero-accent)}
.chips{
  display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0;
  margin:0 0 24px; font-size:.86rem;
}
.chips li{
  background:var(--hero-chip); border:1px solid var(--hero-line);
  border-radius:999px; padding:4px 13px; color:var(--hero-muted);
}
.who{
  display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px;
  font-size:.9rem; color:var(--hero-muted);
}
.who .dot{color:var(--hero-line)}
.who strong{color:var(--hero-text); font-weight:600}
.hero :where(a,button):focus-visible{outline-color:var(--hero-accent)}

section{padding:34px 0; border-top:1px solid var(--border)}
.hero{border-top:0}
h2{font-size:1.22rem; margin:0 0 6px}
.sub{color:var(--muted); font-size:.92rem; margin:0 0 20px}

/* the course card. A bordered surface, not a gradient panel: this is a
   description of a course, not an advertisement for a subscription. */
.course{
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); box-shadow:var(--shadow); padding:24px;
}
.lvl{
  display:inline-block; background:var(--accent-soft); color:var(--accent);
  border-radius:999px; padding:3px 12px; font-size:.8rem; font-weight:600;
  margin:0 0 12px;
}
.by{margin:0 0 16px; font-size:.9rem; color:var(--muted)}
.by strong{color:var(--text); font-weight:600}
.course .code{
  font-size:.78rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--accent); font-weight:700;
}
.course h3{margin:4px 0 10px; font-size:1.28rem; line-height:1.5}
.course p{margin:0 0 16px; color:var(--muted)}
.facts{
  display:flex; flex-wrap:wrap; gap:6px 10px; font-size:.9rem;
  color:var(--muted); margin:0 0 16px;
}
.facts .dot{color:var(--border)}
.topics{
  display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; padding:0; list-style:none;
}
.topics li{
  background:var(--surface-2); border:1px solid var(--border); border-radius:999px;
  padding:4px 12px; font-size:.84rem; color:var(--text);
}
.cta{
  display:inline-flex; align-items:center; gap:8px; background:var(--accent);
  color:var(--on-accent); text-decoration:none; font-weight:600; padding:11px 20px;
  border-radius:10px;
}
.cta:hover{filter:brightness(1.08)}
.note{
  margin:14px 0 0; font-size:.86rem; color:var(--muted);
  border-left:3px solid var(--border); padding-left:12px;
}
.later{margin:18px 0 0; font-size:.9rem; color:var(--muted)}

/* instructor */
.person{display:flex; flex-wrap:wrap; gap:20px 26px; align-items:flex-start}
.person img{
  width:104px; height:104px; border-radius:50%; object-fit:cover;
  border:1px solid var(--border); flex:none;
}
.person .body{flex:1 1 300px; min-width:0}
.person h3{margin:0 0 2px; font-size:1.1rem}
.person .role{margin:0 0 14px; color:var(--muted); font-size:.92rem}
.cert{
  background:var(--surface); border:1px solid var(--border); border-radius:10px;
  padding:12px 14px; margin:0 0 14px;
}
.cert .name{font-weight:600; font-size:.95rem}
.cert .meta{color:var(--muted); font-size:.85rem}
.bio p{margin:0 0 10px; color:var(--muted); font-size:.95rem}
.bio p:last-child{color:var(--text)}
.areas{margin:14px 0; padding-left:1.2em; color:var(--muted); font-size:.93rem}
.areas li{margin:2px 0}
.links{display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:0}

/* contact */
.contact{display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.contact div{
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); padding:16px 18px;
}
.contact h3{margin:0 0 6px; font-size:1rem}
.contact p{margin:0; color:var(--muted); font-size:.92rem}

footer{
  border-top:1px solid var(--border); margin-top:20px; padding:26px 0 44px;
  color:var(--muted); font-size:.86rem;
}
footer p{margin:0 0 6px}

@media (max-width:520px){
  .hero{padding:52px 0 40px}
  .hero h1{font-size:1.8rem}
  .cta-primary,.cta-ghost{width:100%; justify-content:center}
  .person img{width:76px; height:76px}
}
