/* Meta title checker. White Google-style cards on the dark site. */

@font-face {
  font-family: Arimo;
  src: url('../fonts/arimo-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Arimo;
  src: url('../fonts/arimo-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.serp-top { padding: 0.35rem 0 0.75rem; }
.serp-top h1 { margin-bottom: 0.35rem; max-width: 16ch; }
.serp-dek {
  max-width: 42rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.45;
}
.serp-band { padding-top: 0; }
.serp-shell { padding: clamp(0.85rem, 2vw, 1.2rem); }
.serp-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 652px;
  gap: 1rem 1.2rem;
  align-items: start;
}
.serp-hint { margin: 0.35rem 0 0; color: var(--text-dim); font-size: 0.82rem; line-height: 1.4; }
.serp-fetch { margin-bottom: 0.9rem; }
.serp-fetch-row { display: flex; gap: 0.5rem; align-items: center; }
.serp-fetch-row input { flex: 1; }
.serp-previews { display: grid; gap: 0.75rem; }
.serp-card { display: grid; gap: 0.35rem; }
.serp-device {
  margin: 0;
  color: var(--text-secondary);
  font: 700 0.72rem/1.2 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.serp-result {
  background: #fff;
  color: #202124;
  border-radius: 12px;
  padding: 12px 16px 14px;
  font-family: Arimo, Arial, "Liberation Sans", Helvetica, sans-serif;
}
/* The text column is the width we measure: 600px desktop, 360px mobile.
   32px is the horizontal padding. */
.serp-desktop .serp-result { width: 632px; }
.serp-mobile .serp-result { width: 392px; }
.serp-url {
  margin: 0 0 0.15rem;
  color: #202124;
  font-size: 14px;
  line-height: 1.3;
}
.serp-title {
  margin: 0 0 0.2rem;
  color: #1a0dab;
  font-family: Arimo, Arial, "Liberation Sans", Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  white-space: pre-line;
}
.serp-desc {
  margin: 0;
  color: #4d5156;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
}
.serp-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin-top: 0.8rem; }
.serp-meter {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}
.serp-meter-top { display: flex; justify-content: space-between; gap: 0.4rem; color: var(--text-secondary); font-size: 0.78rem; }
.serp-meter-top strong { color: var(--white); }
.serp-meter-track {
  height: 8px;
  margin-top: 0.35rem;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.serp-meter-track span { display: block; height: 100%; width: 0; background: #34a853; }
.serp-meter.is-short .serp-meter-track span { background: #e6b325; }
.serp-meter.is-long .serp-meter-track span { background: #ff642d; }
.serp-meter.is-short strong { color: #e6b325; }
.serp-meter.is-long strong { color: #ff642d; }
.serp-meter.is-good strong { color: #8ee0a2; }
.serp-checks { margin: 0.8rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.serp-checks li {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.serp-checks .is-good { color: var(--white); box-shadow: inset 3px 0 0 #34a853; }
.serp-checks .is-warn { color: var(--white); box-shadow: inset 3px 0 0 #e6b325; }
.serp-checks .is-bad { color: var(--white); box-shadow: inset 3px 0 0 #ff642d; }
.serp-checks .is-skip { color: var(--text-dim); }
.serp-below { max-width: 46rem; }

.serp-desktop-note { display: none; }
@media (max-width: 1100px) {
  .serp-layout, .serp-meters { grid-template-columns: 1fr; }
  .serp-fetch-row { flex-direction: column; align-items: stretch; }
  .serp-previews {
    display: flex;
    flex-direction: column;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0 7px;
  }
  .serp-mobile { order: -1; }
  .serp-mobile .serp-result {
    width: 100%;
    max-width: 376px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .serp-desktop { overflow-x: auto; max-width: 100%; }
  .serp-desktop .serp-result { width: 632px; max-width: none; }
}
@media (max-width: 700px) {
  .serp-desktop .serp-result { display: none; }
  .serp-desktop-note { display: block; max-width: 36rem; }
}
