/* Project home */
.home-top { padding-top: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 40px; }
.home-top__status { grid-column: 1 / span 7; gap: 28px; }
.home-top__aside { grid-column: 9 / span 4; align-self: start; margin-top: 6px; }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

.ask-card { background: var(--red-wash); border-top: 3px solid var(--red); padding: 24px 28px 28px; }
.ask-card__item { padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.ask-card__item + .ask-card__item { margin-top: 18px; border-top: 1px solid rgba(176, 37, 29, 0.15); }
.ask-card__item .button { margin-top: 6px; }
.ask-card__title { font-family: var(--serif); font-size: 23px; line-height: 1.2; }

.calm-card .section-label { margin-bottom: 14px; }
.calm-card__body { padding: 20px 0; border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.calm-card__title { font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.calm-card__next { padding: 16px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.calm-card__next-title { font-size: 15px; font-weight: 500; }

@media (max-width: 900px) {
  /* Everything spans the full width here, so the 12 columns need no gaps.
     With them, eleven 40px gaps alone are wider than a phone. */
  .home-top { column-gap: 0; }
  .home-top__status, .home-top__aside { grid-column: 1 / -1; }
}

.progress { margin-top: 128px; display: flex; flex-direction: column; gap: 28px; }
.progress__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; }
.progress__title { display: flex; align-items: baseline; gap: 14px; font-weight: 400; }
.progress__label { font-size: 15px; color: var(--ink-soft); }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 8px; }
.strip__item { display: flex; flex-direction: column; gap: 8px; }
.strip__label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-faint); }
.strip__label.alert-text { color: var(--red-text); font-weight: 400; }
.strip__title { font-size: 15px; line-height: 1.4; }

.feedback-prompt { margin-top: 96px; padding: 36px 40px; border-radius: 24px; background: var(--paper-deep); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.feedback-prompt__text { display: flex; align-items: center; gap: 20px; flex: 1 1 420px; min-width: 260px; }
.feedback-prompt__title { font-family: var(--serif); font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.face-stack { display: flex; flex: none; }
.face-stack .avatar { border: 3px solid var(--paper-deep); }
.face-stack .avatar + .avatar { margin-left: -14px; }
.face-stack--small { align-items: center; }
.face-stack--small .avatar { width: 32px; height: 32px; font-size: 11px; border: 2px solid var(--paper); }
.face-stack--small .avatar + .avatar { margin-left: -8px; }

.two-up { margin-top: 128px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 56px 72px; }
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.activity { display: grid; grid-template-columns: 64px 18px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.activity__mark { margin-top: 6px; width: 9px; height: 9px; border-radius: 2px; }
.activity__mark--completed { border-radius: 999px; background: var(--red); }
.activity__mark--approved { background: var(--ink); }
.activity__mark--moved { border: 1.5px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.activity__text { font-size: 15px; }
.quote { margin-top: 6px; padding-left: 14px; border-left: 2px solid var(--line); font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--ink-soft); }
.team-note { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.team-note__body { font-size: 15px; line-height: 1.5; }
.empty-note { padding-top: 18px; font-size: 14px; color: var(--ink-soft); }

.links { margin-top: 128px; }
.links__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 40px; margin-top: 8px; }
.link-tile { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.link-tile__icon { width: 20px; height: 20px; flex: none; object-fit: contain; color: var(--ink); }
.link-tile__text { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.link-tile__label { font-size: 14px; font-weight: 500; }
.link-tile__detail { font-size: 13px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-tile__arrow { font-size: 13px; color: var(--ink-faint); }

.three-up { margin-top: 128px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 56px; }
.three-up > section { padding-top: 20px; border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: 20px; }
.stat { display: flex; align-items: baseline; gap: 10px; }
.stat__number { font-family: var(--serif); font-size: 56px; line-height: 1; letter-spacing: -0.02em; }
.stat__label { font-size: 14px; color: var(--ink-faint); }
.section .stat__number { font-size: 40px; }
.value-bars { display: flex; align-items: flex-end; gap: 6px; height: 28px; }
.value-bar { width: 6px; height: calc(var(--score) * 25%); border-radius: 3px; background: var(--ink); }
.value-bar--feedback { background: #a39a95; }
.value-bar--low { background: var(--red); }
.value-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; }
.value-key > span { display: inline-flex; align-items: center; gap: 6px; }
.value-key__swatch { width: 6px; height: 10px; border-radius: 2px; background: var(--ink); }
.value-key__swatch--feedback { background: #a39a95; }
.value-bars .tiny { margin-left: 10px; }
/* Your team. Rows share one grid, so names line up however many faces are
   beside them, and a single rule sits between each row. */
.team-list { list-style: none; margin: 0; padding: 0; }
.team-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); line-height: 1.35; }
.team-row:first-child { padding-top: 4px; }
.team-row:last-child { border-bottom: 0; padding-bottom: 0; }
.team-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 1px; }
.team-row__name { font-size: 14px; font-weight: 500; }
.team-row__faces { display: flex; flex-wrap: wrap; margin-top: 10px; }
.team-row__faces .avatar { border: 2px solid var(--paper); }
.team-row__faces .avatar + .avatar { margin-left: -6px; }
.avatar--count { background: var(--paper-deep); color: var(--ink); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.kv-list { font-size: 14px; }
.kv { display: flex; justify-content: space-between; padding: 12px 0; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv > :first-child { color: var(--ink-soft); }
.value-bar--empty { --score: 1.6; background: var(--line); }
.value-empty { font-family: var(--serif); font-size: 22px; line-height: 1.3; }

/* Under the headline: who leads the work, so the top of the page has a person behind it. */
.home-byline { margin: 4px 0 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.home-byline__name { color: var(--ink); font-weight: 500; }

/* Contracts, a folder of the client's agreements and our W-9 */
.contracts__summary { cursor: pointer; list-style: none; }
.contracts__summary::-webkit-details-marker { display: none; }
.contracts__chevron { width: 8px; height: 8px; border-right: 1.5px solid var(--ink-faint); border-bottom: 1.5px solid var(--ink-faint); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.15s ease; }
.contracts[open] .contracts__chevron { transform: rotate(225deg) translate(-2px, -2px); }
.contracts--tile[open] { grid-column: 1 / -1; }
.contracts__list { list-style: none; margin: 0; padding: 0 0 0 34px; }
.contracts__item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contracts__text { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.contracts__name { font-size: 14px; font-weight: 500; }
.home-byline__link { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.home-byline__link:hover .home-byline__team, .home-byline__link:focus-visible .home-byline__team { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
#team { scroll-margin-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Names that open someone's bio on thoughtbot.com */
a.team-row__name, a.crew__name { color: inherit; text-decoration: none; }
a.team-row__name:hover, a.crew__name:hover, a.team-row__name:focus-visible, a.crew__name:focus-visible { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
