/* The comparison remains a native radio group, including on touch and with JavaScript disabled. */
.availability-proof {
  margin: 1.5rem 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
  color: #171815;
}
.availability-proof legend {
  padding: 0;
  margin-block-end: .6rem;
  color: inherit;
  font: 600 1rem/1.6 var(--sans);
}
.proof-states {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 4px;
  border: 1px solid #cecbc4;
  border-radius: .85rem;
  background: #f0eee9;
  position: relative;
}
.proof-icon { flex: 0 0 auto; display: block; }
.proof-radio {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.proof-states label {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .5rem .32rem;
  min-block-size: 46px;
  cursor: pointer;
  border-radius: .55rem;
  font: 600 .98rem/1.45 var(--sans);
  color: #3d3a34;
  transition: background-color .18s ease, color .18s ease;
}
.proof-states label:hover { background: #e1ddd4; }
.proof-radio:checked + label { background: #20201e; color: #fff; }
.proof-radio:checked + label .proof-icon { color: var(--accent-light, #ffd171); }
.proof-radio:focus-visible + label { outline: 2px solid #815000; outline-offset: 2px; z-index: 1; }
/* Reserve the taller explanation so changing a measurement keeps the next link still. */
.proof-result {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  visibility: hidden;
  align-items: start;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .75rem;
  padding: clamp(.95rem, 2vw, 1.3rem);
  background: #fff;
  border-radius: .6rem;
}
.proof-result > .proof-icon { color: var(--accent-ink, #815000); margin-block-start: .2rem; }
.proof-result strong { font: 600 1.14rem/1.45 var(--sans); }
.proof-result p { color: #48443d; font: 400 1rem/1.65 var(--sans); margin: .3rem 0 0; }
.proof-radio-access:checked ~ .proof-result-access,
.proof-radio-loan:checked ~ .proof-result-loan { visibility: visible; }
.proof-result-loan { background: #fff8e8; }
.profile-files ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #cfccc5;
  border-radius: .8rem;
  overflow: clip;
  background: #cfccc5;
  gap: 1px;
}
.profile-files li { border: 0; background: #fff; min-width: 0; }
.profile-files li a {
  flex-wrap: wrap;
  gap: .35rem .5rem;
  align-content: space-between;
  min-height: 6.5rem;
  height: 100%;
  padding: .9rem;
  color: #25241f;
  line-height: 1.4;
  transition: background-color .18s ease;
}
.profile-files li a > .proof-icon:first-child { color: var(--accent-ink, #815000); width: 24px; height: 24px; }
.profile-files li a > span { order: 1; width: 100%; }
.profile-files li a > .proof-icon-arrow { margin-inline-start: auto; width: 16px; height: 16px; color: #69665d; }
:dir(rtl) .proof-icon-arrow { transform: scaleX(-1); }
.profile-files li a:is(:hover, :focus-visible) { background: #fff5db; text-decoration: none; }
.profile-files li a:focus-visible { outline-offset: -3px; }
.document-jump { gap: .5rem; border: 0; }
.document-jump a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .45rem .65rem;
  border: 1px solid #cfccc5;
  border-radius: .45rem;
  color: #25241f;
  text-decoration: none;
}
.document-jump a .proof-icon { color: var(--accent-ink, #815000); width: 19px; height: 19px; }
.document-jump a:is(:hover, :focus-visible) { background: #fff5db; }
.document-section { scroll-margin-block-start: 6.25rem; }
.sample-exercise { background: #f7f6f3; }
.document-row summary, .sample-step summary { align-items: center; min-height: 48px; gap: .75rem; }
:is(.document-row,.sample-step) summary .proof-icon {
  box-sizing: content-box;
  padding: .35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #efede7;
  color: #575349;
  transition: transform .18s ease, background .18s ease;
}
:is(.document-row,.sample-step)[open] summary .proof-icon {
  transform: rotate(180deg);
  background: var(--accent-light, #ffd171);
  color: #262018;
}
.document-row summary::after, .document-row[open] summary::after,
.sample-step summary::after, .sample-step[open] summary::after { content: none; }
.sample-step[open], .document-row[open] { border-block-end-color: var(--accent-ink, #815000); }
@media (max-width: 390px) {
  .proof-states label { font-size: .91rem; }
  .proof-states label .proof-icon { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .proof-states label, .profile-files li a, :is(.document-row,.sample-step) summary .proof-icon { transition: none; }
}
@media (forced-colors: active) {
  .proof-radio:checked + label { outline: 2px solid SelectedItem; outline-offset: -2px; }
  .proof-radio:focus-visible + label { outline: 3px dashed Highlight; }
  .profile-files li a { border: 1px solid ButtonText; }
}
