:root {
  color-scheme: light;
  --brand: #6366f1;
  --brand-hover: #4f46e5;
  --brand-soft: #e0e7ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dfe9f6;
  --page: #f8fafc;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

a[href], button:not(:disabled), summary, [role="button"] {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo img {
  width: 154px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #444;
  font-size: 14px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

oporvia-job-account {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

.account-profile:hover {
  color: var(--brand);
}

.account-signout {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.account-profile:focus-visible,
.account-signout:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand);
}

.nav a[aria-current="page"] {
  background: var(--brand-soft);
  border-radius: 6px;
  padding: 6px 10px;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  padding: 34px 0 38px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs [aria-current="page"] { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 32px;
}

.title-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.company-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 28px;
  font-weight: 800;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.08;
}

.company-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.meta-list li,
.job-keyword-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: #f3f2ef;
  color: #444;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
}

.meta-list li {
  gap: 4px;
  max-width: 100%;
  white-space: nowrap;
}

.meta-label {
  color: #222;
  font-weight: 800;
}

.meta-value {
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-item--salary {
  border-color: #d6deea;
  background: #fff;
}

.apply-card,
.job-panel,
.job-side-card {
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(15, 35, 75, 0.04);
}

.apply-card {
  position: sticky;
  top: 92px;
  padding: 20px;
  text-align: center;
}

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.24);
  cursor: pointer;
}

.btn-brand:hover {
  background: var(--brand-hover);
}

.job-actions { display: flex; gap: 8px; }
.job-actions .btn-brand { flex: 1; min-width: 0; width: auto; padding: 8px 12px; }
.job-action-icon { display: inline-flex; flex: 0 0 46px; align-items: center; justify-content: center; width: 46px; min-height: 46px; padding: 0; border: 1px solid var(--brand); border-radius: 8px; background: white; color: var(--brand); cursor: pointer; }
.job-action-icon:hover, .btn-save[aria-pressed="true"] { background: var(--brand-soft); }
.btn-save[aria-pressed="true"] svg { fill: currentColor; }
.job-actions button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.job-actions button:disabled { opacity: .6; cursor: default; }

.job-report-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; padding: 24px; border: 1px solid #e2e8f0; border-radius: 14px; background: white; color: var(--ink); box-shadow: 0 24px 70px #0f172a30; }
.job-report-dialog::backdrop { background: #0f172a70; }
.job-report-dialog [hidden] { display: none; }
.job-report-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.job-report-heading h2 { margin: 0; font-size: 22px; }
.job-report-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 6px; background: #f1f5f9; color: var(--ink); font-size: 24px; cursor: pointer; }
.job-report-dialog p { color: var(--muted); line-height: 1.6; }
.job-report-dialog fieldset { margin: 20px 0; padding: 0; border: 0; }
.job-report-dialog legend, .job-report-details { font-size: 14px; font-weight: 600; }
.job-report-dialog legend { margin-bottom: 12px; }
.job-report-reason { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; font-size: 14px; line-height: 1.5; cursor: pointer; }
.job-report-reason input { margin: 4px 0 0; accent-color: var(--brand); }
.job-report-dialog textarea { display: block; width: 100%; margin-top: 8px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; }
.job-report-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.job-report-actions .btn-brand { width: auto; padding: 10px 18px; font: inherit; font-weight: 600; }
.job-report-cancel { padding: 10px 16px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; color: var(--ink); font: inherit; cursor: pointer; }
.job-report-dialog .job-report-error { color: #b91c1c; }
.job-report-dialog :is(button, input, textarea):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.job-report-dialog button:disabled { opacity: .6; cursor: wait; }

.content-wrap {
  padding: 34px 0 48px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

@media (min-width: 901px) {
  .content-grid:has(> .side-stack) {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

.job-main {
  display: grid;
  min-width: 0;
  gap: 24px;
}

.job-panel,
.job-side-card {
  padding: 26px;
}

.section-title,
.side-title {
  display: block;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
}

.side-title {
  font-size: 16px;
}

.description-lp {
  color: #475569;
  font-size: 16px;
  line-height: 1.75;
}

.description-lp p {
  margin: 0 0 16px;
}

.description-lp strong {
  color: var(--ink);
}

.description-lp ul {
  margin: 0 0 18px 22px;
  padding: 0;
}

.description-lp li {
  color: #000;
  margin: 0 0 9px;
  padding-left: 4px;
}

.description-lp li::marker {
  color: #000;
}

.side-stack {
  display: grid;
  align-content: start;
  align-items: start;
  gap: 16px;
}

.job-side-card {
  width: 100%;
}

.tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-jobs {
  padding: 18px;
}

.related-jobs-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-job-card {
  display: block;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow-wrap: anywhere;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.related-job-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(15, 35, 75, 0.08);
}

.related-job-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.related-job-card__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.related-job-card__mark {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  height: 36px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-hover);
  font-size: 17px;
  font-weight: 800;
}

.related-job-card__heading {
  min-width: 0;
}

.related-job-card__title {
  margin: 0;
  color: var(--brand-hover);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.related-job-card:hover .related-job-card__title {
  text-decoration: underline;
}

.related-job-card__company {
  margin: 4px 0 0;
  color: #475569;
  font-size: 13px;
}

.related-job-card__location {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.related-job-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.related-job-card__badge {
  padding: 3px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
}

.related-job-card__salary {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.related-job-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  border-top: 1px solid #edf1f7;
  padding-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.related-job-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-hover);
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid #e0e0e0;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .apply-card {
    position: static;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 10px;
  }

  .header-actions {
    gap: 10px;
    margin-left: auto;
  }

  .meta-list li {
    flex: 1 1 100%;
    justify-content: space-between;
    white-space: normal;
  }

  .meta-value {
    min-width: 0;
    text-align: right;
  }
}
