:root {
  --ink: #2b1a15;
  --ink-2: #4a3a34;
  --muted: #6b5a54;
  --paper: #f7f1e5;
  --paper-2: #fffaf0;
  --line: #e4d9c6;
  --red: #752f25;
  --red-brand: #772e25;
  --red-deep: #441a12;
  --gold: #dca15d;
  --gold-ink: #8f5c1c;
  --cream: #f5efe6;
  --person: #772e25;
  --place: #4a6127;
  --group: #2c5f6b;
  --annot: #21675f;
  --f-serif: "EB Garamond", Garamond, Georgia, serif;
  --f-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --f-nav: "Stylish", "Trebuchet MS", sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --top-h: 3.5rem;
  --pager-h: 4.25rem;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --fs: 1.1875rem;
}
html[data-size="s"] { --fs: 1.0625rem; }
html[data-size="l"] { --fs: 1.375rem; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden;
  background: var(--paper); color: var(--ink); font-family: var(--f-body); line-height: 1.5;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rd-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rd-skip { position: absolute; left: .5rem; top: -3rem; z-index: 100; padding: .5rem .875rem; border-radius: .375rem; background: var(--paper-2); color: var(--red-brand); font-weight: 600; text-decoration: none; }
.rd-skip:focus { top: .5rem; }

.rd-top {
  position: relative; z-index: 30; flex: none; display: flex; align-items: center; gap: .5rem;
  height: var(--top-h); padding: 0 .625rem 0 .75rem; color: var(--cream);
  background: #5a2219 url("../../../assets/images/leather.jpg") center / 1400px auto;
  border-bottom: 2px solid var(--gold); box-shadow: 0 2px 10px rgba(40,10,6,.25);
}
.rd-back { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-left: -.125rem; border-radius: 50%; color: #fff8ec; text-decoration: none; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(220,161,93,.45); transition: background-color .2s, box-shadow .2s; }
.rd-back svg { width: 1.25rem; height: 1.25rem; }
.rd-back:hover { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px var(--gold); }
.rd-brand { display: none; align-items: center; gap: .75rem; min-width: 0; }
.rd-logo { flex: none; width: 2rem; height: 2.75rem; border-radius: 1rem; background: #682820 url("../../../assets/images/logo.webp") center / contain no-repeat; box-shadow: 0 0 0 2px #682820, 0 2px 6px rgba(0,0,0,.3); }
.rd-brand__text { min-width: 0; }
.rd-title { font-family: var(--f-serif); font-size: 1.0625rem; font-weight: 500; line-height: 1.2; color: #fff8ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-sub { margin-top: .125rem; font-family: var(--f-nav); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.rd-datebtn {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: .625rem;
  height: 2.5rem; padding: 0 .75rem 0 .875rem; border-radius: 1.25rem; text-align: left;
  background: rgba(255,248,236,.1); border: 1px solid rgba(220,161,93,.5); transition: background-color .2s;
}
.rd-datebtn:hover { background: rgba(255,248,236,.18); }
.rd-datebtn__text { min-width: 0; display: flex; align-items: baseline; gap: .375rem; white-space: nowrap; overflow: hidden; }
.rd-datebtn__k { font-family: var(--f-nav); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.rd-datebtn__d { font-family: var(--f-serif); font-size: 1.0625rem; color: #fff8ec; overflow: hidden; text-overflow: ellipsis; }
.rd-datebtn svg { flex: none; width: 1.125rem; height: 1.125rem; color: var(--gold); }

.rd-actions { flex: none; display: flex; gap: .125rem; }
.rd-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; color: #fff8ec; transition: background-color .2s; }
.rd-icon:hover { background: rgba(255,255,255,.1); }
.rd-icon svg { width: 1.25rem; height: 1.25rem; }
.rd-icon--aa { font-family: var(--f-serif); font-size: 1.125rem; font-weight: 500; }

.rd-body { position: relative; flex: 1; min-height: 0; display: flex; }

.rd-main {
  flex: 1; min-width: 0; position: relative; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: radial-gradient(120% 60% at 50% 0%, #fdf9f0 0%, #f6efe0 60%, #efe4cf 100%) fixed, #f6efe0;
  container-type: inline-size; outline: none; display: flex; flex-direction: column;
}
.rd-entry { flex: 1 0 auto; width: 100%; max-width: 44rem; margin: 0 auto; padding: 1.5rem 1.125rem calc(var(--pager-h) + 2rem + var(--safe-b)); }

.rd-day { position: relative; padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.rd-day::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 3.5rem; height: 3px; background: var(--gold); }
.rd-day__k { font-family: var(--f-nav); font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.rd-day__d { margin-top: .125rem; font-family: var(--f-serif); font-weight: 500; font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.1; color: var(--red-brand); }
.rd-day__d small { font-size: .55em; font-style: italic; color: var(--muted); margin-left: .375rem; }
.rd-day__meta { display: flex; flex-wrap: wrap; gap: .375rem .5rem; margin-top: .75rem; }
.rd-tag { display: inline-flex; align-items: center; gap: .375rem; padding: .25rem .625rem; border-radius: 1rem; background: rgba(220,161,93,.16); color: var(--gold-ink); font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.rd-tag--muted { background: rgba(107,90,84,.1); color: var(--muted); }

.rd-switch-view { display: flex; padding: .25rem; margin-bottom: 1.25rem; border-radius: 2rem; background: rgba(119,46,37,.08); border: 1px solid rgba(119,46,37,.14); }
.rd-switch-view button { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; height: 2.5rem; border-radius: 2rem; font-family: var(--f-nav); font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red-brand); transition: background-color .25s, color .25s; }
.rd-switch-view button svg { width: 1rem; height: 1rem; }
.rd-switch-view button[aria-pressed="true"] { background: var(--red-brand); color: #fff8ec; box-shadow: 0 2px 6px rgba(68,26,18,.25); }

.rd-cols[data-view="text"] .rd-page { display: none; }
.rd-cols[data-view="page"] .rd-text { display: none; }

.rd-printed { margin-bottom: 1.375rem; border: 1px solid #e3d3b6; border-left: 3px solid var(--gold); border-radius: .375rem; background: linear-gradient(180deg, #fffbf2, #f8f0e0); box-shadow: 0 6px 18px -12px rgba(90,40,20,.3); }
.rd-printed summary { list-style: none; display: flex; align-items: center; gap: .75rem; padding: .75rem .875rem; cursor: pointer; }
.rd-printed summary::-webkit-details-marker { display: none; }
.rd-printed summary span { flex: 1; min-width: 0; }
.rd-printed summary b { display: block; font-family: var(--f-nav); font-size: .75rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.rd-printed summary small { display: block; margin-top: .125rem; font-family: var(--f-serif); font-size: .9375rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-printed summary svg { flex: none; width: 1.125rem; height: 1.125rem; color: var(--gold-ink); transition: transform .3s var(--ease); }
.rd-printed[open] summary svg { transform: rotate(180deg); }
.rd-printed[open] summary small { display: none; }
.rd-printed__body { padding: 0 .875rem .875rem; font-family: var(--f-serif); font-size: .9375rem; line-height: 1.6; color: var(--ink-2); }

.rd-words { font-family: var(--f-serif); font-size: var(--fs); line-height: 1.8; color: var(--ink); overflow-wrap: break-word; }
.rd-none { font-family: var(--f-serif); font-style: italic; font-size: 1.0625rem; color: var(--muted); }

.rd-page { margin: 0; }
.rd-page__btn { position: relative; display: block; width: 100%; padding: 0; border-radius: .25rem; cursor: zoom-in; }
.rd-page__btn img { display: block; width: 100%; height: auto; border: 6px solid #fff; border-radius: 2px; box-shadow: 0 1px 0 #e6dccb, 0 10px 24px rgba(68,26,18,.18); background: #efe6d6; }
.rd-page__hint { position: absolute; right: .875rem; bottom: .875rem; display: inline-flex; align-items: center; gap: .375rem; padding: .375rem .75rem; border-radius: 1rem; background: rgba(68,26,18,.85); color: #fff8ec; font-family: var(--f-nav); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.rd-page__hint svg { width: .875rem; height: .875rem; }
.rd-page figcaption { margin-top: .625rem; font-size: .8125rem; color: var(--muted); text-align: center; }

.pp { display: block; }
.pp + .pp { margin-top: .75rem; }
.bd { font-weight: 700; }
.epig-src .bd { color: var(--ink); }
.days { display: none; }
.epig { display: block; }
.epig-src { display: block; margin-top: .375rem; font-family: var(--f-body); font-size: .8125rem; color: var(--muted); }
.dline { display: block; text-align: right; font-family: var(--f-body); font-size: .75rem; color: var(--muted); }
.adhead { display: block; margin: .25rem 0 .5rem; font-weight: 600; text-align: center; color: var(--red-brand); }
.adarg { display: block; margin: .375rem 0; text-align: center; }
.fbnote { color: var(--person); }
.ds { color: var(--muted); }
.ds::before { content: "["; } .ds::after { content: "]"; }
.unc { border-bottom: 1px dashed var(--muted); }
.del { text-decoration: line-through; color: var(--muted); }
.add { vertical-align: super; font-size: .7em; color: var(--group); }
.sig { display: block; margin-top: .875rem; font-style: italic; }
.mgn { display: block; margin: .875rem 0; padding: .5rem .875rem; border-left: 3px solid rgba(220,161,93,.85); background: rgba(220,161,93,.08); border-radius: 0 .375rem .375rem 0; font-size: .92em; color: #3f2f2a; }
.mgn::before { content: "In the margin"; display: block; font-family: var(--f-nav); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.mgn-left::before { content: "Left margin"; } .mgn-right::before { content: "Right margin"; } .mgn-top::before { content: "Top margin"; } .mgn-bottom::before { content: "Bottom margin"; }
.acct-table { width: 100%; border-collapse: collapse; margin-top: .5rem; font-size: .92em; }
.acct-table td { padding: .375rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.adhead .acct-table { font-weight: 400; color: var(--ink); text-align: left; }
.acct-table tr:first-child td { font-family: var(--f-nav); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red-brand); }
.rd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
mark.rd-hit { background: rgba(220,161,93,.5); color: inherit; border-radius: 2px; padding: 0 1px; }

.er { cursor: pointer; border-radius: 2px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; text-decoration-style: dotted; transition: background-color .15s; }
.rp { color: var(--person); } .rl { color: var(--place); } .rg { color: var(--group); } .ra { color: var(--annot); }
.rp:hover, .rp.is-on { background: rgba(119,46,37,.12); }
.rl:hover, .rl.is-on { background: rgba(74,97,39,.14); }
.rg:hover, .rg.is-on { background: rgba(44,95,107,.14); }
.ra:hover, .ra.is-on { background: rgba(33,103,95,.14); }

html.links-off .er { color: inherit; text-decoration: none; font-weight: inherit; pointer-events: none; }

.rd-pager {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: stretch; gap: .375rem;
  height: calc(var(--pager-h) + var(--safe-b)); padding: .625rem .75rem calc(.625rem + var(--safe-b));
  background: rgba(253,249,240,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 18px -12px rgba(68,26,18,.35);
}
.rd-pager__btn { flex: none; display: flex; align-items: center; justify-content: center; gap: .25rem; min-width: 3rem; padding: 0 .75rem; border-radius: 1.5rem; color: var(--red-brand); border: 1px solid rgba(119,46,37,.25); transition: background-color .2s, color .2s; }
.rd-pager__btn svg { width: 1.25rem; height: 1.25rem; }
.rd-pager__btn span { display: none; font-family: var(--f-nav); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; }
@media (hover: hover) { .rd-pager__btn:hover:not(:disabled) { background: var(--red-brand); color: #fff8ec; border-color: var(--red-brand); } }
.rd-pager__btn:disabled { opacity: .35; cursor: default; }
.rd-pager__mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 1.5rem; line-height: 1.2; transition: background-color .2s; }
.rd-pager__mid:hover { background: rgba(119,46,37,.06); }
.rd-pager__mid b { font-family: var(--f-serif); font-weight: 500; font-size: 1.0625rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rd-pager__mid small { font-size: .75rem; color: var(--muted); }

.rd-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(30,10,6,.45); opacity: 0; pointer-events: none; transition: opacity .3s; }
html.has-sheet .rd-scrim { opacity: 1; pointer-events: auto; }

.rd-sheet {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
  max-height: 88dvh; max-height: 88vh; background: var(--paper-2); color: var(--ink);
  border-radius: 1.125rem 1.125rem 0 0; box-shadow: 0 -12px 40px rgba(30,10,6,.35);
  transform: translateY(105%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; outline: none;
}
.rd-sheet.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
.rd-sheet--full { top: 0; max-height: none; border-radius: 0; }
.rd-sheet__head { position: relative; flex: none; display: flex; align-items: center; gap: .75rem; padding: 1.125rem 1rem .75rem 1.25rem; border-bottom: 1px solid var(--line); touch-action: none; }
.rd-sheet__head h2 { flex: 1; font-family: var(--f-serif); font-weight: 500; font-size: 1.375rem; color: var(--red-brand); }
.rd-grab { position: absolute; left: 50%; top: .4375rem; width: 2.5rem; height: 4px; margin-left: -1.25rem; border-radius: 2px; background: #d9c9b0; }
.rd-close { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.rd-close:hover { background: rgba(119,46,37,.08); color: var(--red-brand); }
.rd-close svg { width: 1.25rem; height: 1.25rem; }

.rd-cal__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .875rem 1rem calc(1.5rem + var(--safe-b)); }
.rd-months { display: flex; gap: .375rem; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem .375rem; }
.rd-months::-webkit-scrollbar { display: none; }
.rd-months button { flex: none; height: 2.25rem; padding: 0 .875rem; border-radius: 1.25rem; border: 1px solid #e6d8c0; background: #fff; font-family: var(--f-nav); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); transition: background-color .2s, color .2s, border-color .2s; }
.rd-months button:hover { border-color: var(--gold); }
.rd-months button[aria-pressed="true"] { background: var(--red-brand); border-color: var(--red-brand); color: #fff8ec; }
.rd-month__title { margin: 1.125rem 0 .625rem; font-family: var(--f-serif); font-weight: 500; font-size: 1.25rem; color: var(--red-brand); }
.rd-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; }
.rd-grid__wd { padding-bottom: .25rem; text-align: center; font-family: var(--f-nav); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rd-day-cell { position: relative; aspect-ratio: 1; min-height: 2.5rem; display: grid; place-items: center; border-radius: .5rem; font-family: var(--f-serif); font-size: 1.0625rem; color: #9b8b84; transition: background-color .15s, color .15s; }
button.rd-day-cell { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px #eadcc5; }
.rd-day-cell.has::after { content: ""; position: absolute; bottom: 18%; width: .3125rem; height: .3125rem; border-radius: 50%; background: var(--gold); }
.rd-day-cell:hover { background: rgba(220,161,93,.2); }
.rd-day-cell.is-cur { background: var(--red-brand); color: #fff8ec; box-shadow: none; }
.rd-day-cell.is-cur::after { background: #fff8ec; }
.rd-cal-key { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; font-size: .8125rem; color: var(--muted); }
.rd-cal-key i { width: .3125rem; height: .3125rem; border-radius: 50%; background: var(--gold); }
.rd-list { list-style: none; margin-top: 1.25rem; border-top: 1px solid var(--line); }
.rd-list__title { margin-top: 1.375rem; font-family: var(--f-nav); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.rd-list li + li { border-top: 1px solid var(--line); }
.rd-list button { display: block; width: 100%; padding: .75rem .25rem; text-align: left; border-radius: .25rem; transition: background-color .15s; }
.rd-list button:hover { background: rgba(220,161,93,.1); }
.rd-list button.is-cur { background: rgba(119,46,37,.08); box-shadow: inset 3px 0 0 var(--red-brand); padding-left: .75rem; }
.rd-list b { display: block; font-family: var(--f-nav); font-size: .8125rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--red-brand); }
.rd-list span { display: block; margin-top: .125rem; font-family: var(--f-serif); font-size: 1rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-list .is-empty span { font-style: italic; }

.rd-info__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1.125rem 1.25rem calc(1.75rem + var(--safe-b)); }
.rd-ent__type { display: inline-flex; align-items: center; gap: .375rem; font-family: var(--f-nav); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.rd-ent__type i { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.t-person { color: var(--person); } .t-place { color: var(--place); } .t-group { color: var(--group); } .t-annot { color: var(--annot); }
.rd-ent__name { margin-top: .375rem; font-family: var(--f-serif); font-weight: 500; font-size: 1.625rem; line-height: 1.2; color: var(--ink); }
.rd-ent__facts { margin-top: 1rem; display: grid; gap: .75rem; }
.rd-ent__facts dt { font-family: var(--f-nav); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.rd-ent__facts dd { margin-top: .125rem; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.rd-ent__chips { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .75rem; }
.rd-ent__chips span { padding: .1875rem .625rem; border-radius: 1rem; background: rgba(74,97,39,.1); color: var(--place); font-size: .8125rem; }
.rd-ent__bio { margin-top: 1rem; font-family: var(--f-serif); font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); }
.rd-ent__bio .pp + .pp { margin-top: .625rem; }
.rd-ent__sec { margin-top: 1.5rem; padding-top: 1.125rem; border-top: 1px solid var(--line); }
.rd-ent__sec h3 { font-family: var(--f-nav); font-size: .75rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.rd-occ { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .75rem; list-style: none; }
.rd-occ button { padding: .375rem .75rem; border-radius: 1.25rem; border: 1px solid #e6d8c0; background: #fff; font-size: .8125rem; color: var(--ink-2); transition: background-color .15s, border-color .15s, color .15s; }
.rd-occ button:hover { border-color: var(--red-brand); color: var(--red-brand); }
.rd-occ button.is-cur { background: var(--red-brand); border-color: var(--red-brand); color: #fff8ec; }
.rd-occ__more { margin-top: .75rem; font-family: var(--f-nav); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red-brand); text-decoration: underline; text-underline-offset: .2em; }
.rd-members { list-style: none; margin-top: .5rem; }
.rd-members button { padding: .375rem 0; color: var(--person); text-decoration: underline dotted; text-underline-offset: .2em; }
.rd-ph h3 { font-family: var(--f-serif); font-weight: 500; font-size: 1.375rem; color: var(--red-brand); }
.rd-ph p { margin-top: .75rem; font-size: .9375rem; line-height: 1.6; color: var(--ink-2); }

.rd-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; font-size: .875rem; color: var(--ink-2); }
.rd-legend li { display: flex; align-items: center; gap: .4375rem; }
.rd-legend i { width: .625rem; height: .625rem; border-radius: 50%; }
.k-person { background: var(--person); } .k-place { background: var(--place); } .k-group { background: var(--group); } .k-annot { background: var(--annot); }

.rd-search__field { flex: 1; display: flex; align-items: center; gap: .625rem; height: 2.875rem; padding: 0 1rem; border-radius: 1.5rem; background: #fff; border: 1px solid #e3d3b6; color: var(--muted); }
.rd-search__field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(220,161,93,.25); }
.rd-search__field svg { flex: none; width: 1.125rem; height: 1.125rem; }
.rd-search__field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-family: var(--f-body); font-size: 1rem; color: var(--ink); }
.rd-search__count { flex: none; padding: .875rem 1.25rem .25rem; font-size: .8125rem; color: var(--muted); }
.rd-results { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; padding: 0 1rem calc(1.5rem + var(--safe-b)); }
.rd-results li + li { border-top: 1px solid var(--line); }
.rd-results button { display: block; width: 100%; padding: .875rem .375rem; text-align: left; border-radius: .25rem; }
.rd-results button:hover { background: rgba(220,161,93,.1); }
.rd-results b { display: block; font-family: var(--f-nav); font-size: .8125rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--red-brand); }
.rd-results span { display: block; margin-top: .25rem; font-family: var(--f-serif); font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); }

.rd-opts__body { padding: 1.25rem 1.25rem calc(1.75rem + var(--safe-b)); overflow-y: auto; }
.rd-opts__label { font-family: var(--f-nav); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.rd-seg { display: flex; margin-top: .625rem; padding: .25rem; border-radius: 2rem; background: rgba(119,46,37,.08); }
.rd-seg button { flex: 1; height: 2.75rem; border-radius: 2rem; font-family: var(--f-serif); color: var(--red-brand); transition: background-color .2s, color .2s; }
.rd-seg button[aria-checked="true"] { background: var(--red-brand); color: #fff8ec; }
.rd-switch { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); cursor: pointer; }
.rd-switch > span { flex: 1; }
.rd-switch b { display: block; font-weight: 600; font-size: .9375rem; }
.rd-switch small { display: block; margin-top: .125rem; font-size: .8125rem; color: var(--muted); }
.rd-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rd-switch i { position: relative; flex: none; width: 3rem; height: 1.75rem; border-radius: 1rem; background: #cdbfae; transition: background-color .2s; }
.rd-switch i::after { content: ""; position: absolute; top: .1875rem; left: .1875rem; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.rd-switch input:checked + i { background: var(--red-brand); }
.rd-switch input:checked + i::after { transform: translateX(1.25rem); }
.rd-switch input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.rd-opts__link { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; padding: .875rem 1rem; border-radius: .75rem; background: rgba(119,46,37,.06); color: var(--red-brand); font-family: var(--f-serif); font-size: 1.125rem; text-decoration: none; }
.rd-opts__link svg { width: 1.125rem; height: 1.125rem; }
.rd-opts__link:hover { background: rgba(119,46,37,.12); }

.rd-zoom { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: #1c0a06; color: #fff8ec; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; outline: none; }
.rd-zoom.is-open { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
.rd-zoom__bar { flex: none; display: flex; align-items: center; gap: .75rem; padding: .625rem .75rem .625rem 1.125rem; }
.rd-zoom__cap { flex: 1; min-width: 0; font-family: var(--f-serif); font-size: 1.0625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-zoom__tools { display: flex; gap: .375rem; }
.rd-zoom__tools button { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,248,236,.1); border: 1px solid rgba(220,161,93,.4); }
.rd-zoom__tools button:hover { background: var(--gold); color: #3a150e; }
.rd-zoom__tools svg { width: 1.125rem; height: 1.125rem; }
.rd-zoom__stage { flex: 1; min-height: 0; position: relative; overflow: hidden; touch-action: none; }
.rd-zoom__stage img { position: absolute; inset: 0; margin: auto; max-width: 94%; max-height: 94%; transform-origin: center; user-select: none; -webkit-user-drag: none; box-shadow: 0 6px 40px rgba(0,0,0,.5); cursor: zoom-in; }
.rd-zoom__stage img.is-zoomed { cursor: grab; }
.rd-zoom__help { flex: none; padding: .5rem 1rem calc(.75rem + var(--safe-b)); text-align: center; font-size: .8125rem; color: rgba(255,248,236,.65); }

@media (min-width: 480px) {
  .rd-pager__btn span { display: inline; }
  .rd-pager__btn { padding: 0 1rem; }
}

@media (min-width: 760px) {
  :root { --top-h: 4rem; --pager-h: 4.5rem; }
  .rd-top { padding: 0 1rem 0 1.25rem; gap: 1rem; }
  .rd-brand { display: flex; flex: 1; }
  .rd-datebtn { flex: none; width: 15.5rem; }
  .rd-entry { padding: 2.25rem 2rem 2.5rem; }
  .rd-pager { position: sticky; left: auto; right: auto; bottom: 0; flex: none; width: calc(100% - 4rem); margin: 0 auto; max-width: 44rem; border: 1px solid var(--line); border-bottom: 0; border-radius: 1.25rem 1.25rem 0 0; }
  .rd-sheet--side-l, .rd-sheet--side-r { top: 0; bottom: 0; width: min(24rem, 86vw); max-height: none; border-radius: 0; transform: translateX(-105%); }
  .rd-sheet--side-l { right: auto; }
  .rd-sheet--side-r { left: auto; transform: translateX(105%); }
  .rd-sheet--side-l.is-open, .rd-sheet--side-r.is-open { transform: none; }
  .rd-sheet--full, .rd-sheet--pop { top: 5rem; bottom: auto; left: 50%; right: auto; width: min(36rem, 92vw); max-height: calc(100vh - 7rem); margin-left: max(-18rem, -46vw); border-radius: 1rem; transform: translateY(-1rem); opacity: 0; transition: transform .3s var(--ease), opacity .25s, visibility 0s .3s; }
  .rd-sheet--full.is-open, .rd-sheet--pop.is-open { transform: none; opacity: 1; transition: transform .3s var(--ease), opacity .25s, visibility 0s; }
  .rd-sheet--full { height: min(40rem, calc(100vh - 7rem)); }
  .rd-sheet--pop { width: min(24rem, 92vw); margin-left: max(-12rem, -46vw); }
  .rd-grab { display: none; }
}

@container (min-width: 50rem) {
  .rd-entry { max-width: 72rem; }
  .rd-entry--page .rd-switch-view { display: none; }
  .rd-entry--page .rd-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 2.5rem; align-items: start; }
  .rd-entry--page .rd-cols[data-view] .rd-text, .rd-entry--page .rd-cols[data-view] .rd-page { display: block; }
  .rd-entry--page .rd-page { position: sticky; top: 1.5rem; }
}

@media (min-width: 1100px) {
  .rd-datebtn { display: none; }
  .rd-body { display: grid; grid-template-columns: 19rem minmax(0, 1fr) 21rem; grid-template-rows: minmax(0, 1fr); }
  .rd-body > * { min-height: 0; }
  .rd-sheet--side-l, .rd-sheet--side-r { position: relative; inset: auto; width: auto; z-index: 1; transform: none; visibility: visible; transition: none; box-shadow: none; border-radius: 0; }
  .rd-cal { background: linear-gradient(180deg, #4b1b13 0%, #3a150e 55%, #2e100a 100%); color: var(--cream); border-right: 1px solid rgba(220,161,93,.45); }
  .rd-info { background: linear-gradient(180deg, #fffaf0, #f6eddc); border-left: 1px solid var(--line); }
  .rd-cal .rd-sheet__head, .rd-info .rd-sheet__head .rd-close, .rd-cal .rd-close { display: none; }
  .rd-info .rd-sheet__head { padding: 1.125rem 1.25rem .875rem; }
  .rd-info .rd-sheet__head h2 { font-family: var(--f-nav); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
  .rd-cal__scroll { padding: 1.25rem 1.125rem 2rem; }
  .rd-months { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .rd-months button { height: 2rem; padding: 0 .625rem; background: rgba(255,248,236,.06); border-color: rgba(220,161,93,.3); color: rgba(245,239,230,.85); }
  .rd-months button:hover { border-color: var(--gold); color: #fff; }
  .rd-months button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #3a150e; }
  .rd-month__title { color: #f6cf98; }
  .rd-grid__wd { color: rgba(245,239,230,.55); }
  .rd-day-cell { min-height: 0; font-size: 1rem; color: rgba(245,239,230,.35); }
  button.rd-day-cell { background: rgba(255,248,236,.07); color: #fff8ec; box-shadow: inset 0 0 0 1px rgba(220,161,93,.2); }
  .rd-day-cell:hover { background: rgba(220,161,93,.25); }
  .rd-day-cell.is-cur { background: var(--gold); color: #3a150e; }
  .rd-day-cell.is-cur::after { background: #3a150e; }
  .rd-cal-key { color: rgba(245,239,230,.6); }
  .rd-list, .rd-list li + li { border-color: rgba(220,161,93,.18); }
  .rd-list__title { color: var(--gold); }
  .rd-list button:hover { background: rgba(220,161,93,.12); }
  .rd-list button.is-cur { background: rgba(220,161,93,.2); box-shadow: inset 3px 0 0 var(--gold); }
  .rd-list b { color: #e3b277; }
  .rd-list span { color: rgba(245,234,218,.78); }
  .rd-cal ::-webkit-scrollbar-thumb { background: rgba(220,161,93,.4); }
  .rd-cal__scroll { padding-bottom: 5rem; }
  .rd-info__body { padding-bottom: 5.5rem; }
}

.rd-opts__link { width: 100%; text-align: left; }
.rd-opts__link--next { margin-top: .5rem; }

.rd-dock { position: fixed; right: 1.125rem; bottom: 1.125rem; z-index: 25; display: none; gap: .625rem; }
.rd-dock__btn { position: relative; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: #3a150e; color: #fff8ec; border: 1px solid rgba(220,161,93,.45); box-shadow: 0 .5rem 1.25rem rgba(30,10,6,.35); text-decoration: none; transition: background-color .2s, color .2s, transform .25s var(--ease); }
.rd-dock__btn svg { width: 1.25rem; height: 1.25rem; }
.rd-dock__btn:hover, .rd-dock__btn:focus-visible { background: var(--gold); color: #3a150e; transform: translateY(-2px); }
.rd-dock__tip { position: absolute; right: 0; bottom: calc(100% + .625rem); padding: .375rem .75rem; border-radius: 1rem; background: #fffaf0; color: var(--ink); font-family: var(--f-nav); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 .375rem 1rem rgba(30,10,6,.25); opacity: 0; transform: translateY(.25rem); pointer-events: none; transition: opacity .2s, transform .2s; }
.rd-dock__btn:hover .rd-dock__tip, .rd-dock__btn:focus-visible .rd-dock__tip { opacity: 1; transform: none; }
@media (min-width: 1100px) { .rd-dock { display: flex; } }

.rd-pscrim { position: fixed; inset: 0; z-index: 70; background: rgba(25,6,4,.5); opacity: 0; pointer-events: none; transition: opacity .25s; }
.rd-pscrim.is-on { opacity: 1; pointer-events: auto; }
.rd-panel { position: fixed; z-index: 71; left: 50%; top: 50%; width: calc(100vw - 2.5rem); max-width: 110rem; height: calc(100vh - 2.5rem); height: calc(100dvh - 2.5rem); display: flex; flex-direction: column; overflow: hidden; background: #fdfbf7; border-radius: 1.25rem; box-shadow: 0 1.875rem 5rem rgba(20,4,2,.45); opacity: 0; transform: translate(-50%, -50%) scale(.96); transition: opacity .2s, transform .35s var(--ease); }
.rd-fs { white-space: nowrap; display: inline-flex; align-items: center; gap: .5rem; height: 2.75rem; padding: 0 1rem; border: 0; border-radius: 1.5rem; background: #f1ede4; color: var(--ink); font-family: var(--f-nav); font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s; }
.rd-fs:hover { background: #e7e1d4; }
.rd-fs svg { width: 1.125rem; height: 1.125rem; flex: none; }
.rd-fs__out { display: none; }
.rd-panel.is-full .rd-fs { background: var(--red-brand); color: #fff8ec; }
.rd-panel.is-full .rd-fs__in { display: none; }
.rd-panel.is-full .rd-fs__out { display: block; }
.rd-panel.is-full, .rd-panel.is-on.is-full { left: 0; top: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; border-radius: 0; transform: none; z-index: 90; }
.rd-panel.is-full .rd-panel__head { padding: max(.625rem, env(safe-area-inset-top)) 1rem .625rem; }
.rd-panel.is-full .rd-panel__eyebrow { display: none; }
.rd-panel.is-full .rd-panel__head h2 { font-size: 1.375rem; }
.rd-panel.is-full .rd-panel__body { padding: 0 0 env(safe-area-inset-bottom); }
.rd-panel.is-full .rd-panel__body iframe { border-radius: 0; }
.rd-panel:fullscreen { left: 0; top: 0; width: 100vw; height: 100vh; transform: none; border-radius: 0; }
.rd-panel[hidden] { display: none; }
.rd-panel.is-on { opacity: 1; transform: translate(-50%, -50%); }
.rd-panel__head { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; padding: 1.25rem 1.75rem .875rem; }
.rd-panel__eyebrow { font-family: var(--f-nav); font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.rd-panel__head h2 { margin-top: .25rem; font-family: var(--f-serif); font-weight: 500; font-size: 1.875rem; line-height: 1.2; color: var(--red-brand); }
.rd-panel__tools { display: flex; align-items: center; gap: .75rem; }
.rd-tabs { display: flex; gap: .25rem; padding: .25rem; border-radius: 1.875rem; background: #f1ede4; }
.rd-tabs button { border-radius: 1.5rem; padding: .5rem .9375rem; font-family: var(--f-nav); font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.rd-tabs button.is-on { background: var(--red-brand); color: var(--cream); }
.rd-panel__x { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: #f1ede4; color: var(--ink); transition: transform .3s var(--ease), background-color .2s; }
.rd-panel__x:hover { background: #e7e1d4; transform: rotate(90deg); }
.rd-panel__x svg { width: .875rem; height: .875rem; }
.rd-panel__body { flex: 1; min-height: 0; display: flex; padding: 0 1.25rem 1.25rem; }
.rd-panel__body iframe { flex: 1; width: 100%; height: 100%; border: 0; border-radius: .875rem; background: #f3efe8; display: block; }
.rd-map { position: relative; flex: 1; border-radius: .875rem; overflow: hidden; background: #f9f8f4; box-shadow: inset 0 0 0 1px #ece4d8; cursor: grab; touch-action: none; }
.rd-map.is-grabbing { cursor: grabbing; }
.rd-map__inner { position: absolute; left: 50%; top: 50%; width: 2000px; height: 1000px; transform-origin: 0 0; will-change: transform; }
.rd-map__inner img { width: 100%; height: 100%; user-select: none; display: block; }
.rd-map__ctl { position: absolute; right: 1rem; bottom: 1rem; display: flex; gap: .5rem; z-index: 3; }
.rd-map__ctl .rd-map__grp { flex-direction: row; }
.rd-map__ctl .rd-map__grp button + button { border-top: 0; border-left: 1px solid #eee; }
.rd-map__hint { position: absolute; left: 1rem; bottom: 1rem; z-index: 3; padding: .4rem .8rem; border-radius: 1rem; background: rgba(255,255,255,.92); box-shadow: 0 .25rem .875rem rgba(0,0,0,.1); font-size: .8125rem; color: #5e4d47; pointer-events: none; transition: opacity .3s; }
.rd-map.is-zoomed .rd-map__hint { opacity: 0; }
.rd-map__grp { display: flex; flex-direction: column; overflow: hidden; border-radius: .625rem; background: #fff; box-shadow: 0 .25rem .875rem rgba(0,0,0,.1); }
.rd-map__grp button { width: 2.75rem; height: 2.75rem; background: #fff; display: grid; place-items: center; color: #3a2a27; }
.rd-map__grp button + button { border-top: 1px solid #eee; }
.rd-map__grp button:hover { background: #f6f3ee; }
.rd-map__grp button svg { width: .875rem; height: .875rem; }
.rd-map__grp .rd-map__reset svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 759px) {
  .rd-panel { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .rd-panel__head { flex-direction: column; align-items: flex-start; padding: 1rem 1rem .75rem; }
  .rd-panel__tools { width: 100%; justify-content: space-between; }
  .rd-panel__body { padding: 0 .5rem .5rem; }
}

@media (min-width: 1100px) {
  html { font-size: clamp(13.5px, calc(.42vw + 7.9px), 16px); }
  .rd-body { grid-template-columns: clamp(15.5rem, 17vw, 19rem) minmax(0, 1fr) clamp(17rem, 19vw, 21rem); }
  .rd-cal__scroll { padding: 1.125rem 1rem 5rem; }
  .rd-months { gap: .3125rem; }
  .rd-months button { height: 1.875rem; padding: 0 .5625rem; font-size: .75rem; letter-spacing: .08em; }
  .rd-entry { padding: clamp(1.5rem, 2.2vw, 2.25rem) clamp(1.5rem, 2.4vw, 2.5rem) 2.5rem; }
  .rd-entry--page .rd-cols { gap: clamp(1.5rem, 2.4vw, 2.5rem); }
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(143,92,28,.35); border-radius: 6px; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media (max-width: 760px) { .rd-fs { padding: 0 .875rem; gap: .375rem; } }
@media (max-width: 760px) {
  .rd-panel.is-full .rd-panel__head { position: absolute; top: 0; right: 0; left: auto; z-index: 3; width: auto; padding: max(.625rem, env(safe-area-inset-top)) .625rem 0 0; background: none; }
  .rd-panel.is-full .rd-panel__head > div:first-child, .rd-panel.is-full .rd-tabs, .rd-panel.is-full .rd-panel__x { display: none; }
  .rd-panel.is-full .rd-panel__tools { width: auto; }
  .rd-panel.is-full .rd-fs { height: 2.75rem; padding: 0 1rem; box-shadow: 0 .5rem 1.25rem rgba(30,8,4,.35); }
  .rd-panel.is-full .rd-panel__body { padding: 0; }
}
.rd-printed__body .acct-table { min-width: 28rem; }