:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --surface-soft: #f8fbff;

  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;

  --primary: #0f172a;
  --primary-strong: #020617;
  --accent: #2563eb;

  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;

  --shadow-soft: 0 16px 45px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 22px 60px rgba(15, 23, 42, 0.08);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;

  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

textarea {
  resize: vertical;
}

.hidden {
  display: none !important;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link,
.sr-only {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 9999;
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* BUTTONS */
.primary-btn,
.ghost-btn,
.mobile-switch,
.danger-btn,
.segment-btn,
.full-width-link {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-1px);
  background: var(--primary-strong);
}

.primary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ghost-btn,
.mobile-switch,
.segment-btn,
.full-width-link {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.ghost-btn:hover,
.ghost-btn:focus-visible,
.mobile-switch:hover,
.mobile-switch:focus-visible,
.segment-btn:hover,
.segment-btn:focus-visible,
.full-width-link:hover,
.full-width-link:focus-visible {
  transform: translateY(-1px);
  border-color: #cbd5e1;
}

.segment-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.segment-btn.is-locked,
.segment-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.danger-btn {
  background: var(--danger);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.danger-btn:hover,
.danger-btn:focus-visible {
  transform: translateY(-1px);
  background: #b91c1c;
}

.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-menu.is-open {
  display: grid;
  gap: 10px;
}

.mobile-menu a {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  font-weight: 700;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
.footer-brand {
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
}

/* TOP DASHBOARD */
.dashboard-shell {
  padding: 48px 0 32px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.profile-panel,
.reward-panel,
.dashboard-tool-card,
.analysis-card,
.info-summary-box,
.empty-card,
.mini-stat,
.side-card,
.feature-card,
.info-card,
.pricing-card,
.saved-item,
.access-status-card,
.job-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.profile-panel {
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.profile-main {
  display: flex;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

.avatar-wrap {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--surface-soft);
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-copy {
  min-width: 0;
  flex: 1;
}

.profile-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-top-row h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.04;
  max-width: 480px;
}

.profile-actions-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 300px;
  max-width: 300px;
}

.profile-actions,
.logout-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.switch-block {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  border-radius: 18px;
  padding: 14px;
}

.segmented-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.access-status-card {
  margin-top: 10px;
  border-radius: 16px;
  padding: 14px;
  background: var(--surface);
}

.access-status-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
}

.access-status-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* BADGES */
.plan-badge,
.section-kicker,
.pricing-label,
.tool-lock-chip,
.small-label,
.reward-badge,
.info-kicker,
.tag-pill,
.small-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.reward-badge,
.pricing-label.featured,
.plan-badge.premium,
.tool-lock-chip.premium {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.small-label {
  min-height: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.74rem;
}

/* STATS */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mini-stat {
  border-radius: 18px;
  padding: 14px;
  min-width: 0;
  overflow: hidden;
}

.mini-stat span {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-stat strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* REWARD PANEL */
.reward-panel {
  border-radius: var(--radius-xl);
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  display: grid;
  gap: 16px;
}

.reward-main-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-xl);
  padding: 30px;
}

.reward-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reward-main-card h2 {
  margin: 18px 0 0;
  font-size: clamp(2.35rem, 3vw, 3.25rem);
  line-height: 1.08;
}

.reward-wallet-card {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.reward-wallet-item {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  border-radius: 20px;
  padding: 20px;
}

.reward-wallet-item strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.reward-wallet-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.reward-system-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #eaf3ff;
  border: 1px solid #dbeafe;
  color: #153e90;
  line-height: 1.5;
  font-weight: 800;
}

.reward-side-grid {
  display: grid;
  gap: 16px;
}

.side-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.side-card h3 {
  margin: 16px 0 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.side-card p {
  margin: 14px 0 0;
}

/* SECTIONS */
.section {
  padding: 78px 0;
}

.section-alt {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.section-head {
  display: block;
  max-width: 100%;
  margin-bottom: 32px;
}

.section-head > p {
  display: none !important;
}

.section-head h2 {
  margin: 16px 0 0;
  font-size: clamp(3.7rem, 4.1vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  max-width: 1050px;
  text-align: left;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: normal;
}

.section-head h2 br {
  display: none !important;
}

#toolsHub .section-head h2,
#tool1Section .tool-head h2,
.dashboard-section .tool-head h2 {
  max-width: 1080px;
}

/* GRID */
.card-grid,
.pricing-grid,
.footer-grid,
.premium-shell {
  display: grid;
  gap: 18px;
}

.card-grid.four,
.tool-overview-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid.three,
.pricing-grid,
.footer-grid,
.premium-shell {
  grid-template-columns: repeat(3, 1fr);
}

/* CARDS */
.feature-card,
.info-card,
.pricing-card,
.premium-feature,
.analysis-card,
.info-summary-box,
.empty-card,
.job-card {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.feature-card {
  min-height: 250px;
}

.active-tool {
  border-color: #dbeafe;
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  font-weight: 900;
}

.feature-card h3,
.info-card h3,
.pricing-card h3,
.premium-feature h3,
.analysis-card h3,
.empty-card h3,
.job-card h3,
.info-summary-box h3 {
  margin: 22px 0 0;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.feature-card p,
.info-card p,
.pricing-card p,
.premium-feature p,
.footer-text,
.empty-card p,
.info-summary-box p,
.side-card p,
.job-card p,
.summary-line,
.tool-head p,
.analysis-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
  font-weight: 500;
}

/* DASHBOARD TOOLS */
.dashboard-section {
  background: var(--bg);
}

.dashboard-tool-card {
  border-radius: var(--radius-xl);
  padding: 30px;
}

.tool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.tool-head h2 {
  margin: 16px 0 0;
  font-size: clamp(2.65rem, 4.1vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.tool-head p {
  max-width: 760px;
  margin: 16px 0 0;
}

.tool-lock-chip {
  flex-shrink: 0;
}

.dashboard-form-grid {
  display: grid;
  gap: 16px;
}

.form-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.field-group select,
.field-group input,
.field-group textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group textarea {
  min-height: 110px;
  padding: 14px;
}

.field-group select:focus,
.field-group input:focus,
.field-group textarea:focus {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}

.finder-actions,
.compact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.top-gap {
  margin-top: 18px;
}

.recommendation-box,
.info-summary-box {
  margin-top: 22px;
  border: 1px solid #dbeafe;
  background: #eaf3ff;
  color: #153e90;
  border-radius: 18px;
  padding: 16px 18px;
  font-weight: 800;
  line-height: 1.45;
}

.jobs-grid,
.free-jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.job-card {
  min-height: 260px;
}

.job-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

/* TOOL DETAIL LAYOUT */
.analysis-grid,
.tool-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.analysis-card {
  border-radius: var(--radius-lg);
  padding: 26px;
}

.analysis-card h3 {
  margin-top: 0;
}

.analysis-card ul,
.clean-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.analysis-card li,
.clean-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 650;
}

.analysis-card li::before,
.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.meta-item {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  border-radius: 16px;
  padding: 14px;
}

.meta-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta-item strong {
  display: block;
  margin-top: 8px;
  font-family: "Manrope", sans-serif;
  line-height: 1.2;
}

/* SAVED ITEMS */
.saved-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.saved-item {
  border-radius: 18px;
  padding: 18px;
}

.saved-item strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
}

.saved-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.saved-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

/* EMPLOYER PREMIUM LOCK */
body:not(.premium-preview) #employerModeBtn {
  opacity: 0.55;
}

body:not(.premium-preview) #employerModeBtn::after {
  content: " Premium";
  font-size: 0.72rem;
  margin-left: 6px;
  opacity: 0.85;
}

.employer-locked-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* PREMIUM */
.featured-pricing {
  background: var(--primary);
}

.featured-pricing h3,
.featured-pricing .price-line,
.featured-pricing li,
.featured-pricing p {
  color: #fff;
}

.price-line {
  margin: 14px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.full-width-link {
  width: 100%;
  margin-top: 22px;
}

.light-link {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding-top: 40px;
}

.footer-brand {
  font-size: 1.3rem;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-grid a {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

/* RESPONSIVE */
@media (max-width: 1180px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    flex-direction: column;
  }

  .profile-actions-stack {
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid.four,
  .tool-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid.three,
  .pricing-grid,
  .footer-grid,
  .premium-shell,
  .jobs-grid,
  .free-jobs-grid {
    grid-template-columns: 1fr;
  }

  .form-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head h2 {
    font-size: clamp(3rem, 7vw, 4rem);
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .dashboard-shell {
    padding: 36px 0 24px;
  }

  .dashboard-tool-card,
  .profile-panel,
  .reward-main-card {
    padding: 24px;
  }

  .tool-head {
    flex-direction: column;
  }

  .analysis-grid,
  .tool-detail-grid,
  .saved-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .tool-head h2 {
    font-size: clamp(2.35rem, 8vw, 3.2rem);
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .nav-actions .ghost-btn,
  .nav-actions .primary-btn {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .brand-copy small {
    display: none;
  }

  .profile-main {
    flex-direction: column;
  }

  .profile-top-row h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .stats-row,
  .form-grid-5,
  .card-grid.four,
  .tool-overview-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .section-head h2 {
    font-size: clamp(2.15rem, 9vw, 2.85rem);
    line-height: 1.12;
  }

  .dashboard-tool-card,
  .profile-panel,
  .reward-main-card,
  .feature-card,
  .info-card,
  .job-card,
  .analysis-card {
    padding: 22px;
  }

  .finder-actions,
  .compact-row {
    flex-direction: column;
  }

  .finder-actions .primary-btn,
  .finder-actions .ghost-btn,
  .compact-row .primary-btn,
  .compact-row .ghost-btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   PROFESSIONAL UI FIX PACK — CareerPath Platform
   Fixes: spacing, meta alignment, cards, chips, selected details
   ========================================================= */

/* Slightly cleaner heading tracking */
h1,
h2,
h3,
.footer-brand {
  letter-spacing: -0.026em;
}

body {
  line-height: 1.55;
}

/* Keep platform content visually centered and premium */
.dashboard-tool-card {
  overflow: hidden;
}

.tool-head {
  border-bottom: 1px solid rgba(226, 232, 240, 0.78);
  padding-bottom: 22px;
}

.tool-head h2 {
  letter-spacing: -0.03em;
}

/* Role grid/cards */
.jobs-grid,
.free-jobs-grid {
  align-items: stretch;
}

.job-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.job-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.11);
}

.job-card .small-label {
  margin-bottom: 2px;
}

.job-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 1.35vw, 1.72rem);
  line-height: 1.15;
  letter-spacing: -0.026em;
}

.job-card p {
  margin: 0;
}

.job-card .role-sector {
  color: var(--muted);
  font-weight: 650;
  font-size: 1rem;
}

.job-card .salary-line {
  color: #24364f;
  line-height: 1.55;
  font-weight: 500;
}

.job-card .salary-line strong {
  color: var(--text);
  font-weight: 850;
  margin-right: 4px;
}

.job-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

.job-card-actions .primary-btn,
.job-card-actions .ghost-btn {
  min-height: 46px;
  border-radius: 15px;
  padding-inline: 18px;
}

/* Chips/tags */
.tag-cloud {
  gap: 10px;
}

.tag-pill {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #18263a;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

/* Fix broken meta cards: HTML uses .meta-grid > div, not .meta-item */
.meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-grid > div,
.meta-item {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-radius: 16px;
  padding: 16px;
  min-width: 0;
}

.meta-grid > div strong,
.meta-item strong {
  display: block;
  margin: 0 0 8px;
  color: #0f172a;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.meta-grid > div span,
.meta-item span {
  display: block;
  color: #334155;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Detail cards */
.analysis-grid,
.tool-detail-grid {
  align-items: stretch;
}

.analysis-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.analysis-card h3 {
  margin: 0;
  font-size: clamp(1.55rem, 1.7vw, 2rem);
  letter-spacing: -0.026em;
}

.analysis-card .small-label + h3 {
  margin-top: -4px;
}

.analysis-card p {
  margin: 0;
}

.summary-line {
  margin-top: 4px !important;
  color: #334155 !important;
  font-weight: 600 !important;
}

.sub-head {
  margin-top: 10px !important;
}

/* Lists */
.analysis-card ul,
.clean-list,
.detail-list {
  gap: 13px;
}

.analysis-card li,
.clean-list li,
.detail-list li {
  color: #334155;
  font-weight: 750;
  line-height: 1.5;
}

/* Better left card balance */
.analysis-card:first-child {
  justify-content: flex-start;
}

/* Tool 2 selected overview should read like product copy */
#tool2Overview,
#tool4Summary,
#tool3Summary,
#tool6ResumeSummary {
  color: #334155;
  font-size: 1.03rem;
  line-height: 1.75;
  font-weight: 500;
}

/* Remove awkward overly large whitespace from text-only cards */
#tool2Section .analysis-card,
#tool3Section .analysis-card,
#tool4Section .analysis-card,
#tool5Section .analysis-card,
#tool6Section .analysis-card,
#tool7Section .analysis-card {
  min-height: 330px;
}

/* Tool sections: more compact professional spacing */
.section.dashboard-section {
  padding: 64px 0;
}

/* Two-column blocks stay aligned */
.analysis-grid > .analysis-card {
  height: 100%;
}

/* Better page width on large screens */
@media (min-width: 1280px) {
  :root {
    --container: 1180px;
  }
}

/* Card grid responsive polish */
@media (max-width: 1100px) {
  .jobs-grid,
  .free-jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .analysis-grid,
  .tool-detail-grid {
    grid-template-columns: 1fr;
  }

  .analysis-card {
    min-height: auto !important;
  }
}

@media (max-width: 720px) {
  .jobs-grid,
  .free-jobs-grid {
    grid-template-columns: 1fr;
  }

  .job-card {
    padding: 24px;
    min-height: auto;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .tool-head h2 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }
}

