@charset "UTF-8";
:root {
  --bg:#0e1413;
  --panel:#151e1b;
  --panel2:#202c26;
  --ink:#f2ede2;
  --muted:#a4afa6;
  --line:#354139;
  --accent:#9ad9c1;
  --accent-deep:#203e33;
  --gold:#d8bc84;
  --header:#0e1413f5;
  --shadow:0 25px 90px #0007;
  --mono:'SFMono-Regular',Consolas,'Liberation Mono',monospace
}

:root[data-theme=light] {
  --bg:#f6f2e9;
  --panel:#fffdf7;
  --panel2:#eee8da;
  --ink:#1b3028;
  --muted:#57665c;
  --line:#d7ceba;
  --accent:#23644c;
  --accent-deep:#e0eadd;
  --gold:#7c5c25;
  --header:#f6f2e9f5;
  --shadow:0 25px 90px #13251b22
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:95px
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:14px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  -webkit-font-smoothing:antialiased
}

body:has(dialog[open]) {
  overflow:hidden
}

button,input,select {
  font:inherit
}

button,a,input,select {
  -webkit-tap-highlight-color:transparent
}

button,a {
  touch-action:manipulation
}

button {
  cursor:pointer
}

a {
  color:inherit;
  text-decoration:none
}

button {
  color:inherit
}

button:disabled {
  cursor:not-allowed;
  opacity:.45
}

[hidden] {
  display:none!important
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:4px
}

button svg {
  pointer-events:none
}

.muted {
  color:var(--muted)
}

.mono,.eyebrow,kbd {
  font-family:var(--mono)
}

.eyebrow {
  font-size:10px;
  font-weight:600;
  letter-spacing:1.35px;
  display:flex;
  align-items:center;
  gap:8px
}

.status-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#91d6af;
  box-shadow:0 0 10px #91d6af33;
  flex-shrink:0
}

.status-dot.amber {
  background:#d8c495;
  box-shadow:none
}

.brand-period {
  color:var(--accent)
}

.skip-link {
  position:fixed;
  top:-80px;
  left:16px;
  padding:12px 20px;
  background:var(--accent);
  color:var(--bg);
  z-index:100
}

.skip-link:focus {
  top:10px
}

.preview-strip {
  min-height:30px;
  background:#1d2119;
  color:#c8cbb9;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:9px;
  font:10px/1.4 var(--mono);
  letter-spacing:.3px;
  padding:7px 20px
}

.strip-divider {
  color:#727866;
  padding:0 3px
}

.site-header {
  height:83px;
  max-width:1600px;
  margin:auto;
  padding:0 5%;
  display:flex;
  align-items:center;
  gap:45px;
  border-bottom:1px solid var(--line)
}

.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:19px;
  font-weight:750;
  letter-spacing:-.7px;
  white-space:nowrap
}

.brand-light {
  font-weight:400;
  color:var(--muted)
}

.brand img {
  width:28px;
  height:28px
}

.main-nav {
  display:flex;
  align-items:center;
  gap:30px;
  align-self:stretch
}

.nav-item {
  border:0;
  background:none;
  color:var(--muted);
  padding:4px 0;
  position:relative;
  font-size:12px;
  white-space:nowrap
}

.nav-item:hover,.nav-item.active {
  color:var(--ink)
}

.nav-item.active:after {
  content:'';
  height:2px;
  background:var(--accent);
  position:absolute;
  bottom:-1px;
  left:0;
  right:0
}

.nav-count {
  margin-left:5px;
  background:var(--panel2);
  border:1px solid var(--line);
  border-radius:4px;
  font:9px var(--mono);
  padding:2px 5px
}

.tiny-arrow {
  font-size:12px;
  margin-left:5px
}

.header-actions {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:20px
}

.wireframe-link {
  font-size:11px;
  color:var(--muted)
}

.wireframe-link span {
  margin-left:5px
}

.wireframe-link:hover {
  color:var(--accent)
}

.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:50%;
  width:33px;
  height:33px;
  background:var(--panel);
  font-size:19px
}

.icon-button:hover {
  border-color:var(--muted)
}

.avatar {
  width:31px;
  height:31px;
  background:#283b31;
  border:1px solid #496453;
  display:grid;
  place-items:center;
  border-radius:50%;
  font:10px var(--mono);
  color:#cbe3d1
}

.hero {
  max-width:1600px;
  margin:auto;
  padding:72px 5% 65px;
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:70px;
  border-bottom:1px solid var(--line)
}

.hero-copy>.eyebrow {
  color:var(--muted)
}

h1 {
  font-size:clamp(46px,5.5vw,79px);
  line-height:1.04;
  letter-spacing:-3.8px;
  font-weight:650;
  margin:25px 0 22px
}

h1 em {
  font-style:normal;
  color:var(--accent)
}

.hero-copy>p {
  color:var(--muted);
  font-size:14px;
  line-height:1.8;
  margin:0 0 27px
}

.button {
  border:1px solid var(--line);
  border-radius:6px;
  padding:11px 16px;
  font-size:12px;
  font-weight:600;
  display:inline-flex;
  gap:13px;
  align-items:center;
  justify-content:center;
  background:var(--panel);
  transition:background .15s,border-color .15s
}

.button.primary {
  background:var(--accent);
  color:var(--bg);
  border-color:var(--accent)
}

.button.primary:hover {
  filter:brightness(1.07)
}

.button.secondary:hover {
  background:var(--panel2);
  border-color:var(--muted)
}

.hero .button {
  padding:12px 18px
}

.hero-footnote {
  display:flex;
  gap:18px;
  margin-top:23px;
  color:var(--muted);
  font-size:10px
}

.hero-footnote span+span {
  position:relative
}

.hero-footnote span+span:before {
  content:'·';
  position:absolute;
  left:-11px
}

.hero-visual {
  align-self:center;
  padding-top:8px;
  min-width:0
}

.visual-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px
}

.visual-heading .eyebrow {
  font-size:9px;
  letter-spacing:1px;
  color:var(--muted)
}

.visual-heading>.mono {
  font-size:8px;
  white-space:nowrap
}

.signal-wall {
  height:146px;
  margin:20px 0 12px;
  position:relative;
  background:repeating-linear-gradient(to bottom,transparent 0,transparent 35px,var(--line) 36px,transparent 37px)
}

.signal-wall svg {
  width:100%;
  height:100%;
  overflow:visible
}

.visual-legend {
  display:flex;
  gap:19px;
  color:var(--muted);
  font-size:9px;
  align-items:center
}

.visual-legend span {
  display:flex;
  gap:6px;
  align-items:center
}

.legend-dot {
  width:5px;
  height:5px;
  display:inline-block;
  border-radius:50%
}

.legend-dot.mint {
  background:#9be6bf
}

.legend-dot.blue {
  background:#a3b9f0
}

.legend-dot.gold {
  background:#dfc797
}

.hero-stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  margin-top:30px;
  padding-top:19px;
  border-top:1px solid var(--line)
}

.hero-stats>div {
  display:flex;
  align-items:baseline;
  gap:9px;
  padding:0 18px;
  border-left:1px solid var(--line)
}

.hero-stats>div:first-child {
  padding-left:0;
  border:0
}

.hero-stats strong {
  font-size:29px;
  font-weight:500;
  letter-spacing:-1px
}

.hero-stats span {
  font-size:10px;
  line-height:1.3;
  max-width:55px;
  color:var(--muted)
}

.visual-note {
  font-size:9px;
  color:var(--muted);
  margin:14px 0 0
}

.catalog-section {
  max-width:1600px;
  margin:auto;
  padding:54px 5% 0;
  scroll-margin-top:25px
}

.section-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
  margin-bottom:30px
}

h2 {
  font-size:30px;
  font-weight:550;
  letter-spacing:-1px;
  line-height:1.2;
  margin:10px 0 0
}

.section-heading>p {
  color:var(--muted);
  font-size:11px;
  margin:0;
  line-height:1.7
}

.category-tabs {
  display:flex;
  gap:29px;
  border-bottom:1px solid var(--line);
  overflow:auto;
  margin-bottom:23px
}

.category-tab {
  padding:0 0 17px;
  background:none;
  border:0;
  border-bottom:2px solid transparent;
  display:flex;
  gap:8px;
  align-items:center;
  color:var(--muted);
  font-size:12px;
  white-space:nowrap
}

.category-tab.active {
  color:var(--ink);
  border-color:var(--accent)
}

.category-tab span {
  font:9px var(--mono);
  background:var(--panel2);
  padding:2px 5px;
  border-radius:3px
}

.toolbar {
  display:flex;
  align-items:center;
  gap:10px
}

.search-box {
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:6px;
  padding:10px 13px;
  flex:1
}

.search-box svg {
  width:17px;
  height:17px;
  fill:none;
  stroke:var(--muted);
  stroke-width:1.5
}

.search-box input {
  background:none;
  border:0;
  outline:none!important;
  color:var(--ink);
  width:100%;
  min-width:0;
  font-size:12px
}

.search-box:focus-within {
  border-color:var(--accent)
}

input::placeholder {
  color:var(--muted)
}

kbd {
  font-size:10px;
  border:1px solid var(--line);
  border-radius:3px;
  padding:0 5px;
  color:var(--muted)
}

.filter-button {
  height:41px;
  padding:8px 12px
}

.filter-button svg {
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.4
}

.filter-button[aria-expanded=true] {
  border-color:var(--accent)
}

#filter-count:not(:empty) {
  font:9px var(--mono);
  background:var(--accent-deep);
  color:var(--accent);
  padding:2px 4px;
  border-radius:3px
}

.sort-label {
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:10px;
  margin-left:9px;
  white-space:nowrap
}

select {
  background:var(--panel);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:5px;
  padding:10px;
  font-size:11px;
  cursor:pointer;
  max-width:100%
}

.view-switch {
  display:flex;
  border:1px solid var(--line);
  border-radius:6px;
  padding:3px;
  margin-left:7px
}

.view-switch button {
  height:33px;
  width:33px;
  border:0;
  border-radius:3px;
  background:none;
  color:var(--muted);
  display:grid;
  place-items:center
}

.view-switch button.active {
  color:var(--accent);
  background:var(--panel2)
}

.view-switch svg {
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.4
}

.filter-panel {
  margin-top:12px;
  padding:18px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:6px;
  display:flex;
  gap:16px;
  align-items:flex-end;
  flex-wrap:wrap
}

.filter-panel label {
  display:flex;
  flex-direction:column;
  gap:5px;
  color:var(--muted);
  font-size:10px;
  flex:1;
  min-width:150px
}

.filter-panel p {
  width:100%;
  font-size:10px;
  color:var(--muted);
  margin:0
}

.text-button {
  background:none;
  border:0;
  padding:5px;
  color:var(--muted);
  font-size:11px
}

.text-button:hover {
  color:var(--accent)
}

.market-row {
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:19px;
  padding-bottom:20px;
  border-bottom:1px solid var(--line)
}

.market-row>.mono {
  font-size:8px;
  letter-spacing:.8px
}

.market-chips {
  display:flex;
  flex-wrap:wrap;
  gap:6px
}

.market-chip {
  padding:5px 10px;
  border:1px solid var(--line);
  color:var(--muted);
  border-radius:20px;
  background:none;
  font-size:10px
}

.market-chip:hover {
  color:var(--ink);
  border-color:var(--muted)
}

.market-chip.active {
  background:var(--accent-deep);
  border-color:var(--accent-deep);
  color:var(--accent)
}

.saved-only {
  margin-left:auto;
  white-space:nowrap;
  font-size:10px;
  color:var(--muted);
  display:flex;
  gap:5px;
  align-items:center
}

input[type=checkbox] {
  accent-color:var(--accent);
  width:13px;
  height:13px;
  cursor:pointer
}

.results-line {
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:17px 0 18px;
  font-size:10px;
  color:var(--muted)
}

.results-line strong {
  color:var(--ink);
  font-weight:500
}

.results-note {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:9px
}

.results-note .status-dot {
  width:4px;
  height:4px
}

.product-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px
}

.product-card {
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:9px;
  overflow:hidden;
  transition:border-color .2s,transform .2s;
  position:relative;
  min-width:0
}

.product-card:hover {
  border-color:#586d5c;
  transform:translateY(-2px)
}

.card-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 17px 0
}

.type-label {
  font:9px var(--mono);
  letter-spacing:.5px;
  display:flex;
  align-items:center;
  gap:7px
}

.type-label:before {
  content:'';
  width:5px;
  height:5px;
  background:var(--product-color);
  border-radius:2px
}

.card-top-right {
  display:flex;
  gap:8px;
  align-items:center
}

.mode-label {
  color:var(--muted);
  font:8px var(--mono);
  border:1px solid var(--line);
  padding:2px 5px;
  border-radius:3px
}

.save-button {
  color:var(--muted);
  background:none;
  border:0;
  width:24px;
  height:24px;
  padding:3px
}

.save-button svg {
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.3
}

.save-button.saved {
  color:var(--accent)
}

.save-button.saved svg {
  fill:var(--accent-deep)
}

.card-visual {
  height:123px;
  padding:12px 16px 0;
  position:relative;
  overflow:hidden;
  color:var(--product-color)
}

.card-visual svg {
  width:100%;
  height:100%
}

.visual-caption {
  position:absolute;
  bottom:0;
  left:17px;
  font:7px var(--mono);
  letter-spacing:.6px;
  color:var(--muted);
  opacity:.8
}

.card-content {
  padding:18px 18px 15px
}

.card-title {
  margin:0 0 4px;
  font-size:20px;
  letter-spacing:-.6px;
  font-weight:550
}

.card-title button {
  padding:0;
  background:none;
  border:0;
  text-align:left;
  font:inherit;
  letter-spacing:inherit
}

.card-title button:hover {
  color:var(--accent)
}

.publisher {
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:9px
}

.publisher-badge {
  width:17px;
  height:17px;
  border:1px solid var(--line);
  border-radius:4px;
  display:grid;
  place-items:center;
  font:6px var(--mono);
  color:var(--product-color)
}

.card-summary {
  font-size:11px;
  color:var(--muted);
  line-height:1.7;
  min-height:37px;
  margin:13px 0 14px
}

.tags {
  display:flex;
  gap:5px;
  flex-wrap:wrap
}

.tag {
  font-size:8px;
  color:var(--muted);
  background:var(--panel2);
  border-radius:3px;
  padding:3px 6px
}

.card-metrics {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  padding:15px 0 0;
  gap:10px;
  margin-top:16px;
  border-top:1px solid var(--line)
}

.card-metrics span {
  font-size:8px;
  color:var(--muted);
  display:block;
  margin-bottom:4px
}

.card-metrics strong {
  font-size:11px;
  font-weight:500;
  display:block;
  white-space:nowrap
}

.card-footer {
  margin-top:auto;
  padding:13px 17px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:10px
}

.price {
  font-size:16px;
  font-weight:550;
  letter-spacing:-.3px
}

.price small {
  font-weight:400;
  color:var(--muted);
  font-size:9px;
  letter-spacing:0
}

.compare-check {
  display:flex;
  align-items:center;
  gap:4px;
  margin-left:auto;
  color:var(--muted);
  font-size:9px;
  cursor:pointer
}

.card-detail {
  border:1px solid var(--line);
  background:var(--panel2);
  color:var(--ink);
  width:27px;
  height:27px;
  border-radius:50%;
  font-size:15px
}

.card-detail:hover {
  background:var(--accent-deep);
  color:var(--accent)
}

.research-preview {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  padding:10px 6px 0;
  transform:rotate(-2deg)
}

.report-sheet {
  border:1px solid color-mix(in srgb,var(--product-color) 23%,transparent);
  background:linear-gradient(150deg,color-mix(in srgb,var(--product-color) 7%,transparent),transparent);
  padding:12px 13px;
  min-height:90px
}

.report-sheet:nth-child(2) {
  transform:translateY(9px) rotate(5deg)
}

.report-sheet small {
  font:7px var(--mono);
  letter-spacing:1px;
  display:block;
  margin-bottom:12px;
  color:var(--product-color)
}

.report-line {
  height:3px;
  background:color-mix(in srgb,var(--product-color) 17%,transparent);
  margin-bottom:6px
}

.report-line.short {
  width:62%
}

.allocation-preview {
  height:100%;
  display:flex;
  align-items:center;
  gap:22px;
  padding:0 10px
}

.allocation-ring {
  width:91px;
  height:91px;
  border-radius:50%;
  background:conic-gradient(var(--product-color) 0 60%,#617d75 60% 90%,#35423a 90%);
  position:relative;
  flex-shrink:0
}

.allocation-ring:after {
  content:'TARGETS';
  position:absolute;
  inset:16px;
  background:var(--panel);
  border-radius:50%;
  display:grid;
  place-items:center;
  font:7px var(--mono);
  color:var(--muted)
}

.allocation-lines {
  flex:1
}

.allocation-lines span {
  display:block;
  font:8px var(--mono);
  color:var(--muted);
  margin:8px 0
}

.allocation-lines i {
  display:inline-block;
  height:4px;
  background:var(--product-color);
  opacity:.55;
  vertical-align:middle;
  margin-right:7px
}

.matrix-preview {
  padding:9px 8px 0;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:6px;
  align-items:end;
  height:100%
}

.matrix-preview>div {
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:center;
  gap:7px
}

.matrix-preview i {
  display:block;
  width:100%;
  background:var(--product-color);
  border-radius:3px 3px 0 0;
  min-height:10px
}

.matrix-preview span {
  font:7px var(--mono);
  color:var(--muted)
}

.product-table {
  border:1px solid var(--line);
  border-radius:7px;
  overflow:auto
}

.product-table table {
  width:100%;
  border-collapse:collapse;
  min-width:800px;
  text-align:left
}

.product-table th {
  padding:13px 15px;
  background:var(--panel2);
  color:var(--muted);
  font:9px var(--mono);
  font-weight:400
}

.product-table td {
  padding:17px 15px;
  border-top:1px solid var(--line);
  font-size:11px;
  vertical-align:middle
}

.table-title {
  background:none;
  padding:0;
  border:0;
  font-size:13px;
  text-align:left;
  display:block
}

.table-title:hover {
  color:var(--accent)
}

.table-publisher {
  display:block;
  font-size:9px;
  color:var(--muted);
  margin-top:3px
}

.table-compare {
  display:flex;
  gap:10px;
  align-items:center
}

.empty-state {
  text-align:center;
  padding:75px 20px;
  border:1px dashed var(--line);
  border-radius:8px
}

.empty-symbol {
  font-size:35px;
  color:var(--accent)
}

.empty-state h3 {
  font-size:21px;
  font-weight:500
}

.empty-state p {
  color:var(--muted);
  font-size:12px;
  margin-bottom:22px
}

.catalog-end {
  margin-top:35px;
  padding:32px 0;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:17px
}

.small-mark {
  font-size:29px;
  position:relative;
  letter-spacing:-3px;
  color:var(--accent)
}

.small-mark span {
  font-size:15px;
  position:absolute;
  top:0;
  right:-8px
}

.catalog-end p {
  font-size:11px;
  line-height:1.8;
  margin:0 0 0 8px
}

.catalog-end a {
  margin-left:auto;
  font-size:10px;
  color:var(--accent)
}

.site-footer {
  max-width:1600px;
  margin:auto;
  padding:22px 5% 36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line);
  font-size:10px;
  color:var(--muted)
}

.site-footer>span:first-child {
  color:var(--ink)
}

.compare-tray {
  position:fixed;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  width:min(720px,calc(100% - 32px));
  z-index:10;
  display:flex;
  gap:18px;
  align-items:center;
  background:var(--panel2);
  border:1px solid #526c5b;
  box-shadow:var(--shadow);
  border-radius:9px;
  padding:15px 19px
}

.compare-tray>div:first-child {
  flex:1;
  min-width:0
}

.compare-tray .eyebrow {
  font-size:8px;
  color:var(--muted);
  margin-bottom:5px
}

#compare-names {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  font-size:10px
}

#compare-names span {
  white-space:nowrap
}

#compare-names span+span:before {
  content:'·';
  margin-right:8px;
  color:var(--muted)
}

.compare-tray .button {
  font-size:11px;
  white-space:nowrap
}

.toast {
  position:fixed;
  bottom:110px;
  left:50%;
  transform:translateX(-50%);
  padding:12px 20px;
  background:var(--ink);
  color:var(--bg);
  border-radius:6px;
  font-size:12px;
  z-index:100;
  box-shadow:var(--shadow);
  max-width:90%;
  text-align:center
}

dialog {
  color:var(--ink);
  background:var(--bg);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  padding:0
}

dialog::backdrop {
  background:#020704b5;
  backdrop-filter:blur(3px)
}

.product-dialog {
  position:fixed;
  inset:0 0 0 auto;
  margin:0;
  width:min(720px,100%);
  max-width:100%;
  height:100dvh;
  max-height:100dvh;
  border-width:0 0 0 1px;
  overflow-y:auto
}

.detail-top {
  position:sticky;
  top:0;
  background:var(--header);
  backdrop-filter:blur(15px);
  border-bottom:1px solid var(--line);
  padding:14px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  z-index:2
}

.detail-top .mono {
  font-size:9px;
  color:var(--muted);
  overflow-wrap:anywhere
}

.detail-header {
  padding:31px 32px 0
}

.detail-header .type-label {
  font-size:10px
}

.detail-header h2 {
  font-size:40px;
  font-weight:550;
  margin:16px 0 9px;
  letter-spacing:-1.5px
}

.detail-header .publisher {
  font-size:11px
}

.detail-header>p {
  color:var(--muted);
  font-size:13px;
  line-height:1.8;
  margin:18px 0
}

.detail-actions {
  display:flex;
  gap:9px;
  align-items:center;
  flex-wrap:wrap;
  margin:22px 0 25px
}

.detail-actions .save-button {
  border:1px solid var(--line);
  width:37px;
  height:37px;
  border-radius:5px;
  display:grid;
  place-items:center
}

.detail-tabs {
  padding:0 32px;
  border-bottom:1px solid var(--line);
  display:flex;
  gap:25px;
  overflow:auto;
  position:sticky;
  top:62px;
  background:var(--header);
  z-index:1
}

.detail-tabs button {
  border:0;
  border-bottom:2px solid transparent;
  background:none;
  padding:13px 0;
  color:var(--muted);
  font-size:11px;
  white-space:nowrap
}

.detail-tabs button.active {
  border-color:var(--accent);
  color:var(--ink)
}

.detail-body {
  padding:27px 32px 45px
}

.detail-body h3 {
  font-size:15px;
  letter-spacing:-.2px;
  font-weight:550;
  margin:25px 0 13px
}

.detail-body h3:first-child {
  margin-top:0
}

.detail-body>p,.detail-body li {
  color:var(--muted);
  font-size:12px;
  line-height:1.8
}

.detail-preview {
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel);
  padding:16px
}

.detail-preview .card-visual {
  height:180px;
  padding:8px 0
}

.detail-preview .visual-caption {
  left:0
}

.preview-head {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:var(--muted)
}

.detail-facts {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 25px;
  margin:22px 0
}

.fact {
  padding:11px 0;
  border-bottom:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:4px
}

.fact span {
  font-size:9px;
  color:var(--muted)
}

.fact strong {
  font-size:12px;
  font-weight:500
}

.info-note {
  background:var(--panel);
  border:1px solid var(--line);
  border-left:2px solid var(--gold);
  color:var(--muted);
  padding:14px 16px;
  font-size:11px;
  line-height:1.8;
  margin:20px 0
}

.info-note strong {
  color:var(--ink);
  font-weight:500
}

.code-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:22px 0 10px
}

.code-heading h3 {
  margin:0
}

.code-actions {
  display:flex;
  gap:10px
}

pre {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:6px;
  padding:19px;
  overflow:auto;
  font:10px/1.9 var(--mono);
  color:var(--accent);
  max-height:400px
}

code {
  font-family:var(--mono)
}

.schema-table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  table-layout:fixed
}

.schema-table th {
  font:9px var(--mono);
  color:var(--muted);
  padding:10px 8px;
  border-bottom:1px solid var(--line)
}

.schema-table td {
  padding:13px 8px;
  border-bottom:1px solid var(--line);
  font-size:10px;
  vertical-align:top;
  line-height:1.6;
  overflow-wrap:anywhere
}

.schema-table th:first-child {
  width:26%
}

.schema-table td:first-child {
  font-family:var(--mono);
  color:var(--accent)
}

.schema-table td span {
  display:block;
  color:var(--muted);
  font:8px var(--mono);
  margin-top:4px
}

.schema-note {
  font-size:10px;
  color:var(--muted);
  line-height:1.8
}

.license-box {
  padding:22px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:7px
}

.license-price {
  font-size:33px;
  letter-spacing:-1px
}

.license-price span {
  font-size:12px;
  font-weight:400;
  letter-spacing:0;
  color:var(--muted)
}

.license-box .eyebrow {
  color:var(--muted);
  margin-bottom:13px
}

.license-box ul {
  padding-left:16px;
  margin:20px 0
}

.license-check {
  display:flex;
  align-items:flex-start;
  gap:9px;
  font-size:11px;
  line-height:1.7;
  margin:22px 0
}

.license-check input {
  margin-top:4px;
  flex-shrink:0
}

.license-box .button {
  width:100%
}

.license-state {
  color:var(--accent);
  font-size:12px;
  line-height:1.7;
  padding:14px;
  border:1px solid var(--line);
  background:var(--accent-deep);
  border-radius:5px
}

.compare-dialog,.docs-dialog {
  border-radius:12px;
  width:min(1050px,calc(100% - 36px));
  max-height:90dvh;
  overflow:auto
}

.docs-dialog {
  width:min(680px,calc(100% - 28px))
}

.modal-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:28px 29px 15px;
  gap:20px
}

.modal-top h2 {
  font-size:27px
}

.modal-top .icon-button {
  flex-shrink:0
}

.compare-note {
  padding:0 29px;
  font-size:11px
}

.comparison-scroll {
  overflow:auto;
  padding:10px 29px 30px
}

.comparison-table {
  border-collapse:collapse;
  width:100%;
  min-width:650px;
  table-layout:fixed;
  text-align:left
}

.comparison-table th,.comparison-table td {
  border-bottom:1px solid var(--line);
  padding:16px 14px;
  vertical-align:top;
  font-size:11px
}

.comparison-table th {
  color:var(--muted);
  font-weight:400;
  width:145px
}

.comparison-table td strong {
  font-size:18px;
  font-weight:500
}

.comparison-table td small {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:6px
}

.comparison-table .button {
  font-size:10px;
  padding:8px 11px
}

.docs-body {
  padding:0 29px 30px
}

.docs-body>p {
  color:var(--muted);
  font-size:13px
}

.docs-steps {
  list-style:none;
  padding:0;
  counter-reset:steps;
  margin:27px 0
}

.docs-steps li {
  padding:16px 0 16px 43px;
  position:relative;
  border-bottom:1px solid var(--line);
  counter-increment:steps
}

.docs-steps li:before {
  content:'0' counter(steps);
  position:absolute;
  left:0;
  top:17px;
  font:11px var(--mono);
  color:var(--accent)
}

.docs-steps strong,.docs-steps span {
  display:block;
  font-size:12px
}

.docs-steps span {
  color:var(--muted);
  font-size:11px;
  margin-top:5px
}

.docs-body h3 {
  font-size:14px;
  font-weight:500
}

.review-label {
  color:var(--gold);
  font:9px var(--mono);
  display:inline-flex;
  align-items:center;
  gap:6px
}

@media(min-width:1500px) {
  .hero {
    padding-top:85px;
    padding-bottom:80px
  }

  .product-grid {
    gap:22px
  }

  .card-visual {
    height:150px
  }

  .card-title {
    font-size:22px
  }

  .card-summary {
    font-size:12px
  }

  .card-metrics strong {
    font-size:12px
  }

  .hero-copy>p {
    font-size:15px
  }

}

@media(max-width:1050px) {
  .site-header {
    gap:26px
  }

  .main-nav {
    gap:20px
  }

  .header-actions {
    gap:12px
  }

  .hero {
    gap:40px;
    padding-top:55px;
    padding-bottom:50px
  }

  h1 {
    letter-spacing:-2.5px;
    font-size:58px
  }

  .hero-footnote {
    gap:13px;
    font-size:9px
  }

  .hero-stats>div {
    padding:0 10px;
    gap:7px
  }

  .hero-stats strong {
    font-size:26px
  }

  .hero-stats span {
    font-size:8px
  }

  .visual-legend {
    gap:12px;
    font-size:8px
  }

  .product-grid {
    gap:13px
  }

  .card-content {
    padding:15px
  }

  .card-title {
    font-size:19px
  }

  .card-footer {
    padding:12px 14px;
    gap:6px
  }

  .compare-check {
    font-size:8px
  }

  .card-metrics {
    gap:6px
  }

  .card-metrics strong {
    font-size:10px
  }

  .category-tabs {
    gap:24px
  }

  .market-chip {
    padding:4px 8px;
    font-size:9px
  }

  .market-row {
    gap:10px
  }

  .sort-label {
    margin-left:0
  }

  .card-summary {
    min-height:55px
  }

  .visual-heading>.mono {
    display:none
  }

}

@media(max-width:800px) {
  .hero {
    grid-template-columns:1fr 1fr;
    gap:25px;
    padding-top:45px
  }

  .hero-copy>.eyebrow {
    font-size:8px;
    letter-spacing:.8px
  }

  h1 {
    font-size:48px;
    letter-spacing:-2px
  }

  .hero-copy>p {
    font-size:12px
  }

  .hero-footnote {
    flex-wrap:wrap;
    gap:7px 14px
  }

  .hero-visual {
    padding:0
  }

  .visual-heading .eyebrow {
    font-size:8px
  }

  .signal-wall {
    height:115px
  }

  .hero-stats {
    margin-top:22px
  }

  .hero-stats>div {
    display:block
  }

  .hero-stats strong {
    display:block
  }

  .hero-stats span {
    max-width:none;
    display:block
  }

  .visual-legend {
    flex-wrap:wrap;
    gap:5px 12px
  }

  .visual-note {
    font-size:8px
  }

  .product-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px
  }

  .card-summary {
    min-height:37px
  }

  .card-metrics strong {
    font-size:11px
  }

  .card-visual {
    height:140px
  }

  .header-actions .wireframe-link {
    font-size:10px
  }

  .site-header {
    height:72px;
    gap:20px
  }

  .header-actions .avatar {
    display:none
  }

  .main-nav {
    gap:17px
  }

  .nav-item {
    font-size:11px
  }

  .section-heading h2 {
    font-size:26px
  }

  .section-heading>p {
    font-size:10px
  }

  .sort-label>span {
    display:none
  }

  .filter-button {
    gap:7px
  }

  .market-row {
    flex-wrap:wrap
  }

  .saved-only {
    margin-left:auto
  }

  .market-row>.mono {
    display:none
  }

  .results-note {
    display:none
  }

  .category-tabs {
    gap:24px
  }

  .category-tab {
    font-size:11px
  }

  .toolbar {
    flex-wrap:wrap
  }

  .search-box {
    min-width:200px
  }

  .card-top {
    padding:14px 15px 0
  }

  .catalog-section {
    padding-top:39px
  }

  .site-footer {
    font-size:9px
  }

}

@media(max-width:560px) {
  .preview-strip {
    font-size:8px;
    letter-spacing:0;
    gap:6px;
    padding:7px 12px
  }

  .site-header {
    padding:12px 5%;
    height:auto;
    min-height:68px;
    gap:8px 14px;
    flex-wrap:wrap
  }

  .brand {
    font-size:18px;
    flex-shrink:0
  }

  .brand img {
    width:24px;
    height:24px
  }

  .main-nav {
    gap:14px;
    order:3;
    flex-basis:100%;
    min-width:0;
    min-height:36px;
    overflow-x:auto
  }

  .nav-item {
    font-size:10px
  }

  .nav-item#docs-open {
    display:none
  }

  .header-actions {
    gap:10px;
    margin-left:auto
  }

  .header-actions .wireframe-link {
    font-size:9px
  }

  .header-actions .icon-button {
    width:26px;
    height:26px;
    font-size:17px
  }

  .hero {
    display:block;
    padding-top:39px;
    padding-bottom:30px
  }

  .hero-copy>.eyebrow {
    font-size:8px
  }

  h1 {
    font-size:54px;
    letter-spacing:-2.8px;
    margin-top:21px;
    line-height:1.02
  }

  .hero-copy>p {
    font-size:12px;
    line-height:1.8
  }

  .desktop-only {
    display:none
  }

  .hero-copy .button {
    font-size:11px
  }

  .hero-footnote {
    font-size:9px;
    margin-top:18px
  }

  .hero-visual {
    margin-top:34px
  }

  .visual-heading {
    padding-top:19px;
    border-top:1px solid var(--line)
  }

  .visual-heading .eyebrow {
    font-size:8px
  }

  .visual-heading>.mono {
    display:block;
    font-size:7px
  }

  .signal-wall {
    height:109px;
    margin:15px 0 11px
  }

  .visual-legend {
    font-size:8px
  }

  .hero-stats {
    display:none
  }

  .visual-note {
    margin:12px 0 0;
    font-size:8px
  }

  .section-heading {
    margin-bottom:23px
  }

  .section-heading h2 {
    font-size:26px;
    max-width:260px
  }

  .section-heading>p {
    display:none
  }

  .section-heading .eyebrow {
    font-size:8px
  }

  .catalog-section {
    padding-top:30px
  }

  .category-tabs {
    gap:22px;
    margin-bottom:17px
  }

  .category-tab {
    font-size:10px;
    padding-bottom:13px;
    gap:5px
  }

  .category-tab span {
    font-size:8px
  }

  .toolbar {
    gap:8px
  }

  .search-box {
    width:100%;
    flex:auto;
    min-width:100%;
    padding:10px 12px
  }

  .filter-button {
    margin-right:auto;
    font-size:10px;
    height:35px;
    padding:6px 10px
  }

  .sort-label select {
    height:35px;
    padding:6px 8px;
    font-size:10px
  }

  .view-switch {
    margin:0
  }

  .view-switch button {
    height:26px;
    width:27px
  }

  .view-switch svg {
    width:14px
  }

  .market-row {
    margin-top:15px;
    gap:10px;
    padding-bottom:14px
  }

  .market-chips {
    gap:5px;
    width:100%
  }

  .market-chip {
    font-size:9px;
    padding:5px 9px
  }

  .saved-only {
    margin-left:0;
    font-size:9px
  }

  .results-line {
    padding:13px 0;
    font-size:10px
  }

  .product-grid {
    grid-template-columns:1fr;
    gap:15px
  }

  .card-top {
    padding:16px 18px 0
  }

  .card-visual {
    height:144px;
    padding:10px 18px 0
  }

  .card-title {
    font-size:23px
  }

  .card-content {
    padding:18px
  }

  .card-summary {
    min-height:0;
    font-size:12px
  }

  .publisher {
    font-size:10px
  }

  .tag {
    font-size:9px
  }

  .card-metrics {
    padding-top:16px;
    margin-top:18px
  }

  .card-metrics span {
    font-size:9px
  }

  .card-metrics strong {
    font-size:12px
  }

  .card-footer {
    padding:14px 18px
  }

  .compare-check {
    font-size:10px
  }

  .price {
    font-size:18px
  }

  .card-detail {
    height:30px;
    width:30px
  }

  .catalog-end {
    padding:24px 0
  }

  .catalog-end p {
    font-size:10px
  }

  .catalog-end a {
    font-size:9px;
    max-width:80px
  }

  .site-footer {
    flex-wrap:wrap;
    gap:8px 15px;
    padding-bottom:28px
  }

  .site-footer>span:nth-child(2) {
    display:none
  }

  .compare-tray {
    padding:12px;
    gap:9px;
    bottom:10px
  }

  .compare-tray .eyebrow {
    font-size:7px
  }

  #compare-names {
    font-size:9px;
    gap:3px
  }

  #compare-names span+span:before {
    margin-right:3px
  }

  .compare-tray>.text-button {
    font-size:9px
  }

  .compare-tray .button {
    padding:10px;
    font-size:10px
  }

  .detail-top {
    padding:12px 20px
  }

  .detail-header {
    padding:24px 21px 0
  }

  .detail-header h2 {
    font-size:34px
  }

  .detail-header>p {
    font-size:12px
  }

  .detail-tabs {
    padding:0 21px;
    gap:22px;
    top:58px
  }

  .detail-tabs button {
    font-size:10px
  }

  .detail-body {
    padding:22px 21px 35px
  }

  .detail-facts {
    gap:0 17px
  }

  .fact strong {
    font-size:11px
  }

  .detail-actions {
    gap:7px
  }

  .detail-actions .button {
    font-size:11px
  }

  .detail-preview .card-visual {
    height:155px
  }

  .modal-top {
    padding:24px 20px 12px
  }

  .modal-top h2 {
    font-size:24px
  }

  .compare-note {
    padding:0 20px
  }

  .comparison-scroll {
    padding:5px 20px 22px
  }

  .docs-body {
    padding:0 20px 25px
  }

  .schema-table td {
    font-size:9px
  }

  .schema-table th {
    font-size:8px
  }

  .code-actions .text-button {
    font-size:10px
  }

  .filter-panel {
    gap:12px
  }

  .filter-panel label {
    min-width:120px
  }

}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important
  }

}
.return-chart-head,.return-chart-dates {display:flex;justify-content:space-between;gap:.5rem;align-items:center;padding:0 16px;color:var(--muted);font-size:11px}
.return-chart-head strong {color:var(--text, #e3efe9);font-size:14px}
.return-chart-dates {font-variant-numeric:tabular-nums}

/* Shareable strategy page; keeps catalog filters and scroll in place underneath. */
.product-dialog { inset:0; width:100%; max-width:100%; border:0; border-radius:0; background:var(--bg); }
#product-detail { max-width:1280px; margin:auto; }
.strategy-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border:1px solid var(--line); margin:24px 34px; border-radius:9px; overflow:hidden; }
.strategy-summary .fact { padding:18px; border:0; border-right:1px solid var(--line); min-width:0; }
.strategy-summary strong { font-size:18px; }
.strategy-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:24px; padding-right:34px; align-items:start; }
.strategy-subscribe { position:sticky; top:76px; margin-top:30px; padding:24px; background:var(--panel); border:1px solid var(--line); border-radius:10px; }
.strategy-subscribe h3 { font-size:27px; margin:15px 0; }
.strategy-subscribe small,.strategy-subscribe p { font-size:12px; color:var(--muted); line-height:1.7; }
.strategy-subscribe .button { width:100%; margin:6px 0; }
.evidence-chart { display:block; width:100%; height:230px; margin-top:20px; }
.chart-legend { display:flex; gap:20px; font-size:11px; color:var(--muted); padding-inline:16px; }
.chart-legend span:first-child { color:#9be6bf; }
.chart-legend span:last-child { color:#91a9d2; }
.monthly-heatmap { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:20px 0; }
.month-cell { padding:13px; border:1px solid var(--line); border-radius:6px; background:var(--panel); }
.month-cell span { display:block; color:var(--muted); font-size:10px; margin-bottom:5px; }
.month-cell strong { font:13px var(--mono); }
.month-cell.positive strong { color:var(--accent,#9be6bf); }
.month-cell.negative strong { color:#e5a69d; }
.detail-body { min-width:0; }
.detail-body code { overflow-wrap:anywhere; }
.detail-body pre { white-space:pre-wrap; }
@media(max-width:850px) {
  .strategy-layout { grid-template-columns:1fr; padding:0; gap:0; }
  .strategy-subscribe { position:static; margin:0 24px 24px; }
  .strategy-summary { grid-template-columns:repeat(2,minmax(0,1fr)); margin:20px 24px; }
  .strategy-summary .fact { border-bottom:1px solid var(--line); }
  .monthly-heatmap { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .detail-tabs { overflow-x:auto; }
  .detail-tabs button { white-space:nowrap; }
}

/* Stretch the existing, keyboard-accessible title control across its card.
   Independent controls sit above it and keep their original actions. */
.product-card { position:relative; }
.card-title button::after { content:""; position:absolute; inset:0; z-index:1; border-radius:inherit; cursor:pointer; }
.product-card [data-save],.product-card .compare-check,.product-card .card-detail { position:relative; z-index:2; }
.card-title button:focus-visible::after { outline:2px solid var(--accent); outline-offset:3px; border-radius:10px; }

/* The souk is the brand; red is reserved for its wordmark, not financial data. */
:root { --souk-red:#ed897e; }
:root[data-theme=light] { --souk-red:#b23b32; }
.app-header .brand-light,.admin-brand .souk-word,.site-footer .souk-word { color:var(--souk-red); }
.hero .souk-word { color:var(--souk-red); }
.souk-word { cursor:help; text-decoration:underline dotted; text-decoration-color:transparent; text-underline-offset:5px; }
.souk-word:hover { text-decoration-color:currentColor; }
.souk-journey { max-width:1440px; margin:0 auto; padding:34px 5% 44px; border-block:1px solid var(--line); }
.souk-journey-heading { display:flex; align-items:baseline; justify-content:space-between; gap:24px; margin-bottom:24px; }
.souk-journey-heading .eyebrow { color:var(--gold); font-size:9px; }
.souk-journey-heading h2 { margin:0; font-size:23px; font-weight:550; letter-spacing:-.035em; }
.souk-journey-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px; }
.souk-journey-grid article { min-width:0; padding-top:18px; border-top:1px solid var(--line); }
.journey-number { color:var(--souk-red); font:9px var(--mono); letter-spacing:.08em; }
.souk-journey-grid h3 { font-size:17px; font-weight:550; margin:18px 0 12px; letter-spacing:-.025em; }
.souk-journey-grid p { color:var(--muted); font-size:12px; line-height:1.85; margin:0; }
.souk-journey-grid small { display:block; color:var(--muted); font-size:10px; line-height:1.7; margin-top:12px; }
@media(max-width:850px) { .souk-journey-heading { display:block; } .souk-journey-heading h2 { margin-top:14px; } .souk-journey-grid { grid-template-columns:1fr; gap:24px; } }

/* Hero readability and balanced chart summary. */
.hero-copy > p { font-size:18px; line-height:1.65; max-width:530px; }
.hero-stats > div { justify-content:center; text-align:center; padding-inline:12px; }
.hero-stats > div:first-child { padding-left:12px; }
.hero-stats span { text-align:left; }
.hero-visual > .visual-note { text-align:center; }
@media(max-width:600px) { .hero-copy > p { font-size:16px; } .hero-stats > div { padding-inline:6px; } .hero-stats > div:first-child { padding-left:6px; } }

/* Inline explanations remain available on hover and keyboard focus. */
.hero-term { position:relative; color:var(--mint); font-weight:600; text-decoration:underline dotted; text-decoration-thickness:1px; text-underline-offset:5px; cursor:help; }
.creator-term { color:var(--souk-red); cursor:pointer; }
.hero-definition { display:none; position:absolute; z-index:15; bottom:calc(100% + 10px); left:0; width:280px; max-width:calc(100vw - 48px); padding:16px 18px; border:1px solid var(--line); border-top:2px solid currentColor; border-radius:8px; background:var(--panel); color:var(--ink); box-shadow:0 12px 35px #0005; font:400 13px/1.65 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; text-align:left; }
.hero-definition::after { content:""; position:absolute; top:100%; left:0; right:0; height:12px; }
.hero-term:not([data-help-dismissed]):hover .hero-definition,.hero-term:not([data-help-dismissed]):focus .hero-definition { display:block; }
@media(max-width:600px) { .hero-term { position:static; } .hero-copy > p { position:relative; } .hero-definition { bottom:100%; left:0; width:100%; } }

.hero-term:not(.creator-term) { white-space:nowrap; }
.hero-definition { white-space:normal; }

/* Inline explanations use color, without decorative underlines. */
.hero-term,.hero-term:hover,.hero-term:focus { text-decoration:none; }
.souk-word,.souk-word:hover { text-decoration:none; }

.hero::before { content:none; }

.hero .landing-actions .button { font-size:13px; }

/* Equal call-to-action boxes with real row spacing when stacked on phones. */
.hero .landing-actions {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  width:100%;
  max-width:512px;
}
.hero .landing-actions .button {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:48px;
  margin:0;
  padding:12px 16px;
  line-height:1.4;
}
@media(max-width:560px) {
  .hero .landing-actions { grid-template-columns:minmax(0,1fr); }
}

/* Keep the landing introduction close to the navigation. */
.app-header + main { padding-top:0; }
.app-header + main > .hero { padding-top:28px; }
@media(max-width:600px) { .app-header + main > .hero { padding-top:22px; } }

.souk-word { position:relative; }
.souk-definition { display:none; position:absolute; z-index:50; top:calc(100% + 12px); left:0; width:240px; max-width:calc(100vw - 40px); padding:14px 16px; background:var(--panel); color:var(--ink); border:1px solid var(--line); border-top:2px solid var(--souk-red); border-radius:8px; box-shadow:0 12px 30px #0005; font:400 13px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing:0; text-transform:none; text-align:left; white-space:normal; }
.souk-definition::before { content:""; position:absolute; bottom:100%; left:0; right:0; height:14px; }
.souk-word:not([data-help-dismissed]):hover .souk-definition,.souk-word:not([data-help-dismissed]):focus .souk-definition,.souk-word[data-help-open] .souk-definition { display:block; }
.site-footer .souk-definition { top:auto; bottom:calc(100% + 12px); }

/* Match the signal-stream and creator explanation cards. */
.souk-definition { width:280px; max-width:calc(100vw - 48px); padding:16px 18px; top:auto; bottom:calc(100% + 10px); border-top-color:var(--ink); box-shadow:0 12px 35px #0005; font:400 13px/1.65 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.souk-definition::before { bottom:auto; top:100%; height:12px; }
.app-header .souk-definition,.admin-brand .souk-definition { bottom:auto; top:calc(100% + 10px); }
.app-header .souk-definition::before,.admin-brand .souk-definition::before { top:auto; bottom:100%; }
.souk-definition strong { font-weight:650; }

.souk-word:not([data-help-dismissed]):focus-within .souk-definition { display:block; }
.souk-listen { display:inline-flex; align-items:center; padding:3px 7px; margin:0 3px; border:1px solid var(--line); border-radius:4px; background:var(--panel2); color:var(--ink); font:500 11px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; vertical-align:middle; cursor:pointer; }
.souk-listen:hover { border-color:var(--souk-red); }

/* Compact first-screen introduction and three-step summary. */
.app-header + main > .hero { padding-bottom:28px; }
.hero h1 { margin-top:18px; margin-bottom:20px; }
.hero-copy > .eyebrow { margin-bottom:18px; }
.souk-journey { padding-top:20px; padding-bottom:24px; }
.souk-journey-heading { margin-bottom:14px; }
.souk-journey-heading h2 { font-size:20px; }
.souk-journey-grid article { padding-top:12px; }
.souk-journey-grid h3 { margin:10px 0 8px; font-size:16px; }
.souk-journey-grid p { line-height:1.65; }
.souk-journey-grid small { margin-top:6px; }
@media(min-width:1100px) and (min-height:720px) { .app-header + main > .hero { padding-top:22px; } .hero h1 { font-size:clamp(38px,3.8vw,58px); } .hero-visual { padding:18px; } .hero .signal-wall { height:145px; min-height:0; } .hero-stats { margin-top:16px; } }

@media(min-width:1100px) and (min-height:720px) {
 .app-header + main > .hero { padding-top:18px; padding-bottom:18px; }
 .hero h1 { margin-top:12px; margin-bottom:14px; }
 .hero-copy > p { margin-bottom:16px; }
 .hero .landing-actions { margin-bottom:10px; }
 .souk-journey { padding-bottom:12px; }
}

/* Improve the three-step summary's readability by two pixels. */
.souk-journey-heading h2 { font-size:22px; }
.souk-journey-heading .eyebrow,.journey-number { font-size:11px; }
.souk-journey-grid h3 { font-size:18px; }
.souk-journey-grid p { font-size:14px; }

/* One rounded summary card replaces the section's horizontal dividers. */
.souk-journey { width:90%; padding:22px 26px; margin:0 auto 24px; background:var(--panel); border:1px solid var(--line); border-radius:14px; }
.souk-journey-grid article { border-top:0; padding-top:4px; }
@media(min-width:1100px) and (min-height:720px) { .souk-journey { padding:18px 24px; } }
@media(max-width:600px) { .souk-journey { width:calc(100% - 40px); padding:20px; } }

.hero:has(+ .souk-journey) { border-bottom:0; }

/* Shared hero/card edges and an equal gap on either side of the summary. */
.hero,.souk-journey { width:90%; max-width:1288px; }
.app-header + main > .hero { padding-inline:0; padding-bottom:0; }
.souk-journey { margin-block:28px; }
.souk-journey + .catalog-section { padding-top:0; }
@media(max-width:600px) { .hero,.souk-journey { width:calc(100% - 40px); } .souk-journey { margin-block:24px; } }

/* Identity controls supplement the same public header; account content stays private. */
.member-account { position:relative; margin:0; padding:0; border:0; }
.member-account summary { cursor:pointer; list-style:none; }
.member-account summary::-webkit-details-marker { display:none; }
.member-account-panel { position:absolute; right:0; top:calc(100% + 12px); z-index:50; width:min(290px,80vw); padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--panel); color:var(--ink); box-shadow:0 16px 40px #0004; }
.member-account-panel small { display:block; overflow-wrap:anywhere; margin-bottom:12px; }
.member-account-panel a { display:block; padding:8px 0; }
.member-account-panel form { margin-top:12px; }

.discovery-collections { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:20px 0; }
.discovery-collections button { background:var(--panel); border:1px solid var(--line); border-radius:6px; color:var(--muted); font:inherit; padding:8px 14px; cursor:pointer; }
.discovery-collections [aria-pressed=true] { border-color:var(--accent); color:var(--accent); background:var(--accent-deep); }
.discovery-collections > span { color:var(--muted); font-size:10px; margin-left:auto; }
.card-audience { display:flex; flex-wrap:wrap; gap:12px; margin-top:14px; color:var(--muted); font-size:11px; }
.header-actions .member-account .avatar { display:grid; }

.hero-term[aria-describedby="signal-stream-definition"] { color:var(--souk-red); }

.buyer-access h2 { margin:8px 0 0; }
.buyer-access p,.buyer-access details { color:var(--muted); line-height:1.7; }
.buyer-key-controls { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:20px 0; }
.buyer-key-value { flex:1 1 280px; min-width:0; padding:14px; background:var(--bg); color:var(--ink); border:1px solid var(--line); border-radius:6px; font:13px var(--mono); }
.buyer-access pre { white-space:pre-wrap; overflow-wrap:anywhere; padding:16px; background:var(--bg); border:1px solid var(--line); border-radius:8px; }
@media(max-width:600px) { .buyer-key-value { flex-basis:100%; } }

/* Account-only AI connection guide; one main action, developer controls disclosed. */
.buyer-api-details {margin-block:24px;}
.buyer-api-details > summary {cursor:pointer;font-weight:600;padding-block:12px;}
.ai-connect-dialog {width:min(760px,calc(100vw - 32px));}
.ai-connect-dialog .docs-body {padding:28px;}
.ai-connect-dialog .modal-top form {margin:0;padding:0;border:0;background:none;}
.ai-field {display:grid;gap:8px;font-size:13px;margin-block:20px;}
.ai-field input,.ai-field select {width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--panel);font:inherit;}
.ai-steps {display:grid;gap:24px;padding-left:24px;margin-block:28px;}
.ai-steps p {margin-block:10px;}
.ai-connect-dialog pre {max-width:100%;overflow:auto;padding:16px;border:1px solid var(--line);border-radius:10px;white-space:pre;}
.ai-connect-dialog .info-note {margin-block:20px;}
@media(max-width:600px){.ai-connect-dialog .docs-body{padding:20px;}.buyer-access .souk-journey-heading{align-items:flex-start;flex-direction:column;gap:20px;}}
