/* SharkPunt shared components – load after sp.css
   Lists, steps, pros/cons, tables, quote boxes, byline, author box.
   Showcase: mockups/components.html */

/* ---------- light default for un-classed lists in prose ---------- */
.prose ul:not([class]) > li::marker { color: var(--sky-d); }
.prose ol:not([class]) > li::marker { color: var(--sky-d); font-family: var(--mono); font-weight: 700; font-size: .9em; }

/* ---------- bullet list ---------- */
.sp-list, .sp-pros, .sp-cons { list-style: none !important; padding-left: 0 !important; margin: 0 0 1.2em; }
.sp-list > li, .sp-pros > li, .sp-cons > li { position: relative; padding-left: 30px; margin: 0 0 .6em; }
.sp-list > li::before { content: ''; position: absolute; left: 7px; top: .62em; width: 8px; height: 8px; border-radius: 999px; background: var(--sky-d); box-shadow: 0 0 0 4px var(--sky-100); }
.sp-list > li > b:first-child, .sp-list > li > strong:first-child { color: var(--ink); }

/* check variant */
.sp-list.check > li { padding-left: 32px; }
.sp-list.check > li::before { left: 0; top: .2em; width: 22px; height: 22px; box-shadow: none; background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231F8FCC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- numbered steps ---------- */
.sp-steps { list-style: none !important; padding-left: 0 !important; margin: 0 0 1.4em; counter-reset: sp-step; }
.sp-steps > li { counter-increment: sp-step; position: relative; padding: 4px 0 0 52px; min-height: 36px; margin: 0 0 18px; }
.sp-steps > li::before { content: counter(sp-step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 999px; background: var(--ink); color: var(--sky); font: 700 15px/36px var(--mono); text-align: center; }
.sp-steps > li:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 42px; bottom: -14px; width: 2px; border-radius: 2px; background: var(--sky-100); }
.sp-steps > li > b:first-child, .sp-steps > li > strong:first-child { display: block; color: var(--ink); margin-bottom: 2px; }
.sp-steps > li:last-child { margin-bottom: 0; }

/* ---------- pros / cons ---------- */
.sp-pros > li::before, .sp-cons > li::before { position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 999px; font: 800 14px/22px var(--font); text-align: center; }
.sp-pros > li::before { content: '+'; background: #DDF5EA; color: #0B7A4F; }
.sp-cons > li::before { content: '–'; background: #FDEBDC; color: #A14E0C; }

/* ---------- tables ---------- */
.sp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; margin: 18px 0; }
.sp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.45; }
.sp-table caption { caption-side: top; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 12px 16px 8px; }
.sp-table thead th { background: var(--ink); color: #fff; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 13px 16px; border-bottom: 3px solid var(--sky); white-space: nowrap; vertical-align: bottom; }
.sp-table td, .sp-table tbody th { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; }
.sp-table tbody th { font-weight: 700; color: var(--ink); }
.sp-table tbody tr:nth-child(even) > * { background: var(--bg-soft); }
.sp-table tbody tr:hover > * { background: var(--sky-50); }
.sp-table tbody tr:last-child > * { border-bottom: 0; }
.sp-table .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.sp-table-wrap > .sp-table:not(:has(caption)) thead tr:first-child th:first-child { border-top-left-radius: calc(var(--r-lg) - 1px); }
.sp-table-wrap > .sp-table:not(:has(caption)) thead tr:first-child th:last-child { border-top-right-radius: calc(var(--r-lg) - 1px); }
@media (max-width: 600px) {
  .sp-table { font-size: 14px; }
  .sp-table thead th, .sp-table td, .sp-table tbody th { padding: 11px 12px; }
}

/* ---------- quote box ---------- */
.quote-box { --qa: var(--sky-d); --qbg: var(--sky-50); position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 16px; align-items: start; margin: 28px 0; padding: 22px 24px 20px; border-radius: var(--r-lg); background: var(--qbg); overflow: hidden; }
.quote-box::after { content: '\201C'; position: absolute; right: 18px; top: -18px; font: 800 120px/1 var(--font); color: var(--qa); opacity: .12; pointer-events: none; }
.quote-box > img { grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 3px #fff; }
.quote-box blockquote { margin: 0; }
.quote-box blockquote p { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--ink); letter-spacing: -0.01em; }
.quote-box figcaption { font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; margin-top: 6px; }
.quote-box figcaption a { font-weight: 800; color: var(--ink); }
.quote-box figcaption span { color: var(--muted); }
.quote-box figcaption span::before { content: '·'; margin-right: 8px; color: var(--muted); }
.quote-box.verifier { --qa: var(--good); --qbg: #EEF9F4; }
.quote-box.verifier figcaption a::after { content: ''; display: inline-block; width: 16px; height: 16px; margin-left: 6px; vertical-align: -2px; border-radius: 999px; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
@media (max-width: 600px) {
  .quote-box { grid-template-columns: 44px minmax(0, 1fr); padding: 18px 18px 16px; gap: 4px 12px; }
  .quote-box > img { width: 44px; height: 44px; }
  .quote-box blockquote p { font-size: 16px; }
  .quote-box figcaption span { flex-basis: 100%; }
  .quote-box figcaption span::before { display: none; }
}

/* ---------- byline ---------- */
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; color: var(--ink-2); margin: 12px 0 0; }
.byline a { font-weight: 700; color: var(--ink); }
.byline a:hover { color: var(--sky-d); }
.byline-avs { display: inline-flex; flex: none; }
.byline-avs img { width: 32px; height: 32px; border-radius: 999px; background: var(--sky-100); box-shadow: 0 0 0 2px #fff; }
.byline-avs img + img { margin-left: -9px; }
.byline-upd { color: var(--muted); display: inline-flex; align-items: center; gap: 12px; }
.byline-upd::before { content: ''; width: 4px; height: 4px; border-radius: 999px; background: #C3D2DC; }
@media (max-width: 600px) {
  .byline { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; align-items: center; }
  .byline-avs { grid-row: span 2; }
  .byline-upd::before { display: none; }
}

/* ---------- author box ---------- */
.author-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 40px 0 8px; }
.author-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); border-top: 4px solid var(--sky); }
.author-card.verifier { border-top-color: var(--good); }
.author-card > img { width: 88px; height: 88px; flex: none; border-radius: 999px; background: var(--sky-50); }
.author-card > div { min-width: 0; }
.author-role { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-d); margin-bottom: 2px; }
.author-card.verifier .author-role { color: #0B7A4F; }
.author-card b { display: block; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; }
.author-card b a { color: var(--ink); }
.author-card p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 700px) {
  .author-box { grid-template-columns: minmax(0, 1fr); }
  .author-card > img { width: 64px; height: 64px; }
}

/* QA fixes: focus + small-text contrast */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--sky-d); outline-offset: 2px; border-radius: 6px; }
:root { --muted: #5A6B79; --sky-ink: #15709F; }
.author-role, .au-page span, .au-role { color: var(--sky-ink); }
.author-card.verifier .author-role { color: #0B7A4F; }
.toc-title { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
