/* BiblicalTools site guide (optional). Pilot: home, Bible Reader, Bible on Audio, Who Is My Neighbor?
   Everything is scoped under .sg- names so the page's own styles are untouched. */
.sg-root, .sg-root * { box-sizing: border-box; }
.sg-root {
  --sg-accent: #8B4513;
  --sg-ink: #2b2420;
  --sg-soft: #6b5f57;
  --sg-paper: #fffdf9;
  --sg-line: #e7ded4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.5; color: var(--sg-ink);
  letter-spacing: normal; text-transform: none; text-align: left; font-weight: 400;
}
.sg-root button, .sg-root a.sg-btn {
  font: inherit; font-size: 14px; line-height: 1.2; letter-spacing: normal; text-transform: none;
  margin: 0; min-height: 32px; padding: 6px 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--sg-line); background: #fff; color: var(--sg-ink);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: none; width: auto; height: auto; transform: none;
}
.sg-root button:hover, .sg-root a.sg-btn:hover { border-color: var(--sg-accent); }
.sg-root button:focus-visible, .sg-root a.sg-btn:focus-visible, .sg-title:focus-visible {
  outline: 3px solid var(--sg-accent); outline-offset: 2px;
}
.sg-root .sg-primary { background: var(--sg-accent); border-color: var(--sg-accent); color: #fff; }
.sg-root .sg-primary:hover { background: #723810; }
.sg-root .sg-quiet { border-color: transparent; background: transparent; color: var(--sg-soft); padding: 6px 7px; }
.sg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* launcher pill */
.sg-launch {
  position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 2147483000;
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px !important;
  border-radius: 999px !important; background: var(--sg-paper) !important; border: 1px solid var(--sg-line) !important;
  box-shadow: 0 4px 16px rgba(43, 36, 32, .14) !important; color: var(--sg-ink) !important;
}
.sg-launch .sg-face { width: 30px; height: 30px; }
/* low resting spot (Bible on Audio): a small round sparrow perched just above the bottom player; site-guide.js sets
   left/bottom. The label stays for screen readers and as the hover title. */
.sg-root[data-rest="low"] .sg-launch {
  width: 36px; height: 36px; min-height: 0; padding: 3px !important; gap: 0; justify-content: center;
  box-shadow: 0 2px 8px rgba(43, 36, 32, .22) !important;
}
.sg-root[data-rest="low"] .sg-launch .sg-face { width: 28px; height: 28px; }
/* inside the bottom player (Bible on Audio): a little more room left of the title when the guide needs it */
html.sg-bar-room #pb .player-row { padding-left: var(--sg-bar-room) !important; }
.sg-root[data-rest="low"] .sg-launch-label {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.sg-launch[hidden] { display: none !important; }
/* the site's phone menu is open: the small round sparrow in the menu's top-right corner (site-guide.js sets left/top) */
.sg-root[data-menu] .sg-launch {
  width: 36px; height: 36px; min-height: 0; padding: 3px !important; gap: 0; justify-content: center;
  box-shadow: 0 2px 8px rgba(43, 36, 32, .22) !important;
}
.sg-root[data-menu] .sg-launch .sg-face { width: 28px; height: 28px; }
.sg-root[data-menu] .sg-launch-label {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.sg-root[data-menu] .sg-mini { width: 36px; height: 36px; padding: 3px !important; }
.sg-root[data-menu] .sg-mini .sg-face { width: 28px; height: 28px; }
/* the visitor can drag the sparrow anywhere (site-guide.js keeps the spot); a tap still opens the guide */
.sg-root .sg-launch, .sg-root .sg-mini {
  touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.sg-root .sg-launch.sg-dragging, .sg-root .sg-mini.sg-dragging { cursor: grabbing; transition: none; }
/* the pages' reduced-motion rule (*{transition-duration:.01ms!important}) would otherwise "transition" every size
   change of the sparrow, so a measurement taken right after the menu closes read the old size */
.sg-root .sg-face, .sg-root .sg-mini { transition-property: none; }
.sg-insets {
  position: fixed; left: 0; top: 0; width: 0; height: 0; visibility: hidden; pointer-events: none;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
/* arrival: the pill fades in while the sparrow flies to it (reduced motion: the fade only) */
.sg-launch { transition: opacity .45s ease; }
.sg-launch.sg-arriving { opacity: 0; }
.sg-launch.sg-bird-away .sg-face { visibility: hidden; }
.sg-flyer { position: fixed; left: 0; top: 0; z-index: 2147483002; pointer-events: none; will-change: transform; }
.sg-flyer .sg-face { width: 100%; height: 100%; }
.sgc.is-flying .sgc-wing { animation: sgc-flap .2s ease-in-out 5; }
.sgc.is-flare .sgc-wing { animation: sgc-flare .2s ease-in-out 2; }
@keyframes sgc-flare { 0%, 100% { transform: none; } 50% { transform: rotate(-30deg); } }

/* the character */
.sg-face { display: block; width: 34px; height: 34px; flex: none; overflow: visible; }

/* sparrow motion (only when a sparrow is switched on): hop beside the button, one head tilt while waiting,
   a short flutter toward a new step, then rest. No constant flapping. */
.sgc .sgc-bird, .sgc .sgc-head, .sgc .sgc-wing { transform-box: view-box; }
.sgc .sgc-bird { transform-origin: 24px 44px; }
.sgc .sgc-head { transform-origin: 30px 23px; transition: transform .25s ease; }
.sgc .sgc-wing { transform-origin: 21px 26px; }
.sgc.is-hop .sgc-bird { animation: sgc-hop .6s ease-out 2; }
.sgc.is-tilt .sgc-head { animation: sgc-tilt 1.6s ease-in-out 1; }
.sgc.is-tilted .sgc-head { transform: rotate(-12deg); }
.sgc.is-flutter .sgc-bird { animation: sgc-flit .8s ease-out 1; }
.sgc.is-flutter .sgc-wing { animation: sgc-flap .16s ease-in-out 4; }
@keyframes sgc-hop {
  0% { transform: none; } 18% { transform: scale(1.04, .94); } 45% { transform: translateY(-5px); }
  72% { transform: scale(1.03, .96); } 100% { transform: none; }
}
@keyframes sgc-tilt { 0%, 100% { transform: none; } 22%, 70% { transform: rotate(-14deg); } }
@keyframes sgc-flap { 0%, 100% { transform: none; } 50% { transform: rotate(-30deg); } }
@keyframes sgc-flit { 0% { transform: none; } 40% { transform: translate(5px, -5px); } 100% { transform: none; } }

/* highlight ring around the real control (never blocks it) */
.sg-ring {
  position: fixed; z-index: 2147482999; pointer-events: none; border-radius: 10px;
  border: 3px solid var(--sg-accent); box-shadow: 0 0 0 4px rgba(255, 253, 249, .85);
}
.sg-glide .sg-ring { transition: left .35s ease, top .35s ease, width .35s ease, height .35s ease; }
.sg-ring[hidden] { display: none !important; }

/* speech bubble */
.sg-bubble {
  position: fixed; z-index: 2147483001; width: min(304px, calc(100vw - 24px));
  max-height: calc(100vh - 24px); overflow: auto;
  background: var(--sg-paper); border: 1px solid var(--sg-line); border-radius: 12px;
  box-shadow: 0 8px 26px rgba(43, 36, 32, .2); padding: 9px 11px 8px;
  font-size: 14px; line-height: 1.42;
}
.sg-glide .sg-bubble { transition: left .35s ease, top .35s ease; }
.sg-bubble[hidden] { display: none !important; }
/* head: character | kicker · Home · close on one line, the title full width below it */
.sg-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; column-gap: 6px; }
.sg-head > .sg-face { grid-row: 1 / span 2; align-self: center; }
.sg-meta { display: contents; }
.sg-kicker { grid-column: 2; grid-row: 1; font-size: 11.5px; color: var(--sg-soft); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-head > .sg-find { grid-column: 3; grid-row: 1; }
.sg-head > .sg-home { grid-column: 4; grid-row: 1; }
.sg-head > .sg-x { grid-column: 5; grid-row: 1; }
.sg-title { grid-column: 2 / span 4; grid-row: 2; font-size: 15px; font-weight: 650; margin: 0; color: var(--sg-ink); outline: none; line-height: 1.25;
  font-family: inherit; letter-spacing: normal; text-transform: none; }
.sg-root .sg-x { font-size: 20px; min-width: 30px; min-height: 28px; padding: 2px 6px; }
.sg-root .sg-home { font-size: 13px; min-height: 28px; padding: 3px 8px; gap: 4px; color: var(--sg-ink); border-color: var(--sg-line); }
.sg-root .sg-home:hover { border-color: var(--sg-accent); color: var(--sg-accent); }
.sg-root .sg-find { min-width: 30px; min-height: 28px; padding: 3px 6px; color: var(--sg-ink); }
.sg-root .sg-find:hover { color: var(--sg-accent); }
.sg-root .sg-find svg, .sg-root .sg-find-path svg, .sg-sbox svg { flex: none; }
.sg-root .sg-find-path { gap: 8px; color: var(--sg-ink); }
.sg-root .sg-find-path svg { color: var(--sg-accent); }
.sg-text { margin: 6px 0 0; }
.sg-text p { margin: 0 0 6px; }
.sg-sample {
  margin: 6px 0 0; padding: 6px 9px; border: 1px dashed var(--sg-accent); border-radius: 8px; background: #fff;
  font-size: 13.5px;
}
.sg-sample b.sg-tag { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--sg-accent); margin-bottom: 4px; }
.sg-sample code { font-family: ui-monospace, Menlo, Consolas, monospace; background: #f6f1ea; padding: 1px 5px; border-radius: 4px; }
.sg-status { margin: 4px 0 0; font-size: 13px; color: var(--sg-accent); font-weight: 600; min-height: 0; }
.sg-status:empty { display: none; }
.sg-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sg-row.sg-foot { justify-content: space-between; gap: 2px; border-top: 1px solid var(--sg-line); padding-top: 5px; margin-top: 7px; }
.sg-root .sg-foot button { min-height: 30px; padding-top: 4px; padding-bottom: 4px; }
.sg-paths { display: grid; gap: 6px; margin-top: 8px; }
.sg-paths button { justify-content: flex-start !important; text-align: left; }
.sg-pointer { font-size: 13px; color: var(--sg-soft); margin-top: 6px; }

/* phone (<= 600px, set by site-guide.js): a compact bottom sheet with the sparrow perched on its edge */
.sg-perch { display: none !important; }
.sg-bubble.sg-sheet {
  left: 8px; right: 8px; width: auto; top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  max-height: none; overflow: visible; padding: 7px 10px 5px; border-radius: 14px;
  box-shadow: 0 -4px 22px rgba(43, 36, 32, .18);
}
.sg-glide .sg-bubble.sg-sheet { transition: none; }
.sg-sheet .sg-head { grid-template-columns: 0 minmax(0, 1fr) auto auto auto; column-gap: 0; }
.sg-sheet .sg-kicker { padding-left: 42px; }   /* room for the perched sparrow; the title below uses the full width */
.sg-sheet .sg-head > .sg-face { display: none; }
.sg-sheet .sg-head > .sg-find { margin-left: 4px; }
.sg-sheet .sg-head > .sg-home { margin-left: 4px; }
.sg-sheet .sg-head > .sg-x { margin-left: 4px; }
.sg-sheet .sg-title { grid-column: 2 / span 4; }
.sg-root .sg-sheet .sg-perch {
  display: block !important; position: absolute; top: -30px; left: 8px; width: 42px; height: 42px;
  min-height: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; border-radius: 50% !important;
}
.sg-sheet .sg-perch .sg-face { width: 40px; height: 40px; }
.sg-sheet .sg-body { max-height: var(--sg-sheet-max, 45vh); overflow: auto; }
.sg-sheet .sg-text { margin-top: 3px; }
.sg-sheet .sg-text p { margin-bottom: 3px; }
.sg-sheet .sg-row { margin-top: 4px; }
.sg-sheet .sg-row.sg-foot { margin-top: 5px; padding-top: 3px; }
.sg-bubble.sg-collapsed { display: none !important; }
.sg-root .sg-mini {
  position: fixed; left: 10px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 2147483001;
  width: 52px; height: 52px; min-height: 0; padding: 5px !important; border-radius: 50% !important;
  background: var(--sg-paper) !important; border: 1px solid var(--sg-line) !important; box-shadow: 0 4px 16px rgba(43, 36, 32, .18) !important;
}
.sg-mini .sg-face { width: 40px; height: 40px; }
.sg-mini[hidden] { display: none !important; }

/* search the site inside the card (site-guide.js sets the results area's height and, on a phone, the sheet's bottom) */
.sg-bubble.sg-searching { width: min(380px, calc(100vw - 24px)); }
.sg-bubble.sg-searching.sg-sheet { width: auto; }
.sg-searching.sg-sheet .sg-body { max-height: none; overflow: visible; }
.sg-search { margin-top: 7px; }
.sg-sbox { display: flex; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid var(--sg-line); border-radius: 9px; background: #fff; color: var(--sg-accent); }
.sg-sbox:focus-within { border-color: var(--sg-accent); box-shadow: 0 0 0 2px rgba(139, 69, 19, .18); }
.sg-root .sg-input {
  flex: 1; min-width: 0; margin: 0; border: 0; outline: none; background: transparent; box-shadow: none;
  font: inherit; font-size: 16px; line-height: 1.3; color: var(--sg-ink); padding: 8px 2px; height: auto; width: auto;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.sg-root .sg-input::placeholder { color: #8a7a69; opacity: 1; }
.sg-root .sg-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.sg-sarea { height: 220px; overflow-y: auto; overscroll-behavior: contain; margin-top: 6px; }
.sg-snote { margin: 4px 2px; font-size: 13.5px; color: var(--sg-soft); }
.sg-snote[hidden] { display: none !important; }
.sg-root .sg-results { list-style: none; margin: 0; padding: 0; }
.sg-root .sg-results li { margin: 0; padding: 0; }
.sg-root .sg-results a { display: block; padding: 7px 8px; border-radius: 8px; color: var(--sg-ink); text-decoration: none; }
.sg-root .sg-results a:hover { background: #f6efe5; }
.sg-root .sg-results a:focus { outline: 2px solid var(--sg-accent); outline-offset: -2px; background: #f6efe5; }
.sg-rt { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.sg-rm { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--sg-soft); }
.sg-rk { font-size: 10.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; background: #f1e8dc; color: #6e3a12; }
.sg-rk.is-planned { background: transparent; border: 1px dashed #b9a48c; color: var(--sg-soft); }
.sg-rk.is-ref { background: var(--sg-accent); color: #fff; }
.sg-root .sg-results mark { background: transparent; color: inherit; text-decoration: underline; text-decoration-color: #c9a27e; text-underline-offset: 2px; }
.sg-root .sg-more { display: flex; width: 100%; margin: 4px 0 2px; color: #6e3a12; font-weight: 600; }
.sg-root .sg-more[hidden] { display: none !important; }
/* Ask Sparrow (opt-in): the offer sits below the results, the answer above them */
.sg-ask, .sg-askoffer { margin: 6px 2px 2px; }
.sg-ask[hidden], .sg-askoffer[hidden] { display: none !important; }
.sg-root .sg-askbtn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--sg-line); border-radius: 999px; background: #fff; color: #6e3a12; font-weight: 600; font-size: 13.5px; }
.sg-root .sg-askbtn:hover { background: #f6efe5; }
.sg-root .sg-askbtn:focus { outline: 2px solid var(--sg-accent); outline-offset: 2px; }
.sg-anote { margin: 5px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--sg-soft); }
.sg-answer { padding: 8px 9px 6px; border: 1px solid var(--sg-line); border-radius: 9px; background: #fbf8f3; margin-bottom: 6px; }
.sg-atext { margin: 0 0 4px; font-size: 14px; line-height: 1.45; color: var(--sg-ink); }
.sg-root .sg-aresults { margin-top: 2px; }
.sg-afoot { margin: 4px 2px 0; font-size: 11.5px; line-height: 1.35; color: var(--sg-soft); }
.sg-root .sg-arel { margin: 2px 8px 6px; font-size: 12px; line-height: 1.4; color: var(--sg-soft); }
.sg-root .sg-arel a { color: #6e3a12; text-decoration: underline; text-decoration-color: #c9a27e; text-underline-offset: 2px; }
.sg-root .sg-asknew { display: inline; padding: 0; border: 0; background: none; color: #6e3a12; font: inherit; line-height: inherit; vertical-align: baseline; text-decoration: underline; text-decoration-color: #c9a27e; text-underline-offset: 2px; cursor: pointer; }
.sg-root .sg-asknew:focus { outline: 2px solid var(--sg-accent); outline-offset: 2px; }
.sg-root .sg-rk.is-match { color: #6e3a12; }


@media (max-width: 480px) {
  .sg-bubble { padding: 8px 10px 7px; }
  .sg-face { width: 30px; height: 30px; }
}
/* touch screens keep comfortable targets */
@media (pointer: coarse) {
  .sg-root button, .sg-root a.sg-btn, .sg-root .sg-foot button { min-height: 40px; }
  .sg-root .sg-x, .sg-root .sg-home, .sg-root .sg-find { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-ring, .sg-bubble, .sg-glide .sg-ring, .sg-glide .sg-bubble { transition: none !important; }
  .sgc *, .sgc .sgc-head { animation: none !important; transition: none !important; }
  .sg-flyer { display: none !important; }
}
/* the reader's older one-time tour stays out of the way while the guide is open */
html.sg-open #tourOverlay { display: none !important; }
@media print { .sg-root { display: none !important; } }
