/* Standalone GA4 checker: a narrow, centered card. */
body.page-ga4check main {
  max-width: none;
}
body.page-ga4check footer {
  text-align: center;
}
.ga4check {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.ga4check h1 {
  margin: 8px 0 28px;
}
.ga4check form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}
.ga4check label {
  margin: 0 0 6px;
}
.ga4check button[type="submit"] {
  width: 100%;
  margin-top: 16px;
  background: #000;
}
.ga4check button[type="submit"]:hover {
  background: #1f3a2e;
}
#ga4check-output {
  margin-top: 24px;
}
#ga4check-output.has-check {
  min-height: 28rem;
}

#ga4check-face {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 0;
  margin: 0;
  overflow: hidden;
}
#ga4check-result.is-busy #ga4check-face,
#ga4check-result.has-result #ga4check-face {
  height: 112px;
  margin: 0 0 18px;
}

.ga4check-svg {
  display: none;
  width: 112px;
  height: 112px;
  color: var(--ink, #000);
}
#ga4check-face[data-result="found"] .ga4check-svg[data-kind="found"],
#ga4check-face[data-result="gtm_only"] .ga4check-svg[data-kind="gtm_only"],
#ga4check-face[data-result="not_found"] .ga4check-svg[data-kind="not_found"] {
  display: block;
  animation: ga4check-fade 320ms ease-out;
}
@keyframes ga4check-fade {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #ga4check-face[data-result] .ga4check-svg { animation: none; }
}

#ga4check-message {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 10px;
  min-height: 1.25em;
}
#ga4check-message.is-status {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--mute, #6e6259);
  letter-spacing: 0;
}
#ga4check-result.has-result #ga4check-message {
  margin-bottom: 0;
}
#ga4check-caveat {
  margin: 0;
  font-style: italic;
}
#ga4check-offer,
#ga4check-article-offer p {
  margin: 0;
  font-size: 1.1rem;
}
#ga4check-article-back,
#ga4check-signup,
#ga4check-start {
  display: inline-block;
  margin-top: 16px;
  min-height: 44px;
  padding: 10px 22px;
  background: #000;
  color: #fff;
  border-radius: 4px;
}
#ga4check-article-back:hover,
#ga4check-signup:hover,
#ga4check-start:hover {
  background: #1f3a2e;
  text-decoration: none;
}
#ga4check-article-offer .fine {
  margin-top: 16px;
  color: var(--mute, #6e6259);
  font-size: 0.875rem;
  font-style: italic;
}
#ga4check-pitch {
  margin-top: 28px;
  padding: 20px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
}
#ga4check-ways {
  margin-top: 28px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
#ga4check-ways h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}
#ga4check-ways h3 {
  margin: 12px 0 4px;
  font-size: 1.1rem;
}
#ga4check-ways p {
  margin: 0;
}
#ga4check-google {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  text-decoration: underline;
}
#ga4check-back:not([hidden]) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 12px;
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .ga4check h1 { font-size: 1.7rem; margin-bottom: 22px; }
  #ga4check-message { font-size: 1.35rem; }
  #ga4check-output.has-check { min-height: 30rem; }
}
