/*
 Theme Name:   HFW Staff Portal
 Theme URI:    https://humanefw.org
 Description:  Custom staff portal theme for Humane Fort Wayne. Child theme of GeneratePress.
 Author:       Andrew Gibson
 Author URI:   https://andrewjgibson.com
 Template:     generatepress
 Version:      2.4.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  hfw-portal
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================================== */

:root {
  /* Primary Colors */
  --color-blue-heeler: #2E3091;
  --color-pawsitively-pink: #DB3069;
  
  /* Secondary Colors */
  --color-tennis-ball: #EDED40;
  --color-really-teally: #6EC7C7;
  --color-purr-ple: #8A65C4;
  
  /* Neutrals */
  --color-white: #FFFFFF;
  --color-neutral-bg: #E3F3F3;
  --color-neutral-light: #F5F7F7;
  --color-neutral-border: #D1D5D5;
  --color-text-dark: #1A1A2E;
  --color-text-muted: #5A5A6E;
  
  /* Accent */
  --color-tennis-ball-border: #F7BE68;
  
  /* Typography */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  
  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  
  /* Font Sizes (modular scale ~1.25) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  
  /* Spacing Scale (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  
  /* Layout */
  --sidebar-width: 260px;
  --header-height: 64px;
  --content-max-width: 1200px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* ==========================================================================
   BASE OVERRIDES
   ========================================================================== */

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-dark);
  background-color: var(--color-neutral-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide default GeneratePress site header/footer on portal pages */
body.hfw-portal-page .site-header,
body.hfw-portal-page .site-footer {
  display: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-white);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

a {
  color: var(--color-pawsitively-pink);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-blue-heeler);
}

.font-serif {
  font-family: var(--font-serif);
}

/* ==========================================================================
   LAYOUT: PORTAL SHELL
   ========================================================================== */

.portal-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.portal-sidebar {
  width: var(--sidebar-width);
  background: var(--color-white);
  border-right: 1px solid var(--color-neutral-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.portal-sidebar__header {
  padding: var(--space-5);
  background: var(--color-blue-heeler);
}

.portal-sidebar__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.portal-sidebar__logo {
  max-width: 180px;
  height: auto;
  display: block;
}

.portal-sidebar__tagline {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.9;
}

.portal-sidebar__nav {
  flex: 1;
  padding: var(--space-4) 0;
  overflow-y: auto;
}

.portal-sidebar__footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-neutral-border);
}

/* Navigation */
.nav-section {
  margin-bottom: var(--space-6);
}

.nav-section__title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-5);
  margin-bottom: var(--space-1);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  color: var(--color-text-dark);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background: var(--color-neutral-bg);
  color: var(--color-blue-heeler);
}

.nav-link.is-active {
  background: var(--color-neutral-bg);
  color: var(--color-blue-heeler);
}

.nav-link__icon {
  width: 20px;
  text-align: center;
  font-size: var(--text-base);
}

/* User Menu */
.user-menu {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.user-menu__avatar {
  width: 36px;
  height: 36px;
  background: var(--color-purr-ple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
}

.user-menu__info {
  flex: 1;
  min-width: 0;
}

.user-menu__name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Main Content Area */
.portal-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
}

/* Header */
.portal-header {
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-neutral-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  position: sticky;
  top: 0;
  z-index: 50;
}

.portal-header__search {
  position: relative;
  width: 320px;
}

.portal-header__search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.portal-header__search-input {
  width: 100%;
  padding: var(--space-2) var(--space-4);
  padding-left: var(--space-10);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--color-text-dark);
  background: var(--color-neutral-light);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.portal-header__search-input:focus {
  outline: none;
  background: var(--color-white);
  border-color: var(--color-blue-heeler);
  box-shadow: 0 0 0 3px rgba(46, 48, 145, 0.1);
}

.portal-header__search-input::placeholder {
  color: var(--color-text-muted);
}

.portal-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-icon-btn:hover {
  background: var(--color-neutral-bg);
  color: var(--color-blue-heeler);
}

/* Page Content */
.portal-content {
  flex: 1;
  padding: var(--space-8);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn:focus-visible {
  outline: 2px solid var(--color-pawsitively-pink);
  outline-offset: 2px;
}

/* Primary Button (Tennis Ball) */
.btn--primary {
  background-color: var(--color-tennis-ball);
  color: var(--color-blue-heeler);
  border-color: var(--color-tennis-ball-border);
}

.btn--primary:hover {
  background-color: var(--color-blue-heeler);
  color: var(--color-white);
  border-color: var(--color-blue-heeler);
}

/* Secondary Button (Blue Heeler) */
.btn--secondary {
  background-color: var(--color-blue-heeler);
  color: var(--color-white);
  border-color: var(--color-blue-heeler);
}

.btn--secondary:hover {
  background-color: var(--color-pawsitively-pink);
  border-color: var(--color-pawsitively-pink);
}

/* Ghost Button */
.btn--ghost {
  background-color: var(--color-white);
  color: var(--color-blue-heeler);
  border-color: var(--color-blue-heeler);
}

.btn--ghost:hover {
  background-color: var(--color-neutral-bg);
}

/* Ghost Light (for dark backgrounds) */
.btn--ghost-light {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--ghost-light:hover {
  background-color: var(--color-white);
  color: var(--color-blue-heeler);
}

/* Pink Button */
.btn--pink {
  background-color: var(--color-pawsitively-pink);
  color: var(--color-white);
  border-color: var(--color-pawsitively-pink);
}

.btn--pink:hover {
  background-color: var(--color-blue-heeler);
  border-color: var(--color-blue-heeler);
}

/* Button Sizes */
.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card__header {
  padding: var(--space-4) var(--space-5);
  background: var(--color-blue-heeler);
  color: var(--color-white);
}

.card__header--teal {
  background: var(--color-really-teally);
  color: var(--color-text-dark);
}

.card__header--purple {
  background: var(--color-purr-ple);
  color: var(--color-white);
}

.card__header--pink {
  background: var(--color-pawsitively-pink);
  color: var(--color-white);
}

.card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin: 0;
}

.card__body {
  padding: var(--space-5);
}

.card__footer {
  padding: var(--space-4) var(--space-5);
  background: var(--color-neutral-light);
  border-top: 1px solid var(--color-neutral-border);
}

/* Section Card (for dashboard sections) */
.section-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.section-card__header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-neutral-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-blue-heeler);
  margin: 0;
}

.section-card__action {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-pawsitively-pink);
  transition: color var(--transition-fast);
}

.section-card__action:hover {
  color: var(--color-blue-heeler);
}

.section-card__body {
  padding: var(--space-6);
}

/* Staff Card */
.staff-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-neutral-border);
  transition: all var(--transition-base);
}

.staff-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-really-teally);
}

.staff-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-blue-heeler);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.staff-card__info {
  flex-grow: 1;
  min-width: 0;
}

.staff-card__name {
  font-weight: var(--weight-semibold);
  color: var(--color-blue-heeler);
  margin-bottom: var(--space-1);
}

.staff-card__role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.staff-card__contact {
  font-size: var(--text-sm);
}

.staff-card__contact a {
  color: var(--color-pawsitively-pink);
}

.staff-card__contact a:hover {
  text-decoration: underline;
}

/* Department Card */
.dept-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  display: block;
}

.dept-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.dept-card__icon {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
}

.dept-card__icon--clinic { background: var(--color-really-teally); }
.dept-card__icon--shelter { background: var(--color-pawsitively-pink); }
.dept-card__icon--adoptions { background: var(--color-purr-ple); }
.dept-card__icon--admin { background: var(--color-blue-heeler); }
.dept-card__icon--community { background: var(--color-tennis-ball); }
.dept-card__icon--development { background: var(--color-really-teally); }
.dept-card__icon--surgery { background: var(--color-pawsitively-pink); }
.dept-card__icon--volunteer { background: var(--color-purr-ple); }
.dept-card__icon--veterinary { background: var(--color-blue-heeler); }
.dept-card__icon--foster { background: var(--color-really-teally); }

.dept-card__content {
  padding: var(--space-4);
  text-align: center;
}

.dept-card__title {
  font-weight: var(--weight-semibold);
  color: var(--color-blue-heeler);
  margin-bottom: var(--space-1);
}

.dept-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Document Card */
.doc-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-neutral-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}

.doc-card:hover {
  border-color: var(--color-blue-heeler);
  background: var(--color-neutral-light);
}

.doc-card__icon {
  width: 40px;
  height: 40px;
  background: var(--color-blue-heeler);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  flex-shrink: 0;
}

.doc-card__info {
  flex-grow: 1;
  min-width: 0;
}

.doc-card__title {
  font-weight: var(--weight-medium);
  color: var(--color-text-dark);
}

.doc-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-dark);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-text-dark);
  background: var(--color-white);
  border: 2px solid var(--color-neutral-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-blue-heeler);
  box-shadow: 0 0 0 3px rgba(46, 48, 145, 0.15);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  padding-right: var(--space-10);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-text-dark);
  background: var(--color-white);
  border: 2px solid var(--color-neutral-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A5A6E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  transition: border-color var(--transition-fast);
}

.form-select:focus {
  outline: none;
  border-color: var(--color-blue-heeler);
}

.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-text-dark);
  background: var(--color-white);
  border: 2px solid var(--color-neutral-border);
  border-radius: var(--radius-md);
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-textarea:focus {
  outline: none;
  border-color: var(--color-blue-heeler);
  box-shadow: 0 0 0 3px rgba(46, 48, 145, 0.15);
}

/* Search Input */
.search-input {
  position: relative;
}

.search-input__field {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  padding-left: var(--space-10);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-text-dark);
  background: var(--color-white);
  border: 2px solid var(--color-neutral-border);
  border-radius: var(--radius-pill);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input__field:focus {
  outline: none;
  border-color: var(--color-blue-heeler);
  box-shadow: 0 0 0 3px rgba(46, 48, 145, 0.15);
}

.search-input__icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

/* ==========================================================================
   ACCORDION
   ========================================================================== */

.accordion {
  border: 2px solid var(--color-really-teally);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion__item {
  border-bottom: 1px solid var(--color-really-teally);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: transparent;
  border: none;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-really-teally);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: left;
}

.accordion__trigger:hover {
  background: var(--color-really-teally);
  color: var(--color-white);
}

.accordion__trigger[aria-expanded="true"] {
  background: var(--color-really-teally);
  color: var(--color-white);
}

.accordion__icon {
  transition: transform var(--transition-base);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__content {
  padding: var(--space-4) var(--space-5);
  background: var(--color-white);
  display: none;
}

.accordion__content.is-open {
  display: block;
}

/* ==========================================================================
   DASHBOARD SPECIFIC
   ========================================================================== */

/* Welcome Banner */
.welcome-banner {
  background: linear-gradient(135deg, var(--color-blue-heeler) 0%, #1e2060 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  color: var(--color-white);
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: var(--color-pawsitively-pink);
  border-radius: 50%;
  opacity: 0.1;
}

.welcome-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: var(--color-really-teally);
  border-radius: 50%;
  opacity: 0.15;
}

.welcome-banner__content {
  position: relative;
  z-index: 1;
}

.welcome-banner__greeting {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: var(--space-2);
}

.welcome-banner__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}

.welcome-banner__subtitle {
  font-size: var(--text-lg);
  opacity: 0.9;
  max-width: 500px;
}

/* Quick Links */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.quick-link {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--color-neutral-border);
  text-decoration: none;
  color: inherit;
}

.quick-link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-really-teally);
}

.quick-link__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.quick-link__icon--blue { background: rgba(46, 48, 145, 0.1); }
.quick-link__icon--pink { background: rgba(219, 48, 105, 0.1); }
.quick-link__icon--teal { background: rgba(110, 199, 199, 0.15); }
.quick-link__icon--purple { background: rgba(138, 101, 196, 0.1); }

.quick-link__text {
  flex: 1;
  min-width: 0;
}

.quick-link__title {
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  color: var(--color-text-dark);
  margin-bottom: var(--space-1);
}

.quick-link__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-8);
}

/* Announcements */
.announcement-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.announcement {
  padding: var(--space-4);
  background: var(--color-neutral-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-blue-heeler);
}

.announcement--urgent {
  border-left-color: var(--color-pawsitively-pink);
  background: rgba(219, 48, 105, 0.05);
}

.announcement--new {
  border-left-color: var(--color-really-teally);
}

.announcement__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.announcement__title {
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
}

.announcement__badge {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-pawsitively-pink);
  color: var(--color-white);
}

.announcement__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.announcement__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Department Grid */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.dept-tile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-neutral-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.dept-tile:hover {
  background: var(--color-neutral-bg);
  transform: translateX(4px);
}

.dept-tile__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.dept-tile__icon--clinic { background: var(--color-really-teally); }
.dept-tile__icon--shelter { background: var(--color-pawsitively-pink); }
.dept-tile__icon--surgery { background: var(--color-pawsitively-pink); }
.dept-tile__icon--admin { background: var(--color-blue-heeler); }
.dept-tile__icon--community { background: var(--color-tennis-ball); }
.dept-tile__icon--development { background: var(--color-really-teally); }
.dept-tile__icon--volunteer { background: var(--color-purr-ple); }
.dept-tile__icon--veterinary { background: var(--color-blue-heeler); }
.dept-tile__icon--foster { background: var(--color-really-teally); }

.dept-tile__name {
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
}

/* Contact List */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.contact-item:hover {
  background: var(--color-neutral-light);
}

.contact-item__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-blue-heeler);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.contact-item__info {
  flex: 1;
  min-width: 0;
}

.contact-item__name {
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
}

.contact-item__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Resource List */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.resource-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-neutral-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.resource-item:hover {
  background: var(--color-neutral-bg);
}

.resource-item__icon {
  font-size: var(--text-lg);
}

.resource-item__text {
  flex: 1;
}

.resource-item__title {
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
}

.resource-item__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* External Links */
.external-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.external-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-blue-heeler);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.external-link:hover {
  background: var(--color-pawsitively-pink);
  color: var(--color-white);
}

.external-link__icon {
  font-size: var(--text-lg);
}

.external-link--adp {
  background: #D0271D;
}

.external-link--adp:hover {
  background: #a81f17;
}

.external-link--volgistics {
  background: var(--color-purr-ple);
}

.external-link--volgistics:hover {
  background: #7554a8;
}

/* ==========================================================================
   SERVICE PORTAL DASHBOARD
   ========================================================================== */

/* Minimal Sidebar Styles */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  color: var(--color-text-dark);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: var(--color-neutral-bg);
  color: var(--color-blue-heeler);
}

.sidebar-link.is-active {
  background: var(--color-neutral-bg);
  color: var(--color-blue-heeler);
  border-left-color: var(--color-blue-heeler);
}

.sidebar-link__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.user-menu__logout {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.user-menu__logout:hover {
  color: var(--color-pawsitively-pink);
}

/* Dashboard Content */
.portal-content--dashboard {
  padding: var(--space-8) var(--space-8) var(--space-16);
}

/* Dashboard Header */
.dashboard-header {
  text-align: center;
  margin-bottom: var(--space-12);
  padding-top: var(--space-8);
}

.dashboard-header__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-blue-heeler);
  margin-bottom: var(--space-2);
}

.dashboard-header__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  font-weight: var(--weight-regular);
}

/* Tile Sections */
.tile-section {
  margin-bottom: var(--space-12);
}

.tile-section__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-neutral-border);
}

/* Tile Grids */
.tile-grid {
  display: grid;
  gap: var(--space-4);
}

.tile-grid--primary {
  grid-template-columns: repeat(2, 1fr);
}

.tile-grid--departments {
  grid-template-columns: repeat(3, 1fr);
}

.tile-grid--external {
  grid-template-columns: repeat(4, 1fr);
}

.tile-grid--leadership {
  grid-template-columns: repeat(2, 1fr);
}

/* Service Tiles (Primary Actions) */
.service-tile {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}

.service-tile:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-tile__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-tile__content {
  flex: 1;
  min-width: 0;
}

.service-tile__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-dark);
  margin-bottom: var(--space-1);
}

.service-tile__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* Service Tile Color Variants */
.service-tile--blue .service-tile__icon {
  background: rgba(46, 48, 145, 0.1);
  color: var(--color-blue-heeler);
}

.service-tile--blue:hover {
  border-color: var(--color-blue-heeler);
}

.service-tile--pink .service-tile__icon {
  background: rgba(219, 48, 105, 0.1);
  color: var(--color-pawsitively-pink);
}

.service-tile--pink:hover {
  border-color: var(--color-pawsitively-pink);
}

.service-tile--teal .service-tile__icon {
  background: rgba(110, 199, 199, 0.15);
  color: #4a9999;
}

.service-tile--teal:hover {
  border-color: var(--color-really-teally);
}

.service-tile--purple .service-tile__icon {
  background: rgba(138, 101, 196, 0.1);
  color: var(--color-purr-ple);
}

.service-tile--purple:hover {
  border-color: var(--color-purr-ple);
}

.service-tile--dark {
  background: var(--color-blue-heeler);
}

.service-tile--dark .service-tile__icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.service-tile--dark .service-tile__title {
  color: var(--color-white);
}

.service-tile--dark .service-tile__desc {
  color: rgba(255, 255, 255, 0.7);
}

.service-tile--dark:hover {
  background: #1e2060;
}

/* Department Tiles */
.dept-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.dept-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-really-teally);
}

.dept-tile__icon {
  font-size: var(--text-3xl);
}

.dept-tile__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-dark);
}

/* External Tool Tiles */
.external-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  text-align: center;
}

.external-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.external-tile__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.external-tile__icon--adp {
  background: #D0271D;
}

.external-tile__icon--volgistics {
  background: var(--color-purr-ple);
}

.external-tile__icon--drive {
  background: #4285F4;
}

.external-tile__icon--calendar {
  background: #34A853;
}

.external-tile__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-dark);
}

.external-tile__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Leadership Section */
.tile-section--leadership {
  padding-top: var(--space-6);
  border-top: 2px solid var(--color-neutral-border);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.text-blue { color: var(--color-blue-heeler); }
.text-pink { color: var(--color-pawsitively-pink); }
.text-teal { color: var(--color-really-teally); }
.text-purple { color: var(--color-purr-ple); }
.text-muted { color: var(--color-text-muted); }

.bg-blue { background-color: var(--color-blue-heeler); }
.bg-pink { background-color: var(--color-pawsitively-pink); }
.bg-teal { background-color: var(--color-really-teally); }
.bg-purple { background-color: var(--color-purr-ple); }
.bg-yellow { background-color: var(--color-tennis-ball); }
.bg-neutral { background-color: var(--color-neutral-bg); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .tile-grid--external {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .tile-grid--departments {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portal-sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-base);
  }
  
  .portal-sidebar.is-open {
    transform: translateX(0);
  }
  
  .portal-main {
    margin-left: 0;
  }
  
  .quick-links {
    grid-template-columns: 1fr;
  }
  
  .dept-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  /* Service Portal Responsive */
  .portal-content--dashboard {
    padding: var(--space-4);
  }
  
  .dashboard-header {
    padding-top: var(--space-4);
    margin-bottom: var(--space-8);
  }
  
  .dashboard-header__title {
    font-size: var(--text-2xl);
  }
  
  .dashboard-header__subtitle {
    font-size: var(--text-base);
  }
  
  .tile-grid--primary {
    grid-template-columns: 1fr;
  }
  
  .tile-grid--departments {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tile-grid--external {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tile-grid--leadership {
    grid-template-columns: 1fr;
  }
  
  .service-tile {
    padding: var(--space-4);
  }
  
  .service-tile__icon {
    width: 48px;
    height: 48px;
  }
}

/* ==========================================================================
   STAFF DIRECTORY
   ========================================================================== */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-blue-heeler);
}

.breadcrumb__sep {
  color: var(--color-neutral-border);
}

.breadcrumb__current {
  color: var(--color-text-dark);
  font-weight: var(--weight-medium);
}

/* Page Header */
.page-header {
  margin-bottom: var(--space-8);
}

.page-header__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-blue-heeler);
  margin-bottom: var(--space-2);
}

.page-header__desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

/* Directory Filters */
.directory-filters {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.directory-filters__form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.directory-filters__search {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.directory-filters__search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.directory-filters__search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  padding-left: 44px;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  border: 2px solid var(--color-neutral-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.directory-filters__search-input:focus {
  outline: none;
  border-color: var(--color-blue-heeler);
  box-shadow: 0 0 0 3px rgba(46, 48, 145, 0.1);
}

.directory-filters__dropdowns {
  display: flex;
  gap: var(--space-3);
}

.directory-filters__select {
  padding: var(--space-3) var(--space-4);
  padding-right: var(--space-10);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  border: 2px solid var(--color-neutral-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A5A6E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  transition: border-color var(--transition-fast);
}

.directory-filters__select:focus {
  outline: none;
  border-color: var(--color-blue-heeler);
}

.directory-filters__actions {
  display: flex;
  gap: var(--space-2);
}

.directory-filters__count {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-neutral-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Directory Grid */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

/* Employee Card */
.employee-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all var(--transition-base);
}

.employee-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-really-teally);
}

.employee-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.employee-card__avatar--blue {
  background: var(--color-blue-heeler);
}

.employee-card__avatar--pink {
  background: var(--color-pawsitively-pink);
}

.employee-card__avatar--teal {
  background: #4a9999;
}

.employee-card__avatar--purple {
  background: var(--color-purr-ple);
}

.employee-card__avatar--yellow {
  background: #c4a000;
}

.employee-card__info {
  margin-bottom: var(--space-4);
}

.employee-card__name {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-dark);
  margin-bottom: var(--space-1);
}

.employee-card__title {
  font-size: var(--text-sm);
  color: var(--color-blue-heeler);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-2);
}

.employee-card__meta {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.employee-card__dept::after {
  content: '•';
  margin-left: var(--space-3);
}

.employee-card__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-neutral-border);
}

.employee-card__email,
.employee-card__phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.employee-card__email:hover,
.employee-card__phone:hover {
  color: var(--color-pawsitively-pink);
}

.employee-card__email svg,
.employee-card__phone svg {
  flex-shrink: 0;
}

.employee-card__email span,
.employee-card__phone span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-card__manager {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-neutral-border);
  font-size: var(--text-xs);
}

.employee-card__manager-label {
  color: var(--color-text-muted);
}

.employee-card__manager-name {
  color: var(--color-text-dark);
  font-weight: var(--weight-medium);
}

/* Directory Empty State */
.directory-empty {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  background: var(--color-white);
  border-radius: var(--radius-lg);
}

.directory-empty__icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
}

.directory-empty__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-dark);
  margin-bottom: var(--space-2);
}

.directory-empty__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* Directory Responsive */
@media (max-width: 768px) {
  .directory-filters__form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .directory-filters__search {
    min-width: 100%;
  }
  
  .directory-filters__dropdowns {
    flex-direction: column;
  }
  
  .directory-filters__actions {
    justify-content: stretch;
  }
  
  .directory-filters__actions .btn {
    flex: 1;
  }
  
  .directory-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PORTAL NAVIGATION DROPDOWN
   Shared nav component for all v3 subpages.
   ========================================================================== */

.portal-nav {
  position: relative;
  display: inline-flex;
  z-index: 100;
}

.portal-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.portal-nav__trigger:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.portal-nav--open .portal-nav__trigger {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.portal-nav__trigger-icon {
  opacity: 0.8;
}

.portal-nav__trigger-chevron {
  opacity: 0.6;
  transition: transform var(--transition-fast);
}

.portal-nav--open .portal-nav__trigger-chevron {
  transform: rotate(180deg);
}

/* Dropdown Panel */
.portal-nav__dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 220px;
  z-index: 101;
  text-align: left;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
}

.portal-nav--open .portal-nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Nav Links — hardcoded colors to prevent hero link inheritance */
.portal-nav__link {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #1A1A2E !important;
  text-decoration: none !important;
  border-radius: var(--radius-md);
  transition: all 150ms ease;
}

.portal-nav__link:hover {
  background: rgba(46, 48, 145, 0.06);
  color: #2E3091 !important;
}

.portal-nav__link--active {
  background: rgba(46, 48, 145, 0.08);
  color: #2E3091 !important;
  font-weight: 600;
}

.portal-nav__link-icon {
  display: flex;
  align-items: center;
  opacity: 0.5;
  color: #5A5A6E;
}

.portal-nav__link:hover .portal-nav__link-icon,
.portal-nav__link--active .portal-nav__link-icon {
  opacity: 0.8;
  color: #2E3091;
}

.portal-nav__link-label {
  flex: 1;
}

.portal-nav__link-current {
  font-size: 10px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-tennis-ball);
  background: var(--color-blue-heeler);
  padding: 1px 8px;
  border-radius: var(--radius-pill);
}

@media (max-width: 480px) {
  .portal-nav__trigger span {
    display: none;
  }
  
  .portal-nav__trigger-chevron {
    display: none;
  }
  
  .portal-nav__dropdown {
    left: 0;
    transform: translateX(0) translateY(-8px);
    min-width: 200px;
  }
  
  .portal-nav--open .portal-nav__dropdown {
    transform: translateX(0) translateY(0);
  }
}
