:root {
  color-scheme: light;
  --ink: #152f33;
  --muted: #5c6966;
  --paper: #f5f0e7;
  --surface: #fffdf8;
  --line: #cfc8bb;
  --accent: #c84f35;
  --accent-dark: #8f321f;
  --sage: #b9c8b6;
  --success: #176245;
  --error: #a52f27;
  --focus: #096c76;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgb(21 47 51 / 5%) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--paper);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  align-content: center;
  padding: 1.25rem;
}

.login-mark {
  width: fit-content;
  margin-bottom: -1px;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.login-panel {
  width: min(100%, 33rem);
  padding: clamp(1.5rem, 6vw, 3.5rem);
  border: 1px solid var(--ink);
  background: var(--surface);
  box-shadow: 12px 12px 0 var(--sage);
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.login-panel h1 {
  margin: 0;
  font-size: clamp(2.4rem, 12vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.login-copy {
  max-width: 28rem;
  margin: 1.5rem 0 2rem;
  color: var(--muted);
  line-height: 1.6;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 750;
}

form input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: white;
}

.primary-button {
  width: 100%;
  min-height: 3.25rem;
  margin-top: 0.8rem;
  border: 1px solid var(--accent-dark);
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.primary-button:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-status {
  min-height: 1.4rem;
  margin: 0.8rem 0 0;
  color: var(--error);
  font-size: 0.88rem;
}

.portal-shell {
  width: min(100% - 2rem, 76rem);
  margin: 0 auto;
  padding: 1.2rem 0 4rem;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0 1.5rem;
  border-bottom: 3px solid var(--ink);
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2.25rem, 9vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.text-button {
  min-height: 2.75rem;
  padding: 0 0.8rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.filter-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.filter-button {
  min-height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

.filter-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.pass-toggle {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.pass-toggle input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--ink);
}

.portal-status {
  min-height: 1.5rem;
  margin: 1rem 0;
  color: var(--muted);
}

.portal-status.is-error,
.card-status.is-error {
  color: var(--error);
}

.portal-status.is-success,
.card-status.is-success {
  color: var(--success);
}

.opportunity-list {
  display: grid;
  gap: 1rem;
}

.opportunity-card {
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--surface);
}

.card-heading {
  padding: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.score-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.status-chip,
.score-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-chip {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}

.card-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 7vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.event-meta {
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.card-body {
  display: grid;
  gap: 1.1rem;
  padding: 1.2rem;
}

.detail-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-block p {
  margin: 0;
  line-height: 1.55;
}

.recommendation {
  padding-left: 0.9rem;
  border-left: 4px solid var(--accent);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.card-links a {
  color: var(--accent-dark);
  font-weight: 800;
  text-underline-offset: 0.25em;
}

.decision-area {
  padding: 1.2rem;
  border-top: 1px solid var(--line);
  background: #eee9de;
}

.decision-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.decision-button {
  min-height: 3.2rem;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.decision-button:hover {
  background: white;
}

.decision-button[data-decision="Interested"] {
  background: var(--ink);
  color: white;
}

.decision-button[data-decision="Pass"] {
  color: var(--error);
}

.decision-button[data-decision="Applied"] {
  border-color: var(--success);
  color: var(--success);
}

.decision-button.is-current {
  box-shadow: inset 0 -5px 0 var(--accent);
}

.card-status {
  min-height: 1.3rem;
  margin: 0.7rem 0 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.empty-state {
  padding: 3rem 1.5rem;
  border: 1px dashed var(--line);
  text-align: center;
  color: var(--muted);
}

@media (min-width: 44rem) {
  .login-shell {
    justify-items: center;
  }

  .login-mark {
    margin-right: 30rem;
  }

  .toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .filter-group {
    display: flex;
  }

  .filter-button {
    min-width: 7rem;
  }

  .card-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1.5rem;
  }

  .detail-block.is-wide,
  .card-links {
    grid-column: 1 / -1;
  }

  .decision-controls {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 70rem) {
  .opportunity-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .opportunity-card:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition: background-color 130ms ease, color 130ms ease, border-color 130ms ease;
  }
}
