/* Brand tokens from velza.com (velza-site-2026 index.html :root). Light only, like the site. */
:root {
  --paper: #ffffff; --panel: #F1F6F2; --ink: #16211A; --ink-soft: #2C3A31; --muted: #5A6B60;
  --brand: #008000; --brand-2: #006400; --brand-soft: #CCE5CC; --teal: #00677F;
  --line: rgba(22, 33, 26, .13); --notice: #FFF6D6;
  --display: Georgia, 'Times New Roman', serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  /* legacy names used by existing rules */
  --bg: var(--paper); --accent: var(--brand); --accent-ink: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.62 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--panel); padding: 8px; }
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; height: 26px; width: auto; }
.brand-sub { font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--teal); border-left: 1px solid var(--line); padding-left: 10px; }
nav a, nav .link { margin-left: 16px; color: var(--ink-soft); font-weight: 600; text-decoration: none; }
nav a:hover { color: var(--brand-2); }
main { padding-top: 32px; padding-bottom: 56px; min-height: 60vh; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.15; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 0 0 14px; }
h2 { font-size: 1.35rem; }
a { color: var(--brand-2); }
.lead { font-family: var(--display); font-size: 1.12rem; line-height: 1.45; color: var(--ink-soft); }
.muted { color: var(--muted); }
.notice { background: var(--notice); padding: 12px; border-radius: 6px; }
.stack { display: grid; gap: 8px; max-width: 420px; }
.narrow { max-width: 420px; }
input, select, button { font: inherit; padding: 12px 14px; border-radius: 3px; border: 1px solid rgba(22, 33, 26, .28); background: var(--paper); color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
button { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; cursor: pointer; transition: background .15s, transform .12s; }
button:hover { background: var(--brand-2); transform: translateY(-1px); }
button.link { background: none; border: none; color: var(--brand-2); padding: 0; font-weight: 600; text-decoration: underline; transform: none; }
label { font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
form.inline { display: inline; }
.inline-form { display: flex; gap: 6px; flex-wrap: wrap; }
.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; background: var(--panel); }
.card h3 { margin: 0 0 4px; }
.card p { margin: 0; color: var(--muted); }
.lessons li { margin: 6px 0; }
.locked { color: var(--muted); }
.tag { display: inline-block; font-size: 0.8rem; border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; }
.player { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; background: var(--panel); border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.foot { border-top: 1px solid var(--line); color: var(--muted); padding: 20px 0; font-size: .9rem; background: var(--paper); }
.foot-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.foot-links a { color: var(--muted); }
.foot-sep { color: var(--muted); margin: 0 8px; }
.foot-grid > .foot-sep { display: none; }
/* Sign-in and other auth pages: centered card on the site's panel green. */
body.auth { background: var(--panel); }
body.auth main { display: flex; justify-content: center; align-items: flex-start; padding-top: 56px; }
.auth-card { width: 100%; max-width: 460px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 4px; padding: 32px 30px; box-shadow: 0 10px 30px rgba(22, 33, 26, .08); }
.auth-card .stack { max-width: none; gap: 10px; margin-top: 18px; }
.auth-card button[type=submit] { padding: 14px 20px; font-size: 1rem; }
@media (max-width: 480px) { .auth-card { padding: 24px 18px; } body.auth main { padding-top: 28px; } }
video.player { display: block; width: 100%; height: auto; padding: 0; background: #000; border: 0; }
.player-error { color: var(--muted); }
/* Lesson page: video left, tabbed sidebar right (Udemy-style); stacked on phones. */
.crumb { margin: 0 0 6px; font-size: .95rem; }
.lesson-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .lesson-grid { grid-template-columns: 1fr; } }
.lesson-main video.player { border-radius: 4px; }
.lesson-side { border: 1px solid var(--line); border-radius: 4px; background: var(--paper); display: flex; flex-direction: column; max-height: 78vh; min-height: 320px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; background: none; color: var(--ink-soft); border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 12px 8px; font-weight: 600; transform: none; }
.tabs button:hover { background: var(--panel); transform: none; }
.tabs button[aria-selected="true"] { color: var(--brand-2); border-bottom-color: var(--brand); }
.side-panel { overflow-y: auto; padding: 8px 4px 12px; flex: 1; }
.side-panel[data-hidden] { display: none; }
.chapter-list, .resource-list { list-style: none; padding: 0; margin: 0; }
.chapter { display: flex; gap: 10px; width: 100%; text-align: left; background: none; color: var(--ink); border: 0; border-radius: 3px; padding: 8px 10px; font-weight: 400; transform: none; }
.chapter:hover { background: var(--panel); transform: none; }
.chapter.current { background: var(--brand-soft); }
.chapter-time { min-width: 4.2em; font-variant-numeric: tabular-nums; color: var(--muted); }
.transcript { padding: 0 8px; font-size: .97rem; line-height: 1.7; }
.cue { margin: 0 0 10px; padding: 4px 6px; border-radius: 3px; }
.cue.current { background: var(--panel); }
.cue-time { display: block; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; cursor: pointer; }
.w { cursor: pointer; border-radius: 2px; }
.w:hover { background: var(--brand-soft); }
.w.now { background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand-soft); }
.resource-list li { margin: 2px 0; }
.resource-list a { display: flex; gap: 10px; align-items: baseline; padding: 10px; border-radius: 3px; text-decoration: none; color: var(--ink); }
.resource-list a:hover { background: var(--panel); }
.res-kind { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--teal); border-radius: 3px; padding: 2px 6px; }
/* Footer sits at the bottom of the window on short pages. */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; width: 100%; }
