/* TuitionPacket Internships & Jobs Phase 1 (2026-11-22h) */

/* ---- Header mode switcher (Option 3: next to the logo) ---- */
.tp-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 0 auto;
  position: relative;
  z-index: 40;
}

.tp-mode-sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: rgba(242, 244, 247, 0.24);
  flex: 0 0 auto;
}

.tp-mode-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.tp-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #FFCB05;
  background: #FFCB05;
  color: #00274C;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tp-mode-btn:hover,
.tp-mode-btn:focus-visible,
.tp-mode-switch.is-open .tp-mode-btn {
  background: #ffd83d;
  border-color: #ffd83d;
  color: #00274C;
  outline: none;
}

.tp-mode-btn:focus-visible {
  box-shadow: 0 0 0 2px #01142c, 0 0 0 4px #FFCB05;
}

.tp-mode-caret {
  font-size: 0.72rem;
  color: #00274C;
  transition: transform 0.15s ease;
}

.tp-mode-switch.is-open .tp-mode-caret {
  transform: rotate(180deg);
}

.tp-mode-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 228px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 203, 5, 0.32);
  background: #061830;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.52);
  z-index: 950;
}

.tp-mode-menu[hidden] {
  display: none !important;
}

.tp-mode-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e6ebf2;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.tp-mode-opt:hover,
.tp-mode-opt:focus-visible {
  background: rgba(255, 203, 5, 0.14);
  color: #ffffff;
  outline: none;
}

.tp-mode-opt.is-current {
  color: #FFCB05;
  font-weight: 700;
}

.tp-mode-check {
  width: 16px;
  text-align: center;
  font-weight: 800;
  color: #FFCB05;
  opacity: 0;
}

.tp-mode-opt.is-current .tp-mode-check {
  opacity: 1;
}

.tp-mode-note {
  margin-top: 6px;
  padding: 7px 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.74rem;
  line-height: 1.3;
  color: rgba(230, 235, 242, 0.72);
}


@media (min-width: 960px) {
  body:not(.page-home) .site-header .wrap.header-main {
    gap: 8px 10px;
  }
  body:not(.page-home) .hist-btn .hist-label {
    display: none;
  }
  body:not(.page-home) .hist-btn {
    padding: 6px 8px;
  }
  body:not(.page-home) .site-header nav {
    gap: 4px 12px;
  }
}

/* Home page desktop header layout adjustment so brand + mode switcher sit cleanly left of nav */
@media (min-width: 801px) {
  body.page-home .tp-brand-group {
    position: absolute;
    left: calc(48 / 1536 * 100vw);
    top: 50%;
    transform: translateY(-50%);
    gap: calc(14 / 1536 * 100vw);
    z-index: 40;
  }

  body.page-home .tp-brand-group .brand {
    order: 0;
    position: static;
    left: auto;
    top: auto;
    transform: none;
  }
  body.page-home .tp-brand-group .tp-mode-sep { order: 1; }
  body.page-home .tp-brand-group .tp-mode-switch { order: 2; }

  body.page-home .tp-brand-group .brand-um-icon {
    width: calc(44 / 1536 * 100vw);
    height: calc(44 / 1536 * 100vw);
  }

  body.page-home .tp-brand-group .brand-um-word {
    font-size: calc(27 / 1536 * 100vw);
  }

  body.page-home .tp-mode-btn {
    font-size: calc(15 / 1536 * 100vw);
    padding: calc(6 / 1536 * 100vw) calc(12 / 1536 * 100vw);
    min-height: calc(36 / 1536 * 100vw);
  }

  body.page-home .site-header nav {
    left: calc(560 / 1536 * 100vw);
    gap: calc(32 / 1536 * 100vw) !important;
    column-gap: calc(32 / 1536 * 100vw) !important;
  }

  body.page-home .site-header nav a:nth-child(1),
  body.page-home .site-header nav a:nth-child(2),
  body.page-home .site-header nav a:nth-child(3),
  body.page-home .site-header nav a:nth-child(4),
  body.page-home .site-header nav a:nth-child(5),
  body.page-home .site-header nav a:nth-child(6) {
    position: static;
    left: auto;
    margin: 0;
  }

  body.page-home .site-header nav a[aria-current="page"] {
    margin-right: 0;
  }
}

@media (max-width: 800px) {
  .site-header {
    overflow: visible !important;
  }
  .tp-brand-group {
    gap: 7px;
    max-width: 100%;
    flex-wrap: nowrap;
  }
  .tp-mode-sep {
    height: 18px;
  }
  .tp-mode-btn {
    font-size: 0.76rem;
    padding: 4px 8px;
    min-height: 30px;
    max-width: 44vw;
  }
  .tp-mode-btn-label {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tp-mode-menu {
    left: auto;
    right: 0;
    min-width: 215px;
  }
}

/* ---- Jobs Matches & Filters ---- */
.jobs-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
@media (min-width: 980px) {
  .jobs-filter-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.jobs-filter-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft, #b8c4d4);
  margin-bottom: 5px;
}

.jobs-filter-field select,
.jobs-profile-grid input,
.jobs-profile-grid select,
.jobs-profile-grid textarea,
.jobs-tracker-notes,
.jobs-tracker-status-select {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 22, 46, 0.9);
  color: #f2f4f7;
  font: inherit;
  font-size: 0.9rem;
}

.jobs-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.jobs-card-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.job-monogram {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  background: rgba(255, 203, 5, 0.14);
  border: 1px solid rgba(255, 203, 5, 0.36);
  color: #FFCB05;
  flex: 0 0 auto;
}

.jobs-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.job-score-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 203, 5, 0.16);
  border: 1px solid rgba(255, 203, 5, 0.45);
  color: #FFCB05;
}

.job-source-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(105, 190, 40, 0.14);
  border: 1px solid rgba(105, 190, 40, 0.4);
  color: #a9e37d;
}

.job-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e6ebf2;
}

.job-status-pill.is-not-open {
  background: rgba(255, 203, 5, 0.14);
  border-color: rgba(255, 203, 5, 0.44);
  color: #ffd76a;
}

.job-status-pill.is-closed {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.42);
  color: #fca5a5;
}

.jobs-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 6px 0 8px;
  font-size: 0.86rem;
  color: var(--ink-soft, #c4d0e0);
}

.jobs-skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}

.jobs-skill-chip {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dce4ef;
}

/* ---- Job Detail Page ---- */
.job-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.job-fact-box {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.job-fact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(230, 235, 242, 0.68);
  margin-bottom: 4px;
}

.job-fact-value {
  font-size: 0.94rem;
  font-weight: 600;
  color: #f2f4f7;
}

.job-status-banner {
  padding: 12px 14px;
  border-radius: 10px;
  margin: 12px 0 16px;
  border: 1px solid rgba(255, 203, 5, 0.35);
  background: rgba(255, 203, 5, 0.08);
}

.job-status-banner.is-closed {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.09);
}

/* ---- Jobs Profile, Kit, Tracker ---- */
.jobs-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.jobs-profile-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.jobs-remote-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 4px;
}

.jobs-remote-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  margin-bottom: 0;
  cursor: pointer;
}

.jobs-checklist {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.jobs-checklist li label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 0.92rem;
}

.status-pill.saved { background: rgba(148, 163, 184, 0.16); color: #e2e8f0; }
.status-pill.applied { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; }
.status-pill.interview { background: rgba(255, 203, 5, 0.2); color: #FFCB05; }
.status-pill.offer { background: rgba(74, 222, 128, 0.2); color: #86efac; }
.status-pill.rejected { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }

.jobs-tracker-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.jobs-tracker-status-select {
  width: auto;
  min-width: 135px;
}

/* ---- Company rundown & interview prep (2026-11-22h) ---- */
.job-interview-nudge {
  padding: 12px 14px;
  border-radius: 10px;
  margin: 0 0 16px;
  border: 1px solid rgba(255, 203, 5, 0.4);
  background: rgba(255, 203, 5, 0.1);
}

.job-interview-nudge[hidden] {
  display: none;
}

.job-rundown-card h3.job-rundown-kicker,
.job-interview-card h3.job-rundown-kicker {
  margin: 16px 0 6px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.job-rundown-news,
.job-mention-list,
.job-prep-questions,
.job-prep-links {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.job-mention-list li,
.job-prep-questions li {
  margin-bottom: 8px;
}

.job-story-suggest {
  margin: 4px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.12);
}

@media (max-width: 640px) {
  .job-rundown-card,
  .job-interview-card {
    overflow-wrap: anywhere;
  }
}

/* ---- Phase 3 application helpers (2026-11-23i) ---- */
.job-prepare-card,
.job-helper-card {
  margin: 16px 0 0;
}

.job-prepare-card .row,
.job-helper-card .row {
  flex-wrap: wrap;
}

.job-helper-jobmeta {
  margin: 6px 0 0;
}

.job-review-col {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.job-review-col li {
  padding: 10px 12px;
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.job-review-col.is-matches li {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.job-review-col.is-gaps li {
  background: rgba(255, 203, 5, 0.08);
  border: 1px solid rgba(255, 203, 5, 0.28);
}

.job-review-col.is-unclear li {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.job-review-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFCB05;
  margin-bottom: 2px;
}

.job-review-quote {
  margin: 4px 0 0;
  color: var(--ink-soft, #d2d8e2);
}

.job-helper-disclaimer,
.job-stale-note {
  margin: 10px 0 0;
}

.job-stale-note {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 203, 5, 0.4);
  background: rgba(255, 203, 5, 0.1);
}

.job-fill-list {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.job-fill-list code,
.job-fill-mark {
  background: rgba(255, 203, 5, 0.18);
  color: #FFCB05;
  padding: 0 5px;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
}

.job-source-list {
  margin: 8px 0 0;
  padding-left: 1.2em;
  color: var(--ink-soft, #d2d8e2);
}

.job-q-item {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 39, 76, 0.25);
}

.job-q-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.job-q-tag {
  display: inline-block;
  margin: 0 6px 0 0;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.job-q-tag.is-exact {
  background: #FFCB05;
  color: #00274C;
}

.job-q-tag.is-similar {
  background: rgba(255, 203, 5, 0.18);
  color: #FFCB05;
}

.job-q-tag.is-other {
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
}

.job-q-matches {
  margin: 0 0 8px;
}

@media (max-width: 640px) {
  .job-prepare-card,
  .job-helper-card,
  .job-q-item,
  .job-review-col li {
    overflow-wrap: anywhere;
  }
}

.jobs-profile-field .row { flex-wrap: wrap; }
.jobs-profile-field input { min-width: 0; flex: 1 1 160px; }
#jk-job-pick, #jk-template, #jk-cover, #jk-resume { max-width: 100%; }


/* 2026-11-23l: internships / co-ops notice and type chips */
.jobs-type-notice {
  margin: 12px 0 16px;
  padding: 14px 16px;
}
.jobs-type-notice p { margin: 0 0 10px; }
.jobs-type-chips { margin: 0; }
.jobs-type-count { font-weight: 650; opacity: 0.85; }
.jobs-home-type-note {
  margin: 8px 0 0;
  font-size: 1.02rem;
}
