/* Ajustes do template LabHD: cabeçalho, selo e temas sem navegação lateral. */
.shell { display: block; min-height: 100vh; }
.shell > main { max-width: 1280px; margin: auto; padding: 32px; }
.labhd-masthead {
  max-width: 1280px; margin: auto; padding: 24px 32px;
  display: flex; align-items: center; gap: 28px;
  border-bottom: 1px solid var(--border);
}
.labhd-masthead .brand { margin: 0; color: var(--ink); flex: 1; }
.labhd-masthead .brand small { display: block; color: var(--muted); }
.labhd-masthead .brand img { width: 56px; height: 56px; }
.series-seal {
  display: grid; gap: 2px; padding: 9px 14px; flex-shrink: 0;
  border: 1px solid var(--ochre); border-radius: 5px;
  background: var(--soft); color: var(--link);
  font-size: 13px; line-height: 1.3; letter-spacing: .12em;
}
.series-seal strong { font-weight: 750; }
.labhd-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--border);
  border-radius: 5px; background: var(--surface); text-decoration: none;
}
.social-link:hover { background: var(--soft); }
.catalog-link { font-size: 14px; margin-right: 4px; }
#themes { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; overflow: visible; }
#themes button {
  width: auto; display: inline-flex; gap: 8px; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 5px;
  background: var(--surface); color: var(--muted); font-size: 14px;
  white-space: normal; text-align: left;
}
#themes button:hover { background: var(--soft); color: var(--ink); }
#themes button[aria-pressed=true] {
  border: 1px solid var(--ochre); background: var(--soft); color: var(--link);
}
#themes .nav-count { color: var(--muted); font-size: 12px; }
.skip { left: 16px; }
footer { align-items: center; }
@media (max-width: 700px) {
  .labhd-masthead { padding: 16px; gap: 16px; flex-wrap: wrap; }
  .labhd-masthead .brand { flex: 1 1 180px; }
  .labhd-masthead .brand img { width: 46px; height: 46px; }
  .labhd-masthead > .labhd-links { width: 100%; }
  .shell > main { padding: 24px 16px; }
  .series-seal { padding: 8px 10px; font-size: 11px; }
  #themes { padding-bottom: 0; }
  #themes button { flex: 1 1 140px; flex-shrink: 1; }
  #themes .nav-count { display: inline; }
  footer { align-items: flex-start; }
}

.series-seal-image { display: block; width: 112px; height: auto; flex-shrink: 0; border-radius: 5px; }
@media (max-width: 700px) { .series-seal-image { width: 88px; } }
