:root {
  --brand-red: #c9162b;
  --brand-red-dark: #9f1021;
  --ink: #172027;
  --muted: #63717c;
  --line: #dfe5e9;
  --soft: #f5f7f8;
  --panel: #ffffff;
  --teal: #117d83;
  --gold: #d8a21b;
  --blue: #0076a8;
  --danger: #a82727;
  --shadow: 0 18px 46px rgba(17, 32, 39, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Open Sans", Arial, sans-serif;
}

body.menu-open,
body.auth-open {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 40;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  border-radius: 6px;
  background: var(--brand-red);
  transform: translateY(-160%);
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: "Mulish", Arial, sans-serif;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 52px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  align-items: center;
  margin-left: auto;
  font-family: "Mulish", Arial, sans-serif;
  font-weight: 800;
}

.site-nav a,
.site-nav button {
  position: relative;
  color: var(--ink);
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.site-nav a::after,
.site-nav button::after {
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 3px;
  content: "";
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav button:hover::after,
.site-nav button:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-auth-button {
  min-height: 40px;
  padding: 9px 14px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.nav-toggle span {
  width: 19px;
  height: 2px;
  background: var(--ink);
}

.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 130px clamp(22px, 7vw, 96px) 72px;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(17, 22, 27, 0.84), rgba(17, 22, 27, 0.52) 48%, rgba(17, 22, 27, 0.22)), url("assets/baller.png");
  background-position: center;
  background-size: cover;
}

.hero-copy {
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-red);
  font-family: "Mulish", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Mulish", Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 0.97;
  font-weight: 800;
}

h2 {
  max-width: 900px;
  font-size: clamp(1.8rem, 3.4vw, 3.25rem);
  line-height: 1.08;
  font-weight: 800;
}

h3 {
  font-size: 1.08rem;
}

.hero-statement {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  margin: 28px 0 0;
  padding: 9px 26px 10px 28px;
  color: #fff;
  background: rgba(23, 32, 39, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: "Mulish", Arial, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1;
}

.hero-statement::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  content: "";
  background: var(--brand-red);
}

.hero-text {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: "Mulish", Arial, sans-serif;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--brand-red);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--brand-red-dark);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

.button.ghost {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.button.danger {
  color: #fff;
  background: var(--danger);
}

section:not(.hero) {
  padding: clamp(56px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.profile-page-main {
  padding-top: 78px;
  background: var(--soft);
}

.students-page-main {
  padding-top: 78px;
  background: var(--soft);
}

.professionals-page-main {
  padding-top: 78px;
  background: var(--soft);
}

.admin-page-main {
  padding-top: 78px;
  background: var(--soft);
}

.account-page-main {
  padding-top: 78px;
  background: var(--soft);
}

.profile-page-section {
  background: #fff;
}

.students-page-section,
.professionals-page-section,
.admin-page-section,
.account-page-section {
  background: var(--soft);
}

.profile-page-section h1,
.students-page-section h1,
.professionals-page-section h1,
.admin-page-section h1,
.account-page-section h1 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
}

.section-intro {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.7;
}

.profile-page-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.profile-page-preview {
  position: sticky;
  top: 96px;
}

.profile-page-form {
  display: grid;
  gap: 22px;
}

.profile-form-section {
  display: grid;
  gap: 14px;
}

.profile-form-section h2,
.signed-out-panel h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.signed-out-panel {
  max-width: 760px;
  margin: 0 auto;
}

.inline-login-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  margin-top: 20px;
}

.students-page-filters {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.professionals-page-filters {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-page-filters {
  grid-template-columns: 1.2fr 0.8fr 1fr auto auto;
}

.directory-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 16px;
}

.directory-summary .student-results-meta,
.directory-summary .hint {
  margin: 0;
}

.students-page-grid {
  align-items: stretch;
}

.professionals-page-grid {
  max-width: 1180px;
  margin: 0 auto;
}

.professionals-page-tools {
  max-width: 1180px;
  margin: 34px auto 0;
}

.compact-section-header {
  margin: 0 0 18px;
}

.admin-page-workspace {
  max-width: 1180px;
  margin: 0 auto;
}

.admin-page-stats {
  margin-bottom: 22px;
}

.admin-management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.admin-editor-panel {
  min-height: 100%;
}

.admin-panel-header {
  margin: 0 0 18px;
}

.admin-panel-header h2,
.admin-list-header h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.admin-directory-section {
  margin-top: 34px;
}

.admin-list-header {
  margin: 0 0 18px;
}

.admin-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-record-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 32, 39, 0.06);
}

.admin-record-card p {
  color: var(--muted);
  line-height: 1.6;
}

.account-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.account-panel h2,
.account-help-panel h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  margin-bottom: 18px;
}

.account-panel .auth-panel {
  padding-top: 4px;
}

.auth-modal {
  position: fixed;
  z-index: 50;
  inset: 78px 0 0;
  padding: clamp(16px, 3vw, 34px);
  overflow-y: auto;
  background: rgba(17, 32, 39, 0.5);
}

.auth-dialog {
  max-width: 620px;
  margin: 0 auto 34px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.auth-dialog-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.auth-close {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tab {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-family: "Mulish", Arial, sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.auth-tab.is-active {
  color: #fff;
  border-color: var(--brand-red);
  background: var(--brand-red);
}

.auth-modal .auth-grid {
  display: block;
  max-width: none;
}

.auth-panel {
  display: none;
}

.auth-panel.is-active {
  display: block;
}

.status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  padding-bottom: 22px;
  background: var(--ink);
  color: #fff;
}

.status-strip p {
  margin: 0;
}

.session-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.section-header {
  max-width: 1180px;
  margin: 0 auto 32px;
}

.auth-section,
.about-section,
.profile-section,
.professionals-section,
.privacy-section {
  background: #fff;
}

.auth-section.auth-modal {
  padding: clamp(16px, 3vw, 34px);
  background: rgba(17, 32, 39, 0.5);
}

.professionals-section.professionals-modal {
  padding: clamp(16px, 3vw, 34px);
  background: rgba(17, 32, 39, 0.5);
}

.students-section,
.opportunity-section,
.admin-section {
  background: var(--soft);
}

.auth-grid,
.feature-grid,
.source-grid,
.opportunity-grid,
.student-grid,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

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

.panel,
.feature-card,
.student-card,
.opportunity-card,
.source-card,
.preview-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(17, 32, 39, 0.06);
}

.panel {
  padding: 22px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.about-intro p {
  color: var(--muted);
  line-height: 1.7;
}

.process-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.process-list div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.process-list strong {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-red);
  font-family: "Mulish", Arial, sans-serif;
}

.process-list span {
  color: var(--ink);
  line-height: 1.55;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.story-card {
  min-height: 280px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fafb);
  box-shadow: 0 10px 28px rgba(17, 32, 39, 0.06);
}

.story-card p {
  color: var(--muted);
  line-height: 1.65;
}

.story-meta {
  margin: 0 0 12px;
  color: var(--brand-red) !important;
  font-family: "Mulish", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.panel h3,
.feature-card h3,
.student-card h3,
.opportunity-card h3,
.source-card h3 {
  margin-bottom: 12px;
}

.feature-card,
.student-card,
.opportunity-card,
.source-card {
  padding: 22px;
}

.hint,
.feature-card p,
.student-card p,
.opportunity-card p,
.source-card p,
.message-list p {
  color: var(--muted);
  line-height: 1.6;
}

.hint {
  margin: 8px 0 0;
  font-size: 0.88rem;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ink);
  font-family: "Mulish", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid #ccd6dc;
  border-radius: 6px;
  background: #fff;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(201, 22, 43, 0.13);
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-red);
}

.profile-layout,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.profile-compact-header {
  max-width: 940px;
  margin-bottom: 20px;
}

.profile-compact-header h2 {
  max-width: 560px;
  font-size: clamp(1.45rem, 2.25vw, 2rem);
  line-height: 1.12;
}

.profile-compact-layout {
  grid-template-columns: minmax(340px, 560px) minmax(260px, 320px);
  max-width: 940px;
  justify-content: center;
}

.profile-quick-card {
  width: 100%;
  min-height: 560px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quick-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quick-form-grid label:first-child,
.quick-form-grid label:nth-child(2) {
  grid-column: span 2;
}

.profile-details-modal {
  position: fixed;
  z-index: 48;
  inset: 78px 0 0;
  padding: clamp(16px, 3vw, 34px);
  overflow-y: auto;
  background: rgba(17, 32, 39, 0.5);
}

.profile-details-panel {
  max-width: 760px;
  margin: 0 auto 34px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-details-panel .form-grid,
.profile-details-panel .form-actions {
  margin-bottom: 14px;
}

.profile-compact-preview {
  align-self: stretch;
}

.professionals-modal {
  position: fixed;
  z-index: 47;
  inset: 78px 0 0;
  padding: clamp(16px, 3vw, 34px);
  overflow-y: auto;
  background: rgba(17, 32, 39, 0.5);
}

.professionals-dialog {
  max-width: 1120px;
  margin: 0 auto 34px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.professional-tools {
  display: grid;
  gap: 18px;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}

.form-grid,
.directory-toolbar,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.directory-toolbar {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.directory-toolbar .button {
  align-self: end;
}

.student-results-meta {
  max-width: 1180px;
  min-height: 24px;
  margin: 0 auto 16px;
  color: var(--muted);
  font-weight: 700;
}

.preview-card {
  position: sticky;
  top: 96px;
  overflow: hidden;
}

.preview-cover {
  height: 98px;
  background-image: linear-gradient(rgba(23, 32, 39, 0.18), rgba(23, 32, 39, 0.18)), url("assets/copycat-1.png");
  background-position: center;
  background-size: cover;
}

.preview-body {
  padding: 22px;
}

.avatar,
.student-avatar,
.source-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Mulish", Arial, sans-serif;
  font-weight: 800;
}

.avatar {
  width: 64px;
  height: 64px;
  margin-top: -54px;
  margin-bottom: 12px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--brand-red);
}

.student-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal);
}

.source-logo {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.source-logo.tno {
  background: var(--teal);
}

.source-logo.imec {
  background: var(--gold);
}

.source-logo.tud {
  background: var(--blue);
}

.badge-list,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef3f4;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef3f4;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pending {
  background: #fff2cf;
}

.status-approved {
  background: #dcf3e7;
}

.status-rejected {
  background: #f6dddd;
}

.student-card,
.opportunity-card,
.source-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.student-card .card-actions,
.opportunity-card .card-actions,
.source-card .button {
  margin-top: auto;
}

.source-top,
.subheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.compact-toolbar {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
  box-shadow: none;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-panel .button {
  align-self: end;
}

.subheader {
  max-width: 1180px;
  margin: 28px auto 18px;
}

.contact-panel {
  max-width: 760px;
  margin: 24px auto 0;
}

.hidden {
  display: none !important;
}

.message-list {
  display: grid;
  gap: 12px;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.message,
.admin-item,
.company-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.company-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
}

.company-card .file-link {
  margin-top: auto;
}

.admin-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.stat-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-card {
  padding: 16px;
  border-left: 6px solid var(--brand-red);
  border-radius: 8px;
  background: var(--soft);
}

.stat-card strong {
  display: block;
  font-family: "Mulish", Arial, sans-serif;
  font-size: 1.9rem;
}

.account-tools {
  max-width: 1180px;
  margin: 24px auto 0;
}

.restore-control {
  max-width: 360px;
  margin-top: 18px;
}

.profile-photo,
.student-photo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  background: #eef3f4;
}

.profile-photo {
  margin-top: -54px;
  margin-bottom: 12px;
  border: 4px solid #fff;
}

.student-photo {
  margin-bottom: 8px;
}

.file-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--brand-red);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--ink);
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Mulish", Arial, sans-serif;
  font-weight: 800;
}

.site-footer img {
  width: 36px;
  height: 46px;
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1100px) {
  .auth-grid,
  .directory-toolbar,
  .admin-grid,
  .stat-grid,
  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .feature-grid,
  .about-layout,
  .source-grid,
  .opportunity-grid,
  .student-grid,
  .profile-layout,
  .profile-page-layout,
  .admin-management-grid,
  .admin-record-grid,
  .account-page-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .preview-card,
  .profile-page-preview {
    position: static;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    gap: 10px;
    padding: 10px 14px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    margin-left: auto;
    gap: 6px;
  }

  .nav-auth-button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .site-nav a,
  .site-nav button {
    padding: 12px 4px;
    text-align: left;
  }

  .auth-modal {
    inset: 68px 0 0;
  }

  .profile-details-modal {
    inset: 68px 0 0;
    padding: 12px;
  }

  .professionals-modal {
    inset: 68px 0 0;
    padding: 12px;
  }

  .professionals-section.professionals-modal {
    padding: 12px;
  }

  .profile-quick-card {
    min-height: auto;
    aspect-ratio: auto;
  }

  .quick-form-grid {
    grid-template-columns: 1fr;
  }

  .quick-form-grid label:first-child,
  .quick-form-grid label:nth-child(2) {
    grid-column: auto;
  }

  .auth-section.auth-modal {
    padding: 12px;
  }

  .auth-dialog {
    padding: 18px;
  }

  .auth-tabs {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 84vh;
    padding-top: 102px;
    background-position: 56% center;
  }

  .auth-grid,
  .form-grid,
  .inline-login-form,
  .directory-toolbar,
  .students-page-filters,
  .professionals-page-filters,
  .admin-page-filters,
  .admin-grid,
  .stat-grid,
  .company-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .status-strip,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .session-bar {
    justify-content: flex-start;
  }

  .directory-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 2.45rem;
  }

  section:not(.hero) {
    padding-left: 14px;
    padding-right: 14px;
  }

  .button {
    width: 100%;
  }

  .header-actions .button,
  .auth-close {
    width: auto;
  }
}
