/* Apostolic sees (/succession), 2026-10-24: overview grid + focused history.
   Shared pieces from guide-teach.css. */

.sv-seg { margin: 4px 0 14px; }
.sv-h2 { font-size: 20px !important; font-weight: 800 !important; margin: 0 0 10px; }
.sv-h3 { font-size: 17px !important; font-weight: 800 !important; margin: 18px 0 10px; }
.sc-und { margin-top: 10px; }
.sc-und-list { margin: 10px 0 6px; padding-left: 18px; }
.sc-und-list li { font-size: 15.5px; line-height: 1.6; color: var(--hg-body); margin: 0 0 10px; }

/* ---- overview ---- */
.sv-scrollcue { display: none; margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--hg-primary); }
.sv-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--hg-surface); border: 1px solid var(--hg-border); border-radius: var(--hg-radius); box-shadow: var(--hg-shadow-sm); }
.sv-grid { display: grid; grid-template-columns: 132px repeat(var(--cols), minmax(132px, 1fr)); min-width: calc(132px + var(--cols) * 132px); }
.sv-row { display: contents; }
.sv-rowlbl { grid-column: 1; padding: 12px 12px; border-top: 1px solid var(--hg-border); background: var(--hg-surface-2); position: sticky; left: 0; z-index: 2; }
.sv-rl { display: block; font-size: 14.5px; font-weight: 800; color: var(--hg-text); font-variant-numeric: tabular-nums; }
.sv-rs { display: block; font-size: 13px; color: var(--hg-muted); line-height: 1.35; margin-top: 2px; }
.sv-row--head .sv-rowlbl { border-top: 0; }
.sv-colh { padding: 8px 6px; background: var(--hg-surface-2); border-bottom: 1px solid var(--hg-border-strong); }
.sv-colbtn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; height: 100%; padding: 8px 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; font: inherit; }
.sv-colbtn:hover { background: var(--hg-surface); border-color: var(--hg-border-strong); }
.sv-colname { font-size: 15px; font-weight: 800; line-height: 1.25; color: var(--hg-primary); text-decoration: underline; text-decoration-color: rgba(58, 87, 232, .35); text-underline-offset: 3px; }
.sv-colcomm { font-size: 12.5px; font-weight: 700; color: var(--hg-muted); }
.sv-colgroup { font-size: 12px; color: var(--hg-faint); }

.sv-cell { position: relative; padding: 10px 8px 10px 22px; border-top: 1px solid var(--hg-border); min-height: 46px; }
/* the continuing line of a see */
.sv-cell::before { content: ""; position: absolute; left: 11px; top: 0; bottom: 0; width: 3px; background: #c9d2fb; border-radius: 2px; }
.sv-cell--before::before { background: repeating-linear-gradient(to bottom, #d6dbe7 0 5px, transparent 5px 10px); }
.sv-cell--shared { background: #f7f8ff; }
.sv-cell--shared::before { left: 50%; margin-left: -2px; width: 5px; background: #9fb0f5; }
.sv-cell--shared .sv-evs { position: relative; z-index: 1; background: transparent; }
.sv-shared-k { position: relative; z-index: 1; margin: 0 0 6px; display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--hg-primary); background: #fff; border: 1px solid #c9d2fb; border-radius: 999px; padding: 2px 10px; }
.sv-cell--shared { display: flex; flex-direction: column; align-items: center; padding-left: 8px; }
.sv-cell--shared .sv-evs { width: 100%; max-width: 300px; }
.sv-cell--line { border-top: 0; }
.sv-fork { padding: 0 8px 8px; border-top: 0; text-align: center; background: #fff8f7; }
.sv-fork::before { display: none; }
.sv-fork-svg { display: block; width: 100%; height: 40px; }
.sv-fork-svg path { fill: none; stroke: var(--hg-reverse); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-dasharray: 7 4; }
.sv-fork-t { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--hg-reverse); }
.sv-fork-t b { color: var(--hg-text); }
.gt-sel-col { background: var(--hg-primary-soft); }

.sv-evs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sv-ev { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 6px 8px; border: 1px solid var(--hg-border-strong); border-radius: 9px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--hg-text); }
.sv-ev:hover { border-color: var(--hg-primary); }
.sv-ev::before { content: ""; position: absolute; left: -15px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--hg-introduce); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.sv-cell--shared .sv-ev::before { display: none; }
.sv-ev--develop::before { background: var(--hg-develop); }
.sv-ev--reaffirm::before { background: var(--hg-reaffirm); border-radius: 2px; }
.sv-ev--drop::before { background: #fff; box-shadow: 0 0 0 2px var(--hg-drop); }
.sv-ev--reverse::before { background: var(--hg-reverse); border-radius: 2px; transform: rotate(45deg); }
.sv-ev--reverse { border-color: #f3c3be; }
.sv-ev--drop { background: var(--hg-surface-2); }
.sv-ev-yr { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--hg-text); }
.sv-ev-t { font-size: 13.5px; line-height: 1.35; }
.sv-ev-k { font-size: 11.5px; font-weight: 700; color: #9a3412; }
.sv-alt { margin: 10px 0 0; font-size: 15px; color: var(--hg-muted); }
.sv-linkbtn { border: 0; background: none; padding: 0; min-height: 0 !important; font: inherit; font-weight: 700; color: var(--hg-primary); text-decoration: underline; cursor: pointer; }

/* reading key */
.sv-key { margin: 18px 0 0; padding: 18px 20px; }
.sv-key-list, .sv-rels { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sv-key-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; font-size: 15px; line-height: 1.55; color: var(--hg-body); }
.sv-rels li { padding: 10px 12px; border: 1px solid var(--hg-border); border-radius: 10px; font-size: 15px; line-height: 1.5; color: var(--hg-body); }
.sv-rels li .gt-tag { margin-left: 4px; }
.sv-rel-d { display: block; margin-top: 6px; }
.sv-relk { display: inline-block; width: 30px; height: 18px; position: relative; margin-top: 3px; }
.sv-relk--line::before { content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 3px; background: #c9d2fb; }
.sv-relk--communion-division::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; border-top: 3px dashed var(--hg-reverse); }
.sv-relk--rival-claimant::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; bottom: 4px; border-top: 2px dotted var(--hg-reverse); border-bottom: 2px dotted var(--hg-reverse); }
.sv-relk--political-rule::before { content: ""; position: absolute; left: 8px; top: 3px; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px var(--hg-drop); background: #fff; }
.sv-relk--ordination-break::before { content: "\2715"; position: absolute; left: 6px; top: -2px; font-size: 16px; font-weight: 800; color: var(--hg-muted); }
.sv-relk--shared-origin::before { content: ""; position: absolute; left: 4px; right: 4px; top: 4px; height: 10px; border: 3px solid #9fb0f5; border-top: 0; border-radius: 0 0 8px 8px; }
.sv-relk--rank::before { content: ""; position: absolute; left: 8px; top: 2px; width: 12px; height: 12px; background: var(--hg-reaffirm); border-radius: 2px; }

/* ---- focused history ---- */
.sv-see-top { max-width: 900px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.sv-pick { display: flex; flex-direction: column; min-width: min(320px, 100%); }
.sv-see { padding: 22px 24px; max-width: 900px; }
.sv-see-head .gt-eyebrow { margin-bottom: 4px; }
.sv-see-h { font-size: clamp(24px, 3vw, 32px) !important; font-weight: 800 !important; margin: 0 0 8px; }
.sv-see-h:focus { outline: none; }
.sv-sig { margin: 0; font-size: 17px; line-height: 1.6; color: var(--hg-body); }
.sv-claims { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 16px 0 0; }
@media (min-width: 760px) { .sv-claims { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.sv-claim { padding: 14px 16px; border: 1px solid var(--hg-border); border-radius: 12px; background: var(--hg-surface-2); }
.sv-claim-k { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hg-faint); }
.sv-claim-t { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--hg-text); line-height: 1.45; }
.sv-claim-b { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--hg-body); }
.sv-conf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.sv-conf .sv-claim-k { margin: 0; }
.sv-conf-help { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--hg-muted); }
.sv-groupnote { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; margin: 14px 0 0; padding: 10px 12px; background: #f7f8ff; border: 1px solid #c9d2fb; border-radius: 10px; font-size: 15px; line-height: 1.55; color: var(--hg-body); }
.sv-shared-h { margin: 14px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hg-primary); }
.sv-hlist { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; display: grid; gap: 12px; }
.sv-hlist::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 3px; background: #c9d2fb; border-radius: 2px; }
.sv-hlist--shared::before { background: #9fb0f5; }
.sv-hev { position: relative; padding: 12px 14px; border: 1px solid var(--hg-border); border-radius: 12px; background: #fff; }
.sv-hev::before { content: ""; position: absolute; left: -21px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--hg-introduce); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.sv-hev--develop::before { background: var(--hg-develop); }
.sv-hev--reaffirm::before { background: var(--hg-reaffirm); border-radius: 2px; }
.sv-hev--drop::before { background: #fff; box-shadow: 0 0 0 2px var(--hg-drop); }
.sv-hev--reverse::before { background: var(--hg-reverse); border-radius: 2px; transform: rotate(45deg); }
.sv-hev.gt-sel { outline: 3px solid var(--gt-sel); outline-offset: 1px; }
.sv-hev-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.sv-hev-h { font-size: 17px !important; font-weight: 800 !important; margin: 8px 0 4px; line-height: 1.35; }
.sv-hev-owner { margin: 0 0 4px; font-size: 13.5px; color: var(--hg-faint); }
.sv-hev-d { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--hg-body); }

@media (max-width: 899px) {
  .sv-scrollcue { display: block; }
}
@media (max-width: 720px) {
  .sv-see { padding: 16px 14px; }
  .sv-grid { grid-template-columns: 104px repeat(var(--cols), minmax(150px, 1fr)); min-width: calc(104px + var(--cols) * 150px); }
}
