/* Study Quest — rarog.css (V7.8 lane N, builder v78-roosts): the Rarog map (js/ui-rarog.js) and the flight lines on the route card.
 * Ember & Iron: composed from .codex-window / .codex-banner / .codex-btn / .codex-kbd in the markup; this sheet places, sizes and colours
 * it (prefix .rg-*, the card's .jr-flight). The chart is parchment of our own: flat colour and a fine dot texture, never a gradient;
 * as big as the screen allows (the chart keeps the land's tall shape), the side column scrolls. */
.rg-layer { position: fixed; inset: 0; z-index: 126; display: grid; place-items: center; padding: 12px; background: rgba(6, 8, 14, 0.38);
  pointer-events: auto; }   /* V7.9.1 (the user, 1 Nov: clicks on the map went through to the world): the layer lives inside #hud, whose
                              pointer-events are none, so it takes every click itself (the window, and the dim backdrop that closes it) */
.rg-layer.hidden { display: none; }
.rg-window { box-sizing: border-box; width: auto; max-width: calc(100vw - 24px); height: calc(100vh - 24px); max-height: 1100px; display: flex; flex-direction: column;
  animation: cx-rise var(--cx-dur-calm, 480ms) var(--cx-ease, ease-out) both; }
.rg-title { min-width: 240px; text-align: center; }
.rg-body { flex: 1 1 auto; min-height: 0; display: flex; gap: 14px; padding: 12px 16px 8px; }
.rg-mapbox { flex: 0 0 auto; height: 100%; width: min(640px, 50vw); border: 2px solid #5a4630; border-radius: 4px; background: #e6d8b8; overflow-x: hidden; overflow-y: auto; }
/* (V7.8 fixer r34, play critic S4: the chart takes the box's width and scrolls up and down, so the names stay readable) */
.rg-chart { display: block; width: 100%; height: auto; }
.rg-paper { fill: #e6d8b8; }
.rg-zone { font: italic 600 22px/1 var(--cx-font-body, Georgia, serif); fill: #8a7550; opacity: 0.4; text-anchor: middle; pointer-events: none; }
.rg-path { fill: none; stroke: #a8977a; stroke-width: 2; stroke-dasharray: 6 6; }
.rg-path.is-known { stroke: #6e4a2c; stroke-width: 3; stroke-dasharray: none; }
.rg-path.is-route { stroke: #b8331a; stroke-width: 6; stroke-dasharray: none; }
.rg-roost { cursor: default; }
.rg-roost.is-learned { cursor: pointer; }
.rg-roost .rg-dot { fill: #efe4c8; stroke: #9c8a6a; stroke-width: 2.5; }
.rg-roost.is-learned .rg-dot { fill: #c0391b; stroke: #3b2416; stroke-width: 3; }
.rg-roost.is-learned:hover .rg-dot, .rg-roost.is-learned:focus .rg-dot, .rg-roost.is-sel .rg-dot { fill: #e8622f; stroke: #1d120b; }
.rg-roost.is-grounded .rg-dot { fill: #8d8a84; stroke: #3d3a35; }
.rg-roost .rg-ring { fill: none; stroke: #1f5f8b; stroke-width: 4; }
.rg-roost .rg-storm { fill: #3d3a35; }
.rg-roost:focus { outline: none; }
.rg-name { font: 600 24px/1 var(--cx-font-body, Georgia, serif); fill: #2c1d10; paint-order: stroke; stroke: #e6d8b8; stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }
.rg-name.is-dim { font-size: 20px; font-weight: 500; font-style: italic; fill: #6b5a40; stroke-width: 4px; }
.rg-name.is-dim.is-key { font-size: 22px; font-weight: 700; fill: #3b2a18; }
.rg-hit { fill: none; stroke: transparent; stroke-width: 18; pointer-events: stroke; }
.rg-name.is-key { font-size: 30px; font-weight: 700; fill: #1d120b; }
.rg-bird { color: #7d1f0c; fill: #7d1f0c; pointer-events: none; }
.rg-bird .rg-halo { fill: #f6ecd2; stroke: #7d1f0c; stroke-width: 3; }
.rg-side { flex: 0 1 320px; min-width: 240px; max-width: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  font: 400 15px/1.45 var(--cx-font-body); color: var(--cx-text, #ebe4d6); }
.rg-side p { margin: 0; }
.rg-side b, .rg-side [data-word] { color: #f6ead6; }
.rg-count { font-size: 15px; }
.rg-sky { padding: 6px 9px; border: 1px solid rgba(170, 130, 80, 0.32); border-radius: 4px; font-size: 14px; }
.rg-sky.is-grounded { border-color: #8d8a84; color: #d9d4ca; }
.rg-sky.is-rough { border-color: #b98d4a; }
.rg-h { margin: 4px 0 0; font: 700 17px/1.25 var(--cx-font-label); letter-spacing: 0.03em; color: #e9c27a; }
.rg-h small { display: block; font: 400 13px/1.3 var(--cx-font-body); color: #a99d8b; letter-spacing: 0; }
.rg-big { font: 600 20px/1.25 var(--cx-font-body); color: #f6ead6; }
.rg-big small { display: block; font-size: 13.5px; font-weight: 400; color: #c9bba3; }
.rg-fare { width: 100%; border-collapse: collapse; font-size: 14px; }
.rg-fare td { padding: 2px 0; border-bottom: 1px solid rgba(170, 130, 80, 0.22); }
.rg-fare td + td { text-align: right; white-space: nowrap; padding-left: 10px; }
.rg-fare .rg-total td { font-weight: 700; color: #f0c674; border-bottom: none; }
.rg-dim { color: #a99d8b; font-size: 13px; }
.rg-clue { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.rg-clue i { display: block; font: 600 11.5px/1.2 var(--cx-font-label); letter-spacing: 0.06em; text-transform: uppercase; color: #a99d8b; font-style: normal; }
.rg-h2 { font: 700 14px/1.25 var(--cx-font-label); letter-spacing: 0.03em; color: #e9c27a; margin: 2px 0 3px; }
.rg-next ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.rg-next small { display: block; color: #a99d8b; font-size: 12.5px; }
.rg-nx { background: none; border: 0; padding: 0; margin: 0; font: 600 14.5px/1.3 var(--cx-font-body); color: #f6ead6; text-decoration: underline dotted #a99d8b; cursor: pointer; }
.rg-nx:hover, .rg-nx:focus { color: #ffd98f; }
.rg-why { color: #e8a080; font-size: 13.5px; }
.rg-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.rg-act { flex: 1 1 auto; }
.rg-ic { width: 16px; height: 16px; vertical-align: -3px; }
.rg-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: auto 0 0; padding: 0; list-style: none; font-size: 12.5px; color: #a99d8b; }
.rg-k { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; vertical-align: -1px; background: #efe4c8; border: 2px solid #9c8a6a; }
.rg-k.is-learned { background: #c0391b; border-color: #3b2416; }
.rg-k.is-here { background: transparent; border-color: #1f5f8b; }
.rg-k.is-grounded { background: #8d8a84; border-color: #3d3a35; }
.rg-msg { min-height: 1.2em; color: #e8a080; font-size: 13px; }
.rg-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rg-hint { color: #a99d8b; font-size: 12.5px; }
/* the route card: a flight choice's roosts, changes and weather; the grounded note */
.jr-flight { margin-top: 3px; font: 400 12.5px/1.35 var(--cx-font-body); color: #c9bba3; }
.jr-flight--grounded { margin-top: 6px; color: #d9d4ca; }
@media (max-width: 760px) {
  .rg-body { flex-direction: column; overflow-y: auto; }
  .rg-mapbox { height: 70vh; width: 100%; max-width: none; align-self: center; }
  .rg-side { max-width: none; flex-basis: auto; }
}
