/* Magnani Search visual system — cosmetic enhancements, no tracking or data changes. */
:root {
  --ms-line: #e4eaf2;
  --ms-soft: #f4f7fb;
  --ms-ink: #10243a;
  --ms-accent: #155eef;
  --ms-shadow: 0 12px 36px rgba(12, 34, 59, .055);
}
.site-header {
  padding: 0;
  background: #0b1f33;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.085);
}
.site-header .topbar-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  min-height: 0;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.site-header .brand,
.site-header .site-brand,
.site-header .brand-name {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}
.site-header .brand { gap: 12px; flex-shrink: 0; }
.site-header .brand-mark { width: 42px; height: 42px; display: grid; place-items: center; }
.site-header .brand-mark img {
  width: 42px; height: 42px; object-fit: contain; display: block;
  filter: brightness(0) invert(1);
}
.site-header .brand-name { font-weight: 770; font-size: 20px; letter-spacing: -.035em; }
.site-header .nav-note {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 6px; flex-wrap: wrap; font-size: 13px;
}
.site-header .nav-note a {
  color: #d4dfed; text-decoration: none; font-weight: 550;
  padding: 9px 12px; border-radius: 8px;
  transition: color .16s ease, background-color .16s ease;
}
.site-header .nav-note a:hover,
.site-header .nav-note a[aria-current="page"] {
  color: #fff; background: rgba(255,255,255,.105); text-decoration: none;
}
.site-header .nav-note a:focus-visible {
  outline: 2px solid #9cbfff; outline-offset: 2px;
}
/* Homepage: preserve the original search-first design. */
body > .hero { background: radial-gradient(ellipse at 90% 0%, rgba(45,110,190,.14), transparent 45%), #0b1f33; }
.search-box { box-shadow: 0 20px 46px rgba(8, 31, 56, .12); }
.search-box .field:first-child { position: relative; }
.search-box .field:first-child::before {
  content: ""; pointer-events: none; position: absolute; z-index: 1;
  top: 50%; left: 15px; transform: translateY(-50%);
  width: 17px; height: 17px; opacity: .55;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23495f7a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");
}
.search-box #q { padding-left: 44px; }
.search-box .field input,
.filters select {
  transition: border-color .16s ease, box-shadow .16s ease;
}
.search-box .field input:focus,
.filters select:focus {
  border-color: #95b7ff; box-shadow: 0 0 0 3px rgba(21,94,239,.095);
}
.filters select { border-color: #dce4ef; box-shadow: 0 1px 2px rgba(15,35,60,.025); }
.content-header h2 { letter-spacing: -.035em; }
#out { gap: 14px; }
.job-card {
  padding: 22px; border-radius: 13px; gap: 24px;
  box-shadow: 0 1px 2px rgba(16,36,58,.025);
}
.job-card:hover {
  border-color: #b8cefa; box-shadow: 0 12px 30px rgba(16,36,58,.075);
  transform: translateY(-1px);
}
.job-main { flex: 1 1 auto; }
.job-title { font-size: 19px; line-height: 1.3; margin-bottom: 7px; letter-spacing: -.025em; }
.job-title a:hover { text-decoration: none; }
.job-card .company { font-size: 16px; font-weight: 680; margin-bottom: 8px; }
.job-card .job-meta { font-size: 14px; }
.job-card .job-tags { gap: 8px; margin-top: 12px; }
.job-card .job-tag {
  font-size: 12px; font-weight: 630; line-height: 1.25;
  padding: 5px 9px; background: #f3f6fa; color: #44566e;
}
.job-actions { flex-shrink: 0; gap: 16px; }
.job-actions .view-button {
  background: #0b1f33; border-radius: 9px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; font-size: 14px;
  transition: background-color .16s ease, transform .16s ease;
}
.job-actions .view-button:hover { background: #1a3b5b; transform: translateY(-1px); }
.job-actions .save-button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 13px; min-height: 44px; min-width: 60px;
  text-decoration: none; transition: color .16s ease;
}
.job-actions .save-button:hover { text-decoration: none; }
.job-actions .save-button::before {
  content: ""; width: 14px; height: 16px; background: currentColor;
  -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 22'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round' d='M4 2.2h12a1 1 0 0 1 1 1V20l-7-4.7L3 20V3.2a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
  mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 22'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round' d='M4 2.2h12a1 1 0 0 1 1 1V20l-7-4.7L3 20V3.2a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
}
.job-actions .save-button[aria-pressed="true"] { color: #155eef; }
/* Directory: structured like a modern data workspace, not a spreadsheet export. */
.employer-directory .toolbar { padding: 22px; }
.employer-directory .stats { padding: 0 22px 18px; }
.employer-directory .stat {
  border-color: #e3eaf5; background: #f5f8fd;
  border-radius: 11px; min-width: 135px; padding: 12px 16px;
}
.employer-directory .stat strong { font-size: 23px; letter-spacing: -.035em; color: #142c47; }
.employer-directory .stat span { font-size: 12px; }
.employer-directory table th { background: #f5f8fc; color: #53657d; }
.employer-directory table td { border-top-color: #e9edf4; }
.employer-directory tbody tr { transition: background-color .15s ease; }
.employer-directory tbody tr:hover { background: #f8fbff; }
.employer-directory .detail { line-height: 1.45; }
.employer-directory .company-name:hover { text-decoration: none; }
.employer-directory .actions a { text-decoration: none; font-weight: 560; }
.employer-directory .actions a:hover { text-decoration: underline; }
.opening-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 650; padding: 6px 9px; border-radius: 7px;
  white-space: nowrap;
}
.opening-status::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: currentColor;
}
.opening-status.has-openings { color: #067647; background: #effbf5; }
.opening-status.no-openings { color: #66768b; background: #f4f6f9; }
/* The policy pages keep their content, but share the same typographic system. */
body.legal-page { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.legal-page main { border: 1px solid #e4eaf2; box-shadow: var(--ms-shadow); }
body.legal-page h1 { letter-spacing: -.035em; }
/* Saved jobs: helpful, centered empty state and quieter actions. */
.tool-page .tool-shell { padding-top: 46px; }
.tool-page .tool-shell h1 { letter-spacing: -.045em; }
.tool-page .panel { box-shadow: 0 2px 10px rgba(12,34,59,.028); }
.saved-toolbar { margin-top: 25px; }
.saved-toolbar label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 650; }
.saved-toolbar input { width: 100%; border: 1px solid #dbe3ef; background: #fff; border-radius: 10px; padding: 12px; font: inherit; }
.saved-toolbar input:focus { border-color: #92b5fb; outline: 3px solid rgba(21,94,239,.12); }
.saved-empty {
  margin-top: 25px; padding: 48px 24px;
  border: 1px dashed #cddbf0; background: #fff;
  border-radius: 17px; text-align: center;
}
.saved-empty .empty-illustration {
  width: 56px; height: 56px; margin: 0 auto 17px;
  display: grid; place-items: center; border-radius: 15px;
  background: #eff4ff; color: #155eef;
}
.saved-empty svg { width: 25px; height: 25px; }
.saved-empty h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.025em; }
.saved-empty p { color: #66768b; max-width: 450px; margin: 0 auto 20px; font-size: 14px; line-height: 1.6; }
.saved-empty .primary { display: inline-flex; text-decoration: none; font-weight: 650; }
/* Resume Studio: a clear guided workflow and a paper-like editable result. */
.resume-page .tool-grid { gap: 24px; align-items: start; }
.resume-page .panel { padding: 26px; }
.resume-page .panel h2 { display: flex; align-items: center; gap: 10px; letter-spacing: -.03em; }
.resume-page .step-number {
  display: inline-grid; place-items: center; width: 29px; height: 29px;
  flex: 0 0 29px; border-radius: 9px; background: #eef4ff;
  color: #155eef; font-size: 13px; font-weight: 800; letter-spacing: 0;
}
.resume-page .panel input,
.resume-page .panel textarea {
  border: 1px solid #dce4ef; background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.resume-page .panel input:focus,
.resume-page .panel textarea:focus {
  outline: none; border-color: #92b5fb; box-shadow: 0 0 0 3px rgba(21,94,239,.1);
}
.resume-page .panel textarea { line-height: 1.6; }
.resume-page .step-break { border: 0; height: 1px; background: #e9edf5; margin: 27px 0; }
.resume-paper {
  background: #fff; border: 1px solid #dce4ef;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 9px 24px rgba(15,38,63,.07);
}
.resume-paper-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: #50637b;
  background: #f8fafd; border-bottom: 1px solid #e9edf4;
  padding: 11px 15px; letter-spacing: .015em;
}
.resume-paper-head svg { width: 16px; height: 16px; color: #155eef; }
.resume-page #resumeOutput {
  display: block; width: 100%; min-height: 440px; border: 0;
  border-radius: 0; resize: vertical; background: #fff;
  font: 14px/1.55 Arial, Helvetica, sans-serif; padding: 12px;
  box-shadow: none;
}
.resume-page #resumeOutput:focus { outline: 2px solid rgba(21,94,239,.25); outline-offset: -2px; }
.resume-page #reviewPanel { background: #fdfefe; }
.resume-page #reviewPanel h2 { font-size: 20px; }
/* Shorter, better organized footer while keeping its facts and links. */
.about-section { margin-top: 72px; padding: 64px 24px 48px; }
.about-inner, .about-footer { max-width: 1080px; }
.about-brand { margin-bottom: 34px; gap: 14px; }
.about-brand img { width: 52px; height: 52px; }
.about-brand-name { font-size: 24px; }
.about-grid { gap: 56px; }
.about-section h2 { font-size: 30px; margin-bottom: 14px; }
.about-section h3 { font-size: 19px; margin-bottom: 12px; }
.about-section p { font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.about-contact { margin-top: 28px; padding-top: 24px; }
.about-contact p { margin-bottom: 16px; }
.about-footer { margin-top: 44px; padding-top: 22px; font-size: 13px; }
@media (max-width: 760px) {
  .site-header .topbar-inner { flex-wrap: wrap; gap: 11px; padding: 16px; }
  .site-header .nav-note { width: 100%; justify-content: flex-start; gap: 2px; }
  .site-header .nav-note a { padding: 8px 9px; }
  .tool-page .tool-shell { padding-top: 46px; }
  /* One-column form must be permitted to shrink below wide select/preview
     min-content widths on narrow phones. Preserve inner scrolling where used. */
  .resume-page .tool-grid { grid-template-columns: minmax(0,1fr); }
  .resume-page .tool-grid > section { min-width: 0; max-width: 100%; }
  .resume-page .panel { padding: 20px; }
  .about-section { padding: 48px 20px 32px; }
}
@media (max-width: 500px) {
  .job-card { padding: 22px; }
  .site-header .nav-note { gap: 0; font-size: 13px; }
  .site-header .nav-note a { padding: 8px; }
  .saved-empty { padding: 35px 18px; }
  .employer-directory .toolbar { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .job-card, .job-actions .view-button, .site-header .nav-note a,
  .employer-directory tbody tr { transition: none; }
  .job-card:hover, .job-actions .view-button:hover { transform: none; }
}
@media print {
  .site-header, .resume-page .resume-paper, .resume-page .resume-paper-head { display: none !important; }
  .resume-page #printResume { display: block !important; }
  .resume-page #resumeOutput { display: none !important; }
  .resume-page #outputPanel { padding: 0; }
}

/* Source-verified deadline: useful but no invented countdown or inferred date. */
.job-card .job-tag.deadline-tag {
  display:inline-flex;
  align-items:center;
  border:1px solid #d4e2f5;
  background:#edf4ff;
  color:#174c8a;
  font-size:12px;
  font-weight:700;
}
.job-card .job-tag.deadline-tag::before {
  content:"";
  width:6px;
  height:6px;
  margin-right:7px;
  border-radius:50%;
  background:#3575bb;
  flex-shrink:0;
}
/* Empty notices should not reserve vertical space until they contain feedback. */
.tool-page .status:empty { display:none; }
.tool-page .panel label, .tool-page .panel input, .tool-page .panel select {
  max-width:100%;
}
@media (max-width:760px) {
  .tool-page .tool-shell { padding:30px 16px 50px; }
  .tool-page .tool-shell h1 {
    font-size:clamp(29px,7vw,38px);
    line-height:1.16;
    letter-spacing:-.038em;
  }
  .tool-page .panel { padding:20px; border-radius:14px; }
}
@media (max-width:370px) {
  .tool-page .panel { padding:16px; }
}
