/* Search & Digital Growth (/seo-geo-aeo). Loaded only by that page, after pages.css.
   Markup: website_2026-11_search/build/search_growth.py. The four views use [data-sel] from pages.js. */

/* ---------- Hero ---------- */
@media (min-width: 1001px) { .sg-hero .sp-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; } }
.sg-hero h1 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.sg-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; background: #1F2937; color: #9CA3AF; font-size: .8rem; }
.sg-card-top p { margin: 0; display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: .84rem; }
.sg-card-top i { width: 10px; height: 10px; border-radius: 50%; background: #8AB4F8; display: inline-block; }
.sg-card-body { padding: 16px 18px; display: grid; gap: 12px; }
.sg-ai { padding: 10px 12px; border-radius: 10px; background: #F3F0FF; border: 1px solid #DDD3FB; }
.sg-ai-k { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #5B3FC4; }
.sg-ai-k .sp-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.sg-ai p:last-child { margin: 0; font-size: .9rem; color: #1F2937; }
.sg-mini { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-mini li { flex: 1 1 auto; padding: 8px 10px; border-radius: 8px; background: #F5F7FA; border: 1px solid #E3E6EA; font-size: .82rem; color: #4B5563; display: flex; justify-content: space-between; gap: 8px; }
.sg-mini b { color: #111827; font-variant-numeric: tabular-nums; }
.sg-mini .is-key { background: var(--green-soft); border-color: #A9D8BF; color: var(--green); font-weight: 700; }
.sg-mini .is-key b { color: var(--green); }

/* ---------- Search result snippet ---------- */
.sg-serp { padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #E3E6EA; }
.sg-serp-u { margin: 0; font-size: .78rem; color: #4D5156; overflow-wrap: anywhere; }
.sg-serp-t { margin: 2px 0 4px; font-size: 1.02rem; color: #1A0DAB; line-height: 1.3; }
.sg-serp-d { margin: 0; font-size: .86rem; color: #4D5156; line-height: 1.45; }

/* ---------- First tab: a search-result preview (sample query, then the result's site line, title and description) ---------- */
.sg-query { display: flex; align-items: center; gap: 10px; max-width: 420px; margin: 0 0 12px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid #D5DAE1; box-shadow: 0 1px 3px rgba(20,35,59,.08); }
.sg-query .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sg-query svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #5F6B7A; stroke-width: 2; stroke-linecap: round; }
.sp-panel .sg-query-t { font-size: .95rem; color: #1F2937; overflow-wrap: anywhere; }
.sg-result { padding: 12px 14px 14px; }
.sg-serp-site { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #EEF0F3; }
.sg-serp-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #E6F4F2; border: 1px solid #BFE2DF; color: #0F4F4C; font-family: var(--font-display); font-weight: 800; font-size: .8rem; }
.sg-serp-site p { margin: 0; min-width: 0; line-height: 1.3; }
.sp-panel .sg-serp-n { display: block; font-size: .86rem; font-weight: 600; color: #202124; }
.sp-panel .sg-serp-site .sg-serp-u { display: block; font-size: .76rem; color: #4D5156; overflow-wrap: anywhere; }
.sg-serp-site .sg-serp-u span { white-space: nowrap; }
.sp-panel .sg-result .sg-serp-t { margin: 0 0 5px; font-size: 1.08rem; line-height: 1.3; color: #1A0DAB; }
.sp-panel .sg-result .sg-serp-d { font-size: .88rem; line-height: 1.5; color: #4D5156; }
.sp-panel .sg-note { margin: 10px 0 0; font-size: .8rem; color: var(--text-3); }

/* ---------- Three ways ---------- */
.sg-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sg-ways li { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.sg-ways .sp-ico, .sg-kinds .sp-ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-pale); color: var(--blue-deep); margin-bottom: 14px; }
.sg-ways .sp-ico svg, .sg-kinds .sp-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sg-ways h3 { font-size: 1.35rem; margin: 0; }
.sg-sub { margin: 2px 0 10px; font-size: .86rem; font-weight: 600; color: var(--text-3); }
.sg-ways p:last-child { margin: 0; color: var(--text-2); }

/* ---------- Four views ---------- */
.sg-sel { margin-top: 0; }
.sg-sel .sp-panel { grid-template-columns: minmax(0, 1fr); gap: 18px; }   /* explanation above, before and after side by side at full width */
.sg-sel .sp-panel > div:first-of-type p { max-width: 44em; }
.sg-sel .sp-panel-side { order: 0; }
.sg-ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sg-col { padding: 12px; border-radius: 12px; min-width: 0; }
.sg-col.is-before { background: #F5F7FA; border: 1px solid #E3E6EA; }
.sg-col.is-after { background: #F1FAF4; border: 1px solid #A9D8BF; }
.sg-tag { margin: 0 0 8px; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.is-after > .sg-tag { color: var(--green); }
.sg-checks { display: grid; gap: 6px; }
.sg-checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid #E3E6EA; font-size: .88rem; color: #1F2937; }
.sg-checks svg { width: 16px; height: 16px; margin-top: 2px; }
.sg-checks .is-ok svg { color: var(--green); }
.sg-checks .is-no svg { color: #B4321F; }
.sg-nums { display: grid; gap: 6px; }
.sg-nums li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid #E3E6EA; font-size: .88rem; color: #1F2937; }
.sg-nums b { font-variant-numeric: tabular-nums; }
.sg-nums .is-key { color: var(--green); font-weight: 700; border-color: #A9D8BF; }
.sg-note { margin: 8px 0 0; font-size: .8rem; color: var(--text-3); }
.sg-after { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 28px; }
.sg-after p { margin: 0; color: var(--text-2); max-width: 42em; }

/* ---------- What we do ---------- */
.sg-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sg-kinds li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 16px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.sg-kinds .sp-ico { margin: 0; }
.sg-kinds h3 { font-size: 1.12rem; margin: 3px 0 6px; }
.sg-kinds p { margin: 0; color: var(--text-2); }
.sg-promise { margin-top: 24px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.sg-promise .sg-tag { color: var(--amber); }
.sg-promise p:last-child { margin: 0; color: var(--text-2); }

/* ---------- Work ---------- */
.sg-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sg-case { padding: 26px 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.sg-case h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); margin-bottom: 12px; }
.sg-built { display: grid; gap: 8px; margin-bottom: 14px; }
.sg-built li { position: relative; padding-left: 26px; color: var(--text-2); }
.sg-built li::before { content: "\2713"; position: absolute; left: 0; top: .1em; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.sg-more { margin-top: auto; font-weight: 700; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.sg-more::after { content: "\2192"; margin-left: 8px; }

/* One height for the four tabs on tablet and desktop: the panels share one grid cell, so the area is always as tall as
   the tallest panel and nothing below moves when switching. Hidden panels keep their space but stay invisible and out of
   the tab order. Phones (700px and under) keep the page's normal behavior and size each panel naturally. */
@media (min-width: 701px) {
  .js .sg-sel.is-live .sp-sel-panels { display: grid; }
  .js .sg-sel.is-live .sp-sel-panels > .sp-panel { grid-area: 1 / 1; align-content: start; }
  /* !important only to outrank the site-wide [hidden] reset, for these four panels alone */
  .js .sg-sel.is-live .sp-sel-panels > .sp-panel[hidden] { display: grid !important; visibility: hidden; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) { .sg-hero-art { max-width: 560px; } }
@media (max-width: 860px) {
  .sg-ways, .sg-kinds, .sg-cases { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .sg-ba { grid-template-columns: minmax(0, 1fr); }
  .sg-kinds li { grid-template-columns: 42px minmax(0, 1fr); gap: 0 14px; padding: 18px; }
  .sg-kinds .sp-ico { width: 42px; height: 42px; }
  .sg-case { padding: 20px; }
  .sg-after .btn { width: 100%; }
}
@media (max-width: 480px) {
  .sg-hero-art { padding: 14px; border-radius: 18px; }
  .sg-card-body { padding: 12px; }
}
