/* ==========================================================================
   Mary Kay Unit Newsletter Dashboard — token-driven stylesheet.
   Every color/type/radius/shadow decision reads var(--token) — see
   theme-tokens/TOKENS.md for the token table. No hardcoded hex values here.
   ========================================================================== */

* {
  box-sizing: border-box;
}

/*body {
  background: var(--page-bg);
  font-family: var(--font-body);
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
}*/

body {
  background-color: var(--page-bg, #DCD7D9);
  background-image: var(--page-bg-image, none);
  background-position: var(--page-bg-position, center);
  background-size: var(--page-bg-size, cover);
  background-repeat: var(--page-bg-repeat, no-repeat);
  font-family: var(--font-body);
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
}

.mk-app {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  min-height: 100vh;
  box-shadow: var(--shadow-card);
}

/* ---------- unavailable page (unresolved unit / not paid in full) ---------- */
.mk-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.mk-unavailable-card {
  max-width: 420px;
  text-align: left;
}

.mk-unavailable-card .mk-eyebrow {
  text-align: left;
}

.mk-unavailable-image {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blush-wash);
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.mk-unavailable-image svg {
  width: 40px;
  height: 40px;
}

/* ---------- header (fixed chrome, not a reorderable section) ----------
   Two-column band, intentionally non-collapsing: identity + edition copy
   on the left, a decorative photo/placeholder column on the right, side
   by side at every viewport width — this is the one layout in the app
   that does not stack on mobile. */
.mk-header {
  display: grid;
  grid-template-columns: 1fr minmax(96px, 36%);
  align-items: stretch;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.mk-header-content {
  padding: 18px 18px 22px;
  min-width: 0;
  align-self: center;
}

.mk-header-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 18px;
}

.mk-header-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 2px;
  flex-wrap: wrap;
}

.mk-header-name-script {
  font-family: var(--font-script, var(--font-head));
  font-size: 26px;
  line-height: 1;
  color: var(--secondary);
}

.mk-header-role {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.mk-header-title {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--letter-head);
  font-size: 14.5px;
  color: var(--ink);
  margin: 0;
}

.mk-header-sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-soft);
  margin: 2px 0 0;
}

.mk-header-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  flex: none;
  background: var(--blush-wash);
}

.mk-header-edition .mk-eyebrow {
  margin: 0 0 4px;
}

.mk-hero-headline {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--letter-head);
  font-size: clamp(1.4rem, 6vw, 1.75rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 2px 0 8px;
}

.mk-hero-sub {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
}

.mk-header-hero-image {
  min-width: 0;
  mask-image: linear-gradient(to left, black 85%, transparent 97%);
  -webkit-mask-image: linear-gradient(to left,
    black 85%,       /* Image is 100% solid from 0% to 30% */
    transparent 97%  /* Image fades completely to transparent by 80% */
  );
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--blush-wash), var(--secondary-wash) 70%);
}

/* On narrow screens, stack the header into three full-width bands instead
   of the desktop 2-column grid: director identity block, then the hero
   photo (full-bleed, no fade), then the edition eyebrow/headline/subhead.
   .mk-header-content collapses via display:contents so its two children
   (identity, edition) become direct flex siblings of the hero image,
   which lets `order` interleave all three without touching the markup. */
@media (max-width: 575.98px) {
  .mk-header {
    display: flex;
    flex-direction: column;
  }

  .mk-header-content {
    display: contents;
  }

  .mk-header-identity {
    order: 1;
    padding: 14px 18px 0;
    margin: 0 0 14px;
  }

  .mk-header-hero-image {
    order: 2;
    width: 100%;
    aspect-ratio: 5 / 2;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .mk-header-edition {
    order: 3;
    padding: 16px 18px 20px;
  }

  .mk-hero-headline {
    font-size: clamp(1.6rem, 8vw, 2.25rem);
  }
}

/* ---------- section shell ---------- */
.mk-section {
  padding: 15px 18px;
  /*border-bottom: 1px solid var(--line);*/
}

.mk-section:last-child {
  border-bottom: none;
}

.mk-director-note {
  padding: 15px 30px
}

.mk-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--head-weight);
  font-size: 12.5px;
  color: var(--blush);
  margin: 0 0 2px;
  
}

.mk-h2 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--letter-head);
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 14px;
}

.mk-tier-label {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  margin: 0 0 10px;
}

/* ---------- cards ---------- */
.mk-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1rem;
}

.mk-card-hero {
  background: var(--blush-wash);
  border: var(--rank1-ring);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mk-pill {
  display: inline-block;
  background: var(--blush-wash);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ---------- Stars: earned hero grid (3-up desktop, 2-up mobile) ---------- */
.mk-grid-stars-earned {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 576px) {
  .mk-grid-stars-earned {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mk-card-star {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mk-card-star .mk-photo {
  width: 64px;
  flex: none;
}

.mk-card-star-body {
  min-width: 0;
}

.mk-card-star-name {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 4px;
}

.mk-pill-level {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.mk-pill-level-icon {
  width: 14px;
  height: 14px;
  flex: none;
  object-fit: contain;
}

.mk-h2-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.mk-h2-row .mk-h2 {
  margin-bottom: 0;
}

.mk-pill-action {
  flex: none;
  background: var(--card);
  border: 1px solid var(--blush-wash);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  white-space: nowrap;
}

/* ---------- Queens carousel (scroll-snap, no framework) ---------- */
.mk-queens-section {
  background: var(--queens-section-bg);
}

.mk-carousel-track.mk-grid-queens {
  display: flex;
  grid-template-columns: unset;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.mk-carousel-track.mk-grid-queens::-webkit-scrollbar {
  display: none;
}

.mk-carousel-item {
  /* never more than 3 cards visible in the viewport, regardless of width */
  flex: 0 0 calc((100% - 2 * 12px) / 3);
  scroll-snap-align: start;
}

@media (max-width: 480px) {
  .mk-carousel-item {
    flex: 0 0 calc((100% - 12px) / 2);
  }
}

/* ---------- New Consultants carousel (scroll-snap, no framework) ---------- */
.mk-carousel-track.mk-grid-newcon {
  display: flex;
  grid-template-columns: unset;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.mk-carousel-track.mk-grid-newcon::-webkit-scrollbar {
  display: none;
}

.mk-carousel-track.mk-grid-newcon .mk-carousel-item {
  /* never more than 4 cards visible on desktop */
  flex: 0 0 calc((100% - 3 * 12px) / 4);
  scroll-snap-align: start;
}

@media (max-width: 480px) {
  .mk-carousel-track.mk-grid-newcon .mk-carousel-item {
    /* never more than 3 cards visible on mobile */
    flex: 0 0 calc((100% - 2 * 12px) / 3);
  }
}

.mk-queen-photo-wrap {
  position: relative;
}

.mk-queen-badge {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.mk-queen-badge svg {
  width: 16px;
  height: 16px;
}

.mk-queens-section .mk-tile-name {
  margin-top: 18px;
}

.mk-queen-category {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin: 2px 0 0;
}

.mk-carousel {
  position: relative;
}

.mk-carousel-arrow {
  position: absolute;
  /* photo dominates card height, so centering on the track keeps arrows
     roughly level with the photos across all viewport widths */
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-card);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mk-carousel-arrow svg {
  width: 18px;
  height: 18px;
}

.mk-carousel-arrow-prev {
  left: 4px;
}

.mk-carousel-arrow-next {
  right: 4px;
}

/* ---------- buttons ---------- */
.mk-btn,
.mk-btn-outline,
.mk-btn-primary {
  width: 100%;
  border-radius: var(--radius-card);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.mk-btn-outline {
  background: var(--card);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.mk-btn-primary {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
}

.mk-btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

/* ---------- photo placeholder (279:394 always) ---------- */
.mk-photo {
  aspect-ratio: 279 / 394;
  border-radius: var(--radius-card);
  background: var(--blush-wash-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 1;
  width: 100%;
  object-fit: cover;
}

.mk-photo-letter {
  border-radius: var(--radius-card);
  background: var(--blush-wash-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 1;
  width: 100%;
  object-fit: cover;
}

.mk-photo svg {
  width: 29%;
  height: 29%;
  opacity: 0.6;
}

.mk-photo-thumb {
  width: 36px;
  flex: none;
}

.mk-photo-thumb svg {
  width: 38%;
  height: 38%;
}

/* rank/status ring pair — reused everywhere a hero-vs-rest distinction exists */
.mk-photo-rank1,
.rank1-photo {
  border: var(--rank1-ring);
  background-color: var(--card);
}

.mk-photo-other {
  border: var(--rank-other-border);
}

/* Spark theme's gradient hero ring, per theme-tokens/TOKENS.md */
[data-theme="spark"] .rank1-photo {
  background-image: linear-gradient(var(--card), var(--card)), var(--rank1-ring-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* ---------- fluid grids (auto-fit, section flexes without snapping) ---------- */
.mk-grid {
  display: grid;
  gap: 12px;
}

.mk-grid-queens {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.mk-grid-wholesale {
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 8px;
}

/* ---------- wholesale: hero-left / 2x2-right layout ---------- */
.mk-wholesale-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mk-card-hero-wholesale {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.mk-card-hero-wholesale .mk-photo {
  width: 100%;
  height:100%;
  border: 1px solid var(--line);
}

.mk-wholesale-leader-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 25px 0 0;
}

.mk-wholesale-hero-name {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 20px;
  color: var(--ink);
  margin: 0;
}

.mk-wholesale-hero-amount {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  padding: 0px;
}

.mk-grid-wholesale-rest {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mk-wholesale-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.mk-wholesale-card-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mk-wholesale-card-photo {
  width: 76px;
  flex: none;
}

.mk-wholesale-rank {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--accent);
  margin: 0 0 6px;
}

.mk-wholesale-card-name {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 13.5px;
  color: var(--ink);
  margin: 0;
}

.mk-wholesale-card-amount {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--ink-soft);
  margin: 3px 0 0;
}

@media (max-width: 767.98px) {
  .mk-card-hero-wholesale {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 768px) {
  .mk-wholesale-layout {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 2fr;
    gap: 16px;
    align-items: stretch;
  }
}

/* ---------- leadership recognition: one continuous grid, tiers flow inline ---------- */
.mk-grid-leadership {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 768px) {
  .mk-grid-leadership {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.mk-leadership-placard {
  aspect-ratio: 279 / 394;
  border-radius: var(--radius-card);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--page-bg);
}

.mk-leadership-placard-title {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 13px;
  color: var(--ink);
  margin: 0;
}

.mk-leadership-crown {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.mk-leadership-placard-rule {
  width: 20px;
  height: 1px;
  border-radius: 1px;
  background: var(--secondary);
}

.mk-grid-newcon {
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
}

.mk-grid-2up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mk-tile-name {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 13px;
  color: var(--ink);
  margin: 6px 0 0;
  text-align: center;
}

.mk-tile-cap {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-soft);
  margin: 2px 0 0;
  text-align: center;
}

.mk-tile-name-left,
.mk-tile-cap-left {
  text-align: center;
}

/* ---------- list rows (wholesale/stars/new-consultant/ytd full lists) ---------- */
.mk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}

.mk-row:last-child {
  border-bottom: none;
}

.mk-row-name {
  flex: 1;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
}

.mk-row-stat {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Commissions ---------- */
.mk-commission-group{
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- PCP participants ---------- */
.mk-pcp-cols-1 {
  display: block;
}

.mk-pcp-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  margin: 30px;
}

.mk-pcp-cols-2[hidden] {
  display: none;
}

.mk-pcp-name {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- overflow tile ("+N more") ---------- */
.mk-overflow-tile {
  position: relative;
  cursor: pointer;
}

.mk-overflow-tile .mk-photo {
  position: relative;
  overflow: hidden;
}

.mk-overflow-scrim {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 16px;
}

/* ---------- celebrations ---------- */
.mk-celebration-tile {
  aspect-ratio: auto;
  border-radius: var(--radius-card);
  background: var(--blush-wash);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  padding: 16px;
  cursor: pointer;
  color: var(--ink);
  width: auto;
}

.mk-celebration-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.mk-celebration-title {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 16px;
  color: var(--ink);
  margin: 0;
}

.mk-celebration-cap {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.mk-celebration-link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- YTD standings ---------- */
.mk-ytd-full {
  grid-template-columns: 1fr;
}

/* ---------- month at a glance timeline ---------- */
.mk-timeline {
  position: relative;
  padding-left: 22px;
}

.mk-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}

.mk-tl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  position: relative;
}

.mk-tl-dot {
  position: absolute;
  left: -19px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  z-index: 1;
}

.mk-tl-date {
  width: 52px;
  height: 44px;
  border-radius: var(--radius-card);
  border: 1px solid var(--secondary);
  overflow: hidden;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 1;
}

.mk-tl-date b {
  font-size: 16px;
  line-height: 1.1;
  color: var(--ink);
  background: var(--card);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-tl-date span {
  order: -1;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blush);
  font-weight: 900;
  background: var(--blush-wash-soft);
  padding: 3px 0;
  text-align: center;
}

.mk-tl-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  flex: 1;
}

.mk-tl-group-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 14px 0 4px;
  padding-left: 64px;
}

.mk-tl-group-label:first-child {
  margin-top: 0;
}

/* ---------- soft-background card wrapper (background-tone shift, no hard box) ---------- */
.mk-card-soft {
  background: var(--queens-section-bg);
  border-radius: var(--radius-card);
  padding: 16px;
  margin: 10px 14px 0px 14px;
}

.mk-xtra-card {
  display: flex;
  align-items: flex-start;
  gap: 35px;
  padding: 35px 20px 35px 20px ;
}

.mk-xtra-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.mk-xtra-card-body {
  flex: 1;
  min-width: 0;
}

.mk-xtra-card-body .mk-eyebrow {
  margin: 0 0 6px;
}

.mk-xtra-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

/*.mk-xtra-text p + p {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}*/

/* ---------- PCP registration deadline notice ---------- */
.mk-pcp-deadline-date {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--letter-head);
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
  margin: 4px 0 10px;
}

.mk-pcp-divider {
  margin: 14px 0;
  border: none;
  border-top: 1px solid var(--line);
}

.mk-pcp-card {
  display: flex;
  align-items: flex-start;
  gap: 35px;
  padding: 0px 100px 0px 10px ;
}

/* ---------- director's note ---------- */
.mk-h2-script {
  font-family: var(--font-script, var(--font-head));
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 14px;
}

.mk-note-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.mk-note-col-photo {
  order: -1;
}

.mk-note-quote {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mk-note-quote-mark {
  flex: none;
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: 0.7;
  color: var(--blush);
  opacity: 0.6;
}

.mk-note-quote-text {
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

.mk-note-summary {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 14px 0 16px;
}

.mk-note-photo {
  width: 100%;
  border-radius: var(--radius-card);
}

/* ---------- director's note full-letter modal body ---------- */
.mk-note-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

@media (min-width: 768px) {
  .mk-note-card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 28px;
  }

  .mk-note-col-photo {
    order: 0;
  }
}

/* ---------- training CTA ---------- */
.mk-cta-note {
  text-align: center;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ---------- modals ---------- */
.mk-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 1050;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.mk-modal-overlay.mk-open {
  display: flex;
}

.mk-modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 78vh;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mk-modal-handle {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.mk-modal-handle span {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}

.mk-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.mk-modal-title {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 17px;
  color: var(--ink);
  margin: 0;
}

.mk-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  background: none;
}

.mk-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 20px;
}

.mk-modal-body .mk-photo {
  min-width:0;
  width:55px;
}

@media (min-width: 768px) {
  .mk-modal-overlay {
    align-items: center;
  }

  .mk-modal-sheet {
    border-radius: var(--radius-lg);
    max-width: 420px;
  }
}

/* ==========================================================================
   Bottom navigation — fixed, one icon set, server-decided active state.
   ========================================================================== */
.mk-app {
  padding-bottom: 78px;
}

.mk-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  display: flex;
  background: var(--card);
  border-top: 1px solid var(--line);
  z-index: 900;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mk-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px 8px;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.mk-nav-item i {
  font-size: 22px;
  line-height: 1;
}

.mk-nav-item.mk-nav-active {
  color: var(--accent);
  font-weight: 700;
}

/* ==========================================================================
   Home — pinned hero/teaser tiers + customizable teaser slots. Background-
   tone shifts mark zone changes; no bordered boxes stacked on top of a
   bordered container (see design-brief-dashboard.md §0/§7).
   ========================================================================== */
.mk-home-hero {
  background: var(--blush-wash-soft);
}

.mk-home-custom {
  background: var(--card);
}

.mk-home-challenge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--queens-section-bg);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin: 0 20px 14px;
}

.mk-home-challenge-icon {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 10px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--accent);
  color: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-home-challenge-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
}

.mk-home-challenge-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

.mk-home-slots {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mk-nav-more-links {
  grid-template-columns: 1fr;
}

.mk-home-slot {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-card);
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.mk-home-slot-icon {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 8px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--blush-wash);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-home-slot-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mk-home-slot-title {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 14px;
  color: var(--ink);
}

.mk-home-slot-teaser {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.mk-home-slot {
  position: relative;
}

.mk-home-slot::after {
  font-family: "lined-icons";
  font-style: normal;
  font-weight: normal;
  content: "\e930";
  position: absolute;
  top: 14px;
  right: 12px;
  color: var(--accent);
  font-size: 14px;
}

/* ==========================================================================
   Recognition/Home tabs — light-touch box-stacking softening only. Same
   sections/data/sort logic, just alternating background tone instead of
   every card carrying its own border. Calendar tab opts out (stays plain
   white, no alternating tone) per design direction.
   ========================================================================== */
.mk-recognition .mk-section:nth-of-type(even),
.mk-home .mk-section:nth-of-type(even) {
  background: var(--queens-section-bg);
}

.mk-recognition .mk-card,
.mk-home .mk-card {
  border-color: transparent;
  background: var(--secondary-wash);
}

/* Director's note is an exception to the alternating-tone/secondary-wash
   treatment above — it stays plain white (--card is #fff in every theme),
   both the section shell and the card inside it. */
.mk-recognition .mk-section.mk-director-note,
.mk-home .mk-section.mk-director-note,
.mk-home .mk-section.mk-home-custom {
  background: var(--card);
}

.mk-recognition .mk-note-card,
.mk-home .mk-note-card {
  background: var(--card);
}

/* ==========================================================================
   Training tab — each section carries a fixed background keyed to its own
   identity, not to its position in ?order=. training_feature and
   training_more stay white by default (no override needed below);
   training_pinned is always gold; training_callout's outer section always
   stays white with the gold tone living on the box inside it instead (see
   .mk-training-callout).
   ========================================================================== */
.mk-training .mk-section {
  background: var(--card);
}

.mk-training .mk-section.mk-tint-section {
  background: var(--queens-section-bg);
}

.mk-section-subtext {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

/* ---------- "This Month's Edit" feature card ---------- */
.mk-feature-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.mk-feature-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.mk-feature-category {
  font-family: var(--font-body);
  font-weight: var(--head-weight);
  font-size: 12.5px;
  color: var(--accent);
  margin: 0 0 4px;
}

.mk-feature-title {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--letter-head);
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 8px;
}

.mk-feature-summary {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

@media (min-width: 768px) {
  .mk-feature-card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 24px;
  }
}

/* ---------- shared icon-row list (pinned resources / more training) ---------- */
.mk-icon-row-list {
  display: flex;
  flex-direction: column;
}

.mk-icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.mk-icon-row:last-child {
  border-bottom: none;
}

.mk-icon-row-icon {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 6px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--blush-wash-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-icon-row-body {
  flex: 1;
  min-width: 0;
}

.mk-icon-row-meta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 2px;
}

.mk-icon-row-title {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 2px;
}

.mk-icon-row-summary {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0;
}

.mk-icon-row-chevron {
  flex: none;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

/* ---------- bottom callout ("one minute can move you forward") ---------- */
.mk-training-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--queens-section-bg);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.mk-training-callout-icon {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 10px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--accent);
  color: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-training-callout-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
}

.mk-training-callout-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
