/* ============================================================
   CAREERS PORTAL — Clean portal theme
   Simple, readable cards on Material for MkDocs.
   ============================================================ */

:root {
  --portal-accent: #009688;
  --portal-accent-dark: #00796b;
  --portal-card-border: #e0e0e6;
  --portal-card-bg: #ffffff;
  --portal-muted: #6b6b76;
  --content-max-width: 72rem;
}

[data-md-color-scheme="slate"] {
  --portal-card-border: #3a3f4a;
  --portal-card-bg: #2a2e38;
  --portal-muted: #9aa0ab;
}

/* ----------------------------------------------------------------
   Layout
   ---------------------------------------------------------------- */

.md-grid {
  max-width: var(--content-max-width);
}

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */

.portal-hero {
  padding: 1.5rem 0 0.5rem 0;
}

.portal-hero h1 {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0;
  font-size: 0.72rem;
  color: var(--portal-muted);
}

.hero-meta strong {
  color: var(--md-default-fg-color);
}

/* ----------------------------------------------------------------
   Section headings
   ---------------------------------------------------------------- */

.portal-section {
  display: inline-block;
  padding-bottom: 0.15rem;
  border-bottom: 3px solid var(--portal-accent);
}

/* ----------------------------------------------------------------
   Card grid
   ---------------------------------------------------------------- */

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem 0;
}

.portal-card {
  border: 1px solid var(--portal-card-border);
  border-radius: 8px;
  background: var(--portal-card-bg);
  padding: 1rem 1.2rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.portal-card:hover {
  border-color: var(--portal-accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.portal-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.35;
}

.portal-card h3 a {
  color: var(--md-default-fg-color);
}

.portal-card h3 a:hover {
  color: var(--portal-accent);
}

.portal-card p {
  font-size: 0.7rem;
  margin: 0.5rem 0;
}

.portal-card .meta {
  font-size: 0.62rem;
  color: var(--portal-muted);
  margin-top: 0.6rem;
}

/* ----------------------------------------------------------------
   Status badges
   ---------------------------------------------------------------- */

.status {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.1rem 0.55rem;
  border-radius: 99px;
  margin-bottom: 0.3rem;
}

.status-interview {
  background: #e8f5e9;
  color: #1b5e20;
}

.status-researching {
  background: #e3f2fd;
  color: #0d47a1;
}

.status-applied {
  background: #fff8e1;
  color: #8d6e00;
}

.status-offer {
  background: #f3e5f5;
  color: #6a1b9a;
}

.status-closed {
  background: #f5f5f5;
  color: #757575;
}

[data-md-color-scheme="slate"] .status-interview {
  background: #1b3a1e;
  color: #a5d6a7;
}

[data-md-color-scheme="slate"] .status-researching {
  background: #16283f;
  color: #90caf9;
}

[data-md-color-scheme="slate"] .status-applied {
  background: #3a3217;
  color: #ffe082;
}

[data-md-color-scheme="slate"] .status-offer {
  background: #321a38;
  color: #ce93d8;
}

[data-md-color-scheme="slate"] .status-closed {
  background: #2e2e2e;
  color: #bdbdbd;
}

/* ----------------------------------------------------------------
   Tables — slightly tighter
   ---------------------------------------------------------------- */

.md-typeset table:not([class]) {
  font-size: 0.68rem;
}
