/* Article template: quiet reading body below the shared opening (page.css). */

/* Reading progress: fills as the story body is read (scroll.js). */
.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 7;
  height: 4px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Lead visual */
.article-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8%;
  align-items: center;
  padding: clamp(48px, 7vw, 110px) 5%;
  background: var(--stone);
}
.article-question {
  background: white;
  padding: clamp(22px, 2.4vw, 36px);
  max-width: 560px;
}
.article-question > p {
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin: 0 0 26px;
}
.article-question > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  padding: 16px 18px;
  background: #edf0f7;
  font-size: 16px;
  font-weight: 600;
}
.article-question .bold-arrow {
  width: 18px;
  height: 18px;
  color: var(--blue);
}
.article-outcome > p:first-child,
.article-outcome > strong {
  display: block;
  margin: 0;
  font-size: clamp(30px, 3.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}
.article-outcome > p:nth-child(2) {
  margin: 30px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}
.article-outcome > strong {
  color: var(--blue);
}
.article-lead-placeholder {
  display: flex;
  align-items: end;
  aspect-ratio: 2.6;
  padding: 24px 5%;
  background: #d4d5d3;
  font-size: 13px;
}

/* Reading body */
.article-body {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 760px);
  column-gap: clamp(40px, 9vw, 150px);
  padding: clamp(70px, 8vw, 120px) 5% 110px;
}
.article-body-single .article-copy {
  grid-column: 2;
}
.article-contents {
  position: sticky;
  top: calc(40px + var(--header-offset, 0px));
  transition: top 320ms cubic-bezier(0.32, 0.72, 0, 1);
  align-self: start;
}
.article-contents > p {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 800;
}
.article-contents nav {
  display: grid;
}
.article-contents a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 6px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
  transition: color 180ms ease;
}
.article-contents a span {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #9aa1ab;
  transition: color 180ms ease;
}
.article-contents a[aria-current] {
  color: var(--ink);
}
.article-contents a[aria-current] span {
  color: var(--blue);
}
.article-copy {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.7;
}
.article-copy p {
  margin: 0 0 24px;
  max-width: 64ch;
}
.article-copy strong {
  font-weight: 800;
}
.article-copy section {
  padding-top: 80px;
  scroll-margin-top: 10px;
}
.article-copy h2 {
  max-width: 18ch;
  margin: 0 0 28px;
  font-size: clamp(32px, 3.2vw, 50px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
  text-wrap: balance;
}
.article-copy ul,
.article-copy ol {
  margin: 0 0 28px;
  padding-left: 1.2em;
}
.article-copy li {
  margin: 8px 0;
  padding-left: 6px;
}
.article-copy li::marker {
  color: var(--blue);
  font-weight: 800;
}
.article-copy figure {
  margin: 48px 0;
}
.article-copy figure img {
  display: block;
  width: 100%;
  height: auto;
  background: white;
}
.article-copy figcaption {
  max-width: 60ch;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.article-status {
  margin-bottom: 2rem;
  padding: 22px 24px;
  background: var(--stone);
  font-size: 16px;
  line-height: 1.6;
}

.article-status p {
  margin: 0.75rem 0 0;
}
.article-pullquote {
  margin: 3rem 0;
  padding: 2rem 0;
  border-block: 2px solid var(--ink);
  color: var(--blue);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

/* Proposal story lead: an annotated proposal page beside its key. The page is
   drawn at a 600px design size in em and scales with its column. */
.proposal-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 8%;
  align-items: center;
  margin: 0;
  padding: clamp(48px, 7vw, 110px) 5%;
  background: var(--stone);
}
.proposal-sheet {
  max-width: 600px;
  container-type: inline-size;
}
.sheet-page {
  padding: 3em 3.7em 3.3em;
  border-radius: 4px;
  background: white;
  box-shadow:
    0 30px 70px #07112420,
    0 3px 10px #0711240f;
  font-family: Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: calc(100cqi / 43);
  line-height: 1.3;
  color: #222;
}
.sheet-page i {
  display: block;
  height: 0.64em;
  border-radius: 1em;
  background: #e4e6ea;
}
.sheet-masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.3em;
  border-bottom: 1px solid #e5e5e5;
  font-size: 0.93em;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.sheet-masthead i {
  width: 8.6em;
}
.sheet-section {
  position: relative;
  margin-top: 1.9em;
}
.sheet-heading {
  margin: 0 0 0.9em;
  font-size: 1.64em;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.sheet-mark {
  position: absolute;
  top: 0.35em;
  right: -2.6em;
  font-family: Manrope, sans-serif;
  font-size: max(1em, 11px);
  font-weight: 800;
  color: var(--blue);
}
.sheet-lines {
  display: grid;
  gap: 0.78em;
}
/* Written for this client: a blue wash and rule, as the tool tags AI text. */
.sheet-section.is-drafted {
  margin-left: -1.3em;
  padding: 1.15em 1.3em 1.3em 1.07em;
  border-left: 0.21em solid var(--blue);
  background: #234bff14;
}
.is-drafted + .is-drafted {
  margin-top: 0.4em;
}
.is-drafted .sheet-mark {
  top: 1.5em;
}
.is-drafted i {
  background: #c4cdf6;
}
.sheet-map {
  display: grid;
  gap: 0.9em;
}
.sheet-map > i {
  width: 30%;
  height: 1.9em;
}
.sheet-map > span {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8em;
}
.sheet-map > span i {
  height: 1.6em;
}
.sheet-map i {
  border: 1px solid #aebcf4;
  border-radius: 0.2em;
  background: white;
}
.sheet-table {
  font-size: 0.86em;
}
.sheet-table > div {
  display: flex;
  justify-content: space-between;
  padding: 0.75em 1em;
  background: #222;
  color: white;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.sheet-table p {
  display: grid;
  grid-template-columns: 1fr 5.8em 2em;
  gap: 1.15em;
  align-items: center;
  margin: 0;
  padding: 0.85em 1em;
  border-bottom: 1px solid #ececec;
}
.sheet-table p i {
  height: 0.75em;
}
.sheet-table svg {
  width: 2em;
  height: 2em;
  padding: 0.45em;
  border-radius: 50%;
  background: var(--blue);
  fill: none;
  stroke: white;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.is-terms .sheet-lines {
  gap: 0.57em;
}
.is-terms i {
  height: 0.43em;
  background: #d6d9df;
}
.sheet-signers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6em;
}
.sheet-signers svg {
  display: block;
  width: 10.7em;
  height: 3.3em;
  margin-bottom: -0.3em;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sheet-signers small {
  display: block;
  padding-top: 0.6em;
  border-top: 1px solid #222;
  font-size: 0.79em;
  letter-spacing: 0.08em;
  color: #6b6b6b;
}
.proposal-lead figcaption > strong {
  display: block;
  font-size: clamp(30px, 3.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
  text-wrap: balance;
}
.proposal-lead ol {
  display: grid;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.proposal-lead li {
  display: grid;
  grid-template-columns: 42px 1fr;
  padding: 14px 0;
  border-top: 1px solid #07112426;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.proposal-lead li > span {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
}
.proposal-lead li > p {
  margin: 0;
}
.proposal-lead li b {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

/* Signing statuses, in order, as the tool names them. */
.article-copy .signing-steps {
  margin: 44px 0 52px;
}
.signing-steps ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.article-copy .signing-steps li {
  margin: 0;
  padding: 16px 0 0;
  border-top: 2px solid var(--ink);
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.signing-steps li > span {
  display: flex;
  gap: 9px;
  margin-bottom: 8px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}
.signing-steps li > span::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 0.3em;
  border: 2px solid var(--blue);
  border-radius: 50%;
}
.signing-steps li > .is-done::before {
  background: var(--blue);
}

@media (max-width: 900px) {
  .proposal-lead {
    gap: 6%;
  }
}
@media (max-width: 700px) {
  .proposal-lead {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 6%;
  }
  .proposal-lead figcaption > strong {
    font-size: 26px;
  }
  .proposal-lead ol {
    margin-top: 18px;
  }
  /* Run-in labels keep the key short on phones. */
  .proposal-lead li {
    grid-template-columns: 32px 1fr;
    padding: 10px 0;
    font-size: 15px;
    line-height: 1.45;
  }
  .proposal-lead li b {
    display: inline;
    font-size: inherit;
  }
  .article-copy .signing-steps {
    margin: 36px 0 44px;
  }
  .signing-steps ol {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .article-copy .signing-steps figcaption {
    padding: 0;
  }
}

/* End of article */
.article-end-back {
  display: grid;
  gap: 4px;
}
.article-end-back > span:first-child {
  font-weight: 700;
}
.article-end {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-top: 90px;
  padding-top: 40px;
  border-top: 2px solid var(--ink);
}
.article-end p {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
}
.article-end-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.1;
  color: var(--blue);
  transition: color 180ms ease;
}
.article-end-cta .bold-arrow {
  width: 0.6em;
  height: 0.6em;
  transition: transform 250ms cubic-bezier(0.23, 1, 0.32, 1);
}
.article-end-back {
  flex-shrink: 0;
  text-align: right;
  font-size: 15px;
}

@media (hover: hover) {
  .article-contents a:hover {
    color: var(--blue);
  }
  .article-end-cta:hover {
    color: var(--ink);
  }
  .article-end-cta:hover .bold-arrow {
    transform: translate(5px, -5px);
  }
  .article-end-back:hover > span:first-child {
    color: var(--blue);
  }
}

@media (max-width: 900px) {
  .article-body {
    display: block;
  }
  .article-contents {
    display: none;
  }
}
@media (max-width: 700px) {
  .article-lead {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 45px 6%;
  }
  .article-question > div {
    font-size: 14px;
    padding: 13px 14px;
  }
  .article-lead-placeholder {
    aspect-ratio: 1.4;
    padding: 17px 6%;
    font-size: 12px;
  }
  .article-body {
    padding: 50px 6% 70px;
  }
  .article-copy {
    font-size: 18px;
  }
  .article-copy section {
    padding-top: 60px;
  }
  .article-copy h2 {
    font-size: 32px;
  }
  .article-copy figure {
    margin: 36px -6%;
  }
  .article-copy figcaption {
    padding: 0 6%;
  }
  .article-end {
    flex-direction: column;
    align-items: start;
    margin-top: 60px;
  }
  .article-end-back {
    text-align: left;
  }
}
