/* ==========================================================================
   GLS Equity - static stock fact sheets: /stocks/{TICKER}/, /stocks/, /stocks/sector/{slug}/ (Session 13, 16 Oct 2026)
   Page layout only; cards, tables, buttons, .ws-pill and the text utilities come from styles.css.
   ========================================================================== */
.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; max-width: 1280px; }
.sp-layout-wide { grid-template-columns: minmax(0, 1fr); max-width: 1400px; }
.sp-main { min-width: 0; }
.sp-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.sp-side .panel-card h3 { margin: 0 0 8px; font-size: 1rem; }

.sp-crumbs { font-size: 13px; color: #64748b; margin: 0 0 10px; }
.sp-crumbs a { color: #334155; text-decoration: none; font-weight: 600; }
.sp-crumbs a:hover { color: #059669; }

.sp-head { border-bottom: 1px solid #e2e8f0; padding-bottom: 14px; margin-bottom: 18px; }
.sp-eyebrow { margin: 0 0 4px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #059669; }
.sp-title { margin: 0 0 6px; font-size: 1.55rem; line-height: 1.25; }
.sp-sub { margin: 0; color: #475569; font-size: 0.95rem; line-height: 1.6; }
.sp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.sp-actions .wl-quick { margin: 0; }
.sp-adr { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 4px; background: #eef2ff; color: #4338ca; vertical-align: middle; cursor: help; }
.sp-cat { display: inline-block; white-space: nowrap; padding: 2px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle; background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.sp-cat-growth { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.sp-cat-value { background: #d1fae5; color: #047857; border-color: #a7f3d0; }
.sp-cat-yield { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.sp-cat-quality { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
.sp-cat-defensive { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.sp-cat-spec { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }

/* snapshot tiles */
.sp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 8px; }
.sp-tile { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-tile-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; }
.sp-tile-value { font-size: 1.25rem; font-weight: 800; color: #0f172a; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-tile-value .ws-pill { font-size: 1rem; }
.sp-tile-sub { font-size: 0.75rem; color: #64748b; line-height: 1.3; }
.sp-of { font-size: 0.85rem; font-weight: 600; color: #94a3b8; }
.sp-tile-good .sp-tile-value { color: #047857; }
.sp-tile-bad .sp-tile-value { color: #b91c1c; }
.sp-live { display: inline-block; min-height: 1em; }
.sp-live.is-up { color: #047857; }
.sp-live.is-down { color: #b91c1c; }

/* sections */
.sp-section { margin-top: 26px; }
.sp-section h2 { font-size: 1.2rem; margin: 0 0 10px; }
.sp-section p { line-height: 1.65; color: #1e293b; margin: 0 0 10px; }
.sp-lead { font-size: 1.02rem; }
.sp-table-box { margin: 10px 0; }
.sp-table th.num, .sp-table td.num { text-align: right; white-space: nowrap; }
.sp-table td { vertical-align: middle; }
.sp-table .sp-model-what { font-size: 12.5px; color: #64748b; line-height: 1.4; }
.sp-model-na td { color: #94a3b8; }
.sp-model-extra td { background: #fbfcfd; font-style: italic; }
.sp-ratios th { text-align: left; font-weight: 600; color: #475569; width: 30%; }
.sp-sym { font-weight: 800; color: #0f172a; text-decoration: none; }
.sp-sym:hover { color: #059669; }
.sp-company { font-size: 11px; color: #64748b; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-sector-cell { font-size: 12.5px; }
.sp-sector-cell a { color: #334155; text-decoration: none; }
.sp-bar-cell { width: 160px; }
.sp-bar { display: block; height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.sp-bar-fill { display: block; height: 100%; background: #10b981; }
.sp-parts td:first-child { font-weight: 700; }

/* CTA band + FAQ + disclaimer */
.sp-cta { margin-top: 28px; background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 22px 24px; }
.sp-cta h2 { color: #fff; font-size: 1.15rem; margin: 0 0 8px; }
.sp-cta p { color: #cbd5e1; line-height: 1.6; margin: 0 0 14px; }
.sp-cta .btn { margin-right: 8px; margin-bottom: 6px; }
.sp-cta .btn-outline { color: #e2e8f0; border-color: #475569; }
.sp-cta .btn-outline:hover { background: #1e293b; }
.sp-faq details { border-top: 1px solid #e2e8f0; padding: 10px 0; }
.sp-faq details:last-of-type { border-bottom: 1px solid #e2e8f0; }
.sp-faq summary { cursor: pointer; font-weight: 700; color: #0f172a; }
.sp-faq summary:hover { color: #059669; }
.sp-faq p { margin: 8px 0 0; }
.sp-disclaimer { margin-top: 24px; border-top: 1px solid #f1f5f9; padding-top: 12px; font-size: 12.5px; line-height: 1.5; }
.sp-disclaimer p { margin: 0; }

/* side column */
.sp-toc ol { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.7; }
.sp-toc a { color: #334155; text-decoration: none; font-weight: 600; }
.sp-toc a:hover { color: #059669; }
.sp-side-cta { background: #0f172a; color: #e2e8f0; }
.sp-side-cta h3 { color: #fff; }
.sp-side-cta .text-sm-muted { color: #cbd5e1; }
.sp-side-btn { display: block; text-align: center; margin-top: 10px; }
.sp-browse { list-style: none; margin: 0; padding: 0; font-size: 13.5px; line-height: 1.6; }
.sp-browse li { padding: 4px 0; border-bottom: 1px solid #f1f5f9; }
.sp-browse a { font-weight: 600; color: #0f172a; text-decoration: none; }
.sp-browse a:hover { color: #059669; }

/* index + sector pages */
.sp-sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sp-sector-card { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; text-decoration: none; color: #0f172a; }
.sp-sector-card:hover { border-color: #10b981; background: #f0fdf4; }
.sp-sector-name { font-weight: 800; }
.sp-sector-n { font-size: 0.85rem; color: #334155; }
.sp-sector-meta { font-size: 0.75rem; color: #64748b; }
.sp-ind-links { font-size: 13px; line-height: 1.9; }
.sp-ind-links a { color: #334155; text-decoration: none; font-weight: 600; white-space: nowrap; }
.sp-ind-links a:hover { color: #059669; }
.sp-ind-h { font-size: 1rem; margin: 22px 0 6px; }

@media (max-width: 1024px) {
    .sp-layout { grid-template-columns: 1fr; }
    .sp-side { position: static; }
}
@media (max-width: 768px) {
    .sp-title { font-size: 1.25rem; }
    .sp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-tile-value { font-size: 1.1rem; }
    .sp-company { max-width: 130px; }
    .sp-bar-cell { width: 90px; }
    .sp-cta { padding: 18px 16px; }
    .sp-cta .btn { width: 100%; margin-right: 0; }
}
