/* Tapestry — canonical unboxed page titles.
   This file is intentionally loaded last. Title headings are not cards, plaques,
   windows, or framed components. Page content may still use panels below them. */

/* Remove the recurring inset outline that has repeatedly returned through
   shared museum-panel styling. */
.museum-panel::after{
  content:none!important;
  display:none!important;
  border:0!important;
  box-shadow:none!important;
}

/* Canonical category and record-workspace title authorities. */
:is(
  .today-anchor-title,
  .today-hero,
  .family-hero,
  .family-child-header,
  .homebase-title-card,
  .home-hero,
  .household-hero,
  .household-archive-toolbar,
  .people-overview-title-card,
  .people-hero,
  .money-overview-title-card,
  .money-hero,
  .library-overview-title-card,
  .lifestyle-overview-title-card,
  .lifehub-hero,
  .legacy-overview-title-card,
  .legacy-hero,
  .system-hero,
  .steward-hero,
  .maintenance-hero,
  .daybook-hero
){
  border:0!important;
  outline:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}

:is(
  .today-anchor-title,
  .today-hero,
  .family-hero,
  .family-child-header,
  .homebase-title-card,
  .home-hero,
  .household-hero,
  .household-archive-toolbar,
  .people-overview-title-card,
  .people-hero,
  .money-overview-title-card,
  .money-hero,
  .library-overview-title-card,
  .lifestyle-overview-title-card,
  .lifehub-hero,
  .legacy-overview-title-card,
  .legacy-hero,
  .system-hero,
  .steward-hero,
  .maintenance-hero,
  .daybook-hero
)::before,
:is(
  .today-anchor-title,
  .today-hero,
  .family-hero,
  .family-child-header,
  .homebase-title-card,
  .home-hero,
  .household-hero,
  .household-archive-toolbar,
  .people-overview-title-card,
  .people-hero,
  .money-overview-title-card,
  .money-hero,
  .library-overview-title-card,
  .lifestyle-overview-title-card,
  .lifehub-hero,
  .legacy-overview-title-card,
  .legacy-hero,
  .system-hero,
  .steward-hero,
  .maintenance-hero,
  .daybook-hero
)::after{
  content:none!important;
  display:none!important;
  border:0!important;
  box-shadow:none!important;
}

/* Nested title artwork remains decorative, never another framed title box. */
:is(
  .today-anchor-art,
  .homebase-title-art,
  .money-overview-title-art,
  .library-overview-title-art,
  .lifestyle-overview-hero-art,
  .legacy-overview-title-art,
  .people-overview-title-art
){
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* The standard record workspace used to reintroduce the title box through the
   shared archive-panel class. This specific authority keeps the heading open. */
.standard-record-workspace .household-archive-toolbar{
  padding:8px 0 12px!important;
  min-height:0!important;
}

/* Keep spacing without reconstructing a box around the heading. */
:is(.home-hero,.people-hero,.money-hero,.lifehub-hero,.legacy-hero,.system-hero,.steward-hero,.maintenance-hero,.daybook-hero,.family-child-header){
  padding-left:0!important;
  padding-right:0!important;
}


/* FINAL TITLE-FRAME KILL SWITCH
   The application has historically allowed theme/studio frame residue to reach
   page-title headings. This rule deliberately sits at the end of the final
   stylesheet and removes every CSS mechanism capable of painting that frame. */
html body :is(main.workspace,.tapestry-page-surface) :is(
  .today-anchor-title,
  .family-hero,.family-child-header,
  .homebase-title-card,.home-hero,
  .household-hero,.household-archive-toolbar,
  .people-overview-title-card,.people-hero,
  .money-overview-title-card,.money-hero,
  .library-overview-title-card,
  .lifestyle-overview-title-card,.lifehub-hero,
  .legacy-overview-title-card,.legacy-hero,
  .system-hero,.steward-hero,.maintenance-hero,.daybook-hero,
  .workspace-hero,.record-book-hero,.collection-hero,.page-hero
) h1,
html body :is(main.workspace,.tapestry-page-surface) > h1,
html body .standard-record-workspace .household-archive-toolbar h1{
  border:0!important;
  border-width:0!important;
  border-style:none!important;
  border-color:transparent!important;
  border-image:none!important;
  border-image-source:none!important;
  outline:0!important;
  outline-width:0!important;
  outline-offset:0!important;
  box-shadow:none!important;
  -webkit-box-shadow:none!important;
  background:transparent!important;
  background-image:none!important;
  filter:none!important;
  backdrop-filter:none!important;
  clip-path:none!important;
  text-decoration:none!important;
}
html body :is(main.workspace,.tapestry-page-surface) :is(
  .today-anchor-title,
  .family-hero,.family-child-header,
  .homebase-title-card,.home-hero,
  .household-hero,.household-archive-toolbar,
  .people-overview-title-card,.people-hero,
  .money-overview-title-card,.money-hero,
  .library-overview-title-card,
  .lifestyle-overview-title-card,.lifehub-hero,
  .legacy-overview-title-card,.legacy-hero,
  .system-hero,.steward-hero,.maintenance-hero,.daybook-hero,
  .workspace-hero,.record-book-hero,.collection-hero,.page-hero
) h1::before,
html body :is(main.workspace,.tapestry-page-surface) :is(
  .today-anchor-title,
  .family-hero,.family-child-header,
  .homebase-title-card,.home-hero,
  .household-hero,.household-archive-toolbar,
  .people-overview-title-card,.people-hero,
  .money-overview-title-card,.money-hero,
  .library-overview-title-card,
  .lifestyle-overview-title-card,.lifehub-hero,
  .legacy-overview-title-card,.legacy-hero,
  .system-hero,.steward-hero,.maintenance-hero,.daybook-hero,
  .workspace-hero,.record-book-hero,.collection-hero,.page-hero
) h1::after{
  content:none!important;
  display:none!important;
  border:0!important;
  border-image:none!important;
  outline:0!important;
  box-shadow:none!important;
  background:none!important;
}

/* Today has had several historical title authorities. Target its live heading
   explicitly as the final sanity check. */
html body .today-page--anchor .today-anchor-title h1,
html body .today-page--anchor .today-anchor-title h1:focus,
html body .today-page--anchor .today-anchor-title h1:focus-visible{
  border:0!important;
  border-image:none!important;
  outline:0!important;
  box-shadow:none!important;
  background:none!important;
}
