/**
 * Regenerate Cascadia - Dashboard
 * Modular CSS partial from rc-template-styles.css
 * Version: v1.0-s147
 * Date: 2026-04-02
 * Generated by Claude (S147, Sprint 4)
 *
 * Sections: 24 (DASHBOARD AND PROFILE SIDEBAR)
 */

/* ═══════════════════════════════════════
   24. DASHBOARD AND PROFILE SIDEBAR
   v1 - 2026-03-12 - Generated by Claude
   Migrated from CE id:16 (RC Dashboard Styles)
   Covers: dashboard hero, announcement banner,
   card grids, profile sidebar, sidebar nav,
   role visibility, responsive breakpoints.
   All CSS custom properties now use the --rc-
   prefix and are defined in the Section 1 :root
   block. Phase 3 migration completed S86.
   ═══════════════════════════════════════ */

/* Dashboard variables: now unified in Section 1 :root block */

/* Dashboard hero */
.dash-hero {
  position: relative;
  padding: 56px 40px 48px;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}
.dash-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.dash-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,43,26,0.5) 0%, rgba(18,43,26,0.85) 100%);
}
.dash-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}
.dash-hero-eyebrow {
  font-family: 'Inconsolata', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rc-gold);
  margin-bottom: 12px;
}
.dash-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #FFF;
  line-height: 1.15;
  margin-bottom: 8px;
}
.dash-hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 2vw, 20px);
  font-style: italic;
  color: var(--rc-sky-water);
  line-height: 1.5;
  max-width: 500px;
}

/* Dashboard announcement banner */
.dash-notice {
  background: var(--rc-deep-forest);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.dash-notice-eyebrow {
  font-family: 'Inconsolata', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rc-gold);
  margin-bottom: 8px;
}
.dash-notice-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--rc-cream);
  margin-bottom: 6px;
}
.dash-notice-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--rc-lichen);
  line-height: 1.6;
}
.dash-notice-btn {
  font-family: 'Inconsolata', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--rc-salmon);
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.dash-notice-btn:hover { background: var(--rc-salmon-dark); }

/* Dashboard main layout */
.dash-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}
.dash-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}
.dash-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
}

/* Dashboard sections */
.dash-section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-bottom: 12px;
}
.dash-section-eyebrow {
  font-family: 'Inconsolata', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rc-gold);
}
.dash-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--rc-forest);
}

/* Dashboard card grids */
.dash-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.dash-card-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.dash-card-grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.dash-card-grid.cols-5 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* Tool card */
.dash-tool-card {
  background: var(--rc-cream);
  padding: 24px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s;
  border: 1px solid transparent;
  position: relative;
}
.dash-tool-card:hover {
  border-color: rgba(0,0,0,0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.dash-tool-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-tool-icon svg { width: 20px; height: 20px; }
.dash-tool-icon.forest svg { fill: var(--rc-canopy); }
.dash-tool-icon.salmon svg { fill: var(--rc-salmon); }
.dash-tool-icon.river svg  { fill: var(--rc-river); }
.dash-tool-icon.gold svg   { fill: var(--rc-gold); }
.dash-tool-icon.fern svg   { fill: var(--rc-fern); }
.dash-tool-title {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--rc-forest);
  line-height: 1.3;
}
.dash-tool-desc {
  font-size: 13px;
  font-weight: 300;
  color: rgba(0,0,0,0.45);
  line-height: 1.5;
}
.dash-tool-arrow {
  font-family: 'Inconsolata', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rc-canopy);
  margin-top: auto;
  padding-top: 6px;
  transition: color 0.2s;
}
.dash-tool-card:hover .dash-tool-arrow { color: var(--rc-salmon); }

/* External link badge */
.dash-tool-external::after {
  content: '\2197';
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 11px;
  color: rgba(0,0,0,0.15);
}

/* Landscape group card (compact) */
.dash-landscape-card {
  background: var(--rc-cream);
  padding: 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.25s;
  border: 1px solid transparent;
}
.dash-landscape-card:hover {
  border-color: rgba(0,0,0,0.06);
  transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.dash-landscape-card-name {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--rc-forest);
}
.dash-landscape-card-region {
  font-size: 12px;
  font-weight: 300;
  color: rgba(0,0,0,0.35);
}

/* Profile sidebar (reusable component) */
.dash-sidebar-wrap {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: fit-content;
}
.dash-profile-sidebar {
  background: var(--rc-cream);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

/* Avatar */
.dash-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--rc-fog);
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--rc-lichen);
}
.dash-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dash-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rc-canopy);
}
.dash-avatar-placeholder svg {
  width: 44px;
  height: 44px;
  fill: var(--rc-lichen);
}

/* Name and pronouns */
.dash-profile-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--rc-forest);
  line-height: 1.2;
}
.dash-profile-pronouns {
  font-size: 12px;
  font-weight: 300;
  color: rgba(0,0,0,0.35);
  margin-top: -6px;
}

/* Role badge */
.dash-profile-role {
  font-family: 'Inconsolata', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 14px;
  line-height: 1;
}
.dash-profile-role.member  { background: rgba(90,155,181,0.15); color: var(--rc-river); }
.dash-profile-role.learner { background: rgba(64,145,108,0.15); color: var(--rc-fern); }
.dash-profile-role.steward { background: rgba(184,150,62,0.15); color: var(--rc-gold); }
.dash-profile-role.staff   { background: rgba(184,150,62,0.15); color: var(--rc-gold); }

/* Bio */
.dash-profile-bio {
  font-size: 13px;
  font-weight: 300;
  color: rgba(0,0,0,0.45);
  line-height: 1.55;
}

/* Location block */
.dash-profile-landscape {
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.dash-profile-landscape-label {
  font-family: 'Inconsolata', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.25);
  margin-bottom: 4px;
}
.dash-profile-landscape-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--rc-forest);
  margin-bottom: 3px;
}
.dash-profile-landscape-link {
  font-size: 12px;
  font-weight: 400;
  color: var(--rc-canopy);
  text-decoration: none;
  transition: color 0.2s;
}
.dash-profile-landscape-link:hover { color: var(--rc-salmon); }

/* Quick actions */
.dash-profile-actions {
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-profile-action {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--rc-canopy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  transition: color 0.2s;
}
.dash-profile-action:hover { color: var(--rc-salmon); }
.dash-profile-action svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}
.dash-profile-action.logout { color: var(--rc-salmon); }
.dash-profile-action.logout:hover { color: var(--rc-salmon-dark); }

/* Sidebar navigation (below profile card) */
.dash-sidebar-nav {
  background: var(--rc-fog);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-sidebar-nav-label {
  font-family: 'Inconsolata', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.25);
  margin-bottom: 8px;
}
.dash-sidebar-nav a {
  font-size: 13px;
  font-weight: 400;
  color: var(--rc-canopy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin: 0 -10px;
  transition: all 0.15s;
}
.dash-sidebar-nav a:hover {
  background: rgba(45,106,79,0.06);
  color: var(--rc-forest);
}
.dash-sidebar-nav a.active {
  color: var(--rc-gold);
  font-weight: 500;
  border-left: 2px solid var(--rc-gold);
  padding-left: 8px;
}
.dash-sidebar-nav a svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}
.dash-sidebar-nav .nav-divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 6px 0;
}

/* Role visibility (CSS body class driven) */
.learner-only { display: none; }
body.role-learner .learner-only,
body.role-steward .learner-only,
body.role-staff .learner-only,
body.role-admin .learner-only { display: block; }
body.role-learner .dash-card-grid .learner-only,
body.role-steward .dash-card-grid .learner-only,
body.role-staff .dash-card-grid .learner-only,
body.role-admin .dash-card-grid .learner-only { display: flex; }

.steward-only { display: none; }
body.role-steward .steward-only,
body.role-staff .steward-only,
body.role-admin .steward-only { display: block; }
body.role-steward .dash-card-grid .steward-only,
body.role-staff .dash-card-grid .steward-only,
body.role-admin .dash-card-grid .steward-only { display: flex; }

.staff-only { display: none; }
body.role-staff .staff-only,
body.role-admin .staff-only { display: block; }

.admin-only { display: none; }
body.role-admin .admin-only { display: block; }

.member-only { display: block; }
body.role-learner .member-only,
body.role-steward .member-only,
body.role-staff .member-only,
body.role-admin .member-only { display: none; }

.dash-sidebar-nav .steward-only { display: none; }
body.role-steward .dash-sidebar-nav .steward-only,
body.role-staff .dash-sidebar-nav .steward-only,
body.role-admin .dash-sidebar-nav .steward-only { display: flex; }

/* Dashboard responsive */
@media (max-width: 900px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }
  .dash-sidebar-wrap {
    position: static;
    order: -1;
  }
  .dash-profile-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
  }
  .dash-avatar {
    width: 64px;
    height: 64px;
  }
  .dash-profile-landscape,
  .dash-profile-actions {
    width: 100%;
  }
  .dash-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    padding: 16px 24px;
  }
  .dash-sidebar-nav a {
    padding: 8px 12px;
    margin: 0;
  }
  .dash-sidebar-nav a.active {
    border-left: none;
    border-bottom: 2px solid var(--rc-gold);
    padding-left: 12px;
  }
  .dash-sidebar-nav .nav-divider {
    display: none;
  }
  .dash-sidebar-nav-label {
    display: none;
  }
}

@media (max-width: 768px) {
  .dash-hero {
    padding: 40px 24px 36px;
    min-height: 180px;
  }
  .dash-main {
    padding: 32px 24px 60px;
  }
  .dash-notice {
    grid-template-columns: 1fr;
  }
  .dash-card-grid,
  .dash-card-grid.cols-2,
  .dash-card-grid.cols-3 {
    grid-template-columns: 1fr 1fr;
  }
  .dash-card-grid.cols-5 {
    grid-template-columns: 1fr 1fr;
  }
  .dash-profile-sidebar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .dash-card-grid,
  .dash-card-grid.cols-3,
  .dash-card-grid.cols-5 {
    grid-template-columns: 1fr;
  }
}


