/* Research / article / Architecture shell. Canonical routes and coordinates
 * remain renderer-owned; this module only releases legacy viewport traps. */
html:has(body[data-resource-page="true"]),
html body[data-template][data-resource-page="true"] {
  height: auto !important;
  min-height: 100dvh !important;
  max-height: none !important;
  overflow: visible !important;
}
html body[data-template][data-resource-page="true"] {
  display: block !important;
  --home-text: var(--text);
  --home-muted: var(--muted);
  --home-line: var(--line);
  --home-card: var(--panel);
  --home-link: var(--system);
  --home-action: var(--action);
  --home-guard: var(--guard);
}
html body[data-template][data-resource-page="true"] > header.site {
  position: relative !important;
  height: auto !important;
}
html body[data-template][data-resource-page="true"] > .wrap {
  display: block !important;
  width: 100%;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0 clamp(12px, 2vw, 32px) !important;
  overflow: visible !important;
}
html body[data-template][data-resource-page="true"] .context-bar {
  position: relative !important;
  display: grid !important;
  grid-template: auto auto / minmax(0, 1fr) !important;
  height: auto !important;
  min-height: 0 !important;
  gap: 8px;
  padding-block: 8px;
  overflow: visible !important;
}
html body[data-template][data-resource-page="true"] .route-context {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  height: auto !important;
  min-height: 0;
  padding: 8px 12px;
  overflow: visible !important;
}
html body[data-template][data-resource-page="true"] .route-context :is(.breadcrumb, .route-context-meta) {
  min-width: 0;
  height: auto;
  max-width: none;
  flex-wrap: wrap;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}
html body[data-template][data-resource-page="true"] .breadcrumb { flex: 1 1 440px !important; }
html body[data-template][data-resource-page="true"] .route-context-meta { flex: 0 1 auto !important; }
html body[data-template][data-resource-page="true"] .context-local-nav {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)) !important;
  height: auto !important;
  min-height: 0;
  padding: 0;
  gap: 8px;
  overflow: visible !important;
}
html body[data-template][data-resource-page="true"] .context-local-nav::before {
  content: none !important;
  display: none !important;
}
html body[data-template][data-resource-page="true"] .local-nav-link {
  min-width: 0;
  min-height: 44px;
  height: auto !important;
  padding: 10px 14px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: .875rem;
}
html body[data-template][data-resource-page="true"] .local-nav-link span { font-size: .875rem; }
html body[data-template][data-resource-page="true"] .context-bar::after { display: none !important; }
html body[data-template][data-resource-page="true"] main.content-field {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 20px 0 32px !important;
}
html body[data-template][data-resource-page="true"] .page-head {
  min-width: 0;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 24px !important;
  overflow: visible !important;
}
html body[data-template][data-resource-page="true"] .page-head :is(h1, .lede) {
  display: block !important;
  max-height: none !important;
  -webkit-line-clamp: unset !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
}
html body[data-template][data-resource-page="true"] > footer.product-footer {
  position: relative !important;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 24px clamp(12px, 2vw, 32px) !important;
  overflow: visible !important;
}
@media (max-width: 600px) {
  html body[data-template][data-resource-page="true"] .context-local-nav { grid-template-columns: minmax(0, 1fr) !important; }
}
