/* About page (SPEC-051).
   Every block reuses a component the site already styles in style.css:
   .team .member for the roles, .values .box for how the two fit,
   .counts .count-box for the figures (the front page's own counters).
   This file only adds what those components do not cover, using the
   site's values: 4 px corners at most, the 0 0 30px rgba(1, 41, 112, 0.08)
   shadow, #013289 headings, #444444 text, #f6f9ff panels. No new colours,
   borders or radii. */

.about-page {
  padding-top: 70px; /* clears the fixed header, as contact.html does */
}

.about-intro .about-lead {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
}

/* Roles: the first paragraph under each name is the role, then the biography */
.about-page .team .member-info .role-what {
  font-weight: 600;
  margin-bottom: 10px;
}

/* How the two fit: .values .box, with a font icon in place of an image */
.values .box .fit-icon {
  display: block;
  font-size: 42px;
  line-height: 1;
  margin-bottom: 20px;
  color: #1a5fd6; /* the count-box default; siblings use the seadev-icon-* classes */
}

/* Figures: four across only from 1400 px (col-xxl-3), two across below, because
   the count-box text column is too narrow for the definitions and the FTE
   calculation at four across on smaller screens. */
/* Figures: the front page's .count-box, top-aligned so the numbers sit on one
   line whatever the length of the text beneath them */
.counts .about-count {
  align-items: flex-start;
  height: 100%;
}

.counts .about-count i {
  line-height: 1;
}

/* The text column fills the card, so the period and source line can sit at
   the bottom of every card on the same line */
.counts .about-count > div {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.counts .count-box .count-definition {
  margin-top: 10px;
  font-family: "Open Sans", sans-serif;
  color: #444444;
  line-height: 1.6;
}

.counts .count-box .count-meta {
  margin-top: auto;
  padding-top: 10px;
  min-height: calc(3em + 10px); /* two lines, so single-line entries start level with two-line ones */
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #6c757d;
}

/* Calculations: the FTE model in its card and the team equivalent in the
   delivery panel. Labels left, figures right, result on a divider. The
   #f6f9ff panel colour, 4 px corners and Poppins the site already uses; the
   result in the counters' #0b198f. */
.calc-table {
  width: 100%;
  border-radius: 4px;
  background: #f6f9ff;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  color: #444444;
  border-collapse: separate;
  border-spacing: 0;
}

.calc-table th,
.calc-table td {
  padding: 3px 10px;
  font-weight: 400;
}

.calc-table tr:first-child > * {
  padding-top: 10px;
}

.calc-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.calc-table .formula-result > * {
  padding-top: 6px;
  padding-bottom: 10px;
  border-top: 1px solid #e1ecff; /* the site's divider colour */
  color: #0b198f;
  font-weight: 600;
}

.about-deliver .calc-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6c757d;
}

/* The team formula sits on the white of the panel, not the panel colour */
.about-deliver .team-formula {
  margin-top: 20px;
  background: #fff;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.08);
  font-size: 14px;
}

.about-deliver .team-formula caption {
  caption-side: top;
  padding: 12px 10px 4px;
  font-weight: 600;
  color: #013289;
  background: #fff;
}

/* What two people deliver: the #f6f9ff panel the site uses for about content,
   as the bottom row of the Our numbers grid. No max-width, so its edges
   line up with the four figures; 24 px above, the grid's own gutter (gy-4);
   30 px padding, the count-box's own. */
.about-deliver {
  margin-top: 24px;
  padding: 30px;
  background-color: #f6f9ff;
}

.about-deliver h3 {
  font-size: 24px;
  font-weight: 700;
  color: #013289;
  margin-bottom: 15px;
}

.about-deliver-text {
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}

.about-cocomo {
  width: 100%;
  padding: 24px;
  background: #fff;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.08);
}

.about-cocomo h4 {
  font-size: 18px;
  font-weight: 700;
  color: #013289;
  margin-bottom: 8px;
}

.about-cocomo p {
  margin: 0;
  line-height: 1.6;
}

.about-method {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e1ecff; /* the site's divider colour */
  font-size: 14px;
  color: #6c757d;
}

/* Factor explanations (SPEC-072). The trigger: an info icon beside a factor,
   in the site's link blue. The modals share the journey modal's look
   (journey.css); these rules only set their headings, formula and tables. */
.factor-info {
  /* a larger touch target, offset so the icon stays in place (SPEC-107) */
  margin: -10px -6px -10px -2px;
  padding: 10px 8px;
  border: 0;
  background: none;
  color: #4154f1;
  line-height: 1;
  vertical-align: baseline;
}

.factor-info:hover {
  color: #012970;
}

.factor-info:focus-visible {
  outline: 2px solid #4154f1;
  outline-offset: 2px;
  border-radius: 2px;
}

.factor-modal .modal-body h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 17px;
  font-weight: 700;
  color: #013289;
}

.factor-modal .factor-knowledge {
  padding-left: 12px;
  border-left: 3px solid #4154f1;
  color: #012970;
}

.factor-modal .factor-steps {
  padding-left: 1.2rem;
}

.factor-modal .factor-steps li {
  margin-bottom: 0.5rem;
}

.factor-modal .factor-formula {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 4px;
  background: #f6f9ff;
  font-family: "Poppins", sans-serif;
  color: #012970;
}

.factor-modal .factor-table {
  margin-bottom: 1rem;
}

.factor-modal .factor-table tr:last-child > * {
  padding-bottom: 10px;
}

.factor-modal .factor-table th[scope="col"] {
  text-align: right;
  white-space: nowrap;
}

.factor-modal .factor-value {
  font-weight: 600;
  color: #0b198f;
}

.factor-modal .factor-published {
  margin: 1.5rem 0 0;
  padding-top: 12px;
  border-top: 1px solid #e1ecff;
  font-size: 14px;
  color: #6c757d;
}

@media (max-width: 575px) {
  .about-deliver {
    padding: 20px;
  }

  /* Room for the info buttons at phone width: narrower cell padding */
  .about-deliver .team-formula th,
  .about-deliver .team-formula td {
    padding-left: 6px;
    padding-right: 6px;
  }

  .factor-modal .modal-body {
    padding: 1.25rem;
  }

  .factor-modal .factor-table th[scope="col"] {
    white-space: normal;
  }
}

/* Tools: provider marks. Each mark keeps at least 0.55x its width clear on
   every side, OpenAI's rule: 50 px beside a 40 px mark, 22 px below. */
.provider-marks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.provider-marks li {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}

.provider-marks img {
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
}

.provider-note {
  text-align: center;
  font-size: 14px;
  color: #6c757d;
  margin-top: 24px;
}
