/* Singularity page (t237u): live demo, measured numbers, comparison. Class based only (the site CSP blocks inline styles). */
.sg { --sg-line: #e4e4e7; --sg-muted: #4b4e56; --sg-ink: #111114; --sg-bg: #fff; --sg-soft: #f4f4f6; --sg-go: #0a7a4b; }
:where(button.ob-btn) { border: 0; font-family: inherit; cursor: pointer; }
:where(button.ob-btn--q) { background: transparent; }
.ox--dark :where(button.ob-btn--q) { color: #fff; }
.sg-lead, .sg-empty { margin: 0 0 16px; color: var(--sg-muted); font-size: 17px; line-height: 1.55; max-width: 64ch; }
.sg-status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 12px; min-height: 36px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--sg-line); font-size: 14px; color: var(--sg-ink); }
.sg-dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; }
.sg-status.is-ok .sg-dot { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.sg-status.is-off .sg-dot { background: #b45309; }
.sg-bar { display: flex; gap: 8px; align-items: stretch; }
.sg-bar input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 1px solid #b4b8c0; border-radius: 14px; font: 400 17px/1.4 "Inter", system-ui, sans-serif; color: var(--sg-ink); background: #fff; }
.sg-run { min-height: 52px; padding: 0 26px; border: 0; border-radius: 14px; background: var(--sg-go); color: #fff; font: 700 17px/1 "Inter", system-ui, sans-serif; cursor: pointer; }
.sg-run:hover { filter: brightness(1.06); } .sg-run:disabled { opacity: .7; cursor: progress; }
.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.sg-chips button, .sg-btn, .sg-copy { min-height: 44px; padding: 0 16px; border: 1px solid #cfd2d8; border-radius: 999px; background: #fff; color: var(--sg-ink); font: 600 15px/1 "Inter", system-ui, sans-serif; cursor: pointer; }
.sg-chips button:hover, .sg-btn:hover, .sg-copy:hover { border-color: var(--pt, #1b6f99); }
.sg-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; margin-top: 20px; }
.sg-card { min-width: 0; background: var(--sg-bg); border: 1px solid var(--sg-line); border-radius: 20px; padding: 20px; }
.sg-card h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.02em; color: var(--sg-ink); }
.sg-card p { margin: 0 0 10px; color: var(--sg-muted); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.sg-result.is-replay { box-shadow: inset 0 0 0 2px #0a7a4b; }
.sg-result.is-compile { box-shadow: inset 0 0 0 2px #b45309; }
.sg-answer { font-size: 28px !important; font-weight: 700; letter-spacing: -.03em; color: var(--sg-ink) !important; margin: 4px 0 14px !important; }
.sg-dl { display: grid; gap: 0; margin: 0; }
.sg-dl > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--sg-line); }
.sg-dl dt { color: var(--sg-muted); font-size: 14px; }
.sg-dl dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--sg-ink); min-width: 0; overflow-wrap: anywhere; }
.sg-fp { display: block; font: 500 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: var(--sg-muted); }
.sg-dl-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--pt, #1b6f99); font-weight: 600; }
.sg-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sg-req { padding: 12px 14px; border-radius: 14px; background: var(--sg-soft); }
.sg-req__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sg-req__top b { font-size: 15px; color: var(--sg-ink); }
.sg-req__when { font-size: 13px; color: var(--sg-muted); white-space: nowrap; }
.sg-req__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 14px; color: var(--sg-ink); }
.sg-req__id { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; font: 500 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--sg-muted); }
.sg-copy { min-height: 36px; padding: 0 12px; font-size: 13px; }
.sg-est { margin-top: 14px; }
.sg-est__in { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sg-est__out { margin-top: 12px !important; font-size: 16px !important; color: var(--sg-ink) !important; }
.sg-est__out .sg-fine { display: block; margin-top: 6px; font-size: 14px; color: var(--sg-muted); }
.sg-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--sg-ink); }
.sg-field input, .sg-field textarea { min-height: 48px; padding: 10px 14px; border: 1px solid #c4c4cc; border-radius: 12px; font: 400 16px/1.4 "Inter", system-ui, sans-serif; color: var(--sg-ink); background: #fff; width: 100%; box-sizing: border-box; }
.sg-field textarea { min-height: 96px; resize: vertical; }
.sg-pre { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: #0b0b0d; color: #f2f2f4; font: 13px/1.45 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; max-height: 280px; max-width: 100%; }
.sg-stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; margin-top: 18px; }
:is(.sg-run, .sg-chips button, .sg-btn, .sg-copy, .sg-bar input, .sg-field input, .sg-field textarea, .sx-eng > summary, .sx-sources > summary, .sx-cite, .sg-dl-link):focus-visible { outline: 3px solid #0a64d8; outline-offset: 2px; }

/* measured numbers */
.sx-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sx-stats li { padding: 18px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px #e4e4e7; }
.sx-stats b { display: block; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.03em; color: #111114; }
.sx-stats span { display: block; margin-top: 4px; font-size: 14px; color: #4b4e56; }
.sx-m { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px #e4e4e7; overflow: hidden; }
.sx-m li { display: grid; grid-template-columns: 1fr auto 9.5em; gap: 12px; padding: 12px 18px; border-top: 1px solid #ececf0; font-size: 15px; }
.sx-m li:first-child { border-top: 0; }
.sx-m__a { font-weight: 700; } .sx-m__t { text-align: right; color: #4b4e56; }
.sx-fine { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: #5c5f66; max-width: 72ch; }

/* comparison */
.sx-tablewrap { margin-top: 8px; border-radius: 20px; box-shadow: inset 0 0 0 1px #e4e4e7; overflow: hidden; background: #fff; }
.sx-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.sx-table th, .sx-table td { text-align: left; vertical-align: top; padding: 16px; border-top: 1px solid #ececf0; color: #2b2d33; }
.sx-table thead th { border-top: 0; font-size: 13px; font-weight: 600; color: #5c5f66; background: #f7f7f9; }
.sx-table tbody th b { display: block; font-size: 16px; color: #111114; }
.sx-ex { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: #5c5f66; }
.sx-table tr.sx-us { background: color-mix(in srgb, var(--p, #38A9E0) 9%, #fff); }
.sx-table tr.sx-us th b { color: var(--pt, #1b6f99); }
.sx-cite { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6em; min-height: 1.6em; margin-left: 2px; padding: 0 3px; border-radius: 6px; font-size: 11px; font-weight: 700; vertical-align: super; line-height: 1; color: var(--pt, #1b6f99); text-decoration: none; background: #eef2f7; }
.sx-h3 { margin: 36px 0 14px; font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -.015em; }
.sx-wins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sx-wins li { padding: 18px; border-radius: 18px; background: #f4f4f6; font-size: 15px; line-height: 1.5; color: #2b2d33; }
.sx-wins b { display: block; margin-bottom: 4px; color: #111114; font-size: 16px; }
.sx-sources { margin-top: 28px; }
.sx-sources > summary, .sx-eng > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; list-style: none; }
.sx-sources > summary::-webkit-details-marker, .sx-eng > summary::-webkit-details-marker { display: none; }
.sx-sources > summary::before, .sx-eng > summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #f4f4f6; font-weight: 700; }
.sx-sources[open] > summary::before, .sx-eng[open] > summary::before { content: "\2212"; }
.sx-sources ol { margin: 6px 0 0; padding-left: 1.4em; display: grid; gap: 6px; font-size: 15px; }
.sx-sources li:target { background: #fff7d6; border-radius: 6px; }
.sx-sources a { overflow-wrap: anywhere; }
.sx-eng { border-radius: 20px; padding: 6px 18px 18px; box-shadow: inset 0 0 0 1px #e4e4e7; }

@media (max-width: 900px) {
  .sg-grid { grid-template-columns: 1fr; }
  .sx-stats { grid-template-columns: 1fr 1fr; }
  .sx-wins { grid-template-columns: 1fr; }
  /* the comparison becomes one card per approach */
  .sx-tablewrap { box-shadow: none; background: transparent; border-radius: 0; overflow: visible; }
  .sx-table, .sx-table tbody, .sx-table tr, .sx-table th, .sx-table td { display: block; width: 100%; }
  .sx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sx-table tr { margin: 0 0 12px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px #e4e4e7; overflow: hidden; }
  .sx-table tbody th { border-top: 0; padding: 16px 16px 6px; }
  .sx-table td { border-top: 0; padding: 6px 16px; }
  .sx-table td:last-child { padding-bottom: 16px; }
  .sx-table td::before { content: attr(data-l); display: block; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #6b6e76; margin-bottom: 2px; }
}
@media (max-width: 560px) {
  .sg-bar { flex-direction: column; }
  .sg-run { width: 100%; }
  .sg-est__in { grid-template-columns: 1fr; }
  .sg-dl > div { grid-template-columns: 1fr; gap: 2px; }
  .sx-m li { grid-template-columns: 1fr auto; }
  .sx-m__t { grid-column: 1 / -1; text-align: left; font-size: 13px; }
  .sg-answer { font-size: 24px !important; }
}
/* ghost buttons that sit on the dark hero and on the colored closing band */
html.os .ox--dark .ob-btn--q { color: #fff; }
html.os .oc .ob-btn--q { color: var(--pi, #111114); }
@media (max-width: 560px) { .sx-stats b { font-size: 21px; } }
