/* The DORA reader. Builds on /style.css: same colours, type and buttons. */
body.rd{--pl:8.4rem}
.rd .count:empty{display:none}
.rd .count{display:inline-block;min-width:1.4em;padding:0 .35em;border-radius:1em;background:var(--soft);color:var(--ink);font-size:var(--s0);text-align:center}
.rd-gate{padding-block:3rem}

/* The room for the player is reserved inside the text column, not under the grid: the article list
   is sticky within its grid area, so space below the row ends the sticky range early and the list
   is dragged up with the page over the last stretch of the scroll (Kim, Tuesday 10 November 2026). */
.rd-shell{display:grid;grid-template-columns:16rem minmax(0,1fr);gap:0 2.5rem;max-width:84rem;margin-inline:auto;padding-inline:max(16px,3vw)}
.rd-shell.notes-open{grid-template-columns:16rem minmax(0,1fr) 20rem}

/* table of contents */
.rd-nav{position:sticky;top:4.2rem;align-self:start;max-height:calc(100vh - 4.2rem - var(--pl));overflow:auto;padding:1.2rem 0;font-size:var(--s1)}
.rd-tabs{display:flex;gap:.2rem;margin-bottom:.8rem;border-bottom:1px solid var(--line)}
.rd-tabs button{font:inherit;font-size:var(--s1);background:none;border:0;border-bottom:2px solid transparent;padding:.35rem .5rem;color:var(--muted);cursor:pointer}
.rd-tabs button[aria-selected="true"]{color:var(--ink);border-color:var(--accent);font-weight:600}
.rd-grp{margin:0 0 .9rem}
.rd-grp h4{font-family:var(--sans);font-size:var(--s0);font-weight:600;color:var(--muted);margin:0 0 .3rem;line-height:1.35}
.rd-grp ol{list-style:none;margin:0;padding:0}
.rd-grp a{display:flex;gap:.5rem;justify-content:space-between;padding:.18rem .4rem .18rem .7rem;border-radius:var(--r);color:var(--ink);text-decoration:none}
.rd-grp a:hover,.rd-topic-qs li:hover{background:var(--soft)}
.rd-grp a[aria-current="true"],.rd-topic-qs li[aria-current="true"]{background:var(--soft);font-weight:600;box-shadow:inset 2px 0 0 var(--accent)}
.rd-grp a .m{color:var(--muted);white-space:nowrap}
.rd-grp a .h{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rd-grp a.has-notes .h::after{content:" \270E\FE0E";color:var(--accent)}
.rd-grp a::after{content:"";flex:0 0 .55rem;text-align:center}
.rd-grp a.has-others::after{content:"●";color:var(--accent);font-size:.55em;line-height:2.2}
.rd-grp a{position:relative}
.rd-grp a::before{content:"";position:absolute;left:0;top:.15rem;bottom:.15rem;width:3px;border-radius:2px;background:transparent}
.rd-grp a.part-read::before,.rd-topic-qs li.part-read::before{background:var(--ok);opacity:.4}
.rd-grp a.is-read::before,.rd-topic-qs li.is-read::before{background:var(--ok)}
.rd-grp h4{display:flex;gap:.4rem;align-items:baseline;justify-content:space-between}
.rd-grp h4 .gt{min-width:0;overflow:hidden;text-overflow:ellipsis}
.rd-grp .gtick{flex:0 0 auto;font:inherit;font-size:var(--s0);padding:.1rem .3rem;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);color:var(--muted);cursor:pointer;white-space:nowrap}
.rd-grp .gtick:hover{border-color:var(--accent);color:var(--ink)}
.rd-grp .gtick.on{color:var(--ok);border-color:var(--ok)}
.rd-prog{margin:0 0 .7rem}

/* the text */
.rd-main{padding:2rem 0 calc(var(--pl) + 2rem);min-width:0}
.rd-text{font-family:var(--serif);font-size:1.15rem;line-height:1.7;max-width:42rem}
.rd-text h2{font-size:var(--s5);margin:0 0 1.4rem}
.rd-text p{max-width:none;margin:0 0 .7rem;position:relative}
.rd-text p.lvl1{margin-left:1.8rem}
.rd-text .ln{cursor:pointer;border-radius:2px;transition:background-color .2s}
@media (hover:hover){.rd-text .ln:hover{background:var(--soft)}}
.rd-text .ln.lead{font-family:var(--sans);font-size:.9em;font-weight:600;color:var(--muted);margin-right:.4em}
/* The line being read: a faint wash, the text keeps its own colour. The reader is reading it, so it
   must stay as calm to read as the rest (Kim, Monday 9 November 2026). */
.rd-text .ln.now{background:color-mix(in srgb,var(--mark) 38%,transparent);color:inherit;box-shadow:0 0 0 .15em color-mix(in srgb,var(--mark) 38%,transparent);border-radius:2px;transition:background-color .25s ease}
.rd-text .ln.marked{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:.25em}
.rd-text .ln.asked{text-decoration-style:wavy}
/* The read mark is the edge of the passage itself: a line that turns green, and the hit area that
   marks it. Read text is not greyed; it is the law, and it has to stay as readable as the rest. */
.rd-text p{padding-left:1.1rem}
.rd-text .edge{position:absolute;left:0;top:.1rem;bottom:.1rem;width:14px;padding:0;border:0;background:none;cursor:pointer}
.rd-text .edge::before{content:"";position:absolute;left:4px;top:0;bottom:0;width:3px;border-radius:2px;background:var(--line-strong);opacity:.75;transition:background .15s,opacity .15s}
.rd-text p:hover .edge::before{opacity:1}
.rd-text .edge:hover::before{background:var(--accent);opacity:1}
.rd-text .edge.on::before{background:var(--ok);opacity:1}
/* The note pen and the bookmark, one above the other in the gap beside the text and never over the table of
   contents. Shown on hover of the passage and on keyboard focus in it; a pen with a note and the bookmark of a
   bookmarked passage stay. */
.rd-text .gut{position:absolute;left:-2.1rem;top:.1rem;display:flex;flex-direction:column}
.rd-text .gut>button{opacity:0;transition:opacity .15s}
.rd-text p:hover .gut>button,.rd-text p:has(:focus-visible) .gut>button,.rd-text .gut.keep .pen,.rd-text p.bm .gut .bmk{opacity:1}
.rd-text .pen,.rd-text .bmk{width:1.7rem;height:1.7rem;padding:0;border:0;border-radius:50%;background:none;color:var(--muted);cursor:pointer;font-size:.95rem;line-height:1}
.rd-text .pen:hover,.rd-text .bmk:hover{background:var(--soft)}
.rd-text .pen.on,.rd-text .bmk.on{color:var(--accent)}
.rd-text .bmk{display:flex;align-items:center;justify-content:center}
.rd-text .bmk svg{width:15px;height:15px}
.rd-text .bmk.on svg{fill:currentColor}
/* The passage a link just landed on, or that was just linked to. */
.rd-text p.flash{background:var(--quote);border-radius:var(--r);transition:background .4s,transform .3s cubic-bezier(.22,.8,.3,1)}
.rd-text .ln.lead[data-anchor]{cursor:pointer}
.rd-text .ln.lead[data-anchor]:hover{color:var(--accent)}
.rd-skip{position:absolute;left:-9999px;top:0;z-index:60;background:var(--surface);color:var(--accent);padding:.6rem 1rem;border:1px solid var(--accent);border-radius:var(--r)}
.rd-skip:focus{left:.5rem;top:.5rem}
.rd-src{margin-top:2rem}
.rd-next{margin-top:2rem;display:flex;gap:.6rem;flex-wrap:wrap}

/* notes */
.rd-notes{display:none;position:sticky;top:4.2rem;align-self:start;max-height:calc(100vh - 4.2rem - var(--pl));overflow:auto;padding:1.2rem 0;font-size:var(--s1)}
.notes-open .rd-notes{display:block}
.rd-notes-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.6rem}
.rd-note-list{list-style:none;margin:0 0 1rem;padding:0;display:grid;gap:.6rem}
.rd-note-list li{border:1px solid var(--line);border-radius:var(--r);padding:.6rem .7rem;background:var(--surface);cursor:pointer}
.rd-note-list li:hover{border-color:var(--line-strong)}
.rd-note-list .w{color:var(--muted);font-size:var(--s0);display:flex;justify-content:space-between;gap:.5rem}
.rd-note-list .qt{font-family:var(--serif);background:var(--quote);padding:.2rem .4rem;margin:.3rem 0;border-left:2px solid var(--line-strong)}
.rd-note-list .tx{white-space:pre-wrap}
.rd-note-list .tag{color:var(--warn);font-weight:600}
.rd-note-list .empty{border:0;background:none;color:var(--muted);cursor:default;padding:0}
.rd-file{position:relative}
.rd-who{margin:0 0 .8rem;display:grid;gap:.3rem}
.rd-who-row{display:flex;gap:.5rem;align-items:baseline;border:1px solid var(--line);border-radius:var(--r);padding:.4rem .5rem;background:var(--surface)}
.rd-who-row .nm{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rd-who-row .st{color:var(--muted);font-size:var(--s0);margin-left:auto;white-space:nowrap}
.rd-who-row .rm{flex:0 0 auto;font:inherit;border:0;background:none;color:var(--muted);cursor:pointer;padding:0 .2rem;line-height:1}
.rd-who-row .rm:hover{color:var(--warn)}
.rd-shared{max-height:26rem;overflow:auto}
.rd-shared .art-head{border:0;background:none;cursor:default;padding:.3rem 0 0;font-weight:600;color:var(--muted);font-size:var(--s0)}
.rd-shared .art-head:hover{border-color:transparent}

/* the player */
.rd-player{position:fixed;left:0;right:0;bottom:0;z-index:20;background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -6px 24px rgba(0,0,0,.08)}
.rd-pl{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.5rem 1.5rem;align-items:center;padding-block:.6rem;max-width:84rem}
.rd-pl-main{display:flex;gap:.3rem;align-items:center}
.rd-ic{font:inherit;font-size:1rem;min-width:2.5rem;height:2.5rem;padding:0 .4rem;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);color:var(--ink);cursor:pointer}
.rd-ic:hover{border-color:var(--accent)}
.rd-ic[disabled]{opacity:.4;cursor:default}
.rd-ic.on{color:var(--ok);border-color:var(--ok);font-weight:700}
.rd-play{min-width:3.2rem;height:3rem;font-size:1.3rem;background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.rd-pl-time{display:flex;justify-content:space-between;gap:.8rem;align-items:center;min-width:0}
/* One grid item, so the player keeps its three columns: the article and how far through it is. */
.rd-pl-art{display:flex;gap:.4rem;align-items:baseline;min-width:0}
.rd-pl-art #art-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:12rem;font-weight:600}
.rd-pl-art #art-read{white-space:nowrap}
/* Full width is for a range only: the checkboxes in the settings live inside this row too, and at 100 % the
   one for saving across devices pushed its label out of the panel (Saturday 14 November 2026). */
.rd-pl-time input{accent-color:var(--accent)}
.rd-pl-time input[type=range]{width:100%}
.rd-pl-set{display:flex;gap:.4rem 1rem;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.rd-pl-set select{font:inherit;padding:.2rem .3rem;border:1px solid var(--field-line);border-radius:var(--r);background:var(--field);color:var(--ink)}
.rd-pl-set label{display:flex;gap:.3rem;align-items:center;white-space:nowrap}

/* Under the player, not inside its grid: a row spanning the three columns took the width of
   one of them. Its own line, the width of the player. */
.rd-nosound{max-width:84rem;margin:0 auto;padding:0 max(16px,3vw) .55rem;font-size:var(--s1);color:var(--muted);text-align:center}
.rd-nosound a{color:var(--accent)}
/* no audio on this page: the progress, the note and the read mark stay; the sound controls go */
.rd-silent #seek,.rd-silent #prev,.rd-silent #next,.rd-silent #back,.rd-silent #play,.rd-silent #fwd,.rd-silent #time,.rd-silent .rd-aud{display:none}
.rd-selmark{position:absolute;z-index:30;box-shadow:0 4px 14px rgba(0,0,0,.18)}

/* the note editor */
.rd-ed{border:1px solid var(--line);border-radius:var(--r);padding:1.5rem;width:min(34rem,calc(100% - 2rem));background:var(--surface);color:var(--ink)}
.rd-ed::backdrop{background:rgba(0,0,0,.35)}
.rd-ed form{display:grid;gap:.6rem}
.rd-ed blockquote{margin:0;font-family:var(--serif);background:var(--quote);padding:.5rem .7rem;border-left:3px solid var(--line-strong);max-height:9rem;overflow:auto}
.rd-ed textarea{font:inherit;width:100%;padding:.5rem;border:1px solid var(--field-line);border-radius:var(--r);background:var(--field);color:var(--ink)}
.rd-ed .rd-q{display:flex;gap:.4rem;align-items:center}
.rd-ed .rd-del{margin-left:auto;color:var(--warn);border-color:transparent}

@media (max-width:1100px){
  /* Voice, speed and the two checkboxes leave no room for the time between 820 and 1100 px, so
     the settings take a line of their own rather than overlapping the seek bar. */
  .rd-pl{grid-template-columns:auto minmax(0,1fr)}
  .rd-pl-set{grid-column:1/-1;justify-content:center}
  .rd-shell.notes-open{grid-template-columns:16rem minmax(0,1fr)}
  /* Below the header, not over it: with the panel at top:0 the Articles and Notes buttons could not
     be reached at all while it was open. */
  .notes-open .rd-notes{position:fixed;top:3.6rem;right:0;bottom:var(--pl);width:min(22rem,92vw);max-height:none;z-index:25;background:var(--bg);border-left:1px solid var(--line);padding:1rem;box-shadow:-8px 0 24px rgba(0,0,0,.12);overflow:auto}
}
@media (max-width:820px){
  body.rd{--pl:10.8rem}
  .rd-shell,.rd-shell.notes-open{grid-template-columns:minmax(0,1fr)}
  .rd-nav{display:none}
  .rd-nav.open{display:block;position:fixed;top:3.6rem;left:0;bottom:var(--pl);width:min(20rem,88vw);max-height:none;z-index:25;background:var(--bg);border-right:1px solid var(--line);padding:1rem;box-shadow:8px 0 24px rgba(0,0,0,.12)}
  .rd-text{font-size:1.06rem}
  #who{display:none}
  /* No hover on a phone, so the pen is drawn only where there is already a note; a note is made by
     selecting the words, or with the pen in the player for the line being read. */
  .rd-text .gut{left:auto;right:.6rem;top:-.2rem}
  .rd-text .gut>button{opacity:0}
  .rd-text .gut.keep .pen{opacity:.65}
  /* the swipe drawer bookmarks on a phone; the ribbon and the pen already share this edge */
  .rd-text .bmk{display:none}
  .rd-text .pen{width:1.9rem;height:1.9rem}
  .rd-text p{padding-left:1.6rem}
  .rd-text .edge{width:26px}          /* a finger, not a mouse */
  .rd-text .edge::before{left:9px}
  /* The right column holds two things on a phone: the bookmark ribbon at the edge and the pen
     inside it. 2.6rem keeps the text clear of both; at 1.4rem the pen sat on the last word and
     the ribbon sat on the pen (Kim, Monday 9 November 2026). */
  .rd-text p{padding-right:2.6rem}
  .rd-text p.lvl1{margin-left:.9rem}
  .rd-pl{grid-template-columns:1fr;gap:.45rem}
  .rd-pl-main{justify-content:center}
  /* eight controls in a row: a little narrower on a phone so the row fits 360px, the count of bookmarks in the
     corner of its button */
  .rd-pl-main{gap:.2rem}
  .rd-pl-main .rd-ic:not(.rd-play){min-width:2.25rem}
  .rd-bml{position:relative}
  .rd-bml-n{position:absolute;top:1px;right:3px;font-size:.62rem;line-height:1}
  .rd-pl-set{justify-content:center}
}
@media (min-width:821px){#open-nav{display:none}}

/* Which act is being read. Only drawn when this host serves more than one, so the reader of a
   single act never sees a chooser with one thing in it. */
.rd-acts{list-style:none;margin:0 0 .6rem;padding:0;display:grid;gap:.25rem}
.rd-acts[hidden]{display:none}
.rd-acts a,.rd-acts b{display:grid;gap:.05rem;padding:.4rem .55rem;border:1px solid var(--line);border-radius:var(--r);text-decoration:none;color:var(--ink);font-weight:400}
.rd-acts a:hover{border-color:var(--accent)}
.rd-acts li.here b{border-color:var(--accent);background:var(--alt)}
.rd-acts .nm{font-weight:600}
.rd-acts .det{font-size:var(--s0);color:var(--muted)}

/* references in the text: quiet, but visibly a link (Kim, Monday 9 November 2026) */
.rd #text a.xref{color:inherit;text-underline-offset:.18em}
/* inside this act: quiet, a place the reading reaches anyway */
.rd #text a.xref.int{text-decoration:underline dotted;text-decoration-color:var(--line-strong);text-decoration-thickness:1px}
/* another act: a step outside, marked as one */
.rd #text a.xref.ext{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:1.5px}
/* the outward arrow is drawn, not a character: phones turned "\2197" into a blue emoji (Kim, Monday 9 November 2026) */
.rd #text a.xref.ext::after{content:"";display:inline-block;width:.6em;height:.6em;margin-left:.12em;vertical-align:.35em;background:var(--accent);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l5-5M4.5 3.5h4v4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l5-5M4.5 3.5h4v4'/%3E%3C/svg%3E") center/contain no-repeat}
/* one unbroken line under a cited act: no gaps at g, y and the brackets */
/* another act the reader holds: marked as another act, but it opens here, so no arrow out */
.rd #text a.xref.held{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:1.5px}
.rd #text a.xref{text-decoration-skip-ink:none}
.rd #text a.xref:hover{color:var(--accent)}
.rd-ic svg{display:block;margin:auto}
/* the bookmarks of the player: the ribbon and how many; lit while their list is open */
.rd-bml{display:inline-flex;align-items:center;justify-content:center;gap:.15rem}
.rd-bml svg{margin:0}
.rd-bml-n{font-size:var(--s0);color:var(--muted);font-variant-numeric:tabular-nums}
.rd-bml-n:empty{display:none}
.rd-bml[aria-expanded=true]{color:var(--accent);border-color:var(--accent)}
.rd-bml[aria-expanded=true] svg{fill:currentColor}
/* progress of each act, along the foot of its square (Kim, Monday 9 November 2026) */
.rd-acts .bar{display:block;height:3px;margin-top:.35rem;border-radius:2px;background:var(--line);overflow:hidden}
/* The navigation holds the pins and up to four acts in all; this holds every act the host serves,
   with the same card. The pin is a 44px target at the right edge and, on a pinned row, the grip a
   44px-tall one at the left, so a thumb opening an act lands on neither. */
.rd-actsdlg{width:min(30rem,calc(100% - 2rem))}
@media (max-width:820px){.rd-actsdlg{padding:1rem}}
.rd-acts-all{position:relative;max-height:min(60vh,26rem);overflow:auto;margin:0;padding:0;list-style:none;display:grid;gap:.25rem}
.rd-acts-all li{position:relative}
.rd-acts-all a,.rd-acts-all b{padding-right:3.2rem}
.rd-acts-all li.has-grip a,.rd-acts-all li.has-grip b{padding-left:2.3rem}
.rd-acts .pin,.rd-acts .grip{position:absolute;top:.3rem;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:var(--r);background:none;color:var(--muted);cursor:pointer;z-index:1}
.rd-acts .pin{right:.3rem;width:2.75rem;height:2.75rem}
.rd-acts .grip{left:.1rem;width:2rem;height:2.75rem;cursor:grab;touch-action:none}
.rd-acts .pin:hover,.rd-acts .grip:hover{color:var(--ink)}
.rd-acts .pin[aria-pressed="true"]{color:var(--accent)}
.rd-acts .pin svg{width:1.15rem;height:1.15rem}
.rd-acts .grip svg{width:1.1rem;height:1.1rem}
/* the row being dragged is lifted out of the list and follows the pointer; the light grey
   landing space holds its place where it will go */
.rd-acts li.dragging{z-index:80;list-style:none}
.rd-acts li.dragging>a,.rd-acts li.dragging>b{box-shadow:0 10px 26px rgba(0,0,0,.28);border-color:var(--accent);background:var(--surface)}
.rd-acts .rd-drop{border-radius:var(--r);background:color-mix(in srgb,var(--line) 28%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--line) 70%,transparent)}
.rd-acts li.dragging .grip{cursor:grabbing}
/* a pinned act says so in the navigation, so the order there explains itself */
.rd-acts .nm .tack{display:inline-flex;vertical-align:-.1em;margin-left:.35rem;color:var(--accent)}
.rd-acts .nm .tack svg{width:.85em;height:.85em}
/* in the dialog the pin button already says it */
.rd-acts-all .nm .tack{display:none}
.rd-more{margin:0 0 .6rem;width:100%}
.rd-acts .bar .fill{display:block;height:100%;width:0;background:var(--ok);transition:width .3s ease}
/* abbreviations: dotted; on hover by the title, and on a tap or focus by the bubble below */
.rd #text abbr[title]{text-decoration:underline dotted;text-decoration-color:var(--muted);text-underline-offset:.2em;cursor:help}
/* The bubble a tap opens. On a phone there is no hover, so the title alone said nothing there. */
.abbr-tip{position:fixed;z-index:70;max-width:min(22rem,calc(100vw - 16px));padding:.45rem .6rem;border-radius:var(--r);background:var(--surface);color:var(--ink);box-shadow:0 2px 10px rgba(0,0,0,.35),inset 0 0 0 1px var(--line);font-family:var(--sans);font-size:var(--s0);line-height:1.35}
.abbr-tip[hidden]{display:none}
/* settings: a cog in the player, the choices in a panel above it */
.rd-set{display:block;position:relative;justify-self:end}
.rd-set>summary{list-style:none;display:flex;align-items:center;justify-content:center}
.rd-set>summary::-webkit-details-marker{display:none}
.rd-set[open]>summary{border-color:var(--accent)}
.rd-set-pop{position:absolute;bottom:calc(100% + .5rem);right:0;z-index:40;display:grid;gap:.65rem;min-width:15rem;padding:.9rem 1rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 8px 24px rgba(0,0,0,.2)}
.rd-set-pop label{display:flex;gap:.5rem;align-items:center;justify-content:space-between;white-space:nowrap}
.rd-set-pop select{font:inherit;padding:.2rem .3rem;border:1px solid var(--field-line);border-radius:var(--r);background:var(--field);color:var(--ink)}
.rd-set-row{display:grid;gap:.15rem}
.rd-set-row .hint{color:var(--muted);font-size:var(--s0);line-height:1.35;white-space:normal;max-width:17rem}
.rd-set-pop{gap:.85rem;min-width:17rem}
/* phones: pull a passage right to mark it read, left to add a note; what the pull will do shows
   in the space it uncovers (Kim, Monday 9 November 2026) */
.rd-text{position:relative}
.rd-text p{transition:none}
.rd-text p.swiping{transition:none;position:relative;z-index:2;background:var(--bg)}
.rd-text p.settling{position:relative;z-index:2;background:var(--bg)}
.rd-text .swipe-act{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.3rem;overflow:hidden;white-space:nowrap;padding:0 .3rem;box-sizing:border-box;border-radius:var(--r);background:color-mix(in srgb,#000 22%,var(--bg));color:var(--ink);font-size:var(--s0);font-weight:600;pointer-events:none;box-shadow:inset 0 0 0 1px var(--line);z-index:1;transition:background .15s,color .15s}
.rd-text .swipe-act[hidden]{display:none}
.rd-text .swipe-act.lt{left:0}
.rd-text .swipe-act.rt{right:0}
.rd-text .swipe-act .lb{font-size:.72rem;line-height:1.1;text-align:center;transition:opacity .2s}
.rd-text .swipe-act .ic{display:flex;flex:none;opacity:0;transition:opacity .2s}
.rd-text .swipe-act.live .ic{opacity:1}
.rd-text .swipe-act:not(.live) .lb{opacity:0!important}
.rd-text .swipe-act.closing{transition:width .3s cubic-bezier(.22,.8,.3,1),background .15s}
.rd-text .swipe-act.closing .ic,.rd-text .swipe-act.closing .lb{opacity:0!important}
.rd-text .swipe-act .ic svg{transition:transform .15s}
.rd-text .swipe-act.go .ic svg{transform:scale(1.15)}
.rd-text .swipe-act.lt.go{background:var(--ok);color:#fff}
.rd-text .swipe-act.lt.undo.go{background:var(--line-strong);color:var(--bg)}
.rd-text .swipe-act.rt.go{background:var(--accent);color:var(--accent-ink)}
/* the close button of the article list shows only where the list lies over the page; the header
   stays above the open list, so its Articles button always toggles it */
.rd-nav .rd-close{display:none}
body.rd header.top{z-index:30}
@media (max-width:820px){.rd-nav.open .rd-close{display:block;margin:0 0 .8rem auto}}
/* follow: a bubble beside the scroll bar, lit when the text follows the voice */
.rd-follow{position:fixed;right:.6rem;bottom:calc(var(--pl) + 1rem);z-index:35;width:2.6rem;height:2.6rem;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;border:1px solid var(--line);background:var(--surface);color:var(--muted);opacity:.55;box-shadow:0 3px 10px rgba(0,0,0,.12);transition:opacity .2s,color .2s,background .2s}
.rd-follow:hover{opacity:1}
.rd-follow.on{color:var(--accent-ink);background:var(--accent);border-color:var(--accent);opacity:1}
.rd-follow.held{color:var(--accent);border-color:var(--accent);opacity:.9}
.rd-follow svg{display:block}
/* an open list scrolls on its own; the page behind does not move (phones) */
@media (max-width:820px){
  html.rd-lock{overscroll-behavior:none}
  /* a height of its own, so there is always something to scroll: from under the header to the player */
  .rd-nav.open,.notes-open .rd-notes{bottom:auto;height:calc(100vh - 3.6rem - var(--pl));height:calc(100dvh - 3.6rem - var(--pl));
    overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
}
/* the position bar: its own row, edge to edge in the player */
.rd-pl>.rd-seek{grid-column:1/-1;width:100%;margin:0;height:1.6rem;accent-color:var(--accent);cursor:pointer}
@media (max-width:820px){.rd-pl>.rd-seek{height:2rem}}
/* press and hold on the bar: fine scrubbing */
.rd-pl>.rd-seek{touch-action:none}
.rd-pl>.rd-seek.fine{accent-color:var(--ok)}
.rd-finehint{grid-column:1/-1;justify-self:center;font-size:var(--s0);color:var(--ok);margin-bottom:-.3rem}
.rd-finehint[hidden]{display:none}
/* the map under the position bar: paragraph ticks, note dots, read band (inset by the thumb radius) */
.rd-marks{grid-column:1/-1;position:relative;height:5px;margin:-.3rem 8px .15rem;opacity:.8}
.rd-marks .mk-tick{position:absolute;top:2px;width:1px;height:2px;background:var(--line-strong);opacity:.6}
.rd-marks .mk-tick.para{top:0;height:5px;background:var(--muted);opacity:.8}
.rd-marks .mk-dot{position:absolute;top:.5px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--accent)}
.rd-marks .mk-dot.q{background:var(--warn)}
/* while scrubbing: where it lands, over the finger, and the line in the text */
.rd-peek{position:fixed;z-index:50;transform:translateX(-50%);max-width:min(26rem,92vw);padding:.45rem .65rem;background:color-mix(in srgb,var(--surface) 88%,transparent);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);color:var(--ink);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 6px 18px rgba(0,0,0,.2);font-size:var(--s0);line-height:1.35;pointer-events:none;display:grid;gap:.15rem}
.rd-peek[hidden]{display:none}
.rd-peek b{color:var(--accent)}
.rd-text .ln.peek{outline:2px dashed color-mix(in srgb,var(--accent) 60%,transparent);outline-offset:2px;border-radius:2px}
/* from mandate to rule: a quiet note at the head of an article */
.rd-mandate{max-width:42rem;margin:0 0 1.2rem;padding:.7rem .9rem;border-left:3px solid var(--accent);background:var(--soft);border-radius:var(--r);font-size:var(--s1)}
.rd-mandate[hidden]{display:none}
.rd-mandate p{margin:.25rem 0}
.rd-mandate ul{margin:.2rem 0 0;padding-left:1.1rem}
.rd-mandate a{color:var(--ink)}
/* One of these acts may be readable here and the next only on EUR-Lex. The arrow is the
   difference, so nobody has to follow a link to find out whether it leaves. */
.rd-mandate a.rd-inact{text-decoration-color:var(--accent);text-decoration-thickness:1.5px}
.rd-mandate a.ext::after{content:"";display:inline-block;width:.6em;height:.6em;margin-left:.12em;vertical-align:.35em;background:var(--accent);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l5-5M4.5 3.5h4v4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l5-5M4.5 3.5h4v4'/%3E%3C/svg%3E") center/contain no-repeat}
.rd-mandate-points{margin:.35rem 0 .1rem;padding-left:1rem;font-size:var(--s0);color:var(--muted)}
.rd-mandate-points .pt{font-weight:600;color:var(--ink)}
/* settings sit beside the time, not on a row of their own (Kim, Monday 9 November 2026) */
.rd-pl-tr{display:flex;align-items:center;gap:.6rem;flex:none}
.rd-pl-tr .rd-set>summary{min-width:2.2rem;height:2.2rem}
.rd-pl-time{flex-wrap:nowrap}
/* the count back to following: 3, 2, 1 in the bubble */
.rd-follow .cd{font-weight:700;font-size:1.05rem;line-height:1;font-variant-numeric:tabular-nums}
/* footnote markers of the official text: there, but out of the way of the reading */
.rd #text .fn{font-size:.65em;vertical-align:.45em;color:var(--muted);white-space:nowrap;letter-spacing:-.02em}

/* the seek bar drawn by hand: its track shows what has been played and, in green, what has been read
   (Kim, Monday 9 November 2026) */
.rd-pl>.rd-seek{-webkit-appearance:none;appearance:none;background:transparent;--p:0%;--rd:none;
  --played:color-mix(in srgb,var(--accent) 75%,transparent)}
.rd-pl>.rd-seek::-webkit-slider-runnable-track{height:6px;border-radius:3px;background-color:var(--line);
  background-image:linear-gradient(to right,var(--played) var(--p),transparent var(--p)),var(--rd)}
.rd-pl>.rd-seek::-moz-range-track{height:6px;border-radius:3px;background-color:var(--line);
  background-image:linear-gradient(to right,var(--played) var(--p),transparent var(--p)),var(--rd)}
.rd-pl>.rd-seek::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;margin-top:-6px;border-radius:50%;background:var(--accent);border:2px solid var(--surface);box-shadow:0 1px 4px rgba(0,0,0,.3)}
.rd-pl>.rd-seek::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:var(--accent);border:2px solid var(--surface);box-shadow:0 1px 4px rgba(0,0,0,.3)}
.rd-pl>.rd-seek.fine::-webkit-slider-thumb{background:var(--ok);transform:scale(1.15)}
.rd-pl>.rd-seek.fine::-moz-range-thumb{background:var(--ok)}
.rd-pl>.rd-seek:disabled::-webkit-slider-thumb{background:var(--line-strong)}

/* the drawer a slide to the left opens: Bookmark and Note (Kim, Monday 9 November 2026) */
.rd-text .swipe-drawer{position:absolute;right:0;display:flex;overflow:hidden;border-radius:var(--r);background:color-mix(in srgb,#000 22%,var(--bg));box-shadow:inset 0 0 0 1px var(--line);z-index:1}
.rd-text .swipe-drawer[hidden]{display:none}
.rd-text .swipe-drawer.closing{transition:width .3s cubic-bezier(.22,.8,.3,1)}
.rd-text .swipe-drawer button{flex:1 1 0;min-width:0;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.3rem;border:0;background:none;color:var(--ink);font:inherit;font-size:.72rem;font-weight:600;cursor:pointer;padding:0}
.rd-text .swipe-drawer button+button{border-left:1px solid var(--line)}
.rd-text .swipe-drawer .ic,.rd-text .swipe-drawer .lb{opacity:0;transition:opacity .2s}
.rd-text .swipe-drawer.live .ic,.rd-text .swipe-drawer.live .lb{opacity:1}
/* A word waits for the width to hold it. Half the drawer has to fit the longest of them, or
   "Bookmark" and "Note" run into each other while it is still opening; the clip above keeps
   each word inside its own button whatever happens (Kim, Monday 9 November 2026). */
.rd-text .swipe-drawer .lb{white-space:nowrap;max-width:100%}
.rd-text .swipe-drawer:not(.wide) .lb{opacity:0}
.rd-text .swipe-drawer.bm-on .dr-bm{color:var(--accent)}
.rd-text .swipe-drawer.bm-on .dr-bm svg{fill:currentColor}
.rd-text .swipe-drawer.locks{box-shadow:inset 0 0 0 1px var(--accent)}
/* a bookmarked passage: a small ribbon at its right edge */
.rd-text p.bm{position:relative}
.rd-text p.bm::after{content:"";position:absolute;right:-.2rem;top:-.15rem;width:.7rem;height:1.05rem;background:var(--accent);clip-path:polygon(0 0,100% 0,100% 100%,50% 72%,0 100%)}
/* On a phone the pen shares this edge, so the ribbon sits outboard of it. Measured at 390px: at
   -.2rem the two were 4.8px into each other. This block has to stand here, after the rule above —
   a media query carries no specificity of its own (Kim, Monday 9 November 2026). */
@media (max-width:820px){.rd-text p.bm::after{right:-.45rem}}
/* On a desktop the lit bookmark in the gutter is the mark; one mark is enough (Kim, Thursday 12 November 2026) */
@media (min-width:821px){.rd-text p.bm::after{content:none}}
/* and on the position bar */
.rd-marks .mk-bm{position:absolute;top:-1px;width:5px;height:7px;margin-left:-2.5px;background:var(--accent);clip-path:polygon(0 0,100% 0,100% 100%,50% 70%,0 100%)}
.rd-grp a.has-bm .h::before{content:"";display:inline-block;width:.5rem;height:.75rem;margin-right:.35rem;background:var(--accent);clip-path:polygon(0 0,100% 0,100% 100%,50% 70%,0 100%);vertical-align:-.05rem}
.rd-note-list li.bm-item{position:relative}
.rd-note-list .bm-rm{margin-top:.3rem}

/* Saving across devices: the switch in the notes, and the mark in the header while it is on
   (Kim, Tuesday 10 November 2026: "it is explicit and it should be marked"). */
.rd-sync{margin:.9rem 0 .5rem;padding:.6rem .7rem;border:1px solid var(--line);border-radius:var(--r);font-size:var(--s1)}
.rd-sync[hidden]{display:none}
.rd-sync-on{display:flex;gap:.45rem;align-items:flex-start;font-weight:600;cursor:pointer}
.rd-sync-on[hidden]{display:none}
.rd-sync-on input{margin-top:.28rem;flex:0 0 auto}
.rd-sync p{margin:.35rem 0 0}
.rd-sync .linkish{font:inherit;border:0;background:none;padding:0;color:var(--accent);text-decoration:underline;cursor:pointer}
/* the cloud in the header: what saving across devices is doing, and the way to its setting; green with a tick
   while on, a plain cloud while off */
.rd-syncmark{display:inline-flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;padding:0;border:0;border-radius:var(--r);background:none;color:var(--muted);cursor:pointer}
.rd-syncmark:hover{background:var(--soft)}
.rd-syncmark.on{color:var(--ok)}
.rd-syncmark:not(.on) .ck{display:none}
.rd-syncmark[hidden]{display:none}
/* under the settings it is one more row, set apart by a rule */
.rd-set-pop .rd-sync{margin:0;padding:.75rem 0 0;border:0;border-top:1px solid var(--line);border-radius:0}
.rd-set-pop .rd-sync-on{white-space:normal;justify-content:flex-start;max-width:17rem}
.rd-set-pop .rd-sync p{max-width:17rem}
.rd-syncmark svg{width:1.15rem;height:1.15rem}
/* The ESA Q&As (Wednesday 11 November 2026): each Q&A a block of its own, its details under its title. */
.rd-qa-head{margin:2.2rem 0 .4rem;padding-top:1rem;border-top:1px solid var(--line);scroll-margin-top:4.5rem}
.rd-text h2 + .rd-qa-head,.rd-text h2 + .rd-qa{margin-top:1rem;border-top:0;padding-top:0}
/* each Q&A a block of its own on a light background; the text keeps its line with the page, and the note pen
   beside a passage still shows in the margin (Kim, Thursday 12 November 2026) */
/* a Q&A in the text: no box (the boxes are in the list of questions), set apart by a rule and space */
.rd-qa{margin:2.2rem 0 0;padding-top:1rem;border-top:1px solid var(--line);scroll-margin-top:4.5rem}
.rd-qa .rd-qa-head{margin:0 0 .4rem;padding-top:0;border-top:0}
.rd-qa-head h3{font-family:var(--sans);font-size:var(--s3);font-weight:600;margin:0 0 .2rem}
.rd-qa-meta{margin:0;line-height:1.45;max-width:42rem}
.rd-qa-part{font-family:var(--sans);font-size:var(--s0);font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:1rem 0 .3rem}
.rd-qa-on{max-width:42rem;margin:1.2rem 0 0;padding:.55rem .9rem;border-left:3px solid var(--accent);background:var(--soft);border-radius:var(--r)}
.rd-qa-on[hidden]{display:none}
.rd-locked{max-width:42rem}
.rd-locked-list{max-width:42rem;padding-left:1.2rem;line-height:1.7}

/* A topic of the Q&As (Wednesday 11 November 2026): what it rests on, its terms, and its questions. */
.rd-topic{margin:.2rem 0 2.2rem}
.rd-topic-count{margin:.2rem 0 .5rem}
.rd-topic-rests{margin:0 0 1rem}
.rd-topic-lab{font-family:var(--sans);font-size:var(--s0);font-weight:600;color:var(--muted);margin:1.1rem 0 .45rem}
/* the term pills take the look of the filter of the search page (.regs in style.css); only the count and the
   dimming are the reader's own */
.rd-topic-terms.regs{margin:.2rem 0 0}
.rd-chip-n{color:var(--muted);margin-left:.1rem}
.regs button[aria-pressed=true] .rd-chip-n{color:inherit}
.regs button:disabled{opacity:.4;cursor:default}
.rd-topic-def{margin:.5rem 0 0}
.rd-topic-qs{list-style:none;margin:0;padding:0;display:grid;gap:.45rem}
/* each question a box; hover and current as an item of the contents (.rd-grp a), and the whole box opens it */
.rd-topic-qs li{padding:.55rem .7rem .55rem .9rem;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);position:relative}
.rd-topic-qs a::after{content:"";position:absolute;inset:0;border-radius:inherit}
/* the read mark of the contents (.rd-grp a::before): a bar at the left edge, faint when partly read */
.rd-topic-qs li::before{content:"";position:absolute;left:0;top:.6rem;bottom:.6rem;width:3px;border-radius:2px;background:transparent}
.rd-topic-qs a{color:var(--ink);text-decoration:none;font-family:var(--serif);line-height:1.4}
.rd-topic-qs li:hover a{color:var(--accent)}
.rd-topic-qs a:focus-visible{outline:none}
.rd-topic-qs li:focus-within{outline:2px solid var(--accent);outline-offset:1px}
.rd-topic-ref{display:block;margin-top:.15rem}
.rd-topic-tdet summary{cursor:pointer;margin-top:1.1rem}
.rd-topic-tdet summary.rd-topic-lab{display:list-item}
