/* Type, rules and marginal notes shared by the three reference papers. */
.reference-page {
  --reference-gap: clamp(28px, 5vw, 80px);
  --reference-space: clamp(32px, 4vw, 66px);
  color: var(--ink);
}

.reference-running {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding-block: 20px 13px;
  border-bottom: 1px solid var(--line);
}

.reference-kicker::before {
  content: "";
  width: 1.6rem;
  height: .36rem;
  flex: none;
  background: var(--yellow);
}

.reference-folio,
.reference-label,
.reference-serial {
  color: var(--muted);
}

.reference-cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.66fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--reference-gap);
  padding-block: clamp(38px, 4.5vw, 76px);
}

.reference-title {
  font-size: clamp(52px, 6.35vw, 108px);
  line-height: .98;
  letter-spacing: -.072em;
  font-weight: 550;
  text-wrap: balance;
}

.reference-title em {
  display: block;
  font-family: "Desk Italic", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.052em;
}

.reference-intro {
  max-width: 54ch;
  margin-top: clamp(18px, 1.8vw, 28px);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.52;
  letter-spacing: -.016em;
}

.reference-margin,
.reference-lead-guide {
  padding-top: 17px;
  border-top: 2px solid var(--ink);
}

.reference-margin > p:not(.reference-label),
.reference-lead-summary {
  max-width: 44ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.52;
}

.reference-margin > .action,
.reference-margin > .reference-actions {
  margin-top: 18px;
}

.reference-actions,
.reference-policy-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}


.reference-section {
  padding-block: var(--reference-space);
  border-top: 1px solid var(--ink);
}

.reference-section-head,
.reference-split {
  display: grid;
  align-items: start;
  gap: var(--reference-gap);
}

.reference-section-head {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: end;
  margin-bottom: clamp(24px, 2.5vw, 40px);
}

.reference-section-head > :last-child {
  justify-self: end;
}

.reference-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.reference-heading {
  max-width: 20ch;
  margin-top: 10px;
  font-size: clamp(32px, 3.45vw, 58px);
  line-height: 1.02;
  letter-spacing: -.062em;
  font-weight: 550;
  text-wrap: balance;
}

.reference-aside-copy {
  max-width: 30ch;
  color: var(--muted);
  font-size: 15px;
}

.reference-copy {
  max-width: 66ch;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.57;
}

.reference-copy > * + * {
  margin-top: 1em;
}

.reference-copy strong {
  font-weight: 640;
}

.reference-fees a,
.reference-steps a,
.reference-policy-links a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.reference-fees a:is(:hover, :focus-visible),
.reference-steps a:is(:hover, :focus-visible),
.reference-policy-links a:is(:hover, :focus-visible) {
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
  color: #715600;
}

.reference-policy-links {
  gap: 2px 22px;
}

.reference-policy-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 550;
}

/* Amount columns share a baseline and keep the total most prominent. */
.reference-fees {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border-bottom: 1px solid var(--ink);
}

.reference-fees :is(th, td) {
  padding: 0;
  vertical-align: top;
  text-align: start;
}

.reference-fees tr > * + * {
  padding-inline-start: clamp(14px, 1.8vw, 30px);
}

.reference-fees thead th {
  padding-block: 10px;
  border-block: 1px solid var(--ink);
  font: 550 11px/1.45 var(--mono);
  letter-spacing: .065em;
  text-transform: uppercase;
}

.reference-fees thead th:nth-child(1) { width: 26%; }
.reference-fees thead th:nth-child(2) { width: 36%; }
.reference-fees thead th:nth-child(3) { width: 16%; }
.reference-fees thead th:nth-child(4) { width: 22%; }

.reference-fees thead th:nth-child(n + 3),
.reference-fees td.reference-price {
  text-align: end;
}

.reference-fees tbody tr + tr {
  border-top: 1px solid var(--line);
}

.reference-fees tbody :is(th, td) {
  padding-block: clamp(19px, 1.8vw, 30px);
}

.reference-fees tbody th {
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.2;
  font-weight: 560;
  letter-spacing: -.038em;
}

.reference-fees th .reference-label {
  display: block;
  margin-bottom: 7px;
}

.reference-delivery {
  color: var(--muted);
  font-size: clamp(15px, 1.04vw, 17px);
  line-height: 1.5;
}

.reference-enquiry {
  display: block;
  width: fit-content;
  margin-top: 4px;
  padding-block: 7px;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink);
}

.reference-price {
  white-space: nowrap;
  font-size: clamp(15px, 1.15vw, 19px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}

.reference-price small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.reference-total {
  font-weight: 620;
  font-size: clamp(19px, 1.65vw, 27px);
  line-height: 1.32;
  letter-spacing: -.045em;
}

.reference-mobile-label {
  display: none;
}

.reference-policy {
  border-inline-start: 4px solid var(--yellow);
  padding-inline-start: clamp(16px, 2vw, 30px);
}

.reference-outputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  padding: 0;
  list-style: decimal-leading-zero inside;
}

.reference-outputs li {
  padding-block: 7px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.reference-outputs li::marker {
  color: var(--muted);
  font: 500 11px var(--mono);
}

/* The method reads down in sequence, then across by client role. */
.reference-steps,
.reference-guides {
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.reference-steps li,
.reference-guides li {
  border-top: 1px solid var(--line);
}

.reference-steps li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 12px;
  padding-block: clamp(16px, 1.55vw, 25px);
}

.reference-serial {
  padding-top: .3rem;
  font-variant-numeric: tabular-nums;
}

.reference-steps h3,
.reference-role h3,
.reference-question {
  font-size: clamp(21px, 1.75vw, 29px);
  font-weight: 550;
  line-height: 1.16;
  letter-spacing: -.04em;
}

.reference-steps p,
.reference-role-copy > p:not(.reference-label) {
  margin-top: 7px;
  color: var(--muted);
  max-width: 62ch;
  font-size: clamp(15px, 1.08vw, 17px);
}

.reference-roles {
  border-block: 1px solid var(--ink);
}

.reference-role {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 3.3vw, 54px);
  padding-block: clamp(22px, 2.3vw, 38px);
}

.reference-role + .reference-role {
  border-top: 1px solid var(--line);
}

.reference-role h3 {
  font-size: clamp(25px, 2.4vw, 40px);
}

.reference-role .textlink {
  margin-top: 6px;
  font-size: 14px;
}

/* A single opening entry precedes the numbered subject register. */
.reference-lead-guide {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 16px;
}

.reference-tab {
  padding: 4px 8px;
  background: var(--yellow);
  color: var(--ink);
}

.reference-lead-question {
  max-width: 20ch;
  margin-top: 13px;
  font-size: clamp(26px, 2.55vw, 43px);
  line-height: 1.08;
  font-weight: 550;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.reference-read, .reference-guides .reference-question, .reference-enquiry {
  text-decoration: underline;
  text-decoration-color: #a4a795;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.reference-read {
  display: inline-flex;
  gap: 16px;
  align-items: baseline;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
}

.reference-guides a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: clamp(8px, 1.3vw, 20px);
  align-items: baseline;
  padding-block: clamp(16px, 1.55vw, 25px);
}

.reference-question,
.reference-summary {
  display: block;
}

.reference-summary {
  max-width: 64ch;
  margin-top: 6px;
  font-size: clamp(15px, 1.08vw, 17px);
  line-height: 1.48;
  color: var(--muted);
}


.reference-lead-guide:is(:hover, :focus-visible) .reference-read,
.reference-guides a:is(:hover, :focus-visible) .reference-question {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}


@media (min-width: 851px) {
  .reference-split > div:first-child {
    position: sticky;
    top: 24px;
  }
}

@media (max-width: 850px) {
  .reference-cover-grid {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  }

  .reference-split {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.65fr);
  }

  .reference-role {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 28px;
  }

  .reference-role > :first-child {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 20px;
  }

  .reference-role > :first-child .textlink {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .reference-cover-grid,
  .reference-split,
  .reference-section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .reference-cover-grid {
    padding-block: 32px;
  }

  .reference-title {
    font-size: clamp(43px, 8.8vw, 63px);
  }

  .reference-section-head > :last-child {
    justify-self: start;
  }

  .reference-heading {
    max-width: 23ch;
  }

  .reference-aside-copy {
    max-width: 46ch;
  }

  /* Keep real row/column headers while giving the two prices a shared mobile line. */
  .reference-fees,
  .reference-fees tbody {
    display: block;
  }

  .reference-fees thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .reference-fees tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding-block: 17px;
  }

  .reference-fees tbody tr:first-child {
    border-top: 1px solid var(--ink);
  }

  .reference-fees tbody :is(th, td) {
    display: block;
    padding: 0;
  }

  .reference-fees tbody th,
  .reference-fees .reference-delivery {
    grid-column: 1 / -1;
  }

  .reference-fees td.reference-price {
    text-align: start;
  }

  .reference-price small {
    display: none;
  }

  .reference-mobile-label {
    display: block;
    color: var(--muted);
    margin-block: 4px;
  }

  .reference-policy {
    padding-inline-start: 16px;
  }
}

@media (max-width: 500px) {
  .reference-running {
    gap: 5px 12px;
    padding-block: 15px 10px;
  }

  .reference-kicker {
    gap: 7px;
  }

  .reference-kicker::before {
    width: 1rem;
  }

  .reference-role {
    grid-template-columns: minmax(0, 1fr);
  }

  .reference-guides a,
  .reference-steps li {
    column-gap: 8px;
  }

  .reference-guides a {
    grid-template-columns: 1.3rem minmax(0, 1fr);
  }

  .reference-steps li {
    grid-template-columns: 1.5rem minmax(0, 1fr);
  }

}

@media (max-width: 380px) {
  .reference-outputs {
    grid-template-columns: minmax(0, 1fr);
  }
}
