/**
 * GrowMind marketing skin (getgrowmind.com only).
 * Loaded after app.css when is_marketing_host() — kontrol.in.rs untouched.
 */
html.gtm-html {
  font-size: 18px;
}
body.gtm-skin {
  --gtm-forest: #1c3d2e;
  --gtm-forest-deep: #12281e;
  --gtm-leaf: #3d7a4f;
  --gtm-cream: #f4efe6;
  --gtm-cream-2: #ebe4d7;
  --gtm-ink: #142019;
  --gtm-muted: #5c6b62;
  --gtm-white: #ffffff;
  --gtm-radius: 1.15rem;
  --gtm-pill: 999px;
  --gtm-font: system-ui, "Segoe UI", sans-serif;

  --bg: var(--gtm-cream);
  --card: var(--gtm-white);
  --text: var(--gtm-ink);
  --muted: var(--gtm-muted);
  --accent: var(--gtm-forest);
  --accent-hover: var(--gtm-forest-deep);
  --danger: #b42318;
  --border: rgba(28, 61, 46, 0.14);

  margin: 0;
  font-family: var(--gtm-font);
  color: var(--gtm-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(61, 122, 79, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(28, 61, 46, 0.08), transparent 50%),
    var(--gtm-cream);
  line-height: 1.5;
  min-height: 100vh;
}

body.gtm-skin a { color: var(--gtm-leaf); }
body.gtm-skin a:hover { color: var(--gtm-forest-deep); }

/* Topbar → GTM cream header */
body.gtm-skin .topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 61, 46, 0.1);
  padding-top: env(safe-area-inset-top);
}
body.gtm-skin .topbar-inner {
  max-width: 36rem;
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
  min-width: 0;
}
body.gtm-skin .brand { color: var(--gtm-ink); text-decoration: none; }
body.gtm-skin .brand:hover { text-decoration: none; color: var(--gtm-forest); }
body.gtm-skin .brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
body.gtm-skin .brand-tag { display: none; }
body.gtm-skin .topbar-link {
  color: var(--gtm-muted);
  font-weight: 600;
  font-size: 0.9rem;
}
body.gtm-skin .topbar-link:hover { color: var(--gtm-forest); }
body.gtm-skin .topbar-user { color: var(--gtm-muted); }
body.gtm-skin .topbar-login,
body.gtm-skin .btn.primary,
body.gtm-skin .btn.btn-sm.primary {
  background: var(--gtm-forest);
  border-color: var(--gtm-forest);
  color: var(--gtm-white);
  border-radius: var(--gtm-pill);
  font-weight: 600;
}
body.gtm-skin .btn.primary:hover,
body.gtm-skin .topbar-login:hover {
  background: var(--gtm-forest-deep);
  border-color: var(--gtm-forest-deep);
  color: var(--gtm-white);
}
body.gtm-skin .btn {
  border-radius: var(--gtm-pill);
  font-family: var(--gtm-font);
  font-weight: 600;
}
body.gtm-skin .nav-toggle {
  background: var(--gtm-white);
  border-color: rgba(28, 61, 46, 0.18);
  color: var(--gtm-ink);
}
body.gtm-skin .topbar-help {
  background: var(--gtm-white);
  border-color: rgba(28, 61, 46, 0.18);
  color: var(--gtm-ink);
}

/* Side nav */
body.gtm-skin #site-nav,
body.gtm-skin.nav-open #site-nav {
  background: var(--gtm-cream) !important;
  border-left: 1px solid rgba(28, 61, 46, 0.12) !important;
  color: var(--gtm-ink);
}
body.gtm-skin .site-nav-link { color: var(--gtm-ink); }
body.gtm-skin .site-nav-link:hover { background: rgba(28, 61, 46, 0.06); color: var(--gtm-forest); }
body.gtm-skin .site-nav-logout {
  background: var(--gtm-forest);
  color: #fff;
  border-radius: var(--gtm-pill);
}

/* Main */
body.gtm-skin main.container {
  max-width: 36rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  box-sizing: border-box;
}

body.gtm-skin .page-header h1,
body.gtm-skin .community-wrap > .page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  color: var(--gtm-forest-deep);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}
body.gtm-skin .muted { color: var(--gtm-muted); }

body.gtm-skin .narrow,
body.gtm-skin .account-wrap {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
body.gtm-skin .topbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}
body.gtm-skin .topbar-back {
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
  background: var(--gtm-forest);
  border-color: var(--gtm-forest);
  color: #fff;
}
body.gtm-skin .topbar-back:hover {
  background: var(--gtm-forest-deep);
  border-color: var(--gtm-forest-deep);
  color: #fff;
}
body.gtm-skin .topbar .lang-select-flag {
  display: none;
}
body.gtm-skin .topbar .lang-select {
  background: var(--gtm-white);
  color: var(--gtm-ink);
  border-color: rgba(28, 61, 46, 0.18);
  font-size: 15px;
  max-width: 12rem;
}
body.gtm-skin .card {
  background: var(--gtm-white);
  border: 1px solid rgba(28, 61, 46, 0.1);
  border-radius: var(--gtm-radius);
  box-shadow: 0 10px 28px rgba(18, 40, 30, 0.06);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}
body.gtm-skin .card h2 {
  color: var(--gtm-forest-deep);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

body.gtm-skin .alert-success {
  background: rgba(61, 122, 79, 0.12);
  border: 1px solid rgba(61, 122, 79, 0.35);
  color: var(--gtm-forest-deep);
  border-radius: 0.75rem;
}
body.gtm-skin .alert-error {
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.25);
  color: #7a1c14;
  border-radius: 0.75rem;
}

/* Forms — px + !important: Chrome input UA + autofill nem veszi a rem-et */
body.gtm-skin input,
body.gtm-skin textarea,
body.gtm-skin select,
body.gtm-skin input[type="email"],
body.gtm-skin input[type="password"],
body.gtm-skin input[type="text"],
body.gtm-skin input:-webkit-autofill {
  background: var(--gtm-cream);
  border: 1px solid rgba(28, 61, 46, 0.18);
  color: var(--gtm-ink);
  border-radius: 0.75rem;
  font: 600 19px/1.35 system-ui, "Segoe UI", sans-serif !important;
  padding: 9px 11px !important;
  min-height: 35px;
}
body.gtm-skin input::placeholder,
body.gtm-skin textarea::placeholder {
  color: #7a8a80;
  font-size: 17px !important;
  opacity: 1;
}
body.gtm-skin input:focus,
body.gtm-skin textarea:focus {
  outline: 2px solid rgba(28, 61, 46, 0.28);
  outline-offset: 1px;
  border-color: var(--gtm-leaf);
}
body.gtm-skin label {
  color: var(--gtm-forest-deep);
  font-weight: 600;
  font-size: 15px !important;
}
body.gtm-skin .card.narrow h1 {
  font-size: 28px !important;
}
body.gtm-skin .card.narrow p,
body.gtm-skin .card.narrow .muted,
body.gtm-skin .card.narrow .small {
  font-size: 15px !important;
}
body.gtm-skin .btn,
body.gtm-skin button.btn,
body.gtm-skin .btn.primary {
  font-size: 16px !important;
  padding: 11px 15px !important;
}
body.gtm-skin .brand-name { font-size: 19px !important; }
body.gtm-skin .topbar-link,
body.gtm-skin .topbar-login { font-size: 15px !important; }
body.gtm-skin .password-toggle-text { font-size: 13px !important; }
body.gtm-skin .alert-error,
body.gtm-skin .alert-success { font-size: 13px !important; }

/* Community gates — com-card look */
body.gtm-skin .community-gates {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  body.gtm-skin .community-gates { grid-template-columns: repeat(3, 1fr); }
}
body.gtm-skin .community-gate {
  background: var(--gtm-cream-2);
  border: 1px solid rgba(28, 61, 46, 0.1);
  border-radius: 1rem;
  padding: 1.1rem;
  min-height: 100%;
  box-shadow: none;
}
body.gtm-skin .community-gate .badge,
body.gtm-skin .badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: var(--gtm-pill);
  background: #1c6b45;
  color: #fff;
  border: 0;
}
body.gtm-skin .community-gate:nth-child(2) .badge { background: #1d5fad; }
body.gtm-skin .community-gate:nth-child(3) .badge { background: #2a6b4a; }
body.gtm-skin .community-gate strong {
  color: var(--gtm-forest-deep);
  font-size: 1.05rem;
  margin: 0.45rem 0 0.35rem;
}
body.gtm-skin .community-gate > p.muted {
  color: var(--gtm-muted);
  font-size: 1rem;
  line-height: 1.45;
}

/* Feed tips */
body.gtm-skin .community-tip {
  background: var(--gtm-cream-2);
  border-left: 3px solid var(--gtm-leaf);
  border-radius: 0 0.85rem 0.85rem 0;
  color: var(--gtm-ink);
}
body.gtm-skin .community-tip.is-seed {
  border-left-color: #8a9a90;
  background: rgba(28, 61, 46, 0.04);
}
body.gtm-skin .community-tip-body { font-size: 1.05rem; }
body.gtm-skin .community-tip-meta,
body.gtm-skin .community-wrap .small,
body.gtm-skin .community-foot {
  font-size: 1rem;
  color: var(--gtm-muted);
}
body.gtm-skin .community-foot a {
  color: var(--gtm-forest);
  font-weight: 600;
  font-size: 1.05rem;
}
body.gtm-skin .community-login-cta a { font-weight: 600; }

/* Auth / account cards on GTM */
body.gtm-skin .auth-card,
body.gtm-skin .login-card {
  background: var(--gtm-white);
  border-radius: var(--gtm-radius);
  border: 1px solid rgba(28, 61, 46, 0.1);
  box-shadow: 0 10px 28px rgba(18, 40, 30, 0.06);
}
