/* =========================================================
   MAST Productions — SAB Portal  ·  brand stylesheet v2
   Brand source: MAST Volunteer Onboarding deck, Global Production
   Update (Sept 2026), Song Steering Report, Restructure Proposal.
   v1 stylesheet is kept in sab-portal-v1-reference.zip
   ========================================================= */

/* ---------- Montserrat, self-hosted (no external font dependency) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/montserrat-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/montserrat-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/montserrat-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/montserrat-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/montserrat-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/montserrat-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/montserrat-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/montserrat-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/montserrat-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/montserrat-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- brand tokens ---------- */
:root {
  --black: #000000;
  --white: #FFFFFF;
  --charcoal: #252429;
  --grey: #595959;
  --cream: #DFD7C4;
  --cream-l: #EDE9DF;
  --cream-xl: #F6F3EE;
  --gold: #BEAF88;
  --tan: #D7C69B;
  --tan-d: #A0916A;
  --line: #E6E0D2;
  --off: #EFEFEF;          /* future / inactive steps */
  --red: #9E3B32;
  --amber: #A0782A;
  --green: #4F6F48;
  --radius: 6px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Montserrat", Arial, sans-serif;
  background: var(--white);
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--cream); }

/* ---------- header band (black band + cream strip, as content slides) ---------- */
.topbar { background: var(--black); color: var(--white); }
.topbar::after { content: ""; display: block; height: 6px; background: var(--cream); border-top: 1px solid var(--gold); }
.topbar .inner { max-width: 1320px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand .mark { width: 40px; height: 40px; display: block; }
.brand .word { height: 30px; width: auto; display: block; }
.topbar .title { font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; padding-left: 18px; border-left: 1px solid #3a3a3a; }
.topbar .title em { font-style: normal; color: var(--gold); }
.topbar .spacer { flex: 1; }
.topbar .user { font-size: 12px; color: var(--cream); }
@media (max-width: 640px) { .brand .word { display: none; } .topbar .inner { padding: 12px 16px; } }

/* ---------- typography ---------- */
h1, h2, h3, h4 { margin: 0; color: var(--black); }
.h1 { font-size: 34px; font-weight: 300; letter-spacing: -.01em; line-height: 1.15; }
.h1 em, .h2 em { font-style: normal; color: var(--gold); font-weight: 600; }
.h2 { font-size: 22px; font-weight: 600; line-height: 1.25; }
.rule { width: 64px; height: 2px; background: var(--gold); margin: 12px 0 18px; border: 0; }
.lede { color: var(--grey); max-width: 720px; margin: 0 0 22px; }
.overline { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.overline::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.caps { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: 11px; }

/* ---------- hero (black, B&W studio photography) ---------- */
.hero { position: relative; background: var(--black); color: var(--white); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url(/assets/img/hero-drums.jpg) center 30% / cover no-repeat; opacity: .42; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 18%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.2)); }
.hero .inner { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 52px 24px 46px; }
.hero h1 { color: var(--white); font-size: 52px; font-weight: 300; line-height: 1.05; margin-top: 16px; }
.hero h1 b { display: block; color: var(--gold); font-weight: 700; }
.hero p { color: #d9d4c8; max-width: 560px; margin: 16px 0 0; font-size: 15px; }
.hero .mark-lg { position: absolute; right: 24px; top: 44px; width: 64px; height: 64px; z-index: 1; }
.hero-strip { height: 6px; background: var(--cream); border-top: 1px solid var(--gold); }
@media (max-width: 640px) { .hero h1 { font-size: 36px; } .hero .inner { padding: 36px 16px 32px; } .hero .mark-lg { display: none; } }

/* ---------- layout ---------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 34px 24px 60px; }
@media (max-width: 640px) { .wrap { padding: 24px 16px 48px; } }

/* numbered section with black vertical tab + rotated label (Global Production Update style) */
.sec { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 22px; margin-bottom: 40px; }
.sec-tab { background: var(--black); color: var(--white); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; padding: 14px 0; min-height: 170px; }
.sec-tab b { font-size: 15px; font-weight: 700; }
.sec-tab span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; margin-top: 14px; white-space: nowrap; }
.sec-tab span i { font-style: normal; color: var(--gold); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
@media (max-width: 640px) {
  .sec { grid-template-columns: 1fr; gap: 12px; }
  .sec-tab { flex-direction: row; min-height: 0; padding: 8px 14px; gap: 12px; justify-content: flex-start; }
  .sec-tab span { writing-mode: horizontal-tb; transform: none; margin: 0; }
}

/* ---------- stat boxes (Steering Report style) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--line); border-top: 3px solid var(--black); background: var(--white); padding: 16px 18px 14px; border-radius: 0 0 var(--radius) var(--radius); }
.stat .v { font-size: 36px; font-weight: 600; color: var(--black); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 12px; color: var(--grey); margin-top: 4px; }
.stat.gold { border-top-color: var(--gold); }
.stat.tan { border-top-color: var(--tan-d); }
.stat.cream { background: var(--cream-xl); }

/* ---------- Song Journey chevrons ---------- */
.journey { display: flex; gap: 4px; }
.chev { flex: 1; min-width: 0; padding: 14px 22px 12px 28px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%); background: var(--cream-l); color: var(--black); cursor: pointer; transition: filter .12s; border: 0; text-align: left; }
.chev:first-child { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); padding-left: 18px; }
.chev:hover { filter: brightness(.96); }
.chev .n { display: block; font-size: 28px; font-weight: 600; line-height: 1.1; }
.chev .l { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev.on { background: var(--black) !important; color: var(--white) !important; }
@media (max-width: 860px) {
  .journey { flex-direction: column; }
  .chev, .chev:first-child { clip-path: none; padding: 10px 14px; border-radius: var(--radius); display: flex; align-items: center; gap: 14px; }
  .chev .n { font-size: 20px; min-width: 32px; }
}
/* mini stage strip on cards */
.steps { display: flex; gap: 2px; }
.steps i { flex: 1; height: 10px; background: var(--off); clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 50%, calc(100% - 5px) 100%, 0 100%, 5px 50%); }
.steps i:first-child { clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 50%, calc(100% - 5px) 100%, 0 100%); }
.steps i.now { background: var(--black); }

/* ---------- progress ---------- */
.bar { height: 6px; background: var(--off); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width .4s; }
.bar.done > i { background: var(--black); }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--cream); color: var(--black); white-space: nowrap; }
.pill.dark { background: var(--black); color: var(--white); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 700; }
.pill.line { background: transparent; border: 1px solid var(--line); color: var(--grey); }
.pill.s-ontrack { background: #E4EADF; color: #34502F; }
.pill.s-atrisk { background: #F3E7CC; color: #6E521A; }
.pill.s-blocked { background: #F1DAD6; color: #7A2A22; }
.pill.s-onhold { background: var(--off); color: var(--grey); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: currentColor; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--black); cursor: pointer; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 12.5px; background: var(--black); color: var(--white); text-decoration: none; letter-spacing: .02em; }
.btn:hover { background: var(--charcoal); }
.btn.cream { background: var(--cream); border-color: var(--cream); color: var(--black); }
.btn.cream:hover { background: var(--tan); border-color: var(--tan); }
.btn.ghost { background: transparent; color: var(--black); border-color: var(--line); }
.btn.ghost:hover { background: var(--cream-xl); border-color: var(--cream); }
.btn.danger { background: transparent; color: var(--red); border-color: #E5C8C3; }
.btn.danger:hover { background: #F8EEEC; }
.btn.sm { padding: 5px 12px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- cards with black header bar (Steering Report "01 – Overview" bars) ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card > .card-h { background: var(--black); color: var(--white); padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 42px; }
.card > .card-h h3 { color: var(--white); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.card > .card-h .meta { font-size: 11px; color: var(--cream); }
.card > .card-h .btn.ghost { color: var(--white); border-color: #444; }
.card > .card-h .btn.ghost:hover { background: #1b1b1b; }
.card > .card-b { padding: 16px; }
.panel { background: var(--cream-xl); border-left: 3px solid var(--gold); padding: 10px 12px; border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
input[type=text], input[type=email], input[type=date], input[type=url], input[type=search], input[type=number], select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 9px 11px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(190,175,136,.22); }
textarea { min-height: 80px; resize: vertical; }
input[type=checkbox] { accent-color: #000; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 280px; }
.toolbar select { width: auto; min-width: 150px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { background: var(--black); color: var(--white); text-align: left; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding: 11px 12px; font-weight: 700; white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--cream-l); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--cream-xl); }

/* ---------- misc ---------- */
.muted { color: var(--grey); }
.small { font-size: 12px; }
.empty { text-align: center; padding: 40px 16px; color: var(--grey); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: var(--black); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 13px; z-index: 99; opacity: 0; transition: opacity .2s; pointer-events: none; border: 1px solid var(--gold); }
.toast.show { opacity: 1; }

/* ---------- footer (black, gold caps, white wordmark) ---------- */
.footer { background: var(--black); color: var(--white); }
.footer::before { content: ""; display: block; height: 6px; background: var(--cream); border-bottom: 1px solid var(--gold); }
.footer .inner { max-width: 1320px; margin: 0 auto; padding: 26px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .q { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.footer p { margin: 0; font-size: 12.5px; color: #cfcabe; max-width: 560px; }
.footer img { height: 38px; width: auto; }

/* links inside content: black text, thin gold underline (as MAST documents) */
.card-b a:not(.btn), .attn a, .recent a { text-decoration: none; border-bottom: 1px solid var(--gold); }
.card-b a:not(.btn):hover, .attn a:hover, .recent a:hover { border-bottom-color: var(--black); }
