/* opdlab.my content pages, header and footer. The home hero and finder use /finder/finder.css (the agreed canvas design). */
:root {
  --ink: #1d1d1f; --ink-2: #424245; --muted: #6e6e73; --line: #d2d2d7; --soft: #f5f5f7; --ring: #F9AE1A; --link: #0066cc; --hero: #0e0f12;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #ffffff; }
body { font-family: var(--font); color: var(--ink); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.in { max-width: 1120px; margin: 0 auto; padding-inline: max(clamp(16px, 5vw, 48px), env(safe-area-inset-left, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header (content pages) */
.site-top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.85); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,0.08); }
.site-top .in { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logo { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); } .logo span { color: var(--ring); } .logo:hover { text-decoration: none; }
.site-top nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 24px); font-size: 14px; flex-wrap: wrap; }
.site-top nav a { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8e8e93; transition: color .2s ease; }
.site-top nav a:hover { color: var(--ink); text-decoration: none; }
.site-top nav a.talk, .site-top nav a.talk:hover { color: #000000; }
.site-top .talk { padding: 4px 13px; border-radius: 980px; background: var(--ring); color: #000000; } .site-top .talk:hover { text-decoration: none; background: #ffbe3d; }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; align-items: center; justify-content: center; padding: 0; font: inherit; color: var(--ink); background: none; border: 0; cursor: pointer; }
.bars { position: relative; width: 20px; height: 12px; } .bars i { position: absolute; left: 0; width: 20px; height: 1.6px; border-radius: 2px; background: currentColor; }
.bars i:nth-child(1) { top: 0; } .bars i:nth-child(2) { top: 5.2px; } .bars i:nth-child(3) { top: 10.4px; }
@media (max-width: 640px) { .site-top nav { gap: 6px; } .site-top .dl { display: none; } .burger { display: inline-flex; } }
/* Phone menu sheet: full screen, white, rows with arrows (modelled on ghostlabs.asia, in OpDLab's own type and colours) */
html.ms-lock, html.ms-lock body { overflow: hidden; }
.msheet { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: #ffffff; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; padding: 0 max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); animation: ms-in .3s cubic-bezier(.2,.8,.2,1) both; }
.msheet[hidden] { display: none; } .msheet.out { animation: ms-out .18s ease-in both; }
@keyframes ms-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes ms-out { to { opacity: 0; transform: translateY(-8px); } }
.ms-top { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 64px; background: #ffffff; }
.ms-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; font: 300 26px/1 var(--font); color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.ms-list { display: flex; flex-direction: column; padding-bottom: 24px; }
.ms-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); border-bottom: 1px solid #ececf0; }
.ms-list a::after { content: "\2192"; font-weight: 400; color: var(--muted); }
.ms-list a:hover { text-decoration: none; } .ms-list a:active { background: var(--soft); }
.ms-label { margin: 22px 0 2px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ms-talk { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 980px; background: var(--ring); color: #000000; font-size: 17px; font-weight: 600; }
.ms-talk:hover { text-decoration: none; background: #ffbe3d; }
.ms-foot { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
@media (min-width: 641px) { .msheet { display: none; } }
@media (prefers-reduced-motion: reduce) { .msheet, .msheet.out { animation: none; } }

/* Content */
main.page { padding-block: clamp(40px, 6vw, 80px) 72px; }
.kicker { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
h1.h1 { margin: 0; max-width: 860px; font-size: clamp(34px, 5vw, 56px); line-height: 1.06; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.lede { margin: 20px 0 0; max-width: 760px; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; color: var(--ink-2); }
h2 { margin: 56px 0 16px; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em; }
h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.015em; }
p, li { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.prose { max-width: 760px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; } .tags span { font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 980px; background: var(--soft); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 20px; background: var(--soft); color: var(--ink); }
a.card:hover { text-decoration: none; background: #ececf0; }
.card p { margin: 0; font-size: 15px; }
.mods { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mods li { padding: 18px 0; border-bottom: 1px solid var(--line); } .mods li p { margin: 4px 0 0; font-size: 15px; }
.cta-band { margin-top: 56px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--hero); color: #f5f5f7; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.cta-band p { margin: 0; color: #a1a1a6; max-width: 560px; } .cta-band h2 { margin: 0 0 6px; color: #ffffff; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 980px; border: 0; background: var(--ring); color: var(--ink); font: 600 16px var(--font); cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.dark { background: var(--ink); color: #ffffff; }
.btn.alt { background: transparent; color: #ffffff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4); }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
/* "‹ Back" row under the header on every page but home */
.backrow .in { padding-top: 14px; font-size: 14px; } .backrow a { color: var(--link); }
.backrow + main.page { padding-top: clamp(20px, 4vw, 48px); }
/* Public courses calendar */
.cal { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.cal-month { padding: 20px 24px; border: 1px solid var(--line); border-radius: 20px; }
.cal-month h2 { margin: 0 0 12px; font-size: 20px; letter-spacing: -0.02em; }
.cal-tba { margin: 0; color: var(--muted); font-size: 15px; }
.cal-runs { list-style: none; margin: 0; padding: 0; }
.cal-runs li { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 12px 0; border-top: 1px solid #ececf0; }
.cal-runs li:first-child { border-top: 0; padding-top: 0; }
.cal-date { font-size: 13px; font-weight: 600; color: var(--ink); min-width: 84px; padding-top: 2px; }
.cal-what a { font-weight: 600; color: var(--ink); } .cal-what small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.cal-ask { grid-column: 2; font-size: 14px; color: var(--link); }
.faq dt { font-weight: 600; font-size: 17px; margin-top: 20px; } .faq dd { margin: 6px 0 0; }
.note { font-size: 14px; color: var(--muted); }
.draft { display: inline-block; margin-bottom: 16px; padding: 4px 10px; border-radius: 8px; background: #fef3dc; color: #8a5300; font-size: 13px; font-weight: 600; }

/* Home: fallback text for visitors and crawlers without JavaScript; the finder replaces it on load */
#root .nojs { display: none; max-width: 760px; margin: 0 auto; padding: 96px 24px; color: #f5f5f7; background: var(--hero); }
#root .nojs a { color: #f5f5f7; }

/* Footer */
.site-foot { background: var(--soft); border-top: 1px solid var(--line); padding-block: 48px 32px; }
.site-foot .foot-about { margin: 0 0 36px; max-width: 640px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.site-foot .foot-about .logo { display: block; margin-bottom: 10px; }
.site-foot .foot-clients { margin: -20px 0 36px; max-width: 820px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.is-home .site-foot .foot-clients { color: #6e6e73; }
.site-foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px 24px; }
.site-foot .cols div { display: flex; flex-direction: column; gap: 9px; font-size: 14px; line-height: 1.35; }
.site-foot .foot-h { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-foot .cols a, .site-foot .cols span { color: var(--ink-2); }
.site-foot .cols a.foot-talk, .is-home .site-foot .cols a.foot-talk { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; height: 32px; margin-bottom: 4px; padding: 0 14px; border-radius: 980px; background: var(--ring); color: #000000; font-weight: 500; }
.site-foot .cols a.foot-talk:hover, .is-home .site-foot .cols a.foot-talk:hover { text-decoration: none; background: #ffbe3d; color: #000000; }
.site-foot .foot-hours { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.site-foot .legal { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--muted); }
/* Home: the footer continues the dark hero, so nothing turns white under the landing page */
.is-home .site-foot { background: var(--hero); border-top-color: rgba(255,255,255,0.08); }
.is-home .site-foot .foot-about, .is-home .site-foot .cols a, .is-home .site-foot .cols span { color: #a1a1a6; }
.is-home .site-foot .cols a:hover { color: #f5f5f7; } .is-home .site-foot .foot-about .logo { color: #f5f5f7; }
.is-home .site-foot .foot-h { color: #6e6e73; } .is-home .site-foot .legal { color: #6e6e73; border-top-color: rgba(255,255,255,0.08); }
