/* Google Account guide additions — built on the Reputifly docs system. */

.google-guide-main { width: min(100% - 32px, 980px); }

.before-list--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.before-list--three .before-item { align-items: start; }
.before-list--three .before-icon { margin-top: 2px; }

.account-steps { display: grid; gap: 14px; }
.account-step { overflow: hidden; }
.account-step__body {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 22px 22px 18px;
}
.account-step__body h3 { margin: 5px 0 6px; font-size: 18px; line-height: 1.35; }
.account-step__body p { margin: 0; color: var(--color-ink-2); line-height: 1.65; }
.account-step__body a { font-weight: 700; }

.step-action {
  width: auto;
  min-height: 50px;
  margin: 0 22px 18px 76px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.step-action:hover { text-decoration: none; transform: translateY(-1px); }
.step-action:focus-visible { outline: 3px solid rgba(10, 122, 255, .28); outline-offset: 2px; }
.step-action--primary { color: #fff; background: var(--color-primary); box-shadow: 0 8px 20px rgba(10, 122, 255, .18); }
.step-action--primary:hover { color: #fff; background: var(--color-primary-active); }
.step-action--secondary { color: var(--color-ink); background: #fff; border-color: var(--color-line-2); }
.step-action--secondary:hover { color: var(--color-primary-active); border-color: #b8d5ff; box-shadow: var(--shadow-xs); }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 22px 22px 76px;
}
.shot-grid--single { grid-template-columns: minmax(0, 1fr); }
.account-shot {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-line-2);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.shot-link {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #202124;
  color: inherit;
  cursor: zoom-in;
  text-align: initial;
}
.shot-link:hover { text-decoration: none; }
.shot-link:focus-visible { outline: 3px solid var(--color-primary); outline-offset: -3px; }
.shot-media { display: block; overflow: hidden; background: #202124; }
.shot-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3456 / 1992;
  object-fit: contain;
  background: #202124;
}
.shot-zoom {
  position: absolute;
  right: 9px;
  bottom: 9px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 10, .8);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.account-shot figcaption {
  min-height: 48px;
  margin: 0;
  padding: 11px 13px;
  box-sizing: border-box;
  border-top: 1px solid var(--color-line-2);
  color: var(--color-muted);
  background: #fff;
  font-size: 11px;
  line-height: 1.5;
}
.account-shot figcaption strong { color: var(--color-ink-2); }

.step-note {
  margin-top: 13px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.55;
}
.step-note--neutral { color: var(--color-ink-2); background: var(--color-surface-2); border: 1px solid var(--color-line); }
.step-note--employee { color: #724b00; background: #fff8e8; border: 1px solid #ffe1a3; }
.step-note--full { margin: 0 22px 22px; }

.password-split {
  padding: 16px;
  border: 1px solid #cfe4ff;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
}
.password-split--full { margin: 0 22px 22px; }
.password-split > div > strong { display: block; margin: 0 0 3px; color: var(--color-primary-active); font-size: 14px; }
.password-split > div > span { display: block; color: var(--color-ink-2); font-size: 12px; line-height: 1.55; }
.next-guide-link { display: inline-block; margin-top: 15px; font-weight: 700; }

.image-lightbox {
  width: min(96vw, 1200px);
  max-width: none;
  height: min(94dvh, 920px);
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--color-ink);
}
.image-lightbox::backdrop { background: rgba(4, 12, 24, .78); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.lightbox-panel {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
}
.lightbox-toolbar {
  min-height: 58px;
  padding: 8px 10px 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--color-line);
}
.lightbox-toolbar > strong { font-size: 14px; }
.lightbox-controls { display: flex; align-items: center; gap: 6px; }
.lightbox-controls button {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--color-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.lightbox-controls button:hover { background: var(--color-surface-2); }
.lightbox-controls button:focus-visible { outline: 3px solid rgba(10, 122, 255, .28); outline-offset: 1px; }
.lightbox-controls .lightbox-zoom-level { min-width: 64px; font-size: 12px; }
.lightbox-controls .lightbox-close { margin-left: 4px; color: #fff; background: var(--color-ink); border-color: var(--color-ink); }
.lightbox-controls .lightbox-close:hover { background: #000; }
.lightbox-stage {
  min-width: 0;
  min-height: 220px;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  background: #202124;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
}
.lightbox-stage img {
  width: 100%;
  max-width: none;
  height: auto;
  flex: 0 0 auto;
  display: block;
  margin: auto;
  user-select: none;
  transition: width .14s ease;
}
.lightbox-caption { min-height: 48px; margin: 0; padding: 13px 18px; border-top: 1px solid var(--color-line); color: var(--color-ink-2); font-size: 12px; line-height: 1.5; }

@media (max-width: 760px) {
  .before-list--three { grid-template-columns: 1fr; gap: 14px; }
  .google-guide-main { width: min(100% - 28px, 980px); }
  .step-action { min-height: 48px; margin: 0 14px 16px; padding-inline: 14px; }
  .shot-grid { grid-template-columns: 1fr; padding: 0 14px 16px; gap: 14px; }
  .account-shot { border-radius: 13px; }
  .shot-media {
    position: relative;
    height: auto;
    aspect-ratio: 2.18 / 1;
  }
  .shot-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--shot-x, 50%) var(--shot-y, 50%);
    transform: scale(var(--shot-scale, 1.18));
  }
  .shot-crop--name { --shot-scale: 1.24; --shot-x: 52%; --shot-y: 50%; }
  .shot-crop--basic { --shot-scale: 1.24; --shot-x: 52%; --shot-y: 50%; }
  .shot-crop--existing { --shot-scale: 1.16; --shot-x: 50%; --shot-y: 54%; }
  .shot-crop--work-email { --shot-scale: 1.22; --shot-x: 56%; --shot-y: 50%; }
  .shot-crop--webmail { --shot-scale: 1.24; --shot-x: 52%; --shot-y: 50%; }
  .shot-crop--email-code { --shot-scale: 1.22; --shot-x: 55%; --shot-y: 50%; }
  .shot-crop--password { --shot-scale: 1.24; --shot-x: 54%; --shot-y: 52%; }
  .shot-crop--phone { --shot-scale: 1.22; --shot-x: 55%; --shot-y: 52%; }
  .shot-crop--sms { --shot-scale: 1.24; --shot-x: 53%; --shot-y: 50%; }
  .shot-crop--ready { --shot-scale: 1.14; --shot-x: 50%; --shot-y: 50%; }
  .shot-zoom { min-height: 29px; right: 7px; bottom: 7px; padding-inline: 9px; font-size: 9px; }
  .account-shot figcaption { min-height: 45px; padding: 10px 11px; font-size: 10px; }
  .step-note--full, .password-split--full { margin: 0 14px 16px; }

  .image-lightbox { width: calc(100vw - 16px); height: calc(100dvh - 16px); }
  .lightbox-toolbar { min-height: 54px; padding-left: 12px; }
  .lightbox-toolbar > strong { display: none; }
  .lightbox-controls { width: 100%; justify-content: flex-end; }
  .lightbox-controls button { min-width: 42px; height: 42px; }
  .lightbox-controls .lightbox-zoom-level { min-width: 62px; }
}

@media (max-width: 470px) {
  .account-step__body { grid-template-columns: 34px minmax(0, 1fr); gap: 11px; padding: 16px 14px 14px; }
  .account-step__body h3 { margin-top: 4px; font-size: 16px; }
  .account-step__body p { font-size: 13px; }
  .password-split { padding: 13px; }
  .password-split > div > strong { font-size: 13px; }
  .password-split > div > span { font-size: 11px; }
  .before-card { padding: 16px 14px; }
  .lightbox-caption { padding: 11px 13px; font-size: 11px; }
}

@media print {
  .step-action, .shot-zoom, .image-lightbox { display: none; }
  .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-grid--single { grid-template-columns: 1fr; }
}
