
  /* hackNY brand tokens (brand/tokens.css in pil-summer-2027). */
  :root {
    --red: #ED1C24;        /* logo and big headlines only: 4.38:1 on white */
    --red-deep: #C4141B;   /* links, small red text, buttons with white labels */
    --ink: #172525;
    --slate: #5B6666;
    --mist: #F7F7F7;
    --blush: #FDECEC;
    --white: #FFFFFF;
    --line: #DCE0E0;       /* dividers and table rules (decorative) */
    --field: #7F8B8B;      /* input borders: 3.5:1 on white */
    --radius: 12px;
    --radius-sm: 8px;
    --heading: "Poppins", "Helvetica Neue", Arial, sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  }

  /* Base */
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body { margin: 0; background: var(--white); color: var(--ink); font: 400 1rem/1.6 var(--body); }
  .page { max-width: 42rem; margin: 0 auto; padding: 2.5rem 1rem 6rem; }
  .page.wide { max-width: 76rem; }
  a { color: var(--red-deep); text-underline-offset: .15em; }
  a:hover { text-decoration-thickness: 2px; }
  :focus-visible { outline: 2px solid var(--red-deep); outline-offset: 2px; }
  p, ul, ol { margin: 0 0 1rem; }
  li { margin-bottom: .35rem; }
  strong { font-weight: 600; }
  code { font: .875em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--mist); padding: .1em .35em; border-radius: 4px; }

  /* Headings: Poppins, sentence case. Big red type on public pages; Ink on admin pages so red stays the accent. */
  h1, h2, h3 { font-family: var(--heading); line-height: 1.2; margin: 0; }
  h1 { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 700; color: var(--red); margin-bottom: 1.25rem; letter-spacing: -.01em; }
  .wide h1 { font-size: 1.75rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
  h2 { font-size: 1.25rem; font-weight: 600; margin: 3rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
  h1 + h2, h1 + p + h2 { border-top: 0; padding-top: 0; }

  /* Public header: PIL lockup, with clear space on all sides. */
  .site { max-width: 42rem; margin: 0 auto; padding: 1.5rem 1rem 0; }
  .site .logo { display: inline-block; padding: .25rem 0; }
  .site .logo img { display: block; width: 180px; height: auto; }

  /* Front page only: the apply links sit beside the lockup, above the hero.
     Three short pills on desktop; on a phone they collapse to one pill that
     jumps to the three described cards. */
  .site.with-apply { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .apply-nav { display: flex; align-items: center; gap: .5rem; }
  .apply-label { font: 600 .9375rem/1.2 var(--heading); }
  .pill { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; background: var(--red-deep); color: var(--white); font: 600 .9375rem/1.2 var(--heading); text-decoration: none; }
  .pill:hover { background: var(--ink); }
  .pill-jump { display: none; }
  #apply { scroll-margin-top: 1rem; }
  @media (max-width: 600px) {
    .apply-label, .pill-form { display: none; }
    .pill-jump { display: inline-flex; font-size: 1.0625rem; padding: 0 1.5rem; }
  }

  /* Admin header: wordmark + app name, who is signed in, and the section nav. */
  .bar { border-bottom: 1px solid var(--line); background: var(--white); }
  .bar-in { max-width: 76rem; margin: 0 auto; padding: 1rem 1rem 0; }
  .bar-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
  .brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); padding: .25rem 0; }
  .brand img { display: block; width: 120px; height: auto; }
  .brand span { font: 600 1.05rem/1 var(--heading); padding-left: .75rem; border-left: 1px solid var(--line); }
  .bar .signed-in { margin: 0; font-size: .875rem; color: var(--slate); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
  .bar .signed-in strong { color: var(--ink); font-weight: 600; }
  .tabs { margin-top: .75rem; }
  .tabs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
  .tabs li { margin: 0; }
  .tabs li.sep { width: 1px; background: var(--line); margin: .6rem 0; }
  .tabs a { display: block; padding: .6rem 0 .7rem; color: var(--slate); text-decoration: none; font-size: .9375rem; font-weight: 600; border-bottom: 2px solid transparent; }
  .tabs a:hover { color: var(--ink); }
  .tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }

  /* Notices */
  .banner { background: var(--blush); color: var(--ink); padding: .75rem 1rem; border-radius: var(--radius); margin: 0 0 1.25rem; }
  .banner p:last-child { margin-bottom: 0; }
  body > .banner { border-radius: 0; margin: 0; padding: .5rem 1rem; text-align: center; font-size: .875rem; }
  .viewas-banner { position: sticky; top: 0; z-index: 5; margin: 0; padding: .5rem 1rem; background: var(--ink); color: var(--white); font-size: .875rem; text-align: center; }
  .viewas-banner button.small { margin-left: .5rem; background: transparent; color: var(--white); border-color: var(--white); }
  .err { color: var(--red-deep); font-weight: 600; font-size: .9375rem; margin: .25rem 0; }
  p.err { margin-bottom: 1rem; }

  /* Form fields */
  label { display: block; font-weight: 600; margin-top: 1.75rem; margin-bottom: .35rem; }
  fieldset { border: 0; padding: 0; margin: 1.75rem 0 0; min-width: 0; }
  legend { font-weight: 600; padding: 0; margin-bottom: .35rem; }
  fieldset > .help { display: block; margin-bottom: .5rem; }
  .help { font-weight: 400; color: var(--slate); font-size: .875rem; }
  label > .help { font-size: .875rem; }
  label + .help, label + .help + .help { display: block; margin: -.15rem 0 .5rem; }
  .help.words { display: block; margin-bottom: .5rem; }
  .wc { font-variant-numeric: tabular-nums; }
  .wc.over { color: var(--red-deep); font-weight: 600; }
  input[type=text], input[type=email], input[type=url], input[type=number], input[type=date], input[type=time], input[type=datetime-local], select, textarea {
    display: block; width: 100%; min-height: 2.75rem; padding: .55rem .75rem; font: inherit; color: var(--ink);
    background: var(--white); border: 1px solid var(--field); border-radius: var(--radius-sm); }
  input:hover, select:hover, textarea:hover { border-color: var(--ink); }
  input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ink); }
  .err + input, .err + select, .err + textarea { border-color: var(--red-deep); border-width: 2px; }
  textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
  select { cursor: pointer; }
  /* A label wrapping its own control (interviews page) */
  label > input, label > select { margin-top: .35rem; font-weight: 400; }

  /* Checkboxes: whole row is the target. */
  .opt { display: flex; align-items: flex-start; gap: .65rem; font-weight: 400; margin: 0; padding: .45rem .6rem; border-radius: var(--radius-sm); cursor: pointer; }
  .opt:hover { background: var(--mist); }
  .opt input { flex: none; width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; accent-color: var(--red-deep); cursor: pointer; }
  .opt.confirm { display: block; position: relative; margin-top: 1.75rem; padding: 1rem 1rem 1rem 2.85rem; background: var(--blush); border-radius: var(--radius); }
  .opt.confirm input { position: absolute; left: 1rem; top: 1.1rem; margin: 0; }
  .opt.confirm:hover { background: var(--blush); }

  /* Buttons: Deep Red for the one main action, outlined for everything else. */
  button { margin-top: 1.75rem; min-height: 2.75rem; padding: .6rem 1.25rem; font: 600 1rem/1.2 var(--heading); color: var(--ink);
    background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--radius); cursor: pointer; }
  button:hover { background: var(--mist); }
  button.primary { background: var(--red-deep); color: var(--white); border-color: var(--red-deep); }
  button.primary:hover { background: #A81117; border-color: #A81117; }
  button.secondary { background: var(--white); color: var(--ink); border-color: var(--ink); }
  button.small { margin: 0; min-height: 0; padding: .3rem .7rem; font: 600 .8125rem/1.2 var(--body); border-width: 1px; border-radius: var(--radius-sm); }
  .actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 2rem; }
  .actions button { margin-top: 0; }
  form.inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 .6rem .25rem 0; }
  form.inline select { display: inline-block; width: auto; min-height: 2rem; padding: .25rem .5rem; font-size: .875rem; }
  .viewas-menu label { display: inline; font-weight: 400; margin: 0; }
  .viewas-menu select { min-height: 1.9rem; }

  /* Home page: one card per form. The whole card is the link target. */
  ul.choices { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1rem; }
  /* Front-page story: hero photo, tech bono definition, faces, album. */
  .hero { margin: 0 0 2rem; }
  .hero img, .album img, .faces img { display: block; width: 100%; object-fit: cover; border-radius: var(--radius-sm); }
  .hero img { aspect-ratio: 16 / 9; border-radius: var(--radius); }
  .story { margin: 3rem 0; }
  .story > h2:first-child { margin-top: 0; }
  .dict { background: var(--red-deep); color: var(--white); border-radius: var(--radius); padding: 1.5rem 1.5rem 1rem; margin: 1rem 0; }
  .dict .word { font: 700 2.5rem/1 var(--heading); margin: 0 0 .75rem; }
  .dict .pron { font: 400 1.1rem var(--body); opacity: .9; }
  .dict .def { font: 600 1.25rem/1.35 var(--heading); margin: 0 0 .75rem; }
  .dict .help { color: var(--white); opacity: .85; }
  .mission { font: 600 1.1rem/1.4 var(--heading); border-left: 4px solid var(--red); padding-left: 1rem; }
  .faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; margin-top: 1rem; }
  .faces figure, .album figure { margin: 0; }
  .faces img { aspect-ratio: 1; }
  .faces figcaption { font: 600 .875rem var(--heading); text-align: center; margin-top: .35rem; }
  .album { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 2rem 0 3rem; }
  .album img { aspect-ratio: 1; }
  .album figure:first-child { grid-column: span 2; grid-row: span 2; }
  @media (max-width: 600px) {
    .faces { grid-template-columns: repeat(3, 1fr); }
    .dict .word { font-size: 2rem; }
  }
  ul.choices li { position: relative; margin: 0; padding: 1.25rem 1.25rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
  ul.choices li:hover { border-color: var(--ink); }
  ul.choices a { font: 600 1.2rem/1.3 var(--heading); text-decoration: none; }
  ul.choices a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
  ul.choices li:hover a { text-decoration: underline; }
  .who { margin: .35rem 0 0; }

  /* Reader view */
  .answer { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--mist); padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: .25rem; }
  span.answer { display: block; margin-top: .35rem; }

  /* Tables */
  table { border-collapse: collapse; width: 100%; font-size: .9375rem; font-variant-numeric: tabular-nums; margin: 1rem 0 1.5rem; }
  th { text-align: left; font-weight: 600; font-size: .8125rem; color: var(--slate); padding: .5rem .75rem; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
  th a { color: inherit; }
  td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
  tbody tr:hover { background: var(--mist); }
  td input, td select { min-height: 2.25rem; }

  /* Feedback widget. A border instead of a shadow (no shadows in the brand). */
  .fb { position: fixed; right: 1rem; bottom: 1rem; z-index: 1000; max-width: min(22rem, calc(100vw - 2rem)); }
  .fb summary { list-style: none; cursor: pointer; background: var(--ink); color: var(--white); padding: .5rem 1rem; border-radius: var(--radius); font: 600 .875rem/1.2 var(--heading); text-align: right; margin-left: auto; width: max-content; }
  .fb summary:hover { background: #000; }
  .fb summary::-webkit-details-marker { display: none; }
  .fb-close { display: none; margin-left: .6rem; font-size: 1.2rem; line-height: 1; }
  .fb[open] .fb-close { display: inline; }
  .fb:not([open]) .fb-form { display: none; }
  .fb-form { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: .25rem 1rem 1rem; margin-top: .5rem; max-height: calc(100vh - 6rem); overflow: auto; }
  .fb-form label { margin-top: 1rem; }
  .fb-form textarea { min-height: 5rem; }
  .fb-form button { margin-top: 1rem; }
  .fb-result { margin: .5rem 0 0; font-size: .875rem; }
  .fb-form .cf-turnstile { margin-top: .75rem; }

  @media (max-width: 600px) {
    .page { padding-top: 1.5rem; }
    .actions button { width: 100%; }
    .fb { position: static; max-width: none; margin: 0 1rem 2rem; }
    .fb summary { margin-left: 0; }
    .brand span { display: none; }
    table { display: block; overflow-x: auto; }
  }
