.info-header {
  margin-bottom: 1.5rem;
}
.info-header .branding h1 { white-space: normal; }
.info-header .branding h1 a { color: inherit; text-decoration: none; }
.info-header .branding h1 a:hover { color: var(--download-accent); }

.document-view { min-width: 0; margin: 0 0 1.5rem; }
.document-view[hidden] { display: none !important; }
.info-document {
  margin: 0;
  padding: clamp(1rem, 4vw, 2.5rem);
  border: 1px solid #ded5c8;
  border-radius: .7rem;
  background: #fffdf9;
  overflow-wrap: anywhere;
}
.info-document p,
.info-document li {
  font-size: 19px !important;
  line-height: 1.5 !important;
  text-align: justify;
}
.info-document p {
  margin: 0 0 .8rem !important;
}
.info-document ul,
.info-document ol {
  margin: 0 0 .8rem !important;
  padding-left: 1.65rem;
}
.info-document li {
  margin: 0 0 .55rem !important;
  padding-left: .1rem;
}
.info-document li:last-child { margin-bottom: .8rem !important; }
.info-document h1,
.info-document h2,
.info-document h3 {
  font-size: 1.385rem;
  white-space: normal;
  line-height: 1.3;
  font-weight: 700;
  margin: 4.5rem 0 .5rem !important;
  text-align: left;
}
.info-document > :first-child { margin-top: 0 !important; }
.info-document p:has(> br:only-child) { display: none; }
.info-document .source-numbering { list-style: none; margin-left: 0 !important; padding-left: 0; }
.info-page .info-document a,
.document-view .info-document a {
  color: var(--download-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .15em;
  transition: color .15s ease;
}
.info-page .info-document a:hover,
.document-view .info-document a:hover { color: #687487; }
.info-page .info-document a:focus-visible,
.document-view .info-document a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.document-navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  margin-top: 1rem;
  padding: .9rem 0 0;
  border-top: 1px solid #ded5c8;
}
.document-navigation a {
  color: var(--download-accent);
  font-weight: 650;
  text-underline-offset: .15em;
}
.document-load-error { margin: 0 0 1rem; }

.document-mode .app-header { margin-bottom: 1.5rem; }
.document-mode #status-panel,
.document-mode #error-panel,
.document-mode #library-panel,
.document-mode > .app-footer { display: none !important; }

@media (max-width: 650px) {
  .info-header { align-items: flex-start; }
  .info-header .account-actions { gap: .3rem; }
  .info-document p, .info-document li { font-size: 19px !important; }
  .document-navigation { gap: .7rem 1rem; }
}
.info-page .app-footer {
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 0;
  border: 0;
  color: #6a6359;
  font-size: .9rem;
}
.info-page .app-footer a {
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  text-decoration: none;
  transition: color .15s ease;
}
.info-page .app-footer a:hover { color: #342c24; }
.info-page .app-footer a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Instruction page: restrained emphasis using the existing warm document palette. */
.info-document .instruction-note {
  margin: 1rem 0 1.1rem !important;
  padding: .85rem 1rem;
  border-left: 3px solid #b9a58c;
  border-radius: 0 .35rem .35rem 0;
  background: #f5f1e8;
  text-align: left;
}
.info-document h1 {
  padding-bottom: .35rem;
  border-bottom: 1px solid #e5ddd1;
}
.info-document ul,
.info-document ol {
  padding-left: 1.75rem;
}
.info-document li::marker {
  color: #8a735b;
}
.info-document code {
  padding: .08em .28em;
  border: 1px solid #e7ded2;
  border-radius: .25rem;
  background: #f7f2ea;
  font-size: .88em;
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .info-document .instruction-note { padding: .75rem; }
}

.donation-section { margin-top: 2rem; }
.donation-section .donation-copy {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: font-weight .12s ease;
}
.donation-section .donation-copy:hover,
.donation-section .donation-copy:focus-visible { font-weight: 700; }
.donation-section .donation-copy:focus-visible {
  outline: 2px solid var(--download-accent);
  outline-offset: 3px;
}
.donation-section .donation-copy-status {
  min-height: 1.5em;
  margin-top: .6rem !important;
  text-align: left;
  font-weight: 600;
}
