/* ═══════════════════════════════════════════════════════════
   sidebar.css — Top navigation bar
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --color-teal:         #00CCBC;
  --color-teal-dark:    #00A898;
  --color-teal-light:   #e6faf8;
  --color-black:        #111111;
  --color-white:        #ffffff;
  --black:              var(--color-black);
  --white:              var(--color-white);
  --color-grey-100:     #f3f4f6;
  --color-grey-200:     #e4e4e4;
  --color-grey-300:     #d1d5db;
  --color-grey-400:     #9ca3af;
  --color-grey-500:     #6b7280;
  --color-grey-600:     #4b5563;
  --color-text-primary:   var(--color-black);
  --color-text-secondary: #6b7280;
  --color-text-muted:     #9ca3af;
  --color-text-inverse:   var(--color-white);
  --color-border:         #e4e4e4;
  --color-surface:        var(--color-white);
  --color-success:      #16a34a;
  --color-success-bg:   #f0fdf4;
  --color-warning:      #d97706;
  --color-warning-bg:   #fffbeb;
  --color-error:        #dc2626;
  --color-error-bg:     #fef2f2;
  --space-1:  4px;  --space-2: 8px;   --space-3: 12px;
  --space-4: 16px;  --space-5: 20px;  --space-6: 24px;
  --space-8: 32px;  --space-10: 40px; --space-12: 48px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
  --radius-xl: 24px; --radius-full: 100px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.07);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Body offset ─────────────────────────────────────────── */
body {
  padding-left: 0;
  padding-top: 0;
}

/* ── In-flow page header ─────────────────────────────────── */
.topnav-header {
  width: 100%;
  display: block;
}

.topnav-header-inner {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px 0;
}

.topnav-brand {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-black);
  white-space: nowrap;
}

.topnav-linkedin {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-black);
  text-decoration: none;
  white-space: nowrap;
}

/* Override global a:hover teal from styles.css */
.topnav-linkedin:hover,
.nav-panel-linkedin:hover {
  color: var(--color-black);
}

.linkedin-external-arrow {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topnav-linkedin:hover .linkedin-external-arrow,
.nav-panel-linkedin:hover .linkedin-external-arrow {
  transform: translate(3px, -3px);
}

@media (prefers-reduced-motion: reduce) {
  .linkedin-external-arrow {
    transition: none;
  }
  .topnav-linkedin:hover .linkedin-external-arrow,
  .nav-panel-linkedin:hover .linkedin-external-arrow {
    transform: none;
  }
}

/* Menu button — mobile only */
.topnav-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--color-black);
  border-radius: 99px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-black);
  transition: background 0.15s;
}
.topnav-menu-btn:hover { background: var(--color-black); color: var(--color-white); }
.topnav-menu-btn:hover svg { stroke: var(--color-white); }

/* ── Slide-in panel ──────────────────────────────────────── */
#nav-slide-panel {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
}
#nav-slide-panel.open {
  pointer-events: auto;
}

.nav-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.35s;
}
#nav-slide-panel.open .nav-panel-backdrop {
  background: rgba(0,0,0,0.3);
}

.nav-panel-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 340px;
  background: var(--color-white);
  padding: 16px;
  box-sizing: border-box;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
#nav-slide-panel.open .nav-panel-drawer {
  transform: translateX(0);
}

.nav-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-shrink: 0;
}

.nav-panel-brand {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-black);
  letter-spacing: -0.01em;
}

.nav-panel-close {
  width: 38px;
  height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.nav-panel-close:hover { background: #f3f4f6; border-color: var(--color-black); }

.nav-panel-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* ── Nav project cards ───────────────────────────────────── */
.nav-project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
}
.nav-panel-drawer:not(.nav-editing) .nav-project-card:hover .nav-project-img-wrap {
  opacity: 0.85;
}

.nav-project-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 16px;
  overflow: hidden;
  transition: opacity 0.2s;
}
.nav-project-img-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-project-icon {
  width: 36%;
  height: 36%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.nav-project-custom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav-project-upload-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.55);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-white);
  opacity: 0;
  transition: opacity 0.15s;
}
.nav-project-file-input { display: none; }

.nav-project-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 2px;
}
.nav-project-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  outline: none;
  overflow-wrap: break-word;
}
.nav-project-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-black);
  line-height: 1.4;
  outline: none;
  overflow-wrap: break-word;
}
.nav-project-url-input {
  display: none;
  width: 100%;
  font-size: 0.7rem;
  font-family: inherit;
  padding: 4px 8px;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  outline: none;
  color: #6b7280;
  background: transparent;
  margin-top: 2px;
  box-sizing: border-box;
}
.nav-project-url-input:focus { border-color: var(--color-black); color: var(--color-black); }

/* LinkedIn link at the bottom */
.nav-panel-linkedin {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-black);
  text-decoration: none;
  margin-top: auto;
  padding-top: 8px;
}

/* ── Nav edit mode ───────────────────────────────────────── */
.nav-panel-drawer.nav-editing .nav-project-card { cursor: default; }
.nav-panel-drawer.nav-editing .nav-project-upload-btn { opacity: 1; }
.nav-panel-drawer.nav-editing .nav-project-url-input { display: block; }

/* Nav edit popover */
#nav-edit-popover {
  position: absolute;
  z-index: 9999;
  background: var(--color-white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: none;
  min-width: 220px;
  flex-direction: column;
  gap: 10px;
}
#nav-edit-popover.visible { display: flex; }
.nav-pop-row { display: flex; flex-direction: column; gap: 4px; }
.nav-pop-label-text {
  font-size: 0.68rem; font-weight: 600; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.nav-pop-input {
  font-size: 0.82rem; font-family: inherit; padding: 5px 8px;
  border: 1px solid #e5e7eb; border-radius: 6px; outline: none;
  color: var(--color-black); background: #fafafa; cursor: text !important;
}
.nav-pop-input:focus { border-color: var(--color-black); background: var(--color-white); }

/* ── Pill bar — always sticky, overlays header row ───────── */
.topnav-pill-bar {
  position: sticky;
  top: 16px;
  z-index: 400;
  height: 50px;
  margin-top: -38px;    /* pull up to sit on same row as header */
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* pass clicks through to Robert Higgs / LinkedIn */
  transition: opacity 0.2s ease;
}
body.portfolio-nav-awaiting-sync .topnav-pill-bar {
  opacity: 0;
}

.topnav-pill-group {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-black);
  border-radius: 99px;
  padding: 4px;
  gap: 2px;
  width: 440px;
  height: 50px;
  box-sizing: border-box;
  background: transparent;
}

/* Frosted background on pill group once scrolled */
.topnav-pill-bar.is-sticky .topnav-pill-group {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.topnav-pill-link {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-black);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 99px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.topnav-pill-link:hover    { background: #f3f4f6; color: var(--color-black); }
.topnav-pill-link:active,
.topnav-pill-link.pressed  { background: var(--color-black);    color: var(--color-white); }

/* Nav edit mode — pill bar */
.topnav-pill-bar.nav-editing .topnav-pill-link {
  border-bottom: 1px dashed #9ca3af;
  border-radius: 0;
}

.topnav-edit-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #9ca3af;
}

.topnav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-black);
  text-decoration: none;
  padding: 6px 14px 6px 10px;
  border-radius: 99px;
  transition: background 0.15s;
}
.topnav-back:hover { background: rgba(255,255,255,0.95); }

/* ── Floating back button (project pages) ─────────────────── */
body.project-page {
  padding-top: 0 !important;
  overflow-x: hidden;
  max-width: 100%;
}

body.project-page #appContent {
  overflow-x: clip;
  max-width: 100%;
}

.topnav-back-float {
  position: fixed;
  top: 48px;
  left: 48px;
  z-index: 400;
}

@media (max-width: 767px) {
  .topnav-back-float {
    top: 40px;
    left: 32px;
  }
}

.topnav-back-float .topnav-back {
  width: 120px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  border: 1px solid var(--color-black);
  padding: 0;
  color: var(--color-black);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.topnav-back-float .topnav-back img {
  flex-shrink: 0;
  display: block;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.15s ease;
}
.topnav-back-float .topnav-back:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.topnav-back-float .topnav-back:hover img {
  transform: translateY(-3px);
  filter: brightness(0) invert(1);
}
.topnav-back-float .topnav-back:focus-visible {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
  outline: 2px solid rgba(255,255,255,0.35);
  outline-offset: 2px;
}
.topnav-back-float .topnav-back:focus-visible img {
  transform: translateY(-3px);
  filter: brightness(0) invert(1);
}
.topnav-back-float .topnav-back:active {
  opacity: 0.92;
}

/* Burger — hidden on desktop */
.topnav-burger {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.topnav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
}


/* ── Edit switch ─────────────────────────────────────────── */
.edit-switch {
  position: relative;
  width: 43px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}
.edit-switch-track {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: var(--color-grey-200);
  border: 1px solid #c0c0c0;
  transition: background 0.2s, border-color 0.2s;
}
.edit-switch-track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: left 0.2s;
}
.edit-switch.active .edit-switch-track {
  background: var(--color-black);
  border-color: #7d7d7d;
}
.edit-switch.active .edit-switch-track::after {
  left: calc(100% - 23px);
}


/* ── Shared link styles (used in mobile overlay) ─────────── */
.sidebar-simple-link {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}
.sidebar-simple-link:hover { background: #f3f4f6; }
.sidebar-simple-link.active { font-weight: 700; background: #f3f4f6; }

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 6px 0;
}

.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-grey-400);
  padding: 4px 12px;
}

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--color-grey-200);
  color: var(--color-black);
}
.badge-grey        { background: var(--color-grey-200);   color: var(--color-black); }
.badge-light-grey  { background: var(--color-grey-100);   color: var(--color-grey-600); }
.badge-green       { background: var(--color-success-bg); color: var(--color-success); }
.badge-amber       { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-red         { background: var(--color-error-bg);   color: var(--color-error); }
.badge-blue        { background: #dbeafe;                 color: #1e40af; }
.badge-teal        { background: var(--color-teal-light); color: var(--color-teal-dark); }
.badge-purple      { background: #ede9fe;                 color: #5b21b6; }
.badge-yellow      { background: #fef9c3;                 color: #854d0e; }
.badge-pink        { background: #fce7f3;                 color: #9d174d; }
.badge-black       { background: var(--color-black);      color: var(--color-white); }


/* ═══════════════════════════════════════════════════════════
   MOBILE NAV OVERLAY
   ═══════════════════════════════════════════════════════════ */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 450;
  pointer-events: none;
  overflow: hidden;
}
.mobile-nav-overlay:not(.open) {
  display: none;
  visibility: hidden;
  pointer-events: none;
}
.mobile-nav-overlay.open {
  display: block;
  pointer-events: auto;
  visibility: visible;
}

/* Project pages use Back only — no mobile menu; hide panel (was bleeding STUDIO MX + close) */
body.project-page .mobile-nav-overlay {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.open .mobile-nav-backdrop { opacity: 1; }

.mobile-nav-panel {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  background: var(--color-white);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: none;
}
.mobile-nav-overlay.open .mobile-nav-panel {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.mobile-nav-brand       { display: flex; align-items: center; gap: 8px; }
.mobile-nav-brand img   { width: 24px; height: 24px; object-fit: contain; }
.mobile-nav-brand-name  { font-size: 1rem; font-weight: 700; color: var(--color-black); }

.mobile-nav-close {
  background: none; border: none; cursor: pointer;
  color: #9ca3af;
  display: flex; align-items: center; justify-content: center;
  padding: 4px; border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.mobile-nav-close:hover { color: var(--color-black); background: #f3f4f6; }

.mobile-nav-links {
  display: flex; flex-direction: column; gap: 0; flex: 1;
}
.mobile-nav-link {
  font-size: 1rem; font-weight: 400; color: var(--color-black);
  text-decoration: none; padding: 10px 12px; border-radius: 8px;
  transition: background 0.15s; display: block;
}
.mobile-nav-link:hover  { background: #f3f4f6; }
.mobile-nav-link.active { font-weight: 600; background: #f3f4f6; }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .topnav-brand {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-black);
    white-space: nowrap;
    padding-top: 8px;
  }
}

@media (max-width: 767px) {
  /* Mobile header adjustments */
  .topnav-header-inner { padding: 16px 16px 0; }
  .topnav-linkedin { display: none; }
  .topnav-menu-btn { display: inline-flex; }

  /* Hide sticky pill bar on mobile — use slide-in panel instead */
  .topnav-pill-bar { display: none !important; }

  /* Slide-in panel fills full screen on mobile */
  .nav-panel-drawer { width: 100%; }

  .topnav-brand { margin: 0; }
}

/* ═══════════════════════════════════════════════════════════
   Contact FAB — LinkedIn + copy email (site styling)
   ═══════════════════════════════════════════════════════════ */
.contact-fab-wrap {
  display: none;
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 420;
  width: 56px;
  height: 56px;
  overflow: visible;
}

.contact-fab-main {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease;
  z-index: 2;
}

.contact-fab-main:hover {
  background: #333;
}

.contact-fab-main:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 3px;
}

.contact-fab-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.contact-fab-icon--close {
  opacity: 0;
}

.contact-fab-wrap.is-open .contact-fab-icon--chat {
  opacity: 0;
}

.contact-fab-wrap.is-open .contact-fab-icon--close {
  opacity: 1;
}

.contact-fab-action {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 1.5px solid #e5e7eb;
  color: var(--color-black);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  font-family: inherit;
  z-index: 1;
  opacity: 0;
  transform: translate(0, 0) scale(0.85);
  pointer-events: none;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.contact-fab-action:active {
  opacity: 0.92;
}

.contact-fab-wrap.is-open .contact-fab-action {
  opacity: 1;
  pointer-events: auto;
}

.contact-fab-action--email {
  width: auto;
  min-width: 56px;
  justify-content: center;
  gap: 0;
  max-width: 56px;
  overflow: hidden;
  border-radius: 50%;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease,
    max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.28s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.contact-fab-action--email .contact-fab-email-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s ease, width 0.25s ease, height 0.25s ease;
}

.contact-fab-action--email .contact-fab-email-copied-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  flex-shrink: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 1rem;
  color: var(--color-black);
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease 0.05s;
}

.contact-fab-action--email .contact-fab-email-tick {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-black);
}

.contact-fab-action--email .contact-fab-email-tick-svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.contact-fab-action--email .contact-fab-email-copied-text {
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.contact-fab-wrap.is-open .contact-fab-action--email.is-copied {
  max-width: min(320px, calc(100vw - 32px));
  padding: 0 16px;
  border-radius: 28px;
}

.contact-fab-wrap.is-open .contact-fab-action--email.is-copied .contact-fab-email-icon {
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
}

.contact-fab-wrap.is-open .contact-fab-action--email.is-copied .contact-fab-email-copied-label {
  max-width: 280px;
  opacity: 1;
}

/* Email: to the left of main (same row) */
.contact-fab-wrap.is-open .contact-fab-action--email {
  transform: translate(-78px, 0) scale(1);
}

/* LinkedIn: directly above main */
.contact-fab-wrap.is-open .contact-fab-action--linkedin {
  transform: translate(0, -78px) scale(1);
}

/* LinkedIn FAB: keep black on hover (override global a:hover teal in styles.css) */
a.contact-fab-action--linkedin:hover,
a.contact-fab-action--linkedin:focus-visible {
  color: var(--color-black);
}

@media (prefers-reduced-motion: reduce) {
  .contact-fab-action,
  .contact-fab-icon {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 767px) {
  .contact-fab-wrap {
    display: block;
  }
}

@media print {
  .contact-fab-wrap {
    display: none !important;
  }
}
