/* Step 1: readable layouts and a reliable contact entry at every width. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 104px; }
body { min-width: 0; }
img { max-width: 100%; }
.page { min-width: 0; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 96px; padding: 12px 44px;
  background: #fff; color: var(--ink); border-bottom: 1px solid var(--line);
}
.site-brand { display: flex; align-items: center; gap: 24px; min-width: 0; text-decoration: none; color: var(--ink); }
.site-brand:hover { color: var(--blue); }
.site-brand img { display: block; width: 215px; height: auto; flex: 0 0 auto; }
.site-brand-label { font-size: 12px; font-weight: 500; letter-spacing: .08em; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.header-phone { color: var(--blue); font-family:var(--en); font-weight:600; font-size: 13px; white-space: nowrap; text-decoration: none; }
.header-phone:hover { color: var(--blue); text-decoration: underline; }
.header-contact {
  display: inline-flex; justify-content: center; align-items: center; gap: 16px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px;
  background: var(--blue); color: #fff; font-size: 14px; font-weight: 700;
  line-height: 1.3; text-decoration: none; white-space: nowrap;
  transition: background .2s ease;
}
.header-contact:hover { background: var(--deep); color: #fff; }
.header-contact-short { display: none; }
.site-header a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.stats-grid > *, .people-grid > *, .pride-flex > *, .jobs-flex > *,
.people-quotes > *, .jobs-grid > *, .frow > *, .purpose { min-width: 0; }
.people-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.people-quotes, .jobs-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important; }
.jobs-grid > div > div:first-child { flex-wrap: wrap; row-gap: 10px !important; }
.jobs-grid > div > div:first-child > div:first-child { flex-basis: 100%; }
.jobs-grid > div > div:first-child > div:last-child { white-space: nowrap; }
.jobs-grid span { display: inline-block; white-space: nowrap; }
.job-featured > div:first-child { flex-wrap: wrap; }
.job-featured > div:first-child > div:first-child { flex: 0 0 auto; }
.frow { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.finput { min-width: 0; font-size: 16px; min-height: 52px; }
.fgroup { min-width: 0; }
.site-footer { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .site-brand-label { display: none; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 82px; }
  .site-header { height: 74px; min-height: 74px; padding: 10px 20px; gap: 12px; }
  .site-brand img { width: 176px; }
  .header-actions { gap: 0; }
  .header-phone, .header-contact-full { display: none; }
  .header-contact-short { display: inline; }
  .header-contact { width: 128px; min-height: 44px; padding: 10px 14px; gap: 18px; }
  .content-section, .pride-section, .jobs-section { padding: 56px 20px !important; }
  .faq-section { padding: 0 20px 56px !important; }
  .en-display { font-size: 32px; letter-spacing: .03em; line-height: 1.15; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; margin-top: 32px; }
  .stats-grid > div { padding-top: 16px !important; }
  .stats-grid [data-count] { font-size: 56px !important; }
  .stats-grid [data-count] + span { font-size: 16px !important; margin-left: 4px !important; }
  .stats-grid > div > div:nth-child(2) { white-space: nowrap; }
  .pride-flex { flex-direction: column; align-items: stretch; gap: 28px; }
  .pride-photo, .pride-text { flex: 0 1 auto; width: 100%; max-width: 100%; }
  .pride-photo img { transform: none !important; border-width: 6px !important; }
  .pride-text .jp-display { font-size: 26px !important; line-height: 1.6 !important; }
  .pride-text > div:nth-child(3) { max-width: 100% !important; font-size: 16px !important; }
  .people-grid { grid-template-columns: minmax(0, 1fr); margin-top: 28px; gap: 24px; }
  .pmeta { padding: 20px; }
  .pmeta > div:last-child { font-size: 14px !important; }
  .people-quotes, .jobs-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .people-quotes { gap: 24px !important; }
  .jobs-flex { flex-direction: column; gap: 24px; margin-top: 28px !important; }
  .job-featured, .job-list { flex: 0 1 auto; width: 100%; }
  .job-featured { padding: 24px 20px !important; }
  .job-featured > div:first-child > div:last-child { font-size: 22px !important; }
  .jobs-grid > div { padding: 24px 20px !important; }
  .jobs-grid > div > div:last-child { font-size: 15px !important; line-height: 1.8; }
  .contact-section { padding: 56px 20px !important; }
  .contact-intro .jp-display { font-size: 30px !important; line-height: 1.5 !important; }
  #contactForm { width: 100%; max-width: 100%; margin-top: 28px !important; padding: 24px 20px !important; border-radius: 12px !important; }
  #contactForm > .fgroup:first-child { margin-top: 0; }
  .frow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flabel { font-size: 14px; }
  .finput { padding: 12px; }
  .purpose-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .purpose:first-child { grid-column: 1 / -1; }
  .purpose span { min-height: 48px; padding: 12px 6px; border-radius: 8px; font-size: 14px; }
  .fhint { font-size: 13px; }
  #submitBtn { min-height: 52px; border-radius: 8px !important; }
  .site-footer { padding: 28px 20px !important; gap: 14px !important; }
  .site-footer > div { max-width: 100%; }
  .site-footer > div:last-child { font-size: 13px !important; }
}

@media (max-width: 359px) {
  .site-header { padding-inline:16px; height:68px; min-height:68px; }
  .site-brand img { width: 145px; }
  .header-contact { width: 100px; gap: 10px; }
  .stats-grid { column-gap: 16px; }
  .stats-grid [data-count] { font-size: 48px !important; }
  .en-display { font-size: 28px; }
}

/* Connected job details. */
.job-featured, .jobs-grid > div { display: flex; flex-direction: column; }
.job-detail-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; margin-top: 20px; padding: 12px 0 0;
  border-top: 1px solid #cad8e3; font-size: 14px; line-height: 1.7;
  font-weight: 700; text-decoration: none; color: #005ba8;
}
.jobs-grid .job-detail-link { margin-top: auto; }
.jobs-grid > div > div:nth-child(2) { margin-bottom: 20px; }
.part-time-link { max-width: 390px; }
.job-detail-link:focus-visible { outline: 3px solid #005ba8; outline-offset: 5px; }
