/* === Tool Intro === */
.tool-intro {
  margin-bottom: var(--space-6);
  padding-left: var(--space-4);
}

.tool-intro-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-heading);
  margin-bottom: var(--space-2);
}

.tool-intro-tagline {
  color: var(--color-text-secondary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
}


/* === Input === */
.input-section {
  margin-bottom: var(--space-6);
}

.input-section label,
.gap-input label {
  display: block;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-body);
  margin-bottom: var(--space-2);
  color: var(--color-text-heading);
}

.input-help {
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
  margin-bottom: var(--space-3);
  line-height: var(--line-height-relaxed);
}

textarea {
  width: 100%;
  background: var(--color-bg-input);
  border: none;
  border-radius: var(--radius-card);
  color: var(--color-text-primary);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
  resize: vertical;
  transition: box-shadow 0.2s ease;
}

textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.2);
}

textarea::placeholder {
  color: var(--color-text-muted);
}

.input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-3);
}

.char-count {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 11px 38px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: var(--shadow-glow);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: var(--color-bg-page);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-expand {
  background: none;
  color: var(--color-primary);
  border: 1px dashed rgba(var(--color-primary-rgb), 0.3);
  width: 100%;
  padding: var(--space-4);
  font-size: var(--font-size-body);
  border-radius: var(--radius-card);
  justify-content: center;
  text-transform: none;
  letter-spacing: 0;
  font-weight: var(--font-weight-medium);
}

.btn-expand:hover {
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.04);
}

.btn-expand.expanded .expand-icon {
  transform: rotate(90deg);
}

.expand-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

/* === Loading === */
.loading-section {
  text-align: center;
  padding: var(--space-8) 0;
}

.loader {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(var(--color-primary-rgb), 0.15);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-3);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-heading);
}

/* === Error === */
.error-message {
  background: var(--red-bg);
  border-left: 3px solid var(--red);
  color: var(--red);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-input);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-small);
}

/* === Result sections === */
.result-section {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: var(--border-subtle);
}

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

.result-section h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-heading);
  margin-bottom: var(--space-3);
  line-height: var(--line-height-tight);
}

.result-section h3 {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: var(--space-4) 0 var(--space-2);
}

.result-section h3:first-of-type {
  margin-top: 0;
}

.section-body {
  color: var(--color-text-secondary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
}

.section-intro {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  margin-bottom: var(--space-3);
  line-height: var(--line-height-relaxed);
}

/* === Tags === */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-medium);
  background: var(--color-bg-input);
  letter-spacing: 0.02em;
}

.tag-green {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
}

.tag-red {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: var(--red);
}

/* === Fact list === */
.fact-list {
  list-style: none;
  padding: 0;
}

.fact-list li {
  padding: var(--space-3) 0;
  border-bottom: var(--border-subtle);
  line-height: var(--line-height-relaxed);
}

.fact-list li:last-child {
  border-bottom: none;
}

.fact-list li strong {
  display: block;
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-body);
  margin-bottom: 2px;
}

.evidence {
  display: block;
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
  line-height: var(--line-height-relaxed);
}

/* === Signals === */
.signal {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-input);
  margin-bottom: var(--space-2);
}

.signal strong {
  display: block;
  font-weight: var(--font-weight-medium);
  margin-bottom: 2px;
}

.signal .evidence {
  font-size: var(--font-size-small);
}

.signal-red {
  background: var(--red-bg);
  border-left: 3px solid var(--red);
}

.signal-red strong {
  color: var(--red);
}

.signal-green {
  background: var(--green-bg);
  border-left: 3px solid var(--green);
}

.signal-green strong {
  color: var(--green);
}

/* === Mellan raderna === */
.mellan-raderna .insight {
  padding: var(--space-4);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-card);
  margin-bottom: var(--space-3);
}

.mellan-raderna .insight strong {
  display: block;
  color: var(--color-text-heading);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-1);
}

.mellan-raderna .insight p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
  margin: 0;
}
/* === Card base === */
.card-base {
  background: var(--color-bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-card);
  font-family: var(--font-family);
}
/* Shared accent: teal left-border used by tool-intro, insight, disclaimer, interview-question, felsok-ai-intro */
.accent-left {
  border-left: 3px solid var(--color-secondary-teal);
}

/* === Hitta din roll: roll-kort === */
.hittaroll-card {
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  transition: border-color 0.15s;
}

.hittaroll-card:last-child {
  margin-bottom: 0;
}

.hittaroll-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

.hittaroll-card strong {
  display: block;
  color: var(--color-text-heading);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-body);
  margin-bottom: var(--space-1);
}

.hittaroll-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* === Hitta din roll: kategori-badge === */
.hittaroll-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-bold);
  margin-left: var(--space-2);
  vertical-align: middle;
  line-height: 1;
}

.hittaroll-badge--green {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
}

.hittaroll-badge--teal {
  background: rgba(0, 160, 155, 0.08);
  border: 1px solid rgba(0, 160, 155, 0.25);
  color: var(--color-secondary-teal);
}

.hittaroll-badge--yellow {
  background: var(--yellow-bg);
  border: 1px solid var(--yellow-border);
  color: var(--yellow);
}

.hittaroll-badge--muted {
  background: var(--color-bg-input);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--color-text-secondary);
}

/* === Gap section === */
.gap-section {
  margin-top: var(--space-8);
}

.gap-input {
  margin-top: var(--space-4);
}

.gap-results {
  margin-top: var(--space-6);
}

/* === Helhetsbild === */
.helhetsbild {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  border-bottom: none;
}

.match-counts {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.match-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3) var(--space-5);
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  min-width: 120px;
}

.count-label {
  font-size: var(--font-size-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-1);
}

.count-value {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-heading);
}

/* === Gap-specific list styling === */
.gap-list li {
  position: relative;
}

.kravtyp-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.kravtyp-badge.must-have {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-border);
}

.kravtyp-badge.nice-to-have {
  background: var(--yellow-bg);
  color: var(--yellow);
  border: 1px solid var(--yellow-border);
}

/* === Dimmed list (utanför scope) === */
.dimmed-list li strong {
  color: var(--color-text-secondary);
}

.dimmed-list li .evidence {
  color: var(--color-text-muted);
}

/* === Step 3 === */
.step3-section {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 2px solid rgba(0, 0, 0, 0.06);
}

.step3-header {
  margin-bottom: var(--space-5);
}

.step3-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-heading);
  margin-bottom: var(--space-1);
}

.step3-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
}


.step3-results {
  margin-top: var(--space-6);
}

/* === Tone/profile badge === */
.tone-badge {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-input);
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.tone-badge strong {
  color: var(--color-text-heading);
  font-weight: var(--font-weight-medium);
}

/* === Citation tooltips === */
.citerad-wrap {
  position: relative;
}

.citerad-wrap strong {
  display: block;
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-body);
  margin-bottom: 2px;
}

.citat-ikon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-bg-input);
  color: var(--color-text-muted);
  font-size: 13px;
  cursor: pointer;
  margin-left: var(--space-1);
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  position: relative;
  user-select: none;
  line-height: 1;
}

.citat-ikon:hover,
.citat-ikon:focus {
  background: var(--color-secondary-teal);
  color: white;
  border-color: var(--color-secondary-teal);
  outline: none;
}

.citat-tooltip {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: #2B3434;
  color: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-input);
  font-size: var(--font-size-small);
  line-height: var(--line-height-relaxed);
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  animation: tooltipIn 0.15s ease;
}

@keyframes tooltipIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.citat-tooltip .citat-label {
  display: block;
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.citat-tooltip q {
  display: block;
  font-style: italic;
  quotes: "\"" "\"";
  color: rgba(255, 255, 255, 0.92);
}

/* Show tooltip on hover or focus-within */
.citerad-wrap .citat-ikon:hover + .citat-tooltip,
.citerad-wrap .citat-ikon:focus + .citat-tooltip,
.citerad-wrap .citat-tooltip:hover {
  display: block;
}

/* Divider between dual citations */
.citat-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 8px 0;
}

/* Tooltip positioning in signal cards */
.signal .citerad-wrap {
  display: block;
  position: relative;
}

.signal .citerad-wrap strong {
  display: inline;
}

.signal .citat-tooltip {
  left: 0;
  right: 0;
  top: auto;
  margin-top: var(--space-2);
}

/* Tooltip positioning in fact-list items */
.fact-list .citerad-wrap {
  display: block;
  position: relative;
}

.fact-list .citerad-wrap strong {
  display: inline;
}

.fact-list .citat-tooltip {
  position: absolute;
  left: 0;
  right: 0;
}

/* In insight cards, citerad-wrap needs block for proper tooltip positioning */
.mellan-raderna .citerad-wrap {
  display: block;
  position: relative;
}

.mellan-raderna .citerad-wrap strong {
  display: inline;
  margin-bottom: 0;
}

.mellan-raderna .citat-tooltip {
  left: 0;
  right: 0;
  top: auto;
  margin-top: var(--space-2);
}

/* === Signal neutral (CV-verktyg) === */
.signal-neutral {
  background: var(--color-bg-subtle);
  border-left: 3px solid var(--color-secondary-teal);
}

.signal-neutral strong {
  color: var(--color-text-heading);
}

.signal-typ-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-1);
  background: rgba(0, 160, 155, 0.08);
  color: var(--color-secondary-teal);
  border: 1px solid rgba(0, 160, 155, 0.2);
}

.signal-typ-badge-compact {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
  background: rgba(0, 160, 155, 0.08);
  color: var(--color-secondary-teal);
  border: 1px solid rgba(0, 160, 155, 0.2);
  margin-right: var(--space-1);
}

.tag-muted {
  background: var(--color-bg-input);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--color-text-muted);
}

/* === Nav link clickable (CV-verktyg) === */
.nav-link[data-tool="cv"],
.nav-link[data-tool="jobbanalys"] {
  cursor: pointer;
}


/* === Disclaimer === */
.disclaimer {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-input);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* === CV Builder Placeholder === */
.cv-builder-placeholder {
  margin-top: var(--space-6);
  text-align: center;
}

.cv-builder-inner {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-card);
  opacity: 0.5;
  cursor: not-allowed;
}

.cv-builder-icon {
  font-size: 20px;
}

.cv-builder-text {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

@media (max-width: 640px) {
  .riktning-val {
    grid-template-columns: 1fr;
  }
}

/* === File upload zone === */
.file-upload-zone {
  position: relative;
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-card);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: var(--space-3);
}

.file-upload-zone:hover,
.file-upload-zone.drag-over {
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.03);
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  pointer-events: none;
}

.file-upload-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.file-upload-label {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
}

.file-upload-browse {
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  text-decoration: underline;
}

.file-upload-hint {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

.file-input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* File info bar */
.file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-input);
  margin-bottom: var(--space-3);
}

.file-info-name {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--green);
}

.file-info-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: var(--font-size-body);
  padding: 2px 6px;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
  font-family: var(--font-family);
}

.file-info-remove:hover {
  color: var(--red);
  background: var(--red-bg);
}

/* Input separator */
.input-separator {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

.input-separator::before,
.input-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

/* ATS disclaimer */
.ats-disclaimer {
  background: var(--color-bg-subtle);
  border: var(--border-subtle);
  border-radius: var(--radius-card);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
}

.ats-disclaimer-title {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-heading);
  margin-bottom: var(--space-2);
}

.ats-disclaimer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.ats-disclaimer-col strong {
  display: block;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-1);
}

.ats-disclaimer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ats-disclaimer-col ul li {
  font-size: var(--font-size-label);
  color: var(--color-text-secondary);
  padding: 1px 0;
  line-height: var(--line-height-relaxed);
}

/* ATS nav link clickable */
.nav-link[data-tool="ats"] {
  cursor: pointer;
}

/* Readonly textarea */
textarea[readonly] {
  background: var(--color-bg-subtle);
  color: var(--color-text-secondary);
  cursor: default;
}

@media (max-width: 640px) {
  .ats-disclaimer-grid {
    grid-template-columns: 1fr;
  }
}

/* === Interview flow === */
.interview-indicator {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  text-align: center;
  margin-bottom: var(--space-5);
  letter-spacing: 0.02em;
}

.interview-indicator span {
  color: var(--color-text-heading);
  font-weight: var(--font-weight-bold);
}

.interview-current {
  animation: interviewFadeIn 0.35s ease;
}

.interview-question {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-input);
  padding: var(--space-4) var(--space-5);
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-heading);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-4);
}

.interview-current textarea {
  margin-bottom: 0;
}

/* Compressed Q&A cards (shared: interview + felsökaren) */
.interview-qa-card,
.felsok-qa-card {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-card);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-small);
  line-height: var(--line-height-relaxed);
  animation: interviewFadeIn 0.25s ease;
}

.interview-qa-card {
  border: var(--border-subtle);
}

.felsok-qa-card {
  border-left: 3px solid var(--color-secondary-teal);
}

.interview-qa-card .qa-question,
.felsok-qa-card .qa-question {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-1);
}

.interview-qa-card .qa-question strong,
.felsok-qa-card .qa-question strong {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-label);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.interview-qa-card .qa-answer,
.felsok-qa-card .qa-answer {
  color: var(--color-text-primary);
}

.interview-qa-card .qa-answer strong,
.felsok-qa-card .qa-answer strong {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-label);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Fade-in animation */
@keyframes interviewFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.interview-fade-in {
  animation: interviewFadeIn 0.35s ease;
}

/* Nav link clickable (intervju) */
.nav-link[data-tool="intervju"] {
  cursor: pointer;
}

/* === Reset === */
.reset-section {
  margin-top: var(--space-8);
  text-align: center;
}


/* === Utility === */
.hidden {
  display: none !important;
}

/* === Responsive === */
@media (max-width: 640px) {
  .container {
    padding: var(--space-4) var(--space-3) var(--space-6);
  }

  .landing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .landing-card {
    padding: var(--space-4) var(--space-3);
  }
  .global-nav-inner {
    padding: 0 var(--space-3);
    gap: var(--space-2);
  }

  .nav-profile {
    width: 30px;
    height: 30px;
  }

  .nav-link {
    font-size: var(--font-size-label);
    padding: var(--space-1) var(--space-1);
  }

  .match-counts {
    flex-direction: column;
    gap: var(--space-2);
  }

  .match-count {
    flex-direction: row;
    justify-content: space-between;
    min-width: unset;
    padding: var(--space-2) var(--space-3);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

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

  .matchningslage-counts {
    flex-direction: column;
    gap: var(--space-1);
  }
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 3px;
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

