a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
a:hover,a:focus{color:var(--ink)}
:root{--party-friends-light:#654730;--party-friends-dark:#c6a17a;--party-company-light:#7d8253;--party-company-dark:#c4cc96;--party-bilbo-sam-light:#55735f;--party-bilbo-sam-dark:#d6aa86;--party-hunters-light:#14453d;--party-hunters-dark:#a7c0a8;--party-merry-light:#6f789c;--party-merry-dark:#b5bfdf;}
*{box-sizing:border-box}:root{--ink:#29251f;--muted:#70685c;--paper:#f7f3e9;--panel:#fffdf7;--line:#d8cfbd}body{margin:0;background:var(--paper);color:var(--ink);font-family:Georgia,serif;line-height:1.55}.app{width:min(820px,calc(100% - 28px));margin:auto;padding:30px 0 0}header{text-align:center;margin-bottom:25px}.eyebrow,label{font:600 12px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}h1{font-size:clamp(32px,6vw,50px);font-weight:500;margin:5px 0}.control{display:flex;gap:10px;align-items:center;justify-content:center;margin:20px 0 30px}select{padding:9px 12px;background:var(--panel);border:1px solid var(--line);border-radius:5px;font:15px Georgia,serif}.day{text-align:center;margin:25px}.entry{background:var(--panel);border:1px solid var(--line);border-radius:7px;padding:22px;margin:0 0 22px}.party{font-size:22px}.meta{color:var(--muted);font-size:15px}.lines{margin:17px 0;padding:12px 16px;border-left:3px solid var(--line);font-style:italic}.line-label{display:block;font:600 10px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}details{border-top:1px solid var(--line);padding-top:14px}summary{cursor:pointer;font:600 13px system-ui,sans-serif}.background,.empty{padding:20px;background:#eee9dd;border-radius:7px;margin-bottom:22px}.background b{display:block;font:600 11px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin-bottom:6px}.nav{display:grid;grid-template-columns:auto 1fr auto;align-items:center;text-align:center;gap:12px;margin:32px 0}.nav button{white-space:nowrap}.nav small{display:block;color:var(--muted)}@media(max-width:600px){.control{flex-direction:column}.control select{width:100%}}
.no-reading{text-align:center;margin:0 0 22px;color:var(--muted);font-style:italic}

.site-footer{width:min(960px,calc(100% - 28px));margin:48px auto 0;padding-top:24px;border-top:1px solid var(--line);text-align:center;color:var(--muted)}.initiative{font-size:14px;margin-bottom:10px}.society-logo{display:block;width:50px;height:50px;object-fit:cover;margin:0 auto 10px}.copyright{font-size:12px}

.reading-note { margin:18px 0; padding:14px 16px; border:1px solid var(--line); border-left:4px solid var(--ink); border-radius:5px; background:#eee9dd; }
.reading-note-label { margin-bottom:5px; color:var(--ink); font:700 11px system-ui,sans-serif; letter-spacing:.1em; text-transform:uppercase; }
.reading-note .shire-calendar-action{margin-top:8px}
.shire-calendar-action a,.location-preview-link,.on-date-reading-link{color:var(--muted);font:600 13px system-ui,sans-serif;text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:2px}
.shire-calendar-action a:hover,.shire-calendar-action a:focus-visible,.location-preview-link:hover,.location-preview-link:focus-visible,.on-date-reading-link:hover,.on-date-reading-link:focus-visible{color:var(--ink);border-bottom-color:currentColor}

.site-links{margin:18px 0 6px;text-align:center;font:600 13px system-ui,sans-serif;letter-spacing:.04em}.site-links a{color:var(--muted);text-decoration:none}.site-links a:hover,.site-links a:focus{color:var(--ink);text-decoration:underline}.site-links span{margin:0 8px;color:var(--line)}.about-page{max-width:760px}.about-card{margin:34px auto 26px;padding:30px;background:var(--panel);border:1px solid var(--line);border-radius:7px}.about-portrait{display:block;width:170px;height:170px;margin:0 auto 24px;object-fit:cover;object-position:center 30%;border-radius:50%;border:1px solid var(--line)}.about-copy{max-width:590px;margin:0 auto}.about-copy h2{margin:0 0 14px;text-align:center;font-size:26px;font-weight:500}.about-copy p{margin:0 0 16px}.about-links{margin-top:26px}@media(max-width:600px){.about-card{padding:24px 20px}.about-portrait{width:145px;height:145px}}

.bio-action {
  margin-top: 24px;
  text-align: center;
}
.society-button {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 8px;
  background: #9a6748;
  color: #fff;
  font: 600 13px system-ui, sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
  transition: opacity .15s ease, transform .15s ease;
}
.society-button:hover,
.society-button:focus {
  color: #fff;
  text-decoration: none;
  opacity: .9;
}
.society-button:active {
  transform: translateY(1px);
}
.timeline-card {
  margin-top: 30px;
}
.placeholder-copy {
  color: var(--muted);
  font-style: italic;
}

.journey-timeline{
  margin-top:20px;
  padding-top:17px;
  border-top:1px solid var(--line);
}
.journey-labels{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-bottom:9px;
  color:var(--muted);
  font:600 11px system-ui,sans-serif;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.journey-labels span:last-child{text-align:right}
.journey-track{
  position:relative;
  height:18px;
  margin:0 7px;
}
.journey-track::before{
  content:"";
  position:absolute;
  left:0;right:0;top:8px;
  height:2px;
  background:var(--line);
}
.journey-progress{
  position:absolute;
  left:0;top:8px;
  height:2px;
  background:var(--ink);
}
.journey-dot{
  position:absolute;
  top:3px;
  width:12px;height:12px;
  border-radius:50%;
  background:var(--ink);
  border:2px solid var(--panel);
  transform:translateX(-50%);
  box-shadow:0 0 0 1px var(--ink);
}

.read-control{
  display:flex;
  align-items:center;
  gap:9px;
  width:max-content;
  max-width:100%;
  margin-top:18px;
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:8px;
  cursor:pointer;
  color:var(--muted);
  font:600 12px system-ui,sans-serif;
}
.read-control input{
  width:16px;height:16px;
  accent-color:#9a6748;
}
.read-control:has(input:checked){
  color:var(--ink);
  background:color-mix(in srgb,#9a6748 6%,var(--panel));
}
.reading-progress{
  margin:18px 0 4px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:10px;
}
.progress-copy{
  display:flex;
  justify-content:space-between;
  gap:14px;
  margin-bottom:8px;
  color:var(--muted);
  font:600 11px system-ui,sans-serif;
  letter-spacing:.02em;
}
.progress-track{
  height:5px;
  overflow:hidden;
  border-radius:999px;
  background:var(--line);
}
.progress-track span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:#9a6748;
}

/* Reading control: top-right of each reading card */
.entry{position:relative}
.entry .read-control{
  position:absolute;
  top:16px;
  right:16px;
  margin:0;
  z-index:1;
}
.entry .read-control + *{
  padding-right:118px;
}
.share-day{
  display:block;
  margin:14px auto 8px;
  padding:9px 14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:transparent;
  color:var(--muted);
  font:600 12px system-ui,sans-serif;
  cursor:pointer;
}
.share-day:hover{color:var(--ink);background:var(--button-dim)}

.calendar-export{margin:24px auto 0;padding:20px;text-align:center;max-width:560px;background:var(--panel);border:1px solid var(--line);border-radius:12px}
.calendar-export h2{font-size:21px;font-weight:500;margin:0 0 14px}
.calendar-export .secondary-action{max-width:100%;white-space:normal;line-height:1.4}
.calendar-export p{margin:12px auto 0;max-width:450px;color:var(--muted);font:13px/1.55 system-ui,sans-serif}
.calendar-key{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:18px;
  margin:22px 0 28px;
  color:var(--muted);
  font:600 11px system-ui,sans-serif;
}
.calendar-key span{display:flex;align-items:center;gap:6px}
.calendar-edition{max-width:420px;margin:24px auto 0;flex-wrap:wrap}
.calendar-key > span{max-width:100%}
.calendar-key > span > span[id]{display:block;line-height:1.5}
.calendar-time-note{max-width:42rem;margin:0 auto 1.5rem;text-align:center;line-height:1.5;color:var(--muted)}
.key-length{display:inline-block;flex:none;width:8px;height:8px;border:1px solid var(--ink);border-radius:50%;box-sizing:border-box}
.key-length.quite-long{background:#9a6748;border-color:#9a6748}

.calendar-months{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  margin:0 auto 30px;
}
.calendar-month{
  padding:18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
}
.calendar-month h2{
  margin:0 0 14px;
  text-align:center;
  font-size:18px;
}
.month-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:5px;
}
.cal-weekday{
  padding:2px 0 5px;
  text-align:center;
  color:var(--muted);
  font:600 9px system-ui,sans-serif;
  text-transform:uppercase;
}
.cal-empty{aspect-ratio:1}
.cal-day{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  aspect-ratio:1;
  border:1px solid var(--line);
  border-radius:50%;
  color:var(--ink);
  text-decoration:none;
  font:600 11px system-ui,sans-serif;
}
.cal-day.reading{
  border-color:#9a6748;
  box-shadow:inset 0 -3px 0 #9a6748;
}
.cal-day.complete{
  background:#9a6748;
  border-color:#9a6748;
  color:#fff;
}
.cal-day.none{
  color:var(--muted);
  opacity:.58;
}
.cal-day:hover,.cal-day:focus{
  outline:2px solid #9a6748;
  outline-offset:2px;
}
@media(max-width:650px){
  .calendar-months{grid-template-columns:1fr}
  .entry .read-control{
    position:static;
    margin:0 0 14px auto;
  }
  .entry .read-control + *{padding-right:0}
}

.date-heading-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:4px;
}
.date-heading-row h2{
  margin-bottom:0;
}
.share-day.share-day-top{
  flex:0 0 auto;
  display:inline-block;
  margin:0;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:transparent;
  color:var(--muted);
  font:600 11px system-ui,sans-serif;
  white-space:nowrap;
}
.share-day.share-day-top:hover,
.share-day.share-day-top:focus{
  color:var(--ink);
  background:var(--button-dim);
}
@media(max-width:520px){
  .date-heading-row{
    align-items:flex-start;
    flex-direction:column;
    gap:9px;
  }
}

.share-day.share-day-lower{
  display:block;
  width:max-content;
  margin:14px auto;
}

.share-day.share-day-lower{
  margin-bottom:26px;
}
.off-season{
  text-align:center;
}

.day-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:0 auto 26px;
}
.day-actions .share-day.share-day-lower{margin:0}
.secondary-action{
  padding:9px 14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
  color:var(--muted);
  font:600 12px system-ui,sans-serif;
  cursor:pointer;
}
.secondary-action:hover,.secondary-action:focus{
  color:var(--ink);
  background:var(--button-dim);
}
.progress-transfer-body{
  padding-top:12px;
  text-align:center;
}
.progress-transfer-body p{
  max-width:590px;
  margin:0 auto 14px;
  color:var(--muted);
  font-size:14px;
}
.qr-panel{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--line);
}
.qr-code{
  width:min(280px,80vw);
  margin:0 auto 12px;
  padding:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
}
.qr-code svg{display:block;width:100%;height:auto}
.qr-help{font-size:12px!important}

.catchup-dialog{
  width:min(620px,calc(100vw - 32px));
  max-height:80vh;
  padding:0;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  color:var(--ink);
}
.catchup-dialog::backdrop{background:rgba(0,0,0,.32)}
.catchup-dialog-inner{position:relative;padding:24px}
.catchup-dialog h2{text-align:center;margin:0 34px 8px}
.catchup-intro{text-align:center;color:var(--muted);margin:0 auto 18px}
.dialog-close{
  position:absolute;right:12px;top:10px;border:0;background:transparent;
  color:var(--muted);font-size:25px;line-height:1;cursor:pointer
}
.catchup-item{
  display:grid;
  grid-template-columns:8.5rem minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px 0;
  border-top:1px solid var(--line);
}
.catchup-date{font-weight:700}
.catchup-reading{color:var(--muted);font-size:13px}
.catchup-go{white-space:nowrap}
@media(max-width:560px){
  .catchup-item{grid-template-columns:1fr}
  .catchup-go{width:max-content}
}

:root{--user-font-scale:1}
html{font-size:calc(100% * var(--user-font-scale))}
.accessibility-controls{position:fixed;top:14px;left:14px;z-index:1000;font-family:system-ui,sans-serif}
.accessibility-toggle{width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--ink);box-shadow:0 2px 10px rgba(0,0,0,.08);font:700 14px system-ui,sans-serif;cursor:pointer;display:grid;place-items:center}
.menu-icon{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.accessibility-panel{width:245px;margin-top:8px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);box-shadow:0 8px 24px rgba(0,0,0,.14)}
.text-size-control>span,.theme-control legend{display:block;margin-bottom:8px;color:var(--muted);font:700 10px system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase}
.text-size-row{display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center}.text-size-row input{width:100%;accent-color:#9a6748}.size-small{font-size:12px}.size-large{font-size:19px}
.theme-control{border:0;padding:0;margin:15px 0 0}.theme-options{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.theme-options button{padding:7px;border:1px solid var(--line);border-radius:7px;background:transparent;color:var(--muted);font:600 11px system-ui,sans-serif;cursor:pointer}.theme-options button.active{background:#9a6748;border-color:#9a6748;color:#fff}
.detailed-options-button{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:16px;padding:11px 2px 1px;border:0;border-top:1px solid var(--line);background:none;color:var(--ink);font:600 12px system-ui,sans-serif;text-align:left;cursor:pointer}
.detailed-options-button span{font-size:22px;line-height:1}.detailed-options-button:hover{text-decoration:underline;text-underline-offset:3px}
.detailed-options-dialog{width:min(490px,calc(100vw - 32px))}
.detailed-settings-list{display:grid;margin-top:22px;border-top:1px solid var(--line)}
.detailed-setting{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:17px 0;border-bottom:1px solid var(--line);color:var(--ink);cursor:pointer;text-align:left;text-transform:none;letter-spacing:normal}
.detailed-setting strong{display:block;font:600 15px/1.35 system-ui,sans-serif;color:var(--ink)}
.detailed-setting small{display:block;margin-top:5px;font:12px/1.45 system-ui,sans-serif;color:var(--muted)}
.detailed-setting input{flex:none;width:19px;height:19px;margin:2px 0 0;accent-color:#9a6748;cursor:pointer}
.spoiler-confirm-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:25px}
html[data-hide-subtitles="true"] .day-subheading,html[data-hide-spoilers="true"] .day-subheading,html[data-hide-spoilers="true"] .milestone-badge,html[data-hide-milestones="true"] .milestone-badge{display:none}
html[data-hide-spoilers="true"] .milestone-day,html[data-hide-spoilers="true"][data-theme="dark"] .milestone-day,html[data-hide-milestones="true"] .milestone-day,html[data-hide-milestones="true"][data-theme="dark"] .milestone-day{padding:0;border:0;border-radius:0;background:none}
html[data-hide-spoilers="true"] .journey-timeline,html[data-hide-timelines="true"] .journey-timeline{display:none}
html[data-hide-moon="true"] .moon-phase{display:none}
.background-disclosure{margin:0 0 14px;padding:0;border:0}
.background-disclosure summary{width:max-content;max-width:100%;padding:3px 0;color:var(--muted);font:600 12px system-ui,sans-serif;cursor:pointer;list-style:none}
.background-disclosure summary::-webkit-details-marker{display:none}
.background-disclosure summary::before{content:"▸";display:inline-block;margin-right:7px;transition:transform .15s ease}
.background-disclosure[open] summary::before{transform:rotate(90deg)}
.background-disclosure summary:hover,.background-disclosure summary:focus-visible{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.background-disclosure .background{margin:9px 0 0}
#content.hide-completed-readings .entry:has(.read-toggle:checked){display:none}
#content.hide-completed-readings .internal-date-heading:has(+ .entry .read-toggle:checked){display:none}
.completed-readings-toggle{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 19px;padding:10px 14px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--muted);font:12px system-ui,sans-serif}
.completed-readings-toggle button{margin-left:auto}
html[data-reduce-motion="true"] *,html[data-reduce-motion="true"] *::before,html[data-reduce-motion="true"] *::after{animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
html[data-reduce-motion="true"] .journey-complete-dialog[open] .journey-letter{animation:none!important;opacity:1!important}
html[data-timeline-colors="true"] .journey-timeline.route-friends{--route-color:var(--party-friends-light)}
html[data-timeline-colors="true"] .journey-timeline.route-strider{--route-color:var(--party-friends-light)}
html[data-timeline-colors="true"] .journey-timeline.route-ring{--route-color:var(--party-bilbo-sam-light)}
html[data-timeline-colors="true"] .journey-timeline.route-west{--route-color:var(--party-hunters-light)}
html[data-timeline-colors="true"] .journey-timeline.route-merry{--route-color:var(--party-merry-light)}
html[data-timeline-colors="true"] .journey-timeline.route-shared{--route-color:var(--shared-route)}
html[data-timeline-colors="true"] .journey-timeline .journey-labels{color:var(--route-color)}
html[data-timeline-colors="true"] .journey-timeline .journey-track::before{background:color-mix(in srgb,var(--route-color) 30%,var(--line))}
html[data-timeline-colors="true"] .journey-timeline .journey-progress,html[data-timeline-colors="true"] .journey-timeline .journey-dot{background:var(--route-color)}
html[data-timeline-colors="true"] .journey-timeline .journey-dot{box-shadow:0 0 0 1px var(--route-color)}
html[data-theme="dark"][data-timeline-colors="true"] .journey-timeline.route-friends{--route-color:var(--party-friends-dark)}
html[data-theme="dark"][data-timeline-colors="true"] .journey-timeline.route-strider{--route-color:var(--party-friends-dark)}
html[data-theme="dark"][data-timeline-colors="true"] .journey-timeline.route-ring{--route-color:var(--party-bilbo-sam-dark)}
html[data-theme="dark"][data-timeline-colors="true"] .journey-timeline.route-west{--route-color:var(--party-hunters-dark)}
html[data-theme="dark"][data-timeline-colors="true"] .journey-timeline.route-merry{--route-color:var(--party-merry-dark)}
html[data-theme="dark"]{--ink:#eee8db;--muted:#bcb3a3;--line:#514c43;--panel:#292824;background:#1d1c19;color-scheme:dark}
html[data-theme="dark"] body{background:#1d1c19;color:var(--ink)}
html[data-theme="dark"] .entry,html[data-theme="dark"] .background,html[data-theme="dark"] .reading-note,html[data-theme="dark"] .calendar-month,html[data-theme="dark"] .reading-progress{background:#292824}
html[data-theme="dark"] a{color:var(--muted)}
.site-footer>.site-links{margin-bottom:18px}
.site-footer .site-links a[href="timeline-notes.html"]{white-space:nowrap}
.accessibility-controls{transition:opacity .18s ease,visibility .18s ease,transform .18s ease}
.accessibility-controls.scrolled-away{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-8px)}
.site-footer .initiative{margin-top:8px}

.society-footer-block{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.society-footer-block .initiative{
  margin:8px 0 0;
}
.society-footer-block .copyright{
  margin-top:6px;
  margin-bottom:20px;
}

#prev,#next{font:600 12px system-ui,sans-serif}

.internal-date-heading{margin:34px 0 14px;padding-bottom:9px;border-bottom:1px solid var(--line);font-size:20px;font-weight:500;line-height:1.3}
.internal-date-heading span{display:inline-block;margin-left:7px;color:var(--muted);font:600 11px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.08em}

.journey-location .journey-labels{justify-content:center;text-align:center}
.journey-location .journey-track::before{display:none}

.day-subheading{margin:-5px 0 15px;color:var(--muted);font-size:clamp(14px,2.2vw,17px);font-style:italic;line-height:1.35}

.progress-transfer-link{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:4px;text-align:center;margin:-8px 0 28px}
.progress-transfer-link button{border:0;background:none;padding:5px;color:var(--muted);font:600 12px system-ui,sans-serif;text-decoration:none;cursor:pointer}
.progress-transfer-link button:hover,.progress-transfer-link button:focus{color:var(--ink)}
.progress-transfer-link span{color:var(--muted)}
.erase-progress-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.erase-progress-confirm{padding:9px 14px;border:1px solid #9e302a;border-radius:8px;background:#a9342e;color:#fff;font:600 12px system-ui,sans-serif;cursor:pointer}
.erase-progress-confirm:hover,.erase-progress-confirm:focus{background:#84241f;border-color:#84241f}
#progressTransferDialog .progress-transfer-body{padding-top:8px}

.top-date-nav{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}
.top-date-nav h2{margin:0}
.top-date-nav .top-prev{justify-self:start}
.top-date-nav .top-next{justify-self:end}
.top-date-nav + .day-subheading{margin:7px 0 15px}
.top-date-nav button{white-space:nowrap;font:600 12px system-ui,sans-serif}
.day{margin:25px 0}
@media(max-width:480px){.top-date-nav{gap:7px}.top-date-nav button{padding:8px 7px;font-size:11px}.top-date-nav h2{font-size:clamp(19px,5vw,26px)}}

.background-party{padding:20px;margin-bottom:22px}
.background-party h3{margin:2px 0 0;font-size:20px;font-weight:500}
.background-party .journey-timeline{margin-top:15px}

/* Calendar dates outside the reading year use the quiet Share this day palette. */
.cal-day.offseason{color:var(--muted);background:transparent;border-color:var(--line);font-weight:500}

.timeline-copy section + section{margin-top:34px}
.timeline-copy h2{text-align:left;margin:0 0 14px}
.timeline-copy section p:last-child{margin-bottom:0}

.reading-note p{margin:0}
.reading-note p+p{margin-top:12px}

/* A schematic view of the journey. Dates, rather than spacing, convey time. */
:root{--shared-route:var(--party-company-light);--map-stop-border:var(--party-friends-light)}
html[data-theme="dark"]{--shared-route:var(--party-company-dark);--map-stop-border:var(--party-friends-dark)}
.journey-page{width:min(1000px,calc(100% - 28px))}
.journey-page header{max-width:760px;margin:0 auto 28px}
.journey-intro,.journey-footnote{max-width:670px;margin:0 auto 22px;text-align:center;color:var(--muted)}
.journey-key{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 22px;margin:0 auto 24px;color:var(--muted);font:600 11px system-ui,sans-serif}
.journey-key span{display:flex;align-items:center;gap:7px}
.route-swatch{display:inline-block;width:19px;height:3px;border-radius:3px;background:var(--shared-route)}
.route-swatch.friends{background:var(--party-friends-light)}.route-swatch.strider{background:var(--party-friends-light)}.route-swatch.ring{background:var(--party-bilbo-sam-light)}.route-swatch.west{background:var(--party-hunters-light)}.route-swatch.merry{background:var(--party-merry-light)}
.route-swatch.gandalf{background:var(--party-merry-light)}
.journey-map-scroll{overflow-x:auto;overscroll-behavior-inline:contain;background:var(--panel);border:1px solid var(--line);border-radius:12px}
.journey-map-scroll:focus-visible{outline:2px solid #9a6748;outline-offset:3px}
.journey-map{display:block;width:100%;height:auto;min-width:780px}
.journey-map .route{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.journey-map .route.shared{stroke:var(--shared-route)}
.journey-map .route.friends{stroke:var(--party-friends-light)}
.journey-map .route.strider{stroke:var(--party-friends-light)}
.journey-map .route.ring{stroke:var(--party-bilbo-sam-light)}
.journey-map .route.west{stroke:var(--party-hunters-light)}
.journey-map .route.merry{stroke:var(--party-merry-light)}
.journey-map .route.gandalf{stroke:var(--party-merry-light)}
.journey-map .map-stop rect{fill:var(--panel);stroke:var(--map-stop-border);stroke-width:2;transition:fill .15s ease,stroke-width .15s ease}
.journey-map .map-stop:hover rect,.journey-map .map-stop:focus rect{fill:var(--paper);stroke-width:3}
.journey-map .map-stop:focus{outline:none}
.journey-map text{pointer-events:none}
.journey-map .place{fill:var(--ink);font:19px Georgia,serif}
.journey-map .stop-date{fill:var(--muted);font:600 10px system-ui,sans-serif;letter-spacing:.07em}
.journey-map .arrivals .stop-date{text-transform:uppercase}
.journey-map .compact .place{font-size:16px}
.journey-map .compact .stop-date{font-size:9px}
.journey-map .map-overline,.journey-map .branch-note{fill:var(--muted);font:700 12px system-ui,sans-serif;letter-spacing:.11em}
.journey-map .branch-note{font-size:10px}
.journey-map .map-overline,.journey-map .branch-note{paint-order:stroke fill;stroke:var(--panel);stroke-width:8px;stroke-linejoin:round}
.journey-map .friends-text{fill:var(--party-friends-light)}.journey-map .strider-text{fill:var(--party-friends-light)}
.journey-map .trunk-label{font-size:10px}
.journey-map .ring-text{fill:var(--party-bilbo-sam-light)}.journey-map .west-text{fill:var(--party-hunters-light)}.journey-map .merry-text{fill:var(--party-merry-light)}.journey-map .gandalf-text{fill:var(--party-merry-light)}
.journey-map .map-caption{fill:var(--muted);font:italic 14px Georgia,serif}
.journey-footnote{margin-top:20px;font-size:14px}
.journey-footnote a{color:var(--ink);text-underline-offset:3px}
.journey-swipe-hint{display:none}
@media(max-width:800px){
  .journey-map{width:780px}
  .journey-swipe-hint{display:block;margin:0 0 8px;text-align:center;color:var(--muted);font:11px system-ui,sans-serif}
}
html[data-theme="dark"] .journey-map-scroll{background:var(--panel)}
html[data-theme="dark"] .journey-map .route.friends{stroke:var(--party-friends-dark)}
html[data-theme="dark"] .journey-map .route.strider{stroke:var(--party-friends-dark)}
html[data-theme="dark"] .journey-map .friends-text{fill:var(--party-friends-dark)}
html[data-theme="dark"] .journey-map .strider-text{fill:var(--party-friends-dark)}
html[data-theme="dark"] .journey-map .route.ring{stroke:var(--party-bilbo-sam-dark)}
html[data-theme="dark"] .journey-map .route.west{stroke:var(--party-hunters-dark)}
html[data-theme="dark"] .journey-map .route.merry{stroke:var(--party-merry-dark)}
html[data-theme="dark"] .journey-map .ring-text{fill:var(--party-bilbo-sam-dark)}
html[data-theme="dark"] .journey-map .west-text{fill:var(--party-hunters-dark)}
html[data-theme="dark"] .journey-map .merry-text{fill:var(--party-merry-dark)}
html[data-theme="dark"] .journey-map .gandalf-text{fill:var(--party-merry-dark)}
html[data-theme="dark"] .route-swatch.friends{background:var(--party-friends-dark)}
html[data-theme="dark"] .route-swatch.strider{background:var(--party-friends-dark)}
html[data-theme="dark"] .route-swatch.ring{background:var(--party-bilbo-sam-dark)}
html[data-theme="dark"] .route-swatch.west{background:var(--party-hunters-dark)}
html[data-theme="dark"] .route-swatch.merry{background:var(--party-merry-dark)}

.milestone-day{position:relative;padding:16px 12px 18px;border:1px solid #b78e55;border-radius:10px;background:linear-gradient(135deg,#fbf6e9,#f1e6cd)}
.milestone-day .top-date-nav h2{margin-bottom:2px}
.milestone-badge{display:inline-block;color:#684c27;font:700 10px system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase}
html[data-theme="dark"] .milestone-day{background:#393329;border-color:#ad8759}
html[data-theme="dark"] .milestone-badge{color:#f0d9ae}
.journey-map .compact .place{font-size:19px}
.journey-map .compact .stop-date{font-size:10px}
@media(max-width:650px){
 .journey-page{width:100%;padding:22px 0 0}
 .journey-page header,.journey-intro,.journey-footnote,.journey-key,.journey-swipe-hint{margin-left:18px;margin-right:18px}
 .journey-page header{padding:0 10px}
 .journey-intro{font-size:14px;line-height:1.55}
 .journey-key{justify-content:center;gap:8px 12px;font-size:10px}
 .journey-key span{white-space:normal}
 .journey-map-scroll{border-radius:0;border-left:0;border-right:0;scrollbar-width:thin;scrollbar-color:var(--muted) transparent}
 .journey-map{min-width:900px;width:900px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important;animation-iteration-count:1!important}}

/* Outside-plan dates share the quiet green hover fill used by home buttons. */
.cal-day.offseason{background:var(--button-dim)}
.cal-day.today{position:relative;opacity:1}
.cal-day .cal-length{position:absolute;bottom:4px;left:50%;transform:translateX(-50%);width:6px;height:6px;border:1px solid var(--ink);border-radius:50%;box-sizing:border-box;pointer-events:none}
.cal-day .cal-length.quite-long{background:#9a6748;border-color:#9a6748}
.cal-day.complete .cal-length{border-color:#fff}
.cal-day.complete .cal-length.quite-long{background:#fff}
html[data-theme="dark"] .key-length.quite-long{background:var(--party-bilbo-sam-dark);border-color:var(--party-bilbo-sam-dark)}
html[data-theme="dark"] .cal-day:not(.complete) .cal-length.quite-long{background:var(--party-bilbo-sam-dark);border-color:var(--party-bilbo-sam-dark)}
.cal-day.today::before{content:"";position:absolute;inset:-4px;border:1.5px solid var(--ink);border-radius:50%;opacity:.85;pointer-events:none}
.project-disclaimer,.about-disclaimer{color:var(--muted);font-size:12px;line-height:1.6}
.project-disclaimer{max-width:650px;margin:18px auto 20px}
.about-disclaimer{max-width:650px;margin:0 auto 32px;padding:0 12px}
.about-disclaimer h2{color:var(--ink);font-size:18px;font-weight:500;margin:0 0 9px}
.about-disclaimer p{margin:0 0 10px}

/* Quiet no-reading dates now use the same fill as the home controls on hover. */
.cal-day.none{background:var(--button-dim);opacity:1}
.cal-day.offseason{background:transparent;opacity:.58}
.cal-day.offseason.today{opacity:1}
#progressContainer{margin:0 auto 20px}
#progressContainer .reading-progress{margin:0}
.milestone-day .day-subheading{margin:7px 0 5px}
.milestone-day .milestone-badge{display:block;margin:6px auto 0}
#content > .day.milestone-day{margin-top:8px}
.nav .nav-arrow,.top-date-nav .nav-arrow{
 display:inline-flex;align-items:center;justify-content:center;flex:none;
 width:42px;height:42px;min-width:42px;padding:0;border-radius:50%;
 font:500 28px/1 Georgia,serif;color:var(--ink);
}
.nav .nav-arrow{justify-self:center}
.top-date-nav .nav-arrow.top-prev{justify-self:start}
.top-date-nav .nav-arrow.top-next{justify-self:end}
.acknowledgements-card,.about-disclaimer.about-card{max-width:none;margin:0 auto 22px;padding:30px}
.acknowledgements-card h2,.about-disclaimer.about-card h2{font-size:26px;font-weight:500;text-align:center;margin:0 0 14px}
.acknowledgements-card p{max-width:590px;margin:0 auto 16px}
.acknowledgements-card p:last-child{margin-bottom:0}
.about-disclaimer.about-card{margin-bottom:32px;font-size:inherit;line-height:inherit}
.about-disclaimer.about-card{color:var(--ink)}
.about-disclaimer.about-card p{max-width:590px;margin:0 auto 16px}
@media(max-width:600px){
 .acknowledgements-card,.about-disclaimer.about-card{padding:24px 20px}
 .nav .nav-arrow,.top-date-nav .nav-arrow{width:38px;height:38px;min-width:38px;font-size:26px}
}
#prev.nav-arrow,#next.nav-arrow{font:500 28px/1 Georgia,serif}
@media(max-width:600px){#prev.nav-arrow,#next.nav-arrow{font-size:26px}}

/* Route positions stay legible above both map paths and place names. */
.journey-map .journey-position{pointer-events:none;--position-color:var(--shared-route)}
.journey-map .journey-position.friends{--position-color:var(--party-friends-light)}
.journey-map .journey-position.strider{--position-color:var(--party-friends-light)}
.journey-map .journey-position.ring{--position-color:var(--party-bilbo-sam-light)}
.journey-map .journey-position.west{--position-color:var(--party-hunters-light)}
.journey-map .journey-position.merry{--position-color:var(--party-merry-light)}
.journey-map .journey-position.gandalf{--position-color:var(--party-merry-light)}
.journey-map .position-halo{fill:var(--panel);stroke:var(--position-color);stroke-width:1.5}
.journey-map .position-dot{fill:var(--position-color)}
.journey-map .position-border{fill:none;stroke:var(--position-color);stroke-width:1.5;pointer-events:none}
html[data-theme="dark"] .journey-map .journey-position.ring{--position-color:var(--party-bilbo-sam-dark)}
html[data-theme="dark"] .journey-map .journey-position.friends{--position-color:var(--party-friends-dark)}
html[data-theme="dark"] .journey-map .journey-position.strider{--position-color:var(--party-friends-dark)}
html[data-theme="dark"] .journey-map .journey-position.west{--position-color:var(--party-hunters-dark)}
html[data-theme="dark"] .journey-map .journey-position.merry{--position-color:var(--party-merry-dark)}
html[data-theme="dark"] .journey-map .journey-position.gandalf{--position-color:var(--party-merry-dark)}
html[data-theme="dark"] .journey-map .route.gandalf{stroke:var(--party-merry-dark)}

.home-heading-link{color:inherit;text-decoration:none}
.home-heading-link:hover{text-decoration:underline;text-underline-offset:3px}
.home-heading-link:focus-visible{outline:2px solid #9a6748;outline-offset:4px;border-radius:2px}

.nav-arrow svg{display:block;width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:3.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:600px){.nav-arrow svg{width:27px;height:27px}}

.background .next-reading{margin:16px 0 0;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:.93em;font-style:italic;line-height:1.5}
.background .next-reading + .journey-timeline{margin-top:16px}
.next-reading-only{border:1px solid var(--line);background:var(--panel)}
.next-reading-only .next-reading{margin:0;padding:0;border:0}

.milestone-day .day-subheading.day-subheading-secondary{margin:0 0 6px}

.test-date-banner{position:relative;z-index:100;display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;padding:8px 14px;background:var(--accent-gold);color:#29251f;font:600 12px system-ui,sans-serif;text-align:center}
html .test-date-banner a{color:#70685c;text-decoration:underline}

/* The illustrated closing moment appears on July 26; later completions are simpler. */
.journey-complete-dialog{text-align:center;width:min(490px,calc(100vw - 32px))}
.journey-complete-dialog .catchup-dialog-inner{padding:42px 30px 34px}
.journey-complete-door{display:block;width:160px;height:160px;object-fit:cover;margin:0 auto 26px;mix-blend-mode:multiply}
.journey-complete-dialog:not(.journey-complete-later) h2{font:400 clamp(41px,8vw,56px)/1.38 Bilbo,cursive;margin:0 0 10px;letter-spacing:0;color:#9a6748}
.journey-complete-home{font:400 clamp(39px,7vw,53px)/1.38 Bilbo,cursive;margin:0 0 18px;letter-spacing:0;color:#9a6748}
.journey-complete-note{color:var(--muted);font:15px/1.6 Georgia,serif;margin:0 0 28px}
.journey-complete-actions button:last-child{font:italic 14px Georgia,serif;max-width:100%;white-space:normal}
.journey-complete-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.journey-complete-later h2{font:500 clamp(27px,5vw,36px)/1.18 Georgia,serif;margin:12px 0 32px;color:var(--ink)}
.journey-complete-dialog[open]:not(.journey-complete-later) .journey-complete-door{animation:journey-appear 1.2s ease both}
.journey-complete-dialog[open] .journey-letter{opacity:0;animation:journey-letter-write .12s ease-out var(--write-delay) forwards}
.journey-complete-dialog[open]:not(.journey-complete-later) .journey-complete-note,.journey-complete-dialog[open]:not(.journey-complete-later) .journey-complete-actions{animation:journey-appear 1s ease var(--ending-delay,5.7s) both}
@keyframes journey-letter-write{to{opacity:1}}
@keyframes journey-appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.journey-complete-dialog[open] .journey-complete-door,.journey-complete-dialog[open] .journey-complete-note,.journey-complete-dialog[open] .journey-complete-actions{animation:none}.journey-complete-dialog[open] .journey-letter{animation:none;opacity:1}}
.nav .nav-arrow,.top-date-nav .nav-arrow{width:36px;height:36px;min-width:36px}
.nav-arrow svg{width:21px;height:21px;stroke-width:3.4}
@media(max-width:600px){.nav .nav-arrow,.top-date-nav .nav-arrow{width:34px;height:34px;min-width:34px}.nav-arrow svg{width:20px;height:20px}}

.moon-phase{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 3px;color:var(--muted);font:500 12px/1.45 system-ui,sans-serif}
.moon-phase .moon-icon{font-size:19px;line-height:1}
.moon-phase a{color:inherit;text-decoration:underline;text-underline-offset:2px;font-size:11px}

@font-face{font-family:Caveat;src:url("caveat-medium.ttf") format("truetype");font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:Bilbo;src:url("bilbo-regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}

.moon-phase-button{display:inline-flex;align-items:center;gap:8px;border:0;background:none;color:inherit;font:inherit;cursor:pointer;padding:3px 6px;border-radius:5px}
.moon-phase-button:hover,.reading-time-button:hover,.location-preview-trigger:hover{text-decoration:underline;text-decoration-style:solid;text-underline-offset:3px;color:var(--ink)}
.moon-phase-button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.moon-phase-dialog p{line-height:1.55}
.moon-phase-dialog a{text-underline-offset:3px}
.moon-phase-dialog .shire-calendar-action{margin-top:8px}
#nextReadingLengthMessage{margin:18px 18px 22px;text-align:center;line-height:1.55}
#nextReadingLengthDialog form:last-child{text-align:center}
#nextReadingLengthDialog form:last-child .secondary-action{max-width:100%;white-space:normal;line-height:1.4}

.journey-page .journey-day{max-width:820px;margin:20px auto 24px}
.journey-page .journey-bottom-nav{max-width:820px;margin:28px auto 8px}
@media(max-width:650px){.journey-page .journey-day,.journey-page .journey-bottom-nav{margin-left:18px;margin-right:18px}}

/* Keep the date controls visible while following the dots down the map. */
.journey-page .journey-day{
  position:sticky;top:10px;z-index:15;
  background:var(--panel);border:1px solid var(--line);border-radius:12px;
  padding:8px 14px;box-shadow:0 4px 16px rgba(41,37,31,.08);
}
.journey-page .journey-day.milestone-day{background:linear-gradient(135deg,#fbf6e9,#f1e6cd);border-color:#b78e55;padding:16px 12px 18px}
html[data-theme="dark"] .journey-page .journey-day.milestone-day{background:#393329;border-color:#ad8759}
#journeyMilestoneBadge[hidden]{display:none}
html[data-hide-spoilers="true"] .journey-page .journey-day.milestone-day,
html[data-hide-milestones="true"] .journey-page .journey-day.milestone-day{background:var(--panel);border-color:var(--line);padding:8px 14px}
@media(max-width:650px){.journey-page .journey-day{top:6px;padding:6px 12px}}

/* The arrows should read more quietly than the button outlines and dates. */
.nav-arrow svg{opacity:.58;transition:opacity .15s ease}
.nav-arrow:hover svg,.nav-arrow:focus-visible svg{opacity:.9}

.edition-help{margin:-16px auto 28px;text-align:center}
.edition-help a{font:600 12px system-ui,sans-serif;text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:2px}
.edition-help a:hover,.edition-help a:focus-visible{border-bottom-color:currentColor}
.editions-page{max-width:760px}
.editions-page header p{max-width:590px;margin:10px auto 0}
.edition-card{margin:24px auto;padding:30px}
.edition-card h2{margin:0 0 10px;text-align:center;font-size:26px;font-weight:500}
.edition-card p{max-width:680px;margin:0 auto 22px;text-align:center}
.edition-covers{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;list-style:none;margin:0;padding:0}
.edition-cover-placeholder{display:grid;place-items:center;width:110px;min-height:154px;padding:12px;border:1px dashed var(--line);border-radius:5px;background:var(--paper);color:var(--muted);font:12px/1.4 system-ui,sans-serif;text-align:center}
.edition-cover-year+.edition-cover-year,.edition-cover-variant+.edition-cover-year{margin-top:30px}
.edition-cover-year h3{margin:0 0 16px;text-align:center;color:var(--muted);font:600 13px system-ui,sans-serif}
.edition-cover-year .edition-covers{display:grid;grid-template-columns:repeat(3,minmax(0,115px));gap:14px;align-items:start}
.edition-cover-year.edition-single-cover .edition-covers{display:flex;justify-content:center}
.edition-cover-year.edition-single-cover .edition-covers li{width:115px;max-width:calc((100% - 16px)/3)}
.edition-covers figure{margin:0}
.edition-covers img{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain;border:1px solid var(--line);border-radius:3px}
.edition-covers figcaption{margin-top:7px;color:var(--muted);font:11px/1.35 system-ui,sans-serif;text-align:center}
@media(max-width:520px){.edition-cover-year .edition-covers{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}}
.edition-followup{max-width:590px;margin:30px auto 0;text-align:center;color:var(--muted);font-size:14px;line-height:1.55}
.edition-followup p{margin:0 0 12px}
.edition-followup a{color:var(--muted);text-decoration:none;text-underline-offset:3px}
.edition-followup a:hover,.edition-followup a:focus{color:var(--ink);text-decoration:underline}
@media(max-width:600px){.edition-card{padding:24px 20px}}

/* Let the footer break between page links while keeping each title intact. */
@media(max-width:650px){
 .site-footer .site-links{display:block;max-width:100%;line-height:2;}
 .site-footer .site-links a{display:inline-block;white-space:nowrap;}
 .site-footer .site-links span[aria-hidden="true"]{display:inline;margin:0 6px;}
}

.edition-cover-variant{margin-top:16px}.edition-cover-variant p{margin:0 0 10px;text-align:center;color:var(--muted);font:600 11px system-ui,sans-serif;letter-spacing:.04em}.edition-cover-variant .edition-covers{display:grid;grid-template-columns:repeat(3,minmax(0,115px));gap:14px;align-items:start}@media(max-width:520px){.edition-cover-variant .edition-covers{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}}

.stop-details-dialog .catchup-dialog-inner{max-height:min(75vh,650px);overflow-y:auto}.stop-details-dialog h2{margin:0 30px 2px 0}.stop-details-dialog #stopDetailsSubtitle{color:var(--muted);margin:0 0 18px}.stop-details-intro{font:600 12px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.stop-details-list{display:grid;gap:6px}.stop-details-list a{display:flex;justify-content:space-between;gap:15px;border:1px solid var(--line);border-radius:5px;padding:8px 10px;color:var(--ink);text-decoration:none}.stop-details-list a:hover,.stop-details-list a:focus-visible{background:var(--paper);text-decoration:underline}.stop-details-list span{color:var(--muted);font:12px system-ui,sans-serif}.control select{max-width:min(100%,420px);text-overflow:ellipsis}

.about-intro h2{font-size:26px;font-weight:500;text-align:center;margin:0 0 14px}.about-intro p{max-width:590px;margin:0 auto 16px}.about-intro p:last-child{margin-bottom:0}

.calendar-key .cal-day{width:34px;height:34px;flex:none;pointer-events:none}

.entry:target{outline:none;scroll-margin:40px}

.support-widget{display:flex;justify-content:center;align-items:center;width:100%}.support-widget givebutter-widget{display:block;max-width:100%;margin-inline:auto}.support-widget iframe{display:block;max-width:100%;margin-inline:auto}

.detailed-setting.setting-locked{opacity:.5;cursor:default}.detailed-setting.setting-locked input{cursor:not-allowed}

/* Compact playback in the scrolling date header. */
.journey-playback{margin-top:8px;font-size:.85em}
.journey-playback summary{cursor:pointer;width:fit-content;margin:auto;color:var(--muted)}
.journey-playback-controls{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:8px}
.journey-playback-controls button{min-width:36px;min-height:36px;padding:4px 8px;font-size:1rem;line-height:1}
.journey-playback-controls button:disabled{opacity:.4;cursor:default}
.journey-playback-controls label{margin-left:8px}
.journey-playback-controls select{width:auto;margin:0;padding:5px 7px;font:inherit;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:6px}
.journey-playback-controls select{color:var(--ink)}
#journeyPlaybackStatus{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

#journeyRewind svg{display:block;width:18px;height:18px;margin:auto}

.edition-photo-covers img{aspect-ratio:auto;object-fit:contain}

/* Keep light labels on dark stop backgrounds during hover and keyboard focus. */
html[data-theme="dark"] .journey-map .map-stop:hover rect,
html[data-theme="dark"] .journey-map .map-stop:focus rect{fill:#393329}

.next-reading a{color:inherit;text-decoration:underline;text-underline-offset:3px}.next-reading a:hover{color:var(--ink)}

.day-copy-share{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;margin:0}.day-copy-share .share-day{margin:0}.day-copy-share [hidden]{display:none}#copyReadingsDialog{width:min(650px,calc(100vw - 32px))}#copyReadingsText{width:100%;padding:12px;background:var(--paper);color:var(--ink);border:1px solid var(--line);font:13px/1.5 system-ui,sans-serif}#copyReadingsDialog form{text-align:center;margin-top:15px}

.progress-track{display:flex}.progress-track span{flex:none;border-radius:0}.progress-track .progress-completed{background:#9a6748}.progress-track .progress-due{background:var(--party-hunters-light)}

html[data-theme="dark"] .progress-track .progress-completed{background:var(--party-bilbo-sam-dark)}



.daily-reading-time{margin:14px 0 0;text-align:right;color:var(--muted);font:12px/1.5 system-ui,sans-serif;letter-spacing:.01em}html[data-hide-reading-times="true"] .daily-reading-time{display:none}

.day-copy-share{display:contents}

.bookmark-action { margin: 14px 0 18px; }

.reading-time-button{appearance:none;border:0;background:none;padding:0;color:inherit;font:inherit;letter-spacing:inherit;cursor:pointer}.reading-time-button:focus-visible{outline:1px solid var(--muted);outline-offset:4px;border-radius:2px}

.reading-note .bookmark-action:only-child{margin:0}

.cal-day.partial{background:linear-gradient(135deg, #9a6748 0 50%,var(--panel) 50%);border:1px solid  #9a6748;color:var(--ink)}
.cal-day.partial span{border-radius:50%;background:var(--panel);padding:1px 4px}
.catchup-time,.catchup-total-time{color:var(--muted);font:12px/1.5 system-ui,sans-serif;letter-spacing:.01em}
.catchup-time{margin:5px 0 0}
.catchup-total-time{margin:8px 0 18px}

.departure-countdown{text-align:center;border-top:1px solid var(--line);margin-top:20px;padding-top:20px}
.departure-countdown-kicker{font:600 11px system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.departure-countdown h2{font-size:clamp(23px,5vw,30px);font-weight:normal;line-height:1.3;margin:10px 0}
.departure-countdown-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:18px}

select option.today-date-option{font-weight:700}

.departure-countdown-actions a.secondary-action{text-decoration:none}

/* One fixed SVG map; colors and ink opacity match the daily share cards. */
html{background:var(--paper)}
body{position:relative;z-index:1;background:transparent;isolation:auto}
html::before{content:"";position:fixed;top:-160px;left:-160px;width:var(--map-layer-width,calc(100% + 320px));height:var(--map-layer-height,1600px);z-index:0;pointer-events:none;transform:translateZ(0);backface-visibility:hidden;contain:paint;background-image:url("site-background-map.svg");background-repeat:no-repeat;background-position:var(--map-background-x,center) var(--map-background-y,center);background-size:var(--map-image-size,cover);opacity:.09}
html[data-hide-background-map="true"]::before{display:none}
.site-logo-heading{line-height:1;margin:12px 0 16px}
.site-logo{display:block;width:min(390px,85%);height:auto;margin:0 auto}
.site-logo-small{width:min(245px,70%);margin:0 auto 18px}

html[data-theme="dark"] body{background:transparent}

/* Subtle dark-map contrast, with the original cream unchanged. */
html[data-theme="dark"]::before{opacity:.10;filter:invert(1) grayscale(1) sepia(.35);mix-blend-mode:screen}
/* Reserve the same frame geometry on ordinary and milestone days. */
#content > .day,#content > .day.milestone-day{margin:25px 0;padding:16px 12px 18px;border:1px solid transparent;border-radius:10px}
#content > .day.milestone-day{border-color:#b78e55;background:linear-gradient(135deg,rgba(251,246,233,.72),rgba(241,230,205,.72))}
.milestone-day .top-date-nav h2{margin:0}
html[data-theme="dark"] #content > .day.milestone-day{border-color:#ad8759;background:rgba(57,51,41,.72)}
.journey-page .journey-day.milestone-day{padding:8px 14px;background:linear-gradient(135deg,#fbf6e9,#f1e6cd)}
html[data-theme="dark"] .journey-page .journey-day.milestone-day{background:#393329}
html[data-hide-spoilers="true"] #content > .day,html[data-hide-milestones="true"] #content > .day{padding:16px 12px 18px;border-color:transparent;background:none}
@media(max-width:650px){.journey-page .journey-day.milestone-day{padding:6px 12px}}

select option.today-date-option{font-weight:700}


.edition-cover-year.edition-one-volume-pair .edition-covers{grid-template-columns:repeat(2,minmax(0,115px));justify-content:center;gap:24px}
.edition-one-volume-pair img{aspect-ratio:2/3;height:auto;object-fit:cover}

.edition-cover-crop{position:relative;display:block;overflow:hidden;border:1px solid var(--line);border-radius:3px}
@media(min-width:601px){
  .site-logo-heading{width:402px;max-width:100%;padding:6px;margin:6px auto 10px}
  .site-logo-heading .site-logo{width:390px;max-width:100%}
  .home-heading-link{display:inline-block;width:257px;max-width:100%;padding:6px;margin:-6px auto 12px;line-height:0}
  .home-heading-link .site-logo-small{width:245px;max-width:100%;margin:0 auto}
}

:root{--button-dim:#eeece2;--button-base:#f7f3e9}
html[data-theme="dark"]{--button-dim:var(--panel);--button-base:#1d1c19}
.share-day,.share-day.share-day-top{background:var(--button-base)}
.share-day:hover,.share-day:focus,.share-day.share-day-top:hover,.share-day.share-day-top:focus{background:var(--button-dim)}
.theme-options button:not(.active){background:var(--panel)}
.society-button:hover,.society-button:focus{opacity:1;background:#aa795d}
.cal-day.reading:not(.complete):not(.partial),.calendar-key .cal-day:not(.partial){background:var(--panel)}

.copy-confirm-check{width:16px;height:16px;vertical-align:-3px;margin-left:2px}
.read-control input:checked,.index-complete input:checked{appearance:none;border:0;border-radius:2px;background:#9a6748 url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M3.5 8 6.5 11 12.5 5%27 fill=%27none%27 stroke=%27white%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center/100% 100% no-repeat}

#edition-1973 + p + .edition-cover-year .edition-cover-crop{aspect-ratio:3/5!important}

/* Every edition cover shares a height; widths follow the cover proportions. */
.edition-card{--edition-cover-height:188px}
.edition-card .edition-covers{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:14px}
.edition-card .edition-cover-year.edition-single-cover .edition-covers li,.edition-card .edition-covers li{flex:none;width:calc(var(--edition-cover-height) * var(--cover-ratio));max-width:none}
.edition-card .edition-covers figure>img{width:100%;height:var(--edition-cover-height);object-fit:cover}
.edition-card .edition-cover-crop{width:100%;height:var(--edition-cover-height);box-sizing:border-box}
@media(max-width:520px){.edition-card{--edition-cover-height:clamp(110px,30vw,156px)}.edition-card .edition-covers{gap:8px}}

.site-footer .initiative{font:600 13px system-ui,sans-serif;letter-spacing:.04em;color:var(--muted)}
.site-footer .initiative a,.site-footer .initiative a:hover,.site-footer .initiative a:focus,.site-footer .initiative a:visited{color:inherit;text-decoration:underline}

/* Card accents use the exact shared Journey palette. */
.reading-card,.background[class*="card-route-"]{--card-color:var(--shared-route)}
.card-route-friends,.card-route-strider{--card-color:var(--map-stop-border)}
.reading-card.card-route-ring,.background.card-route-ring{--card-color:var(--party-bilbo-sam-light)}
.reading-card.card-route-west,.background.card-route-west{--card-color:var(--party-hunters-light)}
.reading-card.card-route-merry,.background.card-route-merry{--card-color:var(--party-merry-light)}
.reading-card.card-route-friends,.reading-card.card-route-strider,.background.card-route-friends,.background.card-route-strider{--card-color:var(--map-stop-border)}
html[data-theme="dark"] .card-route-ring{--card-color:var(--party-bilbo-sam-dark)}
html[data-theme="dark"] .card-route-west{--card-color:var(--party-hunters-dark)}
html[data-theme="dark"] .card-route-merry{--card-color:var(--party-merry-dark)}
html[data-card-colors="true"] .reading-card,html[data-card-colors="true"] .background[class*="card-route-"]{border-inline-start:4px solid var(--card-color)}
.reading-location{color:var(--muted);font-family:system-ui,sans-serif;font-weight:500;font-size:.87em;line-height:1.5;margin:3px 0 10px;max-width:calc(100% - 38px)}
.location-preview-trigger{appearance:none;display:inline;border:0;border-radius:0;padding:0;margin:0;background:none;color:inherit;font:inherit;line-height:inherit;text-align:left;text-decoration:none;cursor:pointer}
.location-preview-trigger:focus-visible{outline:1px solid var(--muted);outline-offset:4px;border-radius:2px}
.location-preview-dialog{width:min(430px,calc(100vw - 32px))}
.location-preview-dialog .catchup-dialog-inner{overflow-wrap:anywhere;max-height:80vh;overflow-y:auto;box-sizing:border-box}
.location-preview-dialog h2{text-align:left;margin:0 26px 12px 0;font-size:1.35em}
.location-preview-dialog p{margin:0 0 18px;line-height:1.6}
.journey-map .route{transition:opacity 240ms ease}
.journey-map .map-stop{transition:opacity 240ms ease}
.journey-follow{display:flex;gap:8px;align-items:center;margin-top:10px;font-size:.85em;color:var(--muted)}
.journey-follow select{max-width:210px}
@media(prefers-reduced-motion:reduce){.journey-map .route,.journey-map .map-stop{transition:none}}

.journey-follow{flex-basis:100%;justify-content:center;flex-wrap:wrap}
html[data-hide-spoilers="true"] .reading-location{display:none}

html[data-hide-locations="true"] .reading-location{display:none}

.journey-follow select{max-width:min(100%,440px)}

/* Keep long party labels within the playback card at every viewport width. */
.journey-page .journey-day,.journey-playback,.journey-playback-controls{min-width:0}
.journey-playback-controls .journey-follow{display:grid;grid-template-columns:minmax(0,1fr);flex:0 1 100%;width:100%;min-width:0;max-width:100%;gap:6px;justify-items:center}
.journey-playback-controls .journey-follow label{margin:0;max-width:100%;white-space:normal;text-align:center}
.journey-playback-controls .journey-follow select{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;text-overflow:ellipsis}

/* Future routes use opaque lighter pigment, never reduced opacity. */
.journey-map .route{--route-pigment:var(--shared-route);transition:stroke 240ms ease;opacity:1}
.journey-map .route.friends,.journey-map .route.strider{--route-pigment:var(--party-friends-light)}
.journey-map .route.ring{--route-pigment:var(--party-bilbo-sam-light)}
.journey-map .route.west{--route-pigment:var(--party-hunters-light)}
.journey-map .route.merry,.journey-map .route.gandalf{--route-pigment:var(--party-merry-light)}
html[data-theme="dark"] .journey-map .route.friends,html[data-theme="dark"] .journey-map .route.strider{--route-pigment:var(--party-friends-dark)}
html[data-theme="dark"] .journey-map .route.ring{--route-pigment:var(--party-bilbo-sam-dark)}
html[data-theme="dark"] .journey-map .route.west{--route-pigment:var(--party-hunters-dark)}
html[data-theme="dark"] .journey-map .route.merry,html[data-theme="dark"] .journey-map .route.gandalf{--route-pigment:var(--party-merry-dark)}
.journey-map .route.future-route{stroke:color-mix(in srgb,var(--route-pigment) 32%,#fff 68%)}
html[data-theme="dark"] .journey-map .route.future-route{stroke:color-mix(in srgb,var(--route-pigment) 70%,#fff 30%)}
@media(prefers-reduced-motion:reduce){.journey-map .route{transition:none}}

/* Notes share the Frodo and His Friends Journey border color. */
.reading-note{border-left:4px solid var(--ink)}


/* Unvisited locations use opaque lighter colors, mirroring future paths. */
.journey-map .map-stop.future-stop rect{fill:color-mix(in srgb,var(--panel) 32%,#fff 68%);stroke:color-mix(in srgb,var(--map-stop-border) 32%,#fff 68%)}
.journey-map .map-stop.future-stop .place{fill:color-mix(in srgb,var(--ink) 45%,#fff 55%)}
.journey-map .map-stop.future-stop .stop-date{fill:color-mix(in srgb,var(--muted) 55%,#fff 45%)}
html[data-theme="dark"] .journey-map .map-stop.future-stop rect{fill:color-mix(in srgb,var(--panel) 88%,#fff 12%);stroke:color-mix(in srgb,var(--map-stop-border) 70%,#fff 30%)}
html[data-theme="dark"] .journey-map .map-stop.future-stop .place{fill:color-mix(in srgb,var(--ink) 70%,#fff 30%)}
html[data-theme="dark"] .journey-map .map-stop.future-stop .stop-date{fill:color-mix(in srgb,var(--muted) 70%,#fff 30%)}

/* Party labels activate with their routes and keep their full color thereafter. */
.journey-map .branch-note{--label-pigment:var(--shared-route);transition:fill 240ms ease}
.journey-map .branch-note.friends-text,.journey-map .branch-note.strider-text{--label-pigment:var(--party-friends-light)}
.journey-map .branch-note.ring-text{--label-pigment:var(--party-bilbo-sam-light)}
.journey-map .branch-note.west-text{--label-pigment:var(--party-hunters-light)}
.journey-map .branch-note.merry-text,.journey-map .branch-note.gandalf-text{--label-pigment:var(--party-merry-light)}
html[data-theme="dark"] .branch-note.friends-text,html[data-theme="dark"] .branch-note.strider-text{--label-pigment:var(--party-friends-dark)}
html[data-theme="dark"] .branch-note.ring-text{--label-pigment:var(--party-bilbo-sam-dark)}
html[data-theme="dark"] .branch-note.west-text{--label-pigment:var(--party-hunters-dark)}
html[data-theme="dark"] .branch-note.merry-text,html[data-theme="dark"] .branch-note.gandalf-text{--label-pigment:var(--party-merry-dark)}
.journey-map .branch-note.future-party-label{fill:color-mix(in srgb,var(--label-pigment) 32%,#fff 68%)}
html[data-theme="dark"] .journey-map .branch-note.future-party-label{fill:color-mix(in srgb,var(--label-pigment) 70%,#fff 30%)}
@media(prefers-reduced-motion:reduce){.journey-map .branch-note{transition:none}}


/* One quiet hit area surrounds milestone text; no border or hover treatment. */
.milestone-journey-target,.milestone-journey-target:hover{display:block;width:100%;color:inherit;text-decoration:none;background:none;border:0}
html[data-hide-spoilers="true"] .milestone-journey-target{display:none}

.milestone-journey-target{-webkit-tap-highlight-color:transparent}
.milestone-journey-target:focus:not(:focus-visible){outline:none;box-shadow:none}
.milestone-journey-target:focus-visible{outline:1px solid var(--muted);outline-offset:3px}

/* Suppress browser touch highlights throughout the site. Keyboard focus remains visible. */
*{-webkit-tap-highlight-color:transparent}
a:focus:not(:focus-visible),button:focus:not(:focus-visible),summary:focus:not(:focus-visible),[role="button"]:focus:not(:focus-visible){outline:none}

/* Keep the closed date controls at normal weight; highlight today in the list. */
#dateSelect,#journeyDateSelect{font-weight:400}

.location-preview-dialog .location-chapter-references{font:12px/1.6 system-ui,sans-serif;color:var(--muted);margin-bottom:18px}
.location-reference-label{display:block;font-weight:600;margin-bottom:5px}

.location-chapter-reference{display:block;margin-bottom:6px}.location-chapter-reference:last-child{margin-bottom:0}.location-chapter-title{font:inherit;color:inherit}

.date-placement-note{margin:12px 0 0;padding-bottom:22px;text-align:left}.date-placement-note>summary{display:list-item;width:fit-content;margin:0 auto;cursor:pointer;font:600 12px/1.5 system-ui,sans-serif}.date-placement-copy{font:inherit;line-height:1.6;margin-top:14px}.date-placement-copy p{margin:0}.date-placement-copy p+p{margin-top:12px}.date-placement-copy a{color:var(--muted);text-underline-offset:3px}

#catchUpButton[hidden]{display:none}

/* Deep-link targets receive focus for navigation without a container outline. */
#why-this-date:focus,#merry-travel-note:focus{outline:none}

.journey-map .route.eagle-flight{stroke-dasharray:1 10;stroke-linecap:round}

@keyframes dialog-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes dialog-backdrop-out{from{opacity:1}to{opacity:0}}
dialog.dialog-entering::backdrop{animation:dialog-backdrop-in 150ms ease-out}
dialog.dialog-exiting::backdrop{animation:dialog-backdrop-out 100ms ease-in forwards}
@media(prefers-reduced-motion:reduce){dialog[open]::backdrop{animation:none!important}}

#printGuideDialog{width:min(760px,calc(100vw - 32px))}#printGuideDialog .catchup-dialog-inner{max-height:85vh;overflow:auto}.print-summary-option{display:flex;align-items:center;gap:8px;text-transform:none;letter-spacing:0;margin-bottom:18px}.daily-print-guide{color:#29251f;background:white;padding:24px;font:14px/1.5 Georgia,serif}.daily-print-guide header{text-align:center}.daily-print-guide h1{font-size:28px}.daily-print-guide h2{font-size:19px;font-weight:500}.daily-print-guide article{border-top:1px solid #bbb;padding:14px 0;break-inside:avoid}.daily-print-guide footer{font:11px system-ui,sans-serif;text-align:center}.daily-print-guide h2 small{font:11px system-ui,sans-serif}#printGuideOutput{display:none}
@media print{body.printing-reading-guide{background:white!important}body.printing-reading-guide>*{display:none!important}body.printing-reading-guide>#printGuideOutput{display:block!important;padding:0}body.printing-reading-guide::before,body.printing-reading-guide::after{display:none!important}@page{margin:18mm}}

.daily-print-guide .print-guide-logo{display:block;width:220px;max-width:80%;height:auto;margin:0 auto 16px}.daily-print-guide .print-guide-eyebrow{font:600 10px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.15em;margin:0;color:#70685C}.daily-print-guide h1{margin:6px 0;font-size:30px}.daily-print-guide header{border-bottom:2px solid #14453d;padding-bottom:16px;margin-bottom:20px}.daily-print-guide article{padding:18px 0}.daily-print-guide article h2{margin:0 0 8px}.daily-print-guide article p{margin:8px 0}.daily-print-guide article strong{font:600 10px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.08em;color:#70685C}.daily-print-guide footer{border-top:1px solid #bbb;padding-top:12px;margin-top:20px}

#reentryReminder details{margin-top:14px}#reentryReminder details p{margin-top:14px}#reentryReminder .reentry-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:18px}#reentryReminder .reentry-actions [hidden]{display:none}

#reentryReminderDialog{width:min(620px,calc(100vw - 32px))}#reentryReminderDialog .catchup-dialog-inner{max-height:85vh;overflow:auto}#reentryReminderCopy p{margin:0 0 16px}#reentryReminderDialog .reentry-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:20px}#reentryReminderDialog [hidden]{display:none}

html[data-map-framing="full"]::before{top:0;left:0;width:100%;height:100%;background-size:cover;background-position:center;background-repeat:no-repeat}

#reentryReminderCopy .reading-summary p{margin:14px 0 0}

.reminder-opt-out{appearance:none;border:0;background:none;padding:8px 4px;color:var(--muted);font:12px/1.5 system-ui,sans-serif;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.reminder-opt-out:hover{color:var(--ink)}.reminder-opt-out:focus-visible{outline:1px solid var(--ink);outline-offset:3px}

/* One disclosure-to-content gap, independent of the following card type. */
.date-placement-note>.date-placement-copy{margin-bottom:0}
#content>.date-placement-note+*{margin-top:0}

.dialog-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;margin-top:20px}

.elsewhere-disclosure{margin:0 0 22px;padding:0;border:0}.elsewhere-disclosure>summary{width:fit-content;margin:0 auto;font:600 12px/1.5 system-ui,sans-serif;cursor:pointer}.elsewhere-card{margin:14px 0 0}.elsewhere-event h3{font-size:22px;font-weight:400;margin:0}.elsewhere-event p{margin:0}.elsewhere-event .elsewhere-source{margin:16px 0 0}.elsewhere-event+.elsewhere-event{margin-top:20px;border-top:1px solid var(--line);padding-top:14px}.elsewhere-source{font:12px/1.6 system-ui,sans-serif;color:var(--muted);margin:16px 0 0}html[data-hide-locations="true"] .elsewhere-location{display:none}

html[data-hide-spoilers="true"] .elsewhere-disclosure[open] .reading-location{display:block}html[data-hide-locations="true"] .elsewhere-disclosure[open] .reading-location{display:none}

.edition-help a,.elsewhere-disclosure>summary,.date-placement-note>summary{color:var(--muted)}.edition-help a:hover,.edition-help a:focus-visible,.elsewhere-disclosure>summary:hover,.elsewhere-disclosure>summary:focus-visible,.date-placement-note>summary:hover,.date-placement-note>summary:focus-visible{color:var(--ink)}

/* Shared minor UX refinements. */
.dialog-close{width:44px;height:44px;display:grid;place-items:center;right:3px;top:0}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.loading-error,.loading-message{text-align:center}.loading-error p{margin:0 0 16px}.print-summary-explanation{font:12px/1.5 system-ui,sans-serif;color:var(--muted);margin:-8px 0 18px}

.loading-error .lines{text-align:left}.loading-error .loading-explanation{margin-top:22px}

.elsewhere-event:focus{outline:none}

.elsewhere-chronology-note{font:13px/1.6 system-ui,sans-serif;color:var(--muted);margin:0 0 20px}

.welcome-dialog{width:min(680px,calc(100vw - 32px))}.welcome-dialog .catchup-dialog-inner{max-height:85vh;overflow:auto}.welcome-dialog .dialog-actions a{text-decoration:none}

#firstVisitWelcomeTitle:focus{outline:none}

.welcome-dialog .welcome-season-note{color:var(--muted);font:600 14px/1.55 system-ui,sans-serif}

html[data-theme="dark"] .journey-complete-dialog:not(.journey-complete-later) h2,html[data-theme="dark"] .journey-complete-home{color:var(--party-bilbo-sam-dark)}

:root{--surface-secondary:#eee9dd;--accent:#9a6748;--accent-hover:#aa795d;--on-accent:#fff;--button-dim:var(--surface-secondary)}
html[data-theme="dark"]{--paper:#1d1c19;--surface-secondary:#393329;--accent:#d6aa86;--accent-hover:#e0bca0;--on-accent:#1d1c19;--button-dim:var(--surface-secondary)}
html .background,html .reading-note{background:var(--surface-secondary)}
html .timeline-card a,html .site-footer .initiative a{color:var(--muted)}
html .timeline-card a:hover,html .timeline-card a:focus,html .site-footer .initiative a:hover,html .site-footer .initiative a:focus{color:var(--ink)}
html .timeline-card a.society-button,html .timeline-card a.society-button:hover,html .timeline-card a.society-button:focus{color:#fff}
.journey-map a.map-stop,.journey-map a.map-stop:hover,.journey-map a.map-stop:focus,.journey-map a.map-stop text{text-decoration:none}
.site-footer .site-links{display:flex;flex-wrap:wrap;justify-content:center;column-gap:24px;row-gap:4px;line-height:2}
.site-footer .site-links .footer-link-group{position:relative;display:block;white-space:nowrap;margin:0}
.site-footer .site-links .footer-link-group::before{content:'•';position:absolute;left:-15px;color:var(--party-hunters-light);font:600 13px/2 system-ui,sans-serif}
.site-footer .site-links .footer-link-group:first-child::before,.site-footer .site-links .footer-row-start::before{content:none}
.reference-separator{font:600 13px/1 system-ui,sans-serif}
.progress-transfer-link span[aria-hidden="true"]{font:600 13px/2 system-ui,sans-serif}
.edition-cover-trigger{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}
.edition-card .edition-covers .edition-cover-trigger img{width:100%;height:var(--edition-cover-height);object-fit:cover}
.edition-cover-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.edition-choose{display:block;margin:16px auto 0}
.edition-choose[aria-pressed="true"]{border-color:var(--accent);color:var(--accent)}
.edition-selection-status,.edition-cover-caption{color:var(--muted);font:13px/1.5 system-ui,sans-serif;text-align:center}
.edition-selection-status:empty{display:none}
.edition-cover-dialog{width:min(600px,calc(100vw - 28px))}
.edition-cover-dialog .catchup-dialog-inner{max-height:85dvh;overflow:auto;text-align:center}
#editionCoverImage{display:block;max-width:100%;max-height:55dvh;width:auto;height:auto;object-fit:contain;margin:20px auto 0}

.reading-card:target,.reading-card:focus{outline:none}

/* Edition choices match the light and completed Reading Index buttons. */
.editions-page .edition-choose,.edition-cover-dialog .edition-choose{background:var(--panel);color:var(--muted);border-color:var(--line)}
.editions-page .edition-choose:hover,.editions-page .edition-choose:focus,.edition-cover-dialog .edition-choose:hover,.edition-cover-dialog .edition-choose:focus{background:var(--button-dim);color:var(--ink)}
.editions-page .edition-choose[aria-pressed="true"],.edition-cover-dialog .edition-choose[aria-pressed="true"]{background:#9a6748;border-color:#9a6748;color:#fff}
.editions-page .edition-choose[aria-pressed="true"]:hover,.editions-page .edition-choose[aria-pressed="true"]:focus,.edition-cover-dialog .edition-choose[aria-pressed="true"]:hover,.edition-cover-dialog .edition-choose[aria-pressed="true"]:focus{background:#aa795d;border-color:#aa795d;color:#fff}
.edition-cover-dialog{width:min(520px,calc(100vw - 28px))}
.edition-cover-dialog h2{font-size:21px;font-weight:500;line-height:1.25;margin:0;padding-right:25px}
#editionCoverImage{max-height:min(340px,calc(85vh - 200px));max-height:min(340px,calc(85dvh - 200px));margin:12px auto 0}
.edition-cover-dialog .edition-choose{margin-top:12px}
.edition-cover-dialog .edition-cover-caption{display:none}
.edition-cover-dialog .edition-selection-status{margin:10px 0 0;font-size:12px}

/* Show only the newly decoded cover and retain its edition description. */
#editionCoverImage[hidden]{display:none}
.edition-cover-dialog .edition-cover-caption{display:block;margin:10px 0 0;color:var(--muted);font:13px/1.4 system-ui,sans-serif}
#editionCoverImage{max-height:min(300px,calc(85vh - 245px));max-height:min(300px,calc(85dvh - 245px))}

/* A restrained facsimile of the reading cards, with white paper for printing. */
.daily-print-guide{--ink:#29251f;--muted:#70685c;--line:#d8cfbd;color:var(--ink);background:#fff}
.daily-print-guide header{border-bottom:1px solid #d8cfbd;padding-bottom:18px;margin-bottom:24px;position:relative}
.daily-print-guide header::after{content:"✦";display:block;width:32px;margin:12px auto -27px;background:#fff;color:#14453d;font-size:16px;line-height:18px}
.daily-print-guide .print-guide-logo{width:210px;margin-bottom:12px}
.daily-print-guide .print-guide-edition{font:11px/1.5 system-ui,sans-serif;color:#70685c;margin:8px 0}
.daily-print-guide article.print-guide-card{--print-party:#7d8253;border:1px solid #d8cfbd;border-left:3px solid var(--print-party);border-radius:6px;padding:16px 18px;margin:0 0 18px;background:#fff}
.daily-print-guide .print-route-friends,.daily-print-guide .print-route-strider{--print-party:#654730!important}
.daily-print-guide .print-route-ring{--print-party:#55735f!important}
.daily-print-guide .print-route-west{--print-party:#14453d!important}
.daily-print-guide .print-route-merry{--print-party:#6f789c!important}
.daily-print-guide .print-guide-card h2{color:#29251f;font-size:21px;margin:0 0 7px}
.daily-print-guide .print-guide-meta{font:12px/1.5 system-ui,sans-serif;color:#70685c;margin:3px 0}
.daily-print-guide .print-guide-passage{margin:14px 0 0;padding:0 0 0 12px;border-left:1px solid #d8cfbd;font-style:italic}
.daily-print-guide .print-guide-passage strong{font-style:normal}
.daily-print-guide .print-guide-passage p{margin:0 0 10px}
.daily-print-guide .print-guide-passage p:last-child{margin-bottom:0}
.daily-print-guide .print-guide-summary{border-top:1px solid #d8cfbd;margin:14px 0 0;padding-top:12px}
.daily-print-guide footer{border-color:#d8cfbd;color:#70685c;letter-spacing:.06em}
@media print{.daily-print-guide{-webkit-print-color-adjust:exact;print-color-adjust:exact}.daily-print-guide article.print-guide-card{break-inside:avoid}.daily-print-guide header{break-inside:avoid}}
@media print{html::before{display:none!important}.daily-print-guide{font-size:13px}.daily-print-guide article.print-guide-card{padding:14px 16px;margin-bottom:14px}.daily-print-guide footer{break-before:avoid;margin-top:12px;padding-top:8px}}
@media print{html{background:#fff!important}}

.daily-print-guide .print-guide-subtitle{font:italic 14px/1.45 Georgia,serif;color:#70685c;margin:5px 0}
.daily-print-guide .print-guide-milestone{font:600 10px/1.5 system-ui,sans-serif;color:#14453d;letter-spacing:.09em;text-transform:uppercase;margin:10px 0}
.daily-print-guide footer{border:0;padding-top:0}

/* Controls use the unified dark accent and its matching foreground. */
html[data-theme="dark"] .society-button,
html[data-theme="dark"] .timeline-card a.society-button,
html[data-theme="dark"] .theme-options button.active,
html[data-theme="dark"] .editions-page .edition-choose[aria-pressed="true"],
html[data-theme="dark"] .edition-cover-dialog .edition-choose[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
html[data-theme="dark"] .society-button:hover,html[data-theme="dark"] .society-button:focus,
html[data-theme="dark"] .timeline-card a.society-button:hover,html[data-theme="dark"] .timeline-card a.society-button:focus,
html[data-theme="dark"] .editions-page .edition-choose[aria-pressed="true"]:hover,html[data-theme="dark"] .editions-page .edition-choose[aria-pressed="true"]:focus,
html[data-theme="dark"] .edition-cover-dialog .edition-choose[aria-pressed="true"]:hover,html[data-theme="dark"] .edition-cover-dialog .edition-choose[aria-pressed="true"]:focus{background:var(--accent-hover);border-color:var(--accent-hover);color:var(--on-accent)}
html[data-theme="dark"] .read-control input,
html[data-theme="dark"] .text-size-row input,
html[data-theme="dark"] .detailed-setting input{accent-color:var(--accent)}
html[data-theme="dark"] .read-control input:checked,html[data-theme="dark"] .index-complete input:checked{background-color:var(--accent);background-image:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M3.5 8 6.5 11 12.5 5%27 fill=%27none%27 stroke=%27%231d1c19%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}
html[data-theme="dark"] .cal-day.reading:not(.partial){border-color:var(--accent);box-shadow:inset 0 -3px 0 var(--accent)}
html[data-theme="dark"] .cal-day.complete{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
html[data-theme="dark"] .cal-day.complete .cal-length{border-color:var(--on-accent)}
html[data-theme="dark"] .cal-day.complete .cal-length.quite-long{background:var(--on-accent)}
html[data-theme="dark"] .cal-day:hover,html[data-theme="dark"] .cal-day:focus{outline-color:var(--accent)}

/* Rare gold accent, shared by the favicon and test-date banner. */
:root{--accent-gold:#d5b463}

/* The bookmark ornament, with flexible rules and an unchanged central motif. */
.ornament-header{margin-bottom:0}
.ornament-header>:last-child{margin-bottom:0}
.page-ornament-divider{display:flex;align-items:center;width:100%;height:20px;margin:24px 0;color:var(--party-hunters-light)}
.page-ornament-divider::before,.page-ornament-divider::after{content:"";display:block;flex:1;height:.8px;background:currentColor}
.page-ornament-divider svg{display:block;flex:none;width:80px;height:20px}
.page-ornament-divider+*{margin-top:0}

/* Match map movement to the Journey playback interval. */
html[data-map-framing="journey"]::before{transition:none}
@media(prefers-reduced-motion:reduce){html[data-map-framing="journey"]::before{transition:none}}

html[data-theme="dark"] .site-footer .site-links .footer-link-group::before{color:var(--party-hunters-dark)}
@media(min-width:900px){.edition-cover-dialog{width:min(600px,calc(100vw - 28px))}#editionCoverImage{max-height:min(420px,calc(85vh - 300px));max-height:min(420px,calc(85dvh - 300px))}}

.site-footer .site-links.footer-balanced{flex-direction:column;align-items:center}.site-footer .site-links .footer-link-row{display:flex;justify-content:center;align-items:center;gap:inherit;flex-wrap:nowrap;max-width:100%}

/* Gandalf's separate activity uses the shared Merry and Pippin blue. */
.gandalf-journey-status,.gandalf-stat-card{--gandalf-colour:var(--party-merry-light);border-left:4px solid var(--gandalf-colour)}
html[data-theme="dark"] .gandalf-journey-status,html[data-theme="dark"] .gandalf-stat-card{--gandalf-colour:var(--party-merry-dark)}
.gandalf-journey-status{display:flex;align-items:flex-start;gap:16px;width:min(100%,820px);box-sizing:border-box;margin:18px auto;padding:16px 20px;background:var(--panel);border-radius:7px;text-align:left}
.gandalf-journey-status[hidden]{display:none}
.gandalf-journey-status h2{font-size:22px;font-weight:400;margin:0}
.gandalf-journey-status p{margin:8px 0 0}
.gandalf-journey-state{font:600 13px system-ui,sans-serif;color:var(--gandalf-colour)}
.gandalf-status-symbol{width:14px;height:14px;flex:none;margin-top:8px;border:2px solid var(--gandalf-colour);border-radius:50%;background:var(--gandalf-colour)}
.gandalf-journey-status[data-away="true"] .gandalf-status-symbol{background:transparent;border-style:dashed;outline:1px dashed var(--gandalf-colour);outline-offset:4px}
.gandalf-stat-card strong{color:var(--gandalf-colour)}

:root{--party-wilderland-light:#9a6748;--party-wilderland-dark:#d6aa86}
.card-route-wilderland{--card-color:var(--party-wilderland-light)}
html[data-theme="dark"] .card-route-wilderland{--card-color:var(--party-wilderland-dark)}
html[data-timeline-colors="true"] .journey-timeline.route-wilderland{--route-color:var(--party-wilderland-light)}
html[data-theme="dark"][data-timeline-colors="true"] .journey-timeline.route-wilderland{--route-color:var(--party-wilderland-dark)}

.journey-map .parallel-route-base{opacity:.3}
.journey-map .gandalf-business-stop rect{fill:var(--panel);stroke:var(--party-merry-light);stroke-width:2}
.journey-map .gandalf-business-stop text{fill:var(--party-merry-light);font:18px Georgia,serif}
.journey-map .gandalf-business-active rect{stroke-width:3;fill:var(--paper)}
.journey-map .gandalf-business-stop.future-stop{opacity:.4}
html[data-theme="dark"] .journey-map .gandalf-business-stop rect{stroke:var(--party-merry-dark)}
html[data-theme="dark"] .journey-map .gandalf-business-stop text{fill:var(--party-merry-dark)}
@media(prefers-reduced-motion:reduce){.journey-map .journey-position{transition:none!important}}

.journey-map .gandalf-absence-date{fill:var(--party-merry-light);font:12px system-ui,sans-serif}
html[data-theme="dark"] .journey-map .gandalf-absence-date{fill:var(--party-merry-dark)}

.journey-map .gandalf-absence-date.future-stop{opacity:.4}


/* Same inset face and 1.5px rim as Frodo; always company green. */
.journey-map .map-stop rect.stationary-face{display:none;pointer-events:none;stroke:none}
.journey-map .map-stop.bilbo-current-stop rect:not(.stationary-face){fill:var(--panel);stroke:var(--party-hunters-light);stroke-width:1.5px}
.journey-map .map-stop.bilbo-current-stop rect.stationary-face{display:block;fill:var(--party-hunters-light);stroke:none}
.journey-map .map-stop.bilbo-current-stop .place,.journey-map .map-stop.bilbo-current-stop .stop-date{fill:#fffdf7}
html[data-theme="dark"] .journey-map .map-stop.bilbo-current-stop rect:not(.stationary-face){stroke:var(--party-hunters-dark)}
html[data-theme="dark"] .journey-map .map-stop.bilbo-current-stop rect.stationary-face{fill:var(--party-hunters-dark)}
html[data-theme="dark"] .journey-map .map-stop.bilbo-current-stop .place,html[data-theme="dark"] .journey-map .map-stop.bilbo-current-stop .stop-date{fill:#29251f}
.journey-map .gandalf-detour-link text{pointer-events:auto;text-decoration:none;cursor:pointer}
.journey-map .gandalf-detour-link .gandalf-detour-hit{fill:transparent;stroke:none;pointer-events:all}
.journey-map .gandalf-detour-link:focus-visible{outline:none}.journey-map .gandalf-detour-link:focus-visible text{stroke:var(--party-merry-light);stroke-width:.3}

.journey-map .map-stop .stop-date{text-transform:uppercase}

.journey-map .journey-terrain{fill:#71593a;stroke:none;opacity:.48;pointer-events:none}
html[data-theme="dark"] .journey-map .journey-terrain{fill:#c6b799;opacity:.42}
.journey-map .route.parallel-route-base{opacity:1;stroke:color-mix(in srgb,var(--route-pigment) 32%,#fff 68%)}
html[data-theme="dark"] .journey-map .route.parallel-route-base{stroke:color-mix(in srgb,var(--route-pigment) 70%,#fff 30%)}

.journey-map .gandalf-detour-link,.journey-map .gandalf-detour-link text{text-decoration:none!important;cursor:pointer}

.journey-map .gandalf-absence-date{font-weight:600}

/* Match Frodo’s inherited serif numeral styling. */
body{font-variant-numeric:oldstyle-nums proportional-nums}

/* Edition changes are committed explicitly in the shared dialog. */
.edition-source-select{display:none!important}
.edition-picker-control{flex-wrap:wrap;gap:10px 14px}
.edition-current{font:15px/1.5 Georgia,serif;max-width:100%;overflow-wrap:break-word;text-align:center}
.edition-change{white-space:nowrap}
.edition-dialog-field{display:grid;gap:10px;margin:0 0 8px}
.edition-dialog-field select{width:100%;max-width:100%;min-width:0}
.edition-change-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
@media(max-width:600px){.edition-picker-control{flex-direction:column;gap:10px;align-items:center}.edition-picker-control .edition-change{width:auto}}

.edition-change-dialog .edition-dialog-help{margin:10px 0 0;text-align:center}

.edition-picker-control .edition-change{margin:0}

.edition-change-dialog{width:min(500px,calc(100vw - 32px))}

/* Shared page help for introductory instructions and closing guidance. */
html :is(.app,.site-footer) .page-help{color:var(--muted);text-align:center;max-width:670px;margin:24px auto 28px}
html :is(.app,.site-footer) .page-help p{margin:0 0 12px}
html :is(.app,.site-footer) .page-help p:last-child{margin-bottom:0}
html :is(.app,.site-footer) .page-help a{color:var(--muted);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;border-bottom:0}
html :is(.app,.site-footer) .page-help a:hover,html :is(.app,.site-footer) .page-help a:focus{color:var(--ink);text-decoration:underline}
html .app.journey-page .journey-footnote.page-help{width:calc(100% - 28px);margin:24px auto 28px}


#nextReadingLengthDialog .next-reading-time{margin:12px 0 0;color:var(--muted);font:400 13px/1.55 system-ui,sans-serif;text-align:center;text-wrap:balance}

.next-reading .shire-calendar-action{margin-inline-start:.5em;white-space:nowrap}
.next-reading .shire-calendar-action a{text-decoration:none}

/* Shared tooltip appearance for charts and reading controls. */
.word-date-tooltip{position:fixed;z-index:1000;pointer-events:none;padding:10px 12px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:7px;font:400 12px/1.5 system-ui,sans-serif;white-space:normal;width:max-content;max-width:min(300px,calc(100vw - 16px))}
.word-date-tooltip[hidden]{display:none}
.next-reading .calendar-reminder-icon{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:28px;height:28px;padding:4px;border:0;border-radius:4px;background:transparent;color:var(--muted);box-shadow:none;cursor:pointer}
.next-reading .calendar-reminder-icon:hover,.next-reading .calendar-reminder-icon:focus-visible{color:var(--ink);background:transparent}
.next-reading .calendar-reminder-icon:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.calendar-reminder-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}

/* Next-reading choices use the shared dialog chrome and action styling. */
#readingCalendarDialog .reading-calendar-choices{display:flex;flex-direction:column;align-items:stretch;gap:var(--action-gap)}
#readingCalendarDialog .secondary-action{display:flex;justify-content:center;text-align:center;text-decoration:none}

/* Test controls retain the banner's compact sans serif treatment. */
.test-date-picker{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin:0}
.test-date-picker label{font:inherit;letter-spacing:normal;text-transform:none;color:inherit}
.test-date-picker input,.test-date-picker button{font:600 12px/1.45 system-ui,sans-serif;color:#29251f;background:#fffdf7;border:1px solid #70685c;border-radius:5px;padding:5px 8px;min-height:30px}
.test-date-picker input{max-width:100%;min-width:0;color-scheme:light}
.test-date-picker button{cursor:pointer}
.test-date-picker :is(input,button):focus-visible{outline:2px solid #29251f;outline-offset:2px}

.theme-options:has([data-theme-choice="system"]){grid-template-columns:repeat(3,minmax(0,1fr))}

.journey-map .journey-landmark{pointer-events:none}
.journey-map .journey-landmark-dragon{fill:#923e35}
html[data-theme="dark"] .journey-map .journey-landmark-dragon{fill:#e58372}
.journey-map .journey-erebor :is(.erebor-contour,.erebor-ridges){fill:none;stroke:inherit;stroke-linecap:round;stroke-linejoin:round}
.journey-map .journey-erebor{stroke:#71593a}
.journey-map .journey-erebor path{stroke:none}
.journey-map .erebor-contour{stroke-width:3.5}
.journey-map .erebor-ridges{stroke-width:2.3}
html[data-theme="dark"] .journey-map .journey-erebor{stroke:#c6b799}
