/* Gateway/subdomain Pencilvania overlay — pairs with css/sketch.css */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.font-bold { font-weight: 800; }
.text-xl { font-size: 1.25rem; }
.text-base { font-size: 1rem; }

body.gw-page main.container { padding-bottom: 3.5rem; }

@media (max-width: 1180px) {
  body.gw-page .sketch-nav-desktop { display: none !important; }
  body.gw-page .btn-mobile-hamburger { display: inline-flex !important; }
}
@media (max-width: 1360px) {
  body.gw-page .btn-draw-toggle .btn-label { display: none; }
}

.brand-text .brand-name {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.gw-ping {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  padding: 0.28rem 0.65rem;
  border: 2px dashed var(--pencil-ink);
  border-radius: 999px;
  background: var(--accent-mint);
  color: #064e3b !important;
}

.page-hero { text-align: center; padding: 2.2rem 0 1.4rem; }
.page-hero .hero-title {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  margin-bottom: 0.75rem;
}
.page-hero .hero-subtitle {
  max-width: 720px;
  margin: 0 auto 1.1rem;
  color: var(--pencil-soft);
  font-weight: 600;
  line-height: 1.9;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.feature-grid,
.inner-grid-2,
.inner-grid-3,
.inner-grid-4 {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}
.inner-grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.inner-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.inner-grid-4,
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.stat-card,
.feature-card {
  background: var(--paper-bg-day);
  border: 2.5px solid var(--pencil-ink);
  border-radius: var(--wobble-2);
  box-shadow: 3px 3px 0 var(--pencil-ink);
  padding: 1rem 0.85rem;
  text-align: center;
}
.stat-card .ico,
.feature-card .ico { font-size: 1.6rem; display: block; margin-bottom: 0.35rem; }
.stat-card strong,
.feature-card strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--pencil-ink);
  margin-bottom: 0.2rem;
}
.stat-card span,
.feature-card span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pencil-soft);
}

.notebook-card.inner-card { padding: 1.4rem 1.3rem 1.5rem; margin-bottom: 1.25rem; }
.inner-card h2, .inner-card h3 {
  color: var(--pencil-ink);
  font-weight: 900;
  margin: 0 0 0.55rem;
  line-height: 1.5;
}
.inner-card p, .inner-card li {
  color: var(--pencil-soft);
  font-weight: 600;
  line-height: 1.85;
  font-size: 0.95rem;
}

.tabs-scroll-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.guide-tab-content { display: block; }
.guide-tab-content.hidden { display: none !important; }

.code-block {
  background: var(--paper-bg-day);
  border: 2.5px solid var(--pencil-ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--pencil-ink);
  overflow: hidden;
  margin: 1rem 0 1.25rem;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.9rem;
  background: #ffe082 !important;
  border-bottom: 2px dashed #1a0f30;
  font-weight: 800;
  font-size: 0.85rem;
  color: #1a0f30 !important;
}
html.night .code-header,
html.night .code-header span,
html.night .code-header button {
  background: #ffe082 !important;
  color: #1a0f30 !important;
  -webkit-text-fill-color: #1a0f30 !important;
}
.code-block pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--pencil-ink);
  background: rgba(var(--pencil-ink-rgb), 0.04);
  white-space: pre;
  min-height: 80px;
}
.code-block pre code,
.code-block code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-weight: 500;
}
.mono, code.mono, .gateway-host {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  direction: ltr;
  text-align: left;
}
p code, li code, .inner-card code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.86em;
  font-weight: 700;
  background: rgba(var(--pencil-ink-rgb), 0.08);
  border: 1px dashed rgba(var(--pencil-ink-rgb), 0.35);
  border-radius: 5px;
  padding: 0.05rem 0.35rem;
  color: var(--pencil-ink);
}

.copy-btn, .btn-copy {
  font-family: var(--font-persian);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.28rem 0.7rem;
  border: 2px solid #1a0f30;
  border-radius: var(--wobble-2);
  background: #9be5c4 !important;
  color: #064e3b !important;
  cursor: pointer;
  box-shadow: 2px 2px 0 #1a0f30;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.copy-btn, .copy-btn span, .btn-copy, .btn-copy span,
html.night body.sketch-theme .copy-btn,
html.night body.sketch-theme .btn-copy {
  color: #064e3b !important;
  -webkit-text-fill-color: #064e3b !important;
}

body.gw-page input[type="text"],
body.gw-page input[type="password"] {
  width: 100%;
  font-family: inherit;
  font-weight: 700;
  padding: 0.7rem 0.9rem;
  border: 2.5px solid var(--pencil-ink);
  border-radius: 10px;
  background: var(--paper-bg-day);
  color: var(--pencil-ink);
  box-sizing: border-box;
}
body.gw-page input::placeholder { color: var(--pencil-soft); opacity: 0.8; }

.url-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 2.5px dashed var(--pencil-ink);
  border-radius: 12px;
  background: rgba(var(--pencil-ink-rgb), 0.04);
  margin-bottom: 1rem;
}
.url-box .label { font-size: 0.78rem; font-weight: 800; color: var(--pencil-soft); display: block; margin-bottom: 0.25rem; }
.url-box .value { color: var(--accent-coral); font-weight: 800; word-break: break-all; }

.note-box {
  padding: 0.8rem 1rem;
  border: 2px solid var(--pencil-ink);
  border-radius: 10px;
  background: var(--accent-yellow);
  color: #1a0f30 !important;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.note-box, .note-box * { color: #1a0f30 !important; }
.note-mint {
  background: var(--accent-mint);
  color: #064e3b !important;
}
.note-mint, .note-mint * { color: #064e3b !important; }

.sandbox-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.25rem;
}
@media (max-width: 900px) { .sandbox-grid { grid-template-columns: 1fr; } }

.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  text-align: center;
}

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--paper-bg-day);
  border: 2.5px solid var(--pencil-ink);
  color: var(--pencil-ink);
  padding: 0.7rem 1.3rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--pencil-ink);
  z-index: 4000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.shield-out {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 2.5px solid var(--pencil-ink);
  border-radius: 12px;
  background: var(--accent-mint);
}
.shield-out, .shield-out * { color: #064e3b !important; }
.shield-out .mono { word-break: break-all; }

.field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--pencil-ink);
  margin-bottom: 0.4rem;
}
