/* Juntos Portal — the premium look on the smaller pages (2026-10-23, the owner's chosen design).
 *
 * Linked by every /work/ and /admin/ page EXCEPT My Work (/work/) and the care need page (/work/item/), which carry
 * their own fuller version (glowing header, counts, ring). Loaded after portal-topbar.css and BEFORE each page's own
 * <style>, so every rule is scoped to `body.ju-page-glow` (the class each page carries): element + class outranks the
 * pages' own one-class rules without !important and without touching their markup.
 *
 * What it changes, and only this: the plain cream ground; cards with soft corners and shadows; pill
 * buttons (primary teal-2 to teal, secondary white); rounded messages; and on a phone, "+ New" as the round + at the
 * bottom middle, as on My Work. Titles stay plain text on the light page on purpose: their lengths vary too much to
 * sit safely on a dark band, and white words spilling off one would be unreadable.
 *
 * Colours are Core's tokens (juntos-tokens.css). White words never sit on --teal-3 (3.9:1): buttons end on --teal-2.
 */
body.ju-page-glow { background: var(--bg, var(--cream, #f7f8f6)); }

body.ju-page-glow .card {
  background: rgba(255,255,255,.82);
  border-color: #ffffff;
  border-radius: 20px;
  /* The light rim (2026-10-23): a 1px bright line along the top edge, like light on the edge of glass. */
  box-shadow: var(--shadow-card);
}

/* The pages' own accent was a hard-coded tan (--primary #906c49, never the church's colour); on the premium pages it is
   Juntos teal and navy, so every button, avatar and tick that reads --primary matches (2026-10-23). */
body.ju-page-glow { --primary: var(--teal-2); --primary2: var(--navy); }

body.ju-page-glow .btn { border-radius: 999px; }
body.ju-page-glow .btn-primary,
body.ju-page-glow .btn.primary {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--teal-2) 0%, var(--teal) 100%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-shine);
}
body.ju-page-glow .btn-primary:hover,
body.ju-page-glow .btn.primary:hover { background: linear-gradient(135deg, var(--teal) 0%, var(--teal) 100%); }
body.ju-page-glow .btn-secondary { background: var(--surface); box-shadow: var(--shadow-sm); }

body.ju-page-glow .msg,
body.ju-page-glow .alert { border-radius: 14px; }

/* "+ New" (Find a person, Not Seen Lately): the bright teal pill, and on a phone the round + at the bottom middle.
   new-menu.css keeps its 44px floor; the button keeps its words as its accessible name (font-size 0 + a drawn +). */
body.ju-page-glow .new-menu-btn {
  border-radius: 999px; border-color: transparent;
  background: linear-gradient(135deg, var(--teal-2) 0%, var(--teal) 100%);
  box-shadow: var(--shadow-glow), inset 0 1px 0 var(--glass-shine);
}
body.ju-page-glow .new-menu-btn:hover { background: var(--teal); }
@media (max-width: 560px) {
  body.ju-page-glow:has(.new-menu:not([hidden])) main { padding-bottom: 112px; }
  body.ju-page-glow .new-menu {
    position: fixed; z-index: 90; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
  }
  body.ju-page-glow .new-menu-btn {
    width: 60px; height: 60px; min-width: 60px; min-height: 60px; padding: 0; border-radius: 50%;
    font-size: 0; color: #fff; border: 4px solid var(--bg, #f7f8f6);
    background: linear-gradient(#fff, #fff) center / 24px 3px no-repeat, linear-gradient(#fff, #fff) center / 3px 24px no-repeat,
        linear-gradient(135deg, var(--teal-3) 0%, var(--teal) 100%);
      gap: 0;
    box-shadow: var(--shadow-glow), var(--shadow-float);
  }
  body.ju-page-glow .new-menu-btn:hover { /* keep the + on a tap: iOS holds :hover after a touch */
    background: linear-gradient(#fff, #fff) center / 24px 3px no-repeat, linear-gradient(#fff, #fff) center / 3px 24px no-repeat, var(--teal);
  }
  body.ju-page-glow .new-menu-btn::before { content: none; } /* the + is the two white bars in the background: a font's + glyph sat off-centre */
  body.ju-page-glow .new-menu-list { top: auto; bottom: calc(100% + 12px); left: 50%; right: auto; transform: translateX(-50%); }
}

/* ── Tool pills, style C (2026-10-23, the owner's choice from a side-by-side): a glass pill with a round icon
   tile. Frosted white on the light cards it sits on, the cards' light top edge, a soft --line edge (the visual rules'
   exception for tool pills: the words and the icon show it is a control), navy words, 44px. The tile is the only
   colour (rule 10): teal for a Juntos page, amber for Serving. Icons are drawn here, so the markup only names one
   (`tp-<icon>`). Generated with the same values in every app; change all five together. */
body.ju-page-glow .tool-pill {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 44px; padding: 5px 16px 5px 5px;
  border-radius: 999px; border: 1px solid var(--line, #d9e1e3); background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(6,29,45,.06);
  color: var(--navy, #061d2d); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
  text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer;
}
body.ju-page-glow .tool-pill:hover { border-color: var(--line-strong, #7f8789); background: #ffffff; text-decoration: none; }
body.ju-page-glow .tool-pill:focus-visible { outline: 2px solid var(--teal, #066164); outline-offset: 2px; }
body.ju-page-glow .tool-pill::before { content: ''; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--tp-tile, #e8f4f4) var(--tp-icon, none) center / 16px 16px no-repeat; }
body.ju-page-glow .tp-print { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23066164' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 6 2 18 2 18 9'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E"); }
body.ju-page-glow .tp-music { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23066164' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E"); }
body.ju-page-glow .tp-book { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23066164' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E"); }
body.ju-page-glow .tp-arrow { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23066164' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C/svg%3E"); }
body.ju-page-glow .tp-calendar { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23066164' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3Cline x1='10' y1='14' x2='14' y2='18'/%3E%3Cline x1='14' y1='14' x2='10' y2='18'/%3E%3C/svg%3E"); }
body.ju-page-glow .tp-external { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23066164' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E"); }
body.ju-page-glow .tp-mail { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23066164' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 5L2 7'/%3E%3C/svg%3E"); }
body.ju-page-glow .tp-bell { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23066164' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E"); }
body.ju-page-glow .tp-heart { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23066164' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E"); }
body.ju-page-glow .tp-eye { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23066164' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
body.ju-page-glow .tp-users { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23066164' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
body.ju-page-glow .tp-history { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23066164' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3Cpath d='M12 7v5l4 2'/%3E%3C/svg%3E"); }
body.ju-page-glow .tp-notes { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23066164' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E"); }
body.ju-page-glow .tp-download { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23066164' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E"); }
body.ju-page-glow .tp-list { --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23066164' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='9' y1='6' x2='21' y2='6'/%3E%3Cline x1='9' y1='12' x2='21' y2='12'/%3E%3Cline x1='9' y1='18' x2='21' y2='18'/%3E%3Ccircle cx='4' cy='6' r='1'/%3E%3Ccircle cx='4' cy='12' r='1'/%3E%3Ccircle cx='4' cy='18' r='1'/%3E%3C/svg%3E"); }
body.ju-page-glow .tp-arrow.tp-amber { --tp-tile: #faf0e4; --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23916537' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C/svg%3E"); }
body.ju-page-glow .tp-calendar.tp-amber { --tp-tile: #faf0e4; --tp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23916537' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3Cline x1='10' y1='14' x2='14' y2='18'/%3E%3Cline x1='14' y1='14' x2='10' y2='18'/%3E%3C/svg%3E"); }

/* Layout B (2026-10-23, the owner's choice): a group of tool pills as ONE even row -- equal columns, short words, so
   nothing wraps raggedly at any width. Each pill keeps its full name as its accessible name. */
body.ju-page-glow .tool-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-top: 10px; }
/* Icon and word centred in each tile (2026-10-30, the owner's ask), with the same space on both sides. */
body.ju-page-glow .tool-row .tool-pill { min-width: 0; gap: 6px; padding: 5px 10px; font-size: 13px; justify-content: center; text-align: center; }
body.ju-page-glow .tool-row .tool-pill::before { flex-basis: 30px; width: 30px; height: 30px; }
/* A phone narrower than ~440px cannot fit three pills of word + icon side by side (each gets ~99px; "Scripture" needs
   ~112), so there each tile stacks its icon above its word -- still one even row of three. */
@media (max-width: 440px) {
  body.ju-page-glow .tool-row .tool-pill { flex-direction: column; justify-content: center; gap: 4px; padding: 8px 4px; border-radius: 16px; font-size: 12px; text-align: center; white-space: normal; }
}

/* The form pages' own boxes (2026-10-23, the owner's click-through: Log a Call or Visit, New Care Need and Prayer
   Request still looked old -- they draw no .card). The chosen person, the search results and each need take the
   cards' surface: 82% white, the white edge, the light rim, soft corners. A checkbox row keeps its control edge
   (rule 12) and gains the rim. */
body.ju-page-glow .person-chosen,
body.ju-page-glow .results,
body.ju-page-glow .need {
  background-color: rgba(255,255,255,.82); border-color: rgba(255,255,255,.95);
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(6,29,45,.04), 0 6px 20px rgba(6,29,45,.06);
}
body.ju-page-glow .person-chosen, body.ju-page-glow .need { border-radius: 20px; }
body.ju-page-glow .results { border-radius: 16px; }
body.ju-page-glow .need:hover { border-color: var(--line-strong); }
body.ju-page-glow .toggle { border-radius: 16px; box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(6,29,45,.06); }
