/* Shared: Beckhoff sub-pages + overview enhancements */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #0c4a6e 70%, #164e63 100%);
  background-size: 400% 400%;
  animation: bhGradient 22s ease infinite;
  overflow-x: hidden;
}
@keyframes bhGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.bh-container { position: relative; z-index: 10; max-width: 900px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.bh-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.75rem; }
.bh-lang { display: flex; gap: 0.5rem; background: rgba(255,255,255,0.95); border-radius: 12px; padding: 0.25rem; }
.bh-lang button {
  border: none; background: transparent; padding: 0.5rem 1rem; border-radius: 8px;
  font-family: inherit; font-weight: 600; cursor: pointer; color: #334155;
}
.bh-lang button.active { background: linear-gradient(145deg, #0369a1, #0c4a6e); color: white; }
.bh-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.95); border-radius: 12px; padding: 0.65rem 1.1rem;
  font-weight: 600; color: #0f172a; text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}
.bh-header { text-align: center; margin-bottom: 1.5rem; }
.bh-logo { font-weight: 800; font-size: 1.35rem; letter-spacing: 0.06em; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.bh-header h1 { font-family: "Dancing Script", cursive; font-size: clamp(1.65rem, 5vw, 2.35rem); color: #fff; margin-top: 0.35rem; }
.bh-tag { color: rgba(255,255,255,0.9); font-size: 0.92rem; line-height: 1.55; max-width: 38em; margin: 0.5rem auto 0; }
.bh-official {
  display: inline-block; margin-top: 0.85rem; padding: 0.45rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,0.15); color: #e0f2fe; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.35);
}
.bh-official:hover { background: rgba(255,255,255,0.25); }
.bh-panel {
  background: rgba(255,255,255,0.97); border-radius: 18px; padding: 1.5rem 1.35rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2); margin-bottom: 1rem;
}
.bh-lead { color: #475569; font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.bh-section { margin-bottom: 1.35rem; padding-bottom: 1.25rem; border-bottom: 1px solid #e2e8f0; }
.bh-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.bh-section h2 { color: #0c4a6e; font-size: 1.02rem; margin-bottom: 0.5rem; }
.bh-section p { color: #475569; font-size: 0.86rem; line-height: 1.65; margin-bottom: 0.5rem; }
.bh-section ul { margin: 0.35rem 0 0; padding-left: 1.15rem; color: #334155; font-size: 0.84rem; line-height: 1.62; }
.bh-section li { margin-bottom: 0.3rem; }
.bh-note { font-size: 0.78rem; color: #64748b; line-height: 1.55; margin-top: 1rem; }
.bh-footer { text-align: center; color: rgba(255,255,255,0.88); font-size: 0.85rem; margin-top: 1.25rem; }

/* Overview: card detail links */
.product-card { position: relative; }
.card-detail {
  display: inline-block; margin-top: 0.65rem; font-size: 0.82rem; font-weight: 600;
  color: #0369a1; text-decoration: none;
}
.card-detail:hover { text-decoration: underline; }
.product-card h2 a { color: inherit; text-decoration: none; }
.product-card h2 a:hover { text-decoration: underline; }

.bh-table-wrap { overflow-x: auto; margin-top: 0.5rem; }
.bh-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.bh-table th, .bh-table td {
  border: 1px solid #e2e8f0; padding: 0.45rem 0.5rem; text-align: left;
}
.bh-table th { background: #f1f5f9; color: #0f172a; font-weight: 600; }
.bh-table td { color: #334155; }
.bh-table-compact { font-size: 0.72rem; }
.bh-table-compact th, .bh-table-compact td { padding: 0.32rem 0.4rem; }
.bh-table td.mono, .bh-table th.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.85em; }
.bh-details {
  margin: 0.65rem 0; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 0.45rem 0.65rem 0.65rem; background: #fafafa;
}
.bh-details summary {
  cursor: pointer; font-weight: 600; color: #0c4a6e; font-size: 0.88rem;
  list-style: none;
}
.bh-details summary::-webkit-details-marker { display: none; }
.bh-details[open] summary { margin-bottom: 0.5rem; }
.bh-appendix { margin-top: 1.25rem; padding-top: 1rem; border-top: 2px dashed #cbd5e1; }
.bh-appendix > h2 { font-size: 1.05rem; color: #0c4a6e; margin-bottom: 0.45rem; }
.bh-link-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.bh-link-row a {
  font-size: 0.78rem; padding: 0.35rem 0.6rem; border-radius: 8px;
  background: #e0f2fe; color: #0c4a6e; text-decoration: none; font-weight: 600;
}
.bh-link-row a:hover { background: #bae6fd; }
