/* Funnel step one: the before side, a results page in Google's light style
   that shows the example or the live results for the typed name. Every size
   is in em off one base that follows the stage's width, so it sits at the
   same scale as the real capture behind it. */
:root {
  --gs-font: Arial, Helvetica, sans-serif;
  --gs-text: #202124;
  --gs-body: #4d5156;
  --gs-meta: #5f6368;
  --gs-link: #1a0dab;
  --gs-line: #dadce0;
  --gs-pill-line: #dfe1e5;
  --gs-pill-shadow: #20212429;
  --gs-chip: #f1f3f4;
  --gs-flag: #7a4d00;
  --gs-flag-bg: #fdefd0;
  --gs-face-fill: #ffffffb3;
  --gs-face-1: #9db4b9;
  --gs-face-2: #c9a98b;
  --gs-face-3: #a9b598;
  --gs-face-4: #d0a097;
  --gs-face-5: #9aabc7;
  --gs-face-6: #bdb6a2;
}
.gserp {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.6em 2.1em 0;
  background: var(--white);
  color: var(--gs-text);
  font-family: var(--gs-font);
  font-size: calc(100cqw * 16 / 1150);
  line-height: 1.45;
  text-align: left;
}
.gserp :where(p, figure) {
  margin: 0;
}
.gs-top {
  display: flex;
  align-items: center;
}
.gs-brand {
  flex-shrink: 0;
  width: 5.2em;
  font-size: 1.5em;
  color: var(--gs-meta);
}
.gs-bar {
  display: flex;
  align-items: center;
  width: 45.2em;
  height: 3.1em;
  padding: 0 1.3em;
  border: 1px solid var(--gs-pill-line);
  border-radius: 2em;
  box-shadow: 0 0.1em 0.4em var(--gs-pill-shadow);
}
.gs-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gs-bar .icon {
  width: 1.25em;
  height: 1.25em;
  margin-left: auto;
  color: var(--gs-meta);
}
.gs-tabs {
  display: flex;
  gap: 1.7em;
  margin: 1.9em -2.1em 0;
  padding: 0 2.1em;
  border-bottom: 1px solid var(--gs-line);
  font-size: 0.9em;
  color: var(--gs-meta);
}
.gs-tabs span {
  padding-bottom: 0.7em;
  border-bottom: 0.2em solid transparent;
}
.gs-tabs .on {
  border-color: var(--gs-text);
  color: var(--gs-text);
}
.gs-body {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-columns: 57% minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 4em;
  padding: 2em 0 1.4em;
}
.gs-result {
  position: relative;
  margin-bottom: 2.1em;
}
.gs-source {
  display: flex;
  align-items: center;
  gap: 0.7em;
}
/* Room for the example's "Someone else" tag; live results use the full width. */
.gs-example .gs-source {
  padding-right: 8em;
}
.gs-source b {
  display: block;
  font-size: 0.875em;
  font-weight: 400;
}
.gs-source small {
  display: block;
  font-size: 0.75em;
  color: var(--gs-body);
}
.gs-fav {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: var(--gs-chip);
  color: var(--gs-meta);
  font-size: 0.7em;
  font-weight: 700;
}
.gs-title {
  margin: 0.35em 0 0.2em;
  font-size: 1.25em;
  line-height: 1.3;
  color: var(--gs-link);
  overflow-wrap: anywhere;
}
.gs-snippet {
  font-size: 0.875em;
  line-height: 1.58;
  color: var(--gs-body);
}
.gs-flag {
  padding: 0.3em 0.75em;
  border-radius: 99em;
  background: var(--gs-flag-bg);
  color: var(--gs-flag);
  font-family: var(--sans);
  font-size: max(11px, 0.72em);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.gs-result > .gs-flag {
  position: absolute;
  top: 0.2em;
  right: 0;
}
.gs-images {
  margin-bottom: 2.1em;
}
.gs-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7em;
  font-size: 1.25em;
}
.gs-heading .gs-flag {
  font-size: max(11px, 0.58em);
}
.gs-faces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9em 0.7em;
}
.gs-faces figcaption {
  margin-top: 0.4em;
  font-size: 0.75em;
  overflow-wrap: anywhere;
}
.gs-faces small {
  display: block;
  font-size: 1em;
  color: var(--gs-body);
}
.gs-faces figure:nth-child(1) {
  --face: var(--gs-face-1);
}
.gs-faces figure:nth-child(2) {
  --face: var(--gs-face-2);
}
.gs-faces figure:nth-child(3) {
  --face: var(--gs-face-3);
}
.gs-faces figure:nth-child(4) {
  --face: var(--gs-face-4);
}
.gs-faces figure:nth-child(5) {
  --face: var(--gs-face-5);
}
.gs-faces figure:nth-child(6) {
  --face: var(--gs-face-6);
}
.gs-face {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 0.6em;
  overflow: hidden;
  background: var(--face);
}
.gs-face::before,
.gs-face::after {
  content: "";
  position: absolute;
  left: 50%;
  translate: -50% 0;
  background: var(--gs-face-fill);
}
.gs-face::before {
  top: 16%;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
}
.gs-face::after {
  bottom: -34%;
  width: 50%;
  height: 72%;
  border-radius: 50% 50% 0 0;
}
/* Our note in the space where a knowledge panel would be. */
.gs-empty {
  align-self: start;
  padding: 1.3em 1.4em;
  border: 1px dashed var(--gs-meta);
  border-radius: 1em;
  font-family: var(--sans);
  font-size: max(13px, 1em);
  line-height: 1.5;
  color: var(--gs-body);
}
.gs-empty strong {
  display: block;
  font-size: 1.2em;
  color: var(--ink);
}
/* Example or live: only one half of the page shows. While a search runs the
   page dims; the label above the stage says what is happening. */
.gserp[data-mode="example"] .gs-live,
.gserp[data-mode="live"] .gs-example {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .gs-body {
    transition: opacity var(--motion-ui) ease;
  }
}
.gserp[aria-busy="true"] .gs-body {
  opacity: 0.4;
}
.gs-side {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  align-self: stretch;
  min-height: 0;
}
/* Live results start a little higher and the note is tighter, so on short
   screens the whole note, question included, stays inside the frame. */
.gserp[data-mode="live"] .gs-body {
  padding-top: 1.4em;
}
.gs-side .gs-empty {
  padding: 0.75em 1em;
  font-size: max(12px, 0.875em);
  line-height: 1.4;
}
/* The knowledge panel Google already shows, in short. */
.gs-panel {
  padding: 1.2em 1.3em;
  border: 1px solid var(--gs-line);
  border-radius: 1em;
}
.gs-panel-title {
  font-size: 1.75em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.gs-panel-type {
  margin-top: 0.2em;
  font-size: 0.875em;
  color: var(--gs-meta);
}
.gs-panel-text {
  display: -webkit-box;
  margin-top: 0.9em;
  overflow: hidden;
  font-size: 0.875em;
  line-height: 1.58;
  color: var(--gs-body);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}
.gs-panel-source {
  margin-top: 0.4em;
  font-size: 0.75em;
  color: var(--gs-meta);
}
/* The panel's photos as Google lays them out: one large and two small, two side by side, or one. */
.gs-panel-photos {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.25em;
  aspect-ratio: 16 / 9;
  margin-top: 0.9em;
  overflow: hidden;
  border-radius: 0.6em;
}
.gs-panel-photos[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  aspect-ratio: 2;
}
.gs-panel-photos[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 38%;
  max-width: 9em;
  aspect-ratio: 1;
}
.gs-panel-photos[data-count="3"] .gs-panel-image:first-child {
  grid-row: span 2;
}
.gs-panel-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 25%;
  background: var(--gs-line);
}
/* The outline of a panel the name does not have yet: the shape of a real one, with its photos and lines left blank. */
.gs-ghost {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 1em 1.2em;
  border-style: dashed;
  border-color: var(--gs-meta);
  overflow: hidden;
}
.gs-ghost .gs-panel-title {
  font-size: 1.5em;
  color: var(--gs-body);
}
.gs-ghost-fill {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.gs-ghost-faces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5em;
  margin-top: 0.8em;
}
.gs-ghost-faces span {
  height: 3.6em;
  border-radius: 0.5em;
  background: #e8eaed;
}
.gs-ghost-lines {
  display: grid;
  gap: 0.5em;
  margin-top: 0.9em;
}
.gs-ghost-lines span {
  height: 0.6em;
  border-radius: 0.3em;
  background: #e8eaed;
}
.gs-ghost-lines span:nth-child(2) {
  width: 84%;
}
.gs-ghost-lines span:nth-child(3) {
  width: 58%;
}
.gs-ghost-note {
  margin-top: auto;
  padding-top: 0.9em;
  font-family: var(--sans);
  font-size: max(12px, 0.8em);
  line-height: 1.45;
  color: var(--gs-body);
}
.gs-ghost-note strong {
  display: block;
  font-size: 1.1em;
  color: var(--ink);
}
.gs-side .gs-empty strong {
  font-size: 1.1em;
}
.gs-ghost-line {
  display: none;
}
.gs-ghost-note a {
  color: var(--ink);
}
.gs-ghost-note .icon {
  width: 0.8em;
  height: 0.8em;
  vertical-align: -0.05em;
}
/* What people also search for, as Google lists it under the results. */
.gs-related {
  flex: none;
  margin-top: 1.2em;
  font-family: var(--sans);
}
.gs-side .gs-related {
  margin-top: 0;
}
.gs-related b {
  display: block;
  margin-bottom: 0.45em;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--gs-meta);
}
.gs-related span {
  display: inline-block;
  margin: 0 0.4em 0.4em 0;
  padding: 0.3em 0.75em;
  border: 1px solid var(--gs-line);
  border-radius: 1em;
  font-size: 0.8em;
  color: var(--gs-body);
}
@media (max-width: 760px) {
  /* On a phone the page scrolls inside the frame, so it is as tall as its content. */
  .gserp {
    height: auto;
    min-height: 100%;
    padding: 0.8em 1em 0;
    font-size: calc(100cqw * 16 / 412);
  }
  .gs-brand {
    display: none;
  }
  .gs-bar {
    flex: 1;
    width: auto;
    height: 2.6em;
  }
  .gs-tabs {
    display: none;
  }
  /* On a phone the page stacks and simply overflows the frame: no height to share, so the rows take their content's height. */
  .gs-body {
    flex: none;
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 1.4em;
  }
  .gs-body,
  .gserp[data-mode="live"] .gs-body {
    padding-top: 1em;
  }
  .gs-empty,
  .gs-side {
    order: -1;
  }
  .gs-side {
    align-self: start;
    min-height: auto;
  }
  .gs-side .gs-related {
    display: none;
  }
  .gs-side .gs-empty {
    padding: 0;
    border: 0;
    font-size: 12px;
  }
  /* No panel came back: one line says so, and the visitor's own results follow at once. */
  .gs-ghost {
    flex: none;
    padding: 0;
    border: 0;
  }
  .gs-ghost > :not(.gs-ghost-line) {
    display: none;
  }
  .gs-ghost-line {
    display: block;
    padding: 0.7em 0.9em;
    border-radius: 0.6em;
    background: var(--soft);
    color: var(--ink);
    font-family: var(--sans);
    font-size: max(13px, 0.95em);
    font-weight: 600;
    line-height: 1.35;
  }
  .gs-panel-text {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  .gs-example .gs-source {
    padding-right: 0;
  }
  .gs-result > .gs-flag {
    position: static;
    display: inline-block;
    margin-top: 0.5em;
  }
}
/* Short screens: the frame is low, so Google's tab row goes and the page starts higher, leaving room for the panel. */
@media (max-height: 860px) and (min-width: 761px) {
  .gserp {
    padding-top: 0.7em;
  }
  .gs-bar {
    height: 2.6em;
  }
  .gs-tabs {
    display: none;
  }
  .gs-body,
  .gserp[data-mode="live"] .gs-body {
    padding-top: 1em;
  }
  .gs-ghost {
    padding: 0.8em 1.1em;
  }
  .gs-ghost .gs-panel-title {
    font-size: 1.3em;
  }
  .gs-ghost-faces span {
    height: 2.4em;
  }
  .gs-ghost-note {
    padding-top: 0.7em;
    font-size: max(11px, 0.75em);
    line-height: 1.35;
  }
  /* The outline keeps the whole column on a low frame; what people also search for shows on taller screens and on the report page. */
  .gs-side .gs-related {
    display: none;
  }
}
/* Unless the frame is tall, the photos sit beside the name as small squares: the panel is no taller than its
   name, so the name and its photos both stay in view at any window size. */
@media (max-height: 1100px), (max-width: 760px) {
  .gs-panel-photos,
  .gs-panel-photos[data-count] {
    grid-template-columns: none;
    grid-template-rows: max(2.6em, 36px);
    grid-auto-columns: max(2.6em, 36px);
    grid-auto-flow: column;
    width: auto;
    max-width: none;
    aspect-ratio: auto;
    margin-top: 0.2em;
  }
  .gs-panel:not(.gs-ghost) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.8em;
    align-items: start;
  }
  .gs-panel:not(.gs-ghost) > * {
    grid-column: 1 / -1;
  }
  .gs-panel:not(.gs-ghost) > .gs-panel-title,
  .gs-panel:not(.gs-ghost) > .gs-panel-type {
    grid-column: 1;
  }
  .gs-panel:not(.gs-ghost) > .gs-panel-photos {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
  .gs-panel-photos[data-count="3"] .gs-panel-image:first-child {
    grid-row: auto;
  }
}
