/* =============================================================================
   GEO Source Platform · international (English) overlay
   Base layout, components and CSS variables come from /geo/geo.css.
   This file only carries English-specific typography, badge and column tweaks,
   so the Chinese site and the international site keep one visual system.
   ============================================================================= */

/* ------------------------------------------------------------- Typography */

body.geo-body,
body.geo-body h1,
body.geo-body h2,
body.geo-body h3,
body.geo-body h4 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, system-ui, sans-serif;
}

/* English UI reads better with slightly positive tracking on small caps */
.geo-kicker { letter-spacing: .12em; }
.geo-brand-text b { letter-spacing: -.2px; }
.geo-brand-text span { letter-spacing: .08em; font-size: 10px; }

/* Long English headline lines need a touch more room than the CJK scale */
.geo-hero h1 { letter-spacing: -1px; line-height: 1.12; }
.geo-hero h1 em { font-style: normal; }
.geo-lede { max-width: 33em; }
.geo-sec-head p { max-width: 46em; }
.geo-head p { max-width: 58em; }

/* Uppercase-heavy micro labels stay readable at 12px */
.geo-eyebrow { letter-spacing: .01em; }
.geo-step:before { letter-spacing: -.5px; }

/* --------------------------------------------------------- Media library */

/* Publication cell: logo / monogram + name + domain */
.geo-pub { display: flex; align-items: center; gap: 10px; min-width: 0; }
.geo-logo,
.geo-pub img.geo-logo {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  object-fit: contain; background: #f3f6fb; border: 1px solid var(--geo-line);
  display: grid; place-items: center;
  color: var(--geo-blue); font-size: 11px; font-weight: 700; line-height: 1;
  text-transform: uppercase; overflow: hidden;
}
.geo-pub .geo-media-name { min-width: 0; }
.geo-media-name b { overflow-wrap: anywhere; }
.geo-media-name small { overflow-wrap: anywhere; }

/* Audience / price cells are right-aligned tabular numbers */
.geo-table td.num b { font-weight: 500; }
.geo-table .geo-col-num { white-space: nowrap; }

/* Case link styled like the zh site's inline row button */
a.geo-rowbtn { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
a.geo-rowbtn:hover { background: #edf0ff; text-decoration: none; }

/* AI visibility badges (intl engines) */
.geo-ai { min-width: 22px; font-size: 9px; letter-spacing: -.1px; }
.ai-chatgpt { background: #10a37f; }
.ai-perplexity { background: #1f6feb; }
.ai-gemini { background: #6b4dfd; }
.ai-copilot { background: #0364b8; }
.ai-claude { background: #c1623a; }

/* Filter bar: USD price inputs hold 5-6 characters plus cents */
.geo-price-range input { width: 96px !important; }
.geo-price-range .geo-unit { font-size: 12px; color: var(--geo-muted); white-space: nowrap; }

/* Format segments: English format names are longer than the zh tab labels */
.geo-seg button { white-space: nowrap; }

/* Static snapshot block used when the live API is unavailable */
.geo-snapshot {
  border: 1px dashed var(--geo-line); border-radius: var(--geo-radius);
  background: #fbfcff; padding: 16px 18px; margin: 0 0 14px;
}
.geo-snapshot h3 { font-size: 14px; margin: 0 0 6px; }
.geo-snapshot p { font-size: 12.5px; color: #4c687e; line-height: 1.75; margin: 0 0 8px; }
.geo-snapshot p:last-child { margin-bottom: 0; }
.geo-snapshot-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; margin: 10px 0 12px;
}
.geo-snapshot-stats div {
  background: #fff; border: 1px solid var(--geo-line); border-radius: 10px;
  padding: 10px 12px; min-width: 0;
}
.geo-snapshot-stats b { display: block; font-size: 18px; letter-spacing: -.4px; line-height: 1.3; }
.geo-snapshot-stats small { color: var(--geo-muted); font-size: 11.5px; }

/* ------------------------------------------------------------ Pricing page */

/* "$4,900" is wider than "￥28,800" reads at the same scale */
.geo-tier .geo-price b { font-size: 30px; letter-spacing: -1px; }
.geo-tier .geo-price-note { min-height: 34px; }

/* ------------------------------------------------------------ Mobile rules */

@media (max-width: 1080px) {
  .geo-snapshot-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  /* English data labels are longer than the zh ones: widen the label column */
  .geo-table tbody td { grid-template-columns: 104px minmax(0, 1fr); }
  .geo-compare tbody td { grid-template-columns: 92px minmax(0, 1fr); }
  .geo-brand-text span { font-size: 9.5px; }
  .geo-tier .geo-price b { font-size: 27px; }
  .geo-snapshot { padding: 14px; }
  .geo-snapshot-stats { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .geo-table tbody td { grid-template-columns: 92px minmax(0, 1fr); }
  .geo-pub { align-items: flex-start; }
  .geo-snapshot-stats b { font-size: 16px; }
}

/* ------------------------------------------------------------------ fixes
   English-only layout corrections found during browser QA at 1440 / 390. */

/* A price range such as "$15.00–$9,750.04" must not break after the dash
   inside a narrow hero cap. */
.geo-cap b { white-space: nowrap; }

/* The "Illustrative" pill is absolutely positioned in the zh layout; English
   case titles are long enough to run underneath it, so make it flow above. */
.geo-case .geo-sample-tag {
  position: static; display: inline-block; margin-bottom: 8px;
}
.geo-case h3 { margin-top: 0; }

/* Report head: keep the ring readable when the header is sticky on mobile */
@media (max-width: 720px) {
  .geo-score { flex-wrap: wrap; }
  .geo-score-meta { min-width: 0; }
}

/* Header at 390: "GEO Source Platform" + "Free GEO check" + burger is 6px
   wider than the viewport with the zh metrics. Shrink the three parts that
   can give way without changing the design, so docW == vw. */
@media (max-width: 420px) {
  .geo-bar { gap: 8px; }
  .geo-brand { min-width: 0; }
  .geo-brand-text { min-width: 0; }
  .geo-brand-text b {
    font-size: 14px; letter-spacing: -.3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .geo-actions { gap: 6px; }
  .geo-actions .btn { padding: 7px 10px; font-size: 12.5px; }
  .geo-burger { width: 38px; height: 38px; border-radius: 10px; }
}

/* Mobile card layout: a grid child stretches by default, so inline pills and
   the "Visit" link filled the whole value column. Keep them content-width. */
@media (max-width: 720px) {
  .geo-table tbody td > .geo-tag,
  .geo-table tbody td > .geo-ai-badges,
  .geo-table tbody td > a.geo-rowbtn,
  .geo-table tbody td > .muted { justify-self: start; }
}
