/* ==========================================================================
   YCL Mentor Directory
   Palette, type and layout tokens. Edit here, not inline.
   ========================================================================== */

:root {
  --navy: #1E394B;
  --navy-deep: #162C3A;
  --blue: #0132A0;
  --blue-hover: #012A85;
  --blue-wash: #EAF0FB;
  --paper: #FFFFFF;
  --mist: #F4F6F8;
  --line: #DCE3E8;
  --line-soft: #E9EEF2;
  --slate: #5A6B78;
  --ink: #14232E;

  /* Display face. Archivo because its capitals reach the same height as the
     lowercase ascenders, so "What Tim" reads level. Montserrat put the dot of
     the i and the top of an h above the caps, which looked off at headline
     size. To go back, swap this one line and the font link in the four HTML
     files. Alternate worth trying: "Inter", which is already loaded for body. */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1140px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(20, 35, 46, .06);
  --shadow-md: 0 10px 30px rgba(20, 35, 46, .10);

  --ease: cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.015em;
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }

p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--blue); color: #fff;
  padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* --- Eyebrow / label utility ------------------------------------------- */
.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}
.eyebrow--light { color: #8FB4E8; }

/* --- Signature device: arrow rule --------------------------------------
   Echoes the arrow in the YCL mark. Used as a section divider.            */
.arrow-rule {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 28px;
}
.arrow-rule::before {
  content: "";
  height: 2px;
  width: 44px;
  background: var(--blue);
}
.arrow-rule::after {
  content: "";
  width: 0; height: 0;
  border-left: 8px solid var(--blue);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.arrow-rule--light::before { background: #8FB4E8; }
.arrow-rule--light::after { border-left-color: #8FB4E8; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); background: var(--mist); }

.btn--onnavy { background: #fff; color: var(--navy); border-color: #fff; }
.btn--onnavy:hover { background: #E8EDF2; border-color: #E8EDF2; color: var(--navy); }

.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* --- Header ------------------------------------------------------------- */
.site-head {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-head__logo img { height: 34px; width: auto; }
.site-head__nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .9rem;
}
.site-head__nav a.nav-link { color: #D6E0E8; }
.site-head__nav a.nav-link:hover { color: #fff; text-decoration: none; }
.site-head__nav a.btn--onnavy { color: var(--navy); }
.site-head__nav a.btn--onnavy:hover { color: var(--navy); text-decoration: none; }
.site-head__nav .btn { padding: 10px 18px; font-size: .85rem; }

@media (max-width: 640px) {
  .site-head__inner { min-height: 64px; }
  .site-head__logo img { height: 26px; }
  .site-head__nav { gap: 14px; font-size: .8rem; }
  .site-head__nav .btn { padding: 9px 14px; font-size: .78rem; }
  .site-head__nav .nav-link { display: none; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* the arrow from the YCL mark, oversized and nearly invisible */
  content: "";
  position: absolute;
  right: -30px; bottom: -120px;
  width: 440px; height: 440px;
  background: url("/assets/img/arrow-white.png") no-repeat center / contain;
  opacity: .05;
  pointer-events: none;
}
@media (max-width: 880px) { .hero::after { display: none; } }
.hero__inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero__lede {
  font-size: 1.12rem;
  color: #C4D2DD;
  max-width: 58ch;
  margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 640px) {
  .hero { padding: 40px 0 36px; }
  .hero__lede { font-size: 1rem; }
  .hero__actions .btn { width: 100%; }
}

/* --- Sponsor slot ------------------------------------------------------- */
.sponsor {
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px dashed rgba(255,255,255,.28);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
  flex-wrap: wrap;
  text-align: center;
}
.sponsor__label {
  font-family: var(--display);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8FB4E8;
}
.sponsor__slot { font-size: .92rem; color: #A9BDCB; }
.sponsor__slot a { color: #fff; text-decoration: underline; }
.sponsor img { height: 34px; width: auto; }

.sponsor-band {
  background: var(--mist);
  padding: 0 0 64px;
}
.sponsor--footer {
  border-color: var(--line);
  margin: 0;
  background: var(--paper);
  padding: 22px 24px;
}
.sponsor--footer .sponsor__label { color: var(--slate); }
.sponsor--footer .sponsor__slot { color: var(--slate); }
.sponsor--footer .sponsor__slot a { color: var(--blue); }

/* Open slot. Reads as inventory for sale, not as a missing asset. */
.sponsor__ghost {
  font-family: var(--display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  color: #7E98AC;
  border: 1px dashed rgba(255,255,255,.3);
  border-radius: 2px;
  padding: 12px 22px;
  white-space: nowrap;
}
.sponsor__pitch { font-size: .9rem; color: #A9BDCB; line-height: 1.45; }
.sponsor__pitch a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
  white-space: nowrap;
}
.sponsor--footer .sponsor__ghost { color: var(--slate); border-color: var(--line); }
.sponsor--footer .sponsor__pitch { color: var(--slate); }
.sponsor--footer .sponsor__pitch a { color: var(--blue); }

@media (max-width: 560px) {
  .sponsor { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sponsor__ghost { width: 100%; text-align: center; }
}

/* --- Filter bar --------------------------------------------------------- */
.filters {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.filters__inner {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 200px; }
.field__label {
  font-family: var(--display);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
}
.select, .input, .textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.select:focus, .input:focus, .textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-wash);
  outline: none;
}
.select {
  appearance: none;
  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 fill='%231E394B' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }

.filters__count {
  margin-left: auto;
  font-size: .9rem;
  color: var(--slate);
  padding-bottom: 12px;
}
.filters__reset {
  background: none; border: none; padding: 0;
  color: var(--blue); font: inherit; font-size: .9rem;
  cursor: pointer; text-decoration: underline;
}

@media (max-width: 720px) {
  .filters { position: static; }
  .filters__inner { gap: 12px; }
  .field { min-width: 100%; }
  .filters__count { margin-left: 0; padding-bottom: 0; }
}

/* --- Card grid ---------------------------------------------------------- */
.grid-section { padding: 44px 0 72px; background: var(--mist); min-height: 40vh; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }

.avatar {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  border-radius: 2px;
  object-fit: cover;
  background: var(--mist);
  border: 2px solid var(--navy);
}
/* Every headshot renders black and white. A mixed set looks like a mistake,
   and grayscale hides the gap between a studio photo and a phone photo.
   Done in CSS so nobody has to edit an image before adding a mentor. */
img.avatar { filter: grayscale(1) contrast(1.04); }
.avatar--initials {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .02em;
  color: var(--navy);
  background: var(--paper);
}

.card__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 3px;
  letter-spacing: -.01em;
}
.card__name a { color: inherit; }
.card__name a::after {
  content: ""; position: absolute; inset: 0; /* full-card click target */
}
.card__role { font-size: .92rem; color: var(--slate); margin: 0; line-height: 1.4; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.tag {
  font-family: var(--display);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--mist);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 4px 8px;
}

.help {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.help__label {
  font-family: var(--display);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 10px;
}
.help li {
  position: relative;
  padding-left: 20px;
  font-size: .95rem;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--ink);
}
/* Centred on the first line: half the line box, minus half the marker. */
.help li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.75em - 4px);
  width: 0; height: 0;
  border-left: 6px solid var(--blue);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.card__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card__cta {
  font-family: var(--display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 8px;
}
.card__cta svg { transition: transform .18s var(--ease); }
.card:hover .card__cta svg { transform: translate(3px, -3px); }
.card__status {
  font-size: .78rem;
  color: var(--slate);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* --- States ------------------------------------------------------------- */
.state {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 28px;
  text-align: center;
}
.state h3 { margin-bottom: 8px; }
.state p { color: var(--slate); margin: 0 auto 18px; max-width: 46ch; }

.skeleton-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  height: 300px;
}
.sk {
  background: linear-gradient(90deg, var(--line-soft) 25%, #F3F6F8 37%, var(--line-soft) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
  border-radius: 2px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.notice {
  background: #FFF7E6;
  border: 1px solid #F0DCA8;
  color: #6A5326;
  font-size: .9rem;
  padding: 12px 20px;
}
.notice strong { font-family: var(--display); }

/* --- Profile page ------------------------------------------------------- */
.profile { background: var(--mist); padding: 0 0 40px; }

.crumb {
  padding: 20px 0;
  font-size: .9rem;
}
.crumb a { color: var(--slate); }
.crumb a:hover { color: var(--blue); }

.profile__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 880px) {
  .profile__grid { grid-template-columns: 1fr; }
}

.identity {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 24px;
}
@media (max-width: 880px) { .identity { position: static; } }

.identity .avatar {
  width: 120px; height: 120px;
  font-size: 2rem;
  margin-bottom: 18px;
}
.identity h1 { font-size: 1.7rem; margin-bottom: 4px; }
.identity__role { color: var(--slate); font-size: .98rem; margin-bottom: 18px; }
.identity .tags { margin-bottom: 22px; }
.identity__linkedin {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .92rem; margin-top: 14px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}
.panel h2 { font-size: 1.25rem; margin-bottom: 14px; }
.panel__bio { font-size: 1.03rem; color: #2A3B47; }

.help--profile li { font-size: 1.02rem; margin-bottom: 12px; padding-left: 24px; }
.help--profile li::before {
  border-left-width: 7px; border-top-width: 5px; border-bottom-width: 5px;
  top: calc(0.75em - 5px);
}

.commit {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.commit h2 { color: #fff; font-size: 1.15rem; }
.commit p { color: #C4D2DD; margin-bottom: 0; font-size: .98rem; }

/* --- Forms -------------------------------------------------------------- */
.form-page { background: var(--mist); padding: 44px 0 72px; }
.form-shell {
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
@media (max-width: 640px) { .form-shell { padding: 24px 20px; } }

.form-intro { max-width: 720px; margin: 0 auto 24px; }
.form-intro h1 { margin-bottom: 12px; }
.form-intro p { color: var(--slate); }

.q { margin-bottom: 26px; }
.q > label, .q__legend {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.q__hint {
  font-size: .87rem;
  color: var(--slate);
  margin: 0 0 10px;
  line-height: 1.5;
}
.q fieldset { border: none; margin: 0; padding: 0; }
.q__req { color: var(--blue); font-weight: 700; }

.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  cursor: pointer;
  font-size: .97rem;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.choice:hover { border-color: var(--navy); }
.choice input { margin: 3px 0 0; accent-color: var(--blue); flex: 0 0 auto; }
.choice--on { border-color: var(--blue); background: var(--blue-wash); }

.counter { font-size: .8rem; color: var(--slate); margin-top: 6px; text-align: right; }
.counter--short { color: #B4541F; }

.err {
  color: #B3261E;
  font-size: .87rem;
  margin-top: 6px;
  display: none;
}
.q--bad .input, .q--bad .textarea, .q--bad .select { border-color: #B3261E; }
.q--bad .err { display: block; }

.form-note {
  background: var(--blue-wash);
  border-left: 3px solid var(--blue);
  padding: 16px 18px;
  font-size: .93rem;
  margin-bottom: 26px;
  display: none;
}
.form-note--on { display: block; }
.form-note p:last-child { margin-bottom: 0; }

.form-actions { border-top: 1px solid var(--line-soft); padding-top: 24px; }
.form-status { margin-top: 14px; font-size: .93rem; color: var(--slate); }
.form-status--bad { color: #B3261E; }

.done { text-align: center; padding: 20px 0; }
.done__mark {
  width: 56px; height: 56px; margin: 0 auto 18px;
  border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.done h2 { margin-bottom: 10px; }
.done p { color: var(--slate); max-width: 44ch; margin: 0 auto 8px; }

/* Honeypot. Off screen rather than display:none, because some bots skip
   hidden inputs but fill positioned ones. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* --- Footer ------------------------------------------------------------- */
.site-foot {
  background: var(--navy-deep);
  color: #A9BDCB;
  padding: 48px 0 36px;
  font-size: .92rem;
}
.site-foot img { height: 30px; width: auto; margin-bottom: 18px; }
.site-foot__grid {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-foot__links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a { color: #D6E0E8; }
.site-foot__legal { padding-top: 22px; font-size: .84rem; color: #7D93A3; }
.site-foot p { margin-bottom: .4em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
