/* ==========================================================================
   SINTEF Industry SAT Badge - Modern Design System
   Built with SINTEF brand colors and contemporary design principles
   ========================================================================== */

/* -----------------------------
   Design Tokens
------------------------------ */
:root {
  /* SINTEF Brand Colors */
  --sintef-blue-900: #033866;
  --sintef-blue-800: #044175;
  --sintef-blue-700: #07508e;
  --sintef-blue-600: #0a63aa;

  /* Neutral Palette */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Accent Colors */
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;

  /* Semantic Colors */
  --bg-primary: var(--slate-50);
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;

  --text-primary: var(--slate-900);
  --text-secondary: var(--slate-600);
  --text-tertiary: var(--slate-500);

  --border-light: var(--slate-200);
  --border-medium: var(--slate-300);

  --link-color: var(--sintef-blue-700);
  --link-hover: var(--sintef-blue-900);

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --container-max: 1280px;
  --spacing-unit: 0.25rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* -----------------------------
   Base & Reset
------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -----------------------------
   Typography
------------------------------ */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin: 0;
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* -----------------------------
   Layout Components
------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* -----------------------------
   Header & Navigation
------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--sintef-blue-900) 0%, var(--sintef-blue-800) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

.site-header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.brand:hover {
  opacity: 0.9;
  text-decoration: none;
}

.brand-logo {
  height: 2rem;
  width: auto;
}

.brand-text {
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
}

/* Header actions (GitLab, user info, login/logout) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hamburger button - hidden on desktop */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 1.25rem;
  height: 1.25rem;
  gap: 0.25rem;
}

.hamburger-line {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: white;
  border-radius: 1px;
  transition: all var(--transition-base);
  transform-origin: center;
}

/* Hamburger animation when active */
.hamburger-btn.is-active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu - hidden by default */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn var(--transition-base) ease-out;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(20rem, 85vw);
  background: var(--sintef-blue-900);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  animation: slideInRight var(--transition-base) ease-out;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  color: white;
  font-size: 1.125rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mobile-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
}

.mobile-nav-link svg,
.mobile-nav-link i {
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.mobile-menu-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  padding: 0.25rem 0;
  overflow: hidden;
}

.mobile-user-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* Mobile breakpoint: show hamburger, hide desktop nav & actions */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }
}

/* -----------------------------
   Buttons
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--sintef-blue-800);
  border-color: var(--sintef-blue-800);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--sintef-blue-700);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--sky-50);
  color: var(--sintef-blue-900);
  text-decoration: none;
}

/* -----------------------------
   Cards
------------------------------ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* -----------------------------
   Badges & Pills
------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--slate-100);
  color: var(--slate-700);
}

.badge-sintef {
  background: rgba(3, 56, 102, 0.1);
  color: var(--sintef-blue-900);
}

/* -----------------------------
   Footer
------------------------------ */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

.site-footer p {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* -----------------------------
   Main Content Area
------------------------------ */
main {
  padding-top: 2rem;
  padding-bottom: 2rem;
  min-height: calc(100vh - 16rem);
}

/* -----------------------------
   Grid Systems
------------------------------ */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid-cols-5,
  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

/* -----------------------------
   Utility Classes
------------------------------ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.pr-4 { padding-right: 1rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.inline-block { display: inline-block; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: var(--font-mono); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* -----------------------------
   Forms
------------------------------ */
input[type="text"],
input[type="email"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--sintef-blue-600);
  box-shadow: 0 0 0 3px rgba(3, 56, 102, 0.1);
}

/* -----------------------------
   HTMX Integration
------------------------------ */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline-block;
}

.htmx-request {
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

/* -----------------------------
   Legacy Support & Specific Overrides
------------------------------ */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

img[alt*="badge"] {
  transition: transform var(--transition-base);
}

img[alt*="badge"]:hover {
  transform: scale(1.05);
}

textarea::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

textarea::-webkit-scrollbar-track {
  background: var(--slate-100);
}

textarea::-webkit-scrollbar-thumb {
  background: var(--slate-400);
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: var(--slate-500);
}

/* -----------------------------
   Project Info Cards
------------------------------ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.info-card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border-light);
  margin: 0;
}

.info-card-title i {
  font-size: 0.875rem;
  color: var(--sintef-blue-700);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.info-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-tertiary);
  min-width: 6.5rem;
  flex-shrink: 0;
}

.info-value {
  font-size: 0.875rem;
  color: var(--text-primary);
}

.info-value-muted {
  font-size: 0.875rem;
  color: var(--slate-400);
  font-style: italic;
}

.info-link {
  font-size: 0.875rem;
  color: var(--link-color);
  text-decoration: none;
  word-break: break-all;
}

.info-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: var(--slate-100);
  color: var(--slate-700);
}

.info-badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.info-badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.info-row-pair {
  display: flex;
  gap: 1.5rem;
}

.info-stats-row {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
  margin-top: 0.25rem;
}

.info-stat {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
}

.info-stat-value {
  font-weight: 700;
  color: var(--text-primary);
}

.info-stat-label {
  color: var(--text-tertiary);
}

.info-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1875rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background: var(--sky-50);
  color: var(--sintef-blue-800);
  border: 1px solid var(--sky-200);
}

.info-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.info-avatar-img {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid var(--border-light);
}

.info-avatar-placeholder {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--sintef-blue-700);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.info-avatar-name {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-members-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
  margin-top: 0.25rem;
}

.info-member-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--slate-50);
  border-radius: var(--radius-md);
  min-width: 3.5rem;
}

.info-member-count {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.info-member-role {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  margin-top: 0.125rem;
}

.info-link-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.info-link-item:hover {
  background: var(--slate-50);
  text-decoration: none;
  color: var(--text-primary);
}

.info-link-item i:first-child {
  color: var(--slate-500);
  width: 1rem;
  text-align: center;
}

/* Capitalize utility */
.capitalize { text-transform: capitalize; }

/* Flex-nowrap utility */
.flex-nowrap { flex-wrap: nowrap; }
.overflow-x-auto { overflow-x: auto; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.text-xs { font-size: 0.75rem; }

/* -----------------------------
   Accessibility
------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--sintef-blue-600);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* -----------------------------
   Prose Styles (Markdown Content)
------------------------------ */
.prose {
  line-height: 1.6;
}

.prose p {
  margin-bottom: 1em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-color: rgba(7, 80, 142, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.prose a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

.prose strong {
  font-weight: 600;
  color: var(--text-primary);
}

.prose code {
  background: rgba(3, 56, 102, 0.08);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Monaco', 'Courier New', monospace;
}

.prose ul, .prose ol {
  margin: 0.75em 0;
  padding-left: 1.5em;
}

.prose li {
  margin: 0.25em 0;
}

.prose blockquote {
  border-left: 3px solid var(--sintef-blue-600);
  padding-left: 1em;
  margin: 1em 0;
  font-style: italic;
  color: var(--text-secondary);
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: var(--text-primary);
}

.prose h1:first-child, .prose h2:first-child, .prose h3:first-child, .prose h4:first-child {
  margin-top: 0;
}
