/* Scripturewell V13: person profiles (preview only). Loads after the V12 interface layer and uses its tokens.
   Three kinds of words are kept visibly apart: what the Bible says (plain page), Scripturewell's own
   study note (tinted panel), and the 1890s dictionary entry (bordered panel). */

.swp { color: var(--ink); }
.swp-eyebrow { margin: 0 48px 6px 0; font: 600 0.75rem/1.3 var(--sw12-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
#modal-content .swp-title { margin: 0 48px 8px 0; font-family: var(--display) !important; font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.4rem) !important; font-weight: 600; line-height: 1.15 !important; color: var(--ink); }
#modal-content .swp-title:focus { outline: none; }
#modal-content .swp-title:focus-visible { outline: 2px dashed var(--gold); outline-offset: 4px; }
.swp-subtitle { margin: 0 0 10px; font: italic 1.25rem/1.45 var(--display); color: var(--ink-soft); }
.swp-also { margin: 0 0 14px; font: 0.95rem/1.5 var(--sw12-ui); color: var(--ink); }
.swp-also-label { font-weight: 600; color: var(--ink-soft); }
.swp .swp-status { margin: 14px 0 !important; line-height: 1.5 !important; }
.swp-content-note { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--border); border-left: 4px solid var(--crimson); border-radius: var(--sw12-r-sm); background: var(--accent-bg); font: 0.92rem/1.5 var(--sw12-ui); color: var(--ink); }

.swp-section { margin: 26px 0 0; }
.swp-section > h2 { margin: 0 0 10px; font-family: var(--display) !important; font-size: 1.45rem; font-weight: 600; line-height: 1.25; color: var(--ink) !important; }
.swp-section > p, .swp-list li { font: 1.15rem/1.7 var(--serif); color: var(--ink); }
.swp-section > p { margin: 0 0 14px; }
.swp-section > p:last-child { margin-bottom: 0; }
.swp .swp-kind { margin: -4px 0 12px; font: 0.85rem/1.5 var(--sw12-ui); color: var(--ink-soft); }

.swp-list { margin: 0; padding: 0; list-style: none; }
.swp-list li { padding: 8px 0; border-top: 1px solid var(--border); }
.swp-list li:first-child { border-top: 0; padding-top: 0; }
#modal-content .swp-link { display: inline-block; padding: 8px 0; margin: -8px 0; font-weight: 600; color: var(--crimson); text-decoration: underline; text-underline-offset: 3px; }
[data-theme='dark'] #modal-content .swp-link { color: var(--gold-light); }
#modal-content .swp-link:hover { text-decoration-thickness: 2px; }

.swp-passages { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.swp-passage { position: relative; display: block; width: 100%; min-height: 56px; padding: 10px 40px 10px 14px; border: 1px solid var(--border); border-radius: var(--sw12-r-sm); background: var(--bg-card); color: var(--ink); text-align: left; cursor: pointer; }
.swp-passage:hover { background: var(--sw12-hover); border-color: var(--gold); }
.swp-passage:active { background: var(--sw12-press); }
.swp-ref { display: block; font: 600 0.95rem/1.4 var(--sw12-ui); color: var(--crimson); }
[data-theme='dark'] .swp-ref { color: var(--gold-light); }
.swp-about { display: block; margin-top: 2px; font: 1.05rem/1.5 var(--serif); color: var(--ink); }
.swp-go { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 400 1.5rem/1 var(--sw12-ui); color: var(--ink-soft); }
.swp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.swp-study { padding: 16px 18px; border-left: 4px solid var(--gold); border-radius: 0 var(--sw12-r-sm) var(--sw12-r-sm) 0; background: var(--bg-warm); }
.swp-lexicon { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--sw12-r-sm); background: var(--bg-card); }
.swp-entry { padding: 12px 0; border-top: 1px solid var(--border); }
.swp-entry-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 4px; }
.swp-word { font: 1.6rem/1.3 'SBL Hebrew', 'Ezra SIL', 'Noto Serif Hebrew', 'Times New Roman', serif; color: var(--ink); }
.swp-word[lang='grc'] { font-family: var(--serif); font-size: 1.4rem; }
.swp-translit { font: italic 1.15rem/1.3 var(--display); color: var(--ink); }
.swp-num { font: 600 0.8rem/1.3 var(--sw12-ui); letter-spacing: 0.02em; color: var(--ink-soft); }
.swp .swp-entry-text { margin: 0; font: 1.1rem/1.6 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.swp .swp-related-label { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font: 600 0.75rem/1.3 var(--sw12-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.swp-related-label + .swp-entry { border-top: 0; padding-top: 6px; }
.swp .swp-note { margin: 0; padding: 12px 0; border-top: 1px solid var(--border); font: 0.95rem/1.55 var(--sw12-ui); color: var(--ink); }
.swp .swp-source { margin: 0; padding-top: 12px; border-top: 1px solid var(--border); font: 0.8rem/1.5 var(--sw12-ui); color: var(--ink-soft); }

.swp-wait p { font: 1.05rem/1.6 var(--sw12-ui); color: var(--ink-soft); }

.swp :is(a, button):focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Simple view: the story first; relationships, passages, notes and the dictionary sit behind "Explore deeper". */
html[data-mode='simple'] .swp .fact-deeper-toggle { margin: 22px 0 0; }
html[data-readable-font] .swp-subtitle, html[data-readable-font] .swp-translit { font-style: normal; }

@media (max-width: 600px) {
    .swp-section > p, .swp-list li { font-size: 1.1rem; }
    .swp-study, .swp-lexicon { padding: 14px; }
}

/* Bible People: a Library section of its own. Names are buttons that open the person's profile. */
.swpl { margin: 28px 0; padding: 22px; border: 1px solid var(--border); border-radius: var(--sw12-r); background: var(--bg-card); color: var(--ink); scroll-margin-top: 80px; }
.swpl > h2 { margin: 0 0 6px; font-family: var(--display) !important; font-size: 1.7rem; font-weight: 600; line-height: 1.2; color: var(--ink) !important; }
.swpl-intro { margin: 0 0 12px; max-width: 62ch; font: 1rem/1.55 var(--sw12-ui); color: var(--ink-soft); }
.swpl .swpl-status { margin: 0 0 16px !important; }
.swpl-label { display: block; margin: 0 0 6px; font: 600 0.95rem/1.4 var(--sw12-ui); color: var(--ink); }
.swpl-q { box-sizing: border-box; width: 100%; max-width: 420px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ink-faint, var(--border)); border-radius: var(--sw12-r-sm); background: var(--bg); color: var(--ink); font: 1.05rem/1.4 var(--sw12-ui); }
.swpl-q::placeholder { color: var(--ink-soft); opacity: 1; }
.swpl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.swpl-tab { min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--ink); font: 500 0.95rem/1.2 var(--sw12-ui); cursor: pointer; }
.swpl-tab:hover { border-color: var(--gold); background: var(--sw12-hover); }
.swpl-tab[aria-pressed='true'] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.swpl-n { font-weight: 400; opacity: 0.85; }
.swpl-count { margin: 10px 0 12px; font: 0.9rem/1.5 var(--sw12-ui); color: var(--ink-soft); }
.swpl-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.swpl-person { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; box-sizing: border-box; width: 100%; height: 100%; min-height: 64px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--sw12-r-sm); background: var(--bg); color: var(--ink); text-align: left; cursor: pointer; }
.swpl-person:hover { border-color: var(--gold); background: var(--sw12-hover); }
.swpl-person:active { background: var(--sw12-press); }
.swpl-name { display: block; font: 600 1.2rem/1.3 var(--display); color: var(--ink); }
.swpl-sub { display: block; margin-top: 4px; font: 0.95rem/1.45 var(--serif); color: var(--ink); }
.swpl-also { display: block; margin-top: 4px; font: 0.82rem/1.4 var(--sw12-ui); color: var(--ink-soft); }
.swpl-more, .swpl-notify-btn { min-height: 44px; margin-top: 14px; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--sw12-r-sm); background: var(--bg); color: var(--ink); font: 500 0.95rem/1.2 var(--sw12-ui); cursor: pointer; }
.swpl-more:hover, .swpl-notify-btn:hover { border-color: var(--gold); background: var(--sw12-hover); }
.swpl-more[hidden] { display: none; }
.swpl-notify { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.swpl-notify p { margin: 0; max-width: 62ch; font: 0.95rem/1.55 var(--sw12-ui); color: var(--ink); }
.swpl-notify-btn { margin-top: 10px; }
.swpl :is(button, input):focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 600px) {
    .swpl { margin: 20px 0; padding: 16px; }
    .swpl-list { grid-template-columns: 1fr; }
}
/* Picture strip and line icon at the top of the section, the same as the topic cards on Today. */
.swpl { overflow: hidden; }
.swpl-banner { margin: -22px -22px 0; }
.swpl-banner .swpl-photo { height: 110px; background-size: cover; background-position: center bottom; }
.swpl-banner .swpl-badge { position: relative; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: -24px 22px 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--sw12-r-sm, 10px); }
.swpl-banner .swpl-badge .v9-icon { width: 28px; height: 28px; }
.v9-plain .swpl-banner .swpl-badge { margin-top: 0; }
.v9-plain .swpl-banner { margin-top: 0; }
.v9-no-icons .swpl-banner .swpl-badge { display: none; }
@media (max-width: 800px) { .swpl-banner .swpl-photo { height: 100px; } }
