html:root {
  --paper: #fff;
  --paper-2: #f1f0ec;
  --paper-3: #e7e6e1;
  --ink: #0b0b0b;
  --ink-2: #3a3a3a;
  --ink-3: #5c5c5c;
  --hair: #e2e1dc;
  color-scheme: light;
}
body { color: #0b0b0b; background: #fff; }
.rv { max-width: 54rem; padding-block: 1.5rem 3rem; }
.rv a { color: #0b0b0b; text-decoration: underline; }
.rv details, #rv-practice { margin-block: 1rem; border-block-start: 1px solid #b9b7b0; }
.rv summary { cursor: pointer; padding-block: .65rem; }
.rv textarea { display: block; width: 100%; box-sizing: border-box; font: 24px/1.8 "Noto Naskh Arabic", serif; }
.rv-actions, .rv-controls { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-block: .5rem; }
.rv-actions[hidden] { display: none; }
.rv-controls label { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.rv input[type=number] { width: 4rem; }
#rv-paper { position: relative; background: #f1f0ec; }
#rv-reading { position: relative; padding: .75rem; white-space: pre-wrap; overflow-wrap: anywhere; font: var(--rv-size, 24px)/1.8 var(--rv-font, "Noto Naskh Arabic", serif); word-spacing: var(--rv-word, 0px); letter-spacing: var(--rv-letter, 0px); }
#rv-line { position: absolute; inset-inline: 0; outline: 1px solid #77746d; background: #fff; pointer-events: none; }
#rv-highlight { position: absolute; inset: 0; pointer-events: none; }
#rv-highlight span { position: absolute; background: #d9d6ce; border-block-end: 1px solid #0b0b0b; }
::highlight(pn-reading) { background: #d9d6ce; color: #0b0b0b; text-decoration: underline; }
.rv-example { font: 24px/1.8 "Noto Naskh Arabic", serif; }

a[href], select, input:not([type=hidden]) { min-width: 44px; min-height: 44px; }
a[href] { display: inline-flex; align-items: center; }
