/* Fine print: a contents list beside one reading column. Numbers come from counters. Read top to bottom. */

/* Opening: h1 on its blue bar, the date, one plain sentence, then the table edge. */
.open-fine {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: clamp(1.5rem, 5vh, 3rem) 0;
}
.open-fine .run-edge { max-width: 26rem; }
.say-updated { font-family: var(--face-board); font-size: var(--step-fine); line-height: 1.3; }
.say-intro { max-width: 44rem; font-size: 1.125rem; line-height: 1.5; }

/* Two columns on a desk screen: contents at left, clauses at right. They stack on a phone. */
.lay-fine {
  counter-reset: count-clause count-entry;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(1.5rem, 5vh, 3rem) clamp(1rem, 3vh, 2rem);
}

/* Contents list: one ruled row per clause, each a link that jumps to it. */
.list-contents { flex: 0 1 18rem; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.list-contents ol { display: flex; flex-direction: column; padding: 0; list-style: none; }
.list-contents li { border-top: 0.125rem solid currentColor; }
.list-contents li:last-child { border-bottom: 0.125rem solid currentColor; }
.list-contents a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-height: var(--measure-tap);
  padding-block: 0.5rem;
  line-height: 1.3;
  text-decoration: none;
}
.list-contents a:hover { text-decoration: underline; text-decoration-thickness: 0.15em; }
.list-contents a::before {
  counter-increment: count-entry;
  content: counter(count-entry, decimal-leading-zero);
  flex: 0 0 2rem;
  font-family: var(--face-board);
}

/* Clauses: a 54 px number column, then the text at a readable measure. */
.stack-clauses { flex: 1 1 30rem; display: flex; flex-direction: column; min-width: 0; }
.read-clause {
  display: flex;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 0.125rem solid currentColor;
}
.stack-clauses > .read-clause:last-child { border-bottom: 0.125rem solid currentColor; }
.read-clause::before {
  counter-increment: count-clause;
  content: counter(count-clause, decimal-leading-zero);
  flex: 0 0 var(--measure-number);
  font-family: var(--face-board);
  font-size: 1.375rem;
  line-height: 1.2;
}
.hold-clause { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.75rem; max-width: 44rem; min-width: 0; }
.hold-clause a { overflow-wrap: anywhere; }
.list-points { display: flex; flex-direction: column; gap: 0.4rem; padding-left: 1.25rem; }
.hold-clause .list-specs { gap: 0; }

@media (max-width: 30em) {
  .read-clause { gap: 0.75rem; }
  .read-clause::before { flex-basis: 2.25rem; }
}
