/* Callback product page. Loaded after site.css and product.css, only on /callback/.
   The Semantic examples use the extension's system UI font for queries and Newsreader for page text. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
}

.page--callback {
  --read: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sys: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hl: #ffd84d;
  --hl-cur: #ff9b3d;
}

/* The highlighter sweep — sits cleanly below descenders above, multiply keeps every letter crisp */
.page--callback .p-hero h1 {
  max-width: 18ch;
  line-height: 1.09;
}
.page--callback .p-hero h1 mark {
  padding: 0 .1em;
  margin: 0 -.06em;
  border-radius: .08em;
  background: linear-gradient(transparent 28%, var(--hl) 28%, var(--hl) 88%, transparent 88%);
  color: inherit;
  mix-blend-mode: multiply;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

/* Site favicon and the Callback tile, as in the panel */
.cb-fav {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 4px;
  background: var(--c, #555);
  font: 700 10px/1 Georgia, serif;
  color: #fff;
}

.cb-tile {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--hl);
  box-shadow: inset 0 -2px 0 var(--cb-edge);
  color: #1c1604;
}
.cb-tile svg { width: 17px; height: 17px; }

/* ---------- Semantic: what you type, what it finds ---------- */
.cb-sems {
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--hair);
}
.cb-sem {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: start;
  gap: 16px clamp(32px, 6vw, 96px);
  padding: 28px 0;
  border-top: 1px solid var(--hair);
}
.cb-sem__q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font: 400 18px/1.4 var(--sys);
  color: var(--ink);
}
.cb-sem__q .cb-tile { width: 26px; height: 26px; flex-shrink: 0; }
.cb-sem__q .cb-tile svg { width: 14px; height: 14px; }
.cb-sem__said { padding-top: 1px; }
.cb-sem__hit { margin: 0; min-width: 0; }
.cb-sem__hit figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.cb-sem__hit figcaption .cb-fav { width: 20px; height: 20px; border-radius: 5px; font-size: 12px; }
.cb-sem__hit figcaption b { font-weight: 600; color: var(--ink); }
.cb-sem__hit blockquote {
  position: relative;
  margin: 12px 0 0;
  padding-left: 20px;
  font: 400 clamp(19px, 1.6vw, 22px)/1.55 var(--read);
  color: var(--ink);
}
.cb-sem__hit blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  bottom: .2em;
  width: 2.5px;
  border-radius: 2px;
  background: var(--sem);
}
.cb-sem__hit mark {
  padding: .04em .1em;
  border-radius: 3px;
  background: var(--sem-wash);
  color: inherit;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
@media (max-width: 860px) {
  .cb-sem { grid-template-columns: minmax(0, 1fr); padding: 24px 0; }
}
