/* Additions on top of site.css (the original Horizons stylesheet). */
[hidden] { display: none !important; }

/* Two-step "How it works" section */
.process-steps .step-link { margin-top: 14px; }
.step-note { margin-top: 28px; }
.step-note a { text-decoration: underline; text-underline-offset: 3px; }

/* Step 2 readable review list */
.review-list { margin: 10px 0 4px; display: grid; }
.review-row { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid #e3e8ee; font-size: 13px; }
.review-row dt { color: #697586; }
.review-row dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.review-meta .text-link { margin-left: auto; font-size: 11px; }
.review-meta strong { margin-left: 12px; }
.review-panel .consent-label { margin-top: 18px; }
.result-id .copy-btn { font-size: 10px; padding: 4px 8px; }

/* Step 2 loan type: tap buttons instead of a dropdown (iPhone picker fix) */
.loan-type-question { margin: 0; font-size: 13.2px; font-weight: 600; color: var(--ink); }
.loan-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.loan-type-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 12px 14px; background: #fff; border: 1px solid #c8d0da; border-radius: 2px; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.loan-type-option svg { flex: none; color: #697586; }
.loan-type-option:hover, .loan-type-option:focus-visible { border-color: var(--ink); }
.loan-type-option.is-selected { border-color: var(--ink); background: var(--paper); }
@media (max-width: 640px) { .loan-type-options { grid-template-columns: 1fr; } }

/* iPhone Safari zooms into any field under 16px; keep phone fields at 16px. */
@media (max-width: 820px) {
  .deal-paper input, .deal-paper select, .deal-paper textarea,
  .application-paper input, .application-paper select, .application-paper textarea { font-size: 16px !important; }
}

/* ---- Submit for Lending: easier to find (v3) ---- */
.desktop-nav .nav-submit { color: var(--ice) !important; border: 1px solid var(--ice); border-radius: 2px; padding: 11px 15px; font-weight: 700; white-space: nowrap; }
.desktop-nav .nav-submit:hover { background: rgba(196,219,237,.12); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-submit { display: none; }
@media (width<=800px) {
  .header-submit { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 13px; background: var(--ice); color: var(--ink); border-radius: 2px; font-size: 13px; font-weight: 700; white-space: nowrap; }
  .mobile-nav .button { justify-content: space-between; width: 100%; font-size: 14px; }
  .mobile-nav .button-outline { background: transparent; color: var(--paper); border-color: var(--silver); }
  .mobile-nav > a:not(.button) { display: flex; align-items: center; gap: 8px; color: #d1d6df; font-size: 15px; }
}
.hs-short { display: none; }
@media (width<=440px) { .hs-long { display: none; } .hs-short { display: inline; } .header-submit { font-size: 13px; padding: 9px 12px; } }

/* Home hero + apply page: shortcut for people already working with us */
.hero-submit, .skip-callout { display: grid; gap: 6px; margin-top: 26px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--ice); border-radius: 2px; color: #c0c9d5; font-size: 13.5px; line-height: 1.45; background: rgba(255,255,255,.03); }
.hero-submit strong, .skip-callout strong { display: inline-flex; align-items: center; gap: 8px; color: var(--ice); font-size: 14px; }
.hero-submit:hover, .skip-callout:hover { border-color: var(--ice); }
.skip-callout { margin: 0 0 28px; max-width: 420px; }

/* Funding page */
.deal-layout .deal-lede { color: var(--paper) !important; font-weight: 600; }
.deal-layout .deal-lede-sub { margin-top: 10px; }
.req-progress { color: var(--ink); font-weight: 700; }
@media (width<=800px) {
  /* Form first on phones: short heading, then the form, then the details. */
  .deal-layout { display: flex !important; flex-direction: column; gap: 0 !important; padding-top: 28px !important; }
  .deal-layout .application-intro { display: contents; }
  .deal-layout .application-intro > .eyebrow { order: 1; }
  .deal-layout .application-intro h1 { order: 2; font-size: 44px !important; margin: 12px 0 14px; line-height: 1.05; }
  .deal-layout .application-intro h1 br { display: none; }
  .deal-layout .deal-lede { order: 3; font-size: 16px !important; margin: 0; }
  .deal-layout .deal-lede-sub { order: 4; font-size: 15px !important; margin: 8px 0 22px; }
  .deal-layout .deal-paper { order: 5; }
  .deal-layout .application-expectations { order: 6; margin-top: 36px; }
  .deal-layout .security-note { order: 7; }
  .deal-layout .application-contact { order: 8; }
  .deal-paper { padding: 22px 18px !important; }
  .deal-paper .submit-button { width: 100%; justify-content: space-between; }
  .loan-type-option { min-height: 56px; font-size: 16px; }
}

/* Numbered "How this works" lists: same, wider space between number and text on every line */
.application-expectations p { gap: 0 !important; align-items: baseline; }
.application-expectations p span { flex: none; width: 2.6em; margin-right: 6px; font-variant-numeric: tabular-nums; }

/* Home "different projects" list (01-05): number column wide enough that the
   number never crowds the title, same spacing on all five rows. */
.program-number { font-variant-numeric: tabular-nums; white-space: nowrap; }
.program summary { grid-template-columns: 90px minmax(230px,1fr) minmax(240px,.95fr) 40px !important; gap: 24px !important; }
.program-details { padding-left: 114px !important; }
@media (width<=1100px) {
  .program summary { grid-template-columns: 80px 1fr 1fr 38px !important; }
  .program-details { padding-left: 104px !important; }
}
@media (width<=800px) {
  .program-number { font-size: 38px !important; }
  .program summary { grid-template-columns: 58px 1fr 35px !important; gap: 16px !important; }
  .program-details { padding: 0 10px 25px 74px !important; }
}

/* Link inside the "What happens next" list on Step 1 */
.application-expectations p .step-text { flex: 1 1 auto !important; min-width: 0; width: auto !important; margin: 0 !important; color: var(--silver); }
.inline-step-link { color: var(--ice); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; white-space: normal; }
.inline-step-link svg { display: inline-block; vertical-align: -2px; margin-left: 2px; }
.inline-step-link:hover { color: var(--paper); }
.step-star { color: var(--ice); font-weight: 700; margin-left: 2px; }
.application-expectations p.step-criteria { font-size: 14px !important; line-height: 1.6; margin-top: -4px; }
.application-expectations p.step-criteria > span:first-child { width: 2.6em; text-align: right; padding-right: 10px; margin-right: 6px; }
.application-expectations p.step-criteria .step-text { font-size: 14px !important; }

/* Who we are (home) */
.team { background: var(--paper); color: var(--ink); display: grid; grid-template-columns: .75fr 1.25fr; gap: 8vw; align-items: center; }
.team-photo { margin: 0 0 0 2vw; }
.team-photo img { display: block; width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; box-shadow: -13px 13px #cdd8e2; }
.team-photo figcaption { letter-spacing: .13em; margin-top: 25px; font-size: 10.8px; color: #526174; }
.team h2 { letter-spacing: -.02em; margin: 20px 0 22px; font-size: clamp(44px, 4.56vw, 68.4px); line-height: 1.05; }
.team h2 em { color: #647b92; }
.team-intro { color: #526174; font-size: 16.8px; line-height: 1.8; max-width: 560px; margin: 0 0 30px; }
.team-people { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; border-top: 1px solid #cbd2da; padding-top: 28px; }
.team-person h3 { font-family: Libre Caslon Display, Georgia, serif; font-size: 28px; font-weight: 400; line-height: 1.2; margin: 0; }
.team-role { letter-spacing: .15em; font-size: 11px; font-weight: 700; color: #647b92; margin: 6px 0 12px; }
.team-person p:not(.team-role) { color: #526174; font-size: 15.5px; line-height: 1.75; margin: 0; }
.team-links { display: flex; flex-wrap: wrap; gap: 8px 34px; margin-top: 10px; }
.team-links .text-link { margin-top: 26px; }
@media (width<=800px) {
  .team { grid-template-columns: 1fr; gap: 40px; }
  .team-photo { margin: 0 10px; max-width: 360px; }
  .team h2 { font-size: 44px; }
  .team-intro { font-size: 16px; }
  .team-people { grid-template-columns: 1fr; gap: 26px; }
}
@media (width<=1100px) and (width>800px) { .desktop-nav { gap: 18px; } }
.team-person-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.team-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #cbd2da; }
.team-person-head .team-role { margin: 6px 0 0; }

/* v10 (2026-12-02): "For lenders" link added. Keep the desktop menu on one line on mid-size screens. */
.desktop-nav a { white-space: nowrap; }
@media (width>800px) and (width<=1200px) {
  .desktop-nav a[href="/#process"], .desktop-nav a[href="/#about"] { display: none; }
}
