/* Member dashboard -- layout + visual design for dashboard.html, matching
   the user's own GodTracer mockups (dark teal-to-black page background,
   white rounded card, maroon/red accents, serif "GOD tracer.com"
   wordmark) rather than the public site's purple/light look. Scoped to
   this page only -- style.css's own --accent/--ink variables etc. are
   untouched, so index.html/archive.html don't change. */

:root {
  --dash-bg-top: #123634;
  --dash-bg-bottom: #050505;
  --dash-maroon: #8a1a1a;
  --dash-maroon-dark: #6e1414;
  --dash-card: #ffffff;
  --dash-ink: #2a2420;
  --dash-ink-soft: #6b6460;
  --dash-border: #d8c9c3;
  --dash-header-ink: #f3efe8;
}

/* Same edge-sampled gradient family as the public homepage (bubble.css) --
   dark teal at the top, through a light near-white band, back to dark at
   the bottom -- matching the mockup's background exactly rather than the
   flatter two-stop gradient used before. */
body:has(.dash-wrap) {
  background: linear-gradient(180deg,
    #0c2e2c 0%,
    #2c4a46 20%,
    #7f9c97 38%,
    #dbe4e2 50%,
    #f4f6f5 58%,
    #9aa6a4 68%,
    #4b4f4e 80%,
    #141414 92%,
    #050505 100%);
  margin: 0;
}
body:has(.dash-wrap) .bg-glow { display: none; }

.dash-wrap {
  max-width: 1084px;
  padding-top: 86px;
}

/* Logo+Logout pinned to the CARD's own top-right corner (not the raw
   viewport corner -- position:fixed drifted away from the card on wide
   viewports since .wrap is only max-width:1084px). .wrap is already
   position:relative (style.css), so position:absolute here tracks the
   card regardless of viewport width.
   Real flex row now (the "display:flex" was missing before, which made
   align-items/gap no-ops and silently stacked Logout above the logo box
   via block flow instead of beside it -- per explicit feedback, "Logout
   ... should sit the same height as Welcome Emily but to the left of the
   GOD tracer.com box", NOT above it). align-items:flex-start so each
   child can be vertically positioned independently via its own
   margin-top (see .dash-logout-link / .dash-brand below) -- Logout sits
   much lower (level with "Welcome Emily") than the logo box, which stays
   bled down to overlap the card's top edge. */
.dash-topright {
  position: absolute;
  top: 40px;
  right: -10px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  z-index: 5;
  gap: 14px;
}

.dash-logout-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--dash-header-ink);
  opacity: 0.9;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  /* Pushed down to land level with "Welcome Emily" below, tuned against
     a live measurement of both elements' vertical position. */
  margin-top: 46px;
}
.dash-logout-link:hover { opacity: 1; }

.dash-brand {
  display: flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--dash-card);
  border: 2px solid var(--dash-maroon);
  border-radius: 14px;
  /* Taller box per explicit feedback (was 10px 20px). */
  padding: 16px 20px;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.6);
  /* Keeps the logo box at its previous (confirmed "perfect") bled-down
     position, overlapping the card's top edge -- now needs an explicit
     margin-top since .dash-topright no longer centers its children. */
  margin-top: 18px;
}
/* "GOD tracer" nudged up 5px and ".com" up 2px within the (now taller)
   box, per explicit feedback -- relative positioning shifts just the
   glyphs without affecting the baseline-aligned flex layout around them. */
.dash-brand-main {
  font-size: 30px;
  color: var(--dash-maroon);
  position: relative;
  top: -5px;
}
.dash-brand-dot {
  font-size: 16px;
  color: var(--dash-ink-soft);
  align-self: flex-end;
  position: relative;
  top: -2px;
}

/* "Welcome [name]" sits directly on top of the big white card below, not
   inside it -- left-aligned with the CARD's own left edge (never
   further left than that), not the left sidebar's edge, per explicit
   feedback. Value tuned against a live measurement of the card's actual
   left position now that the left sidebar's width is content-driven
   (see .dash-sidebar's grid trick) rather than a fixed 170px. */
.dash-header {
  margin: 0 0 14px;
  /* Now lines up with "Private Tracing Log" (the first tab, inside the
     card's own left padding) instead of the card's own outer left edge,
     per explicit correction -- value tuned against a live measurement of
     that tab's left position. */
  margin-left: 175px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dash-welcome {
  font-size: 16px;
  color: var(--dash-header-ink);
}

.dash-tab, .dash-subtab, .dash-side-btn {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--dash-ink);
  background: var(--dash-card);
  border: 2px solid var(--dash-maroon);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
}
/* Sidebar buttons (left AND right columns) now carry explicit two-line
   stacked text (e.g. "Account" / "Changes") via a <br> in the markup,
   matching the mockup's stacked-word look -- centered rather than
   left-aligned since the text is a short stacked pair, not a left-
   reading sentence. Horizontal padding trimmed way down to just 2px per
   explicit feedback ("create 2 pixels of white space on either side")
   -- the actual uniform box WIDTH across a sidebar comes from the grid
   trick on .dash-sidebar below, not from padding. */
.dash-side-btn {
  text-align: center;
  line-height: 1.3;
  /* Top/bottom padding cut 50% per explicit feedback ("looking too fat
     height wise... reduce that spacing on top and bottom by 50%") --
     was 15px (itself last round's 10px+5px bump), now 7.5px. Left/right
     untouched -- only "top and bottom" was asked. */
  padding: 7.5px 7px;
  /* Uniform height across every sidebar button (left AND right), fixing
     a real bug: some labels are two lines via a hard <br> ("What Is
     GOD<br>Tracing?") and some are one line ("Extras"), so without an
     explicit min-height each button's box only ever matched its own
     text's height -- the two-line buttons were visibly taller than the
     one-line ones. Sized for 2 lines of this font/line-height + the
     padding above; flex-centering keeps a 1-line button's text vertically
     centered in that same taller box instead of sitting at the top. */
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-tab:hover, .dash-subtab:hover, .dash-side-btn:hover {
  background: #fbf3f1;
}
.dash-tab.active, .dash-subtab.active, .dash-side-btn.active {
  background: var(--dash-maroon);
  border-color: var(--dash-maroon-dark);
  color: #fff;
}

/* The 7 tab/subtab buttons (not the sidebar buttons) drop their bottom
   border so they read as "attached" to the card they sit on, like file
   folder tabs merging into the white rectangle below them, matching the
   mockup -- instead of each being a fully closed box floating above the
   content. */
.dash-tab, .dash-subtab {
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

/* v48: .dash-tab/.dash-subtab/.dash-side-btn are now sometimes real
   <a href> links (the sections that moved to their own standalone
   pages -- see project-conventions.md) instead of always being
   <button>s. All the rules above are class-based already and apply to
   either tag just fine, EXCEPT display/underline: a <button> defaults
   to a button-ish inline-block box with no underline, but a plain <a>
   defaults to inline WITH an underline. .dash-side-btn's own
   display:flex rule above already fixes the box shape, but display
   alone doesn't touch text-decoration -- that's a separate property --
   so the left-sidebar links were still showing the browser's default
   underline (per explicit feedback, "the left menu somehow got
   underlined"). All three get the explicit override here now. */
a.dash-tab, a.dash-subtab, a.dash-side-btn {
  text-decoration: none;
}
a.dash-tab, a.dash-subtab {
  display: inline-block;
}

.dash-body {
  display: grid;
  /* Left column now sizes to the left sidebar's own (now narrower,
     content-driven) width instead of a fixed 170px, since that width
     changed -- see .dash-sidebar-left below. */
  grid-template-columns: max-content minmax(0, 1fr);
  /* Halved per explicit feedback ("cut that [gap] in half") -- was 20px. */
  gap: 10px;
  align-items: start;
}

/* CSS Grid with a single max-content column makes every row/item in it
   share the SAME width -- equal to the widest one's natural content
   width -- with no JS measurement needed. This is what makes every
   button in a sidebar end up the same (narrower) width, matching the
   widest label with only the button's own 2px side padding around it,
   per explicit feedback ("make all boxes this exact width"). */
.dash-sidebar {
  display: grid;
  grid-template-columns: max-content;
  /* Tightened per explicit feedback ("change the space between both
     right and left menu items to 3 pixels") -- was 16px, applies to
     both sidebars. */
  row-gap: 3px;
  padding-top: 4px;
}

/* Left sidebar starts noticeably lower than the tab row, matching the
   mockup -- "Prayer Archive" isn't aligned with the very top of the big
   white card, it sits down a bit from there. */
.dash-sidebar-left {
  margin-top: 46px;
}

/* Small decorative dot pair beside each left-sidebar button, matching the
   mockup's own accent marks -- larger here and red/maroon outlined (same
   family as the rest of the page's outlines), 2px like everything else.
   Purely visual, not interactive. */
.dash-side-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-side-row .dash-side-btn { flex: 1 1 auto; }
.dash-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}
/* Left dot of each pair is the larger one, right dot smaller -- matches
   the mockup's uneven dot pairs rather than two identical circles. Filled
   white (not see-through to the page background) per the user's
   correction. A slight vertical offset between the two gives them the
   same gentle angled/staggered look as the mockup. */
.dash-dots i {
  display: block;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--dash-maroon);
}
.dash-dots i:first-child {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}
.dash-dots i:last-child {
  width: 10px;
  height: 10px;
  margin-top: -2px;
}
/* Per-row tweaks to the second (small) dot's vertical offset, tuned
   row-by-row against the general -2px baseline per explicit feedback:
   row 1 (Prayer Archive) 2px higher than its previous -8px; row 2
   (Donate Your Time) 1px higher than the general baseline; row 3 (What
   Is GOD Tracing?) 2px lower than the general baseline; row 4 (Donate
   to GOD Tracer) untouched, keeps the general -2px; row 5 (Extras) 2px
   lower than its previous 6px. */
.dash-sidebar-left .dash-side-row:nth-child(1) .dash-dots i:last-child {
  margin-top: -10px;
}
.dash-sidebar-left .dash-side-row:nth-child(2) .dash-dots i:last-child {
  margin-top: -3px;
}
.dash-sidebar-left .dash-side-row:nth-child(3) .dash-dots i:last-child {
  margin-top: 0;
}
.dash-sidebar-left .dash-side-row:nth-child(5) .dash-dots i:last-child {
  margin-top: 8px;
}

/* The one big tall white rounded rectangle, matching the mockup: tabs are
   inset into its own top padding (not floating separately above it), the
   content panel sits below them with no extra border of its own, and the
   whole thing has a generous minimum height that still grows for longer
   content. Positioned relative so the small top-right dot accent below
   can be pinned to its corner. */
.dash-card {
  position: relative;
  background: var(--dash-card);
  border: 2px solid var(--dash-maroon);
  border-radius: 48px;
  padding: 14px 34px 40px;
  min-height: 640px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
  /* Above .dash-topright's z-index:5, so the card's own rounded top
     border wins the overlap with the logo box's bottom edge (the logo
     box bleeds down behind the card, not in front of it), per explicit
     feedback ("I want to instead see the top border of the Big White
     Rectangle box so this box wins"). */
  z-index: 6;
}

.dash-tabs, .dash-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dash-subtabs { margin-top: 6px; margin-bottom: 20px; }

/* Right-hand account/groups column now lives INSIDE the card, next to the
   content panel, instead of floating outside it as its own grid column --
   per the user's correction. Panel takes the remaining space, the right
   sidebar holds a fixed-ish width. */
.dash-card-body {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.dash-card-body .dash-panel {
  flex: 1 1 auto;
  min-width: 0;
}
/* Width now comes purely from the grid trick on .dash-sidebar (sized to
   "Search For"/"Private Groups", its widest wrapped line, plus 2px of
   padding each side) rather than a fixed px value -- narrower still
   than before, per "make it smaller." flex:0 0 auto so it takes exactly
   that content width and no more, instead of stretching. Pulled left
   with a right margin so its own right edge lines up with "My Prayer
   Bank"'s right edge in the tabs row above, per explicit feedback --
   value tuned against a live screenshot measurement. */
.dash-card-body .dash-sidebar-right {
  flex: 0 0 auto;
  width: auto;
  /* Lowered a further 40px per explicit feedback (was 24px, itself
     already +20px over the original 4px). */
  padding-top: 64px;
  /* Settled rule per explicit feedback + the mockup: the right menu
     should sit a normal, fixed, SMALL distance from the card's own
     right edge -- "never a large gap... just a normal spacing like
     10-20px" -- replacing both of the previous two (mutually
     incompatible) rules this went through: v24's "3px from the card's
     own edge" and v26's "match My Prayer Bank's right edge" (which left
     a ~330px gap from the card, since the tabs row doesn't span the
     card's full width). This anchor is also more robust than matching a
     text tab's width, since it doesn't depend on font-rendering
     differences between browsers. Tuned via live measurement to land
     ~15px from the card's own outer right border. */
  margin-right: -21px;
}

.dash-panel {
  min-height: 380px;
}

.dash-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--dash-maroon);
}

.dash-panel p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--dash-ink);
  margin: 0 0 14px;
}

.dash-panel .dash-muted {
  color: var(--dash-ink-soft);
  font-size: 13.5px;
}

.dash-placeholder {
  color: var(--dash-ink-soft);
  font-style: italic;
  padding: 8px 0;
}

.dash-field-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  max-width: 420px;
}
.dash-field-row label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--dash-ink-soft);
}
.dash-field-row input[type="text"],
.dash-field-row input[type="email"],
.dash-field-row input[type="tel"],
.dash-field-row textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--dash-ink);
  background: #fffdfc;
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  padding: 9px 12px;
}
.dash-field-row input[disabled] {
  opacity: 0.65;
}
.dash-field-row .dash-field-note {
  font-size: 12px;
  color: var(--dash-ink-soft);
}

.dash-radio-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
.dash-radio-row label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--dash-maroon);
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  cursor: pointer;
}
.dash-btn:hover { background: var(--dash-maroon-dark); }
.dash-btn:disabled { opacity: 0.6; cursor: default; }
.dash-btn-secondary {
  background: var(--dash-card);
  color: var(--dash-ink);
  border: 1px solid var(--dash-maroon);
}
/* .dash-btn:hover (above) darkens EVERY .dash-btn's background, including
   a secondary one like the "Record voice note" button -- but only the
   base .dash-btn sets a light text color, and .dash-btn-secondary's own
   dark text color was never overridden for its own hover state, so it
   went dark text on a dark background. Per explicit feedback ("hovers
   dark and the text stays black so its hard to see"). */
.dash-btn-secondary:hover { color: #fff; }

.dash-group-card {
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
.dash-group-card dl {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 10px;
  font-size: 13.5px;
}
.dash-group-card dt { color: var(--dash-ink-soft); }
.dash-group-card dd { margin: 0; }

.dash-archive-group h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  margin: 18px 0 8px;
  color: var(--dash-maroon);
  cursor: pointer;
  text-decoration: underline;
}
.dash-archive-group h3:first-child { margin-top: 0; }
.dash-archive-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dash-archive-group li {
  padding: 8px 0;
  border-bottom: 1px solid var(--dash-border);
  font-size: 13.5px;
  color: var(--dash-ink);
}

/* ---- v29 additions: Donate Your Time form, Donate to GOD Tracer demo
   giving UI, Prayer Archive feed list, Extras submenu + Bible reader ---- */

.dash-link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--dash-maroon);
  text-decoration: underline;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.dash-link-btn:hover { color: var(--dash-maroon-dark); }

.dash-form-subhead {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--dash-maroon);
  font-size: 15px;
  margin: 18px 0 10px;
}

.dash-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, max-content));
  gap: 8px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  margin-bottom: 14px;
}
.dash-checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Honeypot field -- visually hidden from sighted users (not display:none
   or visibility:hidden, which some bots skip over entirely when deciding
   what to fill in) but still present and focusable in the DOM, which is
   what makes it an effective trap. */
.dash-hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.dash-demo-banner {
  background: #fdf6ec;
  border: 1px solid #e3c88a;
  color: #7a5a14;
  border-radius: 10px;
  padding: 10px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  margin-bottom: 18px;
  max-width: 560px;
}

.dash-amount-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.dash-amount-btn.active {
  background: var(--dash-maroon);
  color: #fff;
  border-color: var(--dash-maroon-dark);
}
.dash-amount-row input[type="number"] {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--dash-ink);
  background: #fffdfc;
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  padding: 9px 12px;
  width: 100px;
}

.dash-archive-list {
  max-width: 640px;
}
.dash-archive-card-wrap { margin-bottom: 10px; }
.dash-archive-card { margin-bottom: 0; }
/* Date/time sits right after the author's name now (no more separate
   line just for it) -- per explicit feedback ("a wasted line just for
   date and time for every single prayer on this page"). */
.dash-archive-when {
  font-size: 12px;
  margin-left: 4px;
}
.dash-archive-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--dash-border);
}
.dash-archive-stat {
  font-size: 12.5px;
  color: var(--dash-ink-soft);
}
.dash-archive-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dash-maroon);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.dash-archive-chevron {
  width: 13px;
  height: 13px;
  transition: transform 0.15s ease;
}
.dash-archive-expand-btn[aria-expanded="true"] .dash-archive-chevron {
  transform: rotate(180deg);
}
/* The response panel is a sibling of .dash-archive-card (not nested
   inside it) so it can be toggled with plain hidden/not-hidden without
   fighting the card's own border-radius/overflow. Simple standalone box
   right below the card rather than trying to visually fuse the two --
   safer without being able to see the live result. */
.dash-archive-responses {
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  margin-top: 6px;
  padding: 10px 16px 12px;
  background: #fbfaf8;
}
.dash-archive-response {
  padding: 6px 0;
  font-size: 13.5px;
}
.dash-archive-response + .dash-archive-response {
  border-top: 1px solid var(--dash-border);
}

/* ---- v37: Prayer Archive range pager (1-50 / 51-100 / ...), matching
   RequestingPrayer.com's own archive page pattern. ---- */
.dash-archive-pager {
  display: flex;
  gap: 8px;
  margin: 2px 0 16px;
  flex-wrap: wrap;
}
.dash-pager-btn {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--dash-ink);
  background: #fff;
  border: 1px solid var(--dash-border);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
}
.dash-pager-btn.active {
  background: var(--dash-maroon);
  border-color: var(--dash-maroon);
  color: #fff;
}

/* ---- v37: per-panel extra slot in the right sidebar (Pray For Others'
   member-only tally + "Your responses"), and a stacked/narrower variant
   of .dash-tally-row sized to fit that narrow column instead of the
   full-width two-tiles-side-by-side layout used in the main panel. ---- */
.dash-sidebar-extra:empty { display: none; }
.dash-sidebar-extra {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--dash-border);
  width: 100%;
}
.dash-tally-row-stacked {
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
}
.dash-tally-row-stacked .dash-tally-tile {
  padding: 8px 14px;
  text-align: left;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.dash-tally-row-stacked .dash-tally-tile strong { font-size: 18px; }
.dash-sidebar-extra #prayForOthersList .dash-group-card {
  font-size: 12.5px;
  padding: 8px 10px;
}

.dash-extras-subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.dash-extras-subtab {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dash-ink);
  background: var(--dash-card);
  border: 2px solid var(--dash-maroon);
  border-radius: 999px;
  padding: 6px 18px;
  cursor: pointer;
  /* v48: these are real <a href> links now (Bible/Atheists/Helpful are
     three separate pages -- see project-conventions.md), not buttons
     that swap content in place, so the anchor defaults (inline,
     underlined) need the same override as .dash-tab/.dash-subtab. */
  display: inline-block;
  text-decoration: none;
}
.dash-extras-subtab:hover { background: #fbf3f1; }
.dash-extras-subtab.active {
  background: var(--dash-maroon);
  border-color: var(--dash-maroon-dark);
  color: #fff;
}

/* Extras -> Helpful (affiliate product picks). Placeholder content as of
   2026-10-22 -- see HELPFUL_PRODUCTS / HELPFUL_ASSOCIATE_TAG in
   dashboard.js, the one spot to update once real products/tag exist. */
.dash-helpful-disclosure { font-size: 12.5px; }
.dash-helpful-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.dash-helpful-card {
  background: var(--dash-card);
  border: 1px solid var(--dash-border, #e6d9d4);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-helpful-card-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  margin: 0;
  color: var(--dash-ink);
}
.dash-helpful-card-blurb { font-size: 12.5px; margin: 0; flex: 1; }
.dash-helpful-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.dash-helpful-price { font-weight: 600; color: var(--dash-ink); }
.dash-helpful-buy-btn {
  font-size: 12.5px;
  padding: 6px 14px;
  margin-left: auto;
}
.dash-helpful-digital-note {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px dashed var(--dash-maroon);
  border-radius: 12px;
}
.dash-helpful-digital-note h3 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}
.dash-helpful-digital-note p { margin: 0; font-size: 12.5px; }

.dash-bible-wrap {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.dash-bible-booklist {
  flex: 0 0 180px;
  max-height: 440px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  padding: 8px;
}
.dash-bible-book-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13.5px;
  text-align: left;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--dash-ink);
  cursor: pointer;
}
.dash-bible-book-btn:hover { background: #fbf3f1; }
.dash-bible-book-btn.active {
  background: var(--dash-maroon);
  color: #fff;
}
.dash-bible-content {
  flex: 1 1 auto;
  min-width: 0;
}
.dash-bible-heading {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--dash-maroon);
  font-size: 18px;
  margin: 0 0 10px;
}
.dash-bible-chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 110px;
  overflow-y: auto;
  margin-bottom: 14px;
}
.dash-bible-chapter-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.5px;
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: 6px;
  min-width: 28px;
  padding: 3px 6px;
  cursor: pointer;
  color: var(--dash-ink);
}
.dash-bible-chapter-btn:hover { background: #fbf3f1; }
.dash-bible-chapter-btn.active {
  background: var(--dash-maroon);
  border-color: var(--dash-maroon-dark);
  color: #fff;
}
.dash-bible-verse {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--dash-ink);
  margin: 0 0 4px;
}
.dash-bible-verse sup {
  color: var(--dash-maroon);
  font-weight: 700;
  margin-right: 2px;
}

/* ---- v30 additions: center-menu panels (My Prayer Bank / My Faith
   Builders / My Groups / My Blessing Bank / My Connections / Pray For
   Others / Post A Prayer Request / Notes) ---- */

.dash-copy-icon-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.dash-copy-icon-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  background: var(--dash-card);
  border: 1px solid var(--dash-maroon);
  color: var(--dash-maroon);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}
.dash-copy-icon-btn:hover { background: #fbf3f1; }
.dash-copy-icon-btn.added {
  background: var(--dash-maroon);
  color: #fff;
  cursor: default;
}

.dash-audio-recorder {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.dash-audio-status {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.5px;
  color: var(--dash-ink-soft);
}

.dash-share-modal {
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 10px;
  max-width: 420px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
.dash-share-list {
  margin: 10px 0 14px;
}

.dash-manage-group {
  border-top: 1px dashed var(--dash-border);
  margin-top: 16px;
  padding-top: 16px;
}

.dash-tally-row {
  display: flex;
  gap: 16px;
  margin: 6px 0 20px;
}
.dash-tally-tile {
  border: 1px solid var(--dash-border);
  border-radius: 14px;
  padding: 14px 24px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.dash-tally-tile strong {
  display: block;
  font-size: 26px;
  color: var(--dash-maroon);
  font-family: Georgia, "Times New Roman", serif;
}
.dash-tally-tile span {
  font-size: 12.5px;
  color: var(--dash-ink-soft);
}

/* ---- v31 additions: guest/sign-up gate + the shared login popup ---- */

.dash-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.dash-modal {
  background: var(--dash-card);
  border: 2px solid var(--dash-maroon);
  border-radius: 24px;
  padding: 28px 30px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
}
.dash-modal h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--dash-maroon);
  font-size: 20px;
  margin: 0 0 10px;
}

@media (max-width: 920px) {
  .dash-bible-wrap {
    flex-direction: column;
  }
  .dash-bible-booklist {
    flex: none;
    width: 100%;
    max-height: 180px;
  }

  .dash-header {
    margin-left: 0;
  }
  /* The new desktop row layout (Logout beside the logo box, level with
     "Welcome Emily") doesn't fit at narrow widths -- the two together
     are wider than the available space and collide with the header
     text. Reverts to the original stacked layout (Logout above the logo
     box) here, same as before this round's desktop-only change. */
  .dash-topright {
    flex-direction: column;
    align-items: flex-end;
  }
  .dash-logout-link {
    margin-top: 0;
  }
  .dash-brand {
    margin-top: 0;
  }
  .dash-body {
    grid-template-columns: 1fr;
  }
  /* .dash-sidebar is display:grid on desktop (for the uniform-width
     trick) -- switched back to a wrapping flex row here since the
     columns don't need to match on narrow screens, same as before. */
  .dash-sidebar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .dash-card-body {
    flex-direction: column;
  }
  .dash-card-body .dash-sidebar-right {
    flex: none;
    width: 100%;
    margin-right: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
