/* Shared Manuscript sheet structure parameterized for Round 3 readability & formatting options. */
.m-sheet {
  --tab-col: 144px;
  max-width: var(--sheet-w, 660px);
  margin: 0 auto;
  font-family: var(--f-body);
  font-size: var(--body-size, 13px);
  line-height: var(--body-lh, 1.68);
  letter-spacing: 0;
  font-optical-sizing: auto;
  font-variant-numeric: lining-nums;
  color: var(--ink-2);
  counter-reset: sec;
}

.m-head {
  text-align: center;
  padding-bottom: 16px;
}

.m-name {
  font-family: var(--f-display);
  font-size: var(--name-size, 56px);
  line-height: var(--name-lh, 1.02);
  font-weight: 600;
  letter-spacing: var(--name-track, -0.035em);
  text-wrap: balance;
  color: var(--ink-1);
}

.m-title {
  margin-top: 12px;
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.38;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.m-tag,
.m-facts,
.m-contact,
.m-h,
.m-meta,
.m-co-name,
.m-pat-no,
.m-skills dt,
.m-lang {
  font-feature-settings: var(--mono-features, "tnum" 1);
}

.m-tag {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.m-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 32px auto 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}

.m-fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1.35;
}

.m-fig dd {
  font-family: var(--f-display);
  font-size: var(--kpi-size, 25px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink-1);
}

.m-fig dt {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.35;
}

.m-contact {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}

.m-contact > * {
  display: inline;
}

.m-sec {
  padding-top: var(--sec-pt, 48px);
  counter-increment: sec;
}

.m-sec[data-sec="experience"] {
  padding-top: 24px;
}

.m-sec[data-sec="experience"] > .m-h {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
}

.m-h {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--h-mb, 16px);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.m-h::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 1px solid var(--rule);
}

.m-lede {
  font-family: var(--f-display);
  font-size: var(--lede-size, 17px);
  line-height: var(--lede-lh, 1.5);
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.m-lede .lede-claim {
  font-weight: 600;
}

.m-hl {
  margin-top: 16px;
}

.m-note {
  color: var(--ink-3);
  margin-bottom: 12px;
  text-wrap: pretty;
}

.m-lang {
  margin-top: 8px;
  margin-bottom: 0;
  font-family: var(--f-mono);
  font-size: 12px;
}

.m-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.m-meta {
  flex-shrink: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--f-mono);
  font-size: 12px;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink-3);
}

.m-co + .m-co {
  margin-top: var(--co-gap, 40px);
}

.m-co-name {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-1);
}

.m-co-row + .m-role {
  margin-top: 8px;
}

.m-role + .m-role {
  margin-top: var(--role-gap, 24px);
}

.m-role-t {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--f-display);
  font-size: var(--role-size, 17px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-1);
}

.m-scope {
  margin: 4px 0 12px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--f-display);
  font-size: var(--scope-size, 14px);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.m-list {
  margin-top: 8px;
  min-width: 0;
}

.m-list li {
  position: relative;
  padding-left: 16px;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.m-list li + li {
  margin-top: var(--li-gap, 8px);
}

.m-list li::before {
  content: var(--bullet-glyph, "›");
  position: absolute;
  left: 0;
  font-family: var(--f-mono);
  color: var(--ink-3);
}

.m-list .lead {
  font-family: var(--f-lead, var(--f-mono));
  font-weight: 600;
  color: var(--ink-1);
}

.m-pat-no {
  font-family: var(--f-mono);
  font-size: 12px;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink-3);
  text-align: right;
  white-space: nowrap;
}

.m-hon li {
  padding: 8px 0;
}

.m-hon em {
  font-style: normal;
  color: var(--ink-3);
}

.m-skills > div {
  display: grid;
  grid-template-columns: var(--tab-col) minmax(0, 1fr);
  gap: 16px;
  padding: 8px 0;
  align-items: baseline;
}

.m-pat li + li,
.m-hon li + li,
.m-skills > div + div {
  border-top: 1px solid var(--tone);
}

.m-skills dt {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-1);
}

.m-foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-strong);
  text-align: center;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-1);
}

.m-motto-a {
  font-weight: 600;
}

.m-motto-b {
  color: var(--ink-3);
  font-weight: 400;
}

@media (max-width: 760px) {
  .m-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .m-row {
    flex-direction: column;
    gap: 4px;
  }

  .m-pat li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .m-pat-no {
    text-align: left;
  }

  .m-skills > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .m-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 16px;
  }

  .m-contact > span:first-child {
    flex-basis: 100%;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 4px;
  }

  .m-contact .sep {
    display: none;
  }
}
