/* HR Helpdesk — People Department brand */
:root {
  --navy: #12163A;
  --navy-2: #262C5E;
  --navy-line: #2C3366;
  --cyan: #0DCAF0;
  --cyan-soft: #DDF6FC;
  --cyan-ink: #0B4F63;
  --blue-ink: #2A63C9;
  --cream: #F6F3EB;
  --sand: #ECE8DD;
  --line: #E4DFD2;
  --line-soft: #EEEAE0;
  --ink: #12163A;
  --muted: #4A5170;
  --muted-2: #5B6383;
  --on-navy: #C3CBE3;
  --danger: #A3261B;
  --danger-soft: #FBE7E4;
  --ok-soft: #E1F5EA;
  --ok-ink: #135C33;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: var(--blue-ink); }
h1, h2, h3 { font-family: 'Poppins', sans-serif; line-height: 1.2; margin: 0; }
h1 { font-weight: 800; font-size: clamp(26px, 3.2vw, 38px); text-transform: uppercase; }
h2 { font-weight: 800; font-size: 22px; text-transform: uppercase; }
h3 { font-weight: 700; font-size: 18px; }
p { margin: 0; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 2px; }
.cyan { color: var(--cyan); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 36px; }
.between { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent; font-family: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; background: var(--navy); color: #fff; }
.btn:hover { color: #fff; background: #1E2452; }
.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-cyan:hover { background: #3DD6F4; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); min-height: 44px; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); min-height: 40px; padding: 0 16px; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.linkish { background: none; border: none; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* Brand */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; padding: 0 8px; }
.brand:hover { color: #fff; }
.brand-light, .brand-light:hover { color: var(--navy); padding: 0; }
.wordmark { display: flex; flex-direction: column; gap: 2px; }
.wm-title { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: 0.02em; line-height: 1.1; color: #fff; }
.wm-title-light { color: var(--navy); }
.wm-title-light .cyan { color: #0890AC; }
.wm-sub { font-size: 12px; color: var(--on-navy); letter-spacing: 0.04em; }
.wm-sub-light { color: var(--muted); }

/* Member shell */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 240px; max-width: 100%; background: var(--navy); color: #fff; padding: 28px 20px; display: flex; flex-direction: column; gap: 28px; }
.side-links { display: flex; flex-direction: column; gap: 4px; }
.side-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: #DCE3F2; text-decoration: none; font-size: 15px; width: 100%; }
.side-link:hover { background: #1C2250; color: #fff; }
.side-link.active { background: var(--navy-2); color: #fff; font-weight: 500; }
.side-button { background: none; border: none; font: inherit; cursor: pointer; text-align: left; }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--navy-line); padding-top: 18px; }
.content { flex: 999 1 560px; min-width: 0; padding: 40px clamp(16px, 4vw, 56px) 48px; }
.content-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.content-wide { max-width: 1180px; }
.foot { border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; color: var(--muted-2); }
@media (max-width: 820px) {
  .side { padding: 18px 14px; gap: 16px; }
  .side-links, .side-bottom { flex-direction: row; flex-wrap: wrap; }
  .side-link { width: auto; }
  .side-bottom { margin-top: 0; }
}

/* Cards & bits */
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.card-navy .muted, .card-navy p { color: var(--on-navy); }
.eyebrow { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-ink); }
.card-navy .eyebrow, .hero .eyebrow { color: var(--cyan); }
.badge { align-self: flex-start; display: inline-block; background: var(--cyan); color: var(--navy); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; padding: 6px 12px; border-radius: 999px; text-transform: uppercase; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--muted); white-space: nowrap; }
.pill-live { background: var(--cyan-soft); color: var(--cyan-ink); }
.pill-warn { background: var(--danger-soft); color: var(--danger); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-head .stack { gap: 8px; }
.flash { padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.flash-ok { background: var(--ok-soft); color: var(--ok-ink); }
.flash-error { background: var(--danger-soft); color: var(--danger); }

/* Hero */
.hero { background: var(--navy); color: #fff; border-radius: 24px; padding: clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.hero-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.hero h2 { text-transform: none; font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); }
.hero p { color: var(--on-navy); }
.progress { display: flex; align-items: center; gap: 14px; }
.bar { flex: 1 1 auto; max-width: 420px; height: 8px; border-radius: 999px; background: var(--navy-line); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--cyan); }
.bar-light { background: var(--sand); }
.bar-light > span { background: var(--navy); }

/* Pillars */
.tiles { display: flex; flex-wrap: wrap; gap: 20px; }
.tile { flex: 1 1 240px; display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; text-decoration: none; color: var(--ink); }
a.tile:hover { border-color: var(--navy); color: var(--ink); }
.tile.card-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.tile-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--sand); display: flex; align-items: center; justify-content: center; }
.tile-icon.live { background: var(--navy); }
.tile-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; line-height: 1.25; }
.tile-desc { font-size: 15px; color: var(--muted); }
.tile-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; }

/* Two-column rows */
.row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.col-main { flex: 3 1 460px; min-width: 0; }
.col-side { flex: 2 1 300px; min-width: 0; }

/* Updates */
.update { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.update:first-of-type { border-top: none; }
.update h3 { font-weight: 600; font-size: 17px; line-height: 1.3; }
.update h3 a { text-decoration: none; }
.update h3 a:hover { text-decoration: underline; }
.tag { flex: 0 0 auto; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; padding: 6px 10px; border-radius: 8px; background: var(--sand); color: var(--ink); }
.tag-PAY { background: var(--navy); color: #fff; }
.tag-LAW { background: var(--cyan); color: var(--navy); }
.meta { font-size: 13px; color: var(--muted-2); }
.prose { display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.65; color: #2A3150; }

/* Files */
.file-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; border-radius: 12px; background: var(--cream); text-decoration: none; font-weight: 500; font-size: 15px; }
.file-link:hover { background: var(--sand); }
.files { display: flex; flex-direction: column; gap: 10px; }

/* Store */
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-top: auto; }
.price { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 34px; }
.strike { font-size: 16px; color: var(--muted-2); text-decoration: line-through; }

/* Lesson */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; background: var(--navy); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--on-navy); text-align: center; padding: 20px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { font-weight: 700; }
.lessons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lesson-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; border-radius: 12px; text-decoration: none; font-size: 15px; }
.lesson-link:hover { background: var(--cream); }
.lesson-link.current { background: var(--cyan-soft); font-weight: 700; }
.lesson-link.locked { color: var(--muted-2); }
.dot { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 999px; border: 2px solid #C9C3B3; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.dot.done { background: var(--navy); border-color: var(--navy); }
.dot.now { background: var(--cyan); border-color: var(--cyan); }

/* Public pages */
.public { min-height: 100vh; display: flex; flex-direction: column; }
.public-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px clamp(16px, 4vw, 48px); }
.public-main { flex: 1 0 auto; width: 100%; max-width: 520px; margin: 24px auto 48px; padding: 0 16px; display: flex; flex-direction: column; gap: 24px; }
.public-wide { max-width: 1040px; }
.public-foot { padding: 20px clamp(16px, 4vw, 48px); font-size: 13px; color: var(--muted-2); border-top: 1px solid var(--line); }
.plans { display: flex; flex-wrap: wrap; gap: 20px; }
.plans > * { flex: 1 1 300px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: 0 0 auto; margin-top: 2px; }

/* Forms */
form { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 700; font-size: 14px; }
.hint { font-size: 13px; color: var(--muted-2); }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=file], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #CFC8B6; border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: 3px solid rgba(13, 202, 240, 0.35); outline-offset: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Admin tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: #FBFAF6; }
tr:last-child td { border-bottom: none; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-nav a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 14px; min-height: 40px; display: inline-flex; align-items: center; }
.admin-nav a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.stat-row { display: flex; flex-wrap: wrap; gap: 16px; }
.stat { flex: 1 1 180px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat b { display: block; font-family: 'Poppins', sans-serif; font-size: 30px; }

/* Public front page */
.landing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: clamp(24px, 6vw, 72px) 0 8px; }
.landing-title { font-size: clamp(30px, 4.4vw, 50px); max-width: 820px; line-height: 1.08; }
.landing-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; }
.landing-cta { min-height: 56px; padding: 0 34px; font-size: 17px; margin-top: 6px; }
.strike-inline { text-decoration: line-through; }
.features { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.features li { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.features strong { font-family: 'Poppins', sans-serif; font-size: 17px; }
