/* ===============================
   BlueCloudHR — Public Careers Styles
   =============================== */

/* Layout container */
.public-layout .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  padding-top: .75rem;  /* tightened top spacing */
  padding-bottom: 2rem;
}

/* Header & footer links */
.public-layout .public-header .brand img { vertical-align: middle; }
.public-layout .public-header a,
.public-layout .public-footer a { color: inherit; text-decoration: none; }
.public-layout .public-footer a:hover,
.public-layout .public-header a:hover { text-decoration: underline; }

/* Hero */
.public-layout .public-hero {
  text-align: center;
  padding: 1.25rem 0 1rem;   /* tighter hero */
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
  border-radius: 12px;
  margin: .5rem 0 1.25rem;   /* reduced top gap */
}

/* Grid */
.public-layout .jobs-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-areas: "list filters";
  gap: 1.25rem;
  align-items: start;
}
.public-layout .list-card { grid-area: list; }
.public-layout .filters-card { grid-area: filters; }
@media (max-width: 1099px) {
  .public-layout .jobs-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "filters"
      "list";
  }
}

/* Cards */
.public-layout .card { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: .5rem; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.public-layout .card-head { padding: .75rem 1rem; border-bottom: 1px solid rgba(0,0,0,.06); background: #fff; }
.public-layout .card-body { padding: .5rem 1rem 1rem; }

/* Filters */
.public-layout .filters-card { background: #fff; border-radius: 12px; box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.public-layout .filters-card.is-collapsed .card-body { display: none; }
.public-layout .filters { display: grid; gap: .5rem; }
/* Base control styles */
.public-layout .filters input,
.public-layout .filters select {
  height: 40px;
  line-height: 1.2;
  padding: .5rem .75rem;
  font-size: 1rem;
  border-radius: .5rem;
}

/* Inputs */
.public-layout .filters input {
  height: 40px;
  line-height: normal;
}

/* Selects — consistent styling across browsers with custom chevron */
.public-layout .filters select {
  height: 40px;
  line-height: 1.2;
  padding-right: 2rem; /* room for chevron */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  background-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.public-layout .filters .row-buttons { display: flex; gap: .5rem; }
.public-layout .filters .row-buttons .btn { min-width: 72px; }
.public-layout .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .5rem .75rem; border-radius: .5rem; border: 1px solid rgba(0,0,0,.12); background: #fff; cursor: pointer; text-decoration: none; color: inherit; }
.public-layout .btn:hover { background: #f7f8fc; }
.public-layout .btn.btn-primary {
  background: var(--bc-primary);
  color: #fff;
  border-color: var(--bc-primary);
}
.public-layout .btn.btn-primary:hover { filter: brightness(.95); }

/* Sticky list header */
.public-layout .list-card { position: relative; }
.public-layout .list-card,
.public-layout .filters-card { margin-top: 0; }
.public-layout .list-card .card-head { position: sticky; top: 0; z-index: 5; background: #fff; }

/* Job rows — two-line layout */
.public-layout .job-rows { display: flex; flex-direction: column; gap: 0; }
.public-layout .job-row--two {
  padding: 1rem 1.25rem; /* even spacing, uses more card width */
}
.public-layout .job-row--two + .job-row--two { border-top: 1px solid rgba(0,0,0,.06); }
.public-layout .job-row--two:hover { background: #f9fafc; }
.public-layout .job-row--two:focus-visible { outline: 2px solid #4b53ff; outline-offset: 2px; background: #f3f5ff; }

.public-layout .job-row--two .row-top { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .25rem; }
.public-layout .job-row--two .job-title { font-weight: 600; font-size: 1.125rem; line-height: 1.2; }
.public-layout .job-row--two .row-meta { display: flex; flex-wrap: wrap; gap: .5rem .75rem; color: #555; font-size: 1rem; }
.public-layout .job-row--two .row-meta span::after { content: "·"; margin-left: .75rem; }
.public-layout .job-row--two .row-meta span:last-child::after { content: ""; }

.public-layout .badge-req {
  display: inline-block; font-weight: 600; font-size: .875rem;
  padding: .15rem .5rem; border-radius: .375rem;
  background: var(--brand);
  color: #ffffff;
}
.public-layout .badge-comp {
  display: inline-block; font-size: .875rem; padding: .15rem .5rem; border-radius: .375rem;
  background: #f1f7ef; color: #2e6a1f;
}

/* Pager */
.public-layout .pager { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 0; margin-top: .75rem; font-size: .9375rem; }
.public-layout .pager .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.public-layout .pager-status { opacity: .8; }

/* Public job detail */
.public-layout .job-detail .job-header h1 { font-size: 1.75rem; line-height: 1.2; }
.public-layout .job-detail .meta { font-size: 1rem; color: #555; }
.public-layout .job-detail .comp { margin-top: .35rem; font-size: 1rem; }

/* Breadcrumb */
.public-layout nav[aria-label="Breadcrumb"] a.btn {
  color: inherit; text-decoration: none; border: 1px solid rgba(0,0,0,.12);
  border-radius: .5rem; padding: .35rem .6rem; background: #fff;
}
.public-layout nav[aria-label="Breadcrumb"] a.btn:hover { background: #f7f8fc; }

/* Typography tweaks */
.public-layout h1, .public-layout h2, .public-layout h3 { font-family: inherit; }
.public-layout h2 { font-size: 1.25rem; }
.public-layout h3 { font-size: 1.0625rem; }

/* --- Public polish v3 --- */
.public-layout .public-hero { margin: 12px 0 20px; }

/* Results meta tone */
.public-layout .results-meta small { color: #6b7280; font-size: .9375rem; }

/* Sharper card borders on light bg */
.public-layout .card { border-color: rgba(0,0,0,.12); }

/* Inputs/selects consistent height */
.public-layout .filters input,
.public-layout .filters select {
  height: 40px;
  line-height: 40px;
}

/* Make selects feel clickable */
.public-layout .filters select:hover,
.public-layout .filters input:hover { border-color: rgba(0,0,0,.28); }
.public-layout .filters select:focus,
.public-layout .filters input:focus { border-color: #2f67ff; box-shadow: 0 0 0 3px rgba(47,103,255,.15); }

/* Job row typography/spacing */
@media (min-width: 1100px) {
  .public-layout .job-row--two .job-title { font-size: 1.25rem; }
}
.public-layout .job-row--two { padding: .875rem 0; }
.public-layout .job-row--two + .job-row--two { border-top: 1px solid rgba(0,0,0,.08); }

/* CTA alignment */
.public-layout .row-cta { margin-top: .15rem; }

/* Section headings spacing */
.public-layout .card-head h2,
.public-layout .card-head h3 { margin: 0; }

/* --- Public polish v4: cleaner design, stickier filters, tighter typography --- */
.public-layout {
  --bc-primary: #2563EB;   /* Primary Blue */
  --bc-muted:  #64748B; 
  --bc-border: rgba(0,0,0,.12);
  --bc-border-soft: rgba(0,0,0,.08);
  --bc-surface: #fff;
  --bc-surface-alt: #f7f8fc;
  --bc-radius: 12px;
  --bc-radius-sm: 8px;
  --chip-ft-bg: #e8f2ff;
  --chip-ft-text: #0b3d91;
  --chip-pt-bg: #fff3e6;
  --chip-pt-text: #8a4b08;
}

/* Container tuning */
.public-layout .container { max-width: 1200px; }

/* Cards: slightly rounder, cleaner shadows */
.public-layout .card {
  border-color: var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 4px 14px rgba(0,0,0,.03);
}
.public-layout .card-head {
  padding: .85rem 1rem;
  background: var(--bc-surface);
  border-bottom: 1px solid var(--bc-border-soft);
}
.public-layout .card-body { padding: .75rem 1.25rem 1.1rem; }

/* Filters panel: sticky on desktop */
@media (min-width: 1100px) {
  .public-layout .filters-card {
    position: sticky;
    top: 12px;
  }
}

/* Filter controls: consistent size + better touch targets */
.public-layout .filters { gap: .6rem; }
.public-layout .filters input,
.public-layout .filters select {
  height: 40px;
  line-height: 1.2;
  padding: .5rem .75rem;
  font-size: 1rem;
  border-radius: .5rem;
}
.public-layout .filters input::placeholder { color: #8a8f98; }

/* Normalize search input to match select styling (kill WebKit quirks) */
.public-layout .filters input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  height: 44px;
  line-height: 1.2;
  padding: .55rem .75rem;
  border: 1px solid var(--bc-border);
  border-radius: .5rem;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.02);
}
.public-layout .filters input[type="search"]::placeholder { color: #8a8f98; }
.public-layout .filters input[type="search"]:hover {
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 2px rgba(37,99,235,.10);
}
.public-layout .filters input[type="search"]:focus {
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* Buttons: primary + subtle */
.public-layout .btn { transition: background .15s ease, border-color .15s ease, transform .04s ease; }
.public-layout .btn:hover { background: var(--bc-surface-alt); }
.public-layout .btn:active { transform: translateY(1px); }
.public-layout .btn.btn-primary {
  background: var(--bc-primary);
  border-color: var(--bc-primary);
  color: #fff;
}
.public-layout .btn.btn-primary:hover { filter: brightness(.97); }

/* Header rows: balanced alignment */
.public-layout .card-head { display:flex; align-items:center; gap:.75rem; }
.public-layout .card-head h2,
.public-layout .card-head h3 { margin:0; }
.public-layout .results-meta { margin-left:auto; color: var(--bc-muted); }

/* Job rows: clearer hover + tighter rhythm */
.public-layout .job-row--two {
  padding: 1rem .25rem;
  border-radius: var(--bc-radius-sm);
}
.public-layout .job-row--two + .job-row--two { border-top: 1px solid var(--bc-border-soft); }
.public-layout .job-row--two:hover { background: #f9fbff; }
.public-layout .job-row--two .job-title { font-size: 1.2rem; }
@media (min-width: 1200px) {
  .public-layout .job-row--two .job-title { font-size: 1.275rem; }
}
.public-layout .job-row--two .row-meta { color: var(--bc-muted); }
.public-layout .job-row--two .row-cta {
  margin-top: .4rem;          /* clearer separation from chips/meta */
  font-size: .95rem;
}

/* Badges */
.public-layout .badge-req {
  background: var(--brand);
  color: #ffffff;
  border: 1px solid rgba(37,99,235,.18);
}
.public-layout .badge-comp {
  background: #eaf6e6;
  color: #215b19;
  border: 1px solid rgba(33,91,25,.08);
}

/* Pager: compact and clear */
.public-layout .pager { gap: .5rem; padding-top: .75rem; }
.public-layout .pager .btn { min-width: 88px; }

/* Focus states: accessible ring */
.public-layout .btn:focus-visible,
.public-layout .filters input:focus,
.public-layout .filters select:focus,
.public-layout .job-row--two:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,.18);
  border-color: var(--bc-primary);
}

/* Footer spacing and alignment */
.public-layout .public-footer .container {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
  text-align: center;            /* center the footer text/links */
}
.public-layout .public-footer .container a {
  display: inline-block;
  margin: 0 .6rem;               /* balanced spacing between links */
}

/* ===== Public overrides: ensure styles apply even if main.css is more specific ===== */
.public-layout *, .public-layout *::before, .public-layout *::after { box-sizing: border-box; }

/* Inherit typography/colors into form controls */
.public-layout input, .public-layout select, .public-layout button, .public-layout textarea {
  font: inherit;
  color: inherit;
}

/* Search input quirks (Safari/Chrome) */
.public-layout input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
  outline-offset: 0;
  border-radius: .4rem;
}
.public-layout input[type="search"]::-webkit-search-decoration,
.public-layout input[type="search"]::-webkit-search-cancel-button,
.public-layout input[type="search"]::-webkit-search-results-button,
.public-layout input[type="search"]::-webkit-search-results-decoration { display: none; }

/* Make sure filters controls always expand full width and render as block */
.public-layout .filters input,
.public-layout .filters select {
  display: block;
  width: 100%;
}

/* Beat any main.css .btn variants inside cards/filters on public pages */
.public-layout .card .btn,
.public-layout .filters .btn {
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: inherit;
}
.public-layout .card .btn.btn-primary,
.public-layout .filters .btn.btn-primary {
  background: var(--bc-primary);
  border-color: var(--bc-primary);
  color: #fff;
}

/* Ensure card headers always use our flex layout on public */
.public-layout .card .card-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

/* Uniform card header height (list + filters) */
.public-layout .card .card-head {
  min-height: 56px;            /* desktop/tablet */
}
@media (max-width: 640px) {
  .public-layout .card .card-head {
    min-height: 48px;          /* phones */
  }
}

/* Ensure job list takes available width and filters stay at fixed column */
.public-layout .jobs-grid .list-card { min-width: 0; }
.public-layout .jobs-grid .filters-card { width: 100%; max-width: 320px; }

/* === Public polish v5: spacing balance and visual refinement === */

/* Base font adjustments */
.public-layout body,
.public-layout {
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  color: #222;
  background-color: #f9fafc;
}

/* Container padding adjustments */
.public-layout .container {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

/* Header hero section */
.public-layout .public-hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.public-layout .public-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1c1f24;
}
.public-layout .public-hero p {
  font-size: 1.1rem;
  color: #555;
  margin-top: .25rem;
}

/* Filter box background and alignment */
.public-layout .filters-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.public-layout .filters-card .card-head h3 {
  font-weight: 600;
  color: #222;
}

/* Filter buttons layout */
.public-layout .filters .row-buttons {
  margin-top: .5rem;
  display: flex;
  justify-content: flex-start;
}

/* Job list card tweaks */
.public-layout .list-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
/* Expand internal width — remove side padding from list card */
.public-layout .list-card {
  padding-left: 0;
  padding-right: 0;
}
.public-layout .list-card .card-head h2 {
  font-weight: 600;
  color: #222;
}

/* Job row hover enhancement */
.public-layout .job-row--two {
  transition: background .2s ease, box-shadow .2s ease;
}
.public-layout .job-row--two:hover {
  background: #f1f4ff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* Job title and metadata refinement */
.public-layout .job-row--two .job-title {
  font-weight: 600;
  color: #1c1f24;
}
.public-layout .job-row--two .row-meta {
  color: #666;
  font-size: .95rem;
}

/* CTA link refinement */
.public-layout .row-cta .link {
  color: var(--bc-primary);
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease;
}
.public-layout .row-cta .link:hover {
  color: #1E3A8A; /* Deep Navy */
  text-decoration: underline;
}

/* Remove default underlines from job rows while keeping intentional link affordances */
.public-layout a.job-row--two {
  text-decoration: none;
  color: inherit;
}

/* Do not underline metadata chips inside the row */
.public-layout .job-row--two .row-meta--chips-slim span {
  text-decoration: none;
}

/* Keep the explicit CTA link styled as a link */
.public-layout .row-cta .link {
  color: var(--bc-primary);
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease;
}
.public-layout .row-cta .link:hover {
  color: #1E3A8A; /* Deep Navy */
  text-decoration: underline;
}

/* Responsive layout spacing */
@media (max-width: 768px) {
  .public-layout .public-hero {
    padding: 1.25rem 1rem;
  }
  .public-layout .public-hero h1 {
    font-size: 1.5rem;
  }
  .public-layout .filters-card {
    margin-bottom: 1rem;
  }
  .public-layout .job-row--two {
    padding: .75rem 0;
  }
}

/* Accessibility and interaction */
.public-layout a:focus-visible,
.public-layout button:focus-visible,
.public-layout input:focus-visible,
.public-layout select:focus-visible {
  outline: 3px solid rgba(37,99,235,.4);
  outline-offset: 2px;
}
/* === Public polish v6: hero gap, filter alignment, uniform controls, meta padding === */
@media (min-width: 1100px) {
  /* Nudge filters card up to align with list card */
  .public-layout .filters-card {
    position: relative;
    top: -2px;
  }
}

/* Tighten hero -> list gap and add a soft shadow that is lighter than cards */
.public-layout .public-hero {
  margin: .5rem 0 1rem; /* slightly tighter bottom gap */
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
}

/* Ensure filter controls are perfectly uniform and vertically centered */
.public-layout .filters input,
.public-layout .filters select {
  height: 40px;
  line-height: 1.2;
  padding: .45rem .75rem; /* consistent vertical centering */
  border-radius: .5rem;
}
.public-layout .filters select {
  padding-right: 2rem; /* keep room for chevron */
}

/* Hover affordance for selects to match inputs */
.public-layout .filters select:hover {
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 2px rgba(37,99,235,.10);
}

/* Give the results meta a hair of breathing room from the right edge */
.public-layout .results-meta small {
  padding-left: .5rem;
}
/* Detail page spacing: add space below breadcrumb */
.public-layout nav[aria-label="Breadcrumb"] {
  display: block;
  margin-bottom: 1rem; /* increased gap between Back button and details card */
}

/* Optional: tighten job header line-height a touch for balance */
.public-layout .job-detail .job-header h1 {
  line-height: 1.25;
}
/* === Public detail polish: header layout, footer meta, responsive CTA === */
.public-layout .job-detail .job-header {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  flex-wrap: wrap;
}
.public-layout .job-detail .job-header .job-header-top {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex: 1 1 auto;
  min-width: 240px;
}
.public-layout .job-detail .job-header .apply-header-cta {
  margin-left: auto;
}
.public-layout .job-detail .job-header .apply-header-cta .btn {
  padding: .55rem .9rem;
}

/* Footer metadata as linear text with separators */
.public-layout .job-footer {
  border-top: 1px solid var(--bc-border, rgba(0,0,0,.12));
  background: var(--bc-surface-alt);
  padding: 0 1rem; /* remove vertical padding so dividers reach top/bottom */
}
.public-layout .job-footer .meta-linear {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  color: #555;
  font-size: .95rem;
}
.public-layout .job-footer .meta-linear .divider {
  color: #b8beca;
  padding: 0 .25rem;
}
.public-layout .job-footer .meta-linear span {
  white-space: nowrap;
}

/* Slight nudge so req badge doesn't crash into title */
.public-layout .job-detail .badge-req { margin-left: .25rem; }

/* Mobile: stack CTA full-width under the title */
@media (max-width: 640px) {
  .public-layout .job-detail .job-header { align-items: stretch; }
  .public-layout .job-detail .job-header .apply-header-cta {
    order: 3;
    width: 100%;
    margin-left: 0;
  }
  .public-layout .job-detail .job-header .apply-header-cta .btn {
    width: 100%;
  }
}

/* Vertically center JR badge with the title in header */
.public-layout .job-detail .job-header .job-header-top {
    align-items: center; /* was baseline */
  }
  
  .public-layout .job-detail .badge-req {
    display: inline-flex;
    align-items: center;
    height: 28px;       /* visually balances next to ~1.75rem h1 */
    padding: 0 .6rem;   /* horizontal only */
    line-height: 1;     /* kill extra inline box height */
  }
  
  @media (max-width: 640px) {
    .public-layout .job-detail .badge-req { height: 26px; }
  }

  /* Footer meta as content-hugging flex cells with dividers */
  .public-layout .job-footer .meta-grid {
    display: flex;
    align-items: stretch;          /* make dividers span full height */
    justify-content: flex-start;   /* no forced spacing */
    gap: 0;                        /* zero gap between cells; borders handle separation */
    min-height: 36px;
    flex-wrap: nowrap;
  }
  .public-layout .job-footer .meta-grid .cell {
    display: flex;
    align-items: center;            /* vertical center text */
    padding: .25rem .6rem;          /* slightly increased, content-hugging */
    border-left: 1px solid #d0d5dd;
    color: #555;
    white-space: nowrap;
    flex: 0 0 auto;                 /* do not stretch; hug content */
  }
  .public-layout .job-footer .meta-grid .cell:first-child {
    border-left: 0;
    padding-left: 0;
  }
  .public-layout .job-footer .meta-grid .cell:last-child {
    padding-right: 0;
  }
  
  @media (max-width: 560px) {
    .public-layout .job-footer .meta-grid {
      flex-wrap: wrap;
    }
    .public-layout .job-footer .meta-grid .cell {
      display: flex;
      align-items: center;
      border-left: 0;
      padding: .3rem 0;             /* slightly increased vertical padding on mobile */
      border-top: 1px solid #eee;
      width: 100%;                   /* stack full-width on small screens */
    }
    .public-layout .job-footer .meta-grid .cell:first-child {
      border-top: 0;
    }
    .public-layout .job-footer .meta-grid .cell:last-child {
      padding-right: 0;
    }
  }
/* === List row spacing + cleaner meta dividers (v7) === */
/* Give list rows a stronger left inset without changing card width */
.public-layout .job-row--two {
  padding: 1rem .5rem 1rem 1.25rem; /* top right bottom left */
}
@media (max-width: 560px) {
  .public-layout .job-row--two {
    padding: .85rem .5rem .85rem 1rem;
  }
}

/* Tidy the second-row metadata: lighter tone and vertical dividers */
.public-layout .job-row--two .row-meta {
  color: #5a5f6a;
  font-size: .95rem;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .25rem;
}

/* Replace the bullet with a subtle divider that spans the text height */
.public-layout .job-row--two .row-meta span::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #d0d5dd;
  margin: 0 .5rem;
  vertical-align: middle;
}

/* No divider after the last item */
.public-layout .job-row--two .row-meta span:last-child::after {
  content: "";
  display: none;
}

/* === Row meta as badges (opt-in via .row-meta--badges) === */
.public-layout .job-row--two .row-meta--badges {
  gap: .35rem .35rem;               /* tighter grid */
}
.public-layout .job-row--two .row-meta--badges span {
  display: inline-flex;
  align-items: center;
  padding: .2rem .5rem;
  border-radius: 999px;             /* pill */
  background: #f5f7fb;
  border: 1px solid #e3e7ef;
  color: #3a4150;
  font-size: .9rem;
  line-height: 1.1;
  white-space: nowrap;
}
.public-layout .job-row--two .row-meta--badges span:hover {
  background: #eef2f9;
  border-color: #d9deea;
}
/* turn off the vertical divider rule when badges are enabled */
.public-layout .job-row--two .row-meta--badges span::after { content: none !important; }

/* === Row meta: slim chips variant === */
 .public-layout .job-row--two .row-meta--chips-slim {
  gap: .35rem .35rem;
  margin-top: .25rem;         /* breathing room under title row */
}
 .public-layout .job-row--two .row-meta--chips-slim span {
  display: inline-flex;
  align-items: center;
  padding: .12rem .42rem;        /* a bit slimmer vertically and horizontally */
  border-radius: 999px;          /* pill */
  background: #f7f9fe;           /* lighter than badges */
  border: none;                  /* no border for airy feel */
  color: #3a4150;
  font-size: .85rem;             /* slightly smaller to reduce noise */
  line-height: 1.05;
  white-space: nowrap;
}
/* hover: only subtle background shift */
.public-layout .job-row--two .row-meta--chips-slim span:hover {
  background: #eff3fb;
}
/* ensure no vertical divider pseudo-element appears on chips */
.public-layout .job-row--two .row-meta--chips-slim span::after { content: none !important; }

/* Time-type coloring for slim chips (admin-themable via CSS vars) */
.public-layout .job-row--two .row-meta--chips-slim .time-type[data-time*="full"] {
  background: var(--chip-ft-bg);
  color: var(--chip-ft-text);
}
.public-layout .job-row--two .row-meta--chips-slim .time-type[data-time*="part"] {
  background: var(--chip-pt-bg);
  color: var(--chip-pt-text);
}
.public-layout .job-row--two .row-meta--chips-slim .time-type[data-time*="part"] {
  background: var(--chip-pt-bg);
  color: var(--chip-pt-text);
}

/* Final override: reduce horizontal padding on job rows */
.public-layout .job-row--two {
  padding: .9rem .6rem !important;       /* top/bottom, left/right */
}
@media (max-width: 560px) {
  .public-layout .job-row--two {
    padding: .75rem .5rem !important;
  }
}

/* === Apply flow styles: start, upload, done (unified look) === */
.public-layout .apply-start .card-body,
.public-layout .apply-upload .card-body,
.public-layout .apply-done .card-body {
  max-width: 720px;
  margin: 0 auto;
}
/* Shared form row styling */
.public-layout .apply-start .form-row,
.public-layout .apply-upload .form-row,
.public-layout .apply-done .form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.public-layout .apply-start .form-row label,
.public-layout .apply-upload .form-row label,
.public-layout .apply-done .form-row label {
  font-weight: 500;
  margin-bottom: .25rem;
}
.public-layout .apply-start .form-row input,
.public-layout .apply-start .form-row textarea,
.public-layout .apply-start .form-row select,
.public-layout .apply-upload .form-row input,
.public-layout .apply-upload .form-row textarea,
.public-layout .apply-upload .form-row select,
.public-layout .apply-done .form-row input,
.public-layout .apply-done .form-row textarea,
.public-layout .apply-done .form-row select {
  border: 1px solid var(--bc-border, #d0d5dd);
  border-radius: .5rem;
  padding: .5rem .75rem;
  font-size: 1rem;
  background: #fff;
}
.public-layout .apply-start .form-row input:focus,
.public-layout .apply-start .form-row textarea:focus,
.public-layout .apply-start .form-row select:focus,
.public-layout .apply-upload .form-row input:focus,
.public-layout .apply-upload .form-row textarea:focus,
.public-layout .apply-upload .form-row select:focus,
.public-layout .apply-done .form-row input:focus,
.public-layout .apply-done .form-row textarea:focus,
.public-layout .apply-done .form-row select:focus {
  outline: none;
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.public-layout .apply-start .actions,
.public-layout .apply-upload .actions,
.public-layout .apply-done .actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
/* Upload dropzone & progress */
.public-layout .apply-upload .dropzone {
  margin: .5rem 0 1rem;
  padding: 1.25rem;
  border: 2px dashed var(--bc-border, #d0d5dd);
  border-radius: var(--bc-radius, .5rem);
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.public-layout .apply-upload .dropzone.is-over {
  background: #f7faff;
  border-color: var(--bc-primary);
}
.public-layout .apply-upload .dropzone .hint { color: #8a8f98; font-size: .9rem; margin-top: .25rem; }
.public-layout .apply-upload .file-info { margin: .25rem 0 .75rem; }
.public-layout .apply-upload .progress { height: 6px; background: #eef2f7; border-radius: 999px; overflow: hidden; margin-top: .75rem; }
.public-layout .apply-upload .progress .bar { height: 100%; background: var(--bc-primary, #2f67ff); width: 0%; transition: width .25s ease; }
.public-layout .apply-upload .result { margin-top: .75rem; }
/* Done page alignment */
.public-layout .apply-done .card-body { text-align: center; }

/* === Candidate sign-in (public) === */
.public-layout .sign-in .card-body {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.public-layout .sign-in img {
  display: block;
  margin: 8px auto 6px;
  height: 56px;
  width: auto;
}
.public-layout .sign-in h3 {
  margin: .25rem 0 .9rem;
  font-weight: 600;
  color: #222;
}
.public-layout .sign-in .muted {
  color: var(--bc-muted, #6b7280);
}
.public-layout .sign-in form {
  margin-top: .25rem;
}
.public-layout .sign-in .form-row {
  display: flex;
  flex-direction: column;
  text-align: left;              /* labels align left even in centered layout */
  margin-bottom: 1rem;
}
.public-layout .sign-in .form-row label {
  font-weight: 500;
  margin-bottom: .25rem;
}
.public-layout .sign-in .form-row input[type="email"],
.public-layout .sign-in .form-row input[type="password"] {
  width: 100%;
  height: 44px;
  padding: .55rem .75rem;
  font-size: 1rem;
  border: 1px solid var(--bc-border, rgba(0,0,0,.12));
  border-radius: .5rem;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.02);
}
.public-layout .sign-in .form-row input[type="email"]:hover,
.public-layout .sign-in .form-row input[type="password"]:hover {
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 2px rgba(37,99,235,.10);
}
.public-layout .sign-in .form-row input[type="email"]:focus,
.public-layout .sign-in .form-row input[type="password"]:focus {
  outline: none;
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.public-layout .sign-in .actions {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-top: 1rem;
}
.public-layout .sign-in .actions .btn {
  min-width: 180px;
}
.public-layout .sign-in .links {
  margin-top: 1rem;
  text-align: center;
}
.public-layout .sign-in .links a {
  color: var(--bc-primary, #2f67ff);
  text-decoration: none;
}
.public-layout .sign-in .links a:hover {
  text-decoration: underline;
}
@media (max-width: 560px) {
  .public-layout .sign-in img { height: 48px; }
  .public-layout .sign-in .actions .btn { width: 100%; }
}

/* Narrower sign-in card width */
.public-layout article.card.sign-in {
  max-width: 560px;           /* overall card width */
  margin: 0 auto;             /* center the card */
}
@media (max-width: 640px) {
  .public-layout article.card.sign-in {
    max-width: 94%;           /* comfortable gutter on phones */
    margin: 0 auto;
  }
}
/* === Candidate sign-up (public) — mirror sign-in look === */
.public-layout .sign-up .card-body {
  max-width: 520px;  /* a touch wider than sign-in to accommodate more fields */
  margin: 0 auto;
  text-align: center;
}
.public-layout .sign-up img {
  display: block;
  margin: 8px auto 6px;
  height: 56px;
  width: auto;
}
.public-layout .sign-up h3 {
  margin: .25rem 0 .9rem;
  font-weight: 600;
  color: #222;
}
.public-layout .sign-up .muted {
  color: var(--bc-muted, #6b7280);
}
.public-layout .sign-up form { margin-top: .25rem; }
.public-layout .sign-up .form-row {
  display: flex;
  flex-direction: column;
  text-align: left;      /* left-align labels in a centered layout */
  margin-bottom: 1rem;
}
.public-layout .sign-up .form-row label {
  font-weight: 500;
  margin-bottom: .25rem;
}
.public-layout .sign-up .form-row input[type="text"],
.public-layout .sign-up .form-row input[type="email"],
.public-layout .sign-up .form-row input[type="password"] {
  width: 100%;
  height: 44px;
  padding: .55rem .75rem;
  font-size: 1rem;
  border: 1px solid var(--bc-border, rgba(0,0,0,.12));
  border-radius: .5rem;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.02);
}
.public-layout .sign-up .form-row input:hover {
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 2px rgba(37,99,235,.10);
}
.public-layout .sign-up .form-row input:focus {
  outline: none;
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.public-layout .sign-up .actions {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-top: 1rem;
}
.public-layout .sign-up .actions .btn { min-width: 200px; }
.public-layout .sign-up .links { margin-top: 1rem; text-align: center; }
.public-layout .sign-up .links a {
  color: var(--bc-primary, #2f67ff);
  text-decoration: none;
}
.public-layout .sign-up .links a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .public-layout .sign-up img { height: 48px; }
  .public-layout .sign-up .actions .btn { width: 100%; }
}

/* Narrower sign-up card width to match sign-in card centering */
.public-layout article.card.sign-up {
  max-width: 560px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .public-layout article.card.sign-up {
    max-width: 94%;
    margin: 0 auto;
  }
}

.page-header{display:flex;align-items:flex-start;justify-content:space-between;margin:0 0 1rem}
.page-title h1{margin:0}
.page-title .muted{margin:.25rem 0 0;color:#6b7280;font-size:.95rem}
.page-actions .btn{white-space:nowrap}

.summary-row{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:.75rem;margin-bottom:1rem}
.summary-card{border:1px solid #e5e7eb;border-radius:8px;padding:.75rem .9rem;background:#fff}
.summary-value{font-size:1.4rem;font-weight:700}
.summary-label{color:#6b7280;font-size:.9rem}

.log-table-header{display:flex;align-items:center;justify-content:space-between;margin:.25rem 0 .5rem}
.log-table{width:100%;border-collapse:separate;border-spacing:0}
.log-table th,.log-table td{padding:.65rem .75rem;border-bottom:1px solid #e5e7eb;vertical-align:middle}
.log-table thead th{font-weight:600;color:#374151;background:#f9fafb}
.text-right{text-align:right}

.title-cell{display:flex;align-items:center;gap:.5rem}
.jr-badge {
  display: inline-flex;
  align-items: center;
  padding: .18rem .55rem;
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: .875rem;    /* match other badges */
  line-height: 1;
  font-weight: 600;
  vertical-align: middle;
}
.position-link{text-decoration:none}


.badge {
  display: inline-block;
  padding: .22rem .6rem;
  border-radius: 999px;
  font-size: .875rem;
  line-height: 1;
  border: 1px solid transparent;
}
/* Keep status badges aligned with table text */
.log-table td .badge {
  vertical-align: middle;
}
.badge-new{background:#eff6ff;border-color:#93c5fd}
.badge-review{background:#f3f4f6;border-color:#d1d5db}
.badge-interview{background:#ecfeff;border-color:#67e8f9}
.badge-offer{background:#fef3c7;border-color:#fcd34d}
.badge-hired{background:#dcfce7;border-color:#86efac}
.badge-neutral{background:#f3f4f6;border-color:#e5e7eb}

/* === Candidate Dashboard: Workday-style statuses & table polish === */
/* Status badges mapped to Submitted / Completed / Withdrawn / Not Selected */
.badge-submitted {
  background: #eff6ff;           /* soft blue */
  border-color: #93c5fd;
  color: #0b3d91;
}
.badge-completed {
  background: #eaf6e6;           /* soft green */
  border-color: #86efac;
  color: #1b5e20;
}
.badge-withdrawn {
  background: #f3f4f6;           /* neutral grey */
  border-color: #e5e7eb;
  color: #4b5563;
}
.badge-not-selected {
  background: #fee2e2;           /* soft red */
  border-color: #fca5a5;
  color: #7f1d1d;
}

/* Table readability + hover affordance */
.log-table tbody tr:hover { background: #f9fbff; }
.log-table td .link { color: #2f67ff; }
.log-table td .link:hover { text-decoration: underline; }

/* Position link styling to match public jobs */
.position-link { color: #1c3faa; font-weight: 600; }
.position-link:hover { text-decoration: underline; }


/* Header actions alignment on public */
.page-actions { display: flex; align-items: center; gap: .5rem; }
.page-actions .btn { padding: .45rem .75rem; }

.divider{color:#d1d5db;margin:0 .35rem}
.link{white-space:nowrap}

.empty-state{border:1px dashed #d1d5db;border-radius:8px;padding:1.25rem;text-align:center;background:#fff}

/* Buttons (reuse green primary across app) */
.btn{display:inline-block;padding:.5rem .85rem;border:1px solid #d1d5db;border-radius:6px;background:#fff;text-decoration:none}
.btn-success{background:#10b981;border-color:#059669;color:#fff}

@media (max-width: 860px){
  .summary-row{grid-template-columns:repeat(2,1fr)}
  .log-table thead{display:none}
  .log-table tr{display:grid;grid-template-columns:1fr;grid-row-gap:.25rem;border-bottom:1px solid #e5e7eb;padding:.5rem}
  .log-table td{text-align:left;border:none;padding:.25rem 0}
  .text-right{text-align:left}
  /* Slightly reduce badge size on small screens to avoid wrapping */
  .log-table td .badge {
    font-size: .8125rem;
  }
}

/* === Candidate Dashboard: actions dropdown (kebab) === */
.log-table td .dropdown { position: relative; display: inline-block; }
.log-table td .dropdown-toggle {
  background: transparent;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 6px;
  height: 32px;
  width: 36px;
  line-height: 1;
  cursor: pointer;
  font-size: 18px; /* size for ⋮ */
  color: #555;
}
.log-table td .dropdown-toggle:hover { background: #f7f8fc; }
.log-table td .dropdown-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,.18);
  border-color: var(--bc-primary);
}

/* Menu container */
.log-table td .dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  min-width: 160px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  display: none; /* shown on hover/focus */
  z-index: 100;
  overflow: hidden; /* clip hover backgrounds */
}

/* Show on hover or focus-within (keyboard accessible) */
.log-table td .dropdown:hover .dropdown-menu,
.log-table td .dropdown:focus-within .dropdown-menu { display: block; }

/* Menu items */
.log-table td .dropdown-menu a,
.log-table td .dropdown-menu span {
  display: block;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
}
.log-table td .dropdown-menu a:hover { background: #f5f7fb; }
.log-table td .dropdown-menu .text-danger { color: #9b1c1c; }
.log-table td .dropdown-menu .disabled { color: #9aa0aa; cursor: default; }

/* Keep menu inside cell on narrow screens */
@media (max-width: 860px){
  .log-table td .dropdown-menu { position: static; margin-top: 4px; width: 100%; }
  .log-table td .dropdown { width: 100%; }
}

/* === Candidate Dashboard: dropdown click-toggle support === */
.log-table td .dropdown.is-open .dropdown-menu { 
  display: block; 
}

/* Slightly enlarge hit-area to reduce flicker when moving from button to menu */
.log-table td .dropdown { 
  padding: 2px 0; 
}

.log-table td .dropdown-menu { 
  margin-top: 4px; 
}

/* === Candidate Dashboard: column sizing & long-title handling === */
.col-position { width: auto; }
.col-jr { width: 110px; }
.col-location { width: 160px; }
.col-status { width: 140px; }
.col-applied, .col-updated { width: 120px; }
.col-actions { width: 64px; }

/* Make the first cell flexible with safe ellipsis for long titles */
.position-cell { max-width: 0; }
.title-cell { min-width: 0; }
.position-link { display: inline-block; min-width: 0; max-width: 100%; }
.position-text { display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; vertical-align: bottom; }

/* Utilities */
.badge { white-space: nowrap; }
.nowrap { white-space: nowrap; }
.actions-cell { width: 1%; }

/* Mobile: allow position titles to wrap for readability */
@media (max-width: 860px){
  .position-text { white-space: normal; overflow: visible; }
}

/* === Candidate Dashboard: table alignment & section spacing (v2) === */
/* Force header cells left-aligned for consistency */
.log-table thead th { text-align: left; }
.text-left { text-align: left; }

/* Section headings above each table, with centered decorative divider */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: .85rem 0 .35rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #111827; /* near-black for contrast */
}
.section-title::before,
.section-title::after {
  content: "";
  height: 1px;
  flex: 1 1 0;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, #e5e7eb 18%, #d1d5dd 50%, #e5e7eb 82%, rgba(0,0,0,0) 100%);
}

/* Balance column widths now that Job Req/Location/Last Update are removed */
.col-position { width: auto; }
.col-status   { width: 160px; }
.col-applied  { width: 128px; }
.col-actions  { width: 64px; }

/* Subtle polish in the first cell */
.title-cell .jr-badge { margin-right: .125rem; }
.title-cell { align-items: center; }

/* Row hover stays subtle on public pages */
.log-table tbody tr:hover { background: #f9fbff; }

/* Mobile: keep headings readable and cells stacked cleanly */
@media (max-width: 860px){
  .section-title { margin: .9rem 0 .4rem; }
  .log-table td.actions-cell { text-align: left; }
}

/* === Candidate Dashboard: section separation between tables === */
/* When a section title follows a table, increase the gap by ~20px */
.log-table + .section-title {
  margin-top: calc(1.1rem + 20px);
}
/* Give the first table a hair more bottom space to breathe */
.log-table { margin-bottom: .25rem; }

/* === Candidate Dashboard: section cards for Active/Inactive === */
.section-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  padding: 0;   /* lets table borders meet edges neatly */
  overflow: visible;          /* allow dropdown menus to escape the card */
  position: relative;         /* create stacking context for dropdowns */
}
.section-title + .section-card { margin-top: .6rem; }

.section-card .log-table thead th { background: #fafbff; }
/* Remove inner bottom divider on last row so the card edge is the only bottom line */
.section-card .log-table tbody tr:last-child td {
  border-bottom: 0 !important;
}
/* Keep hover working on the last row without showing the divider */
.section-card .log-table tbody tr:last-child:hover td {
  border-bottom: 0 !important;
}

/* Center the empty-state message when there are no applications */

.section-card .log-table tbody tr td[colspan] {
  text-align: center;
  padding: 2.25rem 1rem;      /* vertical centering via generous padding */
  color: #6b7280;             /* muted tone */
  font-size: 1.05rem;
  font-style: italic;
  border-bottom: 0;           /* avoid double line at bottom */
}

/* Do not show row hover for empty-state rows */
.section-card .log-table tbody tr:hover td[colspan] {
  background: #fff !important;   /* cover any row hover color */
}
.section-card--active .log-table tbody tr:hover td[colspan] {
  background: #fff !important;   /* also override the active card's special hover */
}

/* Color accents on top edge */
/* Color accents on top edge */
.section-card--active { border-top: 0; box-shadow: inset 0 4px 0 #2f67ff; }
.section-card--inactive { border-top: 0; box-shadow: inset 0 4px 0 #9aa4b2; }

/* Optional: slightly different hover inside active card */
.section-card--active .log-table tbody tr:hover { background: #f3f7ff; }

/* === Candidate Dashboard: tabs inside main section card === */
.section-card--main { border-top: 0; box-shadow: inset 0 4px 0 #2f67ff; }
.section-card--main .section-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem .85rem;
  background: #fff; 
  border-bottom: 1px solid #e5e7eb;
}
.section-card--main .section-card-head h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: #111827; }

/* Tabs */
.tabs { display: inline-flex; gap: .25rem; padding: 2px; border-radius: 10px; }
.tabs .tab {
  padding: .4rem .75rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  font-weight: 600;
}
.tabs .tab:hover { background: #f7f8fc; }
.tabs .tab.is-active {
  color: #1740b8;
  border-color: #2f67ff;
  box-shadow: 0 0 0 2px rgba(47,103,255,.10) inset;
}

/* Panels */
.tab-panel { padding: 0; }
.tab-panel.is-hidden { display: none; }

/* === Tab count badges === */
.count-badge {
  display: inline-block;
  min-width: 20px;
  padding: 0.15rem 0.45rem;
  margin-left: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: #374151;
  background: #f1f5f9;
  border-radius: 999px;
  vertical-align: middle;
}

.count-badge--blue {
  background: #e0ecff;
  color: #1d4ed8;
}
/* Spacing between Applications and Recommended Jobs cards */
#recommended-card { margin-top: 28px !important; }
#applications-card + #recommended-card { margin-top: 28px !important; }
.section-card + #recommended-card { margin-top: 28px !important; }
#
/* === Public header layout + candidate mini (v2) — single row + styled === */
.public-layout .public-header {
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.public-layout .public-header .container{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;             /* two-row layout: top = brand+nav, bottom = candidate */
  column-gap:.75rem;
  row-gap:.35rem;
  min-height:64px;
  position:relative;
}
.public-layout .public-header .container::after{
  content:"";
  order:2;                    /* sits between top row and bottom row */
  width:100%;
  height:2px;                 /* visible accent line */
  background: linear-gradient(90deg, #2563EB 0%, #1E3A8A 100%);
  opacity:.35;                /* subtle theme blend */
}
.public-layout .public-header .container > *{min-width:0;} /* allow flex to shrink safely */

/* Left: brand + breadcrumb inline */
.public-layout .public-header .brand{
  display:flex;
  align-items:center;
  gap:.4rem;                  /* tighter logo/text lockup */
  flex:0 1 auto;              /* can shrink if needed */
  order:1;
}
.public-layout .public-header .brand img{
  width:28px;height:28px;object-fit:contain;
}
.public-layout .public-header .public-nav{
  display:flex;
  align-items:center;
  gap:.6rem;
  margin-left:.5rem;          /* small separation from brand */
  flex:0 1 auto;              /* allow shrink to keep one line */
  order:1;
}
.public-layout .public-header .public-nav .crumb{
  color:#111827;font-weight:600;
}
.public-layout .public-header .public-nav .sep{
  color:#9aa0aa;
}

/* Right: compact candidate summary */
.public-layout .public-header .candidate-mini{
  order:3;                   /* below the divider */
  margin-left:0 !important;  /* override earlier auto push */
  width:100%;                /* take full row width */
  display:flex;
  align-items:center;
  justify-content:flex-end;  /* right-align on its own row */
  gap:.6rem;
  white-space:nowrap;
  flex:0 0 auto;
  padding-top:.25rem;        /* small breathing room from divider */
}
.public-layout .public-header .candidate-mini__avatar{
  width:32px;height:32px;border-radius:999px;background:#eef2ff;border:1px solid #d9def2;display:inline-flex;align-items:center;justify-content:center;font-size:.9rem;color:#4b61c1;
}
.public-layout .public-header .candidate-mini__name{font-weight:700;color:#111827}
.public-layout .public-header .candidate-mini__meta{color:#6b7280;font-size:.85rem}
.public-layout .public-header .candidate-mini__group{display:flex;align-items:center;gap:.4rem}
.public-layout .public-header .btn-sm{padding:.28rem .55rem;font-size:.875rem;border-radius:8px}

/* Don’t wrap until very small screens */
@media (max-width: 640px){
  .public-layout .public-header .container{row-gap:.4rem}
  .public-layout .public-header .public-nav{margin-left:0}
  .public-layout .public-header .candidate-mini{justify-content:flex-start}
}

/* header utilities */
.dotsep{position:relative;padding:0 .25rem;color:#c0c6d4}
.dotsep::before{content:"•"}/* Public Pages & Error Pages Styles */

/* Error Page Layout */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.error-container {
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.error-message {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

/* Responsive */
@media (max-width: 768px) {
    .error-container {
        padding: 2rem 1.5rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-icon {
        font-size: 4rem;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
