/* information.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f2f5;
  color: #1a1a1a;
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: #1a1a2e;
  color: white;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.back-btn {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s;
  flex-shrink: 0;
}
.back-btn:hover { color: white; }

header h1 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Header auth ── */
.header-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  font-size: 0.82rem;
}

.header-auth-email {
  color: rgba(255,255,255,0.7);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-auth a, .header-auth button {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.header-auth a:hover, .header-auth button:hover { background: rgba(255,255,255,0.22); }

/* ── Lock Overlay ── */
#lockOverlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(240,242,245,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  max-width: 420px;
  width: 90%;
}
.lock-icon  { font-size: 2.5rem; margin-bottom: 1rem; }
.lock-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: #1a1a2e; }
.lock-body  { font-size: 0.88rem; color: #555; margin-bottom: 1.5rem; line-height: 1.6; }
.lock-btn-sub {
  display: inline-block;
  background: #2e7d32;
  color: white;
  padding: 0.65rem 1.75rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}
.lock-hint { margin-top: 0.85rem; font-size: 0.82rem; color: #aaa; }

/* ── Main layout ── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ── Sections ── */
.info-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 8px rgba(0,0,0,0.04);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.info-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 1rem;
}

/* ── Variable sub-sections ── */
.info-subsection {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f2f5;
}
.info-subsection:first-of-type {
  margin-top: 0.5rem;
}

.info-subsection-title {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4a6fa5;
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.15s;
}
.info-subsection-title:hover { color: #2a4a8a; text-decoration: underline; }

/* ── Chips ── */
.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.info-chip {
  display: inline-block;
  background: #f0f4ff;
  color: #2a4a8a;
  border: 1px solid #c8d8f8;
  border-radius: 5px;
  padding: 0.35rem 0.85rem;
  font-size: 0.84rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.info-chip:hover {
  background: #dce8ff;
  border-color: #4a6fa5;
}

/* Gate chips: compact numbered squares */
.info-chips-gates .info-chip {
  width: 2.6rem;
  text-align: center;
  padding: 0.35rem 0;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  header { padding: 1rem; }
  main   { padding: 1rem; }
  .header-auth-email { display: none; }
  .info-chips-gates .info-chip { width: 2.4rem; font-size: 0.78rem; }
}
