/* ════════════════════════════════════════════════════════════════
   TRWALAB – Gate Wall & White Paper List Styles
   Loaded on every page (tiny file), only visible when gate shows.
   ════════════════════════════════════════════════════════════════ */

/* ── Post teaser (always visible excerpt) ─────────────────────── */
.post-teaser {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  border-left: 3px solid var(--cyan);
  padding-left: 18px;
  margin-bottom: 36px;
}

/* ── Gate welcome bar (when session is active) ────────────────── */
.gate-welcome {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #edfcf9;
  border: 1px solid #a7f0e5;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #087443;
  margin-bottom: 28px;
}
.gate-welcome svg { flex-shrink: 0; stroke: #087443; }

/* ── Gate wall card ───────────────────────────────────────────── */
.gate-wall {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(6,21,38,.10);
  padding: 48px 44px;
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.gate-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.gate-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
}

.gate-title {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.6px;
  color: #061526;
  margin: 0 0 12px;
}

.gate-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

.gate-error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #b42318;
  margin-bottom: 18px;
}

/* ── Gate form fields ─────────────────────────────────────────── */
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gate-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gate-form input[type="text"],
.gate-form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: 15px Arial, sans-serif;
  background: #f9fbfd;
  transition: border-color .18s;
  box-sizing: border-box;
}
.gate-form input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

/* ── Gate submit button ───────────────────────────────────────── */
.gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 900;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  background: var(--orange);
  color: #061526;
  width: 100%;
  margin-top: 4px;
  transition: opacity .18s, transform .12s;
}
.gate-btn:hover { opacity: .88; transform: translateY(-1px); }
.gate-btn svg { transition: transform .18s; }
.gate-btn:hover svg { transform: translateX(3px); }

/* ── Gate privacy note ────────────────────────────────────────── */
.gate-note {
  font-size: 12px;
  color: #94a3b8;
  margin: 4px 0 0;
  line-height: 1.5;
}

/* ── Full post body ───────────────────────────────────────────── */
.post-body {
  font-size: 16px;
  line-height: 1.75;
  color: #2d3748;
}
.post-body h2, .post-body h3 {
  color: #061526;
  margin-top: 36px;
}
.post-body a { color: var(--blue); text-decoration: underline; }
.post-body img { max-width: 100%; border-radius: 10px; margin: 20px 0; }
.post-body blockquote {
  border-left: 3px solid var(--cyan);
  padding-left: 18px;
  color: var(--muted);
  font-style: italic;
  margin: 24px 0;
}

/* ── PDF download button (add class="pdf-btn" to links in editor) */
.post-body .pdf-btn,
.post-body a[href$=".pdf"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef6fd;
  border: 1.5px solid #d4e8f7;
  color: #07598d;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 850;
  font-size: 14px;
  text-decoration: none;
  margin: 18px 0;
  transition: background .18s;
}
.post-body a[href$=".pdf"]:hover { background: #ddf0fb; }

/* ── Post navigation ──────────────────────────────────────────── */
.post-nav {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.post-nav .nav-links { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.post-nav a { font-weight: 800; font-size: 14px; color: var(--blue); text-decoration: none; }
.post-nav .nav-label {
  display: block;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 2px;
}

/* ════════════════════════════════════════════════════════════════
   WHITE PAPER LIST (Case Studies page)
   ════════════════════════════════════════════════════════════════ */
.wp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(6,21,38,.06);
}

.wp-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.wp-item:last-child { border-bottom: none; }
.wp-item:hover { background: #f4f9fe; }
.wp-item:hover .wp-arrow { color: var(--blue); transform: translateX(4px); }

.wp-num {
  font-size: 12px;
  font-weight: 950;
  color: var(--cyan);
  min-width: 26px;
  letter-spacing: 0.5px;
}

.wp-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wp-title {
  font-size: 15px;
  font-weight: 800;
  color: #0b1728;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wp-item:hover .wp-title { color: var(--blue); }

.wp-date {
  font-size: 12px;
  color: var(--muted);
}

.wp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef6fd;
  border: 1px solid #d4e8f7;
  color: #07598d;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  flex-shrink: 0;
}

.wp-arrow {
  color: var(--muted);
  flex-shrink: 0;
  transition: color .15s, transform .18s;
}

@media (max-width: 600px) {
  .gate-wall { padding: 32px 22px; }
  .wp-badge  { display: none; }
  .wp-item   { padding: 16px; gap: 12px; }
}
