/* ============================================================
   "WHY ISN'T MY WEBSITE SHOWING UP ON GOOGLE?" (website-not-showing-on-google.html)
   Page-only pieces. Everything else comes from guides.css and polish.css.

     .ng-serp   the quick search: a search bar that types itself in, with
                the pages Google knows about underneath
     .ng-set    a settings card, led by the setting itself (a switch, a box,
                a segmented control or a button). The right position is the
                resting state (.is-fixed in the markup); the script takes it
                off and puts it back as the card arrives, so the control
                moves into place.
     .ng-maps   a street photo with a small search page laid over its edge:
                map results on top, websites underneath

   Motion is transform, opacity and colour only (script at the foot of the
   page), and none of it runs for people who prefer reduced motion.
   ============================================================ */

/* ---------- 1. The quick search */
.ng-wrap { display: grid; gap: clamp(2.25rem, 5vw, 3rem); margin-top: clamp(2rem, 5vw, 3.25rem); }
@media (min-width: 900px) {
  .ng-wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(3rem, 6vw, 5.5rem); }
}
.ng-serp {
  margin: 0;
  padding: clamp(1rem, 3vw, 1.6rem);
  border-radius: var(--r-xl);
  background: var(--linen);
  color: var(--ink);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .7);
}
.ng-bar {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1.15rem;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hair), 0 12px 24px -18px rgba(40, 24, 8, .45);
}
.ng-bar__ico { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.ng-q { display: flex; align-items: center; min-width: 0; min-height: 1.5em; overflow: hidden; white-space: nowrap; font-size: clamp(1rem, 3.6vw, 1.2rem); color: var(--ink); }
.ng-caret { flex: none; width: 2px; height: 1.15em; margin-left: 2px; background: var(--accent); opacity: 0; }
.ng-caret.is-typing { opacity: 1; }
.ng-count { margin: 1.1rem .35rem .35rem; font-size: .875rem; color: var(--ink-2); }
.ng-res { margin: 0; padding: 0; list-style: none; }
.ng-res li { display: grid; gap: .2rem; padding: 1rem .35rem; border-top: 1px solid var(--hair); }
.ng-res__url { font-size: .8125rem; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.ng-res__t { font-family: var(--display); font-size: clamp(1.25rem, 3.4vw, 1.5rem); line-height: 1.2; letter-spacing: -.01em; color: var(--accent-ink); }
.ng-res__d { display: block; width: 78%; height: .5rem; margin-top: .4rem; border-radius: 4px; background: rgba(20, 17, 13, .08); }
.ng-res li:nth-child(2) .ng-res__d { width: 64%; }
.ng-res li:nth-child(3) .ng-res__d { width: 70%; }
@media (min-width: 900px) { .ng-notes { gap: 1.9rem; } }

/* ---------- 2. The settings */
.ng-checks { display: grid; gap: clamp(1.25rem, 4vw, 2.5rem); margin-top: clamp(2rem, 5vw, 3.25rem); }
.ng-checks__photo {
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--sand);
  box-shadow: 0 30px 50px -36px rgba(40, 24, 8, .45);
}
.ng-checks__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
@media (min-width: 900px) {
  .ng-checks { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
  .ng-checks__photo { position: sticky; top: 6.5rem; aspect-ratio: 4 / 5; }
}
.ng-sets { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .ng-sets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ng-set {
  display: flex; flex-direction: column;
  padding: .9rem .9rem 1.6rem;
  border-radius: 1.6rem;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(20, 17, 13, .05), 0 22px 36px -30px rgba(40, 24, 8, .5);
}
.ng-set h3 { margin: 1.35rem .5rem 0; font-family: var(--display); font-size: 1.4rem; font-weight: 400; line-height: 1.2; letter-spacing: -.012em; color: var(--ink); }
.ng-set p { margin: .55rem .5rem 0; font-size: 1rem; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }

/* The setting itself, on a sand tile at the top of the card. */
.ng-ui {
  display: flex; flex-direction: column; justify-content: center; gap: .7rem;
  min-height: 8rem;
  padding: 1.1rem;
  border-radius: 1.05rem;
  background: var(--sand);
}
.ng-lab { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }

/* Search Console: the inspection bar and its button, then a tick. */
.ng-field {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem .9rem;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hair);
  font-size: .875rem; color: var(--ink-2);
}
.ng-field svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ng-req { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; }
.ng-req > span { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; font-weight: 600; }
.ng-req__a { padding: .55rem 1rem; border-radius: 999px; background: var(--ink); color: var(--linen); }
.ng-req__b { color: var(--accent-ink); opacity: 0; transform: translateX(-6px); transition: opacity .35s ease, transform .5s var(--glide); }
.ng-req__b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.is-fixed .ng-req__b { opacity: 1; transform: none; transition-delay: .25s; }

/* Wix: a switch that slides on. */
.ng-line {
  display: flex; align-items: center; justify-content: space-between; gap: .9rem;
  padding: .85rem .95rem;
  border-radius: .9rem;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hair);
  font-size: .9rem; line-height: 1.35; color: var(--ink);
}
.ng-switch { position: relative; flex: none; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: rgba(20, 17, 13, .22); transition: background-color .4s ease; }
.ng-switch i { position: absolute; top: .2rem; left: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .55s var(--glide); }
.is-fixed .ng-switch { background: var(--accent-ink); }
.is-fixed .ng-switch i { transform: translateX(1.1rem); }

/* Squarespace: the pill slides from Private across to Public. */
.ng-seg {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: .25rem;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hair);
}
.ng-seg span { position: relative; z-index: 1; padding: .55rem .15rem; text-align: center; font-size: .8125rem; font-weight: 500; color: var(--ink-2); transition: color .4s ease; }
.ng-seg__pill { position: absolute; top: .25rem; bottom: .25rem; left: .25rem; width: calc((100% - .5rem) / 3); border-radius: 999px; background: var(--ink); transform: translateX(100%); transition: transform .65s var(--glide); }
.ng-set:not(.is-fixed) .ng-seg span:nth-of-type(2),
.is-fixed .ng-seg span:nth-of-type(1) { color: var(--linen); }
.is-fixed .ng-seg__pill { transform: none; }

/* WordPress: the box is unticked. */
.ng-line--box { justify-content: flex-start; }
.ng-box { flex: none; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: .35rem; background: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent-ink); transition: background-color .35s ease, box-shadow .35s ease; }
.ng-box svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s ease, transform .45s var(--glide); }
.is-fixed .ng-box { background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(20, 17, 13, .35); }
.is-fixed .ng-box svg { opacity: 0; transform: scale(.4); }

/* ---------- 3. Maps and the normal results */
#maps { overflow-x: clip; }
.ng-maps { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 900px) { .ng-maps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 6rem); } }
.ng-maps__text > :first-child { margin-top: 0; }
.ng-maps__text .gd-p + .gd-p { margin-top: 1rem; }
.ng-maps__art { position: relative; }
.ng-maps__photo {
  width: 84%;
  margin: 0 0 0 auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sand);
  box-shadow: 0 30px 50px -36px rgba(40, 24, 8, .45);
}
.ng-maps__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ng-pack {
  position: absolute; left: 0; bottom: 7%;
  width: min(64%, 20rem);
  padding: 1.05rem 1.1rem .8rem;
  border-radius: 1.4rem;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(20, 17, 13, .05), 0 40px 70px -34px rgba(40, 24, 8, .6);
}
.ng-pack__k { margin: 0 0 .45rem; font-family: var(--mono); font-size: max(11px, .68rem); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.ng-pack ul + .ng-pack__k { margin-top: .95rem; }
.ng-pack ul { margin: 0; padding: 0; list-style: none; }
.ng-pack__map li { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; border-top: 1px solid var(--hair); }
.ng-pin { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #f3e1d6; }
.ng-pin svg { width: 17px; height: 17px; }
.ng-pin path { fill: var(--accent-ink); }
.ng-pin circle { fill: #f3e1d6; }
.ng-sk { flex: 1; display: grid; gap: .4rem; }
.ng-sk b { display: block; width: 74%; height: .5rem; border-radius: 4px; background: rgba(20, 17, 13, .14); }
.ng-stars { display: flex; gap: 2px; }
.ng-stars i { width: .6rem; height: .6rem; background: var(--accent); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.ng-pack__web li { display: grid; gap: .3rem; padding: .6rem 0; border-top: 1px solid var(--hair); }
.ng-pack__web .is-you { margin: 0 -.6rem; padding: .6rem; border-top-color: transparent; border-radius: .8rem; background: #fbeee6; }
.ng-pack .ng-res__url { font-size: .75rem; }
.ng-pack .ng-res__t { font-size: 1.1rem; }

/* The Search Console button gives a small press as its card settles. */
@media (prefers-reduced-motion: no-preference) {
  .is-fixed .ng-req__a { animation: ng-press .45s var(--glide); }
}
@keyframes ng-press { 40% { transform: scale(.93); } }
