/* TTPR Talent Directory. Palette, type and the platform-sign motif follow the
   TTPR host site (blogs.baruch.cuny.edu/ttprhost). */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2-variations'), url('/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --navy: #05336B;
  --navy-deep: #031F44;
  --ink: #0A1C33;
  --platform: #FFFFFF;
  --tile: #EEF2F7;
  --green: #007A36;
  --signal: #FCCC0A;
  --red: #B3261E;
  --muted: #46566C;
  --rule: #D3DCE7;
  --wrap: 1200px;
  --pad: 32px;
  --rx: 42px;           /* centre of the line that runs down the left of the intro */
  --trunk: 10px;
  color-scheme: light;
}
@media (max-width: 720px) { :root { --pad: 16px; --rx: 26px; --trunk: 6px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--platform); color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--navy); color: #fff; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 650; line-height: 1.12; letter-spacing: -0.005em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--signal); color: var(--ink); padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease-out, color .18s ease-out, border-color .18s ease-out;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-sm { padding: 9px 16px; font-size: .93rem; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--tile); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-line-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-line-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(1px)) { .nav { background: rgba(255,255,255,.84); backdrop-filter: saturate(160%) blur(14px); } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.brand img { height: 42px; width: auto; }
.brand-name { padding-left: 16px; border-left: 1px solid var(--rule); font-weight: 650; font-size: 1.05rem; line-height: 1.15; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 560; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--navy); text-decoration: underline; }
.nav-links a[aria-current] { color: var(--navy); font-weight: 700; }
@media (max-width: 720px) {
  .nav-inner { padding-top: 12px; padding-bottom: 12px; }
  .brand img { height: 32px; }
  .brand-name { font-size: .95rem; padding-left: 12px; }
  .brand { gap: 12px; }
  .nav-links { width: 100%; gap: 16px; }
  .nav-links a:not(.btn) { white-space: nowrap; font-size: .9rem; }
  .nav-links .btn-sm { padding: 8px 14px; font-size: .88rem; }
  .nav-links .btn { margin-left: auto; }
}
@media (max-width: 400px) { .brand-name { display: none; } }

/* ---------- Platform sign (shared by the directory intro and profile header) ---------- */
.sign {
  position: relative; background: var(--navy); color: #fff; border-radius: 8px;
  box-shadow: 0 18px 40px -22px rgba(3,31,68,.55);
}
.sign::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(255,255,255,.9); }
.sign h1 { font-weight: 650; letter-spacing: -0.015em; line-height: 1.02; }
.sign-station { display: block; }
.sign-sub { display: block; font-weight: 500; letter-spacing: 0; line-height: 1.35; margin-top: 10px; opacity: .9; }

/* ---------- Directory intro ---------- */
.intro { padding: 40px 0 0; }
.intro .sign { padding: 34px 36px 32px calc(var(--rx) + 42px); }
.intro .sign-station { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.intro .sign-sub { font-size: clamp(1rem, 1.7vw, 1.3rem); }
.sign-dot {           /* origin station: the line starts here */
  position: absolute; top: 50%; left: calc(var(--rx) - 18px); width: 36px; height: 36px; margin-top: -18px;
  border-radius: 50%; background: var(--navy); border: 9px solid #fff; z-index: 1;
}
.sign-dot::after {    /* stem from the station to the bottom edge of the sign */
  content: ""; position: absolute; left: 50%; top: 9px; width: var(--trunk); height: 200px; margin-left: calc(var(--trunk) / -2);
  background: #fff; z-index: -1;
}
.intro .sign { overflow: hidden; }
.intro-body { position: relative; padding: 30px 0 44px calc(var(--rx) + 42px); }
.intro-body::before {  /* the line continues under the sign and stops at the directory */
  content: ""; position: absolute; left: calc(var(--rx) - var(--trunk) / 2); top: 0; bottom: 22px; width: var(--trunk); background: var(--navy);
}
.intro-body::after {
  content: ""; position: absolute; left: calc(var(--rx) - 11px); bottom: 12px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 4px solid var(--navy); box-sizing: border-box;
}
.intro-pitch { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 52ch; }
.intro-host { margin-top: 12px; color: var(--muted); }
@media (max-width: 720px) {
  .intro { padding-top: 20px; }
  .intro .sign { padding: 30px 20px 26px calc(var(--rx) + 28px); }
  .sign-dot { width: 26px; height: 26px; margin-top: -13px; left: calc(var(--rx) - 13px); border-width: 6px; }
  .sign-dot::after { top: 6px; }
  .intro-body { padding-left: calc(var(--rx) + 28px); padding-bottom: 40px; }
  .intro-body::after { left: calc(var(--rx) - 9px); width: 18px; height: 18px; border-width: 3px; }
}

/* ---------- Filters ---------- */
.filters {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 14px;
  background: var(--tile); border-radius: 8px; padding: 18px 20px 20px;
}
.filters label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f-label { font-size: .85rem; font-weight: 600; color: var(--muted); font-stretch: 92%; }
.filters input, .filters select {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 6px;
  background-color: #fff; color: var(--ink); font: inherit; font-size: .97rem;
}
.filters select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2305336B' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.filters input:focus, .filters select:focus { outline: 3px solid var(--signal); outline-offset: 0; border-color: var(--navy); }
.result-count { color: var(--muted); font-size: .95rem; margin: 22px 0 16px; font-weight: 500; }
.filters.has-skill { grid-template-columns: 1.4fr repeat(5, 1fr); }
@media (max-width: 1100px) { .filters.has-skill { grid-template-columns: repeat(3, 1fr); } .filters.has-skill .f-search { grid-column: 1 / -1; } }
@media (max-width: 960px) { .filters, .filters.has-skill { grid-template-columns: 1fr 1fr; } .f-search { grid-column: 1 / -1; } }
@media (max-width: 720px) { .filters { padding: 14px; gap: 10px 12px; } }

/* ---------- Tiles ---------- */
.directory { padding-bottom: 80px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 28px 22px; }
.tile {
  display: flex; flex-direction: column; background: #fff; color: var(--ink); text-decoration: none;
  border: 1px solid var(--rule); border-radius: 8px; overflow: hidden;
  transition: border-color .18s ease-out, box-shadow .18s ease-out;
}
.tile:hover { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.tile:hover .tile-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tile[hidden] { display: none; }
.tile-photo { position: relative; aspect-ratio: 4 / 5; background: var(--tile); border-bottom: 1px solid var(--rule); }
.tile-photo .portrait { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.tile-flag {
  position: absolute; left: 12px; top: 12px; background: #fff; color: var(--navy);
  font-size: .8rem; font-weight: 650; padding: 4px 11px; border-radius: 999px; box-shadow: 0 1px 2px rgba(10,28,51,.2);
}
.tile-body { flex: 1; display: flex; flex-direction: column; padding: 16px 18px 18px; }
.tile-name { font-size: 1.2rem; margin: 8px 0 3px; }
.tile-major { color: var(--muted); font-size: .95rem; line-height: 1.4; margin-bottom: 16px; }
.tile-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 2px; font-size: .88rem; line-height: 1.4; font-stretch: 92%; }
.tile-foot span:first-child { font-weight: 600; }
.tile-foot span + span { color: var(--muted); }
.empty { color: var(--muted); padding: 32px 0; }

/* Track marker: a small route bullet in the track's line colour */
.track { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 650; color: var(--ink); font-stretch: 92%; }
.track::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); flex: 0 0 auto; }
.track-data::before { background: var(--green); }

.portrait-blank { display: grid; place-items: center; width: 100%; height: 100%; background: var(--tile); color: var(--navy); }
.portrait-blank span { font-size: 3.4rem; font-weight: 300; font-stretch: 125%; letter-spacing: .04em; }

@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .tile-body { padding: 12px 12px 14px; }
  .tile-name { font-size: 1.02rem; }
  .tile-major { font-size: .85rem; margin-bottom: 12px; }
  .tile-foot { font-size: .8rem; }
  .tile-foot span + span { display: none; }
  .track { font-size: .76rem; gap: 6px; }
  .track::before { width: 10px; height: 10px; }
  .tile-flag { left: 8px; top: 8px; font-size: .72rem; padding: 3px 9px; }
  .portrait-blank span { font-size: 2.4rem; }
}

/* ---------- Profile ---------- */
.profile { padding-top: 26px; padding-bottom: 80px; }
.back { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 600; font-size: .95rem; text-decoration: none; }
.back::before { content: ""; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.back:hover { text-decoration: underline; }

.sign-profile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 34px; align-items: center; padding: 40px 40px 34px; }
.portrait-lg { width: 176px; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 22%; border: 4px solid #fff; border-radius: 6px; background: var(--tile); }
.portrait-lg.portrait-blank span { font-size: 3.6rem; }
.sign-profile .sign-station { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.sign-profile .sign-sub { font-size: clamp(1rem, 1.6vw, 1.25rem); }
.sign-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 40px; align-items: start; }
.facts { grid-column: 2; grid-row: 1; position: sticky; top: 100px; }
.facts dl { margin: 0; border-top: 3px solid var(--navy); }
.facts dl > div { padding: 13px 0 14px; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: .85rem; font-weight: 600; color: var(--muted); font-stretch: 92%; }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.profile-main { grid-column: 1; grid-row: 1; min-width: 0; }

.block { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--rule); }
.block h2 { font-size: 1.55rem; margin-bottom: 14px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.block-head h2 { margin: 0; }
.bio { font-size: 1.1rem; line-height: 1.65; max-width: 66ch; }
.resume-frame { display: block; width: 100%; height: 960px; border: 1px solid var(--rule); border-radius: 6px; background: var(--tile); }
.block-interest { background: var(--tile); border: 0; border-radius: 8px; padding: 32px 34px 34px; margin-bottom: 0; }
.block-interest > .muted { max-width: 60ch; }

@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 28px; }
  .facts, .profile-main { grid-column: 1; grid-row: auto; position: static; }
  .facts dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .resume-frame { height: 620px; }
}
@media (max-width: 640px) {
  .sign-profile { grid-template-columns: 1fr; gap: 20px; padding: 32px 20px 24px; }
  .portrait-lg { width: 132px; }
  .sign-actions .btn { flex: 1 1 auto; }
  .sign-actions .btn-white { flex-basis: 100%; }
  .block-interest { padding: 24px 18px; }
  .facts dl { grid-template-columns: 1fr; }
}

/* Profile content blocks */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: 5px 14px; font-size: .93rem; font-weight: 550; }
.project { border-left: 4px solid var(--navy); padding: 4px 0 4px 20px; }
.project h3 { font-size: 1.15rem; margin-bottom: 8px; }
.project p { max-width: 66ch; margin-bottom: 14px; }
.certs { list-style: none; margin: 0; padding: 0; }
.certs li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-weight: 600; }
.certs li:first-child { border-top: 1px solid var(--rule); }
.cert-note { font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; font-stretch: 92%; }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 40px; }
.extras h3 { font-size: 1rem; margin-bottom: 8px; }
.plain { margin: 0; padding-left: 18px; }
.plain li + li { margin-top: 4px; }

/* ---------- Forms ---------- */
.form fieldset.group { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 14px; padding: 18px 20px 20px; border-radius: 8px; background: #fff; }
.form fieldset.group legend { font-size: 1.1rem; font-weight: 650; padding: 0 6px; }
.choice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.choice-label { font-weight: 600; font-size: .95rem; flex-basis: 100%; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; }
.hint { font-size: .9rem; color: var(--muted); }
.skill-group { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.skill-group .choice-label { font-size: .9rem; color: var(--ink); flex-basis: auto; }
.checks .inline { font-size: .93rem; align-items: flex-start; }
.checks .inline input { margin-top: 3px; flex: 0 0 auto; }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.form label .muted { font-weight: 450; font-size: .85rem; }
.form input:not([type=checkbox]):not([type=radio]), .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 6px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 400; font-size: 1rem;
}
.form input:focus, .form textarea:focus { outline: 3px solid var(--signal); outline-offset: 0; border-color: var(--navy); }
.form input[type=file] { padding: 9px; }
.form fieldset { border: 1px solid var(--rule); border-radius: 6px; padding: 10px 14px 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.form legend { font-weight: 600; font-size: .95rem; padding: 0 4px; }
.form label.inline { flex-direction: row; align-items: center; gap: 8px; font-weight: 450; }
.form label.consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 450; font-size: .93rem; color: var(--muted); }
.form label.consent input { margin-top: 5px; }
.form input[type=checkbox], .form input[type=radio] { accent-color: var(--navy); width: 18px; height: 18px; }
.form .btn { align-self: flex-start; }
.form-foot { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -10000px; }
.fineprint { font-size: .9rem; color: var(--muted); }

.notice { padding: 14px 16px; border-radius: 6px; margin: 12px 0; border-left: 4px solid; }
.notice.success { background: #E6F2EB; color: #0B4F28; border-color: var(--green); }
.notice.error { background: #FBEAE9; color: #7E1A15; border-color: var(--red); }

/* ---------- Simple pages (update, messages) ---------- */
.narrow { max-width: 720px; padding-top: 48px; padding-bottom: 72px; }
.narrow h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; padding-top: 18px; border-top: 3px solid var(--navy); }
.narrow > p { margin-bottom: 12px; }

/* ---------- Footer ---------- */
.foot { background: var(--navy-deep); color: rgba(255,255,255,.78); padding: 48px 0 52px; font-size: .95rem; }
.foot a { color: #fff; }
.foot-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px 0; align-items: center; }
.foot-brand { display: flex; flex-direction: column; gap: 18px; }
.foot-brand img { height: 46px; width: auto; }
.foot-brand .foot-zicklin { height: 36px; opacity: .85; }
.foot-brand { padding-right: 64px; }
@media (max-width: 760px) { .foot-brand { padding-right: 0; } }
.foot-text { display: flex; flex-direction: column; gap: 8px; max-width: 62ch; }
.foot-text strong { color: #fff; }
.foot-brand + .foot-text { padding-left: 64px; border-left: 1px solid rgba(255,255,255,.2); }
@media (max-width: 760px) { .foot-brand + .foot-text { padding-left: 0; border-left: 0; } }
@media (max-width: 760px) { .foot-inner { grid-template-columns: 1fr; } .foot-brand img { height: 38px; } .foot-brand .foot-zicklin { height: 30px; } }
