/* Align members portal — brand-matched styles.
   Tokens and type mirror the main site (cream/gold/sage, Cormorant + Raleway).
   UK English, sentence case, no decorative dashes. */

:root {
  --cream:       #FAF6F1;
  --cream-deep:  #F2EBE0;
  --white:       #FFFFFF;
  --gold:        #C4A882;
  --gold-light:  #D9C4A3;
  --sand:        #F0E9DE;
  --sage:        #7D8F76;
  --text:        #3A3530;
  --text-muted:  #6E6A61;
  --espresso:    #5C5248;
  --border:      #E8E0D5;
  --shadow-card: 0 18px 48px rgba(58,53,48,0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  min-height: 100vh;
}

/* header */
.portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 18px 40px;
  background: rgba(250,246,241,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232,224,213,0.6);
  position: sticky; top: 0; z-index: 20;
}
.portal-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.portal-logo .logo-img { height: 40px; width: auto; display: block; }
.portal-nav { display: flex; gap: 26px; flex: 1; }
.portal-nav a { font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; cursor: pointer; padding: 6px 0; border-bottom: 1.5px solid transparent; transition: color 0.2s, border-color 0.2s; }
.portal-nav a:hover { color: var(--sage); }
.portal-nav a.active { color: var(--text); border-bottom-color: var(--gold); }
.portal-head .who { font-size: 12px; letter-spacing: 0.08em; color: var(--text-muted); display: flex; align-items: center; gap: 16px; }

/* buttons */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font-family: 'Raleway', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 15px 34px; border: 1px solid var(--gold); background: var(--gold); color: var(--white);
  transition: background 0.3s, border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.btn:hover { background: var(--sage); border-color: var(--sage); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(125,143,118,0.28); }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.btn-quiet { background: transparent; color: var(--text-muted); border-color: transparent; letter-spacing: 0.12em; padding: 8px 10px; }
.btn-quiet:hover { color: var(--sage); background: transparent; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: #fff; }

/* centred single-column shell */
.wrap { max-width: 960px; margin: 0 auto; padding: 56px 40px 80px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 16px; }
h1.portal-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; color: var(--text); margin-bottom: 14px; }
h1.portal-title em { font-style: italic; }
.lede { font-size: 15px; color: var(--text-muted); max-width: 540px; line-height: 1.9; }

/* login card */
.auth-card {
  max-width: 440px; margin: 40px auto 0; background: var(--white);
  border: 1px solid var(--border); box-shadow: var(--shadow-card); padding: 40px 36px;
}
.auth-card label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 8px; }
.auth-card input[type=email] {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border); background: var(--cream);
  font-family: 'Raleway', sans-serif; font-size: 15px; color: var(--text); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-card input[type=email]:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,168,130,0.18); }
.auth-card .btn { width: 100%; margin-top: 18px; }
.auth-note { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-top: 18px; }
.auth-msg { font-size: 14px; line-height: 1.7; margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--cream-deep); color: var(--text); }
.auth-msg.error { border-color: #b4553f; }

/* course grid */
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin: 8px 0 22px; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.course-card {
  background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit;
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.course-card:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(58,53,48,0.12); border-color: var(--gold-light); }
.course-card.is-soon { pointer-events: none; opacity: 0.65; }
.course-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.7rem; color: var(--text); line-height: 1.15; }
.course-card .card-sub { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.course-card .meta { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
.course-card .prog { height: 5px; background: var(--sand); border-radius: 3px; overflow: hidden; }
.course-card .prog > i { display: block; height: 100%; background: var(--gold); width: 0; transition: width 0.6s ease; }
.course-card .card-cta { margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.course-card:hover .card-cta { color: var(--sage); }

/* course page (module view) */
.course-wrap { max-width: 820px; }
.back-link { display: inline-block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; margin-bottom: 28px; }
.back-link:hover { color: var(--sage); }
.course-hero .lede { margin-top: 6px; }
.prog-panel { display: flex; align-items: center; gap: 30px; margin-top: 32px; padding: 26px 28px; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.prog-ring { position: relative; width: 96px; height: 96px; flex: none; }
.prog-ring svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.prog-ring .ring-track { fill: none; stroke: var(--sand); stroke-width: 8; }
.prog-ring .ring-fill { fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 0.8s ease; }
.prog-ring .ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.prog-ring .ring-num span { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--text); line-height: 1; }
.prog-ring .ring-num small { font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }
.prog-meta { flex: 1; }
.prog-count { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

.module { margin-top: 44px; }
/* legacy label kept for compatibility; the gold diamond is no longer rendered */
.module-label { font-family: 'Raleway', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
/* themed module heading: ordinal + name (replaces the diamond label) */
.module-head { margin-bottom: 14px; }
.mod-ord { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 3px; }
.mod-name { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.55rem; color: var(--text); line-height: 1.1; }
.wb-list { display: flex; flex-direction: column; }
.wb-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--white); border: 1px solid var(--border); border-bottom: none; text-decoration: none; color: var(--text); cursor: pointer; transition: background 0.2s; }
.wb-row:last-child { border-bottom: 1px solid var(--border); }
.wb-row:hover { background: var(--cream-deep); }
/* locked workbook: greyed, not clickable, no hover lift */
.wb-row.locked { opacity: 0.62; cursor: default; }
.wb-row.locked:hover { background: var(--white); }
.wb-row.locked .wb-title { color: var(--text-muted); }
.wb-state { width: 16px; height: 16px; flex: none; border: 1.5px solid var(--gold-light); border-radius: 50%; position: relative; }
.wb-row.assigned .wb-state { border-color: var(--gold); }
.wb-row.doing .wb-state { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 42%, transparent 44%); }
.wb-row.done .wb-state { border-color: var(--gold); background: var(--gold); }
.wb-row.done .wb-state::after { content: ''; position: absolute; left: 50%; top: 44%; width: 3.5px; height: 7px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: translate(-50%, -50%) rotate(45deg); }
.wb-lock { width: 16px; height: 16px; flex: none; color: var(--gold-light); display: flex; align-items: center; justify-content: center; }
.wb-num { font-family: 'Raleway', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); flex: none; width: 92px; line-height: 1.35; }
.wb-row.locked .wb-num { color: var(--text-muted); }
.wb-title { flex: 1; font-size: 15px; color: var(--text); }
.wb-tag { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); flex: none; }
.wb-row.done .wb-tag { color: var(--sage); }
.wb-row.doing .wb-tag, .wb-row.assigned .wb-tag { color: var(--gold); }
@media (max-width: 640px) {
  .prog-panel { flex-direction: column; text-align: center; gap: 18px; }
  .wb-row { padding: 14px; gap: 12px; }
  .wb-tag { display: none; }
}

/* empty state */
.empty {
  text-align: center; max-width: 520px; margin: 20px auto; padding: 40px 20px;
  color: var(--text-muted); font-size: 15px; line-height: 1.9;
}
.empty a { color: var(--gold); text-decoration: none; }
.empty a:hover { text-decoration: underline; }

.hidden { display: none !important; }

@media (max-width: 640px) {
  .portal-head { padding: 16px 20px; }
  .wrap { padding: 40px 20px 64px; }
  .auth-card { padding: 30px 22px; }
}

/* ---------- course covers ---------- */
.course-card { overflow: hidden; }
.course-card .card-cover { display: block; width: calc(100% + 56px); height: 160px; object-fit: cover; margin: -30px -28px 8px; background: var(--cream-deep); }
.course-head { display: flex; gap: 30px; align-items: flex-start; }
.course-cover { width: 200px; height: auto; max-height: 290px; object-fit: cover; flex: none; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.course-head-text { flex: 1; }
@media (max-width: 640px) { .course-head { flex-direction: column; } .course-cover { width: 150px; } }

/* ---------- course player (learn.html) ---------- */
.portal-head.slim { padding: 12px 24px; }
.player-body { overflow: hidden; }
.player { display: flex; height: calc(100vh - 64px); }
.player-side { width: 322px; flex: none; background: var(--white); border-right: 1px solid var(--border); overflow-y: auto; padding: 22px 22px 48px; }
.player-side .back-link { margin-bottom: 16px; }
.side-course { margin-bottom: 18px; }
.side-cover { width: 100%; height: 132px; object-fit: cover; border: 1px solid var(--border); margin-bottom: 14px; }
.side-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--text); line-height: 1.15; margin-bottom: 12px; }
.side-prog .prog { height: 5px; background: var(--sand); border-radius: 3px; overflow: hidden; }
.side-prog .prog > i { display: block; height: 100%; background: var(--gold); width: 0; transition: width 0.6s ease; }
.side-count { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; display: block; }
.side-mod-label { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 20px 0 6px; }
.side-row { display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 -10px; text-decoration: none; color: var(--text); border-left: 2px solid transparent; cursor: pointer; transition: background 0.2s; }
.side-row:hover { background: var(--cream); }
.side-row.active { background: var(--cream-deep); border-left-color: var(--gold); }
.side-row.locked { opacity: 0.5; cursor: default; }
.side-row.locked:hover { background: transparent; }
.side-row.assigned .wb-state { border-color: var(--gold); }
.side-row.doing .wb-state { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 42%, transparent 44%); }
.side-row.done .wb-state { border-color: var(--gold); background: var(--gold); }
.side-row.done .wb-state::after { content: ''; position: absolute; left: 50%; top: 44%; width: 3.5px; height: 7px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: translate(-50%, -50%) rotate(45deg); }
.side-num { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--gold); flex: none; width: 26px; }
.side-name { font-size: 13.5px; line-height: 1.35; }
.side-row.done .side-name { color: var(--text-muted); }

.player-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.player-bar { display: flex; align-items: center; gap: 16px; padding: 11px 22px; background: var(--cream-deep); border-bottom: 1px solid var(--border); }
.pn-title { font-size: 13px; letter-spacing: 0.05em; color: var(--text-muted); text-align: center; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-btn { background: var(--white); border: 1px solid var(--border); color: var(--text); font-family: 'Raleway', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 9px 16px; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; flex: none; }
.pn-btn:hover:not(:disabled) { background: var(--gold); color: #fff; border-color: var(--gold); }
.pn-btn:disabled { opacity: 0.4; cursor: default; }
.player-frame { flex: 1; width: 100%; border: none; background: var(--cream); }

.side-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; }
.side-toggle span { display: block; width: 20px; height: 1.5px; background: var(--text); }
@media (max-width: 820px) {
  .side-toggle { display: flex; }
  .player-side { position: fixed; top: 64px; bottom: 0; left: 0; z-index: 30; transform: translateX(-100%); transition: transform 0.28s ease; box-shadow: 0 10px 40px rgba(58,53,48,0.18); }
  .player.side-open .player-side { transform: translateX(0); }
  .hide-sm { display: none; }
}

/* ---------- coach note (a warm word on the dashboard) ---------- */
.coach-note { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--gold); box-shadow: var(--shadow-card); padding: 22px 26px; margin: 4px 0 10px; }
.coach-note .mark { font-family: 'Cormorant Garamond', serif; font-size: 3rem; color: var(--gold-light); line-height: 0.7; flex: none; }
.coach-note p { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-style: italic; line-height: 1.5; color: var(--espresso); }
.coach-note p span { display: block; font-family: 'Raleway', sans-serif; font-style: normal; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-top: 10px; }

/* ---------- start here (welcome video, on the course overview) ---------- */
.start-here { display: flex; gap: 24px; align-items: center; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-card); padding: 18px; margin-top: 24px; }
.sh-thumb { width: 210px; height: 120px; flex: none; background: linear-gradient(135deg, #efe7d9, #e3d5bd); border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.sh-play { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--gold); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.sh-text .eyebrow { margin-bottom: 6px; }
.sh-text h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.6rem; color: var(--text); margin-bottom: 6px; }
.sh-text p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }
.soon { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); background: #eef1ea; padding: 2px 9px; border-radius: 20px; margin-left: 4px; }
@media (max-width: 640px) {
  .start-here { flex-direction: column; align-items: stretch; }
  .sh-thumb { width: 100%; }
}

/* ---------- resources (resources.html) ---------- */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 20px; }
.res-card { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-card); padding: 26px 24px; display: flex; flex-direction: column; gap: 7px; }
.res-kind { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.res-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.4rem; color: var(--text); line-height: 1.2; }
.res-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; flex: 1; }
.res-card .link { margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); text-decoration: none; cursor: pointer; }
.res-card .link:hover { color: var(--sage); }

/* ---------- book a session (book.html) ---------- */
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 6px; }
.book-card { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-card); padding: 34px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.book-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--cream-deep); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.book-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.5rem; color: var(--text); }
.book-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; flex: 1; }
.book-card .btn { padding: 12px 24px; }
@media (max-width: 720px) {
  .book-grid { grid-template-columns: 1fr; }
}

/* ---------- coach tools: assign workbooks + private notes (clients.html) ---------- */
.coach-hint { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin: -12px 0 16px; max-width: 640px; }
.client-select { padding: 12px 14px; border: 1px solid var(--border); background: #fff; font-family: 'Raleway', sans-serif; font-size: 15px; color: var(--text); min-width: 260px; }
.assign-list { display: flex; flex-direction: column; border: 1px solid var(--border); }
.assign-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: #fff; border-bottom: 1px solid var(--border); }
.assign-row:last-child { border-bottom: none; }
.assign-row input { width: 17px; height: 17px; accent-color: var(--gold); flex: none; }
.assign-num { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); width: 88px; flex: none; }
.assign-name { flex: 1; font-size: 14.5px; color: var(--text); }
.assign-badge { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); flex: none; }
.assign-badge.done { color: var(--sage); }
.assign-badge.now { color: var(--gold); }
.priv-badge { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--sage); padding: 2px 9px; border-radius: 20px; vertical-align: middle; margin-left: 6px; }
.note-card { background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--sage); box-shadow: var(--shadow-card); padding: 22px 24px; }
.note-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.note-wb { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--text); }
.note-status { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); flex: none; }
.note-answers { background: var(--cream); border: 1px solid var(--border); padding: 14px 16px; font-size: 13px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.note-answers b { color: var(--text); font-weight: 500; }
.note-input { width: 100%; min-height: 92px; padding: 13px 15px; border: 1px solid var(--border); background: var(--cream); font-family: 'Raleway', sans-serif; font-size: 14px; color: var(--text); line-height: 1.6; resize: vertical; outline: none; }
.note-input:focus { border-color: var(--sage); }
.note-card .btn { margin-top: 14px; background: var(--sage); border-color: var(--sage); }
.note-card .btn:hover { background: var(--espresso); border-color: var(--espresso); }
